@molecule/app-ui-react-native 1.0.10 → 2.1.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.
Files changed (209) hide show
  1. package/README.md +211 -331
  2. package/dist/components/Button.d.ts +2 -2
  3. package/dist/components/Button.d.ts.map +1 -1
  4. package/dist/components/Button.js +2 -2
  5. package/dist/components/Card.d.ts +3 -2
  6. package/dist/components/Card.d.ts.map +1 -1
  7. package/dist/components/Card.js +11 -3
  8. package/dist/components/Checkbox.d.ts +2 -2
  9. package/dist/components/Checkbox.d.ts.map +1 -1
  10. package/dist/components/Checkbox.js +4 -7
  11. package/dist/components/Input.d.ts +13 -2
  12. package/dist/components/Input.d.ts.map +1 -1
  13. package/dist/components/Input.js +5 -11
  14. package/dist/components/Layout.d.ts +3 -2
  15. package/dist/components/Layout.d.ts.map +1 -1
  16. package/dist/components/Layout.js +2 -2
  17. package/dist/components/Select.d.ts +2 -2
  18. package/dist/components/Select.d.ts.map +1 -1
  19. package/dist/components/Select.js +4 -6
  20. package/dist/components/Switch.d.ts +2 -2
  21. package/dist/components/Switch.d.ts.map +1 -1
  22. package/dist/components/Switch.js +3 -7
  23. package/dist/components/Textarea.d.ts +13 -2
  24. package/dist/components/Textarea.d.ts.map +1 -1
  25. package/dist/components/Textarea.js +2 -6
  26. package/dist/elements/Anchor.d.ts +15 -0
  27. package/dist/elements/Anchor.d.ts.map +1 -0
  28. package/dist/elements/Anchor.js +57 -0
  29. package/dist/elements/Box.d.ts +19 -0
  30. package/dist/elements/Box.d.ts.map +1 -0
  31. package/dist/elements/Box.js +150 -0
  32. package/dist/elements/CheckField.d.ts +18 -0
  33. package/dist/elements/CheckField.d.ts.map +1 -0
  34. package/dist/elements/CheckField.js +103 -0
  35. package/dist/elements/Disclosure.d.ts +11 -0
  36. package/dist/elements/Disclosure.d.ts.map +1 -0
  37. package/dist/elements/Disclosure.js +67 -0
  38. package/dist/elements/Fieldset.d.ts +16 -0
  39. package/dist/elements/Fieldset.d.ts.map +1 -0
  40. package/dist/elements/Fieldset.js +34 -0
  41. package/dist/elements/FileField.d.ts +12 -0
  42. package/dist/elements/FileField.d.ts.map +1 -0
  43. package/dist/elements/FileField.js +111 -0
  44. package/dist/elements/FormArea.d.ts +18 -0
  45. package/dist/elements/FormArea.d.ts.map +1 -0
  46. package/dist/elements/FormArea.js +42 -0
  47. package/dist/elements/GlyphIcon.d.ts +19 -0
  48. package/dist/elements/GlyphIcon.d.ts.map +1 -0
  49. package/dist/elements/GlyphIcon.js +43 -0
  50. package/dist/elements/Image.d.ts +17 -0
  51. package/dist/elements/Image.d.ts.map +1 -0
  52. package/dist/elements/Image.js +26 -0
  53. package/dist/elements/Link.d.ts +20 -0
  54. package/dist/elements/Link.d.ts.map +1 -0
  55. package/dist/elements/Link.js +53 -0
  56. package/dist/elements/Pressable.d.ts +18 -0
  57. package/dist/elements/Pressable.d.ts.map +1 -0
  58. package/dist/elements/Pressable.js +107 -0
  59. package/dist/elements/PulseDots.d.ts +15 -0
  60. package/dist/elements/PulseDots.d.ts.map +1 -0
  61. package/dist/elements/PulseDots.js +78 -0
  62. package/dist/elements/RangeField.d.ts +11 -0
  63. package/dist/elements/RangeField.d.ts.map +1 -0
  64. package/dist/elements/RangeField.js +259 -0
  65. package/dist/elements/RichText.d.ts +23 -0
  66. package/dist/elements/RichText.d.ts.map +1 -0
  67. package/dist/elements/RichText.js +55 -0
  68. package/dist/elements/Rule.d.ts +11 -0
  69. package/dist/elements/Rule.d.ts.map +1 -0
  70. package/dist/elements/Rule.js +19 -0
  71. package/dist/elements/ScrollArea.d.ts +21 -0
  72. package/dist/elements/ScrollArea.d.ts.map +1 -0
  73. package/dist/elements/ScrollArea.js +101 -0
  74. package/dist/elements/SelectAction.d.ts +20 -0
  75. package/dist/elements/SelectAction.d.ts.map +1 -0
  76. package/dist/elements/SelectAction.js +113 -0
  77. package/dist/elements/SelectField.d.ts +11 -0
  78. package/dist/elements/SelectField.d.ts.map +1 -0
  79. package/dist/elements/SelectField.js +220 -0
  80. package/dist/elements/SelectMenu.d.ts +19 -0
  81. package/dist/elements/SelectMenu.d.ts.map +1 -0
  82. package/dist/elements/SelectMenu.js +122 -0
  83. package/dist/elements/Svg.d.ts +155 -0
  84. package/dist/elements/Svg.d.ts.map +1 -0
  85. package/dist/elements/Svg.js +525 -0
  86. package/dist/elements/TableBox.d.ts +19 -0
  87. package/dist/elements/TableBox.d.ts.map +1 -0
  88. package/dist/elements/TableBox.js +87 -0
  89. package/dist/elements/TableCell.d.ts +16 -0
  90. package/dist/elements/TableCell.d.ts.map +1 -0
  91. package/dist/elements/TableCell.js +69 -0
  92. package/dist/elements/Text.d.ts +17 -0
  93. package/dist/elements/Text.d.ts.map +1 -0
  94. package/dist/elements/Text.js +96 -0
  95. package/dist/elements/TextField.d.ts +25 -0
  96. package/dist/elements/TextField.d.ts.map +1 -0
  97. package/dist/elements/TextField.js +257 -0
  98. package/dist/elements/accessibility.d.ts +36 -0
  99. package/dist/elements/accessibility.d.ts.map +1 -0
  100. package/dist/elements/accessibility.js +239 -0
  101. package/dist/elements/className.d.ts +45 -0
  102. package/dist/elements/className.d.ts.map +1 -0
  103. package/dist/elements/className.js +8 -0
  104. package/dist/elements/decimal.d.ts +5 -0
  105. package/dist/elements/decimal.d.ts.map +1 -0
  106. package/dist/elements/decimal.js +11 -0
  107. package/dist/elements/documentUrl.d.ts +35 -0
  108. package/dist/elements/documentUrl.d.ts.map +1 -0
  109. package/dist/elements/documentUrl.js +89 -0
  110. package/dist/elements/drag-drop.d.ts +11 -0
  111. package/dist/elements/drag-drop.d.ts.map +1 -0
  112. package/dist/elements/drag-drop.js +277 -0
  113. package/dist/elements/drag.d.ts +47 -0
  114. package/dist/elements/drag.d.ts.map +1 -0
  115. package/dist/elements/drag.js +362 -0
  116. package/dist/elements/events.d.ts +45 -0
  117. package/dist/elements/events.d.ts.map +1 -0
  118. package/dist/elements/events.js +101 -0
  119. package/dist/elements/fieldBounds.d.ts +5 -0
  120. package/dist/elements/fieldBounds.d.ts.map +1 -0
  121. package/dist/elements/fieldBounds.js +60 -0
  122. package/dist/elements/flow.d.ts +36 -0
  123. package/dist/elements/flow.d.ts.map +1 -0
  124. package/dist/elements/flow.js +47 -0
  125. package/dist/elements/form.d.ts +48 -0
  126. package/dist/elements/form.d.ts.map +1 -0
  127. package/dist/elements/form.js +112 -0
  128. package/dist/elements/grid.d.ts +96 -0
  129. package/dist/elements/grid.d.ts.map +1 -0
  130. package/dist/elements/grid.js +272 -0
  131. package/dist/elements/index.d.ts +36 -0
  132. package/dist/elements/index.d.ts.map +1 -0
  133. package/dist/elements/index.js +35 -0
  134. package/dist/elements/inherited.d.ts +181 -0
  135. package/dist/elements/inherited.d.ts.map +1 -0
  136. package/dist/elements/inherited.js +512 -0
  137. package/dist/elements/labels.d.ts +39 -0
  138. package/dist/elements/labels.d.ts.map +1 -0
  139. package/dist/elements/labels.js +163 -0
  140. package/dist/elements/measure.d.ts +27 -0
  141. package/dist/elements/measure.d.ts.map +1 -0
  142. package/dist/elements/measure.js +24 -0
  143. package/dist/elements/outsidePress.d.ts +31 -0
  144. package/dist/elements/outsidePress.d.ts.map +1 -0
  145. package/dist/elements/outsidePress.js +94 -0
  146. package/dist/elements/paste.d.ts +22 -0
  147. package/dist/elements/paste.d.ts.map +1 -0
  148. package/dist/elements/paste.js +49 -0
  149. package/dist/elements/press.d.ts +41 -0
  150. package/dist/elements/press.d.ts.map +1 -0
  151. package/dist/elements/press.js +131 -0
  152. package/dist/elements/rangeKeyboard.d.ts +41 -0
  153. package/dist/elements/rangeKeyboard.d.ts.map +1 -0
  154. package/dist/elements/rangeKeyboard.js +58 -0
  155. package/dist/elements/rangeValues.d.ts +20 -0
  156. package/dist/elements/rangeValues.d.ts.map +1 -0
  157. package/dist/elements/rangeValues.js +101 -0
  158. package/dist/elements/ref.d.ts +16 -0
  159. package/dist/elements/ref.d.ts.map +1 -0
  160. package/dist/elements/ref.js +22 -0
  161. package/dist/elements/reveal.d.ts +8 -0
  162. package/dist/elements/reveal.d.ts.map +1 -0
  163. package/dist/elements/reveal.js +10 -0
  164. package/dist/elements/scrollReveal.d.ts +19 -0
  165. package/dist/elements/scrollReveal.d.ts.map +1 -0
  166. package/dist/elements/scrollReveal.js +52 -0
  167. package/dist/elements/selectOptions.d.ts +25 -0
  168. package/dist/elements/selectOptions.d.ts.map +1 -0
  169. package/dist/elements/selectOptions.js +60 -0
  170. package/dist/elements/style.d.ts +30 -0
  171. package/dist/elements/style.d.ts.map +1 -0
  172. package/dist/elements/style.js +363 -0
  173. package/dist/elements/svgHover.d.ts +41 -0
  174. package/dist/elements/svgHover.d.ts.map +1 -0
  175. package/dist/elements/svgHover.js +152 -0
  176. package/dist/elements/table.d.ts +52 -0
  177. package/dist/elements/table.d.ts.map +1 -0
  178. package/dist/elements/table.js +104 -0
  179. package/dist/elements/types.d.ts +25 -0
  180. package/dist/elements/types.d.ts.map +1 -0
  181. package/dist/elements/types.js +8 -0
  182. package/dist/elements/viewport.d.ts +53 -0
  183. package/dist/elements/viewport.d.ts.map +1 -0
  184. package/dist/elements/viewport.js +62 -0
  185. package/dist/elements/wheelZoom.d.ts +11 -0
  186. package/dist/elements/wheelZoom.d.ts.map +1 -0
  187. package/dist/elements/wheelZoom.js +7 -0
  188. package/dist/index.d.ts +11 -6
  189. package/dist/index.d.ts.map +1 -1
  190. package/dist/index.js +9 -5
  191. package/dist/platform/focus.d.ts +31 -0
  192. package/dist/platform/focus.d.ts.map +1 -0
  193. package/dist/platform/focus.js +86 -0
  194. package/dist/platform/index.d.ts +31 -0
  195. package/dist/platform/index.d.ts.map +1 -0
  196. package/dist/platform/index.js +179 -0
  197. package/dist/platform/layout.d.ts +13 -0
  198. package/dist/platform/layout.d.ts.map +1 -0
  199. package/dist/platform/layout.js +15 -0
  200. package/dist/platform/position.d.ts +5 -0
  201. package/dist/platform/position.d.ts.map +1 -0
  202. package/dist/platform/position.js +177 -0
  203. package/dist/platform/stack.d.ts +86 -0
  204. package/dist/platform/stack.d.ts.map +1 -0
  205. package/dist/platform/stack.js +318 -0
  206. package/dist/types.d.ts +25 -0
  207. package/dist/types.d.ts.map +1 -0
  208. package/dist/types.js +1 -0
  209. package/package.json +66 -8
