@meshagent/meshagent-tailwind 0.5.8 → 0.5.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.
- package/CHANGELOG.md +3 -0
- package/dist/cjs/components/ui/dialog.js +1 -1
- package/dist/cjs/components/ui/form.js +2 -2
- package/dist/cjs/components/ui/input.js +1 -1
- package/dist/cjs/components/ui/label.js +1 -1
- package/dist/cjs/components/ui/progress.js +1 -1
- package/dist/cjs/components/ui/radio-group.js +1 -1
- package/dist/cjs/components/ui/select.js +1 -1
- package/dist/cjs/components/ui/sheet.js +1 -1
- package/dist/esm/components/ui/dialog.js +1 -1
- package/dist/esm/components/ui/form.js +2 -2
- package/dist/esm/components/ui/input.js +1 -1
- package/dist/esm/components/ui/label.js +1 -1
- package/dist/esm/components/ui/progress.js +1 -1
- package/dist/esm/components/ui/radio-group.js +1 -1
- package/dist/esm/components/ui/select.js +1 -1
- package/dist/esm/components/ui/sheet.js +1 -1
- package/package.json +9 -3
- package/dist/cjs/tools/build-schema.d.ts +0 -3
- package/dist/cjs/tools/build-schema.js +0 -55
- package/dist/esm/tools/build-schema.d.ts +0 -3
- package/dist/esm/tools/build-schema.js +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -43,7 +43,7 @@ module.exports = __toCommonJS(dialog_exports);
|
|
|
43
43
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
44
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
45
45
|
var import_lucide_react = require("lucide-react");
|
|
46
|
-
var import_utils = require("
|
|
46
|
+
var import_utils = require("../../lib/utils");
|
|
47
47
|
function Dialog({
|
|
48
48
|
...props
|
|
49
49
|
}) {
|
|
@@ -42,8 +42,8 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
42
42
|
var React = __toESM(require("react"));
|
|
43
43
|
var import_react_slot = require("@radix-ui/react-slot");
|
|
44
44
|
var import_react_hook_form = require("react-hook-form");
|
|
45
|
-
var import_utils = require("
|
|
46
|
-
var import_label = require("
|
|
45
|
+
var import_utils = require("../../lib/utils");
|
|
46
|
+
var import_label = require("../../components/ui/label");
|
|
47
47
|
const Form = import_react_hook_form.FormProvider;
|
|
48
48
|
const FormFieldContext = React.createContext(
|
|
49
49
|
{}
|
|
@@ -22,7 +22,7 @@ __export(input_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(input_exports);
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_utils = require("
|
|
25
|
+
var import_utils = require("../../lib/utils");
|
|
26
26
|
function Input({ className, type, ...props }) {
|
|
27
27
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
28
28
|
"input",
|
|
@@ -34,7 +34,7 @@ __export(label_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(label_exports);
|
|
35
35
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
36
|
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
37
|
-
var import_utils = require("
|
|
37
|
+
var import_utils = require("../../lib/utils");
|
|
38
38
|
function Label({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
@@ -33,7 +33,7 @@ __export(progress_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(progress_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
|
|
36
|
-
var import_utils = require("
|
|
36
|
+
var import_utils = require("../../lib/utils");
|
|
37
37
|
function Progress({ className, value, ...props }) {
|
|
38
38
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
39
39
|
ProgressPrimitive.Root,
|
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(radio_group_exports);
|
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
37
|
var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"));
|
|
38
38
|
var import_lucide_react = require("lucide-react");
|
|
39
|
-
var import_utils = require("
|
|
39
|
+
var import_utils = require("../../lib/utils");
|
|
40
40
|
function RadioGroup({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
@@ -43,7 +43,7 @@ module.exports = __toCommonJS(select_exports);
|
|
|
43
43
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
44
44
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"));
|
|
45
45
|
var import_lucide_react = require("lucide-react");
|
|
46
|
-
var import_utils = require("
|
|
46
|
+
var import_utils = require("../../lib/utils");
|
|
47
47
|
function Select({
|
|
48
48
|
...props
|
|
49
49
|
}) {
|
|
@@ -41,7 +41,7 @@ module.exports = __toCommonJS(sheet_exports);
|
|
|
41
41
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
42
|
var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
43
43
|
var import_lucide_react = require("lucide-react");
|
|
44
|
-
var import_utils = require("
|
|
44
|
+
var import_utils = require("../../lib/utils");
|
|
45
45
|
function Sheet({ ...props }) {
|
|
46
46
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
47
47
|
}
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
useFormContext,
|
|
8
8
|
useFormState
|
|
9
9
|
} from "react-hook-form";
|
|
10
|
-
import { cn } from "
|
|
11
|
-
import { Label } from "
|
|
10
|
+
import { cn } from "../../lib/utils";
|
|
11
|
+
import { Label } from "../../components/ui/label";
|
|
12
12
|
const Form = FormProvider;
|
|
13
13
|
const FormFieldContext = React.createContext(
|
|
14
14
|
{}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3
|
-
import { cn } from "
|
|
3
|
+
import { cn } from "../../lib/utils";
|
|
4
4
|
function Progress({ className, value, ...props }) {
|
|
5
5
|
return /* @__PURE__ */ jsx(
|
|
6
6
|
ProgressPrimitive.Root,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
4
|
import { CircleIcon } from "lucide-react";
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
6
|
function RadioGroup({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
3
|
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
5
|
function Select({
|
|
6
6
|
...props
|
|
7
7
|
}) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3
3
|
import { XIcon } from "lucide-react";
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
5
|
function Sheet({ ...props }) {
|
|
6
6
|
return /* @__PURE__ */ jsx(SheetPrimitive.Root, { "data-slot": "sheet", ...props });
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshagent/meshagent-tailwind",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "Meshagent Tailwind Components",
|
|
5
5
|
"homepage": "https://github.com/meshagent/meshagent-tailwind",
|
|
6
6
|
"scripts": {
|
|
@@ -30,11 +30,16 @@
|
|
|
30
30
|
"CHANGELOG.md"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@meshagent/meshagent": "^0.5.
|
|
34
|
-
"@meshagent/meshagent-react": "^0.5.
|
|
33
|
+
"@meshagent/meshagent": "^0.5.9",
|
|
34
|
+
"@meshagent/meshagent-react": "^0.5.9",
|
|
35
35
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
36
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
36
37
|
"@radix-ui/react-dialog": "^1.1.14",
|
|
38
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
39
|
+
"@radix-ui/react-label": "^2.1.7",
|
|
37
40
|
"@radix-ui/react-progress": "^1.1.7",
|
|
41
|
+
"@radix-ui/react-radio-group": "^1.3.7",
|
|
42
|
+
"@radix-ui/react-select": "^2.2.5",
|
|
38
43
|
"@radix-ui/react-slot": "^1.2.3",
|
|
39
44
|
"class-variance-authority": "^0.7.1",
|
|
40
45
|
"clsx": "^2.1.1",
|
|
@@ -43,6 +48,7 @@
|
|
|
43
48
|
"next-themes": "^0.4.6",
|
|
44
49
|
"react": "^19.1.0",
|
|
45
50
|
"react-dom": "^19.1.0",
|
|
51
|
+
"react-hook-form": "^7.61.1",
|
|
46
52
|
"react-markdown": "^10.1.0",
|
|
47
53
|
"rehype-highlight": "^7.0.2",
|
|
48
54
|
"rehype-sanitize": "^6.0.0",
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var build_schema_exports = {};
|
|
30
|
-
__export(build_schema_exports, {
|
|
31
|
-
buildZodSchemaFromAskUser: () => buildZodSchemaFromAskUser
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(build_schema_exports);
|
|
34
|
-
var z = __toESM(require("zod"));
|
|
35
|
-
function buildZodSchemaFromAskUser(formSchema) {
|
|
36
|
-
const shape = {};
|
|
37
|
-
for (const item of formSchema) {
|
|
38
|
-
if (item.hasOwnProperty("input")) {
|
|
39
|
-
const f = item.input;
|
|
40
|
-
shape[f.name] = z.string().min(1, `${f.description} is required`);
|
|
41
|
-
} else if (item.hasOwnProperty("checkbox")) {
|
|
42
|
-
const f = item.checkbox;
|
|
43
|
-
shape[f.name] = z.boolean();
|
|
44
|
-
} else if (item.hasOwnProperty("radio_group")) {
|
|
45
|
-
const f = item.radio_group;
|
|
46
|
-
const options = f.options.map((opt) => opt.value);
|
|
47
|
-
shape[f.name] = z.enum(options, "Select an option").default(f.default_value || options[0]);
|
|
48
|
-
} else if (item.hasOwnProperty("select")) {
|
|
49
|
-
const f = item.select;
|
|
50
|
-
const options = f.options.map((opt) => opt.value);
|
|
51
|
-
shape[f.name] = z.enum(options, "Select an option").default(f.default_value || options[0]);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return z.object(shape);
|
|
55
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
function buildZodSchemaFromAskUser(formSchema) {
|
|
3
|
-
const shape = {};
|
|
4
|
-
for (const item of formSchema) {
|
|
5
|
-
if (item.hasOwnProperty("input")) {
|
|
6
|
-
const f = item.input;
|
|
7
|
-
shape[f.name] = z.string().min(1, `${f.description} is required`);
|
|
8
|
-
} else if (item.hasOwnProperty("checkbox")) {
|
|
9
|
-
const f = item.checkbox;
|
|
10
|
-
shape[f.name] = z.boolean();
|
|
11
|
-
} else if (item.hasOwnProperty("radio_group")) {
|
|
12
|
-
const f = item.radio_group;
|
|
13
|
-
const options = f.options.map((opt) => opt.value);
|
|
14
|
-
shape[f.name] = z.enum(options, "Select an option").default(f.default_value || options[0]);
|
|
15
|
-
} else if (item.hasOwnProperty("select")) {
|
|
16
|
-
const f = item.select;
|
|
17
|
-
const options = f.options.map((opt) => opt.value);
|
|
18
|
-
shape[f.name] = z.enum(options, "Select an option").default(f.default_value || options[0]);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return z.object(shape);
|
|
22
|
-
}
|
|
23
|
-
export {
|
|
24
|
-
buildZodSchemaFromAskUser
|
|
25
|
-
};
|