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

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,27 +106,18 @@ var IconClose_default = IconClose;
106
106
 
107
107
  // src/basicUIPlugin.tsx
108
108
  var import_dynamic = require("@vanilla-extract/dynamic");
109
- var import_react2 = require("react");
109
+ var import_react = require("react");
110
110
 
111
111
  // src/basicUIPlugin.css.ts
112
+ var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
112
113
  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: [] });
113
115
 
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;
116
+ // src/utils/compact.ts
117
+ function compact(arr) {
118
+ return arr.filter(
119
+ (item) => item !== void 0 && item !== null
120
+ );
130
121
  }
131
122
 
132
123
  // src/utils/compactMap.ts
@@ -141,68 +132,76 @@ function compactMap(obj) {
141
132
 
142
133
  // src/basicUIPlugin.tsx
143
134
  var import_jsx_runtime3 = require("react/jsx-runtime");
144
- var GlobalOptionsContext = (0, import_react2.createContext)({
135
+ var GlobalOptionsContext = (0, import_react.createContext)({
145
136
  theme: "android"
146
137
  });
147
138
  var GlobalOptionsProvider = GlobalOptionsContext.Provider;
148
139
  function useGlobalOptions() {
149
- return (0, import_react2.useContext)(GlobalOptionsContext);
140
+ return (0, import_react.useContext)(GlobalOptionsContext);
150
141
  }
151
142
  var basicUIPlugin = (options) => () => ({
152
143
  key: "basic-ui",
153
144
  wrapStack({ stack, initialContext }) {
154
- var _a, _b, _c, _d, _e, _f, _g, _h, _i;
145
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
155
146
  const _options = typeof options === "function" ? options({ initialContext }) : options;
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)(
147
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
174
148
  GlobalOptionsProvider,
175
149
  {
176
150
  value: __spreadProps(__spreadValues({}, options), {
177
- theme: (_i = initialContext == null ? void 0 : initialContext.theme) != null ? _i : _options.theme
151
+ theme: (_a = initialContext == null ? void 0 : initialContext.theme) != null ? _a : _options.theme
178
152
  }),
179
- children: [
180
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RootStyles, { theme: _options.theme, styles }),
181
- stack.render()
182
- ]
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
+ )
183
182
  }
184
183
  );
185
184
  }
186
185
  });
187
186
 
188
187
  // src/components/AppScreen.tsx
189
- var import_react5 = require("@stackflow/react");
188
+ var import_react4 = require("@stackflow/react");
190
189
  var import_dynamic3 = require("@vanilla-extract/dynamic");
191
- var import_react6 = require("react");
190
+ var import_react5 = require("react");
192
191
  var import_react_ui_core2 = require("@stackflow/react-ui-core");
193
192
 
194
193
  // src/components/AppBar.tsx
195
- var import_react3 = require("@stackflow/react");
194
+ var import_react2 = require("@stackflow/react");
196
195
  var import_dynamic2 = require("@vanilla-extract/dynamic");
197
- var import_react4 = require("react");
196
+ var import_react3 = require("react");
198
197
  var import_react_ui_core = require("@stackflow/react-ui-core");
199
198
 
200
199
  // src/components/AppBar.css.ts
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: [] });
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: [] });
203
202
  var backButton = "_1yk3a459 dhthxq9 dhthxq7 dhthxqb dhthxqf dhthxqi";
204
203
  var center = "dhthxq9 dhthxq7 dhthxq8 _1yk3a450";
205
- var centerMain = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1yk3a45c", variantClassNames: { hasLeft: { true: "_1yk3a45d" } }, defaultVariants: {}, compoundVariants: [] });
204
+ var centerMain = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "_1yk3a45c", variantClassNames: { hasLeft: { true: "_1yk3a45d" } }, defaultVariants: {}, compoundVariants: [] });
206
205
  var centerMainEdge = "_1yk3a45e dhthxqi dhthxq4 dhthxq2 dhthxqf";
207
206
  var centerText = "_1yk3a45f dhthxqc dhthxqd dhthxq0";
208
207
  var closeButton = "_1yk3a459 dhthxq9 dhthxq7 dhthxqb dhthxqf dhthxqi";
@@ -212,20 +211,20 @@ var right = "_1yk3a45g dhthxq9 dhthxq7 dhthxq1 dhthxq5 _1yk3a450";
212
211
  var safeArea = "_1yk3a456";
