@vnejs/uis.react.menu-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,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
- import { Flex } from "@vnejs/uis.react";
4
- import { TextControls } from "@vnejs/uis.react";
3
+ import { Flex } from "@vnejs/uis.react.flex";
4
+ import { TextControls } from "@vnejs/uis.react.text-controls";
5
5
  export const MenuControls = ({ className = "", height = 0, textPropsTop = {}, textsTop = [], textPropsBottom = {}, textsBottom = [], scrollbarProps = {}, activeIndex = -1, }) => {
6
6
  const flexPropsInner = useMemo(() => ({ align: Flex.ALIGN.START, direction: Flex.DIRECTION.COLUMN }), []);
7
7
  return (_jsxs(Flex, { className: className, align: Flex.ALIGN.START, justify: Flex.JUSTIFY.SPACE_BETWEEN, direction: Flex.DIRECTION.COLUMN, height: height, children: [_jsx(TextControls, { scrollbarProps: scrollbarProps, activeIndex: activeIndex, texts: textsTop, textProps: textPropsTop, flexProps: flexPropsInner }), _jsx(TextControls, { scrollbarProps: scrollbarProps, texts: textsBottom, textProps: textPropsBottom, flexProps: flexPropsInner })] }));
@@ -1 +1 @@
1
- {"version":3,"file":"MenuControls.js","sourceRoot":"","sources":["../src/MenuControls.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAIhD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,SAAS,GAAG,EAAE,EACd,MAAM,GAAG,CAAC,EACV,YAAY,GAAG,EAAE,EACjB,QAAQ,GAAG,EAAE,EACb,eAAe,GAAG,EAAE,EACpB,WAAW,GAAG,EAAE,EAChB,cAAc,GAAG,EAAE,E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AE,EAAE;IACtB,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAE1G,OAAO,CACL,MAAC,IAAI,IACH,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EACvB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,aAAa,EACnC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAChC,MAAM,EAAE,MAAM,aAEd,KAAC,YAAY,IACX,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,QAAQ,EACf,SAAS,EAAE,YAAY,EACvB,SAAS,EAAE,cAAc,GACzB,EACF,KAAC,YAAY,IACX,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,cAAc,GACzB,IACG,CACR,CAAC;AACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/uis.react.menu-controls",
3
- "version": "0.1.8",
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.flex": "~0.1.0",
25
+ "@vnejs/uis.react.text-controls": "~0.1.0"
26
+ }
26
27
  }
@@ -1,10 +1,12 @@
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
+
5
+ import { Sprite } from "@vnejs/uis.react.sprite";
6
+
7
+ import { Flex } from "@vnejs/uis.react.flex";
4
8
 
5
- import { Sprite } from "@vnejs/uis.react";
6
9
  import { MenuControls } from "./MenuControls";
7
- import { Flex } from "@vnejs/uis.react";
8
10
 
9
11
  export const Common = {
10
12
  args: {
@@ -1,8 +1,8 @@
1
1
  import { useMemo } from "react";
2
2
 
3
- import { Flex } from "@vnejs/uis.react";
3
+ import { Flex } from "@vnejs/uis.react.flex";
4
4
 
5
- import { TextControls } from "@vnejs/uis.react";
5
+ import { TextControls } from "@vnejs/uis.react.text-controls";
6
6
 
7
7
  import { type MenuControlsProps } from "./MenuControls.types.js";
8
8