@elqnt/react 2.0.5 → 2.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elqnt/react",
3
- "version": "2.0.5",
3
+ "version": "2.0.8",
4
4
  "description": "Shared React components and hooks for Eloquent platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -16,11 +16,6 @@
16
16
  "require": "./dist/components/index.js",
17
17
  "types": "./dist/components/index.d.ts"
18
18
  },
19
- "./components/form-controls/icon": {
20
- "import": "./dist/components/form-controls/icon.mjs",
21
- "require": "./dist/components/form-controls/icon.js",
22
- "types": "./dist/components/form-controls/icon.d.ts"
23
- },
24
19
  "./components/upload/upload-actions": {
25
20
  "import": "./dist/components/upload/upload-actions.mjs",
26
21
  "require": "./dist/components/upload/upload-actions.js",
@@ -30,22 +25,19 @@
30
25
  "files": [
31
26
  "dist"
32
27
  ],
33
- "scripts": {
34
- "build": "tsup",
35
- "dev": "tsup --watch",
36
- "clean": "rm -rf dist",
37
- "typecheck": "tsc --noEmit"
38
- },
39
28
  "repository": {
40
29
  "type": "git",
41
30
  "url": "git+https://github.com/Blazi-Commerce/eloquent-packages.git",
42
31
  "directory": "packages/react"
43
32
  },
44
33
  "dependencies": {
45
- "@elqnt/types": "^2.0.0",
34
+ "@radix-ui/react-collapsible": "^1.1.12",
46
35
  "class-variance-authority": "^0.7.0",
47
36
  "clsx": "^2.0.0",
48
- "tailwind-merge": "^2.0.0"
37
+ "date-fns": "^4.1.0",
38
+ "tailwind-merge": "^2.0.0",
39
+ "@elqnt/docs": "2.0.8",
40
+ "@elqnt/types": "2.0.9"
49
41
  },
50
42
  "peerDependencies": {
51
43
  "@aws-sdk/client-s3": "^3.0.0",
@@ -100,7 +92,8 @@
100
92
  "@radix-ui/react-tooltip": "^1.1.0",
101
93
  "@remixicon/react": "^4.0.0",
102
94
  "@tanstack/react-table": "^8.20.0",
103
- "@types/react": "^19.0.0",
95
+ "@types/node": "^22.13.9",
96
+ "@types/react": "19.0.10",
104
97
  "cmdk": "^1.0.0",
105
98
  "lucide-react": "^0.483.0",
106
99
  "next": "^15.0.0",
@@ -117,5 +110,11 @@
117
110
  "tsup": "^8.0.0",
118
111
  "typescript": "^5.0.0",
119
112
  "vaul": "^1.0.0"
113
+ },
114
+ "scripts": {
115
+ "build": "tsup",
116
+ "dev": "tsup --watch",
117
+ "clean": "rm -rf dist",
118
+ "typecheck": "tsc --noEmit"
120
119
  }
121
- }
120
+ }
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { icons } from 'lucide-react';
4
-
5
- type IconProps = {
6
- name: keyof typeof icons;
7
- size?: number;
8
- className?: string;
9
- strokeWidth?: number;
10
- };
11
- declare const Icon: React.MemoExoticComponent<({ name, className, strokeWidth, size }: IconProps) => react_jsx_runtime.JSX.Element | null>;
12
-
13
- export { Icon, type IconProps };
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { icons } from 'lucide-react';
4
-
5
- type IconProps = {
6
- name: keyof typeof icons;
7
- size?: number;
8
- className?: string;
9
- strokeWidth?: number;
10
- };
11
- declare const Icon: React.MemoExoticComponent<({ name, className, strokeWidth, size }: IconProps) => react_jsx_runtime.JSX.Element | null>;
12
-
13
- export { Icon, type IconProps };
@@ -1,58 +0,0 @@
1
- "use client";
2
- "use strict";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // components/form-controls/icon.tsx
22
- var icon_exports = {};
23
- __export(icon_exports, {
24
- Icon: () => Icon
25
- });
26
- module.exports = __toCommonJS(icon_exports);
27
-
28
- // lib/utils.ts
29
- var import_clsx = require("clsx");
30
- var import_tailwind_merge = require("tailwind-merge");
31
- function cn(...inputs) {
32
- return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
33
- }
34
-
35
- // components/form-controls/icon.tsx
36
- var import_lucide_react = require("lucide-react");
37
- var import_react = require("react");
38
- var import_jsx_runtime = require("react/jsx-runtime");
39
- var Icon = (0, import_react.memo)(({ name, className, strokeWidth, size }) => {
40
- const IconComponent = import_lucide_react.icons[name];
41
- if (!IconComponent) {
42
- return null;
43
- }
44
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
45
- IconComponent,
46
- {
47
- className: cn(className),
48
- strokeWidth: strokeWidth || 2.5,
49
- size
50
- }
51
- );
52
- });
53
- Icon.displayName = "Icon";
54
- // Annotate the CommonJS export names for ESM import in node:
55
- 0 && (module.exports = {
56
- Icon
57
- });
58
- //# sourceMappingURL=icon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../components/form-controls/icon.tsx","../../../lib/utils.ts"],"sourcesContent":["import { cn } from \"../../lib/utils\";\nimport { icons } from \"lucide-react\";\nimport { memo } from \"react\";\n\nexport type IconProps = {\n name: keyof typeof icons;\n size?: number;\n className?: string;\n strokeWidth?: number;\n};\n\nexport const Icon = memo(({ name, className, strokeWidth, size }: IconProps) => {\n const IconComponent = icons[name];\n\n if (!IconComponent) {\n return null;\n }\n\n return (\n <IconComponent\n className={cn(className)}\n strokeWidth={strokeWidth || 2.5}\n size={size}\n />\n );\n});\n\nIcon.displayName = \"Icon\";\n","import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function getBadgeVariant(status: string) {\n return status === \"open\" ? \"default\" : \"secondary\";\n}\n\n// export function getColspanByFieldType(fieldType: EntityFieldType) {\n// return fieldType === \"text\" ? \"col-span-2\" : \"\";\n// }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAAsC;AACtC,4BAAwB;AAEjB,SAAS,MAAM,QAAsB;AAC1C,aAAO,mCAAQ,kBAAK,MAAM,CAAC;AAC7B;;;ADJA,0BAAsB;AACtB,mBAAqB;AAiBjB;AARG,IAAM,WAAO,mBAAK,CAAC,EAAE,MAAM,WAAW,aAAa,KAAK,MAAiB;AAC9E,QAAM,gBAAgB,0BAAM,IAAI;AAEhC,MAAI,CAAC,eAAe;AAClB,WAAO;AAAA,EACT;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,SAAS;AAAA,MACvB,aAAa,eAAe;AAAA,MAC5B;AAAA;AAAA,EACF;AAEJ,CAAC;AAED,KAAK,cAAc;","names":[]}
@@ -1,32 +0,0 @@
1
- "use client";
2
-
3
- // lib/utils.ts
4
- import { clsx } from "clsx";
5
- import { twMerge } from "tailwind-merge";
6
- function cn(...inputs) {
7
- return twMerge(clsx(inputs));
8
- }
9
-
10
- // components/form-controls/icon.tsx
11
- import { icons } from "lucide-react";
12
- import { memo } from "react";
13
- import { jsx } from "react/jsx-runtime";
14
- var Icon = memo(({ name, className, strokeWidth, size }) => {
15
- const IconComponent = icons[name];
16
- if (!IconComponent) {
17
- return null;
18
- }
19
- return /* @__PURE__ */ jsx(
20
- IconComponent,
21
- {
22
- className: cn(className),
23
- strokeWidth: strokeWidth || 2.5,
24
- size
25
- }
26
- );
27
- });
28
- Icon.displayName = "Icon";
29
- export {
30
- Icon
31
- };
32
- //# sourceMappingURL=icon.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../lib/utils.ts","../../../components/form-controls/icon.tsx"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport function getBadgeVariant(status: string) {\n return status === \"open\" ? \"default\" : \"secondary\";\n}\n\n// export function getColspanByFieldType(fieldType: EntityFieldType) {\n// return fieldType === \"text\" ? \"col-span-2\" : \"\";\n// }\n","import { cn } from \"../../lib/utils\";\nimport { icons } from \"lucide-react\";\nimport { memo } from \"react\";\n\nexport type IconProps = {\n name: keyof typeof icons;\n size?: number;\n className?: string;\n strokeWidth?: number;\n};\n\nexport const Icon = memo(({ name, className, strokeWidth, size }: IconProps) => {\n const IconComponent = icons[name];\n\n if (!IconComponent) {\n return null;\n }\n\n return (\n <IconComponent\n className={cn(className)}\n strokeWidth={strokeWidth || 2.5}\n size={size}\n />\n );\n});\n\nIcon.displayName = \"Icon\";\n"],"mappings":";;;AAAA,SAA0B,YAAY;AACtC,SAAS,eAAe;AAEjB,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;;;ACJA,SAAS,aAAa;AACtB,SAAS,YAAY;AAiBjB;AARG,IAAM,OAAO,KAAK,CAAC,EAAE,MAAM,WAAW,aAAa,KAAK,MAAiB;AAC9E,QAAM,gBAAgB,MAAM,IAAI;AAEhC,MAAI,CAAC,eAAe;AAClB,WAAO;AAAA,EACT;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,SAAS;AAAA,MACvB,aAAa,eAAe;AAAA,MAC5B;AAAA;AAAA,EACF;AAEJ,CAAC;AAED,KAAK,cAAc;","names":[]}