@oxyhq/bloom 0.15.0 → 0.16.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 (188) hide show
  1. package/lib/commonjs/alert-dialog/AlertDialog.js +35 -27
  2. package/lib/commonjs/alert-dialog/AlertDialog.js.map +1 -1
  3. package/lib/commonjs/alert-dialog/index.js +1 -1
  4. package/lib/commonjs/alert-dialog/index.js.map +1 -1
  5. package/lib/commonjs/alert-dialog/index.web.js +1 -1
  6. package/lib/commonjs/alert-dialog/index.web.js.map +1 -1
  7. package/lib/commonjs/command/Command.js +27 -16
  8. package/lib/commonjs/command/Command.js.map +1 -1
  9. package/lib/commonjs/command/index.js +1 -1
  10. package/lib/commonjs/command/index.js.map +1 -1
  11. package/lib/commonjs/command/index.web.js +1 -1
  12. package/lib/commonjs/command/index.web.js.map +1 -1
  13. package/lib/commonjs/dialog/Dialog.js +1 -2
  14. package/lib/commonjs/dialog/Dialog.js.map +1 -1
  15. package/lib/commonjs/dialog/Dialog.web.js +9 -6
  16. package/lib/commonjs/dialog/Dialog.web.js.map +1 -1
  17. package/lib/commonjs/dialog/index.js +0 -13
  18. package/lib/commonjs/dialog/index.js.map +1 -1
  19. package/lib/commonjs/dialog/index.web.js +0 -19
  20. package/lib/commonjs/dialog/index.web.js.map +1 -1
  21. package/lib/commonjs/index.js +0 -29
  22. package/lib/commonjs/index.js.map +1 -1
  23. package/lib/commonjs/index.web.js +6 -35
  24. package/lib/commonjs/index.web.js.map +1 -1
  25. package/lib/module/alert-dialog/AlertDialog.js +35 -27
  26. package/lib/module/alert-dialog/AlertDialog.js.map +1 -1
  27. package/lib/module/alert-dialog/index.js +2 -2
  28. package/lib/module/alert-dialog/index.js.map +1 -1
  29. package/lib/module/alert-dialog/index.web.js +2 -2
  30. package/lib/module/alert-dialog/index.web.js.map +1 -1
  31. package/lib/module/command/Command.js +27 -16
  32. package/lib/module/command/Command.js.map +1 -1
  33. package/lib/module/command/index.js +2 -2
  34. package/lib/module/command/index.js.map +1 -1
  35. package/lib/module/command/index.web.js +2 -2
  36. package/lib/module/command/index.web.js.map +1 -1
  37. package/lib/module/dialog/Dialog.js +1 -2
  38. package/lib/module/dialog/Dialog.js.map +1 -1
  39. package/lib/module/dialog/Dialog.web.js +9 -6
  40. package/lib/module/dialog/Dialog.web.js.map +1 -1
  41. package/lib/module/dialog/index.js +0 -1
  42. package/lib/module/dialog/index.js.map +1 -1
  43. package/lib/module/dialog/index.web.js +0 -1
  44. package/lib/module/dialog/index.web.js.map +1 -1
  45. package/lib/module/index.js +1 -3
  46. package/lib/module/index.js.map +1 -1
  47. package/lib/module/index.web.js +1 -3
  48. package/lib/module/index.web.js.map +1 -1
  49. package/lib/typescript/commonjs/alert-dialog/AlertDialog.d.ts +13 -12
  50. package/lib/typescript/commonjs/alert-dialog/AlertDialog.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/alert-dialog/index.d.ts.map +1 -1
  52. package/lib/typescript/commonjs/alert-dialog/index.web.d.ts.map +1 -1
  53. package/lib/typescript/commonjs/command/Command.d.ts +8 -8
  54. package/lib/typescript/commonjs/command/Command.d.ts.map +1 -1
  55. package/lib/typescript/commonjs/command/index.d.ts.map +1 -1
  56. package/lib/typescript/commonjs/command/index.web.d.ts.map +1 -1
  57. package/lib/typescript/commonjs/dialog/Dialog.d.ts +1 -2
  58. package/lib/typescript/commonjs/dialog/Dialog.d.ts.map +1 -1
  59. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts +2 -2
  60. package/lib/typescript/commonjs/dialog/Dialog.web.d.ts.map +1 -1
  61. package/lib/typescript/commonjs/dialog/index.d.ts +0 -2
  62. package/lib/typescript/commonjs/dialog/index.d.ts.map +1 -1
  63. package/lib/typescript/commonjs/dialog/index.web.d.ts +0 -2
  64. package/lib/typescript/commonjs/dialog/index.web.d.ts.map +1 -1
  65. package/lib/typescript/commonjs/index.d.ts +2 -4
  66. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  67. package/lib/typescript/commonjs/index.web.d.ts +2 -4
  68. package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
  69. package/lib/typescript/module/alert-dialog/AlertDialog.d.ts +13 -12
  70. package/lib/typescript/module/alert-dialog/AlertDialog.d.ts.map +1 -1
  71. package/lib/typescript/module/alert-dialog/index.d.ts.map +1 -1
  72. package/lib/typescript/module/alert-dialog/index.web.d.ts.map +1 -1
  73. package/lib/typescript/module/command/Command.d.ts +8 -8
  74. package/lib/typescript/module/command/Command.d.ts.map +1 -1
  75. package/lib/typescript/module/command/index.d.ts.map +1 -1
  76. package/lib/typescript/module/command/index.web.d.ts.map +1 -1
  77. package/lib/typescript/module/dialog/Dialog.d.ts +1 -2
  78. package/lib/typescript/module/dialog/Dialog.d.ts.map +1 -1
  79. package/lib/typescript/module/dialog/Dialog.web.d.ts +2 -2
  80. package/lib/typescript/module/dialog/Dialog.web.d.ts.map +1 -1
  81. package/lib/typescript/module/dialog/index.d.ts +0 -2
  82. package/lib/typescript/module/dialog/index.d.ts.map +1 -1
  83. package/lib/typescript/module/dialog/index.web.d.ts +0 -2
  84. package/lib/typescript/module/dialog/index.web.d.ts.map +1 -1
  85. package/lib/typescript/module/index.d.ts +2 -4
  86. package/lib/typescript/module/index.d.ts.map +1 -1
  87. package/lib/typescript/module/index.web.d.ts +2 -4
  88. package/lib/typescript/module/index.web.d.ts.map +1 -1
  89. package/package.json +1 -18
  90. package/src/__tests__/AlertDialog.test.tsx +122 -0
  91. package/src/__tests__/Command.test.tsx +107 -0
  92. package/src/alert-dialog/AlertDialog.tsx +46 -36
  93. package/src/alert-dialog/index.ts +2 -2
  94. package/src/alert-dialog/index.web.ts +2 -2
  95. package/src/command/Command.tsx +30 -19
  96. package/src/command/index.ts +2 -2
  97. package/src/command/index.web.ts +2 -2
  98. package/src/dialog/Dialog.tsx +1 -2
  99. package/src/dialog/Dialog.web.tsx +9 -6
  100. package/src/dialog/index.ts +0 -2
  101. package/src/dialog/index.web.ts +0 -6
  102. package/src/index.ts +0 -11
  103. package/src/index.web.ts +0 -11
  104. package/lib/commonjs/dialog/CenteredDialog.js +0 -252
  105. package/lib/commonjs/dialog/CenteredDialog.js.map +0 -1
  106. package/lib/commonjs/dialog/CenteredDialog.web.js +0 -330
  107. package/lib/commonjs/dialog/CenteredDialog.web.js.map +0 -1
  108. package/lib/commonjs/dialog/centered-dialog-tokens.js +0 -62
  109. package/lib/commonjs/dialog/centered-dialog-tokens.js.map +0 -1
  110. package/lib/commonjs/dialog/centered-dialog-types.js +0 -6
  111. package/lib/commonjs/dialog/centered-dialog-types.js.map +0 -1
  112. package/lib/commonjs/responsive-sheet/ResponsiveSheet.js +0 -97
  113. package/lib/commonjs/responsive-sheet/ResponsiveSheet.js.map +0 -1
  114. package/lib/commonjs/responsive-sheet/ResponsiveSheet.web.js +0 -84
  115. package/lib/commonjs/responsive-sheet/ResponsiveSheet.web.js.map +0 -1
  116. package/lib/commonjs/responsive-sheet/index.js +0 -19
  117. package/lib/commonjs/responsive-sheet/index.js.map +0 -1
  118. package/lib/commonjs/responsive-sheet/index.web.js +0 -19
  119. package/lib/commonjs/responsive-sheet/index.web.js.map +0 -1
  120. package/lib/commonjs/responsive-sheet/types.js +0 -6
  121. package/lib/commonjs/responsive-sheet/types.js.map +0 -1
  122. package/lib/module/dialog/CenteredDialog.js +0 -246
  123. package/lib/module/dialog/CenteredDialog.js.map +0 -1
  124. package/lib/module/dialog/CenteredDialog.web.js +0 -324
  125. package/lib/module/dialog/CenteredDialog.web.js.map +0 -1
  126. package/lib/module/dialog/centered-dialog-tokens.js +0 -58
  127. package/lib/module/dialog/centered-dialog-tokens.js.map +0 -1
  128. package/lib/module/dialog/centered-dialog-types.js +0 -4
  129. package/lib/module/dialog/centered-dialog-types.js.map +0 -1
  130. package/lib/module/responsive-sheet/ResponsiveSheet.js +0 -90
  131. package/lib/module/responsive-sheet/ResponsiveSheet.js.map +0 -1
  132. package/lib/module/responsive-sheet/ResponsiveSheet.web.js +0 -77
  133. package/lib/module/responsive-sheet/ResponsiveSheet.web.js.map +0 -1
  134. package/lib/module/responsive-sheet/index.js +0 -4
  135. package/lib/module/responsive-sheet/index.js.map +0 -1
  136. package/lib/module/responsive-sheet/index.web.js +0 -12
  137. package/lib/module/responsive-sheet/index.web.js.map +0 -1
  138. package/lib/module/responsive-sheet/types.js +0 -4
  139. package/lib/module/responsive-sheet/types.js.map +0 -1
  140. package/lib/typescript/commonjs/dialog/CenteredDialog.d.ts +0 -22
  141. package/lib/typescript/commonjs/dialog/CenteredDialog.d.ts.map +0 -1
  142. package/lib/typescript/commonjs/dialog/CenteredDialog.web.d.ts +0 -31
  143. package/lib/typescript/commonjs/dialog/CenteredDialog.web.d.ts.map +0 -1
  144. package/lib/typescript/commonjs/dialog/centered-dialog-tokens.d.ts +0 -47
  145. package/lib/typescript/commonjs/dialog/centered-dialog-tokens.d.ts.map +0 -1
  146. package/lib/typescript/commonjs/dialog/centered-dialog-types.d.ts +0 -74
  147. package/lib/typescript/commonjs/dialog/centered-dialog-types.d.ts.map +0 -1
  148. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.d.ts +0 -22
  149. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.d.ts.map +0 -1
  150. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.web.d.ts +0 -16
  151. package/lib/typescript/commonjs/responsive-sheet/ResponsiveSheet.web.d.ts.map +0 -1
  152. package/lib/typescript/commonjs/responsive-sheet/index.d.ts +0 -3
  153. package/lib/typescript/commonjs/responsive-sheet/index.d.ts.map +0 -1
  154. package/lib/typescript/commonjs/responsive-sheet/index.web.d.ts +0 -3
  155. package/lib/typescript/commonjs/responsive-sheet/index.web.d.ts.map +0 -1
  156. package/lib/typescript/commonjs/responsive-sheet/types.d.ts +0 -58
  157. package/lib/typescript/commonjs/responsive-sheet/types.d.ts.map +0 -1
  158. package/lib/typescript/module/dialog/CenteredDialog.d.ts +0 -22
  159. package/lib/typescript/module/dialog/CenteredDialog.d.ts.map +0 -1
  160. package/lib/typescript/module/dialog/CenteredDialog.web.d.ts +0 -31
  161. package/lib/typescript/module/dialog/CenteredDialog.web.d.ts.map +0 -1
  162. package/lib/typescript/module/dialog/centered-dialog-tokens.d.ts +0 -47
  163. package/lib/typescript/module/dialog/centered-dialog-tokens.d.ts.map +0 -1
  164. package/lib/typescript/module/dialog/centered-dialog-types.d.ts +0 -74
  165. package/lib/typescript/module/dialog/centered-dialog-types.d.ts.map +0 -1
  166. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.d.ts +0 -22
  167. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.d.ts.map +0 -1
  168. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.web.d.ts +0 -16
  169. package/lib/typescript/module/responsive-sheet/ResponsiveSheet.web.d.ts.map +0 -1
  170. package/lib/typescript/module/responsive-sheet/index.d.ts +0 -3
  171. package/lib/typescript/module/responsive-sheet/index.d.ts.map +0 -1
  172. package/lib/typescript/module/responsive-sheet/index.web.d.ts +0 -3
  173. package/lib/typescript/module/responsive-sheet/index.web.d.ts.map +0 -1
  174. package/lib/typescript/module/responsive-sheet/types.d.ts +0 -58
  175. package/lib/typescript/module/responsive-sheet/types.d.ts.map +0 -1
  176. package/src/__tests__/CenteredDialog.test.tsx +0 -108
  177. package/src/__tests__/ResponsiveSheet.test.tsx +0 -88
  178. package/src/dialog/CenteredDialog.stories.tsx +0 -125
  179. package/src/dialog/CenteredDialog.tsx +0 -305
  180. package/src/dialog/CenteredDialog.web.tsx +0 -374
  181. package/src/dialog/centered-dialog-tokens.ts +0 -68
  182. package/src/dialog/centered-dialog-types.ts +0 -74
  183. package/src/responsive-sheet/ResponsiveSheet.stories.tsx +0 -54
  184. package/src/responsive-sheet/ResponsiveSheet.tsx +0 -88
  185. package/src/responsive-sheet/ResponsiveSheet.web.tsx +0 -76
  186. package/src/responsive-sheet/index.ts +0 -6
  187. package/src/responsive-sheet/index.web.ts +0 -14
  188. package/src/responsive-sheet/types.ts +0 -60
