@molecule/app-ui-react 3.0.0 → 3.0.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-10-
|
|
6
|
+
Generated: 2026-10-28T08:44:23.813Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-react
|
|
@@ -2723,6 +2723,12 @@ const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HT
|
|
|
2723
2723
|
|
|
2724
2724
|
Button component.
|
|
2725
2725
|
|
|
2726
|
+
While `loading` is true, the native button is disabled and marked busy.
|
|
2727
|
+
Drive it from the request's pending state so an unavailable interaction is
|
|
2728
|
+
visible and the next click is accepted after the request settles. Loading
|
|
2729
|
+
does not queue clicks; an app that must preserve every intent needs its own
|
|
2730
|
+
serial action queue.
|
|
2731
|
+
|
|
2726
2732
|
```typescript
|
|
2727
2733
|
const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>
|
|
2728
2734
|
```
|
|
@@ -7,6 +7,12 @@ import React from 'react';
|
|
|
7
7
|
import type { ButtonProps } from '@molecule/app-ui';
|
|
8
8
|
/**
|
|
9
9
|
* Button component.
|
|
10
|
+
*
|
|
11
|
+
* While `loading` is true, the native button is disabled and marked busy.
|
|
12
|
+
* Drive it from the request's pending state so an unavailable interaction is
|
|
13
|
+
* visible and the next click is accepted after the request settles. Loading
|
|
14
|
+
* does not queue clicks; an app that must preserve every intent needs its own
|
|
15
|
+
* serial action queue.
|
|
10
16
|
*/
|
|
11
17
|
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
18
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAKnD
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAKnD;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,uFAgDlB,CAAA"}
|
|
@@ -9,6 +9,12 @@ import { getClassMap } from '@molecule/app-ui';
|
|
|
9
9
|
import { Spinner } from './Spinner.js';
|
|
10
10
|
/**
|
|
11
11
|
* Button component.
|
|
12
|
+
*
|
|
13
|
+
* While `loading` is true, the native button is disabled and marked busy.
|
|
14
|
+
* Drive it from the request's pending state so an unavailable interaction is
|
|
15
|
+
* visible and the next click is accepted after the request settles. Loading
|
|
16
|
+
* does not queue clicks; an app that must preserve every intent needs its own
|
|
17
|
+
* serial action queue.
|
|
12
18
|
*/
|
|
13
19
|
export const Button = forwardRef(({ children, variant = 'solid', color = 'primary', size = 'md', loading = false, loadingText, fullWidth = false, leftIcon, rightIcon, className, style, testId, disabled, type = 'button', onClick, ...rest }, ref) => {
|
|
14
20
|
const cm = getClassMap();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/components/Button.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,WAAW,EAA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,IAAI,CACzB,eAAM,SAAS,EAAE,EAAE,CAAC,cAAc,YAAG,QAA2B,GAAQ,CACzE,EACA,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAE,QAA4B,EACpE,CAAC,OAAO,IAAI,CAAC,CAAC,SAAS,IAAI,CAC1B,eAAM,SAAS,EAAE,EAAE,CAAC,eAAe,YAAG,SAA4B,GAAQ,CAC3E,IACM,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "React UI components for molecule.dev",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@molecule/app-i18n": "1.1.1",
|
|
46
46
|
"@molecule/app-icons": "1.0.3",
|
|
47
|
-
"@molecule/app-react": "3.0.
|
|
47
|
+
"@molecule/app-react": "3.0.1",
|
|
48
48
|
"@testing-library/react": "16.3.3",
|
|
49
49
|
"@types/node": "26.6.5",
|
|
50
50
|
"@types/react": "19.3.0",
|