@stackflow/plugin-basic-ui 1.9.1-canary.0 → 1.9.2-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -106,18 +106,27 @@ var IconClose_default = IconClose;
106
106
 
107
107
  // src/basicUIPlugin.tsx
108
108
  var import_dynamic = require("@vanilla-extract/dynamic");
109
- var import_react = require("react");
109
+ var import_react2 = require("react");
110
110
 
111
111
  // src/basicUIPlugin.css.ts
112
- var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
113
112
  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)", computedTransitionDuration: "var(--stackflow-plugin-basic-ui-computed-transition-duration)", appBar: { borderColor: "var(--stackflow-plugin-basic-ui-app-bar-border-color)", borderColorTransitionDuration: "var(--stackflow-plugin-basic-ui-app-bar-border-color-transition-duration)", 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)", iconColorTransitionDuration: "var(--stackflow-plugin-basic-ui-app-bar-icon-color-transition-duration)", textColor: "var(--stackflow-plugin-basic-ui-app-bar-text-color)", textColorTransitionDuration: "var(--stackflow-plugin-basic-ui-app-bar-text-color-transition-duration)", backgroundColor: "var(--stackflow-plugin-basic-ui-app-bar-background-color)", backgroundColorTransitionDuration: "var(--stackflow-plugin-basic-ui-app-bar-background-color-transition-duration)", overflow: "var(--stackflow-plugin-basic-ui-app-bar-overflow)", minSafeAreaInsetTop: "var(--stackflow-plugin-basic-ui-app-bar-min-safe-area-inset-top)" }, bottomSheet: { borderRadius: "var(--stackflow-plugin-basic-ui-bottom-sheet-border-radius)" }, modal: { borderRadius: "var(--stackflow-plugin-basic-ui-bottom-sheet-border-radius)" } };
114
- var stackWrapper = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1q6dj2j2", variantClassNames: { theme: { android: "_1q6dj2j0", cupertino: "_1q6dj2j1" }, loading: { true: "_1q6dj2j5" } }, defaultVariants: {}, compoundVariants: [] });
115
113
 
