@molecule/app-danger-zone-react 4.0.0 → 4.1.1

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/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-12T04:40:11.069Z
6
+ Generated: 2026-11-28T05:20:17.991Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-danger-zone-react
@@ -147,8 +147,8 @@ migrations) or with a DangerZoneSection action.
147
147
  function ConfirmDialog({
148
148
  open,
149
149
  onClose,
150
- title,
151
- description,
150
+ title: titleProp,
151
+ description: descriptionProp,
152
152
  confirmLabel,
153
153
  cancelLabel,
154
154
  onConfirm,
@@ -166,9 +166,9 @@ function ConfirmDialog({
166
166
 
167
167
  Peer dependencies:
168
168
 
169
- - `@molecule/app-react` ^4.0.0
169
+ - `@molecule/app-react` ^4.0.0 || ^5.0.0
170
170
  - `@molecule/app-ui` ^1.0.1
171
- - `@molecule/app-ui-react` ^4.0.0
171
+ - `@molecule/app-ui-react` ^4.4.0
172
172
  - `react` ^18.0.0 || ^19.0.0
173
173
 
174
174
  ### Runtime Dependencies
@@ -1 +1 @@
1
- {"version":3,"file":"DangerZoneSection.d.ts","sourceRoot":"","sources":["../src/DangerZoneSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAK3C,2CAA2C;AAC3C,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,KAAK,EAAE,SAAS,CAAA;IAChB,6CAA6C;IAC7C,WAAW,EAAE,SAAS,CAAA;IACtB,0DAA0D;IAC1D,WAAW,EAAE,SAAS,CAAA;IACtB,yCAAyC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EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,SAAS,GACV,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAsBtC"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { getClassMap } from '@molecule/app-ui';
3
3
  import { Button, Card } from '@molecule/app-ui-react';
4
+ import { Box, Text } from '@molecule/app-ui-react/elements';
4
5
  /**
5
6
  * Card-wrapped section for destructive actions — delete account,
6
7
  * reset data, revoke access. Uses the error/danger accent color and
@@ -9,5 +10,5 @@ import { Button, Card } from '@molecule/app-ui-react';
9
10
  */
10
11
  export function DangerZoneSection({ title, description, actionLabel, onAction, loading, disabled, children, className, dataMolId, }) {
11
12
  const cm = getClassMap();
12
- return (_jsx(Card, { className: className, "data-mol-id": dataMolId, children: _jsxs("div", { className: cm.stack(3), children: [_jsxs("header", { className: cm.stack(1), children: [_jsx("h3", { className: cm.cn(cm.textSize('base'), cm.fontWeight('semibold')), children: title }), _jsx("p", { className: cm.textSize('sm'), children: description })] }), children, _jsx("div", { className: cm.flex({ justify: 'end' }), children: _jsx(Button, { variant: "solid", color: "error", onClick: onAction, disabled: disabled || loading, children: loading ? '…' : actionLabel }) })] }) }));
13
+ return (_jsx(Card, { className: className, "data-mol-id": dataMolId, children: _jsxs(Box, { as: "div", className: cm.stack(3), children: [_jsxs(Box, { as: "header", className: cm.stack(1), children: [_jsx(Text, { as: "h3", className: cm.cn(cm.textSize('base'), cm.fontWeight('semibold')), children: title }), _jsx(Text, { as: "p", className: cm.textSize('sm'), children: description })] }), children, _jsx(Box, { as: "div", className: cm.flex({ justify: 'end' }), children: _jsx(Button, { variant: "solid", color: "error", onClick: onAction, disabled: disabled || loading, children: loading ? '…' : actionLabel }) })] }) }));
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-danger-zone-react",
3
- "version": "4.0.0",
3
+ "version": "4.1.1",
4
4
  "description": "DangerZoneSection + ConfirmDialog for destructive actions (delete account, reset, revoke)",
5
5
  "homepage": "https://www.molecule.dev/packages/app-danger-zone-react",
6
6
  "type": "module",
@@ -33,15 +33,15 @@
33
33
  "directory": "packages/app/features/danger-zone-react"
34
34
  },
35
35
  "peerDependencies": {
36
- "@molecule/app-react": "^4.0.0",
36
+ "@molecule/app-react": "^4.0.0 || ^5.0.0",
37
37
  "@molecule/app-ui": "^1.0.1",
38
- "@molecule/app-ui-react": "^4.0.0",
38
+ "@molecule/app-ui-react": "^4.4.0",
39
39
  "react": "^18.0.0 || ^19.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@molecule/app-react": "4.0.0",
43
- "@molecule/app-ui": "1.3.9",
44
- "@molecule/app-ui-react": "4.0.0",
42
+ "@molecule/app-react": "5.0.0",
43
+ "@molecule/app-ui": "1.17.0",
44
+ "@molecule/app-ui-react": "4.15.0",
45
45
  "@types/node": "26.6.5",
46
46
  "@types/react": "19.3.0",
47
47
  "@types/react-dom": "19.3.0",