@stackflow/plugin-basic-ui 0.21.3 → 1.0.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 (39) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/IconBack.d.ts +1 -1
  3. package/dist/assets/IconClose.d.ts +1 -1
  4. package/dist/basicUIPlugin.d.ts +2 -2
  5. package/dist/components/AppBar.d.ts +5 -4
  6. package/dist/components/AppScreen.d.ts +2 -2
  7. package/dist/components/BottomSheet.d.ts +1 -1
  8. package/dist/components/Modal.d.ts +1 -1
  9. package/dist/hooks/useMaxWidth.d.ts +1 -1
  10. package/dist/hooks/useStyleEffect.d.ts +4 -4
  11. package/dist/hooks/useStyleEffectHide.d.ts +1 -1
  12. package/dist/index.css +57 -46
  13. package/dist/index.css.map +3 -3
  14. package/dist/index.js +342 -280
  15. package/dist/index.js.map +4 -4
  16. package/dist/index.mjs +320 -252
  17. package/dist/index.mjs.map +4 -4
  18. package/dist/theme.css.d.ts +2 -0
  19. package/dist/utils/index.d.ts +2 -0
  20. package/dist/utils/isBrowser.d.ts +5 -0
  21. package/dist/utils/isServer.d.ts +5 -0
  22. package/package.json +5 -5
  23. package/src/assets/IconBack.tsx +0 -2
  24. package/src/assets/IconClose.tsx +0 -2
  25. package/src/basicUIPlugin.tsx +7 -3
  26. package/src/components/AppBar.css.ts +9 -6
  27. package/src/components/AppBar.tsx +8 -2
  28. package/src/components/AppScreen.tsx +6 -3
  29. package/src/components/BottomSheet.tsx +2 -2
  30. package/src/components/Modal.tsx +2 -2
  31. package/src/hooks/useMaxWidth.ts +0 -1
  32. package/src/hooks/useStyleEffect.ts +8 -8
  33. package/src/hooks/useStyleEffectHide.ts +2 -3
  34. package/src/hooks/useStyleEffectOffset.ts +6 -5
  35. package/src/hooks/useStyleEffectSwipeBack.ts +7 -7
  36. package/src/theme.css.ts +5 -1
  37. package/src/utils/index.ts +2 -0
  38. package/src/utils/isBrowser.ts +9 -0
  39. package/src/utils/isServer.ts +7 -0
package/dist/index.mjs CHANGED
@@ -24,7 +24,7 @@ var __export = (target, all) => {
24
24
 
25
25
  // src/basicUIPlugin.tsx
26
26
  import { assignInlineVars } from "@vanilla-extract/dynamic";
27
- import React, { createContext, useContext } from "react";
27
+ import { createContext, useContext } from "react";
28
28
 
29
29
  // src/theme.css.ts
30
30
  var theme_css_exports = {};
@@ -37,7 +37,7 @@ __export(theme_css_exports, {
37
37
  });
38
38
  var android = "theme__1coppmz0";
39
39
  var cupertino = "theme__1coppmz1";
40
- var globalVars = { backgroundColor: "var(--stackflow-plugin-basic-ui-background-color)", dimBackgroundColor: "var(--stackflow-plugin-basic-ui-dim-background-color)", appBar: { borderColor: "var(--stackflow-plugin-basic-ui-app-bar-border-color)", borderSize: "var(--stackflow-plugin-basic-ui-app-bar-border-size)", height: "var(--stackflow-plugin-basic-ui-app-bar-height)", heightTransitionDuration: "var(--stackflow-plugin-basic-ui-app-bar-height-transition-duration)", minHeight: "var(--stackflow-plugin-basic-ui-app-bar-min-height)", iconColor: "var(--stackflow-plugin-basic-ui-app-bar-icon-color)", textColor: "var(--stackflow-plugin-basic-ui-app-bar-text-color)", backgroundColor: "var(--stackflow-plugin-basic-ui-app-bar-background-color)" }, bottomSheet: { borderRadius: "var(--stackflow-plugin-basic-ui-bottom-sheet-border-radius)" }, modal: { borderRadius: "var(--stackflow-plugin-basic-ui-bottom-sheet-border-radius)" } };
40
+ var globalVars = { backgroundColor: "var(--stackflow-plugin-basic-ui-background-color)", dimBackgroundColor: "var(--stackflow-plugin-basic-ui-dim-background-color)", transitionDuration: "var(--stackflow-plugin-basic-ui-transition-duration)", appBar: { borderColor: "var(--stackflow-plugin-basic-ui-app-bar-border-color)", borderSize: "var(--stackflow-plugin-basic-ui-app-bar-border-size)", height: "var(--stackflow-plugin-basic-ui-app-bar-height)", heightTransitionDuration: "var(--stackflow-plugin-basic-ui-app-bar-height-transition-duration)", minHeight: "var(--stackflow-plugin-basic-ui-app-bar-min-height)", iconColor: "var(--stackflow-plugin-basic-ui-app-bar-icon-color)", textColor: "var(--stackflow-plugin-basic-ui-app-bar-text-color)", backgroundColor: "var(--stackflow-plugin-basic-ui-app-bar-background-color)", overflow: "var(--stackflow-plugin-basic-ui-app-bar-overflow)" }, bottomSheet: { borderRadius: "var(--stackflow-plugin-basic-ui-bottom-sheet-border-radius)" }, modal: { borderRadius: "var(--stackflow-plugin-basic-ui-bottom-sheet-border-radius)" } };
41
41
  var rootAndroid = ":root[data-stackflow-plugin-basic-ui-theme=android]";
42
42
  var rootCupertino = ":root[data-stackflow-plugin-basic-ui-theme=cupertino]";
43
43
 
@@ -58,6 +58,16 @@ function compactMap(obj) {
58
58
  }, {});
59
59
  }
60
60
 
61
+ // src/utils/isServer.ts
62
+ function isServer() {
63
+ return typeof window === "undefined";
64
+ }
65
+
66
+ // src/utils/isBrowser.ts
67
+ function isBrowser() {
68
+ return !isServer();
69
+ }
70
+
61
71
  // src/utils/listenOnce.ts