116
- // src/utils/compact.ts
117
- function compact(arr) {
118
- return arr.filter(
119
- (item) => item !== void 0 && item !== null
120
- );
114
+ // src/components/RootStyles.ts
115
+ var import_react = require("react");
116
+ function RootStyles({ theme, styles }) {
117
+ (0, import_react.useLayoutEffect)(() => {
118
+ const root = document.querySelector(":root");
119
+ if (!root) {
120
+ return;
121
+ }
122
+ for (const [key, value] of Object.entries(styles)) {
123
+ if (value) {
124
+ root.style.setProperty(key, value);
125
+ }
126
+ }
127
+ root.dataset.stackflowPluginBasicUiTheme = theme;
128
+ }, [styles, theme]);
129
+ return null;
121
130
  }
122
131
 
123
132
  // src/utils/compactMap.ts
@@ -132,76 +141,68 @@ function compactMap(obj) {
132
141
 
133
142
  // src/basicUIPlugin.tsx
134
143
  var import_jsx_runtime3 = require("react/jsx-runtime");
135
- var GlobalOptionsContext = (0, import_react.createContext)({
144
+ var GlobalOptionsContext = (0, import_react2.createContext)({
136
145
  theme: "android"
137
146
  });
138
147
  var GlobalOptionsProvider = GlobalOptionsContext.Provider;
139
148
  function useGlobalOptions() {
140
- return (0, import_react.useContext)(GlobalOptionsContext);
149
+ return (0, import_react2.useContext)(GlobalOptionsContext);
141
150
  }
142
151
  var basicUIPlugin = (options) => () => ({
143
152
  key: "basic-ui",
144
153
  wrapStack({ stack, initialContext }) {
145
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
154
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
146
155
  const _options = typeof options === "function" ? options({ initialContext }) : options;
147
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
156
+ const styles = (0, import_dynamic.assignInlineVars)(
157
+ compactMap({
158
+ [globalVars.backgroundColor]: _options.backgroundColor,
159
+ [globalVars.dimBackgroundColor]: _options.dimBackgroundColor,
160
+ [globalVars.transitionDuration]: `${stack.transitionDuration}ms`,
161
+ [globalVars.computedTransitionDuration]: stack.globalTransitionState === "loading" ? `${stack.transitionDuration}ms` : "0ms",
162
+ [globalVars.appBar.borderColor]: (_a = _options.appBar) == null ? void 0 : _a.borderColor,
163
+ [globalVars.appBar.borderSize]: (_b = _options.appBar) == null ? void 0 : _b.borderSize,
164
+ [globalVars.appBar.height]: (_c = _options.appBar) == null ? void 0 : _c.height,
165
+ [globalVars.appBar.iconColor]: (_d = _options.appBar) == null ? void 0 : _d.iconColor,
166
+ [globalVars.appBar.textColor]: (_e = _options.appBar) == null ? void 0 : _e.textColor,
167
+ [globalVars.appBar.minSafeAreaInsetTop]: (_f = _options.appBar) == null ? void 0 : _f.minSafeAreaInsetTop,
168
+ [globalVars.bottomSheet.borderRadius]: (_g = _options.bottomSheet) == null ? void 0 : _g.borderRadius,
169
+ [globalVars.modal.borderRadius]: (_h = _options.modal) == null ? void 0 : _h.borderRadius
170
+ })
171
+ );
172
+ styles["pointer-events"] = stack.globalTransitionState === "loading" ? "none" : "auto";
173
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
148
174
  GlobalOptionsProvider,
149
175
  {
150
176
  value: __spreadProps(__spreadValues({}, options), {
151
- theme: (_a = initialContext == null ? void 0 : initialContext.theme) != null ? _a : _options.theme
177
+ theme: (_i = initialContext == null ? void 0 : initialContext.theme) != null ? _i : _options.theme
152
178
  }),
153
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
154
- "div",
155
- {
156
- className: compact([
157
- stackWrapper({
158
- theme: (_b = initialContext == null ? void 0 : initialContext.theme) != null ? _b : _options.theme,
159
- loading: stack.globalTransitionState === "loading"
160
- }),
161
- _options.rootClassName
162
- ]).join(" "),
163
- style: (0, import_dynamic.assignInlineVars)(
164
- compactMap({
165
- [globalVars.backgroundColor]: _options.backgroundColor,
166
- [globalVars.dimBackgroundColor]: _options.dimBackgroundColor,
167
- [globalVars.transitionDuration]: `${stack.transitionDuration}ms`,
168
- [globalVars.computedTransitionDuration]: stack.globalTransitionState === "loading" ? `${stack.transitionDuration}ms` : "0ms",
169
- [globalVars.appBar.borderColor]: (_c = _options.appBar) == null ? void 0 : _c.borderColor,
170
- [globalVars.appBar.borderSize]: (_d = _options.appBar) == null ? void 0 : _d.borderSize,
171
- [globalVars.appBar.height]: (_e = _options.appBar) == null ? void 0 : _e.height,
172
- [globalVars.appBar.iconColor]: (_f = _options.appBar) == null ? void 0 : _f.iconColor,
173
- [globalVars.appBar.textColor]: (_g = _options.appBar) == null ? void 0 : _g.textColor,
174
- [globalVars.appBar.minSafeAreaInsetTop]: (_h = _options.appBar) == null ? void 0 : _h.minSafeAreaInsetTop,
175
- [globalVars.bottomSheet.borderRadius]: (_i = _options.bottomSheet) == null ? void 0 : _i.borderRadius,
176
- [globalVars.modal.borderRadius]: (_j = _options.modal) == null ? void 0 : _j.borderRadius
177
- })
178
- ),
179
- children: stack.render()
180
- }
181
- )
179
+ children: [
180
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RootStyles, { theme: _options.theme, styles }),
181
+ stack.render()
182
+ ]
182
183
  }
183
184
  );
184
185
  }
185
186
  });
186
187
 
187
188
  // src/components/AppScreen.tsx
188
- var import_react4 = require("@stackflow/react");
189
+ var import_react5 = require("@stackflow/react");
189
190
  var import_dynamic3 = require("@vanilla-extract/dynamic");
190
- var import_react5 = require("react");
191
+ var import_react6 = require("react");
191
192
  var import_react_ui_core2 = require("@stackflow/react-ui-core");
192
193
 
193
194
  // src/components/AppBar.tsx
194
- var import_react2 = require("@stackflow/react");
195
+ var import_react3 = require("@stackflow/react");
195
196
  var import_dynamic2 = require("@vanilla-extract/dynamic");
196
- var import_react3 = require("react");
197
+ var import_react4 = require("react");
197
198
  var import_react_ui_core = require("@stackflow/react-ui-core");
198
199
 
199
200
  // src/components/AppBar.css.ts
200
- var import_createRuntimeFn2 = require("@vanilla-extract/recipes/createRuntimeFn");
201
- var appBar = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "_1yk3a452 dhthxq4 dhthxq0 dhthxqh _1dlf4348 _1yk3a451", variantClassNames: { border: { true: "_1yk3a453" }, modalPresentationStyle: { fullScreen: "_1yk3a454" }, activityEnterStyle: { slideInLeft: "_1yk3a455" } }, defaultVariants: {}, compoundVariants: [] });
201
+ var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
202
+ var appBar = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1yk3a452 dhthxq4 dhthxq0 dhthxqh _1dlf4348 _1yk3a451", variantClassNames: { border: { true: "_1yk3a453" }, modalPresentationStyle: { fullScreen: "_1yk3a454" }, activityEnterStyle: { slideInLeft: "_1yk3a455" } }, defaultVariants: {}, compoundVariants: [] });
202
203
  var backButton = "_1yk3a459 dhthxq9 dhthxq7 dhthxqb dhthxqf dhthxqi";
