@stackflow/plugin-basic-ui 0.21.4-alpha.4 → 1.0.1

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 (38) 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/{theme.css.d.ts → basicUIPlugin.css.d.ts} +12 -0
  5. package/dist/basicUIPlugin.d.ts +4 -4
  6. package/dist/components/AppBar.d.ts +3 -3
  7. package/dist/components/AppScreen.d.ts +3 -3
  8. package/dist/components/BottomSheet.d.ts +2 -2
  9. package/dist/components/Modal.d.ts +2 -2
  10. package/dist/hooks/useMaxWidth.d.ts +1 -1
  11. package/dist/hooks/useStyleEffect.d.ts +1 -1
  12. package/dist/hooks/useStyleEffectHide.d.ts +1 -1
  13. package/dist/index.css +150 -143
  14. package/dist/index.css.map +3 -3
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +348 -295
  17. package/dist/index.js.map +4 -4
  18. package/dist/index.mjs +327 -272
  19. package/dist/index.mjs.map +4 -4
  20. package/package.json +8 -8
  21. package/src/assets/IconBack.tsx +0 -2
  22. package/src/assets/IconClose.tsx +0 -2
  23. package/src/{theme.css.ts → basicUIPlugin.css.ts} +27 -9
  24. package/src/basicUIPlugin.tsx +23 -19
  25. package/src/components/AppBar.css.ts +2 -2
  26. package/src/components/AppBar.tsx +4 -4
  27. package/src/components/AppScreen.css.ts +2 -2
  28. package/src/components/AppScreen.tsx +8 -5
  29. package/src/components/BottomSheet.css.ts +1 -1
  30. package/src/components/BottomSheet.tsx +4 -4
  31. package/src/components/Modal.css.ts +1 -1
  32. package/src/components/Modal.tsx +4 -4
  33. package/src/hooks/useMaxWidth.ts +0 -1
  34. package/src/hooks/useStyleEffect.ts +0 -1
  35. package/src/hooks/useStyleEffectHide.ts +0 -2
  36. package/src/hooks/useStyleEffectOffset.ts +2 -1
  37. package/src/hooks/useStyleEffectSwipeBack.ts +4 -4
  38. package/src/index.ts +1 -1
package/dist/index.mjs CHANGED
@@ -17,29 +17,15 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __export = (target, all) => {
21
- for (var name in all)
22
- __defProp(target, name, { get: all[name], enumerable: true });
23
- };
24
20
 
25
21
  // src/basicUIPlugin.tsx
26
22
  import { assignInlineVars } from "@vanilla-extract/dynamic";
27
- import React, { createContext, useContext } from "react";
28
-
29
- // src/theme.css.ts
30
- var theme_css_exports = {};
31
- __export(theme_css_exports, {
32
- android: () => android,
33
- cupertino: () => cupertino,
34
- globalVars: () => globalVars,
35
- rootAndroid: () => rootAndroid,
36
- rootCupertino: () => rootCupertino
37
- });
38
- var android = "theme__1coppmz0";
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)", 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
- var rootAndroid = ":root[data-stackflow-plugin-basic-ui-theme=android]";
42
- var rootCupertino = ":root[data-stackflow-plugin-basic-ui-theme=cupertino]";
23
+ import { createContext, useContext } from "react";
24
+
25
+ // src/basicUIPlugin.css.ts
26
+ import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
27
+ 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)" } };
28
+ var stackWrapper = _7a468({ defaultClassName: "_1q6dj2j2", variantClassNames: { theme: { android: "_1q6dj2j0", cupertino: "_1q6dj2j1" }, loading: { true: "_1q6dj2j5" } }, defaultVariants: {}, compoundVariants: [] });
43
29
 
44
30
  // src/utils/compact.ts
