@vnejs/uis.react.menu-controls 0.1.7 → 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"}
@@ -1,11 +1,12 @@
1
+ import type { CssInsertInnerText, CssInsertValueLength, CssInsertValueString } from "@vnejs/uis.utils";
1
2
  export type MenuControlsTextOption = {
2
- text?: string;
3
+ text?: CssInsertInnerText;
3
4
  value?: unknown;
4
5
  isNotRender?: boolean;
5
6
  } & Record<string, unknown>;
6
7
  export type MenuControlsProps = {
7
8
  className?: string;
8
- height?: number;
9
+ height?: CssInsertValueLength | CssInsertValueString;
9
10
  textPropsTop?: Record<string, unknown>;
10
11
  textsTop?: MenuControlsTextOption[];
11
12
  textPropsBottom?: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"MenuControls.types.d.ts","sourceRoot":"","sources":["../src/MenuControls.types.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EA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M,EAAE,OAAO,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/uis.react.menu-controls",
3
- "version": "0.1.7",
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
 
@@ -1,12 +1,14 @@
1
+ import type { CssInsertInnerText, CssInsertValueLength, CssInsertValueString } from "@vnejs/uis.utils";
2
+
1
3
  export type MenuControlsTextOption = {
2
- text?: string;
4
+ text?: CssInsertInnerText;
3
5
  value?: unknown;
4
6
  isNotRender?: boolean;
5
7
  } & Record<string, unknown>;
6
8
 
7
9
  export type MenuControlsProps = {
8
10
  className?: string;
9
- height?: number;
11
+ height?: CssInsertValueLength | CssInsertValueString;
10
12
  textPropsTop?: Record<string, unknown>;
11
13
  textsTop?: MenuControlsTextOption[];
12
14
  textPropsBottom?: Record<string, unknown>;