203
204
  var center = "dhthxq9 dhthxq7 dhthxq8 _1yk3a450";
204
- var centerMain = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "_1yk3a45c", variantClassNames: { hasLeft: { true: "_1yk3a45d" } }, defaultVariants: {}, compoundVariants: [] });
205
+ var centerMain = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1yk3a45c", variantClassNames: { hasLeft: { true: "_1yk3a45d" } }, defaultVariants: {}, compoundVariants: [] });
205
206
  var centerMainEdge = "_1yk3a45e dhthxqi dhthxq4 dhthxq2 dhthxqf";
206
207
  var centerText = "_1yk3a45f dhthxqc dhthxqd dhthxq0";
207
208
  var closeButton = "_1yk3a459 dhthxq9 dhthxq7 dhthxqb dhthxqf dhthxqi";
@@ -211,20 +212,20 @@ var right = "_1yk3a45g dhthxq9 dhthxq7 dhthxq1 dhthxq5 _1yk3a450";
211
212
  var safeArea = "_1yk3a456";
212
213
 
213
214
  // src/components/AppScreen.css.ts
214
- var import_createRuntimeFn3 = require("@vanilla-extract/recipes/createRuntimeFn");
215
- var appScreen = (0, import_createRuntimeFn3.createRuntimeFn)({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_1dlf434a", "enter-done": "_1dlf434b", "exit-active": "_1dlf434c", "exit-done": "_1dlf434d" } }, defaultVariants: {}, compoundVariants: [] });
215
+ var import_createRuntimeFn2 = require("@vanilla-extract/recipes/createRuntimeFn");
216
+ var appScreen = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_1dlf434a", "enter-done": "_1dlf434b", "exit-active": "_1dlf434c", "exit-done": "_1dlf434d" } }, defaultVariants: {}, compoundVariants: [] });
216
217
  var dim = "_1dlf434j dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 _1dlf4347 _1dlf4349";
217
- var edge = (0, import_createRuntimeFn3.createRuntimeFn)({ defaultClassName: "_1dlf434o dhthxq4 dhthxq2 dhthxq3 dhthxq1", variantClassNames: { hasAppBar: { true: "_1dlf434p" } }, defaultVariants: {}, compoundVariants: [] });
218
+ var edge = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "_1dlf434o dhthxq4 dhthxq2 dhthxq3 dhthxq1", variantClassNames: { hasAppBar: { true: "_1dlf434p" } }, defaultVariants: {}, compoundVariants: [] });
218
219
  var enterActive = "_1dlf434a";
