@molecule/app-ui-react 4.11.0 → 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 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-26T04:13:56.022Z
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<FloatingInputProps & RefAttributes<HTMLInputElement>>
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
@@ -3481,7 +3493,8 @@ Peer dependencies:
3481
3493
  - `@molecule/app-i18n` ^1.3.0
3482
3494
  - `@molecule/app-icons` ^1.0.1
3483
3495
  - `@molecule/app-react` ^4.15.0
3484
- - `@molecule/app-ui` ^1.12.0
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;AAM1D;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,iHAiDzB,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","sourceRo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ecule/app-ui';
6
+ import { type ReactNode } from 'react';
7
+ import type { FileFieldHandle, FileFieldProps } from '@molecule/app-ui';
8
8
  /**
9
- * Renders one focusable target and delivers portable file selections.
10
- *
11
- * @param props - The field props.
12
- * @returns The rendered field.
9
+ * Renders a browser chooser with its own target or separately rendered triggers.
13
10
  */
14
- export declare function FileField({ accept, children, disabled, maxSize, multiple, onPickError, onRejected, onValueChange, role, ...attrs }: FileFieldProps<ReactNode>): JSX.Element;
11
+ export declare const FileField: import("react").ForwardRefExoticComponent<FileFieldProps<ReactNode> & import("react").RefAttributes<FileFieldHandle>>;
15
12
  //# sourceMappingURL=FileField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileField.d.ts","sourceRoot":"","sources":["../../src/elements/FileField.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAA;AAGxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAW,EACX,UAAU,EACV,aAAa,EACb,IAAe,EACf,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,GAAG,CAAC,OAAO,CAwCzC"}
