md-components-mdigial-azamat 0.0.25 → 0.0.27

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,21 +1,25 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- const s = {
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { OptionTypesEnum as s, DataTypesEnum as p } from "../Types/FiledTypes.js";
3
+ const n = {
3
4
  s: 10,
4
5
  m: 20,
5
6
  l: 40,
6
7
  xl: 60
7
- }, o = (e) => e.map((t) => ({
8
- label: t.label,
9
- value: t.value
10
- }));
11
- o(
12
- Object.entries(s).map(([e, t]) => ({
13
- label: e,
14
- value: t
8
+ }, a = (t) => t.map((e) => ({
9
+ label: e.label,
10
+ value: e.value
11
+ })), i = a(
12
+ Object.entries(n).map(([t, e]) => ({
13
+ label: t,
14
+ value: e.toString()
15
15
  }))
16
- );
17
- const r = ["size"], a = ({ size: e = 20 }) => /* @__PURE__ */ l("div", { style: { height: `${e}px` } });
18
- a.propsToEdit = r;
16
+ ), l = {
17
+ type: "options",
18
+ options: i,
19
+ variant: s.options,
20
+ dataType: p.select
21
+ }, r = [l], c = ({ size: t = 20 }) => /* @__PURE__ */ o("div", { style: { height: `${t}px` } });
22
+ c.propsToEdit = r;
19
23
  export {
20
- a as Space
24
+ c as Space
21
25
  };
@@ -1,4 +1,20 @@
1
- var t = /* @__PURE__ */ ((n) => (n.STRING = "string", n.NUMBER = "number", n.BOOLEAN = "boolean", n.ARRAY = "array", n.OBJECT = "object", n.FUNCTION = "function", n.UNDEFINED = "undefined", n.NULL = "null", n.SYMBOL = "symbol", n.BIGINT = "bigint", n.DATE = "date", n.REGEXP = "regexp", n.FILE = "file", n.TITLE = "title", n.DESCRIPTION = "description", n.VARIANT = "variant", n.LINK = "link", n.COMPONENT = "component", n.CLASSNAME = "classname", n.COLOR = "color", n.TITLE_TEXT = "title_text", n.NODE = "node", n.HTML_CONTENT = "html_content", n))(t || {});
1
+ var n = /* @__PURE__ */ ((o) => (o.STRING = "string", o.NUMBER = "number", o.BOOLEAN = "boolean", o.ARRAY = "array", o.OBJECT = "object", o.FUNCTION = "function", o.UNDEFINED = "undefined", o.NULL = "null", o.SYMBOL = "symbol", o.BIGINT = "bigint", o.DATE = "date", o.REGEXP = "regexp", o.FILE = "file", o.TITLE = "title", o.DESCRIPTION = "description", o.VARIANT = "variant", o.LINK = "link", o.COMPONENT = "component", o.CLASSNAME = "classname", o.COLOR = "color", o.TITLE_TEXT = "title_text", o.NODE = "node", o.HTML_CONTENT = "html_content", o))(n || {}), t = /* @__PURE__ */ ((o) => (o.options = "options", o.choices = "choices", o))(t || {});
2
+ const c = {
3
+ options: {
4
+ label: "Options",
5
+ value: "options"
6
+ /* options */
7
+ },
8
+ choices: {
9
+ label: "Choices",
10
+ value: "choices"
11
+ /* choices */
12
+ }
13
+ };
14
+ var r = /* @__PURE__ */ ((o) => (o.string = "string", o.number = "number", o.boolean = "boolean", o.array = "array", o.object = "object", o.function = "function", o.undefined = "undefined", o.null = "null", o.symbol = "symbol", o.bigint = "bigint", o.date = "date", o.select = "select", o))(r || {});
2
15
  export {
3
- t as FieldTypes
16
+ r as DataTypesEnum,
17
+ n as FieldTypes,
18
+ c as OptionTypes,
19
+ t as OptionTypesEnum
4
20
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "md-components-mdigial-azamat",
3
3
  "author": "Azamat Raimbekov",
4
4
  "private": false,
5
- "version": "0.0.25",
5
+ "version": "0.0.27",
6
6
  "type": "module",
7
7
  "main": "dist/main.js",
8
8
  "types": "dist/main.d.ts",