219
220
  var enterDone = "_1dlf434b";
220
221
  var exitActive = "_1dlf434c";
221
222
  var exitDone = "_1dlf434d";
222
- var paper = (0, import_createRuntimeFn3.createRuntimeFn)({ defaultClassName: "_1dlf434k dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 _1dlf4348 _1dlf4349", variantClassNames: { hasAppBar: { true: "_1dlf434l dhthxqg" }, modalPresentationStyle: { fullScreen: "_1dlf434m" }, activityEnterStyle: { slideInLeft: "_1dlf434n" } }, defaultVariants: {}, compoundVariants: [] });
223
+ var paper = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "_1dlf434k dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 _1dlf4348 _1dlf4349", variantClassNames: { hasAppBar: { true: "_1dlf434l dhthxqg" }, modalPresentationStyle: { fullScreen: "_1dlf434m" }, activityEnterStyle: { slideInLeft: "_1dlf434n" } }, defaultVariants: {}, compoundVariants: [] });
223
224
  var vars = { transitionDuration: "var(--_1dlf4340)", zIndexes: { dim: "var(--_1dlf4341)", paper: "var(--_1dlf4342)", edge: "var(--_1dlf4343)", appBar: "var(--_1dlf4344)" }, appBar: { topMargin: "var(--_1dlf4345)", center: { mainWidth: "var(--_1dlf4346)" } } };
224
225
 
225
226
  // src/components/AppBar.tsx
226
227
  var import_jsx_runtime4 = require("react/jsx-runtime");