62
72
  function listenOnce(el, type, cb) {
63
73
  const listener = () => {
@@ -90,6 +100,7 @@ function requestNextFrame(cb) {
90
100
  }
91
101
 
92
102
  // src/basicUIPlugin.tsx
103
+ import { jsx } from "react/jsx-runtime";
93
104
  var GlobalOptionsContext = createContext({
94
105
  theme: "android"
95
106
  });
@@ -101,31 +112,34 @@ var basicUIPlugin = (options) => () => ({
101
112
  key: "basic-ui",
102
113
  wrapStack({ stack }) {
103
114
  var _a, _b, _c, _d, _e, _f, _g;
104
- return /* @__PURE__ */ React.createElement(GlobalOptionsProvider, {
105
- value: options
106
- }, /* @__PURE__ */ React.createElement("div", {
107
- className: typeof window !== "undefined" ? compact([theme_css_exports[options.theme], options.rootClassName]).join(" ") : options.rootClassName,
108
- style: assignInlineVars(
109
- compactMap({
110
- [globalVars.backgroundColor]: options.backgroundColor,
111
- [globalVars.dimBackgroundColor]: options.dimBackgroundColor,
112
- [globalVars.appBar.borderColor]: (_a = options.appBar) == null ? void 0 : _a.borderColor,
113
- [globalVars.appBar.borderSize]: (_b = options.appBar) == null ? void 0 : _b.borderSize,
114
- [globalVars.appBar.height]: (_c = options.appBar) == null ? void 0 : _c.height,
115
- [globalVars.appBar.iconColor]: (_d = options.appBar) == null ? void 0 : _d.iconColor,
116
- [globalVars.appBar.textColor]: (_e = options.appBar) == null ? void 0 : _e.textColor,
117
- [globalVars.bottomSheet.borderRadius]: (_f = options.bottomSheet) == null ? void 0 : _f.borderRadius,
118
- [globalVars.modal.borderRadius]: (_g = options.modal) == null ? void 0 : _g.borderRadius
119
- })
120
- )
121
- }, stack.render()));
115
+ return /* @__PURE__ */ jsx(GlobalOptionsProvider, { value: options, children: /* @__PURE__ */ jsx(
116
+ "div",
117
+ {
118
+ className: isBrowser() ? compact([theme_css_exports[options.theme], options.rootClassName]).join(" ") : options.rootClassName,
119
+ style: assignInlineVars(
120
+ compactMap({
121
+ [globalVars.backgroundColor]: options.backgroundColor,
122
+ [globalVars.dimBackgroundColor]: options.dimBackgroundColor,
123
+ [globalVars.transitionDuration]: stack.globalTransitionState === "loading" ? `${stack.transitionDuration}ms` : "0ms",
124
+ [globalVars.appBar.borderColor]: (_a = options.appBar) == null ? void 0 : _a.borderColor,
125
+ [globalVars.appBar.borderSize]: (_b = options.appBar) == null ? void 0 : _b.borderSize,
126
+ [globalVars.appBar.height]: (_c = options.appBar) == null ? void 0 : _c.height,
127
+ [globalVars.appBar.iconColor]: (_d = options.appBar) == null ? void 0 : _d.iconColor,
128
+ [globalVars.appBar.textColor]: (_e = options.appBar) == null ? void 0 : _e.textColor,
129
+ [globalVars.bottomSheet.borderRadius]: (_f = options.bottomSheet) == null ? void 0 : _f.borderRadius,
130
+ [globalVars.modal.borderRadius]: (_g = options.modal) == null ? void 0 : _g.borderRadius
131
+ })
132
+ ),
133
+ children: stack.render()
134
+ }
135
+ ) });
122
136
  }
123
137
  });
124
138
 
125
139
  // src/components/AppScreen.tsx
126
140
  import { useActions as useActions2 } from "@stackflow/react";
127
141
  import { assignInlineVars as assignInlineVars3 } from "@vanilla-extract/dynamic";
128
- import React5, { createContext as createContext2, useContext as useContext2, useMemo, useRef as useRef2 } from "react";
142
+ import { createContext as createContext2, useContext as useContext2, useMemo, useRef as useRef2 } from "react";
129
143
 
130
144
  // src/hooks/useLazy.tsx
131
145
  import { useEffect, useState } from "react";
@@ -186,8 +200,7 @@ function useStyleEffect({
186
200
  const activity = useNullableActivity();
187
201
  useEffect3(() => {
188
202
  if (!activity) {
189
- return () => {
190
- };
203
+ return noop;
191
204
  }
192
205
  if (!connections[styleName]) {
193
206
  connections[styleName] = /* @__PURE__ */ new Map();
@@ -202,12 +215,10 @@ function useStyleEffect({
202
215
  }, [activity == null ? void 0 : activity.id, refs, effect]);
203
216
  useEffect3(() => {
204
217
  if (!activity) {
205
- return () => {
206
- };
218
+ return noop;
207
219
  }
208
220
  if (!effect) {
209
- return () => {
210
- };
221
+ return noop;
211
222
  }
212
223
  const refs2 = (() => {
213
224
  let arr = [];
@@ -265,8 +276,7 @@ function useStyleEffectHide({
265
276
  }
266
277
  default: {
267
278
  cleanup();
268
- return () => {
269
- };
279
+ return noop;
270
280
  }
271
281
  }
272
282
  } : void 0
@@ -307,7 +317,7 @@ function useStyleEffectOffset({
307
317
  if (!ref.current) {
308
318
  return;
309
319
  }
310
- ref.current.style.transition = `var(--stackflow-transition-duration)`;
320
+ ref.current.style.transition = globalVars.transitionDuration;
311
321
  ref.current.style.transform = transform;
312
322
  });
313
323
  switch (activityTransitionState) {
@@ -317,8 +327,7 @@ function useStyleEffectOffset({
317
327
  };
318
328
  case "enter-active":
319
329
  default:
320
- return () => {
321
- };
330
+ return noop;
322
331
  }
323
332
  }
324
333
  case "exit-active":
@@ -326,12 +335,10 @@ function useStyleEffectOffset({
326
335
  requestNextFrame(() => {
327
336
  cleanup();
328
337
  });
329
- return () => {
330
- };
338
+ return noop;
331
339
  }
332
340
  default: {
333
- return () => {
334
- };
341
+ return noop;
335
342
  }
336
343
  }
337
344
  } : void 0
@@ -353,12 +360,10 @@ function useStyleEffectSwipeBack({
353
360
  refs: [paperRef],
354
361
  effect: hasEffect ? ({ refs }) => {
355
362
  if (theme !== "cupertino") {
356
- return () => {
357
- };
363
+ return noop;
358
364
  }
359
365
  if (!dimRef.current || !edgeRef.current || !paperRef.current) {
360
- return () => {
361
- };
366
+ return noop;
362
367
  }
363
368
  const $dim = dimRef.current;
364
369
  const $edge = edgeRef.current;
@@ -403,15 +408,15 @@ function useStyleEffectSwipeBack({
403
408
  return new Promise((resolve) => {
404
409
  requestAnimationFrame(() => {
405
410
  $dim.style.opacity = `${swiped ? 0 : 1}`;
406
- $dim.style.transition = "var(--stackflow-transition-duration)";
411
+ $dim.style.transition = globalVars.transitionDuration;
407
412
  $paper.style.overflowY = "hidden";
408
413
  $paper.style.transform = `translateX(${swiped ? "100%" : "0"})`;
409
- $paper.style.transition = "var(--stackflow-transition-duration)";
414
+ $paper.style.transition = globalVars.transitionDuration;
410
415
  refs.forEach((ref) => {
411
416
  if (!ref.current) {
412
417
  return;
413
418
  }
414
- ref.current.style.transition = `var(--stackflow-transition-duration)`;
419
+ ref.current.style.transition = globalVars.transitionDuration;
415
420
  ref.current.style.transform = `translate3d(${swiped ? "0" : `-${OFFSET_PX_CUPERTINO / 16}rem`}, 0, 0)`;
416
421
  });
417
422
  const _cachedRefs = [...cachedRefs];
@@ -510,54 +515,74 @@ function useStyleEffectSwipeBack({
510
515
  // src/components/AppBar.tsx
511
516
  import { useActions } from "@stackflow/react";
512
517
  import { assignInlineVars as assignInlineVars2 } from "@vanilla-extract/dynamic";
513
- import React4, { useRef } from "react";
518
+ import { forwardRef, useRef } from "react";
514
519
 
515
520
  // src/assets/IconBack.tsx
516
- import React2 from "react";
517
- var IconBack = (props) => /* @__PURE__ */ React2.createElement("svg", {
518
- className: props.className,
519
- width: "24",
520
- height: "24",
521
- viewBox: "0 0 24 24",
522
- fill: "none",
523
- xmlns: "http://www.w3.org/2000/svg"
524
- }, /* @__PURE__ */ React2.createElement("path", {
525
- d: "M11.5659 5.56564C11.8783 5.25322 11.8783 4.74669 11.5659 4.43427C11.2535 4.12185 10.7469 4.12185 10.4345 4.43427L3.43451 11.4343C3.12209 11.7467 3.12209 12.2532 3.43451 12.5656L10.4345 19.5656C10.7469 19.8781 11.2535 19.8781 11.5659 19.5656C11.8783 19.2532 11.8783 18.7467 11.5659 18.4343L5.93157 12.8H20.0002C20.442 12.8 20.8002 12.4418 20.8002 12C20.8002 11.5581 20.442 11.2 20.0002 11.2H5.93157L11.5659 5.56564Z",
526
- fill: "currentColor"
527
- }));
521
+ import { jsx as jsx2 } from "react/jsx-runtime";
522
+ var IconBack = (props) => /* @__PURE__ */ jsx2(
523
+ "svg",
524
+ {
525
+ className: props.className,
526
+ width: "24",
527
+ height: "24",
528
+ viewBox: "0 0 24 24",
529
+ fill: "none",
530
+ xmlns: "http://www.w3.org/2000/svg",
531
+ children: /* @__PURE__ */ jsx2(
532
+ "path",
533
+ {
534
+ d: "M11.5659 5.56564C11.8783 5.25322 11.8783 4.74669 11.5659 4.43427C11.2535 4.12185 10.7469 4.12185 10.4345 4.43427L3.43451 11.4343C3.12209 11.7467 3.12209 12.2532 3.43451 12.5656L10.4345 19.5656C10.7469 19.8781 11.2535 19.8781 11.5659 19.5656C11.8783 19.2532 11.8783 18.7467 11.5659 18.4343L5.93157 12.8H20.0002C20.442 12.8 20.8002 12.4418 20.8002 12C20.8002 11.5581 20.442 11.2 20.0002 11.2H5.93157L11.5659 5.56564Z",
535
+ fill: "currentColor"
536
+ }
537
+ )
538
+ }
539
+ );
528
540
  var IconBack_default = IconBack;
529
541
 
530
542
  // src/assets/IconClose.tsx
531
- import React3 from "react";
532
- var IconClose = (props) => /* @__PURE__ */ React3.createElement("svg", {
533
- className: props.className,
534
- width: "24",
535
- height: "24",
536
- viewBox: "0 0 24 24",
537
- fill: "none",
538
- xmlns: "http://www.w3.org/2000/svg"
539
- }, /* @__PURE__ */ React3.createElement("path", {
540
- d: "M6.56588 5.43433C6.25346 5.12191 5.74693 5.12191 5.43451 5.43433C5.12209 5.74675 5.12209 6.25328 5.43451 6.5657L10.8688 12L5.43451 17.4343C5.12209 17.7467 5.12209 18.2533 5.43451 18.5657C5.74693 18.8781 6.25346 18.8781 6.56588 18.5657L12.0002 13.1314L17.4345 18.5657C17.7469 18.8781 18.2535 18.8781 18.5659 18.5657C18.8783 18.2533 18.8783 17.7467 18.5659 17.4343L13.1316 12L18.5659 6.5657C18.8783 6.25328 18.8783 5.74675 18.5659 5.43433C18.2535 5.12191 17.7469 5.12191 17.4345 5.43433L12.0002 10.8686L6.56588 5.43433Z",
541
- fill: "currentColor"
542
- }), /* @__PURE__ */ React3.createElement("path", {
543
- d: "M6.56588 5.43433C6.25346 5.12191 5.74693 5.12191 5.43451 5.43433C5.12209 5.74675 5.12209 6.25328 5.43451 6.5657L10.8688 12L5.43451 17.4343C5.12209 17.7467 5.12209 18.2533 5.43451 18.5657C5.74693 18.8781 6.25346 18.8781 6.56588 18.5657L12.0002 13.1314L17.4345 18.5657C17.7469 18.8781 18.2535 18.8781 18.5659 18.5657C18.8783 18.2533 18.8783 17.7467 18.5659 17.4343L13.1316 12L18.5659 6.5657C18.8783 6.25328 18.8783 5.74675 18.5659 5.43433C18.2535 5.12191 17.7469 5.12191 17.4345 5.43433L12.0002 10.8686L6.56588 5.43433Z",
544
- fill: "currentColor"
545
- }));
543
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
544
+ var IconClose = (props) => /* @__PURE__ */ jsxs(
545
+ "svg",
546
+ {
547
+ className: props.className,
548
+ width: "24",
549
+ height: "24",
550
+ viewBox: "0 0 24 24",
551
+ fill: "none",
552
+ xmlns: "http://www.w3.org/2000/svg",
553
+ children: [
554
+ /* @__PURE__ */ jsx3(
555
+ "path",
556
+ {
557
+ d: "M6.56588 5.43433C6.25346 5.12191 5.74693 5.12191 5.43451 5.43433C5.12209 5.74675 5.12209 6.25328 5.43451 6.5657L10.8688 12L5.43451 17.4343C5.12209 17.7467 5.12209 18.2533 5.43451 18.5657C5.74693 18.8781 6.25346 18.8781 6.56588 18.5657L12.0002 13.1314L17.4345 18.5657C17.7469 18.8781 18.2535 18.8781 18.5659 18.5657C18.8783 18.2533 18.8783 17.7467 18.5659 17.4343L13.1316 12L18.5659 6.5657C18.8783 6.25328 18.8783 5.74675 18.5659 5.43433C18.2535 5.12191 17.7469 5.12191 17.4345 5.43433L12.0002 10.8686L6.56588 5.43433Z",
558
+ fill: "currentColor"
559
+ }
560
+ ),
561
+ /* @__PURE__ */ jsx3(
562
+ "path",
563
+ {
564
+ d: "M6.56588 5.43433C6.25346 5.12191 5.74693 5.12191 5.43451 5.43433C5.12209 5.74675 5.12209 6.25328 5.43451 6.5657L10.8688 12L5.43451 17.4343C5.12209 17.7467 5.12209 18.2533 5.43451 18.5657C5.74693 18.8781 6.25346 18.8781 6.56588 18.5657L12.0002 13.1314L17.4345 18.5657C17.7469 18.8781 18.2535 18.8781 18.5659 18.5657C18.8783 18.2533 18.8783 17.7467 18.5659 17.4343L13.1316 12L18.5659 6.5657C18.8783 6.25328 18.8783 5.74675 18.5659 5.43433C18.2535 5.12191 17.7469 5.12191 17.4345 5.43433L12.0002 10.8686L6.56588 5.43433Z",
565
+ fill: "currentColor"
566
+ }
567
+ )
568
+ ]
569
+ }
570
+ );
546
571
  var IconClose_default = IconClose;
547
572
 
548
573
  // src/components/AppBar.css.ts
549
574
  import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
550
- var appBar = _7a468({ defaultClassName: "AppBar__1yk3a451 f__dhthxq4 f__dhthxq0 f__dhthxqh f__dhthxqc AppScreen__1dlf4347", variantClassNames: { border: { true: "AppBar_border_true__1yk3a452" }, presentModalFullScreen: { true: "AppBar_presentModalFullScreen_true__1yk3a453" } }, defaultVariants: {}, compoundVariants: [] });
551
- var backButton = "AppBar__1yk3a457 f__dhthxq9 f__dhthxq7 f__dhthxqb f__dhthxqf f__dhthxqi";
575
+ var appBar = _7a468({ defaultClassName: "AppBar__1yk3a452 f__dhthxq4 f__dhthxq0 f__dhthxqh AppScreen__1dlf4347 AppBar__1yk3a451", variantClassNames: { border: { true: "AppBar_border_true__1yk3a453" }, presentModalFullScreen: { true: "AppBar_presentModalFullScreen_true__1yk3a454" } }, defaultVariants: {}, compoundVariants: [] });
576
+ var backButton = "AppBar__1yk3a458 f__dhthxq9 f__dhthxq7 f__dhthxqb f__dhthxqf f__dhthxqi";
552
577
  var center = "f__dhthxq9 f__dhthxq7 f__dhthxq8 AppBar__1yk3a450";
553
- var centerMain = _7a468({ defaultClassName: "AppBar__1yk3a45a", variantClassNames: { hasLeft: { true: "AppBar_hasLeft_true__1yk3a45b" } }, defaultVariants: {}, compoundVariants: [] });
554
- var centerMainEdge = "AppBar__1yk3a45c f__dhthxqi f__dhthxq4 f__dhthxq2 f__dhthxqf";
555
- var centerText = "AppBar__1yk3a45d f__dhthxqc f__dhthxqd f__dhthxq0";
556
- var closeButton = "AppBar__1yk3a457 f__dhthxq9 f__dhthxq7 f__dhthxqb f__dhthxqf f__dhthxqi";
557
- var container = "AppBar__1yk3a455 f__dhthxqa f__dhthxq7 f__dhthxqc";
558
- var left = "AppBar__1yk3a456 f__dhthxq9 f__dhthxq7 f__dhthxq1 AppBar__1yk3a450";
559
- var right = "AppBar__1yk3a45e f__dhthxq9 f__dhthxq7 f__dhthxq1 f__dhthxq5 AppBar__1yk3a450";
560
- var safeArea = "AppBar__1yk3a454";
578
+ var centerMain = _7a468({ defaultClassName: "AppBar__1yk3a45b", variantClassNames: { hasLeft: { true: "AppBar_hasLeft_true__1yk3a45c" } }, defaultVariants: {}, compoundVariants: [] });
579
+ var centerMainEdge = "AppBar__1yk3a45d f__dhthxqi f__dhthxq4 f__dhthxq2 f__dhthxqf";
580
+ var centerText = "AppBar__1yk3a45e f__dhthxqc f__dhthxqd f__dhthxq0";
581
+ var closeButton = "AppBar__1yk3a458 f__dhthxq9 f__dhthxq7 f__dhthxqb f__dhthxqf f__dhthxqi";
582
+ var container = "AppBar__1yk3a456 f__dhthxqa f__dhthxq7 AppBar__1yk3a451";
583
+ var left = "AppBar__1yk3a457 f__dhthxq9 f__dhthxq7 f__dhthxq1 AppBar__1yk3a450";
584
+ var right = "AppBar__1yk3a45f f__dhthxq9 f__dhthxq7 f__dhthxq1 f__dhthxq5 AppBar__1yk3a450";
585
+ var safeArea = "AppBar__1yk3a455";
561
586
 
562
587
  // src/components/AppScreen.css.ts
563
588
  import { createRuntimeFn as _7a4682 } from "@vanilla-extract/recipes/createRuntimeFn";
@@ -568,7 +593,8 @@ var paper = _7a4682({ defaultClassName: "AppScreen__1dlf434j f__dhthxq4 f__dhthx
568
593
  var vars = { transitionDuration: "var(--transitionDuration__1dlf4340)", zIndexes: { dim: "var(--zIndexes-dim__1dlf4341)", paper: "var(--zIndexes-paper__1dlf4342)", edge: "var(--zIndexes-edge__1dlf4343)", appBar: "var(--zIndexes-appBar__1dlf4344)" }, appBar: { center: { mainWidth: "var(--appBar-center-mainWidth__1dlf4345)" } } };
569
594
 
570
595
  // src/components/AppBar.tsx
571
- var AppBar = React4.forwardRef(
596
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
597
+ var AppBar = forwardRef(
572
598
  ({
573
599
  title,
574
600
  appendLeft,
@@ -583,6 +609,8 @@ var AppBar = React4.forwardRef(
583
609
  borderColor,
584
610
  borderSize,
585
611
  height,
612
+ heightTransitionDuration,
613
+ overflow,
586
614
  backgroundColor,
587
615
  onTopClick
588
616
  }, ref) => {
@@ -616,11 +644,15 @@ var AppBar = React4.forwardRef(
616
644
  return null;
617
645
  }
618
646
  if (!backButton2 && !globalBackButton) {
619
- return /* @__PURE__ */ React4.createElement("button", {
620
- type: "button",
621
- className: backButton,
622
- onClick: onBackClick
623
- }, /* @__PURE__ */ React4.createElement(IconBack_default, null));
647
+ return /* @__PURE__ */ jsx4(
648
+ "button",
649
+ {
650
+ type: "button",
651
+ className: backButton,
652
+ onClick: onBackClick,
653
+ children: /* @__PURE__ */ jsx4(IconBack_default, {})
654
+ }
655
+ );
624
656
  }
625
657
  if (backButton2 && "render" in backButton2 && backButton2.render) {
626
658
  return (_a2 = backButton2.render) == null ? void 0 : _a2.call(backButton2);
@@ -628,23 +660,27 @@ var AppBar = React4.forwardRef(
628
660
  if (globalBackButton && "render" in globalBackButton && globalBackButton.render) {
629
661
  return (_b2 = globalBackButton.render) == null ? void 0 : _b2.call(globalBackButton);
630
662
  }
631
- return /* @__PURE__ */ React4.createElement("button", {
632
- type: "button",
633
- className: backButton,
634
- "aria-label": backButton2 && "ariaLabel" in backButton2 ? backButton2.ariaLabel : globalBackButton && "ariaLabel" in globalBackButton ? globalBackButton.ariaLabel : void 0,
635
- onClick: onBackClick
636
- }, (() => {
637
- if (backButton2 && "renderIcon" in backButton2 && backButton2.renderIcon) {
638
- return backButton2.renderIcon();
639
- }
640
- if (globalBackButton && "renderIcon" in globalBackButton && globalBackButton.renderIcon) {
641
- return globalBackButton.renderIcon();
642
- }
643
- if (presentModalFullScreen) {
644
- return /* @__PURE__ */ React4.createElement(IconClose_default, null);
663
+ return /* @__PURE__ */ jsx4(
664
+ "button",
665
+ {
666
+ type: "button",
667
+ className: backButton,
668
+ "aria-label": backButton2 && "ariaLabel" in backButton2 ? backButton2.ariaLabel : globalBackButton && "ariaLabel" in globalBackButton ? globalBackButton.ariaLabel : void 0,
669
+ onClick: onBackClick,
670
+ children: (() => {
671
+ if (backButton2 && "renderIcon" in backButton2 && backButton2.renderIcon) {
672
+ return backButton2.renderIcon();
673
+ }
674
+ if (globalBackButton && "renderIcon" in globalBackButton && globalBackButton.renderIcon) {
675
+ return globalBackButton.renderIcon();
676
+ }
677
+ if (presentModalFullScreen) {
678
+ return /* @__PURE__ */ jsx4(IconClose_default, {});
679
+ }
680
+ return /* @__PURE__ */ jsx4(IconBack_default, {});
681
+ })()
645
682
  }
646
- return /* @__PURE__ */ React4.createElement(IconBack_default, null);
647
- })());
683
+ );
648
684
  };
649
685
  const onCloseClick = (e) => {
650
686
  var _a2;
@@ -668,68 +704,90 @@ var AppBar = React4.forwardRef(
668
704
  if (globalCloseButton && "render" in globalCloseButton && globalCloseButton.render) {
669
705
  return globalCloseButton.render();
670
706
  }
671
- return /* @__PURE__ */ React4.createElement("button", {
672
- type: "button",
673
- className: closeButton,
674
- "aria-label": closeButton2 && "ariaLabel" in closeButton2 ? closeButton2.ariaLabel : globalCloseButton && "ariaLabel" in globalCloseButton ? globalCloseButton.ariaLabel : void 0,
675
- onClick: onCloseClick
676
- }, (() => {
677
- if (closeButton2 && "renderIcon" in closeButton2 && closeButton2.renderIcon) {
678
- return closeButton2.renderIcon();
679
- }
680
- if (globalCloseButton && "renderIcon" in globalCloseButton && globalCloseButton.renderIcon) {
681
- return globalCloseButton.renderIcon();
707
+ return /* @__PURE__ */ jsx4(
708
+ "button",
709
+ {
710
+ type: "button",
711
+ className: closeButton,
712
+ "aria-label": closeButton2 && "ariaLabel" in closeButton2 ? closeButton2.ariaLabel : globalCloseButton && "ariaLabel" in globalCloseButton ? globalCloseButton.ariaLabel : void 0,
713
+ onClick: onCloseClick,
714
+ children: (() => {
715
+ if (closeButton2 && "renderIcon" in closeButton2 && closeButton2.renderIcon) {
716
+ return closeButton2.renderIcon();
717
+ }
718
+ if (globalCloseButton && "renderIcon" in globalCloseButton && globalCloseButton.renderIcon) {
719
+ return globalCloseButton.renderIcon();
720
+ }
721
+ return /* @__PURE__ */ jsx4(IconClose_default, {});
722
+ })()
682
723
  }
683
- return /* @__PURE__ */ React4.createElement(IconClose_default, null);
684
- })());
724
+ );
685
725
  };
686
726
  const hasLeft = !!(closeButtonLocation === "left" && closeButton2 || backButton2 || appendLeft);
687
- return /* @__PURE__ */ React4.createElement("div", {
688
- ref,
689
- className: appBar({
690
- border,
691
- presentModalFullScreen
692
- }),
693
- style: assignInlineVars2(
694
- compactMap({
695
- [globalVars.appBar.iconColor]: iconColor,
696
- [globalVars.appBar.textColor]: textColor,
697
- [globalVars.appBar.borderColor]: borderColor,
698
- [globalVars.appBar.borderSize]: borderSize,
699
- [globalVars.appBar.height]: height,
700
- [globalVars.appBar.backgroundColor]: backgroundColor || globalVars.backgroundColor,
701
- [vars.appBar.center.mainWidth]: `${maxWidth}px`
702
- })
703
- )
704
- }, /* @__PURE__ */ React4.createElement("div", {
705
- className: safeArea
706
- }), /* @__PURE__ */ React4.createElement("div", {
707
- className: container
708
- }, /* @__PURE__ */ React4.createElement("div", {
709
- className: left
710
- }, closeButtonLocation === "left" && renderCloseButton(), renderBackButton(), appendLeft == null ? void 0 : appendLeft()), /* @__PURE__ */ React4.createElement("div", {
711
- ref: centerRef,
712
- className: center
713
- }, /* @__PURE__ */ React4.createElement("div", {
714
- className: centerMain({
715
- hasLeft
716
- })
717
- }, typeof title === "string" ? /* @__PURE__ */ React4.createElement("div", {
718
- className: centerText
719
- }, title) : title, /* @__PURE__ */ React4.createElement("button", {
720
- className: centerMainEdge,
721
- type: "button",
722
- "aria-hidden": "true",
723
- onClick: onTopClick
724
- }))), /* @__PURE__ */ React4.createElement("div", {
725
- className: right
726
- }, appendRight == null ? void 0 : appendRight(), closeButtonLocation === "right" && renderCloseButton())));
727
+ return /* @__PURE__ */ jsxs2(
728
+ "div",
729
+ {
730
+ ref,
731
+ className: appBar({
732
+ border,
733
+ presentModalFullScreen
734
+ }),
735
+ style: assignInlineVars2(
736
+ compactMap({
737
+ [globalVars.appBar.iconColor]: iconColor,
738
+ [globalVars.appBar.textColor]: textColor,
739
+ [globalVars.appBar.borderColor]: borderColor,
740
+ [globalVars.appBar.borderSize]: borderSize,
741
+ [globalVars.appBar.height]: height,
742
+ [globalVars.appBar.heightTransitionDuration]: heightTransitionDuration,
743
+ [globalVars.appBar.overflow]: overflow,
744
+ [globalVars.appBar.backgroundColor]: backgroundColor || globalVars.backgroundColor,
745
+ [vars.appBar.center.mainWidth]: `${maxWidth}px`
746
+ })
747
+ ),
748
+ children: [
749
+ /* @__PURE__ */ jsx4("div", { className: safeArea }),
750
+ /* @__PURE__ */ jsxs2("div", { className: container, children: [
751
+ /* @__PURE__ */ jsxs2("div", { className: left, children: [
752
+ closeButtonLocation === "left" && renderCloseButton(),
753
+ renderBackButton(),
754
+ appendLeft == null ? void 0 : appendLeft()
755
+ ] }),
756
+ /* @__PURE__ */ jsx4("div", { ref: centerRef, className: center, children: /* @__PURE__ */ jsxs2(
757
+ "div",
758
+ {
759
+ className: centerMain({
760
+ hasLeft
761
+ }),
762
+ children: [
763
+ typeof title === "string" ? /* @__PURE__ */ jsx4("div", { className: centerText, children: title }) : title,
764
+ /* @__PURE__ */ jsx4(
765
+ "button",
766
+ {
767
+ className: centerMainEdge,
768
+ type: "button",
769
+ "aria-hidden": "true",
770
+ onClick: onTopClick
771
+ }
772
+ )
773
+ ]
774
+ }
775
+ ) }),
776
+ /* @__PURE__ */ jsxs2("div", { className: right, children: [
777
+ appendRight == null ? void 0 : appendRight(),
778
+ closeButtonLocation === "right" && renderCloseButton()
779
+ ] })
780
+ ] })
781
+ ]
782
+ }
783
+ );
727
784
  }
728
785
  );
729
786
  AppBar.displayName = "AppBar";
730
787
  var AppBar_default = AppBar;
731
788
 
732
789
  // src/components/AppScreen.tsx
790
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
733
791
  var Context = createContext2(null);
734
792
  function useAppScreen() {
735
793
  return useContext2(Context);
@@ -791,55 +849,69 @@ var AppScreen = ({
791
849
  });
792
850
  }
793
851
  };
794
- return /* @__PURE__ */ React5.createElement(Context.Provider, {
795
- value: useMemo(
796
- () => ({
797
- scroll({ top }) {
798
- var _a2;
799
- (_a2 = paperRef == null ? void 0 : paperRef.current) == null ? void 0 : _a2.scroll({
800
- top,
801
- behavior: "smooth"
802
- });
852
+ return /* @__PURE__ */ jsx5(
853
+ Context.Provider,
854
+ {
855
+ value: useMemo(
856
+ () => ({
857
+ scroll({ top }) {
858
+ var _a2;
859
+ (_a2 = paperRef == null ? void 0 : paperRef.current) == null ? void 0 : _a2.scroll({
860
+ top,
861
+ behavior: "smooth"
862
+ });
863
+ }
864
+ }),
865
+ [paperRef]
866
+ ),
867
+ children: /* @__PURE__ */ jsxs3(
868
+ "div",
869
+ {
870
+ ref: appScreenRef,
871
+ className: appScreen({
872
+ transitionState: transitionState === "enter-done" || transitionState === "exit-done" ? transitionState : lazyTransitionState
873
+ }),
874
+ style: assignInlineVars3(
875
+ compactMap({
876
+ [globalVars.backgroundColor]: backgroundColor,
877
+ [globalVars.dimBackgroundColor]: dimBackgroundColor,
878
+ [globalVars.appBar.height]: appBar2 == null ? void 0 : appBar2.height,
879
+ [globalVars.appBar.heightTransitionDuration]: appBar2 == null ? void 0 : appBar2.heightTransitionDuration,
880
+ [vars.zIndexes.dim]: `${zIndexDim}`,
881
+ [vars.zIndexes.paper]: `${zIndexPaper}`,
882
+ [vars.zIndexes.edge]: `${zIndexEdge}`,
883
+ [vars.zIndexes.appBar]: `${zIndexAppBar}`,
884
+ [vars.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? globalVars.transitionDuration : "0ms"
885
+ })
886
+ ),
887
+ children: [
888
+ /* @__PURE__ */ jsx5("div", { className: dim, ref: dimRef }),
889
+ appBar2 && /* @__PURE__ */ jsx5(
890
+ AppBar_default,
891
+ __spreadProps(__spreadValues({}, appBar2), {
892
+ ref: appBarRef,
893
+ modalPresentationStyle,
894
+ onTopClick: onAppBarTopClick
895
+ })
896
+ ),
897
+ /* @__PURE__ */ jsx5(
898
+ "div",
899
+ {
900
+ className: paper({
901
+ hasAppBar,
902
+ presentModalFullScreen
903
+ }),
904
+ ref: paperRef,
905
+ children
906
+ },
907
+ activity == null ? void 0 : activity.id
908
+ ),
909
+ !(activity == null ? void 0 : activity.isRoot) && globalOptions.theme === "cupertino" && !swipeBackPrevented && /* @__PURE__ */ jsx5("div", { className: edge({ hasAppBar }), ref: edgeRef })
910
+ ]
803
911
  }
804
- }),
805
- [paperRef]
806
- )
807
- }, /* @__PURE__ */ React5.createElement("div", {
808
- ref: appScreenRef,
809
- className: appScreen({
810
- transitionState: transitionState === "enter-done" || transitionState === "exit-done" ? transitionState : lazyTransitionState
811
- }),
812
- style: assignInlineVars3(
813
- compactMap({
814
- [globalVars.backgroundColor]: backgroundColor,
815
- [globalVars.dimBackgroundColor]: dimBackgroundColor,
816
- [globalVars.appBar.height]: appBar2 == null ? void 0 : appBar2.height,
817
- [globalVars.appBar.heightTransitionDuration]: appBar2 == null ? void 0 : appBar2.heightTransitionDuration,
818
- [vars.zIndexes.dim]: `${zIndexDim}`,
819
- [vars.zIndexes.paper]: `${zIndexPaper}`,
820
- [vars.zIndexes.edge]: `${zIndexEdge}`,
821
- [vars.zIndexes.appBar]: `${zIndexAppBar}`,
822
- [vars.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? `var(--stackflow-transition-duration)` : "0ms"
823
- })
824
- )
825
- }, /* @__PURE__ */ React5.createElement("div", {
826
- className: dim,
827
- ref: dimRef
828
- }), appBar2 && /* @__PURE__ */ React5.createElement(AppBar_default, __spreadProps(__spreadValues({}, appBar2), {
829
- ref: appBarRef,
830
- modalPresentationStyle,
831
- onTopClick: onAppBarTopClick
832
- })), /* @__PURE__ */ React5.createElement("div", {
833
- key: activity == null ? void 0 : activity.id,
834
- className: paper({
835
- hasAppBar,
836
- presentModalFullScreen
837
- }),
838
- ref: paperRef
839
- }, children), !(activity == null ? void 0 : activity.isRoot) && globalOptions.theme === "cupertino" && !swipeBackPrevented && /* @__PURE__ */ React5.createElement("div", {
840
- className: edge({ hasAppBar }),
841
- ref: edgeRef
842
- })));
912
+ )
913
+ }
914
+ );
843
915
  };
844
916
  AppScreen.displayName = "AppScreen";
845
917
  var AppScreen_default = AppScreen;
@@ -847,7 +919,7 @@ var AppScreen_default = AppScreen;
847
919
  // src/components/BottomSheet.tsx
848
920
  import { useActions as useActions3 } from "@stackflow/react";
849
921
  import { assignInlineVars as assignInlineVars4 } from "@vanilla-extract/dynamic";
850
- import React6, { useRef as useRef3 } from "react";
922
+ import { useRef as useRef3 } from "react";
851
923
 
852
924
  // src/components/BottomSheet.css.ts
853
925
  import { createRuntimeFn as _7a4683 } from "@vanilla-extract/recipes/createRuntimeFn";
@@ -857,6 +929,7 @@ var paper2 = "BottomSheet__1ht38h0e f__dhthxqc BottomSheet__1ht38h03";
857
929
  var vars2 = { transitionDuration: "var(--transitionDuration__1ht38h00)", zIndexes: { dim: "var(--zIndexes-dim__1ht38h01)", paper: "var(--zIndexes-paper__1ht38h02)" } };
858
930
 
859
931
  // src/components/BottomSheet.tsx
932
+ import { jsx as jsx6 } from "react/jsx-runtime";
860
933
  var BottomSheet = ({
861
934
  borderRadius = "1rem",
862
935
  backgroundColor,
@@ -899,29 +972,26 @@ var BottomSheet = ({
899
972
  const zIndexBase = ((_a = activity == null ? void 0 : activity.zIndex) != null ? _a : 0) * 5 + 3;
900
973
  const zIndexPaper = ((_b = activity == null ? void 0 : activity.zIndex) != null ? _b : 0) * 5 + 4;
901
974
  const transitionState = (_c = activity == null ? void 0 : activity.transitionState) != null ? _c : "enter-done";
902
- return /* @__PURE__ */ React6.createElement("div", {
903
- className: container2({
904
- transitionState: useLazy(transitionState)
905
- }),
906
- ref: containerRef,
907
- style: assignInlineVars4(
908
- compactMap({
909
- [globalVars.bottomSheet.borderRadius]: borderRadius,
910
- [globalVars.backgroundColor]: backgroundColor,
911
- [globalVars.dimBackgroundColor]: dimBackgroundColor,
912
- [vars2.zIndexes.dim]: `${zIndexBase}`,
913
- [vars2.zIndexes.paper]: `${zIndexPaper}`,
914
- [vars2.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? `var(--stackflow-transition-duration)` : "0ms"
915
- })
916
- )
917
- }, /* @__PURE__ */ React6.createElement("div", {
918
- className: dim2,
919
- ref: paperRef,
920
- onClick: onDimClick
921
- }, /* @__PURE__ */ React6.createElement("div", {
922
- className: paper2,
923
- onClick: onPaperClick
924
- }, children)));
975
+ return /* @__PURE__ */ jsx6(
976
+ "div",
977
+ {
978
+ className: container2({
979
+ transitionState: useLazy(transitionState)
980
+ }),
981
+ ref: containerRef,
982
+ style: assignInlineVars4(
983
+ compactMap({
984
+ [globalVars.bottomSheet.borderRadius]: borderRadius,
985
+ [globalVars.backgroundColor]: backgroundColor,
986
+ [globalVars.dimBackgroundColor]: dimBackgroundColor,
987
+ [vars2.zIndexes.dim]: `${zIndexBase}`,
988
+ [vars2.zIndexes.paper]: `${zIndexPaper}`,
989
+ [vars2.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? globalVars.transitionDuration : "0ms"
990
+ })
991
+ ),
992
+ children: /* @__PURE__ */ jsx6("div", { className: dim2, ref: paperRef, onClick: onDimClick, children: /* @__PURE__ */ jsx6("div", { className: paper2, onClick: onPaperClick, children }) })
993
+ }
994
+ );
925
995
  };
926
996
  BottomSheet.displayName = "BottomSheet";
927
997
  var BottomSheet_default = BottomSheet;
@@ -929,7 +999,7 @@ var BottomSheet_default = BottomSheet;
929
999
  // src/components/Modal.tsx
930
1000
  import { useActions as useActions4 } from "@stackflow/react";
931
1001
  import { assignInlineVars as assignInlineVars5 } from "@vanilla-extract/dynamic";
932
- import React7, { useRef as useRef4 } from "react";
1002
+ import { useRef as useRef4 } from "react";
933
1003
 
934
1004
  // src/components/Modal.css.ts
935
1005
  import { createRuntimeFn as _7a4684 } from "@vanilla-extract/recipes/createRuntimeFn";
@@ -939,6 +1009,7 @@ var paper3 = "Modal__5ozg8ce f__dhthxqc Modal__5ozg8c3";
939
1009
  var vars3 = { transitionDuration: "var(--transitionDuration__5ozg8c0)", zIndexes: { dim: "var(--zIndexes-dim__5ozg8c1)", paper: "var(--zIndexes-paper__5ozg8c2)" } };
940
1010
 
941
1011
  // src/components/Modal.tsx
1012
+ import { jsx as jsx7 } from "react/jsx-runtime";
942
1013
  var Modal = ({
943
1014
  backgroundColor,
944
1015
  dimBackgroundColor,
@@ -981,29 +1052,26 @@ var Modal = ({
981
1052
  const zIndexBase = ((_a = activity == null ? void 0 : activity.zIndex) != null ? _a : 0) * 5 + 3;
982
1053
  const zIndexPaper = ((_b = activity == null ? void 0 : activity.zIndex) != null ? _b : 0) * 5 + 4;
983
1054
  const transitionState = (_c = activity == null ? void 0 : activity.transitionState) != null ? _c : "enter-done";
984
- return /* @__PURE__ */ React7.createElement("div", {
985
- className: container3({
986
- transitionState: useLazy(transitionState)
987
- }),
988
- ref: containerRef,
989
- style: assignInlineVars5(
990
- compactMap({
991
- [globalVars.bottomSheet.borderRadius]: borderRadius,
992
- [globalVars.backgroundColor]: backgroundColor,
993
- [globalVars.dimBackgroundColor]: dimBackgroundColor,
994
- [vars3.zIndexes.dim]: `${zIndexBase}`,
995
- [vars3.zIndexes.paper]: `${zIndexPaper}`,
996
- [vars3.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? `var(--stackflow-transition-duration)` : "0ms"
997
- })
998
- )
999
- }, /* @__PURE__ */ React7.createElement("div", {
1000
- className: dim3,
1001
- ref: paperRef,
1002
- onClick: onDimClick
1003
- }, /* @__PURE__ */ React7.createElement("div", {
1004
- className: paper3,
1005
- onClick: onPaperClick
1006
- }, children)));
1055
+ return /* @__PURE__ */ jsx7(
1056
+ "div",
1057
+ {
1058
+ className: container3({
1059
+ transitionState: useLazy(transitionState)
1060
+ }),
1061
+ ref: containerRef,
1062
+ style: assignInlineVars5(
1063
+ compactMap({
1064
+ [globalVars.bottomSheet.borderRadius]: borderRadius,
1065
+ [globalVars.backgroundColor]: backgroundColor,
1066
+ [globalVars.dimBackgroundColor]: dimBackgroundColor,
1067
+ [vars3.zIndexes.dim]: `${zIndexBase}`,
1068
+ [vars3.zIndexes.paper]: `${zIndexPaper}`,
1069
+ [vars3.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? globalVars.transitionDuration : "0ms"
1070
+ })
1071
+ ),
1072
+ children: /* @__PURE__ */ jsx7("div", { className: dim3, ref: paperRef, onClick: onDimClick, children: /* @__PURE__ */ jsx7("div", { className: paper3, onClick: onPaperClick, children }) })
1073
+ }
1074
+ );
1007
1075
  };
1008
1076
  Modal.displayName = "Modal";
1009
1077
  var Modal_default = Modal;