213
212
 
214
213
  // src/components/AppScreen.css.ts
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: [] });
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: [] });
217
216
  var dim = "_1dlf434j dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 _1dlf4347 _1dlf4349";
218
- var edge = (0, import_createRuntimeFn2.createRuntimeFn)({ defaultClassName: "_1dlf434o dhthxq4 dhthxq2 dhthxq3 dhthxq1", variantClassNames: { hasAppBar: { true: "_1dlf434p" } }, defaultVariants: {}, compoundVariants: [] });
217
+ var edge = (0, import_createRuntimeFn3.createRuntimeFn)({ defaultClassName: "_1dlf434o dhthxq4 dhthxq2 dhthxq3 dhthxq1", variantClassNames: { hasAppBar: { true: "_1dlf434p" } }, defaultVariants: {}, compoundVariants: [] });
219
218
  var enterActive = "_1dlf434a";
220
219
  var enterDone = "_1dlf434b";
221
220
  var exitActive = "_1dlf434c";
222
221
  var exitDone = "_1dlf434d";
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: [] });
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: [] });
224
223
  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)" } } };
225
224
 
226
225
  // src/components/AppBar.tsx
227
226
  var import_jsx_runtime4 = require("react/jsx-runtime");
228
- var AppBar = (0, import_react4.forwardRef)(
227
+ var AppBar = (0, import_react3.forwardRef)(
229
228
  ({
230
229
  title,
231
230
  renderLeft,
@@ -251,12 +250,12 @@ var AppBar = (0, import_react4.forwardRef)(
251
250
  onTopClick
252
251
  }, ref) => {
253
252
  var _a, _b;
254
- const actions = (0, import_react3.useActions)();
253
+ const actions = (0, import_react2.useActions)();
255
254
  const activity = (0, import_react_ui_core.useNullableActivity)();
256
255
  const globalOptions = useGlobalOptions();
257
256
  const globalCloseButton = (_a = globalOptions.appBar) == null ? void 0 : _a.closeButton;
258
257
  const globalBackButton = (_b = globalOptions.appBar) == null ? void 0 : _b.backButton;
259
- const centerRef = (0, import_react4.useRef)(null);
258
+ const centerRef = (0, import_react3.useRef)(null);
260
259
  const { maxWidth } = (0, import_react_ui_core.useAppBarTitleMaxWidth)({
261
260
  outerRef: ref,
262
261
  innerRef: centerRef,
@@ -430,9 +429,9 @@ var AppBar_default = AppBar;
430
429
  var import_jsx_runtime5 = require("react/jsx-runtime");
431
430
  var OFFSET_PX_ANDROID = 32;
432
431
  var OFFSET_PX_CUPERTINO = 80;
433
- var Context = (0, import_react6.createContext)(null);
432
+ var Context = (0, import_react5.createContext)(null);
434
433
  function useAppScreen() {
435
- return (0, import_react6.useContext)(Context);
434
+ return (0, import_react5.useContext)(Context);
436
435
  }
437
436
  var AppScreen = ({
438
437
  backgroundColor,
@@ -447,12 +446,12 @@ var AppScreen = ({
447
446
  const globalOptions = useGlobalOptions();
448
447
  const activity = (0, import_react_ui_core2.useNullableActivity)();
449
448
  const mounted = (0, import_react_ui_core2.useMounted)();
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);
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);
456
455
  const modalPresentationStyle = globalOptions.theme === "cupertino" ? CUPERTINO_ONLY_modalPresentationStyle : void 0;
457
456
  const activityEnterStyle = globalOptions.theme === "android" ? ANDROID_ONLY_activityEnterStyle : void 0;
458
457
  const isSwipeBackPrevented = preventSwipeBack || modalPresentationStyle === "fullScreen";
@@ -542,7 +541,7 @@ var AppScreen = ({
542
541
  return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
543
542
  Context.Provider,
544
543
  {
545
- value: (0, import_react6.useMemo)(
544
+ value: (0, import_react5.useMemo)(
546
545
  () => ({
547
546
  scroll({ top }) {
548
547
  var _a2;
@@ -611,14 +610,14 @@ var AppScreen = ({
611
610
  var AppScreen_default = AppScreen;
612
611
 
613
612
  // src/components/BottomSheet.tsx
614
- var import_react7 = require("@stackflow/react");
613
+ var import_react6 = require("@stackflow/react");
615
614
  var import_dynamic4 = require("@vanilla-extract/dynamic");
616
- var import_react8 = require("react");
615
+ var import_react7 = require("react");
617
616
  var import_react_ui_core3 = require("@stackflow/react-ui-core");
618
617
 
619
618
  // src/components/BottomSheet.css.ts
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: [] });
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: [] });
622
621
  var dim2 = "_1ht38h0d dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc dhthxqa dhthxq7 _1ht38h03";
623
622
  var paper2 = "_1ht38h0e dhthxqc _1ht38h03";
624
623
  var vars2 = { transitionDuration: "var(--_1ht38h00)", zIndexes: { dim: "var(--_1ht38h01)", paper: "var(--_1ht38h02)" } };
@@ -635,9 +634,9 @@ var BottomSheet = ({
635
634
  }) => {
636
635
  var _a;
637
636
  const activity = (0, import_react_ui_core3.useNullableActivity)();
638
- const { pop } = (0, import_react7.useActions)();
639
- const containerRef = (0, import_react8.useRef)(null);
640
- const dimRef = (0, import_react8.useRef)(null);
637
+ const { pop } = (0, import_react6.useActions)();
638
+ const containerRef = (0, import_react7.useRef)(null);
639
+ const dimRef = (0, import_react7.useRef)(null);
641
640
  (0, import_react_ui_core3.useStyleEffect)({
642
641
  styleName: "hide",
643
642
  refs: [containerRef]
@@ -650,7 +649,7 @@ var BottomSheet = ({
650
649
  styleName: "swipe-back",
651
650
  refs: [dimRef]
652
651
  });
653
- const popLock = (0, import_react8.useRef)(false);
652
+ const popLock = (0, import_react7.useRef)(false);
654
653
  const onDimClick = (e) => {
655
654
  onOutsideClick == null ? void 0 : onOutsideClick(e);
656
655
  if (e.defaultPrevented) {
@@ -696,14 +695,14 @@ BottomSheet.displayName = "BottomSheet";
696
695
  var BottomSheet_default = BottomSheet;
697
696
 
698
697
  // src/components/Modal.tsx
699
- var import_react9 = require("@stackflow/react");
698
+ var import_react8 = require("@stackflow/react");
700
699
  var import_dynamic5 = require("@vanilla-extract/dynamic");
701
- var import_react10 = require("react");
700
+ var import_react9 = require("react");
702
701
  var import_react_ui_core4 = require("@stackflow/react-ui-core");
703
702
 
704
703
  // src/components/Modal.css.ts
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: [] });
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: [] });
707
706
  var dim3 = "_5ozg8cd dhthxq4 dhthxq0 dhthxq1 dhthxq2 dhthxq3 dhthxqc dhthxq9 dhthxq7 dhthxqb _5ozg8c3";
708
707
  var paper3 = "_5ozg8ce dhthxqc _5ozg8c3";
709
708
  var vars3 = { transitionDuration: "var(--_5ozg8c0)", zIndexes: { dim: "var(--_5ozg8c1)", paper: "var(--_5ozg8c2)" } };
@@ -719,9 +718,9 @@ var Modal = ({
719
718
  }) => {
720
719
  var _a;
721
720
  const activity = (0, import_react_ui_core4.useNullableActivity)();
722
- const { pop } = (0, import_react9.useActions)();
723
- const containerRef = (0, import_react10.useRef)(null);
724
- const paperRef = (0, import_react10.useRef)(null);
721
+ const { pop } = (0, import_react8.useActions)();
722
+ const containerRef = (0, import_react9.useRef)(null);
723
+ const paperRef = (0, import_react9.useRef)(null);
725
724
  (0, import_react_ui_core4.useStyleEffect)({
726
725
  styleName: "hide",
727
726
  refs: [containerRef]
@@ -734,7 +733,7 @@ var Modal = ({
734
733
  styleName: "swipe-back",
735
734
  refs: [paperRef]
736
735
  });
737
- const popLock = (0, import_react10.useRef)(false);
736
+ const popLock = (0, import_react9.useRef)(false);
738
737
  const onDimClick = (e) => {
739
738
  onOutsideClick == null ? void 0 : onOutsideClick(e);
740
739
  if (e.defaultPrevented) {