227
- var AppBar = (0, import_react3.forwardRef)(
228
+ var AppBar = (0, import_react4.forwardRef)(
228
229
  ({
229
230
  title,
230
231
  renderLeft,
@@ -250,12 +251,12 @@ var AppBar = (0, import_react3.forwardRef)(
250
251
  onTopClick
251
252
  }, ref) => {
252
253
  var _a, _b;
253
- const actions = (0, import_react2.useActions)();
254
+ const actions = (0, import_react3.useActions)();
254
255
  const activity = (0, import_react_ui_core.useNullableActivity)();
255
256
  const globalOptions = useGlobalOptions();
256
257
  const globalCloseButton = (_a = globalOptions.appBar) == null ? void 0 : _a.closeButton;
257
258
  const globalBackButton = (_b = globalOptions.appBar) == null ? void 0 : _b.backButton;
258
- const centerRef = (0, import_react3.useRef)(null);
259
+ const centerRef = (0, import_react4.useRef)(null);
259
260
  const { maxWidth } = (0, import_react_ui_core.useAppBarTitleMaxWidth)({
260
261
  outerRef: ref,
261
262
  innerRef: centerRef,
@@ -429,9 +430,9 @@ var AppBar_default = AppBar;
429
430
  var import_jsx_runtime5 = require("react/jsx-runtime");
430
431
  var OFFSET_PX_ANDROID = 32;
431
432
  var OFFSET_PX_CUPERTINO = 80;
432
- var Context = (0, import_react5.createContext)(null);
433
+ var Context = (0, import_react6.createContext)(null);
433
434
  function useAppScreen() {
434
- return (0, import_react5.useContext)(Context);
435
+ return (0, import_react6.useContext)(Context);
435
436
  }
436
437
  var AppScreen = ({
437
438
  backgroundColor,
@@ -446,12 +447,12 @@ var AppScreen = ({
446
447
  const globalOptions = useGlobalOptions();
447
448
  const activity = (0, import_react_ui_core2.useNullableActivity)();
448
449
  const mounted = (0, import_react_ui_core2.useMounted)();
449
- const { pop } = (0, import_react4.useActions)();
450
- const appScreenRef = (0, import_react5.useRef)(null);
451
- const dimRef = (0, import_react5.useRef)(null);
452
- const paperRef = (0, import_react5.useRef)(null);
453
- const edgeRef = (0, import_react5.useRef)(null);
454
- const appBarRef = (0, import_react5.useRef)(null);
450
+ const { pop } = (0, import_react5.useActions)();
451
+ const appScreenRef = (0, import_react6.useRef)(null);
452
+ const dimRef = (0, import_react6.useRef)(null);
453
+ const paperRef = (0, import_react6.useRef)(null);
454
+ const edgeRef = (0, import_react6.useRef)(null);
455
+ const appBarRef = (0, import_react6.useRef)(null);
455
456
  const modalPresentationStyle = globalOptions.theme === "cupertino" ? CUPERTINO_ONLY_modalPresentationStyle : void 0;
456
457
  const activityEnterStyle = globalOptions.theme === "android" ? ANDROID_ONLY_activityEnterStyle : void 0;
457
458
  const isSwipeBackPrevented = preventSwipeBack || modalPresentationStyle === "fullScreen";
@@ -541,7 +542,7 @@ var AppScreen = ({
541
542
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
542
543
  Context.Provider,
543
544
  {
544
- value: (0, import_react5.useMemo)(
545
+ value: (0, import_react6.useMemo)(
545
546
  () => ({
546
547
  scroll({ top }) {
547
548
  var _a2;
@@ -610,14 +611,14 @@ var AppScreen = ({
610
611
  var AppScreen_default = AppScreen;
611
612
 
612
613
  // src/components/BottomSheet.tsx
613
- var import_react6 = require("@stackflow/react");
614
+ var import_react7 = require("@stackflow/react");
614
615
  var import_dynamic4 = require("@vanilla-extract/dynamic");
615
- var import_react7 = require("react");
616
+ var import_react8 = require("react");
616
617
  var import_react_ui_core3 = require("@stackflow/react-ui-core");
617
618
 
618
619
  // src/components/BottomSheet.css.ts
619
- var import_createRuntimeFn4 = require("@vanilla-extract/recipes/createRuntimeFn");
620
- var container2 = (0, import_createRuntimeFn4.createRuntimeFn)({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_1ht38h04", "enter-done": "_1ht38h05", "exit-active": "_1ht38h06", "exit-done": "_1ht38h07" } }, defaultVariants: {}, compoundVariants: [] });
620
+ var import_createRuntimeFn3 = require("@vanilla-extract/recipes/createRuntimeFn");
621
+ var container2 = (0, import_createRuntimeFn3.createRuntimeFn)({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_1ht38h04", "enter-done": "_1ht38h05", "exit-active": "_1ht38h06", "exit-done": "_1ht38h07" } }, defaultVariants: {}, compoundVariants: [] });
621
622
  var dim2 = "_1ht38h0d dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc dhthxqa dhthxq7 _1ht38h03";
622
623
  var paper2 = "_1ht38h0e dhthxqc _1ht38h03";
623
624
  var vars2 = { transitionDuration: "var(--_1ht38h00)", zIndexes: { dim: "var(--_1ht38h01)", paper: "var(--_1ht38h02)" } };
@@ -634,9 +635,9 @@ var BottomSheet = ({
634
635
  }) => {
635
636
  var _a;
636
637
  const activity = (0, import_react_ui_core3.useNullableActivity)();
637
- const { pop } = (0, import_react6.useActions)();
638
- const containerRef = (0, import_react7.useRef)(null);
639
- const dimRef = (0, import_react7.useRef)(null);
638
+ const { pop } = (0, import_react7.useActions)();
639
+ const containerRef = (0, import_react8.useRef)(null);
640
+ const dimRef = (0, import_react8.useRef)(null);
640
641
  (0, import_react_ui_core3.useStyleEffect)({
641
642
  styleName: "hide",
642
643
  refs: [containerRef]
@@ -649,7 +650,7 @@ var BottomSheet = ({
649
650
  styleName: "swipe-back",
650
651
  refs: [dimRef]
651
652
  });
652
- const popLock = (0, import_react7.useRef)(false);
653
+ const popLock = (0, import_react8.useRef)(false);
653
654
  const onDimClick = (e) => {
654
655
  onOutsideClick == null ? void 0 : onOutsideClick(e);
655
656
  if (e.defaultPrevented) {
@@ -695,14 +696,14 @@ BottomSheet.displayName = "BottomSheet";
695
696
  var BottomSheet_default = BottomSheet;
696
697
 
697
698
  // src/components/Modal.tsx
698
- var import_react8 = require("@stackflow/react");
699
+ var import_react9 = require("@stackflow/react");
699
700
  var import_dynamic5 = require("@vanilla-extract/dynamic");
700
- var import_react9 = require("react");
701
+ var import_react10 = require("react");
701
702
  var import_react_ui_core4 = require("@stackflow/react-ui-core");
702
703
 
703
704
  // src/components/Modal.css.ts
704
- var import_createRuntimeFn5 = require("@vanilla-extract/recipes/createRuntimeFn");
705
- var container3 = (0, import_createRuntimeFn5.createRuntimeFn)({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_5ozg8c4", "enter-done": "_5ozg8c5", "exit-active": "_5ozg8c6", "exit-done": "_5ozg8c7" } }, defaultVariants: {}, compoundVariants: [] });
705
+ var import_createRuntimeFn4 = require("@vanilla-extract/recipes/createRuntimeFn");
706
+ var container3 = (0, import_createRuntimeFn4.createRuntimeFn)({ defaultClassName: "dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc", variantClassNames: { transitionState: { "enter-active": "_5ozg8c4", "enter-done": "_5ozg8c5", "exit-active": "_5ozg8c6", "exit-done": "_5ozg8c7" } }, defaultVariants: {}, compoundVariants: [] });
706
707
  var dim3 = "_5ozg8cd dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc dhthxq9 dhthxq7 dhthxqb _5ozg8c3";
707
708
  var paper3 = "_5ozg8ce dhthxqc _5ozg8c3";
708
709
  var vars3 = { transitionDuration: "var(--_5ozg8c0)", zIndexes: { dim: "var(--_5ozg8c1)", paper: "var(--_5ozg8c2)" } };
@@ -718,9 +719,9 @@ var Modal = ({
718
719
  }) => {
719
720
  var _a;
720
721
  const activity = (0, import_react_ui_core4.useNullableActivity)();
721
- const { pop } = (0, import_react8.useActions)();
722
- const containerRef = (0, import_react9.useRef)(null);
723
- const paperRef = (0, import_react9.useRef)(null);
722
+ const { pop } = (0, import_react9.useActions)();
723
+ const containerRef = (0, import_react10.useRef)(null);
724
+ const paperRef = (0, import_react10.useRef)(null);
724
725
  (0, import_react_ui_core4.useStyleEffect)({
725
726
  styleName: "hide",
726
727
  refs: [containerRef]
@@ -733,7 +734,7 @@ var Modal = ({
733
734
  styleName: "swipe-back",
734
735
  refs: [paperRef]
735
736
  });
736
- const popLock = (0, import_react9.useRef)(false);
737
+ const popLock = (0, import_react10.useRef)(false);
737
738
  const onDimClick = (e) => {
738
739
  onOutsideClick == null ? void 0 : onOutsideClick(e);
739
740
  if (e.defaultPrevented) {