@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?: string;
3
+ text?: CssInsertInnerText;
3
4
  onClick?: () => void;
4
5
  isRounded?: boolean;
5
6
  isActive?: boolean;
6
7
  isSelected?: boolean;
7
- padding?: number;
8
- paddingHorizontal?: number | null;
9
- paddingVertical?: number | null;
10
- opacity?: number | null;
11
- borderWidth?: number;
12
- width?: number;
13
- textSize?: number;
14
- font?: string;
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?: number;
23
- buttonPaddingVertical?: number;
24
- buttonPaddingHorizontal?: number;
25
- flexGap?: number;
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,IAA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": "@vnejs/uis.react.button-controls",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -1,17 +1,19 @@
1
+ import type { CssInsertInnerText, CssInsertValueLength, CssInsertValueNumber, CssInsertValueString } from "@vnejs/uis.utils";
2
+
1
3
  export type ButtonControlItem = {
2
- text?: string;
4
+ text?: CssInsertInnerText;
3
5
  onClick?: () => void;
4
6
  isRounded?: boolean;
5
7
  isActive?: boolean;
6
8
  isSelected?: boolean;
7
- padding?: number;
8
- paddingHorizontal?: number | null;
9
- paddingVertical?: number | null;
10
- opacity?: number | null;
11
- borderWidth?: number;
12
- width?: number;
13
- textSize?: number;
14
- font?: string;
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?: number;
24
- buttonPaddingVertical?: number;
25
- buttonPaddingHorizontal?: number;
26
- flexGap?: number;
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
  };