@vkzstudio/muza-ui 1.0.1 → 1.0.3
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/CLAUDE_CONSUMER.md +238 -238
- package/README.md +168 -168
- package/dist/components/DatePicker/DatePicker.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +33 -31
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.d.ts.map +1 -1
- package/dist/components/ExpandableTable/ExpandableTable.js +162 -157
- package/dist/components/ExpandableTable/Table.d.ts +4 -1
- package/dist/components/ExpandableTable/Table.d.ts.map +1 -1
- package/dist/components/ExpandableTable/Table.js +82 -78
- package/dist/components/Loader/Loader.js +6 -6
- package/dist/components/Searchbar/Searchbar.d.ts.map +1 -1
- package/dist/components/Searchbar/Searchbar.js +64 -54
- package/dist/components/Searchbar/Searchbar.stories.d.ts.map +1 -1
- package/dist/muza-ui.css +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Searchbar.d.ts","sourceRoot":"","sources":["../../../src/components/Searchbar/Searchbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,cACf,SAAQ,IAAI,CACV,UAAU,EACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,cAAc,GACd,QAAQ,GACR,OAAO,GACP,cAAc,CACjB;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,CAAA;CACzD;AAED,QAAA,MAAM,SAAS,GAAI,gKAchB,cAAc,
|
|
1
|
+
{"version":3,"file":"Searchbar.d.ts","sourceRoot":"","sources":["../../../src/components/Searchbar/Searchbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAA;AAEjD,MAAM,WAAW,cACf,SAAQ,IAAI,CACV,UAAU,EACR,MAAM,GACN,MAAM,GACN,UAAU,GACV,OAAO,GACP,cAAc,GACd,QAAQ,GACR,OAAO,GACP,cAAc,CACjB;IACD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC,KAAK,IAAI,CAAA;CACzD;AAED,QAAA,MAAM,SAAS,GAAI,gKAchB,cAAc,4CAiGhB,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { MagnifyingGlass as
|
|
1
|
+
import { jsxs as R, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { MagnifyingGlass as j } from "../Icons/CustomIcons.js";
|
|
4
4
|
import { cn as a } from "../../utils/cn.js";
|
|
5
|
-
import { CloseCircleBold as
|
|
6
|
-
import { Input as
|
|
5
|
+
import { CloseCircleBold as w } from "@solar-icons/react-perf";
|
|
6
|
+
import { Input as I } from "../Input/Input.js";
|
|
7
7
|
const E = ({
|
|
8
|
-
className:
|
|
9
|
-
error:
|
|
10
|
-
showButtons:
|
|
11
|
-
clearButtonAriaLabel:
|
|
12
|
-
searchButtonAriaLabel:
|
|
13
|
-
disabled:
|
|
8
|
+
className: m,
|
|
9
|
+
error: p = !1,
|
|
10
|
+
showButtons: x = !0,
|
|
11
|
+
clearButtonAriaLabel: d,
|
|
12
|
+
searchButtonAriaLabel: y,
|
|
13
|
+
disabled: e = !1,
|
|
14
14
|
value: o,
|
|
15
|
-
defaultValue:
|
|
16
|
-
name:
|
|
17
|
-
placeholder:
|
|
15
|
+
defaultValue: h,
|
|
16
|
+
name: k,
|
|
17
|
+
placeholder: v,
|
|
18
18
|
onChange: s,
|
|
19
|
-
onSubmit:
|
|
19
|
+
onSubmit: i,
|
|
20
20
|
...g
|
|
21
21
|
}) => {
|
|
22
|
-
const
|
|
23
|
-
o ??
|
|
22
|
+
const f = n.useRef(null), [c, l] = n.useState(
|
|
23
|
+
o ?? h ?? ""
|
|
24
24
|
);
|
|
25
|
-
|
|
26
|
-
o !== void 0 &&
|
|
25
|
+
n.useEffect(() => {
|
|
26
|
+
o !== void 0 && l(o);
|
|
27
27
|
}, [o]);
|
|
28
|
-
const N = (
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
var
|
|
32
|
-
|
|
28
|
+
const N = (t) => {
|
|
29
|
+
l(t.target.value), s && s(t);
|
|
30
|
+
}, z = () => {
|
|
31
|
+
var t, u;
|
|
32
|
+
l(""), (u = (t = f.current) == null ? void 0 : t.querySelector("input")) == null || u.focus(), s && s({
|
|
33
33
|
target: { value: "" }
|
|
34
34
|
});
|
|
35
|
-
},
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
}, C = x ? /* @__PURE__ */ R("div", { className: "flex gap-sm", children: [
|
|
36
|
+
/* @__PURE__ */ r(
|
|
37
37
|
"button",
|
|
38
38
|
{
|
|
39
39
|
className: a(
|
|
40
40
|
"flex shrink-0 cursor-pointer items-center focus-visible-default transition-opacity",
|
|
41
41
|
{
|
|
42
|
-
"opacity-0": !
|
|
43
|
-
"cursor-not-allowed":
|
|
42
|
+
"opacity-0": !c,
|
|
43
|
+
"cursor-not-allowed": e
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
|
-
"aria-label":
|
|
46
|
+
"aria-label": d,
|
|
47
47
|
type: "button",
|
|
48
|
-
onClick:
|
|
49
|
-
children: /* @__PURE__ */
|
|
50
|
-
|
|
48
|
+
onClick: z,
|
|
49
|
+
children: /* @__PURE__ */ r(
|
|
50
|
+
w,
|
|
51
51
|
{
|
|
52
52
|
className: a("size-icon-small text-icon-dark-secondary-def", {
|
|
53
|
-
"text-text-dark-tertiary":
|
|
53
|
+
"text-text-dark-tertiary": e
|
|
54
54
|
})
|
|
55
55
|
}
|
|
56
56
|
)
|
|
57
57
|
}
|
|
58
58
|
),
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ r(
|
|
60
60
|
"button",
|
|
61
61
|
{
|
|
62
62
|
className: a(
|
|
63
63
|
"flex shrink-0 cursor-pointer items-center focus-visible-default",
|
|
64
64
|
{
|
|
65
|
-
"cursor-not-allowed":
|
|
65
|
+
"cursor-not-allowed": e
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
"aria-label":
|
|
68
|
+
"aria-label": y,
|
|
69
69
|
type: "submit",
|
|
70
|
-
children: /* @__PURE__ */
|
|
71
|
-
|
|
70
|
+
children: /* @__PURE__ */ r(
|
|
71
|
+
j,
|
|
72
72
|
{
|
|
73
73
|
className: a(
|
|
74
74
|
"size-icon-small text-icon-dark-primary-def transition-colors",
|
|
75
75
|
{
|
|
76
|
-
"text-text-dark-tertiary":
|
|
77
|
-
"group-hover:text-icon-dark-primary-hover": !
|
|
76
|
+
"text-text-dark-tertiary": e,
|
|
77
|
+
"group-hover:text-icon-dark-primary-hover": !e
|
|
78
78
|
}
|
|
79
79
|
)
|
|
80
80
|
}
|
|
@@ -82,22 +82,32 @@ const E = ({
|
|
|
82
82
|
}
|
|
83
83
|
)
|
|
84
84
|
] }) : void 0;
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
|
|
85
|
+
return /* @__PURE__ */ r(
|
|
86
|
+
"form",
|
|
87
87
|
{
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
ref: f,
|
|
89
|
+
onSubmit: (t) => {
|
|
90
|
+
t.preventDefault(), c.length > 0 && (i == null || i(t));
|
|
91
|
+
},
|
|
92
|
+
className: m,
|
|
93
|
+
children: /* @__PURE__ */ r(
|
|
94
|
+
I,
|
|
95
|
+
{
|
|
96
|
+
suffix: C,
|
|
97
|
+
type: "text",
|
|
98
|
+
size: "sm",
|
|
99
|
+
error: p,
|
|
100
|
+
disabled: e,
|
|
101
|
+
value: c,
|
|
102
|
+
name: k,
|
|
103
|
+
onChange: N,
|
|
104
|
+
placeholder: v,
|
|
105
|
+
className: "group",
|
|
106
|
+
...g
|
|
107
|
+
}
|
|
108
|
+
)
|
|
99
109
|
}
|
|
100
|
-
)
|
|
110
|
+
);
|
|
101
111
|
};
|
|
102
112
|
export {
|
|
103
113
|
E as Searchbar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Searchbar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Searchbar/Searchbar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAiEhC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvC,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Searchbar.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Searchbar/Searchbar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAiEhC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvC,eAAO,MAAM,OAAO,EAAE,KAkBrB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAkBpB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAmBtB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAmBnB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAmBrB,CAAA"}
|