@companix/uikit 0.0.86 → 0.0.87
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/WriteBar/index.d.ts +1 -1
- package/dist/bundle.es38.js +25 -23
- package/package.json +1 -1
package/dist/WriteBar/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface WriteBarProps extends Pick<React.TextareaHTMLAttributes<HTMLTex
|
|
|
11
11
|
children?: never;
|
|
12
12
|
}
|
|
13
13
|
export declare const WriteBar: {
|
|
14
|
-
({ before, inlineAfter, after, onHeightChange, shadow, containerRef, header, textareaRef, autoComplete, cols, dirName, disabled, maxLength, minLength, name, placeholder, readOnly, required, value, wrap, rows, onChange, onFocus, onBlur, id, inputMode, defaultValue, autoFocus, tabIndex, spellCheck, ...restProps }: WriteBarProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
({ before, inlineAfter, after, onHeightChange, shadow, containerRef, header, textareaRef, autoComplete, cols, dirName, disabled, maxLength, minLength, name, placeholder, readOnly, required, value, wrap, rows, onChange, onFocus, onBlur, id, inputMode, defaultValue, autoFocus, tabIndex, spellCheck, className, ...restProps }: WriteBarProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
IconButton({ icon, mode, onClick, isLoading, isHidden }: WriteBarIconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
};
|
|
17
17
|
interface WriteBarIconProps {
|
package/dist/bundle.es38.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import y from "classnames";
|
|
3
|
+
import { Spinner as D } from "./bundle.es6.js";
|
|
4
|
+
import { Icon as E } from "./bundle.es33.js";
|
|
5
|
+
import { useResizeTextarea as F } from "./bundle.es43.js";
|
|
6
|
+
import { callMultiple as G, attr as H } from "@companix/utils-browser";
|
|
7
|
+
import { mergeRefs as J } from "react-merge-refs";
|
|
8
|
+
const K = ({
|
|
8
9
|
// WriteBarProps
|
|
9
10
|
before: r,
|
|
10
|
-
inlineAfter:
|
|
11
|
+
inlineAfter: a,
|
|
11
12
|
after: i,
|
|
12
|
-
onHeightChange:
|
|
13
|
-
shadow:
|
|
13
|
+
onHeightChange: t,
|
|
14
|
+
shadow: o = !1,
|
|
14
15
|
containerRef: n,
|
|
15
16
|
header: m,
|
|
16
17
|
// textarea props
|
|
17
18
|
textareaRef: c,
|
|
18
19
|
autoComplete: d,
|
|
19
20
|
cols: l,
|
|
20
|
-
dirName:
|
|
21
|
+
dirName: L,
|
|
21
22
|
disabled: f,
|
|
22
|
-
maxLength:
|
|
23
|
-
minLength:
|
|
23
|
+
maxLength: p,
|
|
24
|
+
minLength: h,
|
|
24
25
|
name: x,
|
|
25
26
|
placeholder: b,
|
|
26
27
|
readOnly: u,
|
|
@@ -37,24 +38,25 @@ const H = ({
|
|
|
37
38
|
autoFocus: A,
|
|
38
39
|
tabIndex: C,
|
|
39
40
|
spellCheck: M,
|
|
40
|
-
|
|
41
|
+
className: S,
|
|
42
|
+
...W
|
|
41
43
|
}) => {
|
|
42
|
-
const [
|
|
43
|
-
return /* @__PURE__ */
|
|
44
|
+
const [k, q] = F(t, !0);
|
|
45
|
+
return /* @__PURE__ */ s("div", { ref: n, ...W, className: y("write-bar", S), children: [
|
|
44
46
|
m,
|
|
45
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ s("div", { className: "write-bar-content", children: [
|
|
46
48
|
r && /* @__PURE__ */ e("div", { className: "write-bar-before", children: r }),
|
|
47
49
|
/* @__PURE__ */ e("div", { className: "write-bar-form", children: /* @__PURE__ */ e(
|
|
48
50
|
"textarea",
|
|
49
51
|
{
|
|
50
|
-
ref:
|
|
52
|
+
ref: J([c, k]),
|
|
51
53
|
id: B,
|
|
52
|
-
onChange:
|
|
54
|
+
onChange: G(R, q),
|
|
53
55
|
autoComplete: d,
|
|
54
56
|
cols: l,
|
|
55
57
|
disabled: f,
|
|
56
|
-
maxLength:
|
|
57
|
-
minLength:
|
|
58
|
+
maxLength: p,
|
|
59
|
+
minLength: h,
|
|
58
60
|
name: x,
|
|
59
61
|
placeholder: b,
|
|
60
62
|
readOnly: u,
|
|
@@ -75,7 +77,7 @@ const H = ({
|
|
|
75
77
|
] })
|
|
76
78
|
] });
|
|
77
79
|
};
|
|
78
|
-
|
|
80
|
+
K.IconButton = ({ icon: r, mode: a, onClick: i, isLoading: t, isHidden: o }) => /* @__PURE__ */ e("button", { onClick: i, className: "write-bar-icon", "data-mode": a, "data-hidden": H(o), children: t ? /* @__PURE__ */ e(D, { size: 18 }) : /* @__PURE__ */ e(E, { icon: r, size: "xxs" }) });
|
|
79
81
|
export {
|
|
80
|
-
|
|
82
|
+
K as WriteBar
|
|
81
83
|
};
|