@molecule/app-ui-react-native 2.0.1 → 2.2.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 +81 -10
- package/dist/components/Alert.d.ts.map +1 -1
- package/dist/components/Alert.js +2 -3
- package/dist/components/Button.d.ts +3 -1
- package/dist/components/Button.d.ts.map +1 -1
- package/dist/components/Button.js +35 -3
- package/dist/components/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton.js +13 -12
- package/dist/components/Spinner.js +2 -2
- package/dist/elements/Anchor.d.ts +15 -0
- package/dist/elements/Anchor.d.ts.map +1 -0
- package/dist/elements/Anchor.js +57 -0
- package/dist/elements/Box.d.ts +19 -0
- package/dist/elements/Box.d.ts.map +1 -0
- package/dist/elements/Box.js +157 -0
- package/dist/elements/CheckField.d.ts +18 -0
- package/dist/elements/CheckField.d.ts.map +1 -0
- package/dist/elements/CheckField.js +103 -0
- package/dist/elements/Disclosure.d.ts +11 -0
- package/dist/elements/Disclosure.d.ts.map +1 -0
- package/dist/elements/Disclosure.js +67 -0
- package/dist/elements/Fieldset.d.ts +16 -0
- package/dist/elements/Fieldset.d.ts.map +1 -0
- package/dist/elements/Fieldset.js +34 -0
- package/dist/elements/FileField.d.ts +12 -0
- package/dist/elements/FileField.d.ts.map +1 -0
- package/dist/elements/FileField.js +111 -0
- package/dist/elements/FormArea.d.ts +18 -0
- package/dist/elements/FormArea.d.ts.map +1 -0
- package/dist/elements/FormArea.js +42 -0
- package/dist/elements/GlyphIcon.d.ts +19 -0
- package/dist/elements/GlyphIcon.d.ts.map +1 -0
- package/dist/elements/GlyphIcon.js +43 -0
- package/dist/elements/Image.d.ts +17 -0
- package/dist/elements/Image.d.ts.map +1 -0
- package/dist/elements/Image.js +26 -0
- package/dist/elements/Link.d.ts +20 -0
- package/dist/elements/Link.d.ts.map +1 -0
- package/dist/elements/Link.js +53 -0
- package/dist/elements/Pressable.d.ts +18 -0
- package/dist/elements/Pressable.d.ts.map +1 -0
- package/dist/elements/Pressable.js +108 -0
- package/dist/elements/PulseDots.d.ts +15 -0
- package/dist/elements/PulseDots.d.ts.map +1 -0
- package/dist/elements/PulseDots.js +78 -0
- package/dist/elements/RangeField.d.ts +11 -0
- package/dist/elements/RangeField.d.ts.map +1 -0
- package/dist/elements/RangeField.js +266 -0
- package/dist/elements/RichText.d.ts +23 -0
- package/dist/elements/RichText.d.ts.map +1 -0
- package/dist/elements/RichText.js +55 -0
- package/dist/elements/Rule.d.ts +11 -0
- package/dist/elements/Rule.d.ts.map +1 -0
- package/dist/elements/Rule.js +19 -0
- package/dist/elements/ScrollArea.d.ts +21 -0
- package/dist/elements/ScrollArea.d.ts.map +1 -0
- package/dist/elements/ScrollArea.js +101 -0
- package/dist/elements/SelectAction.d.ts +20 -0
- package/dist/elements/SelectAction.d.ts.map +1 -0
- package/dist/elements/SelectAction.js +117 -0
- package/dist/elements/SelectField.d.ts +11 -0
- package/dist/elements/SelectField.d.ts.map +1 -0
- package/dist/elements/SelectField.js +220 -0
- package/dist/elements/SelectMenu.d.ts +19 -0
- package/dist/elements/SelectMenu.d.ts.map +1 -0
- package/dist/elements/SelectMenu.js +122 -0
- package/dist/elements/Svg.d.ts +155 -0
- package/dist/elements/Svg.d.ts.map +1 -0
- package/dist/elements/Svg.js +535 -0
- package/dist/elements/TableBox.d.ts +19 -0
- package/dist/elements/TableBox.d.ts.map +1 -0
- package/dist/elements/TableBox.js +87 -0
- package/dist/elements/TableCell.d.ts +16 -0
- package/dist/elements/TableCell.d.ts.map +1 -0
- package/dist/elements/TableCell.js +69 -0
- package/dist/elements/Text.d.ts +17 -0
- package/dist/elements/Text.d.ts.map +1 -0
- package/dist/elements/Text.js +96 -0
- package/dist/elements/TextField.d.ts +25 -0
- package/dist/elements/TextField.d.ts.map +1 -0
- package/dist/elements/TextField.js +257 -0
- package/dist/elements/accessibility.d.ts +36 -0
- package/dist/elements/accessibility.d.ts.map +1 -0
- package/dist/elements/accessibility.js +244 -0
- package/dist/elements/className.d.ts +45 -0
- package/dist/elements/className.d.ts.map +1 -0
- package/dist/elements/className.js +8 -0
- package/dist/elements/decimal.d.ts +5 -0
- package/dist/elements/decimal.d.ts.map +1 -0
- package/dist/elements/decimal.js +11 -0
- package/dist/elements/documentUrl.d.ts +35 -0
- package/dist/elements/documentUrl.d.ts.map +1 -0
- package/dist/elements/documentUrl.js +89 -0
- package/dist/elements/drag-drop.d.ts +11 -0
- package/dist/elements/drag-drop.d.ts.map +1 -0
- package/dist/elements/drag-drop.js +277 -0
- package/dist/elements/drag.d.ts +53 -0
- package/dist/elements/drag.d.ts.map +1 -0
- package/dist/elements/drag.js +520 -0
- package/dist/elements/dragModifiers.d.ts +22 -0
- package/dist/elements/dragModifiers.d.ts.map +1 -0
- package/dist/elements/dragModifiers.js +62 -0
- package/dist/elements/events.d.ts +45 -0
- package/dist/elements/events.d.ts.map +1 -0
- package/dist/elements/events.js +101 -0
- package/dist/elements/fieldBounds.d.ts +5 -0
- package/dist/elements/fieldBounds.d.ts.map +1 -0
- package/dist/elements/fieldBounds.js +60 -0
- package/dist/elements/flow.d.ts +36 -0
- package/dist/elements/flow.d.ts.map +1 -0
- package/dist/elements/flow.js +47 -0
- package/dist/elements/form.d.ts +48 -0
- package/dist/elements/form.d.ts.map +1 -0
- package/dist/elements/form.js +112 -0
- package/dist/elements/grid.d.ts +96 -0
- package/dist/elements/grid.d.ts.map +1 -0
- package/dist/elements/grid.js +272 -0
- package/dist/elements/index.d.ts +36 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/index.js +35 -0
- package/dist/elements/inherited.d.ts +181 -0
- package/dist/elements/inherited.d.ts.map +1 -0
- package/dist/elements/inherited.js +512 -0
- package/dist/elements/labels.d.ts +39 -0
- package/dist/elements/labels.d.ts.map +1 -0
- package/dist/elements/labels.js +163 -0
- package/dist/elements/measure.d.ts +27 -0
- package/dist/elements/measure.d.ts.map +1 -0
- package/dist/elements/measure.js +24 -0
- package/dist/elements/outsidePress.d.ts +31 -0
- package/dist/elements/outsidePress.d.ts.map +1 -0
- package/dist/elements/outsidePress.js +94 -0
- package/dist/elements/paste.d.ts +22 -0
- package/dist/elements/paste.d.ts.map +1 -0
- package/dist/elements/paste.js +49 -0
- package/dist/elements/press.d.ts +41 -0
- package/dist/elements/press.d.ts.map +1 -0
- package/dist/elements/press.js +131 -0
- package/dist/elements/rangeKeyboard.d.ts +41 -0
- package/dist/elements/rangeKeyboard.d.ts.map +1 -0
- package/dist/elements/rangeKeyboard.js +58 -0
- package/dist/elements/rangeValues.d.ts +20 -0
- package/dist/elements/rangeValues.d.ts.map +1 -0
- package/dist/elements/rangeValues.js +101 -0
- package/dist/elements/ref.d.ts +16 -0
- package/dist/elements/ref.d.ts.map +1 -0
- package/dist/elements/ref.js +22 -0
- package/dist/elements/reveal.d.ts +8 -0
- package/dist/elements/reveal.d.ts.map +1 -0
- package/dist/elements/reveal.js +10 -0
- package/dist/elements/scrollReveal.d.ts +19 -0
- package/dist/elements/scrollReveal.d.ts.map +1 -0
- package/dist/elements/scrollReveal.js +52 -0
- package/dist/elements/selectOptions.d.ts +25 -0
- package/dist/elements/selectOptions.d.ts.map +1 -0
- package/dist/elements/selectOptions.js +60 -0
- package/dist/elements/style.d.ts +30 -0
- package/dist/elements/style.d.ts.map +1 -0
- package/dist/elements/style.js +368 -0
- package/dist/elements/svgHover.d.ts +41 -0
- package/dist/elements/svgHover.d.ts.map +1 -0
- package/dist/elements/svgHover.js +152 -0
- package/dist/elements/table.d.ts +52 -0
- package/dist/elements/table.d.ts.map +1 -0
- package/dist/elements/table.js +104 -0
- package/dist/elements/types.d.ts +25 -0
- package/dist/elements/types.d.ts.map +1 -0
- package/dist/elements/types.js +8 -0
- package/dist/elements/viewport.d.ts +53 -0
- package/dist/elements/viewport.d.ts.map +1 -0
- package/dist/elements/viewport.js +62 -0
- package/dist/elements/wheelZoom.d.ts +12 -0
- package/dist/elements/wheelZoom.d.ts.map +1 -0
- package/dist/elements/wheelZoom.js +8 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/platform/focus.d.ts +31 -0
- package/dist/platform/focus.d.ts.map +1 -0
- package/dist/platform/focus.js +93 -0
- package/dist/platform/index.d.ts +31 -0
- package/dist/platform/index.d.ts.map +1 -0
- package/dist/platform/index.js +179 -0
- package/dist/platform/layout.d.ts +13 -0
- package/dist/platform/layout.d.ts.map +1 -0
- package/dist/platform/layout.js +15 -0
- package/dist/platform/position.d.ts +5 -0
- package/dist/platform/position.d.ts.map +1 -0
- package/dist/platform/position.js +177 -0
- package/dist/platform/stack.d.ts +86 -0
- package/dist/platform/stack.d.ts.map +1 -0
- package/dist/platform/stack.js +318 -0
- package/package.json +67 -8
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* CSS grid on a device, which has no grid layout: a grid's children are placed in its tracks as
|
|
4
|
+
* the web's auto-placement does, each row a flex row whose items stretch to its height.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import { Children, createContext, Fragment, isValidElement, useContext, useRef, useState, } from 'react';
|
|
9
|
+
import { Text as NativeText, useWindowDimensions, View } from 'react-native';
|
|
10
|
+
import { getClassMap } from '@molecule/app-ui';
|
|
11
|
+
/** The width a grid gives the element it places in a cell, which that element applies. */
|
|
12
|
+
const GridCell = createContext(null);
|
|
13
|
+
/**
|
|
14
|
+
* The style the grid cell around an element gives it: its width, when a grid placed it.
|
|
15
|
+
*
|
|
16
|
+
* @returns The style, or `undefined` outside a grid cell.
|
|
17
|
+
*/
|
|
18
|
+
export function useGridCell() {
|
|
19
|
+
return useContext(GridCell) ?? undefined;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Ends the cell an element sits in for its children: a grid places only its own children.
|
|
23
|
+
*
|
|
24
|
+
* @param props - The children.
|
|
25
|
+
* @returns The children outside any cell.
|
|
26
|
+
*/
|
|
27
|
+
export function NoGridCell({ children }) {
|
|
28
|
+
return _jsx(GridCell.Provider, { value: null, children: children });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A track list's tracks (`repeat(3, minmax(0, 1fr))`, `1fr 2fr`, `200px 1fr`). `auto` and
|
|
32
|
+
* `minmax(…, 1fr)` share the free space as `1fr` does: a device cannot size a track to its content.
|
|
33
|
+
*
|
|
34
|
+
* @param list - The CSS track list.
|
|
35
|
+
* @returns The tracks, or `null` when the list is empty.
|
|
36
|
+
*/
|
|
37
|
+
export function parseTracks(list) {
|
|
38
|
+
const tokens = [];
|
|
39
|
+
let depth = 0;
|
|
40
|
+
let start = 0;
|
|
41
|
+
const text = list.trim();
|
|
42
|
+
for (let i = 0; i <= text.length; i++) {
|
|
43
|
+
const char = text[i];
|
|
44
|
+
if (char === '(')
|
|
45
|
+
depth++;
|
|
46
|
+
else if (char === ')')
|
|
47
|
+
depth--;
|
|
48
|
+
else if ((char === undefined || /\s/.test(char)) && depth === 0) {
|
|
49
|
+
if (i > start)
|
|
50
|
+
tokens.push(text.slice(start, i));
|
|
51
|
+
start = i + 1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const tracks = [];
|
|
55
|
+
for (const token of tokens) {
|
|
56
|
+
const repeat = /^repeat\(\s*(\d+)\s*,\s*(.+)\)$/.exec(token);
|
|
57
|
+
if (repeat?.[1] && repeat[2]) {
|
|
58
|
+
const inner = parseTracks(repeat[2]) ?? [];
|
|
59
|
+
for (let n = 0; n < Number(repeat[1]); n++)
|
|
60
|
+
tracks.push(...inner);
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
const minmax = /^minmax\(\s*[^,]+,\s*(.+)\)$/.exec(token);
|
|
64
|
+
const size = (minmax?.[1] ?? token).trim();
|
|
65
|
+
const fr = /^(\d+(?:\.\d+)?)fr$/.exec(size);
|
|
66
|
+
const px = /^(\d+(?:\.\d+)?)px$/.exec(size);
|
|
67
|
+
const percent = /^(\d+(?:\.\d+)?)%$/.exec(size);
|
|
68
|
+
if (fr?.[1])
|
|
69
|
+
tracks.push({ fr: Number(fr[1]) });
|
|
70
|
+
else if (px?.[1])
|
|
71
|
+
tracks.push({ px: Number(px[1]) });
|
|
72
|
+
else if (percent?.[1])
|
|
73
|
+
tracks.push({ percent: Number(percent[1]) });
|
|
74
|
+
else
|
|
75
|
+
tracks.push({ fr: 1 });
|
|
76
|
+
}
|
|
77
|
+
return tracks.length > 0 ? tracks : null;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The widths of a grid's columns in a container this wide, as CSS grid sizes them: fixed and
|
|
81
|
+
* percentage tracks first, then the free space shared by `fr`.
|
|
82
|
+
*
|
|
83
|
+
* @param tracks - The tracks.
|
|
84
|
+
* @param width - The container's content width.
|
|
85
|
+
* @param gap - The gap between columns.
|
|
86
|
+
* @returns Each column's width.
|
|
87
|
+
*/
|
|
88
|
+
export function trackWidths(tracks, width, gap) {
|
|
89
|
+
const fixed = tracks.map((track) => 'px' in track ? track.px : 'percent' in track ? (width * track.percent) / 100 : 0);
|
|
90
|
+
const fr = tracks.reduce((sum, track) => sum + ('fr' in track ? track.fr : 0), 0);
|
|
91
|
+
const free = Math.max(0, width - fixed.reduce((sum, size) => sum + size, 0) - gap * (tracks.length - 1));
|
|
92
|
+
return tracks.map((track, i) => 'fr' in track && fr > 0 ? (free * track.fr) / fr : (fixed[i] ?? 0));
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The heights of a grid's explicit rows when its own height is unset, as CSS grid sizes them: a
|
|
96
|
+
* fixed track keeps its size, and the flexible ones share one unit, the largest of their content
|
|
97
|
+
* heights over their `fr` (equal `1fr` rows are all as tall as the tallest). A percentage of an
|
|
98
|
+
* unset height is its content's height, as `auto` is.
|
|
99
|
+
*
|
|
100
|
+
* @param tracks - The explicit row tracks.
|
|
101
|
+
* @param natural - Each explicit row's content height (`0` for a row with no item).
|
|
102
|
+
* @returns Each explicit row's height, or `undefined` for a row its content sizes.
|
|
103
|
+
*/
|
|
104
|
+
export function rowHeights(tracks, natural) {
|
|
105
|
+
let unit = 0;
|
|
106
|
+
tracks.forEach((track, i) => {
|
|
107
|
+
if ('fr' in track && track.fr > 0)
|
|
108
|
+
unit = Math.max(unit, (natural[i] ?? 0) / track.fr);
|
|
109
|
+
});
|
|
110
|
+
return tracks.map((track) => 'px' in track ? track.px : 'fr' in track ? unit * track.fr : undefined);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The value of a breakpoint-keyed grid entry at a window width: the entry of the widest
|
|
114
|
+
* breakpoint the window reaches, as the web's min-width media queries apply.
|
|
115
|
+
*
|
|
116
|
+
* @param values - The values by breakpoint variant (`''` at the base size).
|
|
117
|
+
* @param windowWidth - The window's width.
|
|
118
|
+
* @returns The value, or `undefined` when none applies.
|
|
119
|
+
*/
|
|
120
|
+
export function atBreakpoint(values, windowWidth) {
|
|
121
|
+
const breakpoints = getClassMap().nativeBreakpoints ?? {};
|
|
122
|
+
let best = values[''];
|
|
123
|
+
let bestWidth = -1;
|
|
124
|
+
for (const [name, value] of Object.entries(values)) {
|
|
125
|
+
if (name === '')
|
|
126
|
+
continue;
|
|
127
|
+
const from = breakpoints[name];
|
|
128
|
+
if (from !== undefined && windowWidth >= from && from > bestWidth) {
|
|
129
|
+
best = value;
|
|
130
|
+
bestWidth = from;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return best;
|
|
134
|
+
}
|
|
135
|
+
/** A pixel length from a web style value (`6`, `'11px'`), or `undefined`. */
|
|
136
|
+
const pixelsOf = (value) => typeof value === 'number'
|
|
137
|
+
? value
|
|
138
|
+
: typeof value === 'string' && /^\d+(?:\.\d+)?px$/.test(value)
|
|
139
|
+
? Number.parseFloat(value)
|
|
140
|
+
: undefined;
|
|
141
|
+
/** The alignment of a grid's items as the native row's `alignItems`. */
|
|
142
|
+
const ALIGN = {
|
|
143
|
+
start: 'flex-start',
|
|
144
|
+
end: 'flex-end',
|
|
145
|
+
center: 'center',
|
|
146
|
+
stretch: 'stretch',
|
|
147
|
+
baseline: 'baseline',
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* The span of a grid child, with inline CSS taking precedence over its responsive classes.
|
|
151
|
+
*
|
|
152
|
+
* @param child - The child.
|
|
153
|
+
* @param split - Splits a class string.
|
|
154
|
+
* @param windowWidth - The window's width.
|
|
155
|
+
* @param columns - The grid's column count.
|
|
156
|
+
* @returns The columns it covers.
|
|
157
|
+
*/
|
|
158
|
+
function spanOf(child, split, windowWidth, columns) {
|
|
159
|
+
if (!isValidElement(child))
|
|
160
|
+
return 1;
|
|
161
|
+
const className = typeof child.props.className === 'string' ? child.props.className : undefined;
|
|
162
|
+
const gridColumn = child.props.webStyle?.gridColumn;
|
|
163
|
+
const inline = typeof gridColumn === 'string'
|
|
164
|
+
? /^span\s+([1-9]\d*)(?:\s*\/\s*(?:span\s+[1-9]\d*|auto))?$/i.exec(gridColumn.trim())?.[1]
|
|
165
|
+
: undefined;
|
|
166
|
+
const span = inline === undefined ? atBreakpoint(split(className).span ?? {}, windowWidth) : Number(inline);
|
|
167
|
+
return span === 'full' ? columns : Math.max(1, Math.min(columns, span ?? 1));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* A grid container's native layout: the style its view takes (a column of rows, the row gap) and
|
|
171
|
+
* its children placed in rows of cells.
|
|
172
|
+
*
|
|
173
|
+
* @param props - The grid's classes (`grid`), its web style (a track list, gaps), its text classes
|
|
174
|
+
* (for a bare string among its children), a splitter for its children's classes, and the children.
|
|
175
|
+
* @returns The layout's view style and its rows (the first measures the content width).
|
|
176
|
+
*/
|
|
177
|
+
export function useGridLayout({ grid, webStyle, text, split, children, }) {
|
|
178
|
+
const { width: windowWidth } = useWindowDimensions();
|
|
179
|
+
const [width, setWidth] = useState(null);
|
|
180
|
+
// Content heights of the explicit rows, for the children they were measured with: a new set of
|
|
181
|
+
// children is measured again before its flexible rows are evened out.
|
|
182
|
+
const [measured, setMeasured] = useState(null);
|
|
183
|
+
const pending = useRef([]);
|
|
184
|
+
const template = webStyle?.gridTemplateColumns;
|
|
185
|
+
const columnsValue = atBreakpoint(grid.columns, windowWidth) ?? 1;
|
|
186
|
+
const tracks = (typeof template === 'string' ? parseTracks(template) : null) ??
|
|
187
|
+
(typeof columnsValue === 'string'
|
|
188
|
+
? parseTracks(columnsValue)
|
|
189
|
+
: Array.from({ length: Math.max(1, columnsValue) }, () => ({ fr: 1 }))) ?? [{ fr: 1 }];
|
|
190
|
+
const gap = pixelsOf(webStyle?.gap);
|
|
191
|
+
const columnGap = pixelsOf(webStyle?.columnGap) ?? gap ?? atBreakpoint(grid.columnGap, windowWidth) ?? 0;
|
|
192
|
+
const rowGap = pixelsOf(webStyle?.rowGap) ?? gap ?? atBreakpoint(grid.rowGap, windowWidth) ?? 0;
|
|
193
|
+
const align = atBreakpoint(grid.alignItems, windowWidth);
|
|
194
|
+
const rowTemplate = webStyle?.gridTemplateRows;
|
|
195
|
+
const rowsValue = atBreakpoint(grid.rows ?? {}, windowWidth);
|
|
196
|
+
const rowTracks = (typeof rowTemplate === 'string' ? parseTracks(rowTemplate) : null) ??
|
|
197
|
+
(typeof rowsValue === 'string'
|
|
198
|
+
? parseTracks(rowsValue)
|
|
199
|
+
: Array.from({ length: rowsValue ?? 0 }, () => ({ fr: 1 }))) ??
|
|
200
|
+
[];
|
|
201
|
+
const flexible = rowTracks.some((track) => 'fr' in track);
|
|
202
|
+
const widths = width === null ? null : trackWidths(tracks, width, columnGap);
|
|
203
|
+
const items = flattenFragments(children).filter((child) => child !== null && child !== undefined && typeof child !== 'boolean' && child !== '');
|
|
204
|
+
const rows = [];
|
|
205
|
+
let column = tracks.length;
|
|
206
|
+
for (const child of items) {
|
|
207
|
+
const span = spanOf(child, split, windowWidth, tracks.length);
|
|
208
|
+
if (column + span > tracks.length) {
|
|
209
|
+
rows.push([]);
|
|
210
|
+
column = 0;
|
|
211
|
+
}
|
|
212
|
+
const cellWidth = widths === null
|
|
213
|
+
? undefined
|
|
214
|
+
: widths.slice(column, column + span).reduce((sum, w) => sum + w, 0) +
|
|
215
|
+
columnGap * (span - 1);
|
|
216
|
+
const key = isValidElement(child) && child.key !== null ? child.key : `cell-${rows.length}-${column}`;
|
|
217
|
+
const cell = typeof child === 'string' || typeof child === 'number' ? (_jsx(NativeText, { className: text || undefined, style: cellWidth === undefined ? undefined : { width: cellWidth }, children: child })) : (child);
|
|
218
|
+
rows.at(-1)?.push(_jsx(GridCell.Provider, { value: cellWidth === undefined ? null : { width: cellWidth }, children: cell }, key));
|
|
219
|
+
column += span;
|
|
220
|
+
}
|
|
221
|
+
// Explicit rows exist, with their gaps, though no item fills them.
|
|
222
|
+
while (rows.length < rowTracks.length)
|
|
223
|
+
rows.push([]);
|
|
224
|
+
const natural = measured !== null && measured.children === children ? measured.heights : null;
|
|
225
|
+
const heights = natural
|
|
226
|
+
? rowHeights(rowTracks, natural)
|
|
227
|
+
: rowTracks.map((track) => ('px' in track ? track.px : undefined));
|
|
228
|
+
const measure = (i) => (event) => {
|
|
229
|
+
if (natural || !flexible || i >= rowTracks.length)
|
|
230
|
+
return;
|
|
231
|
+
pending.current[i] = event.nativeEvent.layout.height;
|
|
232
|
+
const done = rowTracks.every((_track, r) => pending.current[r] !== undefined);
|
|
233
|
+
if (done) {
|
|
234
|
+
setMeasured({ children, heights: rowTracks.map((_track, r) => pending.current[r] ?? 0) });
|
|
235
|
+
pending.current = [];
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
// Every row fills the content box (padding and borders already left out), so the first one's
|
|
239
|
+
// width is what the tracks share.
|
|
240
|
+
const onLayout = (event) => {
|
|
241
|
+
const next = event.nativeEvent.layout.width;
|
|
242
|
+
if (next !== width)
|
|
243
|
+
setWidth(next);
|
|
244
|
+
};
|
|
245
|
+
return {
|
|
246
|
+
style: { flexDirection: 'column', alignItems: 'stretch', rowGap, columnGap: 0 },
|
|
247
|
+
rows: rows.map((row, i) => {
|
|
248
|
+
const height = heights[i];
|
|
249
|
+
return (_jsx(View, { onLayout: (event) => {
|
|
250
|
+
if (i === 0)
|
|
251
|
+
onLayout(event);
|
|
252
|
+
measure(i)(event);
|
|
253
|
+
}, style: {
|
|
254
|
+
flexDirection: 'row',
|
|
255
|
+
columnGap,
|
|
256
|
+
alignItems: align ? ALIGN[align] : 'stretch',
|
|
257
|
+
...(height === undefined ? {} : { height }),
|
|
258
|
+
}, children: row }, `row-${i}`));
|
|
259
|
+
}),
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Children with fragments opened: a fragment adds no grid item.
|
|
264
|
+
*
|
|
265
|
+
* @param children - The children.
|
|
266
|
+
* @returns The children.
|
|
267
|
+
*/
|
|
268
|
+
function flattenFragments(children) {
|
|
269
|
+
return Children.toArray(children).flatMap((child) => isValidElement(child) && child.type === Fragment
|
|
270
|
+
? flattenFragments(child.props.children)
|
|
271
|
+
: [child]);
|
|
272
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renderer-neutral elements on React Native: what `@molecule/app-ui-react/elements` resolves to
|
|
3
|
+
* under the `react-native` export condition, so one React feature renders on both.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
export * from './Anchor.js';
|
|
8
|
+
export * from './Box.js';
|
|
9
|
+
export * from './CheckField.js';
|
|
10
|
+
export * from './Disclosure.js';
|
|
11
|
+
export * from './Fieldset.js';
|
|
12
|
+
export * from './FileField.js';
|
|
13
|
+
export { isRegistered, registeredKind, registerInline } from './flow.js';
|
|
14
|
+
export * from './FormArea.js';
|
|
15
|
+
export * from './GlyphIcon.js';
|
|
16
|
+
export * from './Image.js';
|
|
17
|
+
export * from './Link.js';
|
|
18
|
+
export * from './measure.js';
|
|
19
|
+
export * from './Pressable.js';
|
|
20
|
+
export * from './PulseDots.js';
|
|
21
|
+
export * from './RangeField.js';
|
|
22
|
+
export { type NativeKeyboardView, type NativeKeyboardViewProps, setNativeKeyboardView, } from './rangeKeyboard.js';
|
|
23
|
+
export * from './reveal.js';
|
|
24
|
+
export * from './RichText.js';
|
|
25
|
+
export * from './Rule.js';
|
|
26
|
+
export { ScrollArea } from './ScrollArea.js';
|
|
27
|
+
export * from './SelectField.js';
|
|
28
|
+
export * from './Svg.js';
|
|
29
|
+
export * from './TableBox.js';
|
|
30
|
+
export * from './TableCell.js';
|
|
31
|
+
export * from './Text.js';
|
|
32
|
+
export * from './TextField.js';
|
|
33
|
+
export * from './types.js';
|
|
34
|
+
export * from './viewport.js';
|
|
35
|
+
export * from './wheelZoom.js';
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/elements/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;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,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AACxE,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,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,qBAAqB,GACtB,MAAM,oBAAoB,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,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,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renderer-neutral elements on React Native: what `@molecule/app-ui-react/elements` resolves to
|
|
3
|
+
* under the `react-native` export condition, so one React feature renders on both.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
export * from './Anchor.js';
|
|
8
|
+
export * from './Box.js';
|
|
9
|
+
export * from './CheckField.js';
|
|
10
|
+
export * from './Disclosure.js';
|
|
11
|
+
export * from './Fieldset.js';
|
|
12
|
+
export * from './FileField.js';
|
|
13
|
+
export { isRegistered, registeredKind, registerInline } from './flow.js';
|
|
14
|
+
export * from './FormArea.js';
|
|
15
|
+
export * from './GlyphIcon.js';
|
|
16
|
+
export * from './Image.js';
|
|
17
|
+
export * from './Link.js';
|
|
18
|
+
export * from './measure.js';
|
|
19
|
+
export * from './Pressable.js';
|
|
20
|
+
export * from './PulseDots.js';
|
|
21
|
+
export * from './RangeField.js';
|
|
22
|
+
export { setNativeKeyboardView, } from './rangeKeyboard.js';
|
|
23
|
+
export * from './reveal.js';
|
|
24
|
+
export * from './RichText.js';
|
|
25
|
+
export * from './Rule.js';
|
|
26
|
+
export { ScrollArea } from './ScrollArea.js';
|
|
27
|
+
export * from './SelectField.js';
|
|
28
|
+
export * from './Svg.js';
|
|
29
|
+
export * from './TableBox.js';
|
|
30
|
+
export * from './TableCell.js';
|
|
31
|
+
export * from './Text.js';
|
|
32
|
+
export * from './TextField.js';
|
|
33
|
+
export * from './types.js';
|
|
34
|
+
export * from './viewport.js';
|
|
35
|
+
export * from './wheelZoom.js';
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the CSS cascade does on the web, for native elements: text classes a container hands to its
|
|
3
|
+
* text, and the line boxes that lay out inline children side by side.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
8
|
+
import { type TextStyle } from 'react-native';
|
|
9
|
+
import { type InlineKind, type NativeClassSplit } from '@molecule/app-ui';
|
|
10
|
+
/** Reads the font style the nearest address block or text run supplies. */
|
|
11
|
+
export declare function useInheritedFontStyle(): TextStyle['fontStyle'];
|
|
12
|
+
/**
|
|
13
|
+
* An element's classes with the ones its containers give descendants with its tag after its own,
|
|
14
|
+
* as a descendant selector applies to the element on the web.
|
|
15
|
+
*
|
|
16
|
+
* @param className - The element's own classes.
|
|
17
|
+
* @param tag - Its web tag.
|
|
18
|
+
* @param position - Whether the element starts or ends its sibling list.
|
|
19
|
+
* @returns The classes it applies.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useTagClasses(className: string | undefined, tag: string, position?: {
|
|
22
|
+
first: boolean;
|
|
23
|
+
last: boolean;
|
|
24
|
+
}): string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Hands an element's text classes and descendant classes to the elements inside it, as the CSS
|
|
27
|
+
* cascade does.
|
|
28
|
+
*
|
|
29
|
+
* @param props - The element's split classes (`text` and `descendants`), its text classes when
|
|
30
|
+
* they differ from the split's (a button's), and the children.
|
|
31
|
+
* @returns The children inside both.
|
|
32
|
+
*/
|
|
33
|
+
export declare function ElementScope({ split, text, fontStyle, children, }: {
|
|
34
|
+
split: Pick<NativeClassSplit, 'text' | 'descendants'>;
|
|
35
|
+
text?: string;
|
|
36
|
+
fontStyle?: TextStyle['fontStyle'];
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
}): ReactElement;
|
|
39
|
+
/** A lone inline box at the start of its line: as wide as its content. */
|
|
40
|
+
declare const AT_LINE_START: {
|
|
41
|
+
readonly alignSelf: "flex-start";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* The style an inline element needs when a block container laid it out as a block, which happens
|
|
45
|
+
* when the component rendering it never said how it flows (`registerInline`): a web line would
|
|
46
|
+
* make it as wide as its content, a native column stretches it across the container.
|
|
47
|
+
*
|
|
48
|
+
* @param kind - How the element flows by its own tag and classes.
|
|
49
|
+
* @returns `{ alignSelf: 'flex-start' }` for an inline element in a block slot, else `undefined`.
|
|
50
|
+
*/
|
|
51
|
+
export declare function useLineStart(kind: InlineKind): typeof AT_LINE_START | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The text classes the nearest container hands down; outside every container, the ones the web
|
|
54
|
+
* gives the document (the ClassMap's `nativeRootText`).
|
|
55
|
+
*
|
|
56
|
+
* @returns The inherited text classes.
|
|
57
|
+
*/
|
|
58
|
+
export declare function useInheritedText(): string;
|
|
59
|
+
/**
|
|
60
|
+
* Splits an element's classes for a native view through the ClassMap (`splitForNative`); a
|
|
61
|
+
* ClassMap without it keeps every class on the view and hands the inherited text classes on.
|
|
62
|
+
*
|
|
63
|
+
* @param className - The element's classes.
|
|
64
|
+
* @param inheritedText - The text classes in effect for its container's text.
|
|
65
|
+
* @returns The view classes, the text classes in effect for its own text, and its display.
|
|
66
|
+
*/
|
|
67
|
+
export declare function splitClasses(className: string | undefined, inheritedText?: string, data?: Readonly<Record<string, string | undefined>>): NativeClassSplit;
|
|
68
|
+
/**
|
|
69
|
+
* The text classes a native button hands down before its own: the inherited ones under what a
|
|
70
|
+
* browser's stylesheet gives a `<button>` (the ClassMap's `nativeButtonText`).
|
|
71
|
+
*
|
|
72
|
+
* @param inherited - The text classes its container hands down.
|
|
73
|
+
* @returns The text classes in effect beneath the button's own.
|
|
74
|
+
*/
|
|
75
|
+
export declare function buttonText(inherited: string): string;
|
|
76
|
+
/**
|
|
77
|
+
* The classes of a native element that draws text itself (a `Text`, a `TextInput`): the text
|
|
78
|
+
* classes in effect for it, then its own other classes.
|
|
79
|
+
*
|
|
80
|
+
* @param split - Its split classes.
|
|
81
|
+
* @returns The class string.
|
|
82
|
+
*/
|
|
83
|
+
export declare function textElementClasses(split: NativeClassSplit): string | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* How an element flows once the blocks among its children are counted: the web splits an inline
|
|
86
|
+
* element around a block inside it (block-in-inline), so the block stacks, the inline element
|
|
87
|
+
* puts no line of its own around it, and its box spans the block's width. An inline box
|
|
88
|
+
* (`inline-block`, a button) holds its blocks inside it and stays on the line.
|
|
89
|
+
*
|
|
90
|
+
* @param kind - How the element flows by its own tag and classes.
|
|
91
|
+
* @param children - Its children.
|
|
92
|
+
* @param inline - Whether the element is inline on the web ({@link isCssInline}).
|
|
93
|
+
* @returns `null` for an inline element holding a block, else `kind`.
|
|
94
|
+
*/
|
|
95
|
+
export declare function blockInInline(kind: InlineKind, children: unknown, inline: boolean): InlineKind;
|
|
96
|
+
/**
|
|
97
|
+
* Whether an element is inline on the web, rather than an inline box or a block: its display
|
|
98
|
+
* class is `inline`, or it has none and its tag is inline (`span`, `a`). A button is an inline
|
|
99
|
+
* box by the browser's own stylesheet.
|
|
100
|
+
*
|
|
101
|
+
* @param className - Its classes.
|
|
102
|
+
* @param inlineTag - Whether its tag is inline.
|
|
103
|
+
* @param data - Its data attributes.
|
|
104
|
+
* @returns Whether it is inline.
|
|
105
|
+
*/
|
|
106
|
+
export declare function isCssInline(className: unknown, inlineTag: boolean, data?: Readonly<Record<string, string | undefined>>): boolean;
|
|
107
|
+
/**
|
|
108
|
+
* How a replaced element (an image, a drawing) flows: a block when the web's stylesheet makes its
|
|
109
|
+
* tag one (the ClassMap's `nativeBlockTags`: Tailwind's reset makes `svg` and `img` blocks),
|
|
110
|
+
* otherwise an inline box, unless a display class says otherwise.
|
|
111
|
+
*
|
|
112
|
+
* @param className - Its classes.
|
|
113
|
+
* @param tag - Its web tag.
|
|
114
|
+
* @returns Its inline kind.
|
|
115
|
+
*/
|
|
116
|
+
export declare function replacedFlow(className: unknown, tag: string): InlineKind;
|
|
117
|
+
/**
|
|
118
|
+
* A container's children with fragments and boxless fieldsets opened. Each fieldset child
|
|
119
|
+
* keeps its own copy of the provider for inherited classes and disabled state.
|
|
120
|
+
*
|
|
121
|
+
* @param children - The children.
|
|
122
|
+
* @param prefix - The key of the fragment they came from.
|
|
123
|
+
* @returns The children, keyed.
|
|
124
|
+
*/
|
|
125
|
+
export declare function flatten(children: ReactNode, prefix?: string): ReactNode[];
|
|
126
|
+
/**
|
|
127
|
+
* Whether an element's classes make it a flex container.
|
|
128
|
+
*
|
|
129
|
+
* @param split - The element's split classes.
|
|
130
|
+
* @returns Whether its children are flex items.
|
|
131
|
+
*/
|
|
132
|
+
export declare function isFlex(split: NativeClassSplit): boolean;
|
|
133
|
+
/**
|
|
134
|
+
* How an element flows by its classes, given how its tag flows: a `block` or `flex` class takes an
|
|
135
|
+
* inline element out of the line, an `inline*` class puts a block one in it.
|
|
136
|
+
*
|
|
137
|
+
* @param className - The element's classes.
|
|
138
|
+
* @param tagKind - How its tag flows without classes.
|
|
139
|
+
* @returns Its inline kind.
|
|
140
|
+
*/
|
|
141
|
+
export declare function flowOf(className: unknown, tagKind: InlineKind, data?: Readonly<Record<string, string | undefined>>): InlineKind;
|
|
142
|
+
/**
|
|
143
|
+
* An element's `data-*` attributes by name without the prefix, which its `data-[…]:` classes
|
|
144
|
+
* match (the ClassMap's `splitForNative`). `data-mol-id` and `data-testid` name the element and
|
|
145
|
+
* style nothing.
|
|
146
|
+
*
|
|
147
|
+
* @param props - The element's props.
|
|
148
|
+
* @returns The attributes, or `undefined` when it has none.
|
|
149
|
+
*/
|
|
150
|
+
export declare function dataAttributes(props: object): Readonly<Record<string, string | undefined>> | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Lays out a block container's children the way the web does: runs of inline children share a
|
|
153
|
+
* line (text in one `Text`, inline boxes in a wrapping row), and block children stack.
|
|
154
|
+
*
|
|
155
|
+
* @param children - The container's children.
|
|
156
|
+
* @param text - The text classes the container hands down, for a line of text.
|
|
157
|
+
* @param lines - The lines the container clamps its text to (`truncate`), or `null`.
|
|
158
|
+
* @returns The native children.
|
|
159
|
+
*/
|
|
160
|
+
export declare function groupInline(children: ReactNode, text: string, lines?: number | null): ReactNode;
|
|
161
|
+
/**
|
|
162
|
+
* Wraps each run of bare strings and numbers among a flex container's children in one native
|
|
163
|
+
* `Text` with the text classes it hands down, as the web makes each run of adjacent text one
|
|
164
|
+
* anonymous flex item (`{value}%` is one item, not two). A run of only white space makes none.
|
|
165
|
+
*
|
|
166
|
+
* @param children - The children.
|
|
167
|
+
* @param text - The text classes.
|
|
168
|
+
* @returns The native children.
|
|
169
|
+
*/
|
|
170
|
+
export declare function wrapStrings(children: ReactNode, text: string): ReactNode;
|
|
171
|
+
/**
|
|
172
|
+
* A container's children laid out as the web lays them out: flex items (bare text in an
|
|
173
|
+
* anonymous `Text`) in a flex container, lines and blocks in any other.
|
|
174
|
+
*
|
|
175
|
+
* @param children - The children.
|
|
176
|
+
* @param split - The container's split classes.
|
|
177
|
+
* @returns The native children.
|
|
178
|
+
*/
|
|
179
|
+
export declare function layoutChildren(children: ReactNode, split: NativeClassSplit): ReactNode;
|
|
180
|
+
export {};
|
|
181
|
+
//# sourceMappingURL=inherited.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inherited.d.ts","sourceRoot":"","sources":["../../src/elements/inherited.tsx"],"names":[],"mappings":"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"}
|