@vnejs/uis.react.button-controls 0.1.8 → 0.1.9
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonControls.d.ts","sourceRoot":"","sources":["../src/ButtonControls.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonControls.d.ts","sourceRoot":"","sources":["../src/ButtonControls.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,eAAO,MAAM,cAAc,GAAI,gJAU5B,mBAAmB,4CAoBrB,CAAC"}
|
package/dist/ButtonControls.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Button
|
|
2
|
+
import { Button } from "@vnejs/uis.react.button";
|
|
3
|
+
import { Flex } from "@vnejs/uis.react.flex";
|
|
3
4
|
export const ButtonControls = ({ buttons = [], activeIndex = -1, buttonIsRounded = true, buttonBorderWidth = 6, buttonPaddingVertical = 12, buttonPaddingHorizontal = 60, flexGap = 24, flexProps = {}, buttonProps = {}, }) => {
|
|
4
5
|
return (_jsx(Flex, { gap: flexGap, ...flexProps, children: buttons.map((buttonInfo, i) => (_jsx(Button, { isRounded: buttonIsRounded, borderWidth: buttonBorderWidth, paddingVertical: buttonPaddingVertical, paddingHorizontal: buttonPaddingHorizontal, ...buttonInfo, ...buttonProps, isActive: activeIndex === i }, i))) }));
|
|
5
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonControls.js","sourceRoot":"","sources":["../src/ButtonControls.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ButtonControls.js","sourceRoot":"","sources":["../src/ButtonControls.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAI7C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,OAAO,GAAG,EAAE,EACZ,WAAW,GAAG,CAAC,CAAC,EAChB,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,CAAC,EACrB,qBAAqB,GAAG,EAAE,EAC1B,uBAAuB,GAAG,EAAE,EAC5B,OAAO,GAAG,EAAE,EACZ,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,EAAE,GACI,EAAE,EAAE;IACxB,OAAO,CACL,KAAC,IAAI,IACH,GAAG,EAAE,OAAO,KACR,SAAS,YAEZ,OAAO,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,CAAC,CAC9B,KAAC,MAAM,IAEL,SAAS,EAAE,eAAe,EAC1B,WAAW,EAAE,iBAAiB,EAC9B,eAAe,EAAE,qBAAqB,EACtC,iBAAiB,EAAE,uBAAuB,KACtC,UAAU,KACV,WAAW,EACf,QAAQ,EAAE,WAAW,KAAK,CAAC,IAPtB,CAAC,CAQN,CACH,CAAC,GACG,CACR,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnejs/uis.react.button-controls",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@vnejs/uis.utils": "~0.1.0"
|
|
17
17
|
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@vnejs/uis.react": "~0.1.0"
|
|
20
|
-
},
|
|
21
18
|
"files": [
|
|
22
19
|
"dist",
|
|
23
20
|
"src",
|
|
24
21
|
"tsconfig.json"
|
|
25
|
-
]
|
|
22
|
+
],
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@vnejs/uis.react.button": "~0.1.0",
|
|
25
|
+
"@vnejs/uis.react.flex": "~0.1.0"
|
|
26
|
+
}
|
|
26
27
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
|
|
3
|
-
import { VneWrap } from "@vnejs/uis.react";
|
|
3
|
+
import { VneWrap } from "@vnejs/uis.react.vne-wrap";
|
|
4
4
|
|
|
5
|
-
import { Flex } from "@vnejs/uis.react";
|
|
5
|
+
import { Flex } from "@vnejs/uis.react.flex";
|
|
6
6
|
|
|
7
7
|
import { ButtonControls } from "./ButtonControls";
|
|
8
8
|
|