1
+ {"version":3,"file":"FileField.d.ts","sourceRoot":"","sources":["../../src/elements/FileField.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAc,KAAK,SAAS,EAA0C,MAAM,OAAO,CAAA;AAQ1F,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAIvE;;GAEG;AACH,eAAO,MAAM,SAAS,uHAgIpB,CAAA"}
@@ -4,17 +4,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  *
5
5
  * @module
6
6
  */
7
- import { useRef } from 'react';
8
- import { createBrowserFileInput, fromBrowserFile } from '@molecule/app-filesystem';
7
+ import { forwardRef, useEffect, useImperativeHandle, useRef } from 'react';
8
+ import { createBrowserFileInput, filterPickedFiles, fromBrowserFile, } from '@molecule/app-filesystem';
9
+ import { webElementStyle } from './style.js';
9
10
  /**
10
- * Renders one focusable target and delivers portable file selections.
11
- *
12
- * @param props - The field props.
13
- * @returns The rendered field.
11
+ * Renders a browser chooser with its own target or separately rendered triggers.
14
12
  */
15
- export function FileField({ accept, children, disabled, maxSize, multiple, onPickError, onRejected, onValueChange, role = 'button', ...attrs }) {
13
+ export const FileField = forwardRef(function FileField({ accept, children, disabled, externalTrigger, maxSize, multiple, onPickError, onRejected, onValueChange, role = 'button', style, tabIndex, webDrop, webInputDisplayNone, webStyle, ...attrs }, ref) {
16
14
  const input = useRef(null);
17
- const handlers = createBrowserFileInput(() => input.current, () => ({
15
+ const options = {
18
16
  accept,
19
17
  disabled,
20
18
  maxSize,
@@ -22,7 +20,67 @@ export function FileField({ accept, children, disabled, maxSize, multiple, onPic
22
20
  onPickError,
23
21
  onRejected,
24
22
  onFiles: onValueChange,
25
- }), fromBrowserFile);
26
- return (_jsxs("div", { "data-mol-id": "file-field", role: role, ...attrs, tabIndex: disabled ? -1 : 0, "aria-disabled": disabled, onClick: handlers.onClick, onKeyDown: handlers.onKeyDown, onDragOver: handlers.onDragOver, onDrop: handlers.onDrop, children: [_jsx("input", { ref: input, type: "file", hidden: true, accept: accept, multiple: multiple, disabled: disabled, onChange: handlers.onChange }), children] }));
27
- }
23
+ };
24
+ const handlers = createBrowserFileInput(() => input.current, () => options, fromBrowserFile);
25
+ useImperativeHandle(ref, () => ({
26
+ pick: () => handlers.onClick({ target: null, defaultPrevented: false }),
27
+ }));
28
+ const dropMultiple = webDrop?.multiple ?? multiple;
29
+ const onDroppedFiles = webDrop?.onValueChange ?? onValueChange;
30
+ const drop = createBrowserFileInput(() => input.current, () => webDrop?.rejectBatch
31
+ ? { disabled, onPickError, multiple: true, onFiles: deliverWholeDrop }
32
+ : { ...options, multiple: dropMultiple, onFiles: onDroppedFiles }, fromBrowserFile);
33
+ /**
34
+ * Delivers the batch only if every file passes the drop policy.
35
+ * @param files - The files copied from the browser drop.
36
+ */
37
+ function deliverWholeDrop(files) {
38
+ const { accepted, rejected } = filterPickedFiles(files, {
39
+ accept,
40
+ maxSize,
41
+ multiple: dropMultiple,
42
+ });
43
+ if (rejected.length > 0)
44
+ onRejected?.(rejected);
45
+ else if (accepted.length > 0)
46
+ onDroppedFiles(accepted);
47
+ }
48
+ /**
49
+ * Marks an enabled drop target active.
50
+ * @param event - The browser drag-over event.
51
+ */
52
+ function dragOver(event) {
53
+ if (drop.onDragOver(event))
54
+ webDrop?.onActiveChange?.(true);
55
+ }
56
+ /** Clears the drag highlight after a leave or a drop. */
57
+ function dragLeave() {
58
+ webDrop?.onActiveChange?.(false);
59
+ }
60
+ /**
61
+ * Resets the drag state and delivers the files.
62
+ * @param event - The browser drop event.
63
+ */
64
+ function dropFiles(event) {
65
+ dragLeave();
66
+ drop.onDrop(event);
67
+ }
68
+ const dropTarget = webDrop?.target;
69
+ useEffect(() => {
70
+ if (!(dropTarget instanceof HTMLElement))
71
+ return;
72
+ dropTarget.addEventListener('dragover', dragOver);
73
+ dropTarget.addEventListener('dragleave', dragLeave);
74
+ dropTarget.addEventListener('drop', dropFiles);
75
+ return () => {
76
+ dropTarget.removeEventListener('dragover', dragOver);
77
+ dropTarget.removeEventListener('dragleave', dragLeave);
78
+ dropTarget.removeEventListener('drop', dropFiles);
79
+ };
80
+ });
81
+ const chooser = (_jsx("input", { ref: input, type: "file", hidden: !webInputDisplayNone, style: webInputDisplayNone ? { display: 'none' } : undefined, accept: accept, multiple: multiple, disabled: disabled, onChange: handlers.onChange }));
82
+ if (externalTrigger)
83
+ return chooser;
84
+ return (_jsxs("div", { "data-mol-id": "file-field", role: role, ...attrs, tabIndex: tabIndex ?? (disabled ? -1 : 0), "aria-disabled": disabled, style: webElementStyle(style, webStyle), onClick: handlers.onClick, onKeyDown: handlers.onKeyDown, onDragOver: dropTarget === undefined ? dragOver : undefined, onDragLeave: dropTarget === undefined ? dragLeave : undefined, onDrop: dropTarget === undefined ? dropFiles : undefined, children: [chooser, children] }));
85
+ });
28
86
  //# sourceMappingURL=FileField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FileField.js","sourceRoot":"","sources":["../../src/elements/FileField.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AAEH,OAAO,EAA4B,MAAM,EAAE,MAAM,OAAO,CAAA;AAExD,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAGlF;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,EACxB,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,WAAW,EACX,UAAU,EACV,aAAa,EACb,IAAI,GAAG,QAAQ,EACf,GAAG,KAAK,EACkB;IAC1B,MAAM,KAAK,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAA;IAC5C,MAAM,QAAQ,GAAG,sBAAsB,CACrC,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,EACnB,GAAG,EAAE,CAAC,CAAC;QACL,MAAM;QACN,QAAQ;QACR,OAAO;QACP,QAAQ;QACR,WAAW;QACX,UAAU;QACV,OAAO,EAAE,aAAa;KACvB,CAAC,EACF,eAAe,CAChB,CAAA;IAED,OAAO,CACL,8BACc,YAAY,EACxB,IAAI,EAAE,IAAI,KACN,KAAK,EACT,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,mBACZ,QAAQ,EACvB,OAAO,EAAE,QAAQ,CAAC,OAAO,EACzB,SAAS,EAAE,QAAQ,CAAC,SAAS,EAC7B,UAAU,EAAE,QAAQ,CAAC,UAAU,EAC/B,MAAM,EAAE,QAAQ,CAAC,MAAM,aAEvB,gBACE,GAAG,EAAE,KAA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CAAC,KAAK,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,QAAQ,CAAC,OAAO,EACzB,SAAS,EAAE,QAAQ,CAAC,SAAS,EAC7B,UAAU,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAC3D,WAAW,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAC7D,MAAM,EAAE,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,aAEvD,OAAO,EACP,QAAQ,IACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA"}
@@ -1,7 +1,6 @@
1
1
  /**
2
- * Renderer-neutral elements for React features: one feature renders on React DOM through this
3
- * entry and on React Native through `@molecule/app-ui-react-native/elements`, which the
4
- * `react-native` export condition resolves this entry to.
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.
5
4
  *
6
5
  * @example
7
6
  * ```tsx
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/elements/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/elements/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA"}
@@ -1,7 +1,6 @@
1
1
  /**
2
- * Renderer-neutral elements for React features: one feature renders on React DOM through this
3
- * entry and on React Native through `@molecule/app-ui-react-native/elements`, which the
4
- * `react-native` export condition resolves this entry to.
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.
5
4
  *
6
5
  * @example
7
6
  * ```tsx
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/elements/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/elements/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,gBAAgB,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.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 * from './components/index.js';
150
- export * from './types.js';
151
- export * from './utilities.js';
152
+ export { FileField } from './elements/FileField.js';
153
+ export * from './shared.js';
152
154
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmJG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
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 * from './components/index.js';
150
- export * from './types.js';
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmJG;AAEH,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA"}
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,8 @@
1
+ /**
2
+ * Public React Native entry for the React UI kit.
3
+ *
4
+ * @module
5
+ */
6
+ export { FileField } from './elements/native.js';
7
+ export * from './shared.js';
8
+ //# sourceMappingURL=index.native.d.ts.map
@@ -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,8 @@
1
+ /**
2
+ * Public React Native entry for the React UI kit.
3
+ *
4
+ * @module
5
+ */
6
+ export { FileField } from './elements/native.js';
7
+ export * from './shared.js';
8
+ //# sourceMappingURL=index.native.js.map
@@ -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"}
@@ -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
@@ -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,yBAAyB,CAAA;AACvC,cAAc,YAAY,CAAA;AAC1B,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA"}
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
@@ -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,yBAAyB,CAAA;AACvC,cAAc,YAAY,CAAA"}
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,7 @@
1
+ /**
2
+ * React Native implementation of the renderer-neutral overlay platform.
3
+ *
4
+ * @module
5
+ */
6
+ export * from '@molecule/app-ui-react-native/platform';
7
+ //# sourceMappingURL=native.d.ts.map
@@ -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,7 @@
1
+ /**
2
+ * React Native implementation of the renderer-neutral overlay platform.
3
+ *
4
+ * @module
5
+ */
6
+ export * from '@molecule/app-ui-react-native/platform';
7
+ //# sourceMappingURL=native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native.js","sourceRoot":"","sources":["../../src/platform/native.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,wCAAwC,CAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Public components, types and utilities shared by both renderer entries.
3
+ *
4
+ * @module
5
+ */
6
+ export * from './components/index.js';
7
+ export * from './types.js';
8
+ export * from './utilities.js';
9
+ //# sourceMappingURL=shared.d.ts.map
@@ -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,9 @@
1
+ /**
2
+ * Public components, types and utilities shared by both renderer entries.
3
+ *
4
+ * @module
5
+ */
6
+ export * from './components/index.js';
7
+ export * from './types.js';
8
+ export * from './utilities.js';
9
+ //# sourceMappingURL=shared.js.map
@@ -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.11.0",
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
  },
@@ -60,7 +84,8 @@
60
84
  "@molecule/app-i18n": "^1.3.0",
61
85
  "@molecule/app-icons": "^1.0.1",
62
86
  "@molecule/app-react": "^4.15.0",
63
- "@molecule/app-ui": "^1.12.0",
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
  }