@boxcustodia/library 1.8.4 → 1.8.10

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/dist/index.es.js CHANGED
@@ -6547,9 +6547,10 @@ const f2 = ({
6547
6547
  closeText: O = "Cancelar",
6548
6548
  actionText: q = "Aceptar",
6549
6549
  actionProps: N,
6550
- ...L
6551
- }) => /* @__PURE__ */ M.jsxs(pO, { ...L, "data-slot": "alert-dialog", children: [
6552
- r && /* @__PURE__ */ M.jsx(k7, { ...h, "data-slot": "alert-dialog-trigger", children: r }),
6550
+ asChild: L = !0,
6551
+ ...P
6552
+ }) => /* @__PURE__ */ M.jsxs(pO, { ...P, "data-slot": "alert-dialog", children: [
6553
+ r && /* @__PURE__ */ M.jsx(k7, { asChild: L, ...h, "data-slot": "alert-dialog-trigger", children: r }),
6553
6554
  /* @__PURE__ */ M.jsxs(hO, { ...m, "data-slot": "alert-dialog-content", children: [
6554
6555
  /* @__PURE__ */ M.jsxs(U7, { ...b, "data-slot": "alert-dialog-header", children: [
6555
6556
  /* @__PURE__ */ M.jsx(I7, { ...E, "data-slot": "alert-dialog-title", children: e }),
@@ -61351,6 +61352,7 @@ const Cme = ({
61351
61352
  "textarea",
61352
61353
  {
61353
61354
  ...t,
61355
+ onChange: (r) => t.onChange?.(r.target.value),
61354
61356
  "data-slot": "textarea",
61355
61357
  className: Fe(
61356
61358
  "min-h-[60px] w-full rounded-md px-3 py-2 text-sm placeholder:text-muted-foreground",
@@ -61536,24 +61538,6 @@ const Cme = ({
61536
61538
  ]
61537
61539
  }
61538
61540
  );
61539
- }, qme = ({ iconClassName: e = "", ...t }) => {
61540
- const r = nB((l) => l.toasts);
61541
- return /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
61542
- t.children,
61543
- /* @__PURE__ */ M.jsx(bO, { className: "empty:hidden fixed z-100 pr-2 pb-2 bottom-0 right-0 space-y-2 max-w-[300px] w-full", children: r.map((l) => {
61544
- const s = UU();
61545
- return /* @__PURE__ */ M.jsx(
61546
- y_,
61547
- {
61548
- classNames: "toast",
61549
- timeout: 500,
61550
- nodeRef: s,
61551
- children: /* @__PURE__ */ M.jsx(Vse, { ...l, iconClassName: e, ref: s })
61552
- },
61553
- l.id
61554
- );
61555
- }) })
61556
- ] });
61557
61541
  }, YP = (e) => {
61558
61542
  let t;
61559
61543
  const r = /* @__PURE__ */ new Set(), l = (E, w) => {
@@ -61619,7 +61603,25 @@ const tB = 3e3, QP = (e, t, r = tB) => {
61619
61603
  }), Promise.reject(c);
61620
61604
  }
61621
61605
  }
61622
- })), vM = nB.getState(), Qse = (e) => vM.addToast(e), GD = (e, t) => {
61606
+ })), qme = ({ iconClassName: e = "", ...t }) => {
61607
+ const r = nB((l) => l.toasts);
61608
+ return /* @__PURE__ */ M.jsxs(M.Fragment, { children: [
61609
+ t.children,
61610
+ /* @__PURE__ */ M.jsx(bO, { className: "empty:hidden fixed z-100 pr-2 pb-2 bottom-0 right-0 space-y-2 max-w-[300px] w-full", children: r.map((l) => {
61611
+ const s = UU();
61612
+ return /* @__PURE__ */ M.jsx(
61613
+ y_,
61614
+ {
61615
+ classNames: "toast",
61616
+ timeout: 500,
61617
+ nodeRef: s,
61618
+ children: /* @__PURE__ */ M.jsx(Vse, { ...l, iconClassName: e, ref: s })
61619
+ },
61620
+ l.id
61621
+ );
61622
+ }) })
61623
+ ] });
61624
+ }, vM = nB.getState(), Qse = (e) => vM.addToast(e), GD = (e, t) => {
61623
61625
  const l = typeof e == "string" ? { description: e, type: t } : { ...e, type: t };
61624
61626
  return vM.addToast(l);
61625
61627
  }, Lme = Object.assign(Qse, {
package/package.json CHANGED
@@ -1,118 +1,118 @@
1
- {
2
- "name": "@boxcustodia/library",
3
- "version": "1.8.4",
4
- "type": "module",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.es.js",
7
- "types": "dist/index.d.ts",
8
- "sideEffects": false,
9
- "files": [
10
- "/dist"
11
- ],
12
- "publishConfig": {
13
- "access": "public",
14
- "registry": "https://registry.npmjs.org/"
15
- },
16
- "scripts": {
17
- "format": "biome format --write .",
18
- "lint": "biome check --write .",
19
- "build": "tsc && vite build && npm run copy:theme",
20
- "copy:theme": "copy .\\src\\styles\\theme.css .\\dist || cp ./src/styles/theme.css ./dist",
21
- "test": "vitest run",
22
- "test-watch": "vitest",
23
- "test:ui": "vitest --ui",
24
- "pre-storybook": "node scripts/toggle-vite-config.js disable",
25
- "post-storybook": "node scripts/toggle-vite-config.js enable",
26
- "storybook": "storybook dev -p 6006",
27
- "storybook:build": "npm run pre-storybook && storybook build && npm run post-storybook",
28
- "storybook:deploy": "npm run storybook:build && netlify deploy --prod --dir=storybook-static",
29
- "dev": "storybook dev -p 6006",
30
- "prepare-husky": "husky",
31
- "generate": "plop",
32
- "commit": "npx cz",
33
- "pre-commit": "lint-staged",
34
- "release": "npm run build && npx standard-version && git push --follow-tags origin develop && npm publish && npm run storybook:deploy",
35
- "release:push": "npm run build && git push --follow-tags origin develop && npm publish",
36
- "release:canary": "npm run build && npx standard-version --prerelease canary && git push --follow-tags origin develop && npm publish --tag canary",
37
- "release:minor": "npm run build && npx standard-version --release-as minor && git push --follow-tags origin develop && npm publish",
38
- "release:patch": "npm run build && npx standard-version --release-as patch && git push --follow-tags origin develop && npm publish"
39
- },
40
- "lint-staged": {
41
- "*": [
42
- "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
43
- ]
44
- },
45
- "keywords": [],
46
- "author": "",
47
- "license": "ISC",
48
- "description": "",
49
- "dependencies": {
50
- "@biomejs/biome": "^2.3.8",
51
- "@radix-ui/react-dialog": "^1.1.15",
52
- "@radix-ui/react-dropdown-menu": "^2.1.16",
53
- "@radix-ui/react-popover": "^1.1.15",
54
- "@radix-ui/react-presence": "^1.1.5",
55
- "@radix-ui/react-select": "^2.2.6",
56
- "@radix-ui/react-slot": "^1.2.4",
57
- "@radix-ui/react-tooltip": "1.2.8",
58
- "@radix-ui/react-use-controllable-state": "^1.2.2",
59
- "react-aria-components": "^1.13.0",
60
- "vite-tsconfig-paths": "^6.0.1"
61
- },
62
- "devDependencies": {
63
- "@chromatic-com/storybook": "^4.1.3",
64
- "@faker-js/faker": "^10.1.0",
65
- "@hookform/resolvers": "^5.2.2",
66
- "@storybook/addon-links": "10.1.9",
67
- "@storybook/addon-onboarding": "10.1.9",
68
- "@storybook/react-vite": "10.1.9",
69
- "@tailwindcss/vite": "^4.1.18",
70
- "@testing-library/jest-dom": "^6.9.1",
71
- "@testing-library/react": "16.3.0",
72
- "@testing-library/user-event": "^14.6.1",
73
- "@types/lodash": "^4.17.21",
74
- "@types/node": "^25.0.2",
75
- "@types/react": "19.2.7",
76
- "@types/react-dom": "19.2.3",
77
- "@types/react-transition-group": "^4.4.12",
78
- "@vitejs/plugin-react": "^5.1.2",
79
- "autoprefixer": "^10.4.23",
80
- "class-variance-authority": "^0.7.1",
81
- "clsx": "^2.1.1",
82
- "cmdk": "^1.1.1",
83
- "commitizen": "^4.3.1",
84
- "cz-conventional-changelog": "^3.3.0",
85
- "date-fns": "^4.1.0",
86
- "husky": "^9.1.7",
87
- "jsdom": "^27.3.0",
88
- "lint-staged": "^16.2.7",
89
- "lucide-react": "0.561.0",
90
- "plop": "^4.0.4",
91
- "react-arborist": "^3.4.3",
92
- "react-hook-form": "^7.68.0",
93
- "react-markdown": "^10.1.0",
94
- "react-transition-group": "^4.4.5",
95
- "standard-version": "^9.5.0",
96
- "storybook": "10.1.9",
97
- "tailwind-merge": "^3.4.0",
98
- "tailwind-variants": "^3.2.2",
99
- "tailwindcss": "^4.1.18",
100
- "tailwindcss-animate": "^1.0.7",
101
- "typescript": "^5.9.3",
102
- "vite": "^7.3.0",
103
- "vite-plugin-dts": "^4.5.4",
104
- "vitest": "^4.0.15",
105
- "zod": "^4.2.0",
106
- "zustand": "^5.0.9",
107
- "@storybook/addon-docs": "10.1.9"
108
- },
109
- "peerDependencies": {
110
- "react": "^19.2.3",
111
- "react-dom": "^19.2.3"
112
- },
113
- "config": {
114
- "commitizen": {
115
- "path": "./node_modules/cz-conventional-changelog"
116
- }
117
- }
118
- }
1
+ {
2
+ "name": "@boxcustodia/library",
3
+ "version": "1.8.10",
4
+ "type": "module",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.es.js",
7
+ "types": "dist/index.d.ts",
8
+ "sideEffects": false,
9
+ "files": [
10
+ "/dist"
11
+ ],
12
+ "publishConfig": {
13
+ "access": "public",
14
+ "registry": "https://registry.npmjs.org/"
15
+ },
16
+ "scripts": {
17
+ "format": "biome format --write .",
18
+ "lint": "biome check --write .",
19
+ "build": "tsc && vite build && npm run copy:theme",
20
+ "copy:theme": "copy .\\src\\styles\\theme.css .\\dist || cp ./src/styles/theme.css ./dist",
21
+ "test": "vitest run",
22
+ "test-watch": "vitest",
23
+ "test:ui": "vitest --ui",
24
+ "pre-storybook": "node scripts/toggle-vite-config.js disable",
25
+ "post-storybook": "node scripts/toggle-vite-config.js enable",
26
+ "storybook": "storybook dev -p 6006",
27
+ "storybook:build": "npm run pre-storybook && storybook build && npm run post-storybook",
28
+ "storybook:deploy": "npm run storybook:build && netlify deploy --prod --dir=storybook-static",
29
+ "dev": "storybook dev -p 6006",
30
+ "prepare-husky": "husky",
31
+ "generate": "plop",
32
+ "commit": "npx cz",
33
+ "pre-commit": "lint-staged",
34
+ "release": "npm run build && npx standard-version && git push --follow-tags origin develop && npm publish && npm run storybook:deploy",
35
+ "release:push": "npm run build && git push --follow-tags origin develop && npm publish",
36
+ "release:canary": "npm run build && npx standard-version --prerelease canary && git push --follow-tags origin develop && npm publish --tag canary",
37
+ "release:minor": "npm run build && npx standard-version --release-as minor && git push --follow-tags origin develop && npm publish",
38
+ "release:patch": "npm run build && npx standard-version --release-as patch && git push --follow-tags origin develop && npm publish"
39
+ },
40
+ "lint-staged": {
41
+ "*": [
42
+ "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
43
+ ]
44
+ },
45
+ "keywords": [],
46
+ "author": "",
47
+ "license": "ISC",
48
+ "description": "",
49
+ "dependencies": {
50
+ "@biomejs/biome": "^2.3.8",
51
+ "@radix-ui/react-dialog": "^1.1.15",
52
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
53
+ "@radix-ui/react-popover": "^1.1.15",
54
+ "@radix-ui/react-presence": "^1.1.5",
55
+ "@radix-ui/react-select": "^2.2.6",
56
+ "@radix-ui/react-slot": "^1.2.4",
57
+ "@radix-ui/react-tooltip": "1.2.8",
58
+ "@radix-ui/react-use-controllable-state": "^1.2.2",
59
+ "react-aria-components": "^1.13.0",
60
+ "vite-tsconfig-paths": "^6.0.1"
61
+ },
62
+ "devDependencies": {
63
+ "@chromatic-com/storybook": "^4.1.3",
64
+ "@faker-js/faker": "^10.1.0",
65
+ "@hookform/resolvers": "^5.2.2",
66
+ "@storybook/addon-links": "10.1.9",
67
+ "@storybook/addon-onboarding": "10.1.9",
68
+ "@storybook/react-vite": "10.1.9",
69
+ "@tailwindcss/vite": "^4.1.18",
70
+ "@testing-library/jest-dom": "^6.9.1",
71
+ "@testing-library/react": "16.3.0",
72
+ "@testing-library/user-event": "^14.6.1",
73
+ "@types/lodash": "^4.17.21",
74
+ "@types/node": "^25.0.2",
75
+ "@types/react": "19.2.7",
76
+ "@types/react-dom": "19.2.3",
77
+ "@types/react-transition-group": "^4.4.12",
78
+ "@vitejs/plugin-react": "^5.1.2",
79
+ "autoprefixer": "^10.4.23",
80
+ "class-variance-authority": "^0.7.1",
81
+ "clsx": "^2.1.1",
82
+ "cmdk": "^1.1.1",
83
+ "commitizen": "^4.3.1",
84
+ "cz-conventional-changelog": "^3.3.0",
85
+ "date-fns": "^4.1.0",
86
+ "husky": "^9.1.7",
87
+ "jsdom": "^27.3.0",
88
+ "lint-staged": "^16.2.7",
89
+ "lucide-react": "0.561.0",
90
+ "plop": "^4.0.4",
91
+ "react-arborist": "^3.4.3",
92
+ "react-hook-form": "^7.68.0",
93
+ "react-markdown": "^10.1.0",
94
+ "react-transition-group": "^4.4.5",
95
+ "standard-version": "^9.5.0",
96
+ "storybook": "10.1.9",
97
+ "tailwind-merge": "^3.4.0",
98
+ "tailwind-variants": "^3.2.2",
99
+ "tailwindcss": "^4.1.18",
100
+ "tailwindcss-animate": "^1.0.7",
101
+ "typescript": "^5.9.3",
102
+ "vite": "^7.3.0",
103
+ "vite-plugin-dts": "^4.5.4",
104
+ "vitest": "^4.0.15",
105
+ "zod": "^4.2.0",
106
+ "zustand": "^5.0.9",
107
+ "@storybook/addon-docs": "10.1.9"
108
+ },
109
+ "peerDependencies": {
110
+ "react": "^19.2.3",
111
+ "react-dom": "^19.2.3"
112
+ },
113
+ "config": {
114
+ "commitizen": {
115
+ "path": "./node_modules/cz-conventional-changelog"
116
+ }
117
+ }
118
+ }