45
31
  function compact(arr) {
@@ -100,6 +86,7 @@ function requestNextFrame(cb) {
100
86
  }
101
87
 
102
88
  // src/basicUIPlugin.tsx
89
+ import { jsx } from "react/jsx-runtime";
103
90
  var GlobalOptionsContext = createContext({
104
91
  theme: "android"
105
92
  });
@@ -111,31 +98,40 @@ var basicUIPlugin = (options) => () => ({
111
98
  key: "basic-ui",
112
99
  wrapStack({ stack }) {
113
100
  var _a, _b, _c, _d, _e, _f, _g;
114
- return /* @__PURE__ */ React.createElement(GlobalOptionsProvider, {
115
- value: options
116
- }, /* @__PURE__ */ React.createElement("div", {
117
- className: isBrowser() ? compact([theme_css_exports[options.theme], options.rootClassName]).join(" ") : options.rootClassName,
118
- style: assignInlineVars(
119
- compactMap({
120
- [globalVars.backgroundColor]: options.backgroundColor,
121
- [globalVars.dimBackgroundColor]: options.dimBackgroundColor,
122
- [globalVars.appBar.borderColor]: (_a = options.appBar) == null ? void 0 : _a.borderColor,
123
- [globalVars.appBar.borderSize]: (_b = options.appBar) == null ? void 0 : _b.borderSize,
124
- [globalVars.appBar.height]: (_c = options.appBar) == null ? void 0 : _c.height,
125
- [globalVars.appBar.iconColor]: (_d = options.appBar) == null ? void 0 : _d.iconColor,
126
- [globalVars.appBar.textColor]: (_e = options.appBar) == null ? void 0 : _e.textColor,
127
- [globalVars.bottomSheet.borderRadius]: (_f = options.bottomSheet) == null ? void 0 : _f.borderRadius,
128
- [globalVars.modal.borderRadius]: (_g = options.modal) == null ? void 0 : _g.borderRadius
129
- })
130
- )
131
- }, stack.render()));
101
+ return /* @__PURE__ */ jsx(GlobalOptionsProvider, { value: options, children: /* @__PURE__ */ jsx(
102
+ "div",
103
+ {
104
+ className: compact([
105
+ stackWrapper({
106
+ theme: isBrowser() ? options.theme : void 0,
107
+ loading: stack.globalTransitionState === "loading"
108
+ }),
109
+ options.rootClassName
110
+ ]).join(" "),
111
+ style: assignInlineVars(
112
+ compactMap({
113
+ [globalVars.backgroundColor]: options.backgroundColor,
114
+ [globalVars.dimBackgroundColor]: options.dimBackgroundColor,
115
+ [globalVars.transitionDuration]: stack.globalTransitionState === "loading" ? `${stack.transitionDuration}ms` : "0ms",
116
+ [globalVars.appBar.borderColor]: (_a = options.appBar) == null ? void 0 : _a.borderColor,
117
+ [globalVars.appBar.borderSize]: (_b = options.appBar) == null ? void 0 : _b.borderSize,
118
+ [globalVars.appBar.height]: (_c = options.appBar) == null ? void 0 : _c.height,
119
+ [globalVars.appBar.iconColor]: (_d = options.appBar) == null ? void 0 : _d.iconColor,
120
+ [globalVars.appBar.textColor]: (_e = options.appBar) == null ? void 0 : _e.textColor,
121
+ [globalVars.bottomSheet.borderRadius]: (_f = options.bottomSheet) == null ? void 0 : _f.borderRadius,
122
+ [globalVars.modal.borderRadius]: (_g = options.modal) == null ? void 0 : _g.borderRadius
123
+ })
124
+ ),
125
+ children: stack.render()
126
+ }
127
+ ) });
132
128
  }
133
129
  });
134
130
 
135
131
  // src/components/AppScreen.tsx
136
132
  import { useActions as useActions2 } from "@stackflow/react";
137
133
  import { assignInlineVars as assignInlineVars3 } from "@vanilla-extract/dynamic";
138
- import React5, { createContext as createContext2, useContext as useContext2, useMemo, useRef as useRef2 } from "react";
134
+ import { createContext as createContext2, useContext as useContext2, useMemo, useRef as useRef2 } from "react";
139
135
 
140
136
  // src/hooks/useLazy.tsx
141
137
  import { useEffect, useState } from "react";
@@ -313,7 +309,7 @@ function useStyleEffectOffset({
313
309
  if (!ref.current) {
314
310
  return;
315
311
  }
316
- ref.current.style.transition = `var(--stackflow-transition-duration)`;
312
+ ref.current.style.transition = globalVars.transitionDuration;
317
313
  ref.current.style.transform = transform;
318
314
  });
319
315
  switch (activityTransitionState) {
@@ -404,15 +400,15 @@ function useStyleEffectSwipeBack({
404
400
  return new Promise((resolve) => {
405
401
  requestAnimationFrame(() => {
406
402
  $dim.style.opacity = `${swiped ? 0 : 1}`;
407
- $dim.style.transition = "var(--stackflow-transition-duration)";
403
+ $dim.style.transition = globalVars.transitionDuration;
408
404
  $paper.style.overflowY = "hidden";
409
405
  $paper.style.transform = `translateX(${swiped ? "100%" : "0"})`;
410
- $paper.style.transition = "var(--stackflow-transition-duration)";
406
+ $paper.style.transition = globalVars.transitionDuration;
411
407
  refs.forEach((ref) => {
412
408
  if (!ref.current) {
413
409
  return;
414
410
  }
415
- ref.current.style.transition = `var(--stackflow-transition-duration)`;
411
+ ref.current.style.transition = globalVars.transitionDuration;
416
412
  ref.current.style.transform = `translate3d(${swiped ? "0" : `-${OFFSET_PX_CUPERTINO / 16}rem`}, 0, 0)`;
417
413
  });
418
414
  const _cachedRefs = [...cachedRefs];
@@ -511,65 +507,86 @@ function useStyleEffectSwipeBack({
511
507
  // src/components/AppBar.tsx
512
508
  import { useActions } from "@stackflow/react";
513
509
  import { assignInlineVars as assignInlineVars2 } from "@vanilla-extract/dynamic";
514
- import React4, { useRef } from "react";
510
+ import { forwardRef, useRef } from "react";
515
511
 
516
512
  // src/assets/IconBack.tsx
517
- import React2 from "react";
518
- var IconBack = (props) => /* @__PURE__ */ React2.createElement("svg", {
519
- className: props.className,
520
- width: "24",
521
- height: "24",
522
- viewBox: "0 0 24 24",
523
- fill: "none",
524
- xmlns: "http://www.w3.org/2000/svg"
525
- }, /* @__PURE__ */ React2.createElement("path", {
526
- 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",
527
- fill: "currentColor"
528
- }));
513
+ import { jsx as jsx2 } from "react/jsx-runtime";
514
+ var IconBack = (props) => /* @__PURE__ */ jsx2(
515
+ "svg",
516
+ {
517
+ className: props.className,
518
+ width: "24",
519
+ height: "24",
520
+ viewBox: "0 0 24 24",
521
+ fill: "none",
522
+ xmlns: "http://www.w3.org/2000/svg",
523
+ children: /* @__PURE__ */ jsx2(
524
+ "path",
525
+ {
526
+ 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",
527
+ fill: "currentColor"
528
+ }
529
+ )
530
+ }
531
+ );
529
532
  var IconBack_default = IconBack;
530
533
 
531
534
  // src/assets/IconClose.tsx
532
- import React3 from "react";
533
- var IconClose = (props) => /* @__PURE__ */ React3.createElement("svg", {
534
- className: props.className,
535
- width: "24",
536
- height: "24",
537
- viewBox: "0 0 24 24",
538
- fill: "none",
539
- xmlns: "http://www.w3.org/2000/svg"
540
- }, /* @__PURE__ */ React3.createElement("path", {
541
- 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",
542
- fill: "currentColor"
543
- }), /* @__PURE__ */ React3.createElement("path", {
544
- 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",
545
- fill: "currentColor"
546
- }));
535
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
536
+ var IconClose = (props) => /* @__PURE__ */ jsxs(
537
+ "svg",
538
+ {
539
+ className: props.className,
540
+ width: "24",
541
+ height: "24",
542
+ viewBox: "0 0 24 24",
543
+ fill: "none",
544
+ xmlns: "http://www.w3.org/2000/svg",
545
+ children: [
546
+ /* @__PURE__ */ jsx3(
547
+ "path",
548
+ {
549
+ 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",
550
+ fill: "currentColor"
551
+ }
552
+ ),
553
+ /* @__PURE__ */ jsx3(
554
+ "path",
555
+ {
556
+ 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",
557
+ fill: "currentColor"
558
+ }
559
+ )
560
+ ]
561
+ }
562
+ );
547
563
  var IconClose_default = IconClose;
548
564
 
549
565
  // src/components/AppBar.css.ts
550
- import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
551
- 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: [] });
552
- var backButton = "AppBar__1yk3a458 f__dhthxq9 f__dhthxq7 f__dhthxqb f__dhthxqf f__dhthxqi";
553
- var center = "f__dhthxq9 f__dhthxq7 f__dhthxq8 AppBar__1yk3a450";
554
- var centerMain = _7a468({ defaultClassName: "AppBar__1yk3a45b", variantClassNames: { hasLeft: { true: "AppBar_hasLeft_true__1yk3a45c" } }, defaultVariants: {}, compoundVariants: [] });
555
- var centerMainEdge = "AppBar__1yk3a45d f__dhthxqi f__dhthxq4 f__dhthxq2 f__dhthxqf";
556
- var centerText = "AppBar__1yk3a45e f__dhthxqc f__dhthxqd f__dhthxq0";
557
- var closeButton = "AppBar__1yk3a458 f__dhthxq9 f__dhthxq7 f__dhthxqb f__dhthxqf f__dhthxqi";
558
- var container = "AppBar__1yk3a456 f__dhthxqa f__dhthxq7 AppBar__1yk3a451";
559
- var left = "AppBar__1yk3a457 f__dhthxq9 f__dhthxq7 f__dhthxq1 AppBar__1yk3a450";
560
- var right = "AppBar__1yk3a45f f__dhthxq9 f__dhthxq7 f__dhthxq1 f__dhthxq5 AppBar__1yk3a450";
561
- var safeArea = "AppBar__1yk3a455";
566
+ import { createRuntimeFn as _7a4682 } from "@vanilla-extract/recipes/createRuntimeFn";
567
+ var appBar = _7a4682({ defaultClassName: "_1yk3a452 dhthxq4 dhthxq0 dhthxqh _1dlf4347 _1yk3a451", variantClassNames: { border: { true: "_1yk3a453" }, presentModalFullScreen: { true: "_1yk3a454" } }, defaultVariants: {}, compoundVariants: [] });
568
+ var backButton = "_1yk3a458 dhthxq9 dhthxq7 dhthxqb dhthxqf dhthxqi";
569
+ var center = "dhthxq9 dhthxq7 dhthxq8 _1yk3a450";
570
+ var centerMain = _7a4682({ defaultClassName: "_1yk3a45b", variantClassNames: { hasLeft: { true: "_1yk3a45c" } }, defaultVariants: {}, compoundVariants: [] });
571
+ var centerMainEdge = "_1yk3a45d dhthxqi dhthxq4 dhthxq2 dhthxqf";
572
+ var centerText = "_1yk3a45e dhthxqc dhthxqd dhthxq0";
573
+ var closeButton = "_1yk3a458 dhthxq9 dhthxq7 dhthxqb dhthxqf dhthxqi";
574
+ var container = "_1yk3a456 dhthxqa dhthxq7 _1yk3a451";
575
+ var left = "_1yk3a457 dhthxq9 dhthxq7 dhthxq1 _1yk3a450";
576
+ var right = "_1yk3a45f dhthxq9 dhthxq7 dhthxq1 dhthxq5 _1yk3a450";
577
+ var safeArea = "_1yk3a455";
562
578
 
563
579
  // src/components/AppScreen.css.ts
564
- import { createRuntimeFn as _7a4682 } from "@vanilla-extract/recipes/createRuntimeFn";
565
- var appScreen = _7a4682({ defaultClassName: "f__dhthxq4 f__dhthxq0 f__dhthxq1 f__dhthxq2 f__dhthxq3 f__dhthxqc", variantClassNames: { transitionState: { "enter-active": "AppScreen__1dlf4349", "enter-done": "AppScreen__1dlf434a", "exit-active": "AppScreen__1dlf434b", "exit-done": "AppScreen__1dlf434c" } }, defaultVariants: {}, compoundVariants: [] });
566
- var dim = "AppScreen__1dlf434i f__dhthxq4 f__dhthxq0 f__dhthxq1 f__dhthxq2 f__dhthxq3 AppScreen__1dlf4346 AppScreen__1dlf4348";
567
- var edge = _7a4682({ defaultClassName: "AppScreen__1dlf434m f__dhthxq4 f__dhthxq2 f__dhthxq3 f__dhthxq1", variantClassNames: { hasAppBar: { true: "AppScreen_hasAppBar_true__1dlf434n" } }, defaultVariants: {}, compoundVariants: [] });
568
- var paper = _7a4682({ defaultClassName: "AppScreen__1dlf434j f__dhthxq4 f__dhthxq0 f__dhthxq1 f__dhthxq2 f__dhthxq3 AppScreen__1dlf4347 AppScreen__1dlf4348", variantClassNames: { hasAppBar: { true: "AppScreen_hasAppBar_true__1dlf434k f__dhthxqg" }, presentModalFullScreen: { true: "AppScreen_presentModalFullScreen_true__1dlf434l" } }, defaultVariants: {}, compoundVariants: [] });
569
- 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)" } } };
580
+ import { createRuntimeFn as _7a4683 } from "@vanilla-extract/recipes/createRuntimeFn";
581
+ var appScreen = _7a4683({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_1dlf4349", "enter-done": "_1dlf434a", "exit-active": "_1dlf434b", "exit-done": "_1dlf434c" } }, defaultVariants: {}, compoundVariants: [] });
582
+ var dim = "_1dlf434i dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 _1dlf4346 _1dlf4348";
583
+ var edge = _7a4683({ defaultClassName: "_1dlf434m dhthxq4 dhthxq2 dhthxq3 dhthxq1", variantClassNames: { hasAppBar: { true: "_1dlf434n" } }, defaultVariants: {}, compoundVariants: [] });
584
+ var paper = _7a4683({ defaultClassName: "_1dlf434j dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 _1dlf4347 _1dlf4348", variantClassNames: { hasAppBar: { true: "_1dlf434k dhthxqg" }, presentModalFullScreen: { true: "_1dlf434l" } }, defaultVariants: {}, compoundVariants: [] });
585
+ var vars = { transitionDuration: "var(--_1dlf4340)", zIndexes: { dim: "var(--_1dlf4341)", paper: "var(--_1dlf4342)", edge: "var(--_1dlf4343)", appBar: "var(--_1dlf4344)" }, appBar: { center: { mainWidth: "var(--_1dlf4345)" } } };
570
586
 
571
587
  // src/components/AppBar.tsx
572
- var AppBar = React4.forwardRef(
588
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
589
+ var AppBar = forwardRef(
573
590
  ({
574
591
  title,
575
592
  appendLeft,
@@ -619,11 +636,15 @@ var AppBar = React4.forwardRef(
619
636
  return null;
620
637
  }
621
638
  if (!backButton2 && !globalBackButton) {
622
- return /* @__PURE__ */ React4.createElement("button", {
623
- type: "button",
624
- className: backButton,
625
- onClick: onBackClick
626
- }, /* @__PURE__ */ React4.createElement(IconBack_default, null));
639
+ return /* @__PURE__ */ jsx4(
640
+ "button",
641
+ {
642
+ type: "button",
643
+ className: backButton,
644
+ onClick: onBackClick,
645
+ children: /* @__PURE__ */ jsx4(IconBack_default, {})
646
+ }
647
+ );
627
648
  }
628
649
  if (backButton2 && "render" in backButton2 && backButton2.render) {
629
650
  return (_a2 = backButton2.render) == null ? void 0 : _a2.call(backButton2);
@@ -631,23 +652,27 @@ var AppBar = React4.forwardRef(
631
652
  if (globalBackButton && "render" in globalBackButton && globalBackButton.render) {
632
653
  return (_b2 = globalBackButton.render) == null ? void 0 : _b2.call(globalBackButton);
633
654
  }
634
- return /* @__PURE__ */ React4.createElement("button", {
635
- type: "button",
636
- className: backButton,
637
- "aria-label": backButton2 && "ariaLabel" in backButton2 ? backButton2.ariaLabel : globalBackButton && "ariaLabel" in globalBackButton ? globalBackButton.ariaLabel : void 0,
638
- onClick: onBackClick
639
- }, (() => {
640
- if (backButton2 && "renderIcon" in backButton2 && backButton2.renderIcon) {
641
- return backButton2.renderIcon();
642
- }
643
- if (globalBackButton && "renderIcon" in globalBackButton && globalBackButton.renderIcon) {
644
- return globalBackButton.renderIcon();
645
- }
646
- if (presentModalFullScreen) {
647
- return /* @__PURE__ */ React4.createElement(IconClose_default, null);
655
+ return /* @__PURE__ */ jsx4(
656
+ "button",
657
+ {
658
+ type: "button",
659
+ className: backButton,
660
+ "aria-label": backButton2 && "ariaLabel" in backButton2 ? backButton2.ariaLabel : globalBackButton && "ariaLabel" in globalBackButton ? globalBackButton.ariaLabel : void 0,
661
+ onClick: onBackClick,
662
+ children: (() => {
663
+ if (backButton2 && "renderIcon" in backButton2 && backButton2.renderIcon) {
664
+ return backButton2.renderIcon();
665
+ }
666
+ if (globalBackButton && "renderIcon" in globalBackButton && globalBackButton.renderIcon) {
667
+ return globalBackButton.renderIcon();
668
+ }
669
+ if (presentModalFullScreen) {
670
+ return /* @__PURE__ */ jsx4(IconClose_default, {});
671
+ }
672
+ return /* @__PURE__ */ jsx4(IconBack_default, {});
673
+ })()
648
674
  }
649
- return /* @__PURE__ */ React4.createElement(IconBack_default, null);
650
- })());
675
+ );
651
676
  };
652
677
  const onCloseClick = (e) => {
653
678
  var _a2;
@@ -671,70 +696,90 @@ var AppBar = React4.forwardRef(
671
696
  if (globalCloseButton && "render" in globalCloseButton && globalCloseButton.render) {
672
697
  return globalCloseButton.render();
673
698
  }
674
- return /* @__PURE__ */ React4.createElement("button", {
675
- type: "button",
676
- className: closeButton,
677
- "aria-label": closeButton2 && "ariaLabel" in closeButton2 ? closeButton2.ariaLabel : globalCloseButton && "ariaLabel" in globalCloseButton ? globalCloseButton.ariaLabel : void 0,
678
- onClick: onCloseClick
679
- }, (() => {
680
- if (closeButton2 && "renderIcon" in closeButton2 && closeButton2.renderIcon) {
681
- return closeButton2.renderIcon();
682
- }
683
- if (globalCloseButton && "renderIcon" in globalCloseButton && globalCloseButton.renderIcon) {
684
- return globalCloseButton.renderIcon();
699
+ return /* @__PURE__ */ jsx4(
700
+ "button",
701
+ {
702
+ type: "button",
703
+ className: closeButton,
704
+ "aria-label": closeButton2 && "ariaLabel" in closeButton2 ? closeButton2.ariaLabel : globalCloseButton && "ariaLabel" in globalCloseButton ? globalCloseButton.ariaLabel : void 0,
705
+ onClick: onCloseClick,
706
+ children: (() => {
707
+ if (closeButton2 && "renderIcon" in closeButton2 && closeButton2.renderIcon) {
708
+ return closeButton2.renderIcon();
709
+ }
710
+ if (globalCloseButton && "renderIcon" in globalCloseButton && globalCloseButton.renderIcon) {
711
+ return globalCloseButton.renderIcon();
712
+ }
713
+ return /* @__PURE__ */ jsx4(IconClose_default, {});
714
+ })()
685
715
  }
686
- return /* @__PURE__ */ React4.createElement(IconClose_default, null);
687
- })());
716
+ );
688
717
  };
689
718
  const hasLeft = !!(closeButtonLocation === "left" && closeButton2 || backButton2 || appendLeft);
690
- return /* @__PURE__ */ React4.createElement("div", {
691
- ref,
692
- className: appBar({
693
- border,
694
- presentModalFullScreen
695
- }),
696
- style: assignInlineVars2(
697
- compactMap({
698
- [globalVars.appBar.iconColor]: iconColor,
699
- [globalVars.appBar.textColor]: textColor,
700
- [globalVars.appBar.borderColor]: borderColor,
701
- [globalVars.appBar.borderSize]: borderSize,
702
- [globalVars.appBar.height]: height,
703
- [globalVars.appBar.heightTransitionDuration]: heightTransitionDuration,
704
- [globalVars.appBar.overflow]: overflow,
705
- [globalVars.appBar.backgroundColor]: backgroundColor || globalVars.backgroundColor,
706
- [vars.appBar.center.mainWidth]: `${maxWidth}px`
707
- })
708
- )
709
- }, /* @__PURE__ */ React4.createElement("div", {
710
- className: safeArea
711
- }), /* @__PURE__ */ React4.createElement("div", {
712
- className: container
713
- }, /* @__PURE__ */ React4.createElement("div", {
714
- className: left
715
- }, closeButtonLocation === "left" && renderCloseButton(), renderBackButton(), appendLeft == null ? void 0 : appendLeft()), /* @__PURE__ */ React4.createElement("div", {
716
- ref: centerRef,
717
- className: center
718
- }, /* @__PURE__ */ React4.createElement("div", {
719
- className: centerMain({
720
- hasLeft
721
- })
722
- }, typeof title === "string" ? /* @__PURE__ */ React4.createElement("div", {
723
- className: centerText
724
- }, title) : title, /* @__PURE__ */ React4.createElement("button", {
725
- className: centerMainEdge,
726
- type: "button",
727
- "aria-hidden": "true",
728
- onClick: onTopClick
729
- }))), /* @__PURE__ */ React4.createElement("div", {
730
- className: right
731
- }, appendRight == null ? void 0 : appendRight(), closeButtonLocation === "right" && renderCloseButton())));
719
+ return /* @__PURE__ */ jsxs2(
720
+ "div",
721
+ {
722
+ ref,
723
+ className: appBar({
724
+ border,
725
+ presentModalFullScreen
726
+ }),
727
+ style: assignInlineVars2(
728
+ compactMap({
729
+ [globalVars.appBar.iconColor]: iconColor,
730
+ [globalVars.appBar.textColor]: textColor,
731
+ [globalVars.appBar.borderColor]: borderColor,
732
+ [globalVars.appBar.borderSize]: borderSize,
733
+ [globalVars.appBar.height]: height,
734
+ [globalVars.appBar.heightTransitionDuration]: heightTransitionDuration,
735
+ [globalVars.appBar.overflow]: overflow,
736
+ [globalVars.appBar.backgroundColor]: backgroundColor || globalVars.backgroundColor,
737
+ [vars.appBar.center.mainWidth]: `${maxWidth}px`
738
+ })
739
+ ),
740
+ children: [
741
+ /* @__PURE__ */ jsx4("div", { className: safeArea }),
742
+ /* @__PURE__ */ jsxs2("div", { className: container, children: [
743
+ /* @__PURE__ */ jsxs2("div", { className: left, children: [
744
+ closeButtonLocation === "left" && renderCloseButton(),
745
+ renderBackButton(),
746
+ appendLeft == null ? void 0 : appendLeft()
747
+ ] }),
748
+ /* @__PURE__ */ jsx4("div", { ref: centerRef, className: center, children: /* @__PURE__ */ jsxs2(
749
+ "div",
750
+ {
751
+ className: centerMain({
752
+ hasLeft
753
+ }),
754
+ children: [
755
+ typeof title === "string" ? /* @__PURE__ */ jsx4("div", { className: centerText, children: title }) : title,
756
+ /* @__PURE__ */ jsx4(
757
+ "button",
758
+ {
759
+ className: centerMainEdge,
760
+ type: "button",
761
+ "aria-hidden": "true",
762
+ onClick: onTopClick
763
+ }
764
+ )
765
+ ]
766
+ }
767
+ ) }),
768
+ /* @__PURE__ */ jsxs2("div", { className: right, children: [
769
+ appendRight == null ? void 0 : appendRight(),
770
+ closeButtonLocation === "right" && renderCloseButton()
771
+ ] })
772
+ ] })
773
+ ]
774
+ }
775
+ );
732
776
  }
733
777
  );
734
778
  AppBar.displayName = "AppBar";
735
779
  var AppBar_default = AppBar;
736
780
 
737
781
  // src/components/AppScreen.tsx
782
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
738
783
  var Context = createContext2(null);
739
784
  function useAppScreen() {
740
785
  return useContext2(Context);
@@ -796,55 +841,69 @@ var AppScreen = ({
796
841
  });
797
842
  }
798
843
  };
799
- return /* @__PURE__ */ React5.createElement(Context.Provider, {
800
- value: useMemo(
801
- () => ({
802
- scroll({ top }) {
803
- var _a2;
804
- (_a2 = paperRef == null ? void 0 : paperRef.current) == null ? void 0 : _a2.scroll({
805
- top,
806
- behavior: "smooth"
807
- });
844
+ return /* @__PURE__ */ jsx5(
845
+ Context.Provider,
846
+ {
847
+ value: useMemo(
848
+ () => ({
849
+ scroll({ top }) {
850
+ var _a2;
851
+ (_a2 = paperRef == null ? void 0 : paperRef.current) == null ? void 0 : _a2.scroll({
852
+ top,
853
+ behavior: "smooth"
854
+ });
855
+ }
856
+ }),
857
+ [paperRef]
858
+ ),
859
+ children: /* @__PURE__ */ jsxs3(
860
+ "div",
861
+ {
862
+ ref: appScreenRef,
863
+ className: appScreen({
864
+ transitionState: transitionState === "enter-done" || transitionState === "exit-done" ? transitionState : lazyTransitionState
865
+ }),
866
+ style: assignInlineVars3(
867
+ compactMap({
868
+ [globalVars.backgroundColor]: backgroundColor,
869
+ [globalVars.dimBackgroundColor]: dimBackgroundColor,
870
+ [globalVars.appBar.height]: appBar2 == null ? void 0 : appBar2.height,
871
+ [globalVars.appBar.heightTransitionDuration]: appBar2 == null ? void 0 : appBar2.heightTransitionDuration,
872
+ [vars.zIndexes.dim]: `${zIndexDim}`,
873
+ [vars.zIndexes.paper]: `${zIndexPaper}`,
874
+ [vars.zIndexes.edge]: `${zIndexEdge}`,
875
+ [vars.zIndexes.appBar]: `${zIndexAppBar}`,
876
+ [vars.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? globalVars.transitionDuration : "0ms"
877
+ })
878
+ ),
879
+ children: [
880
+ /* @__PURE__ */ jsx5("div", { className: dim, ref: dimRef }),
881
+ appBar2 && /* @__PURE__ */ jsx5(
882
+ AppBar_default,
883
+ __spreadProps(__spreadValues({}, appBar2), {
884
+ ref: appBarRef,
885
+ modalPresentationStyle,
886
+ onTopClick: onAppBarTopClick
887
+ })
888
+ ),
889
+ /* @__PURE__ */ jsx5(
890
+ "div",
891
+ {
892
+ className: paper({
893
+ hasAppBar,
894
+ presentModalFullScreen
895
+ }),
896
+ ref: paperRef,
897
+ children
898
+ },
899
+ activity == null ? void 0 : activity.id
900
+ ),
901
+ !(activity == null ? void 0 : activity.isRoot) && globalOptions.theme === "cupertino" && !swipeBackPrevented && /* @__PURE__ */ jsx5("div", { className: edge({ hasAppBar }), ref: edgeRef })
902
+ ]
808
903
  }
809
- }),
810
- [paperRef]
811
- )
812
- }, /* @__PURE__ */ React5.createElement("div", {
813
- ref: appScreenRef,
814
- className: appScreen({
815
- transitionState: transitionState === "enter-done" || transitionState === "exit-done" ? transitionState : lazyTransitionState
816
- }),
817
- style: assignInlineVars3(
818
- compactMap({
819
- [globalVars.backgroundColor]: backgroundColor,
820
- [globalVars.dimBackgroundColor]: dimBackgroundColor,
821
- [globalVars.appBar.height]: appBar2 == null ? void 0 : appBar2.height,
822
- [globalVars.appBar.heightTransitionDuration]: appBar2 == null ? void 0 : appBar2.heightTransitionDuration,
823
- [vars.zIndexes.dim]: `${zIndexDim}`,
824
- [vars.zIndexes.paper]: `${zIndexPaper}`,
825
- [vars.zIndexes.edge]: `${zIndexEdge}`,
826
- [vars.zIndexes.appBar]: `${zIndexAppBar}`,
827
- [vars.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? `var(--stackflow-transition-duration)` : "0ms"
828
- })
829
- )
830
- }, /* @__PURE__ */ React5.createElement("div", {
831
- className: dim,
832
- ref: dimRef
833
- }), appBar2 && /* @__PURE__ */ React5.createElement(AppBar_default, __spreadProps(__spreadValues({}, appBar2), {
834
- ref: appBarRef,
835
- modalPresentationStyle,
836
- onTopClick: onAppBarTopClick
837
- })), /* @__PURE__ */ React5.createElement("div", {
838
- key: activity == null ? void 0 : activity.id,
839
- className: paper({
840
- hasAppBar,
841
- presentModalFullScreen
842
- }),
843
- ref: paperRef
844
- }, children), !(activity == null ? void 0 : activity.isRoot) && globalOptions.theme === "cupertino" && !swipeBackPrevented && /* @__PURE__ */ React5.createElement("div", {
845
- className: edge({ hasAppBar }),
846
- ref: edgeRef
847
- })));
904
+ )
905
+ }
906
+ );
848
907
  };
849
908
  AppScreen.displayName = "AppScreen";
850
909
  var AppScreen_default = AppScreen;
@@ -852,16 +911,17 @@ var AppScreen_default = AppScreen;
852
911
  // src/components/BottomSheet.tsx
853
912
  import { useActions as useActions3 } from "@stackflow/react";
854
913
  import { assignInlineVars as assignInlineVars4 } from "@vanilla-extract/dynamic";
855
- import React6, { useRef as useRef3 } from "react";
914
+ import { useRef as useRef3 } from "react";
856
915
 
857
916
  // src/components/BottomSheet.css.ts
858
- import { createRuntimeFn as _7a4683 } from "@vanilla-extract/recipes/createRuntimeFn";
859
- var container2 = _7a4683({ defaultClassName: "f__dhthxq4 f__dhthxq0 f__dhthxq1 f__dhthxq2 f__dhthxq3 f__dhthxqc", variantClassNames: { transitionState: { "enter-active": "BottomSheet__1ht38h04", "enter-done": "BottomSheet__1ht38h05", "exit-active": "BottomSheet__1ht38h06", "exit-done": "BottomSheet__1ht38h07" } }, defaultVariants: {}, compoundVariants: [] });
860
- var dim2 = "BottomSheet__1ht38h0d f__dhthxq4 f__dhthxq0 f__dhthxq1 f__dhthxq2 f__dhthxq3 f__dhthxqc f__dhthxqa f__dhthxq7 BottomSheet__1ht38h03";
861
- var paper2 = "BottomSheet__1ht38h0e f__dhthxqc BottomSheet__1ht38h03";
862
- var vars2 = { transitionDuration: "var(--transitionDuration__1ht38h00)", zIndexes: { dim: "var(--zIndexes-dim__1ht38h01)", paper: "var(--zIndexes-paper__1ht38h02)" } };
917
+ import { createRuntimeFn as _7a4684 } from "@vanilla-extract/recipes/createRuntimeFn";
918
+ var container2 = _7a4684({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_1ht38h04", "enter-done": "_1ht38h05", "exit-active": "_1ht38h06", "exit-done": "_1ht38h07" } }, defaultVariants: {}, compoundVariants: [] });
919
+ var dim2 = "_1ht38h0d dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc dhthxqa dhthxq7 _1ht38h03";
920
+ var paper2 = "_1ht38h0e dhthxqc _1ht38h03";
921
+ var vars2 = { transitionDuration: "var(--_1ht38h00)", zIndexes: { dim: "var(--_1ht38h01)", paper: "var(--_1ht38h02)" } };
863
922
 
864
923
  // src/components/BottomSheet.tsx
924
+ import { jsx as jsx6 } from "react/jsx-runtime";
865
925
  var BottomSheet = ({
866
926
  borderRadius = "1rem",
867
927
  backgroundColor,
@@ -904,29 +964,26 @@ var BottomSheet = ({
904
964
  const zIndexBase = ((_a = activity == null ? void 0 : activity.zIndex) != null ? _a : 0) * 5 + 3;
905
965
  const zIndexPaper = ((_b = activity == null ? void 0 : activity.zIndex) != null ? _b : 0) * 5 + 4;
906
966
  const transitionState = (_c = activity == null ? void 0 : activity.transitionState) != null ? _c : "enter-done";
907
- return /* @__PURE__ */ React6.createElement("div", {
908
- className: container2({
909
- transitionState: useLazy(transitionState)
910
- }),
911
- ref: containerRef,
912
- style: assignInlineVars4(
913
- compactMap({
914
- [globalVars.bottomSheet.borderRadius]: borderRadius,
915
- [globalVars.backgroundColor]: backgroundColor,
916
- [globalVars.dimBackgroundColor]: dimBackgroundColor,
917
- [vars2.zIndexes.dim]: `${zIndexBase}`,
918
- [vars2.zIndexes.paper]: `${zIndexPaper}`,
919
- [vars2.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? `var(--stackflow-transition-duration)` : "0ms"
920
- })
921
- )
922
- }, /* @__PURE__ */ React6.createElement("div", {
923
- className: dim2,
924
- ref: paperRef,
925
- onClick: onDimClick
926
- }, /* @__PURE__ */ React6.createElement("div", {
927
- className: paper2,
928
- onClick: onPaperClick
929
- }, children)));
967
+ return /* @__PURE__ */ jsx6(
968
+ "div",
969
+ {
970
+ className: container2({
971
+ transitionState: useLazy(transitionState)
972
+ }),
973
+ ref: containerRef,
974
+ style: assignInlineVars4(
975
+ compactMap({
976
+ [globalVars.bottomSheet.borderRadius]: borderRadius,
977
+ [globalVars.backgroundColor]: backgroundColor,
978
+ [globalVars.dimBackgroundColor]: dimBackgroundColor,
979
+ [vars2.zIndexes.dim]: `${zIndexBase}`,
980
+ [vars2.zIndexes.paper]: `${zIndexPaper}`,
981
+ [vars2.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? globalVars.transitionDuration : "0ms"
982
+ })
983
+ ),
984
+ children: /* @__PURE__ */ jsx6("div", { className: dim2, ref: paperRef, onClick: onDimClick, children: /* @__PURE__ */ jsx6("div", { className: paper2, onClick: onPaperClick, children }) })
985
+ }
986
+ );
930
987
  };
931
988
  BottomSheet.displayName = "BottomSheet";
932
989
  var BottomSheet_default = BottomSheet;
@@ -934,16 +991,17 @@ var BottomSheet_default = BottomSheet;
934
991
  // src/components/Modal.tsx
935
992
  import { useActions as useActions4 } from "@stackflow/react";
936
993
  import { assignInlineVars as assignInlineVars5 } from "@vanilla-extract/dynamic";
937
- import React7, { useRef as useRef4 } from "react";
994
+ import { useRef as useRef4 } from "react";
938
995
 
939
996
  // src/components/Modal.css.ts
940
- import { createRuntimeFn as _7a4684 } from "@vanilla-extract/recipes/createRuntimeFn";
941
- var container3 = _7a4684({ defaultClassName: "f__dhthxq4 f__dhthxq0 f__dhthxq1 f__dhthxq2 f__dhthxq3 f__dhthxqc", variantClassNames: { transitionState: { "enter-active": "Modal__5ozg8c4", "enter-done": "Modal__5ozg8c5", "exit-active": "Modal__5ozg8c6", "exit-done": "Modal__5ozg8c7" } }, defaultVariants: {}, compoundVariants: [] });
942
- var dim3 = "Modal__5ozg8cd f__dhthxq4 f__dhthxq0 f__dhthxq1 f__dhthxq2 f__dhthxq3 f__dhthxqc f__dhthxq9 f__dhthxq7 f__dhthxqb Modal__5ozg8c3";
943
- var paper3 = "Modal__5ozg8ce f__dhthxqc Modal__5ozg8c3";
944
- var vars3 = { transitionDuration: "var(--transitionDuration__5ozg8c0)", zIndexes: { dim: "var(--zIndexes-dim__5ozg8c1)", paper: "var(--zIndexes-paper__5ozg8c2)" } };
997
+ import { createRuntimeFn as _7a4685 } from "@vanilla-extract/recipes/createRuntimeFn";
998
+ var container3 = _7a4685({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_5ozg8c4", "enter-done": "_5ozg8c5", "exit-active": "_5ozg8c6", "exit-done": "_5ozg8c7" } }, defaultVariants: {}, compoundVariants: [] });
999
+ var dim3 = "_5ozg8cd dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc dhthxq9 dhthxq7 dhthxqb _5ozg8c3";
1000
+ var paper3 = "_5ozg8ce dhthxqc _5ozg8c3";
1001
+ var vars3 = { transitionDuration: "var(--_5ozg8c0)", zIndexes: { dim: "var(--_5ozg8c1)", paper: "var(--_5ozg8c2)" } };
945
1002
 
946
1003
  // src/components/Modal.tsx
1004
+ import { jsx as jsx7 } from "react/jsx-runtime";
947
1005
  var Modal = ({
948
1006
  backgroundColor,
949
1007
  dimBackgroundColor,
@@ -986,29 +1044,26 @@ var Modal = ({
986
1044
  const zIndexBase = ((_a = activity == null ? void 0 : activity.zIndex) != null ? _a : 0) * 5 + 3;
987
1045
  const zIndexPaper = ((_b = activity == null ? void 0 : activity.zIndex) != null ? _b : 0) * 5 + 4;
988
1046
  const transitionState = (_c = activity == null ? void 0 : activity.transitionState) != null ? _c : "enter-done";
989
- return /* @__PURE__ */ React7.createElement("div", {
990
- className: container3({
991
- transitionState: useLazy(transitionState)
992
- }),
993
- ref: containerRef,
994
- style: assignInlineVars5(
995
- compactMap({
996
- [globalVars.bottomSheet.borderRadius]: borderRadius,
997
- [globalVars.backgroundColor]: backgroundColor,
998
- [globalVars.dimBackgroundColor]: dimBackgroundColor,
999
- [vars3.zIndexes.dim]: `${zIndexBase}`,
1000
- [vars3.zIndexes.paper]: `${zIndexPaper}`,
1001
- [vars3.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? `var(--stackflow-transition-duration)` : "0ms"
1002
- })
1003
- )
1004
- }, /* @__PURE__ */ React7.createElement("div", {
1005
- className: dim3,
1006
- ref: paperRef,
1007
- onClick: onDimClick
1008
- }, /* @__PURE__ */ React7.createElement("div", {
1009
- className: paper3,
1010
- onClick: onPaperClick
1011
- }, children)));
1047
+ return /* @__PURE__ */ jsx7(
1048
+ "div",
1049
+ {
1050
+ className: container3({
1051
+ transitionState: useLazy(transitionState)
1052
+ }),
1053
+ ref: containerRef,
1054
+ style: assignInlineVars5(
1055
+ compactMap({
1056
+ [globalVars.bottomSheet.borderRadius]: borderRadius,
1057
+ [globalVars.backgroundColor]: backgroundColor,
1058
+ [globalVars.dimBackgroundColor]: dimBackgroundColor,
1059
+ [vars3.zIndexes.dim]: `${zIndexBase}`,
1060
+ [vars3.zIndexes.paper]: `${zIndexPaper}`,
1061
+ [vars3.transitionDuration]: transitionState === "enter-active" || transitionState === "exit-active" ? globalVars.transitionDuration : "0ms"
1062
+ })
1063
+ ),
1064
+ children: /* @__PURE__ */ jsx7("div", { className: dim3, ref: paperRef, onClick: onDimClick, children: /* @__PURE__ */ jsx7("div", { className: paper3, onClick: onPaperClick, children }) })
1065
+ }
1066
+ );
1012
1067
  };
1013
1068
  Modal.displayName = "Modal";
1014
1069
  var Modal_default = Modal;