@@ -0,0 +1,150 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Box: a container element.
4
+ *
5
+ * @module
6
+ */
7
+ import { useCallback, useContext, useRef } from 'react';
8
+ import { Image as NativeImage, Pressable as NativePressable, View, } from 'react-native';
9
+ import { useDialogAccessibility } from '../platform/focus.js';
10
+ import { layoutChanged } from '../platform/layout.js';
11
+ import { nativeAccessibility } from './accessibility.js';
12
+ import { useImageSource } from './documentUrl.js';
13
+ import { dragViewActions, LongPressDragScope, useDragFrame, useNativeDrag } from './drag.js';
14
+ import { registerInline } from './flow.js';
15
+ import { useGridCell, useGridLayout } from './grid.js';
16
+ import { blockInInline, dataAttributes, ElementScope, flowOf, isCssInline, layoutChildren, splitClasses, useInheritedText, useLineStart, useTagClasses, } from './inherited.js';
17
+ import { useLabelText, WrappingLabel } from './labels.js';
18
+ import { OutsidePressScope, useOutsidePress } from './outsidePress.js';
19
+ import { boxPasteOwner, PasteScope } from './paste.js';
20
+ import { activatePress, ContextMenuScope, isPressable, pressProps, useMousePress } from './press.js';
21
+ import { useNativeRef } from './ref.js';
22
+ import { nativeStyle } from './style.js';
23
+ /**
24
+ * A container: a `View` with the role its `as` tag implies, or a `Pressable` when it has a press, hover
25
+ * or focus handler or a tab stop (a `div` with `onClick`). Its text classes pass to the text
26
+ * inside it, and in a container that is not a flex container its inline children share lines, as
27
+ * CSS lays them out on the web.
28
+ *
29
+ * @param props - See {@link BoxProps}.
30
+ * @returns The element.
31
+ */
32
+ export function Box(props) {
33
+ return props.as === 'label' ? (_jsx(WrappingLabel, { render: (activateLabel) => _jsx(BoxView, { ...props, activateLabel: activateLabel }), children: props.children })) : (_jsx(BoxView, { ...props }));
34
+ }
35
+ /** Draws the box and wires any default label activation after the caller's handler. */
36
+ function BoxView(props) {
37
+ const { as, title, className, style, webStyle, children, ref, activateLabel, hidden } = props;
38
+ const { coverImage, ...layoutStyle } = style ?? {};
39
+ useLabelText(props.id, children, props['aria-label']);
40
+ const split = splitClasses(useTagClasses(className, as), useInheritedText(), dataAttributes(props));
41
+ const host = useRef(null);
42
+ const forward = useNativeRef(ref);
43
+ const setHost = useCallback((view) => {
44
+ host.current = view;
45
+ forward?.(view);
46
+ }, [forward]);
47
+ const [frame, nativeRef] = useDragFrame(setHost);
48
+ const outside = useOutsidePress(hidden ? undefined : props.onPressOutside, ref ? host : undefined);
49
+ const context = useContext(ContextMenuScope);
50
+ const inheritedPaste = useContext(PasteScope);
51
+ const paste = props.onPasteText && boxPasteOwner(props.onPasteText);
52
+ const dialog = props['aria-modal'] === true || props['aria-modal'] === 'true';
53
+ const dialogAccessibility = useDialogAccessibility({
54
+ ...props,
55
+ 'aria-label': props['aria-label'] ?? title,
56
+ });
57
+ const interaction = useMousePress(props, pressProps(as === 'label' ? { ...props, tabIndex: props.tabIndex ?? -1 } : props, activateLabel), paste, !hidden);
58
+ const secondary = hidden ? undefined : props.secondaryAction;
59
+ const inheritedDrag = useContext(LongPressDragScope);
60
+ const ownDrag = hidden ? undefined : props.drag;
61
+ const delegatedDrag = !ownDrag && secondary ? inheritedDrag : null;
62
+ const responder = useNativeDrag(delegatedDrag?.frame ?? frame, {
63
+ drag: ownDrag ?? delegatedDrag?.drag,
64
+ secondary,
65
+ press: interaction,
66
+ });
67
+ const resolvedStyle = nativeStyle(style && layoutStyle, webStyle);
68
+ const addressFontStyle = as === 'address' ? (resolvedStyle?.fontStyle ?? 'italic') : undefined;
69
+ if (as === 'address' && resolvedStyle)
70
+ delete resolvedStyle.fontStyle;
71
+ // Keep the individual cells accessible when the grid owns the gesture.
72
+ const grid = props.role === 'grid' && ownDrag;
73
+ const pressable = isPressable(dialog ? { ...props, tabIndex: undefined } : props);
74
+ const accessible = hidden || as === 'label' || dialog || grid
75
+ ? false
76
+ : (props.accessibilityGroup ?? (responder && (secondary || pressable) ? true : undefined));
77
+ const view = {
78
+ ...nativeAccessibility({ ...props, 'aria-label': props['aria-label'] ?? title }, as),
79
+ ...dialogAccessibility,
80
+ accessible,
81
+ accessibilityElementsHidden: hidden || undefined,
82
+ importantForAccessibility: hidden ? 'no-hide-descendants' : undefined,
83
+ pointerEvents: hidden ? 'none' : undefined,
84
+ collapsable: ref ? false : undefined,
85
+ onLayout: ref ? layoutChanged : undefined,
86
+ onTouchStart: props.onTouchStart
87
+ ? (event) => {
88
+ outside.onTouchStart?.(event);
89
+ props.onTouchStart?.();
90
+ }
91
+ : outside.onTouchStart,
92
+ ...(responder && {
93
+ collapsable: false,
94
+ ...responder,
95
+ ...dragViewActions(props, interaction, interaction.onPress ? () => activatePress(props.onClick, activateLabel) : undefined, secondary),
96
+ }),
97
+ className: split.view || undefined,
98
+ style: [
99
+ resolvedStyle,
100
+ useLineStart(boxFlow(props)),
101
+ useGridCell(),
102
+ hidden && { display: 'none' },
103
+ ],
104
+ };
105
+ const press = !responder && (activateLabel || pressable || paste) ? interaction : null;
106
+ const longPressScope = ownDrag
107
+ ? ownDrag.touchStart === 'longPress'
108
+ ? { frame, drag: ownDrag }
109
+ : null
110
+ : inheritedDrag;
111
+ const background = coverImage ? _jsx(CoverImage, { src: coverImage }) : null;
112
+ return (_jsx(OutsidePressScope.Provider, { value: outside.scope, children: _jsx(ContextMenuScope.Provider, { value: props.onContextMenu ?? context, children: _jsx(PasteScope.Provider, { value: paste ?? inheritedPaste, children: _jsx(LongPressDragScope.Provider, { value: longPressScope, children: _jsx(ElementScope, { split: split, fontStyle: addressFontStyle, children: split.grid ? (_jsx(GridBox, { view: view, press: press, nativeRef: nativeRef, grid: split.grid, split: split, webStyle: webStyle, background: background, children: children })) : press ? (_jsxs(NativePressable, { ...view, ref: nativeRef, ...press, disabled: hidden, children: [background, layoutChildren(children, split)] })) : (_jsxs(View, { ...view, ref: nativeRef, children: [background, layoutChildren(children, split)] })) }) }) }) }) }));
113
+ }
114
+ /** Paints the backdrop without participating in the box's layout, interaction or accessible name. */
115
+ function CoverImage({ src }) {
116
+ const uri = useImageSource(src, 'Box coverImage');
117
+ if (!uri)
118
+ return null;
119
+ return (_jsx(View, { accessible: false, accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", pointerEvents: "none", style: { position: 'absolute', top: 0, right: 0, bottom: 0, left: 0 }, children: _jsx(NativeImage, { source: { uri }, resizeMode: "cover", style: { width: '100%', height: '100%' } }) }));
120
+ }
121
+ /**
122
+ * A Box whose classes make it a CSS grid: its view lays its children out in rows of cells.
123
+ *
124
+ * @param props - The Box's view props, its press handlers, its ref, its grid and split classes, its web
125
+ * style (a track list, gaps) and its children.
126
+ * @returns The grid's view.
127
+ */
128
+ function GridBox({ view, press, nativeRef, grid, split, webStyle, background, children, }) {
129
+ const text = split.text;
130
+ const layout = useGridLayout({
131
+ grid,
132
+ webStyle,
133
+ text,
134
+ split: (className) => splitClasses(className, text),
135
+ children,
136
+ });
137
+ const style = [view.style, layout.style];
138
+ return press ? (_jsxs(NativePressable, { ...view, style: style, ref: nativeRef, ...press, disabled: view.accessibilityElementsHidden, children: [background, layout.rows] })) : (_jsxs(View, { ...view, style: style, ref: nativeRef, children: [background, layout.rows] }));
139
+ }
140
+ /**
141
+ * How a box flows: a span is an inline box, any other tag a block, unless its classes say otherwise.
142
+ *
143
+ * @param props - Its props.
144
+ * @returns Its inline kind.
145
+ */
146
+ function boxFlow(props) {
147
+ const data = dataAttributes(props);
148
+ return blockInInline(flowOf(props.className, props.as === 'span' || props.as === 'label' ? 'box' : null, data), props.children, isCssInline(props.className, props.as === 'span' || props.as === 'label', data));
149
+ }
150
+ registerInline(Box, boxFlow);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * CheckField: a native checkbox or controlled radio.
3
+ *
4
+ * @module
5
+ */
6
+ import { type ReactElement, type Ref } from 'react';
7
+ import { type CheckFieldHandle, type CheckFieldProps } from '@molecule/app-ui';
8
+ /**
9
+ * Draws the check state, handles activation, and contributes a successful control to the form.
10
+ * An accessibility-hidden control retains its handle and registration without drawing a view.
11
+ *
12
+ * @param props - The checkbox or radio's props and ref.
13
+ * @returns The visible control, or null for a hidden one.
14
+ */
15
+ export declare function CheckField(props: CheckFieldProps & {
16
+ ref?: Ref<CheckFieldHandle>;
17
+ }): ReactElement | null;
18
+ //# sourceMappingURL=CheckField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckField.d.ts","sourceRoot":"","sources":["../../src/elements/CheckField.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,GAAG,EAOT,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAe,MAAM,kBAAkB,CAAA;AAqB3F;;;;;;GAMG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,eAAe,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAA;CAAE,GACvD,YAAY,GAAG,IAAI,CA0HrB"}
@@ -0,0 +1,103 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * CheckField: a native checkbox or controlled radio.
4
+ *
5
+ * @module
6
+ */
7
+ import { useCallback, useContext, useImperativeHandle, useLayoutEffect, useRef, useState, } from 'react';
8
+ import { Pressable as NativePressable } from 'react-native';
9
+ import { getClassMap } from '@molecule/app-ui';
10
+ import { nativeAccessibility } from './accessibility.js';
11
+ import { fieldEvent } from './events.js';
12
+ import { registerInline } from './flow.js';
13
+ import { DisabledScope, FormScope, useFieldValue, useFormRegistration } from './form.js';
14
+ import { useGridCell } from './grid.js';
15
+ import { dataAttributes, ElementScope, replacedFlow, splitClasses, useInheritedText, useLineStart, useTagClasses, } from './inherited.js';
16
+ import { useLabelable } from './labels.js';
17
+ import { activatePress, pressProps } from './press.js';
18
+ import { nativeStyle } from './style.js';
19
+ import { Path, Svg } from './Svg.js';
20
+ /**
21
+ * Draws the check state, handles activation, and contributes a successful control to the form.
22
+ * An accessibility-hidden control retains its handle and registration without drawing a view.
23
+ *
24
+ * @param props - The checkbox or radio's props and ref.
25
+ * @returns The visible control, or null for a hidden one.
26
+ */
27
+ export function CheckField(props) {
28
+ const { as, type, name, checked, defaultChecked, indeterminate, className, style, webStyle, required, onChange, onClick, onCheckedChange, onFocus, onBlur, tabIndex, ref, } = props;
29
+ const value = props.value ?? 'on';
30
+ const form = useContext(FormScope);
31
+ const fieldsetDisabled = useContext(DisabledScope);
32
+ const disabled = props.disabled || fieldsetDisabled;
33
+ const hidden = props['aria-hidden'] === true || props['aria-hidden'] === 'true';
34
+ const field = useFieldValue(checked, defaultChecked ?? false);
35
+ const [mixed, setMixed] = useState(indeterminate ?? false);
36
+ useLayoutEffect(() => {
37
+ setMixed(indeterminate ?? false);
38
+ }, [indeterminate]);
39
+ const view = useRef(null);
40
+ const focus = useCallback(() => {
41
+ if (!disabled && !hidden)
42
+ view.current?.focus();
43
+ }, [disabled, hidden]);
44
+ const click = (event) => {
45
+ if (disabled)
46
+ return;
47
+ activatePress(onClick, () => {
48
+ const next = !field.read();
49
+ if (type === 'radio' && !next)
50
+ return;
51
+ setMixed(false);
52
+ field.change(next, () => {
53
+ onChange?.(fieldEvent({ checked: next, value, name: name ?? '', type }));
54
+ onCheckedChange?.(next);
55
+ });
56
+ }, event);
57
+ };
58
+ useImperativeHandle(ref, () => ({
59
+ focus,
60
+ blur: () => view.current?.blur(),
61
+ click: () => click(),
62
+ get checked() {
63
+ return field.read();
64
+ },
65
+ }));
66
+ const label = useLabelable(props.id, hidden ? undefined : () => click());
67
+ useFormRegistration(form?.fields, {
68
+ entries: () => (name && !disabled && field.read() ? [[name, value]] : []),
69
+ valid: () => disabled ||
70
+ !required ||
71
+ field.read() ||
72
+ (type === 'radio' && !!name && form?.hasCheckedRadio(name) === true),
73
+ checkedRadio: () => (type === 'radio' && field.read() ? name : undefined),
74
+ reset: field.reset,
75
+ focus,
76
+ });
77
+ // RN View.focus is available to focusable hosts, and hidden controls never acquire a host.
78
+ useLayoutEffect(() => {
79
+ if (props.autoFocus)
80
+ focus();
81
+ }, [props.autoFocus, focus]);
82
+ const classes = useTagClasses(className, as);
83
+ const marked = mixed || field.displayed;
84
+ const split = splitClasses(classes, useInheritedText(), {
85
+ ...dataAttributes(props),
86
+ state: marked ? 'checked' : 'unchecked',
87
+ });
88
+ const lineStyle = useLineStart(replacedFlow(className, as));
89
+ const gridStyle = useGridCell();
90
+ if (hidden)
91
+ return null;
92
+ const mark = marked
93
+ ? getClassMap().checkFieldMark?.(type === 'radio' ? 'radio' : mixed ? 'mixed' : 'checked', classes)
94
+ : undefined;
95
+ return (_jsx(ElementScope, { split: split, children: _jsx(NativePressable, { ...nativeAccessibility({
96
+ ...props,
97
+ role: props.role ?? type,
98
+ 'aria-checked': props['aria-checked'] ?? (mixed ? 'mixed' : field.displayed),
99
+ 'aria-disabled': disabled || props['aria-disabled'],
100
+ 'aria-label': props['aria-label'] ?? label,
101
+ }), ref: view, className: split.view || undefined, style: [nativeStyle(style, webStyle), lineStyle, gridStyle], disabled: disabled, ...pressProps({ onFocus, onBlur, tabIndex }), onPress: click, children: mark && (_jsx(Svg, { className: mark.className, width: "100%", height: "100%", viewBox: "0 0 16 16", "aria-hidden": true, children: _jsx(Path, { d: mark.path, fill: "currentColor" }) })) }) }));
102
+ }
103
+ registerInline(CheckField, (props) => replacedFlow(props.className, 'input'));
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Disclosure: a pressable summary and a mounted, collapsible body.
3
+ *
4
+ * @module
5
+ */
6
+ import { type ReactElement } from 'react';
7
+ import type { DisclosureProps } from '@molecule/app-ui';
8
+ import type { ElementNode, ElementRefProps } from './types.js';
9
+ /** Draws the summary as a button and keeps closed content mounted but inaccessible. */
10
+ export declare function Disclosure(props: DisclosureProps<ElementNode> & ElementRefProps): ReactElement;
11
+ //# sourceMappingURL=Disclosure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Disclosure.d.ts","sourceRoot":"","sources":["../../src/elements/Disclosure.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAkD,MAAM,OAAO,CAAA;AAGzF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAevD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAgD9D,uFAAuF;AACvF,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,WAAW,CAAC,GAAG,eAAe,GAAG,YAAY,CA8C9F"}
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Disclosure: a pressable summary and a mounted, collapsible body.
4
+ *
5
+ * @module
6
+ */
7
+ import { useCallback, useLayoutEffect, useRef, useState } from 'react';
8
+ import { Pressable, View } from 'react-native';
9
+ import { nativeAccessibility } from './accessibility.js';
10
+ import { registerInline } from './flow.js';
11
+ import { useGridCell } from './grid.js';
12
+ import { dataAttributes, ElementScope, layoutChildren, splitClasses, useInheritedText, useTagClasses, } from './inherited.js';
13
+ import { useNativeRef } from './ref.js';
14
+ import { nativeStyle } from './style.js';
15
+ /** Tracks the applied open state and coalesces changes into one queued notification. */
16
+ function useExpanded(open, onToggle) {
17
+ const [expanded, setExpanded] = useState(open ?? false);
18
+ const current = useRef(false);
19
+ const callback = useRef(onToggle);
20
+ const pending = useRef(false);
21
+ const task = useRef(undefined);
22
+ const queue = useCallback(() => {
23
+ pending.current = true;
24
+ if (task.current !== undefined)
25
+ return;
26
+ task.current = setTimeout(() => {
27
+ task.current = undefined;
28
+ pending.current = false;
29
+ callback.current?.(current.current);
30
+ }, 0);
31
+ }, []);
32
+ const transition = useCallback((next) => {
33
+ if (current.current === next)
34
+ return;
35
+ current.current = next;
36
+ setExpanded(next);
37
+ queue();
38
+ }, [queue]);
39
+ useLayoutEffect(() => {
40
+ callback.current = onToggle;
41
+ }, [onToggle]);
42
+ // Reapply only when the parent changes the supplied value, as React does for the open attribute.
43
+ useLayoutEffect(() => transition(open ?? false), [open, transition]);
44
+ useLayoutEffect(() => {
45
+ // React can replay effect setup after cleanup while keeping state, e.g. in StrictMode.
46
+ if (pending.current)
47
+ queue();
48
+ return () => {
49
+ clearTimeout(task.current);
50
+ task.current = undefined;
51
+ };
52
+ }, [queue]);
53
+ return { expanded, toggle: () => transition(!current.current) };
54
+ }
55
+ /** Draws the summary as a button and keeps closed content mounted but inaccessible. */
56
+ export function Disclosure(props) {
57
+ const { as, open, summary, summaryProps, onToggle, style, webStyle, children, ref } = props;
58
+ const { expanded, toggle } = useExpanded(open, onToggle);
59
+ const split = splitClasses(useTagClasses(props.className, as), useInheritedText(), dataAttributes(props));
60
+ const summarySplit = splitClasses(useTagClasses(summaryProps?.className, 'summary', { first: true, last: children == null }), split.text, summaryProps && dataAttributes(summaryProps));
61
+ return (_jsx(View, { ...nativeAccessibility(props, as), ref: useNativeRef(ref), className: split.view || undefined, style: [nativeStyle(style, webStyle), useGridCell()], children: _jsxs(ElementScope, { split: split, children: [_jsx(Pressable, { ...nativeAccessibility({
62
+ ...summaryProps,
63
+ role: summaryProps?.role ?? 'button',
64
+ children: summary,
65
+ }), accessibilityState: { expanded }, "aria-expanded": expanded, className: summarySplit.view || undefined, onPress: toggle, style: nativeStyle(summaryProps?.style, summaryProps?.webStyle), children: _jsx(ElementScope, { split: summarySplit, children: layoutChildren(summary, summarySplit) }) }), _jsx(View, { accessibilityElementsHidden: expanded ? undefined : true, importantForAccessibility: expanded ? undefined : 'no-hide-descendants', pointerEvents: expanded ? undefined : 'none', style: expanded ? undefined : { display: 'none' }, children: layoutChildren(children, split) })] }) }));
66
+ }
67
+ registerInline(Disclosure, () => null);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Fieldset: a native disabled scope with an optional layout box.
3
+ *
4
+ * @module
5
+ */
6
+ import { type ReactElement } from 'react';
7
+ import type { FieldsetProps } from '@molecule/app-ui';
8
+ import type { ElementNode, ElementRefProps } from './types.js';
9
+ /**
10
+ * Disables descendant controls, with no view when its classes set display contents.
11
+ *
12
+ * @param props - The fieldset's props and ref.
13
+ * @returns The fieldset and its content.
14
+ */
15
+ export declare function Fieldset(props: FieldsetProps<ElementNode> & ElementRefProps): ReactElement;
16
+ //# sourceMappingURL=Fieldset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Fieldset.d.ts","sourceRoot":"","sources":["../../src/elements/Fieldset.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAc,MAAM,OAAO,CAAA;AAGrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAiBrD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE9D;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,eAAe,GAAG,YAAY,CAiC1F"}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Fieldset: a native disabled scope with an optional layout box.
4
+ *
5
+ * @module
6
+ */
7
+ import { useContext } from 'react';
8
+ import { View } from 'react-native';
9
+ import { nativeAccessibility } from './accessibility.js';
10
+ import { registerContents } from './flow.js';
11
+ import { DisabledScope } from './form.js';
12
+ import { useGridCell } from './grid.js';
13
+ import { dataAttributes, ElementScope, layoutChildren, splitClasses, useInheritedText, useTagClasses, wrapStrings, } from './inherited.js';
14
+ import { useNativeRef } from './ref.js';
15
+ import { nativeStyle } from './style.js';
16
+ /**
17
+ * Disables descendant controls, with no view when its classes set display contents.
18
+ *
19
+ * @param props - The fieldset's props and ref.
20
+ * @returns The fieldset and its content.
21
+ */
22
+ export function Fieldset(props) {
23
+ const { as, className, style, webStyle, children, ref } = props;
24
+ const parentDisabled = useContext(DisabledScope);
25
+ const disabled = parentDisabled || props.disabled === true;
26
+ const split = splitClasses(useTagClasses(className, as), useInheritedText(), dataAttributes(props));
27
+ const nativeRef = useNativeRef(ref);
28
+ const gridCell = useGridCell();
29
+ return (_jsx(DisabledScope.Provider, { value: disabled, children: _jsx(ElementScope, { split: split, children: split.display === 'contents' ? (wrapStrings(children, split.text)) : (_jsx(View, { ...nativeAccessibility({ ...props, 'aria-disabled': disabled || props['aria-disabled'] }, as), ref: nativeRef, className: split.view || undefined, style: [nativeStyle(style, webStyle), gridCell], children: layoutChildren(children, split) })) }) }));
30
+ }
31
+ registerContents(Fieldset, (props) => {
32
+ const className = typeof props.className === 'string' ? props.className : undefined;
33
+ return splitClasses(className, '', dataAttributes(props)).display === 'contents';
34
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * File chooser control for React Native.
3
+ *
4
+ * @module
5
+ */
6
+ import { type ReactNode } from 'react';
7
+ import type { FileFieldHandle, FileFieldProps } from '@molecule/app-ui';
8
+ /**
9
+ * Opens the bonded device picker from its browse target or the caller's `pick()` handle.
10
+ */
11
+ export declare const FileField: import("react").ForwardRefExoticComponent<FileFieldProps<ReactNode> & import("react").RefAttributes<FileFieldHandle>>;
12
+ //# sourceMappingURL=FileField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileField.d.ts","sourceRoot":"","sources":["../../src/elements/FileField.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAc,KAAK,SAAS,EAAgD,MAAM,OAAO,CAAA;AAKhG,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAgBvE;;GAEG;AACH,eAAO,MAAM,SAAS,uHAwHrB,CAAA"}
@@ -0,0 +1,111 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * File chooser control for React Native.
4
+ *
5
+ * @module
6
+ */
7
+ import { forwardRef, useImperativeHandle, useLayoutEffect, useRef } from 'react';
8
+ import { getProvider } from '@molecule/app-file-picker';
9
+ import { filterPickedFiles } from '@molecule/app-filesystem';
10
+ import { useT } from '@molecule/app-react';
11
+ import { registeredKind, registerInline } from './flow.js';
12
+ import { Pressable } from './Pressable.js';
13
+ /**
14
+ * Reports a picker failure the same way as the browser field.
15
+ *
16
+ * @param error - The underlying picker or selection error.
17
+ * @param onPickError - The current consumer error handler.
18
+ */
19
+ function reportPickError(error, onPickError) {
20
+ if (!onPickError)
21
+ throw error;
22
+ onPickError(error instanceof Error ? error : new Error(String(error), { cause: error }));
23
+ }
24
+ /**
25
+ * Opens the bonded device picker from its browse target or the caller's `pick()` handle.
26
+ */
27
+ export const FileField = forwardRef(function FileField(props, ref) {
28
+ const { accept, children, disabled, externalTrigger, maxSize, multiple, onPickError, onRejected, onValueChange, role = 'button', tabIndex, ...attrs } = props;
29
+ const t = useT();
30
+ const latest = useRef({
31
+ accept,
32
+ disabled,
33
+ maxSize,
34
+ multiple,
35
+ onPickError,
36
+ onRejected,
37
+ onValueChange,
38
+ });
39
+ const pending = useRef(null);
40
+ useLayoutEffect(() => {
41
+ latest.current = {
42
+ accept,
43
+ disabled,
44
+ maxSize,
45
+ multiple,
46
+ onPickError,
47
+ onRejected,
48
+ onValueChange,
49
+ };
50
+ if (disabled && pending.current)
51
+ pending.current.discard = true;
52
+ }, [accept, disabled, maxSize, multiple, onPickError, onRejected, onValueChange]);
53
+ useLayoutEffect(() => () => {
54
+ if (pending.current)
55
+ pending.current.discard = true;
56
+ }, []);
57
+ /** Starts at most one request for this pressable and delivers it to the current render. */
58
+ function open() {
59
+ const options = latest.current;
60
+ if (options.disabled || pending.current)
61
+ return;
62
+ const picker = getProvider();
63
+ if (!picker) {
64
+ const message = t('ui.fileField.error.missingProvider', { bond: '@molecule/app-file-picker-expo', core: '@molecule/app-file-picker' }, {
65
+ defaultValue: 'No file picker is bonded. Import `provider` from {{bond}} and call `setProvider(provider)` from {{core}} in `setupProviders()`.',
66
+ });
67
+ reportPickError(new Error(message), options.onPickError);
68
+ return;
69
+ }
70
+ const request = { discard: false };
71
+ pending.current = request;
72
+ const pick = async () => {
73
+ let selection;
74
+ try {
75
+ const files = await picker.pickFiles({
76
+ accept: options.accept,
77
+ multiple: options.multiple,
78
+ includeRejected: true,
79
+ });
80
+ if (request.discard)
81
+ return;
82
+ selection = filterPickedFiles(files, latest.current);
83
+ }
84
+ catch (error) {
85
+ if (!request.discard)
86
+ reportPickError(error, latest.current.onPickError);
87
+ return;
88
+ }
89
+ finally {
90
+ pending.current = null;
91
+ }
92
+ const { onValueChange, onRejected } = latest.current;
93
+ if (selection.accepted.length)
94
+ onValueChange(selection.accepted);
95
+ if (selection.rejected.length)
96
+ onRejected?.(selection.rejected);
97
+ };
98
+ void pick().catch((error) => {
99
+ // Pressable has a void event handler. Raise an exception on the host after the await.
100
+ queueMicrotask(() => {
101
+ throw error;
102
+ });
103
+ });
104
+ }
105
+ useImperativeHandle(ref, () => ({ pick: open }));
106
+ if (externalTrigger)
107
+ return null;
108
+ return (_jsx(Pressable, { as: "div", role: role, "data-mol-id": "file-field", ...attrs, "aria-label": attrs['aria-label'] ??
109
+ t('ui.fileField.browse', undefined, { defaultValue: 'Browse files' }), "aria-disabled": disabled, disabled: disabled, tabIndex: tabIndex ?? (disabled ? -1 : 0), onClick: open, children: children }));
110
+ });
111
+ registerInline(FileField, (props) => registeredKind(Pressable, { ...props, as: 'div' }) ?? null);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * FormArea: a native scope for grouping, validating and submitting controls.
3
+ *
4
+ * @module
5
+ */
6
+ import { type ReactElement, type Ref } from 'react';
7
+ import type { FormAreaHandle, FormAreaProps } from '@molecule/app-ui';
8
+ import type { ElementNode } from './types.js';
9
+ /**
10
+ * Draws a form container and supplies its submit, reset and scoped label associations.
11
+ *
12
+ * @param props - The form's props and ref.
13
+ * @returns The form and its content.
14
+ */
15
+ export declare function FormArea(props: FormAreaProps<ElementNode> & {
16
+ ref?: Ref<FormAreaHandle>;
17
+ }): ReactElement;
18
+ //# sourceMappingURL=FormArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormArea.d.ts","sourceRoot":"","sources":["../../src/elements/FormArea.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,GAAG,EAMT,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAerE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAA;CAAE,GAChE,YAAY,CA6Cd"}
@@ -0,0 +1,42 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * FormArea: a native scope for grouping, validating and submitting controls.
4
+ *
5
+ * @module
6
+ */
7
+ import { useEffect, useImperativeHandle, useLayoutEffect, useRef, useState, } from 'react';
8
+ import { View } from 'react-native';
9
+ import { nativeAccessibility } from './accessibility.js';
10
+ import { createFormScope, FormScope } from './form.js';
11
+ import { useGridCell } from './grid.js';
12
+ import { dataAttributes, ElementScope, layoutChildren, splitClasses, useInheritedText, useTagClasses, } from './inherited.js';
13
+ import { createLabelDirectory, FormLabels } from './labels.js';
14
+ import { nativeStyle } from './style.js';
15
+ /**
16
+ * Draws a form container and supplies its submit, reset and scoped label associations.
17
+ *
18
+ * @param props - The form's props and ref.
19
+ * @returns The form and its content.
20
+ */
21
+ export function FormArea(props) {
22
+ const { as, action, onSubmit, className, style, webStyle, children, ref } = props;
23
+ const latest = useRef(props);
24
+ useLayoutEffect(() => {
25
+ latest.current = props;
26
+ }, [props]);
27
+ const [form] = useState(() => createFormScope(() => latest.current));
28
+ const [labels] = useState(createLabelDirectory);
29
+ const view = useRef(null);
30
+ useImperativeHandle(ref, () => ({
31
+ focus: () => view.current?.focus(),
32
+ blur: () => view.current?.blur(),
33
+ requestSubmit: form.submit,
34
+ }), [form]);
35
+ useEffect(() => {
36
+ if (typeof __DEV__ !== 'undefined' && __DEV__ && action !== undefined && !onSubmit) {
37
+ console.error('FormArea requires onSubmit to handle an action on React Native.');
38
+ }
39
+ }, [action, onSubmit]);
40
+ const split = splitClasses(useTagClasses(className, as), useInheritedText(), dataAttributes(props));
41
+ return (_jsx(FormScope.Provider, { value: form, children: _jsx(FormLabels.Provider, { value: labels, children: _jsx(ElementScope, { split: split, children: _jsx(View, { ...nativeAccessibility(props, as), ref: view, className: split.view || undefined, style: [nativeStyle(style, webStyle), useGridCell()], children: layoutChildren(children, split) }) }) }) }));
42
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * GlyphIcon: a glyph of the icon font.
3
+ *
4
+ * @module
5
+ */
6
+ import type { ReactElement } from 'react';
7
+ import { type GlyphIconProps } from '@molecule/app-ui';
8
+ import type { ElementRefProps } from './types.js';
9
+ /**
10
+ * A glyph of the icon font: a native `Text` drawing the glyph's codepoint in the icon font the app
11
+ * set (`setFont` with an `icon` font that has `glyphs`, such as
12
+ * `@molecule/app-fonts-material-symbols/native`), since a device draws neither ligatures nor
13
+ * variable axes. A name the font does not draw renders nothing.
14
+ *
15
+ * @param props - See {@link GlyphIconProps}.
16
+ * @returns The element, or `null`.
17
+ */
18
+ export declare function GlyphIcon(props: GlyphIconProps & ElementRefProps): ReactElement | null;
19
+ //# sourceMappingURL=GlyphIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlyphIcon.d.ts","sourceRoot":"","sources":["../../src/elements/GlyphIcon.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAIzC,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAcnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAKjD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,GAAG,YAAY,GAAG,IAAI,CAmCtF"}