@@ -1,62 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.VIEWPORT_GUTTER = exports.MAX_HEIGHT_FRACTION = exports.DEFAULT_MAX_WIDTH = exports.COZY_SPACING = exports.COMPACT_SPACING = exports.CARD_RADIUS = void 0;
7
- exports.resolveSpacing = resolveSpacing;
8
- var _tokens = require("../styles/tokens.js");
9
- /**
10
- * Shared layout constants for `<CenteredDialog>`, kept in one module so the
11
- * native and web forks render identically. All values are Bloom theme tokens
12
- * (`styles/tokens`) — no ad-hoc magic numbers.
13
- *
14
- * COMPACT is the priority: the `compact` spacing set is the default and is
15
- * deliberately tight (≈`space.md`), so the card reads snug out of the box.
16
- * The `cozy` set is the opt-out (`compact={false}`) for roomier dialogs.
17
- */
18
-
19
- /** Default max card width — comfortable for a compact dialog. */
20
- const DEFAULT_MAX_WIDTH = exports.DEFAULT_MAX_WIDTH = 440;
21
-
22
- /** Card height is capped at this fraction of the viewport; body scrolls. */
23
- const MAX_HEIGHT_FRACTION = exports.MAX_HEIGHT_FRACTION = 0.8;
24
-
25
- /** Card corner radius (token: `borderRadius.lg` = 16). */
26
- const CARD_RADIUS = exports.CARD_RADIUS = _tokens.borderRadius.lg;
27
-
28
- /** Outer gutter between the card edge and the viewport edge (token `space.lg`). */
29
- const VIEWPORT_GUTTER = exports.VIEWPORT_GUTTER = _tokens.space.lg;
30
- /**
31
- * Compact (default) — tight, snug spacing built on `space.md` (12).
32
- *
33
- * pad = space.md (12)
34
- * headerGap = space.sm (8)
35
- * footerGap = space.md (12)
36
- * contentGap = space.sm (8)
37
- */
38
- const COMPACT_SPACING = exports.COMPACT_SPACING = {
39
- pad: _tokens.space.md,
40
- headerGap: _tokens.space.sm,
41
- footerGap: _tokens.space.md,
42
- contentGap: _tokens.space.sm
43
- };
44
-
45
- /**
46
- * Cozy (`compact={false}`) — roomier spacing built on `space.xl` (20).
47
- *
48
- * pad = space.xl (20)
49
- * headerGap = space.md (12)
50
- * footerGap = space.lg (16)
51
- * contentGap = space.md (12)
52
- */
53
- const COZY_SPACING = exports.COZY_SPACING = {
54
- pad: _tokens.space.xl,
55
- headerGap: _tokens.space.md,
56
- footerGap: _tokens.space.lg,
57
- contentGap: _tokens.space.md
58
- };
59
- function resolveSpacing(compact) {
60
- return compact ? COMPACT_SPACING : COZY_SPACING;
61
- }
62
- //# sourceMappingURL=centered-dialog-tokens.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_tokens","require","DEFAULT_MAX_WIDTH","exports","MAX_HEIGHT_FRACTION","CARD_RADIUS","borderRadius","lg","VIEWPORT_GUTTER","space","COMPACT_SPACING","pad","md","headerGap","sm","footerGap","contentGap","COZY_SPACING","xl","resolveSpacing","compact"],"sourceRoot":"../../../src","sources":["dialog/centered-dialog-tokens.ts"],"mappings":";;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACO,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,GAAG;;AAEpC;AACO,MAAME,mBAAmB,GAAAD,OAAA,CAAAC,mBAAA,GAAG,GAAG;;AAEtC;AACO,MAAMC,WAAW,GAAAF,OAAA,CAAAE,WAAA,GAAGC,oBAAY,CAACC,EAAE;;AAE1C;AACO,MAAMC,eAAe,GAAAL,OAAA,CAAAK,eAAA,GAAGC,aAAK,CAACF,EAAE;AAavC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,eAA8B,GAAAP,OAAA,CAAAO,eAAA,GAAG;EAC5CC,GAAG,EAAEF,aAAK,CAACG,EAAE;EACbC,SAAS,EAAEJ,aAAK,CAACK,EAAE;EACnBC,SAAS,EAAEN,aAAK,CAACG,EAAE;EACnBI,UAAU,EAAEP,aAAK,CAACK;AACpB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,YAA2B,GAAAd,OAAA,CAAAc,YAAA,GAAG;EACzCN,GAAG,EAAEF,aAAK,CAACS,EAAE;EACbL,SAAS,EAAEJ,aAAK,CAACG,EAAE;EACnBG,SAAS,EAAEN,aAAK,CAACF,EAAE;EACnBS,UAAU,EAAEP,aAAK,CAACG;AACpB,CAAC;AAEM,SAASO,cAAcA,CAACC,OAAgB,EAAiB;EAC9D,OAAOA,OAAO,GAAGV,eAAe,GAAGO,YAAY;AACjD","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=centered-dialog-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["dialog/centered-dialog-types.ts"],"mappings":"","ignoreList":[]}
@@ -1,97 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.RESPONSIVE_SHEET_BACKDROP_TESTID = void 0;
7
- exports.ResponsiveSheet = ResponsiveSheet;
8
- exports.default = void 0;
9
- var _react = _interopRequireDefault(require("react"));
10
- var _dialog = require("../dialog");
11
- var _placement = require("../dialog/placement.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- /**
15
- * @deprecated Use `<Dialog placement={{ base: 'bottom', md: 'left' }}>` instead.
16
- *
17
- * `ResponsiveSheet` is now a thin wrapper that configures the canonical
18
- * `<Dialog>` — an anchored side-sheet on wide screens collapsing to a
19
- * bottom-sheet below the breakpoint. It holds ZERO motion/layout logic of its
20
- * own; it maps its props onto a responsive `Dialog` `placement`. The
21
- * `@oxyhq/bloom/responsive-sheet` subpath is retained for the migration window.
22
- *
23
- * This file is BOTH the package default entry (resolved by downstream `tsc`
24
- * and non-Metro web bundlers via the `browser` condition through `index.web`)
25
- * AND a clean delegation, so it carries no platform-specific imports.
26
- */
27
- function ResponsiveSheet({
28
- open,
29
- onClose,
30
- side = 'left',
31
- breakpoint = _placement.BREAKPOINT_MD,
32
- width,
33
- maxHeightRatio,
34
- inset,
35
- showHandle,
36
- dismissOnBackdrop,
37
- panelStyle,
38
- panelClassName,
39
- containerStyle,
40
- containerClassName,
41
- label,
42
- children
43
- }) {
44
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialog.Dialog, {
45
- open: open,
46
- onClose: onClose,
47
- placement: placementForSide(side, breakpoint),
48
- width: width,
49
- maxHeightRatio: maxHeightRatio,
50
- inset: inset,
51
- showHandle: showHandle,
52
- dismissOnBackdrop: dismissOnBackdrop,
53
- panelStyle: panelStyle,
54
- panelClassName: panelClassName,
55
- containerStyle: containerStyle,
56
- containerClassName: containerClassName,
57
- label: label,
58
- children: children
59
- });
60
- }
61
-
62
- /**
63
- * Build the `Dialog` `placement` map for a `ResponsiveSheet`: a bottom-sheet
64
- * below `breakpoint`, the anchored `side` at and above it. The `breakpoint`
65
- * (px) is bucketed to the nearest Tailwind key so the side-sheet engages at the
66
- * matching width.
67
- */
68
- function placementForSide(side, breakpoint) {
69
- if (breakpoint <= _placement.BREAKPOINT_SM) return {
70
- base: 'bottom',
71
- sm: side
72
- };
73
- if (breakpoint <= _placement.BREAKPOINT_MD) return {
74
- base: 'bottom',
75
- md: side
76
- };
77
- if (breakpoint <= _placement.BREAKPOINT_LG) return {
78
- base: 'bottom',
79
- lg: side
80
- };
81
- if (breakpoint <= _placement.BREAKPOINT_XL) return {
82
- base: 'bottom',
83
- xl: side
84
- };
85
- return {
86
- base: 'bottom',
87
- xl: side
88
- };
89
- }
90
-
91
- /**
92
- * @deprecated Stable testID for the dimmed backdrop dismiss button — now
93
- * provided by the underlying `<Dialog>`'s side/bottom backdrop.
94
- */
95
- const RESPONSIVE_SHEET_BACKDROP_TESTID = exports.RESPONSIVE_SHEET_BACKDROP_TESTID = _placement.DIALOG_SHEET_BACKDROP_TESTID;
96
- var _default = exports.default = ResponsiveSheet;
97
- //# sourceMappingURL=ResponsiveSheet.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_dialog","_placement","_jsxRuntime","e","__esModule","default","ResponsiveSheet","open","onClose","side","breakpoint","BREAKPOINT_MD","width","maxHeightRatio","inset","showHandle","dismissOnBackdrop","panelStyle","panelClassName","containerStyle","containerClassName","label","children","jsx","Dialog","placement","placementForSide","BREAKPOINT_SM","base","sm","md","BREAKPOINT_LG","lg","BREAKPOINT_XL","xl","RESPONSIVE_SHEET_BACKDROP_TESTID","exports","DIALOG_SHEET_BACKDROP_TESTID","_default"],"sourceRoot":"../../../src","sources":["responsive-sheet/ResponsiveSheet.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAO6B,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,eAAeA,CAAC;EAC9BC,IAAI;EACJC,OAAO;EACPC,IAAI,GAAG,MAAM;EACbC,UAAU,GAAGC,wBAAa;EAC1BC,KAAK;EACLC,cAAc;EACdC,KAAK;EACLC,UAAU;EACVC,iBAAiB;EACjBC,UAAU;EACVC,cAAc;EACdC,cAAc;EACdC,kBAAkB;EAClBC,KAAK;EACLC;AACoB,CAAC,EAAE;EACvB,oBACE,IAAApB,WAAA,CAAAqB,GAAA,EAACvB,OAAA,CAAAwB,MAAM;IACLjB,IAAI,EAAEA,IAAK;IACXC,OAAO,EAAEA,OAAQ;IACjBiB,SAAS,EAAEC,gBAAgB,CAACjB,IAAI,EAAEC,UAAU,CAAE;IAC9CE,KAAK,EAAEA,KAAM;IACbC,cAAc,EAAEA,cAAe;IAC/BC,KAAK,EAAEA,KAAM;IACbC,UAAU,EAAEA,UAAW;IACvBC,iBAAiB,EAAEA,iBAAkB;IACrCC,UAAU,EAAEA,UAAW;IACvBC,cAAc,EAAEA,cAAe;IAC/BC,cAAc,EAAEA,cAAe;IAC/BC,kBAAkB,EAAEA,kBAAmB;IACvCC,KAAK,EAAEA,KAAM;IAAAC,QAAA,EAEZA;EAAQ,CACH,CAAC;AAEb;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,SAASI,gBAAgBA,CACvBjB,IAAsB,EACtBC,UAAkB,EACS;EAC3B,IAAIA,UAAU,IAAIiB,wBAAa,EAAE,OAAO;IAAEC,IAAI,EAAE,QAAQ;IAAEC,EAAE,EAAEpB;EAAK,CAAC;EACpE,IAAIC,UAAU,IAAIC,wBAAa,EAAE,OAAO;IAAEiB,IAAI,EAAE,QAAQ;IAAEE,EAAE,EAAErB;EAAK,CAAC;EACpE,IAAIC,UAAU,IAAIqB,wBAAa,EAAE,OAAO;IAAEH,IAAI,EAAE,QAAQ;IAAEI,EAAE,EAAEvB;EAAK,CAAC;EACpE,IAAIC,UAAU,IAAIuB,wBAAa,EAAE,OAAO;IAAEL,IAAI,EAAE,QAAQ;IAAEM,EAAE,EAAEzB;EAAK,CAAC;EACpE,OAAO;IAAEmB,IAAI,EAAE,QAAQ;IAAEM,EAAE,EAAEzB;EAAK,CAAC;AACrC;;AAEA;AACA;AACA;AACA;AACO,MAAM0B,gCAAgC,GAAAC,OAAA,CAAAD,gCAAA,GAAGE,uCAA4B;AAAC,IAAAC,QAAA,GAAAF,OAAA,CAAA/B,OAAA,GAE9DC,eAAe","ignoreList":[]}
@@ -1,84 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.RESPONSIVE_SHEET_BACKDROP_TESTID = void 0;
7
- exports.ResponsiveSheet = ResponsiveSheet;
8
- exports.default = void 0;
9
- var _react = _interopRequireDefault(require("react"));
10
- var _indexWeb = require("../dialog/index.web.js");
11
- var _placement = require("../dialog/placement.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
- /**
15
- * @deprecated Use `<Dialog placement={{ base: 'bottom', md: 'left' }}>` instead.
16
- *
17
- * Web fork of the deprecated `ResponsiveSheet` wrapper. Identical delegation to
18
- * the default fork, but imports the web `Dialog` explicitly so non-Metro web
19
- * bundlers never follow the native (reanimated) `Dialog` sibling.
20
- */
21
- function ResponsiveSheet({
22
- open,
23
- onClose,
24
- side = 'left',
25
- breakpoint = _placement.BREAKPOINT_MD,
26
- width,
27
- maxHeightRatio,
28
- inset,
29
- showHandle,
30
- dismissOnBackdrop,
31
- panelStyle,
32
- panelClassName,
33
- containerStyle,
34
- containerClassName,
35
- label,
36
- children
37
- }) {
38
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_indexWeb.Dialog, {
39
- open: open,
40
- onClose: onClose,
41
- placement: placementForSide(side, breakpoint),
42
- width: width,
43
- maxHeightRatio: maxHeightRatio,
44
- inset: inset,
45
- showHandle: showHandle,
46
- dismissOnBackdrop: dismissOnBackdrop,
47
- panelStyle: panelStyle,
48
- panelClassName: panelClassName,
49
- containerStyle: containerStyle,
50
- containerClassName: containerClassName,
51
- label: label,
52
- children: children
53
- });
54
- }
55
- function placementForSide(side, breakpoint) {
56
- if (breakpoint <= _placement.BREAKPOINT_SM) return {
57
- base: 'bottom',
58
- sm: side
59
- };
60
- if (breakpoint <= _placement.BREAKPOINT_MD) return {
61
- base: 'bottom',
62
- md: side
63
- };
64
- if (breakpoint <= _placement.BREAKPOINT_LG) return {
65
- base: 'bottom',
66
- lg: side
67
- };
68
- if (breakpoint <= _placement.BREAKPOINT_XL) return {
69
- base: 'bottom',
70
- xl: side
71
- };
72
- return {
73
- base: 'bottom',
74
- xl: side
75
- };
76
- }
77
-
78
- /**
79
- * @deprecated Stable testID for the dimmed backdrop dismiss button — now
80
- * provided by the underlying `<Dialog>`'s side/bottom backdrop.
81
- */
82
- const RESPONSIVE_SHEET_BACKDROP_TESTID = exports.RESPONSIVE_SHEET_BACKDROP_TESTID = _placement.DIALOG_SHEET_BACKDROP_TESTID;
83
- var _default = exports.default = ResponsiveSheet;
84
- //# sourceMappingURL=ResponsiveSheet.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_indexWeb","_placement","_jsxRuntime","e","__esModule","default","ResponsiveSheet","open","onClose","side","breakpoint","BREAKPOINT_MD","width","maxHeightRatio","inset","showHandle","dismissOnBackdrop","panelStyle","panelClassName","containerStyle","containerClassName","label","children","jsx","Dialog","placement","placementForSide","BREAKPOINT_SM","base","sm","md","BREAKPOINT_LG","lg","BREAKPOINT_XL","xl","RESPONSIVE_SHEET_BACKDROP_TESTID","exports","DIALOG_SHEET_BACKDROP_TESTID","_default"],"sourceRoot":"../../../src","sources":["responsive-sheet/ResponsiveSheet.web.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAO6B,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG7B;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,eAAeA,CAAC;EAC9BC,IAAI;EACJC,OAAO;EACPC,IAAI,GAAG,MAAM;EACbC,UAAU,GAAGC,wBAAa;EAC1BC,KAAK;EACLC,cAAc;EACdC,KAAK;EACLC,UAAU;EACVC,iBAAiB;EACjBC,UAAU;EACVC,cAAc;EACdC,cAAc;EACdC,kBAAkB;EAClBC,KAAK;EACLC;AACoB,CAAC,EAAE;EACvB,oBACE,IAAApB,WAAA,CAAAqB,GAAA,EAACvB,SAAA,CAAAwB,MAAM;IACLjB,IAAI,EAAEA,IAAK;IACXC,O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E_SHEET_BACKDROP_TESTID", {
7
- enumerable: true,
8
- get: function () {
9
- return _ResponsiveSheet.RESPONSIVE_SHEET_BACKDROP_TESTID;
10
- }
11
- });
12
- Object.defineProperty(exports, "ResponsiveSheet", {
13
- enumerable: true,
14
- get: function () {
15
- return _ResponsiveSheet.ResponsiveSheet;
16
- }
17
- });
18
- var _ResponsiveSheet = require("./ResponsiveSheet");
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ResponsiveSheet","require"],"sourceRoot":"../../../src","sources":["responsive-sheet/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "RESPONSIVE_SHEET_BACKDROP_TESTID", {
7
- enumerable: true,
8
- get: function () {
9
- return _ResponsiveSheetWeb.RESPONSIVE_SHEET_BACKDROP_TESTID;
10
- }
11
- });
12
- Object.defineProperty(exports, "ResponsiveSheet", {
13
- enumerable: true,
14
- get: function () {
15
- return _ResponsiveSheetWeb.ResponsiveSheet;
16
- }
17
- });
18
- var _ResponsiveSheetWeb = require("./ResponsiveSheet.web.js");
19
- //# sourceMappingURL=index.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ResponsiveSheetWeb","require"],"sourceRoot":"../../../src","sources":["responsive-sheet/index.web.ts"],"mappings":";;;;;;;;;;;;;;;;;AAQA,IAAAA,mBAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../src","sources":["responsive-sheet/types.ts"],"mappings":"","ignoreList":[]}
@@ -1,246 +0,0 @@
1
- "use strict";
2
-
3
- import React, { useMemo } from 'react';
4
- import { Modal, Pressable, ScrollView, StyleSheet, View } from 'react-native';
5
- import { useInteractionState } from "../hooks/useInteractionState.js";
6
- import { TimesLarge_Stroke2_Corner0_Rounded as CloseIcon } from "../icons/Times.js";
7
- import { useTheme } from "../theme/use-theme.js";
8
- import { Text } from "../typography/index.js";
9
- import { CARD_RADIUS, DEFAULT_MAX_WIDTH, MAX_HEIGHT_FRACTION, resolveSpacing, VIEWPORT_GUTTER } from "./centered-dialog-tokens.js";
10
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
- const CLOSE_HIT_SLOP = {
12
- top: 8,
13
- bottom: 8,
14
- left: 8,
15
- right: 8
16
- };
17
-
18
- /** Stable testID for the dimmed backdrop. Overridden when a `testID` is set. */
19
- export const CENTERED_DIALOG_BACKDROP_TESTID = 'bloom-centered-dialog-backdrop';
20
-
21
- /**
22
- * @deprecated Use `<Dialog placement="center">` instead.
23
- *
24
- * Native variant of `<CenteredDialog>`.
25
- *
26
- * A controlled, centered modal: a transparent RN `Modal` (fade animation,
27
- * own native window) hosting a dimmed full-screen backdrop and a centered,
28
- * rounded card styled entirely from Bloom theme tokens.
29
- *
30
- * The backdrop is a sibling `Pressable` rendered BEHIND the card (absolute
31
- * filled), never a parent of it — so a tap on the card never bubbles to the
32
- * backdrop's close handler and the card never ends up nested inside the
33
- * backdrop's pressable on web.
34
- *
35
- * Dismissal: backdrop tap (when `dismissible`), the header close button, and
36
- * the Android hardware back button (`onRequestClose`) all call `onClose`.
37
- */
38
- export function CenteredDialog({
39
- visible,
40
- onClose,
41
- title,
42
- dismissible = true,
43
- maxWidth = DEFAULT_MAX_WIDTH,
44
- compact = true,
45
- showClose,
46
- children,
47
- footer,
48
- accessibilityLabel,
49
- closeAccessibilityLabel = 'Close dialog',
50
- backdropAccessibilityLabel = 'Dismiss dialog',
51
- cardStyle,
52
- contentStyle,
53
- testID
54
- }) {
55
- const theme = useTheme();
56
- const backdropPress = useInteractionState();
57
- const spacing = useMemo(() => resolveSpacing(compact), [compact]);
58
- const resolvedShowClose = showClose ?? Boolean(title);
59
- const hasHeader = Boolean(title) || resolvedShowClose;
60
- const handleBackdropPress = dismissible ? onClose : undefined;
61
- // Android's hardware back must always be answerable; when the dialog is
62
- // non-dismissible we still need a handler (RN requires one for transparent
63
- // modals) — make it a no-op so back does nothing rather than crash.
64
- const handleRequestClose = dismissible ? onClose : noop;
65
- return /*#__PURE__*/_jsx(Modal, {
66
- visible: visible,
67
- transparent: true,
68
- animationType: "fade",
69
- statusBarTranslucent: true,
70
- onRequestClose: handleRequestClose,
71
- children: /*#__PURE__*/_jsxs(View, {
72
- style: [styles.root, {
73
- padding: VIEWPORT_GUTTER
74
- }],
75
- children: [/*#__PURE__*/_jsx(Pressable, {
76
- testID: testID ? `${testID}-backdrop` : CENTERED_DIALOG_BACKDROP_TESTID,
77
- style: [styles.backdrop, {
78
- backgroundColor: theme.colors.overlay
79
- }, backdropPress.state && styles.backdropPressed],
80
- onPress: handleBackdropPress,
81
- onPressIn: backdropPress.onIn,
82
- onPressOut: backdropPress.onOut,
83
- disabled: !dismissible,
84
- accessibilityRole: "button",
85
- accessibilityLabel: backdropAccessibilityLabel
86
- }), /*#__PURE__*/_jsxs(View, {
87
- testID: testID,
88
- accessibilityLabel: accessibilityLabel ?? title,
89
- style: [styles.card, {
90
- maxWidth,
91
- maxHeight: `${MAX_HEIGHT_FRACTION * 100}%`,
92
- backgroundColor: theme.colors.card,
93
- borderColor: theme.colors.border,
94
- shadowColor: theme.colors.shadow
95
- }, cardStyle],
96
- children: [hasHeader ? /*#__PURE__*/_jsx(DialogHeader, {
97
- title: title,
98
- showClose: resolvedShowClose,
99
- padding: spacing.pad,
100
- gap: spacing.headerGap,
101
- closeAccessibilityLabel: closeAccessibilityLabel,
102
- onClose: onClose
103
- }) : null, /*#__PURE__*/_jsx(ScrollView, {
104
- style: styles.bodyScroll,
105
- contentContainerStyle: [{
106
- padding: spacing.pad,
107
- paddingTop: hasHeader ? spacing.headerGap : spacing.pad,
108
- gap: spacing.contentGap
109
- }, contentStyle],
110
- showsVerticalScrollIndicator: false,
111
- keyboardShouldPersistTaps: "handled",
112
- children: children
113
- }), footer ? /*#__PURE__*/_jsx(View, {
114
- style: [styles.footer, {
115
- padding: spacing.pad,
116
- paddingTop: spacing.footerGap,
117
- borderTopColor: theme.colors.borderLight
118
- }],
119
- children: footer
120
- }) : null]
121
- })]
122
- })
123
- });
124
- }
125
- function DialogHeader({
126
- title,
127
- showClose,
128
- padding,
129
- gap,
130
- closeAccessibilityLabel,
131
- onClose
132
- }) {
133
- const theme = useTheme();
134
- return /*#__PURE__*/_jsxs(View, {
135
- style: [styles.header, {
136
- paddingHorizontal: padding,
137
- paddingTop: padding,
138
- gap
139
- }],
140
- children: [title ? /*#__PURE__*/_jsx(Text, {
141
- accessibilityRole: "header",
142
- numberOfLines: 2,
143
- style: [styles.title, {
144
- color: theme.colors.text
145
- }],
146
- children: title
147
- }) : /*#__PURE__*/_jsx(View, {
148
- style: styles.titleSpacer
149
- }), showClose ? /*#__PURE__*/_jsx(CloseButton, {
150
- accessibilityLabel: closeAccessibilityLabel,
151
- onPress: onClose
152
- }) : null]
153
- });
154
- }
155
- function CloseButton({
156
- accessibilityLabel,
157
- onPress
158
- }) {
159
- const theme = useTheme();
160
- const press = useInteractionState();
161
- return /*#__PURE__*/_jsx(Pressable, {
162
- onPress: onPress,
163
- onPressIn: press.onIn,
164
- onPressOut: press.onOut,
165
- hitSlop: CLOSE_HIT_SLOP,
166
- accessibilityRole: "button",
167
- accessibilityLabel: accessibilityLabel,
168
- style: [styles.closeButton, {
169
- backgroundColor: theme.colors.contrast50
170
- }, press.state && styles.closeButtonPressed],
171
- children: /*#__PURE__*/_jsx(CloseIcon, {
172
- size: "sm",
173
- fill: theme.colors.textSecondary
174
- })
175
- });
176
- }
177
- function noop() {
178
- /* non-dismissible: hardware back is intentionally inert */
179
- }
180
- const styles = StyleSheet.create({
181
- root: {
182
- flex: 1,
183
- alignItems: 'center',
184
- justifyContent: 'center'
185
- },
186
- backdrop: {
187
- // Spell out the absolute-fill rect (matches `Fill`'s canonical style)
188
- // rather than spreading the deprecated `StyleSheet.absoluteFillObject`,
189
- // which RN 0.83's generated types no longer surface on the `StyleSheet`
190
- // namespace and which downstream type-checks reject.
191
- position: 'absolute',
192
- top: 0,
193
- right: 0,
194
- bottom: 0,
195
- left: 0
196
- },
197
- // A subtle deepening on press confirms the tap-to-dismiss affordance.
198
- backdropPressed: {
199
- opacity: 0.92
200
- },
201
- card: {
202
- width: '100%',
203
- borderRadius: CARD_RADIUS,
204
- borderWidth: StyleSheet.hairlineWidth,
205
- overflow: 'hidden',
206
- shadowOpacity: 0.18,
207
- shadowRadius: 24,
208
- shadowOffset: {
209
- width: 0,
210
- height: 8
211
- },
212
- elevation: 12
213
- },
214
- header: {
215
- flexDirection: 'row',
216
- alignItems: 'flex-start',
217
- justifyContent: 'space-between'
218
- },
219
- title: {
220
- flex: 1,
221
- fontSize: 17,
222
- fontWeight: '700',
223
- lineHeight: 22
224
- },
225
- titleSpacer: {
226
- flex: 1
227
- },
228
- closeButton: {
229
- width: 28,
230
- height: 28,
231
- borderRadius: 14,
232
- alignItems: 'center',
233
- justifyContent: 'center'
234
- },
235
- closeButtonPressed: {
236
- opacity: 0.7
237
- },
238
- bodyScroll: {
239
- flexGrow: 0,
240
- flexShrink: 1
241
- },
242
- footer: {
243
- borderTopWidth: StyleSheet.hairlineWidth
244
- }
245
- });
246
- //# sourceMappingURL=CenteredDialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useMemo","Modal","Pressable","ScrollView","StyleSheet","View","useInteractionState","TimesLarge_Stroke2_Corner0_Rounded","CloseIcon","useTheme","Text","CARD_RADIUS","DEFAULT_MAX_WIDTH","MAX_HEIGHT_FRACTION","resolveSpacing","VIEWPORT_GUTTER","jsx","_jsx","jsxs","_jsxs","CLOSE_HIT_SLOP","top","bottom","left","right","CENTERED_DIALOG_BACKDROP_TESTID","CenteredDialog","visible","onClose","title","dismissible","maxWidth","compact","showClose","children","footer","accessibilityLabel","closeAccessibilityLabel","backdropAccessibilityLabel","cardStyle","contentStyle","testID","theme","backdropPress","spacing","resolvedShowClose","Boolean","hasHeader","handleBackdropPress","undefined","handleRequestClose","noop","transparent","animationType","statusBarTranslucent","onRequestClose","style","styles","root","padding","backdrop","backgroundColor","colors","overlay","state","backdropPressed","onPress","onPressIn","onIn","onPressOut","onOut","disabled","accessibilityRole","card","maxHeight","borderColor","border","shadowColor","shadow","DialogHeader","pad","gap","headerGap","bodyScroll","contentContainerStyle","paddingTop","contentGap","showsVerticalScrollIndicator","keyboardShouldPersistTaps","footerGap","borderTopColor","borderLight","header","paddingHorizontal","numberOfLines","color","text","titleSpacer","CloseButton","press","hitSlop","closeButton","contrast50","closeButtonPressed","size","fill","textSecondary","create","flex","alignItems","justifyContent","position","opacity","width","borderRadius","borderWidth","hairlineWidth","overflow","shadowOpacity","shadowRadius","shadowOffset","height","elevation","flexDirection","fontSize","fontWeight","lineHeight","flexGrow","flexShrink","borderTopWidth"],"sourceRoot":"../../../src","sources":["dialog/CenteredDialog.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SACEC,KAAK,EACLC,SAAS,EACTC,UAAU,EACVC,UAAU,EACVC,IAAI,QACC,cAAc;AAErB,SAASC,mBAAmB,QAAQ,iCAA8B;AAClE,SAASC,kCAAkC,IAAIC,SAAS,QAAQ,mBAAgB;AAChF,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AAEpC,SACEC,WAAW,EACXC,iBAAiB,EACjBC,mBAAmB,EACnBC,cAAc,EACdC,eAAe,QACV,6BAA0B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAElC,MAAMC,cAAc,GAAG;EAAEC,GAAG,EAAE,CAAC;EAAEC,MAAM,EAAE,CAAC;EAAEC,IAAI,EAAE,CAA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