@vnejs/uis.react.button-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,17 +1,18 @@
|
|
|
1
|
+
import type { CssInsertInnerText, CssInsertValueLength, CssInsertValueNumber, CssInsertValueString } from "@vnejs/uis.utils";
|
|
1
2
|
export type ButtonControlItem = {
|
|
2
|
-
text?:
|
|
3
|
+
text?: CssInsertInnerText;
|
|
3
4
|
onClick?: () => void;
|
|
4
5
|
isRounded?: boolean;
|
|
5
6
|
isActive?: boolean;
|
|
6
7
|
isSelected?: boolean;
|
|
7
|
-
padding?:
|
|
8
|
-
paddingHorizontal?:
|
|
9
|
-
paddingVertical?:
|
|
10
|
-
opacity?:
|
|
11
|
-
borderWidth?:
|
|
12
|
-
width?:
|
|
13
|
-
textSize?:
|
|
14
|
-
font?:
|
|
8
|
+
padding?: CssInsertValueLength;
|
|
9
|
+
paddingHorizontal?: CssInsertValueLength | null;
|
|
10
|
+
paddingVertical?: CssInsertValueLength | null;
|
|
11
|
+
opacity?: CssInsertValueNumber;
|
|
12
|
+
borderWidth?: CssInsertValueLength;
|
|
13
|
+
width?: CssInsertValueLength;
|
|
14
|
+
textSize?: CssInsertValueLength;
|
|
15
|
+
font?: CssInsertValueString;
|
|
15
16
|
wrapView?: string;
|
|
16
17
|
textView?: string;
|
|
17
18
|
} & Record<string, unknown>;
|
|
@@ -19,10 +20,10 @@ export type ButtonControlsProps = {
|
|
|
19
20
|
buttons?: ButtonControlItem[];
|
|
20
21
|
activeIndex?: number;
|
|
21
22
|
buttonIsRounded?: boolean;
|
|
22
|
-
buttonBorderWidth?:
|
|
23
|
-
buttonPaddingVertical?:
|
|
24
|
-
buttonPaddingHorizontal?:
|
|
25
|
-
flexGap?:
|
|
23
|
+
buttonBorderWidth?: CssInsertValueLength;
|
|
24
|
+
buttonPaddingVertical?: CssInsertValueLength;
|
|
25
|
+
buttonPaddingHorizontal?: CssInsertValueLength;
|
|
26
|
+
flexGap?: CssInsertValueLength;
|
|
26
27
|
flexProps?: Record<string, unknown>;
|
|
27
28
|
buttonProps?: Partial<ButtonControlItem>;
|
|
28
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonControls.types.d.ts","sourceRoot":"","sources":["../src/ButtonControls.types.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"ButtonControls.types.d.ts","sourceRoot":"","sources":["../src/ButtonControls.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7H,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5B,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;IACzC,qBAAqB,CAAC,EAAE,oBAAoB,CAAC;IAC7C,uBAAuB,CAAC,EAAE,oBAAoB,CAAC;IAC/C,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAC1C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
+
import type { CssInsertInnerText, CssInsertValueLength, CssInsertValueNumber, CssInsertValueString } from "@vnejs/uis.utils";
|
|
2
|
+
|
|
1
3
|
export type ButtonControlItem = {
|
|
2
|
-
text?:
|
|
4
|
+
text?: CssInsertInnerText;
|
|
3
5
|
onClick?: () => void;
|
|
4
6
|
isRounded?: boolean;
|
|
5
7
|
isActive?: boolean;
|
|
6
8
|
isSelected?: boolean;
|
|
7
|
-
padding?:
|
|
8
|
-
paddingHorizontal?:
|
|
9
|
-
paddingVertical?:
|
|
10
|
-
opacity?:
|
|
11
|
-
borderWidth?:
|
|
12
|
-
width?:
|
|
13
|
-
textSize?:
|
|
14
|
-
font?:
|
|
9
|
+
padding?: CssInsertValueLength;
|
|
10
|
+
paddingHorizontal?: CssInsertValueLength | null;
|
|
11
|
+
paddingVertical?: CssInsertValueLength | null;
|
|
12
|
+
opacity?: CssInsertValueNumber;
|
|
13
|
+
borderWidth?: CssInsertValueLength;
|
|
14
|
+
width?: CssInsertValueLength;
|
|
15
|
+
textSize?: CssInsertValueLength;
|
|
16
|
+
font?: CssInsertValueString;
|
|
15
17
|
wrapView?: string;
|
|
16
18
|
textView?: string;
|
|
17
19
|
} & Record<string, unknown>;
|
|
@@ -20,10 +22,10 @@ export type ButtonControlsProps = {
|
|
|
20
22
|
buttons?: ButtonControlItem[];
|
|
21
23
|
activeIndex?: number;
|
|
22
24
|
buttonIsRounded?: boolean;
|
|
23
|
-
buttonBorderWidth?:
|
|
24
|
-
buttonPaddingVertical?:
|
|
25
|
-
buttonPaddingHorizontal?:
|
|
26
|
-
flexGap?:
|
|
25
|
+
buttonBorderWidth?: CssInsertValueLength;
|
|
26
|
+
buttonPaddingVertical?: CssInsertValueLength;
|
|
27
|
+
buttonPaddingHorizontal?: CssInsertValueLength;
|
|
28
|
+
flexGap?: CssInsertValueLength;
|
|
27
29
|
flexProps?: Record<string, unknown>;
|
|
28
30
|
buttonProps?: Partial<ButtonControlItem>;
|
|
29
31
|
};
|