@vnejs/uis.react.text-controls 0.1.7 → 0.1.8
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { CssInsertInnerText, CssInsertValueLength } from "@vnejs/uis.utils";
|
|
1
2
|
import type { MutableRefObject } from "react";
|
|
2
3
|
export type TextControlItem = {
|
|
3
|
-
text?:
|
|
4
|
+
text?: CssInsertInnerText;
|
|
4
5
|
value?: unknown;
|
|
5
6
|
isNotRender?: boolean;
|
|
6
7
|
} & Record<string, unknown>;
|
|
@@ -9,19 +10,19 @@ export type TextControlsProps<T = unknown> = {
|
|
|
9
10
|
selectedIndex?: number;
|
|
10
11
|
textProps?: Record<string, unknown>;
|
|
11
12
|
flexProps?: Record<string, unknown>;
|
|
12
|
-
textSize?:
|
|
13
|
-
textWidth?:
|
|
13
|
+
textSize?: CssInsertValueLength;
|
|
14
|
+
textWidth?: CssInsertValueLength | null;
|
|
14
15
|
textAlign?: string | null;
|
|
15
|
-
textMarginTop?:
|
|
16
|
-
flexGap?:
|
|
17
|
-
flexGapVertical?:
|
|
18
|
-
flexGapHorizontal?:
|
|
16
|
+
textMarginTop?: CssInsertValueLength | null;
|
|
17
|
+
flexGap?: CssInsertValueLength;
|
|
18
|
+
flexGapVertical?: CssInsertValueLength;
|
|
19
|
+
flexGapHorizontal?: CssInsertValueLength;
|
|
19
20
|
flexDirection?: string;
|
|
20
21
|
flexAlign?: string | null;
|
|
21
22
|
flexJustify?: string | null;
|
|
22
23
|
flexWithWrap?: boolean | null;
|
|
23
|
-
wrapWidth?:
|
|
24
|
-
wrapHeight?:
|
|
24
|
+
wrapWidth?: CssInsertValueLength | null;
|
|
25
|
+
wrapHeight?: CssInsertValueLength | null;
|
|
25
26
|
wrapClassName?: string;
|
|
26
27
|
withScrollbar?: boolean;
|
|
27
28
|
scrollbarWrapRef?: MutableRefObject<HTMLDivElement | null> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextControls.types.d.ts","sourceRoot":"","sources":["../src/TextControls.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"TextControls.types.d.ts","sourceRoot":"","sources":["../src/TextControls.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAa,MAAM,OAAO,CAAC;AAEzD,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5B,MAAM,MAAM,iBAAiB,CAAC,CAAC,GAAG,OAAO,IAAI;IAC3C,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,SAAS,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC5C,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,CAAC;CACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { CssInsertInnerText, CssInsertValueLength } from "@vnejs/uis.utils";
|
|
1
2
|
import type { MutableRefObject, ReactNode } from "react";
|
|
2
3
|
|
|
3
4
|
export type TextControlItem = {
|
|
4
|
-
text?:
|
|
5
|
+
text?: CssInsertInnerText;
|
|
5
6
|
value?: unknown;
|
|
6
7
|
isNotRender?: boolean;
|
|
7
8
|
} & Record<string, unknown>;
|
|
@@ -11,19 +12,19 @@ export type TextControlsProps<T = unknown> = {
|
|
|
11
12
|
selectedIndex?: number;
|
|
12
13
|
textProps?: Record<string, unknown>;
|
|
13
14
|
flexProps?: Record<string, unknown>;
|
|
14
|
-
textSize?:
|
|
15
|
-
textWidth?:
|
|
15
|
+
textSize?: CssInsertValueLength;
|
|
16
|
+
textWidth?: CssInsertValueLength | null;
|
|
16
17
|
textAlign?: string | null;
|
|
17
|
-
textMarginTop?:
|
|
18
|
-
flexGap?:
|
|
19
|
-
flexGapVertical?:
|
|
20
|
-
flexGapHorizontal?:
|
|
18
|
+
textMarginTop?: CssInsertValueLength | null;
|
|
19
|
+
flexGap?: CssInsertValueLength;
|
|
20
|
+
flexGapVertical?: CssInsertValueLength;
|
|
21
|
+
flexGapHorizontal?: CssInsertValueLength;
|
|
21
22
|
flexDirection?: string;
|
|
22
23
|
flexAlign?: string | null;
|
|
23
24
|
flexJustify?: string | null;
|
|
24
25
|
flexWithWrap?: boolean | null;
|
|
25
|
-
wrapWidth?:
|
|
26
|
-
wrapHeight?:
|
|
26
|
+
wrapWidth?: CssInsertValueLength | null;
|
|
27
|
+
wrapHeight?: CssInsertValueLength | null;
|
|
27
28
|
wrapClassName?: string;
|
|
28
29
|
withScrollbar?: boolean;
|
|
29
30
|
scrollbarWrapRef?: MutableRefObject<HTMLDivElement | null> | null;
|