@molecule/app-ui-react 4.12.1 → 4.13.0
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 +19 -2
- package/dist/components/FloatingInput.d.ts +2 -2
- package/dist/components/FloatingInput.d.ts.map +1 -1
- package/dist/components/FloatingInput.js +2 -1
- package/dist/components/FloatingInput.js.map +1 -1
- package/dist/elements/index.d.ts +2 -2
- package/dist/elements/index.js +2 -2
- package/dist/elements/native.d.ts +8 -0
- package/dist/elements/native.d.ts.map +1 -0
- package/dist/elements/native.js +8 -0
- package/dist/elements/native.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.native.d.ts +8 -0
- package/dist/index.native.d.ts.map +1 -0
- package/dist/index.native.js +8 -0
- package/dist/index.native.js.map +1 -0
- package/dist/index.web.d.ts +0 -1
- package/dist/index.web.d.ts.map +1 -1
- package/dist/index.web.js +0 -1
- package/dist/index.web.js.map +1 -1
- package/dist/platform/native.d.ts +7 -0
- package/dist/platform/native.d.ts.map +1 -0
- package/dist/platform/native.js +7 -0
- package/dist/platform/native.js.map +1 -0
- package/dist/shared.d.ts +9 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +9 -0
- package/dist/shared.js.map +1 -0
- package/package.json +34 -3
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-
|
|
6
|
+
Generated: 2026-11-27T11:11:32.048Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-ui-react
|
|
@@ -3163,7 +3163,9 @@ floating text did nothing because it wasn't associated with anything.
|
|
|
3163
3163
|
Input/Select/Textarea's id-collision fix.
|
|
3164
3164
|
|
|
3165
3165
|
```typescript
|
|
3166
|
-
const FloatingInput: ForwardRefExoticComponent<
|
|
3166
|
+
const FloatingInput: ForwardRefExoticComponent<
|
|
3167
|
+
FloatingInputProps & Pick<TextFieldProps, 'onValueChange'> & RefAttributes<HTMLInputElement>
|
|
3168
|
+
>
|
|
3167
3169
|
```
|
|
3168
3170
|
|
|
3169
3171
|
#### `Form`
|
|
@@ -3471,6 +3473,16 @@ Displays supplemental content and forwards the tooltip's host handle while visib
|
|
|
3471
3473
|
const Tooltip: ForwardRefExoticComponent<TooltipProps & RefAttributes<ElementHandle>>
|
|
3472
3474
|
```
|
|
3473
3475
|
|
|
3476
|
+
#### `FileField`
|
|
3477
|
+
|
|
3478
|
+
Renders a browser chooser with its own target or separately rendered triggers.
|
|
3479
|
+
|
|
3480
|
+
```typescript
|
|
3481
|
+
const FileField: ForwardRefExoticComponent<
|
|
3482
|
+
FileFieldProps<ReactNode> & RefAttributes<FileFieldHandle>
|
|
3483
|
+
>
|
|
3484
|
+
```
|
|
3485
|
+
|
|
3474
3486
|
## Injection Notes
|
|
3475
3487
|
|
|
3476
3488
|
### Requirements
|
|
@@ -3482,6 +3494,7 @@ Peer dependencies:
|
|
|
3482
3494
|
- `@molecule/app-icons` ^1.0.1
|
|
3483
3495
|
- `@molecule/app-react` ^4.15.0
|
|
3484
3496
|
- `@molecule/app-ui` ^1.14.0
|
|
3497
|
+
- `@molecule/app-ui-react-native` ^2.1.0 _(optional)_
|
|
3485
3498
|
- `react` ^18.0.0 || ^19.0.0
|
|
3486
3499
|
- `react-dom` ^18.0.0 || ^19.0.0
|
|
3487
3500
|
|
|
@@ -3495,6 +3508,7 @@ Peer dependencies:
|
|
|
3495
3508
|
- `@molecule/app-pointer-events-dom`
|
|
3496
3509
|
- `@molecule/app-react`
|
|
3497
3510
|
- `@molecule/app-ui`
|
|
3511
|
+
- `@molecule/app-ui-react-native` _(optional)_
|
|
3498
3512
|
- `react`
|
|
3499
3513
|
- `react-dom`
|
|
3500
3514
|
|
|
@@ -3590,6 +3604,9 @@ doing anything" on these components:
|
|
|
3590
3604
|
- **`Textarea`** `autoResize` also works uncontrolled (`defaultValue` +
|
|
3591
3605
|
user typing): it listens to `input` events rather than only reacting to
|
|
3592
3606
|
the controlled `value` prop.
|
|
3607
|
+
- **React Native** uses the `@molecule/app-ui-react-native` peer for elements and overlays.
|
|
3608
|
+
Native scaffolds include that kit. **`FileField`** uses the browser chooser on web and the
|
|
3609
|
+
bonded file picker on iOS and Android. Expo scaffolds wire the Expo picker.
|
|
3593
3610
|
|
|
3594
3611
|
## Translations
|
|
3595
3612
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import type { FloatingInputProps } from '@molecule/app-ui';
|
|
6
|
+
import type { FloatingInputProps, TextFieldProps } from '@molecule/app-ui';
|
|
7
7
|
/**
|
|
8
8
|
* An input with a floating label.
|
|
9
9
|
*
|
|
@@ -22,5 +22,5 @@ import type { FloatingInputProps } from '@molecule/app-ui';
|
|
|
22
22
|
* `id` falls back to `useId()` when the caller doesn't pass one, mirroring
|
|
23
23
|
* Input/Select/Textarea's id-collision fix.
|
|
24
24
|
*/
|
|
25
|
-
export declare const FloatingInput: import("react").ForwardRefExoticComponent<FloatingInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
25
|
+
export declare const FloatingInput: import("react").ForwardRefExoticComponent<FloatingInputProps & Pick<TextFieldProps, "onValueChange"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
26
26
|
//# sourceMappingURL=FloatingInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingInput.d.ts","sourceRoot":"","sources":["../../src/components/FloatingInput.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"FloatingInput.d.ts","sourceRoot":"","sources":["../../src/components/FloatingInput.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAM1E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,yJAsDzB,CAAA"}
|
|
@@ -26,7 +26,7 @@ import { rootProps } from '../utilities/rootProps.js';
|
|
|
26
26
|
* `id` falls back to `useId()` when the caller doesn't pass one, mirroring
|
|
27
27
|
* Input/Select/Textarea's id-collision fix.
|
|
28
28
|
*/
|
|
29
|
-
export const FloatingInput = forwardRef(({ placeholder, className, style, testId, value: valueProp, onChange, defaultValue, id, ...props }, ref) => {
|
|
29
|
+
export const FloatingInput = forwardRef(({ placeholder, className, style, testId, value: valueProp, onChange, onValueChange, defaultValue, id, ...props }, ref) => {
|
|
30
30
|
const cm = getClassMap();
|
|
31
31
|
const [internalValue, setInternalValue] = useState(String(defaultValue ?? ''));
|
|
32
32
|
const isControlled = valueProp !== undefined;
|
|
@@ -36,6 +36,7 @@ export const FloatingInput = forwardRef(({ placeholder, className, style, testId
|
|
|
36
36
|
const handleValueChange = (text) => {
|
|
37
37
|
if (!isControlled)
|
|
38
38
|
setInternalValue(text);
|
|
39
|
+
onValueChange?.(text);
|
|
39
40
|
};
|
|
40
41
|
return (_jsxs(Box, { as: "span", className: cm.floatingInputWrapper, children: [_jsx(TextField, { as: "input", ref: ref, id: inputId, "data-testid": testId, ...rootProps(props), placeholder: placeholder, className: cm.cn(cm.input(), cm.floatingInput, className), webStyle: style, value: value, onChange: onChange, onValueChange: handleValueChange }), placeholder && (_jsx(Text, { as: "label", htmlFor: inputId, className: cm.floatingLabel, children: placeholder }))] }));
|
|
41
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingInput.js","sourceRoot":"","sources":["../../src/components/FloatingInput.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"FloatingInput.js","sourceRoot":"","sources":["../../src/components/FloatingInput.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAEtE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,UAAU,CAIrC,CACE,EACE,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,KAAK,EAAE,SAAS,EAChB,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,EAAE,EACF,GAAG,KAAK,EACT,EACD,GAAG,EACH,EAAE;IACF,MAAM,EAAE,GAAG,WAAW,EAAE,CAAA;IACxB,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,CAAA;IAC9E,MAAM,YAAY,GAAG,SAAS,KAAK,SAAS,CAAA;IAC5C,MAAM,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,aAAa,CAAA;IAC9D,MAAM,WAAW,GAAG,KAAK,EAAE,CAAA;IAC3B,MAAM,OAAO,GAAG,EAAE,IAAI,WAAW,CAAA;IAEjC,MAAM,iBAAiB,GAAG,CAAC,IAAY,EAAQ,EAAE;QAC/C,IAAI,CAAC,YAAY;YAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;QACzC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,OAAO,CACL,MAAC,GAAG,IAAC,EAAE,EAAC,MAAM,EAAC,SAAS,EAAE,EAAE,CAAC,oBAAoB,aAC/C,KAAC,SAAS,IACR,EAAE,EAAC,OAAO,EACV,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,OAAO,iBACE,MAAM,KACf,SAAS,CAAC,KAAK,CAAC,EACpB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,CAAC,EACzD,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,iBAAiB,GAChC,EACD,WAAW,IAAI,CACd,KAAC,IAAI,IAAC,EAAE,EAAC,OAAO,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC,aAAa,YAC3D,WAAW,GACP,CACR,IACG,CACP,CAAA;AACH,CAAC,CACF,CAAA;AACD,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA"}
|
package/dist/elements/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Renderer-neutral elements for React features.
|
|
3
|
-
*
|
|
2
|
+
* Renderer-neutral elements for React features. The same import resolves to DOM elements in browser
|
|
3
|
+
* projects and to `@molecule/app-ui-react-native/elements` on React Native.
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```tsx
|
package/dist/elements/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Renderer-neutral elements for React features.
|
|
3
|
-
*
|
|
2
|
+
* Renderer-neutral elements for React features. The same import resolves to DOM elements in browser
|
|
3
|
+
* projects and to `@molecule/app-ui-react-native/elements` on React Native.
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```tsx
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The renderer-neutral elements under the `react-native` export condition: React Native's, so a
|
|
3
|
+
* feature written against `@molecule/app-ui-react/elements` renders on React Native unchanged.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
export * from '@molecule/app-ui-react-native/elements';
|
|
8
|
+
//# sourceMappingURL=native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../src/elements/native.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,wCAAwC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The renderer-neutral elements under the `react-native` export condition: React Native's, so a
|
|
3
|
+
* feature written against `@molecule/app-ui-react/elements` renders on React Native unchanged.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
export * from '@molecule/app-ui-react-native/elements';
|
|
8
|
+
//# sourceMappingURL=native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.js","sourceRoot":"","sources":["../../src/elements/native.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,wCAAwC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -143,10 +143,12 @@
|
|
|
143
143
|
* - **`Textarea`** `autoResize` also works uncontrolled (`defaultValue` +
|
|
144
144
|
* user typing): it listens to `input` events rather than only reacting to
|
|
145
145
|
* the controlled `value` prop.
|
|
146
|
+
* - **React Native** uses the `@molecule/app-ui-react-native` peer for elements and overlays.
|
|
147
|
+
* Native scaffolds include that kit. **`FileField`** uses the browser chooser on web and the
|
|
148
|
+
* bonded file picker on iOS and Android. Expo scaffolds wire the Expo picker.
|
|
146
149
|
*
|
|
147
150
|
* @module
|
|
148
151
|
*/
|
|
149
|
-
export
|
|
150
|
-
export * from './
|
|
151
|
-
export * from './utilities.js';
|
|
152
|
+
export { FileField } from './elements/FileField.js';
|
|
153
|
+
export * from './shared.js';
|
|
152
154
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsJG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,cAAc,aAAa,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -143,10 +143,12 @@
|
|
|
143
143
|
* - **`Textarea`** `autoResize` also works uncontrolled (`defaultValue` +
|
|
144
144
|
* user typing): it listens to `input` events rather than only reacting to
|
|
145
145
|
* the controlled `value` prop.
|
|
146
|
+
* - **React Native** uses the `@molecule/app-ui-react-native` peer for elements and overlays.
|
|
147
|
+
* Native scaffolds include that kit. **`FileField`** uses the browser chooser on web and the
|
|
148
|
+
* bonded file picker on iOS and Android. Expo scaffolds wire the Expo picker.
|
|
146
149
|
*
|
|
147
150
|
* @module
|
|
148
151
|
*/
|
|
149
|
-
export
|
|
150
|
-
export * from './
|
|
151
|
-
export * from './utilities.js';
|
|
152
|
+
export { FileField } from './elements/FileField.js';
|
|
153
|
+
export * from './shared.js';
|
|
152
154
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsJG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../src/index.native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,cAAc,aAAa,CAAA"}
|
package/dist/index.web.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export { ConfirmButton } from './components/ConfirmButton.web.js';
|
|
|
7
7
|
export { Dropdown, DropdownLabel, DropdownSeparator } from './components/Dropdown.web.js';
|
|
8
8
|
export { Toast, ToastContainer, ToastProvider, useToast } from './components/Toast.web.js';
|
|
9
9
|
export { Tooltip } from './components/Tooltip.web.js';
|
|
10
|
-
export * from './elements/FileField.js';
|
|
11
10
|
export * from './index.js';
|
|
12
11
|
export type { ToastProps, TooltipProps } from '@molecule/app-ui';
|
|
13
12
|
//# sourceMappingURL=index.web.d.ts.map
|
package/dist/index.web.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../src/index.web.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACzF,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../src/index.web.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACzF,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,cAAc,YAAY,CAAA;AAC1B,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/index.web.js
CHANGED
|
@@ -7,6 +7,5 @@ export { ConfirmButton } from './components/ConfirmButton.web.js';
|
|
|
7
7
|
export { Dropdown, DropdownLabel, DropdownSeparator } from './components/Dropdown.web.js';
|
|
8
8
|
export { Toast, ToastContainer, ToastProvider, useToast } from './components/Toast.web.js';
|
|
9
9
|
export { Tooltip } from './components/Tooltip.web.js';
|
|
10
|
-
export * from './elements/FileField.js';
|
|
11
10
|
export * from './index.js';
|
|
12
11
|
//# sourceMappingURL=index.web.js.map
|
package/dist/index.web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../src/index.web.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACzF,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.web.js","sourceRoot":"","sources":["../src/index.web.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACzF,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../src/platform/native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,wCAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.js","sourceRoot":"","sources":["../../src/platform/native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,wCAAwC,CAAA"}
|
package/dist/shared.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
|
package/dist/shared.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-ui-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.13.0",
|
|
4
4
|
"description": "React UI primitive bundle for molecule.dev — Button, Modal, Tooltip, Toast, Alert, Card, Badge, Avatar, Tabs, Accordion, Dropdown, Select, Checkbox, Switch, Input, Table, Spinner, Skeleton, Progress and more. Import these primitives; do not rebuild them.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,14 +8,22 @@
|
|
|
8
8
|
"types": "dist/index.web.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
+
"browser": {
|
|
12
|
+
"types": "./dist/index.web.d.ts",
|
|
13
|
+
"default": "./dist/index.web.js"
|
|
14
|
+
},
|
|
11
15
|
"react-native": {
|
|
12
|
-
"types": "./dist/index.d.ts",
|
|
13
|
-
"default": "./dist/index.js"
|
|
16
|
+
"types": "./dist/index.native.d.ts",
|
|
17
|
+
"default": "./dist/index.native.js"
|
|
14
18
|
},
|
|
15
19
|
"types": "./dist/index.web.d.ts",
|
|
16
20
|
"import": "./dist/index.web.js"
|
|
17
21
|
},
|
|
18
22
|
"./components/Tooltip.js": {
|
|
23
|
+
"browser": {
|
|
24
|
+
"types": "./dist/components/Tooltip.web.d.ts",
|
|
25
|
+
"default": "./dist/components/Tooltip.web.js"
|
|
26
|
+
},
|
|
19
27
|
"react-native": {
|
|
20
28
|
"types": "./dist/components/Tooltip.native.d.ts",
|
|
21
29
|
"default": "./dist/components/Tooltip.native.js"
|
|
@@ -24,10 +32,26 @@
|
|
|
24
32
|
"import": "./dist/components/Tooltip.web.js"
|
|
25
33
|
},
|
|
26
34
|
"./elements": {
|
|
35
|
+
"browser": {
|
|
36
|
+
"types": "./dist/elements/index.d.ts",
|
|
37
|
+
"default": "./dist/elements/index.js"
|
|
38
|
+
},
|
|
39
|
+
"react-native": {
|
|
40
|
+
"types": "./dist/elements/native.d.ts",
|
|
41
|
+
"default": "./dist/elements/native.js"
|
|
42
|
+
},
|
|
27
43
|
"types": "./dist/elements/index.d.ts",
|
|
28
44
|
"import": "./dist/elements/index.js"
|
|
29
45
|
},
|
|
30
46
|
"./platform": {
|
|
47
|
+
"browser": {
|
|
48
|
+
"types": "./dist/platform/index.d.ts",
|
|
49
|
+
"default": "./dist/platform/index.js"
|
|
50
|
+
},
|
|
51
|
+
"react-native": {
|
|
52
|
+
"types": "./dist/platform/native.d.ts",
|
|
53
|
+
"default": "./dist/platform/native.js"
|
|
54
|
+
},
|
|
31
55
|
"types": "./dist/platform/index.d.ts",
|
|
32
56
|
"import": "./dist/platform/index.js"
|
|
33
57
|
},
|
|
@@ -61,6 +85,7 @@
|
|
|
61
85
|
"@molecule/app-icons": "^1.0.1",
|
|
62
86
|
"@molecule/app-react": "^4.15.0",
|
|
63
87
|
"@molecule/app-ui": "^1.14.0",
|
|
88
|
+
"@molecule/app-ui-react-native": "^2.1.0",
|
|
64
89
|
"react": "^18.0.0 || ^19.0.0",
|
|
65
90
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
66
91
|
},
|
|
@@ -70,6 +95,7 @@
|
|
|
70
95
|
"@molecule/app-icons": "1.0.4",
|
|
71
96
|
"@molecule/app-react": "4.17.0",
|
|
72
97
|
"@molecule/app-routing": "1.5.3",
|
|
98
|
+
"@molecule/app-ui-react-native": "2.1.0",
|
|
73
99
|
"@testing-library/react": "16.3.3",
|
|
74
100
|
"@types/node": "26.6.5",
|
|
75
101
|
"@types/react": "19.3.0",
|
|
@@ -89,5 +115,10 @@
|
|
|
89
115
|
"bugs": "https://github.com/molecule-dev/molecule/issues",
|
|
90
116
|
"publishConfig": {
|
|
91
117
|
"access": "public"
|
|
118
|
+
},
|
|
119
|
+
"peerDependenciesMeta": {
|
|
120
|
+
"@molecule/app-ui-react-native": {
|
|
121
|
+
"optional": true
|
|
122
|
+
}
|
|
92
123
|
}
|
|
93
124
|
}
|