@homebound/beam 2.317.0 → 2.317.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.
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ModalFooter = exports.ModalBody = exports.ModalHeader = exports.Modal = void 0;
4
4
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
- const form_state_1 = require("@homebound/form-state");
6
5
  const utils_1 = require("@react-aria/utils");
7
6
  const react_1 = require("react");
8
7
  const react_aria_1 = require("react-aria");
9
8
  const react_dom_1 = require("react-dom");
9
+ const components_1 = require("..");
10
10
  const BeamContext_1 = require("../BeamContext");
11
11
  const IconButton_1 = require("../IconButton");
12
12
  const useModal_1 = require("./useModal");
@@ -61,7 +61,7 @@ function Modal(props) {
61
61
  modalBodyRef.current.appendChild(modalBodyDiv);
62
62
  modalFooterRef.current.appendChild(modalFooterDiv);
63
63
  }, [modalBodyRef, modalFooterRef, modalHeaderRef]);
64
- return ((0, jsx_runtime_1.jsx)(react_aria_1.OverlayContainer, { children: (0, jsx_runtime_1.jsx)(form_state_1.AutoSaveStatusProvider, { children: (0, jsx_runtime_1.jsx)("div", { css: Css_1.Css.underlay.z4.$, ...underlayProps, ...testId.underlay, children: (0, jsx_runtime_1.jsx)(react_aria_1.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: (0, jsx_runtime_1.jsxs)("div", { css: Css_1.Css.br24.bgWhite.bshModal.overflowHidden
64
+ return ((0, jsx_runtime_1.jsx)(react_aria_1.OverlayContainer, { children: (0, jsx_runtime_1.jsx)(components_1.AutoSaveStatusProvider, { children: (0, jsx_runtime_1.jsx)("div", { css: Css_1.Css.underlay.z4.$, ...underlayProps, ...testId.underlay, children: (0, jsx_runtime_1.jsx)(react_aria_1.FocusScope, { contain: true, restoreFocus: true, autoFocus: true, children: (0, jsx_runtime_1.jsxs)("div", { css: Css_1.Css.br24.bgWhite.bshModal.overflowHidden
65
65
  .maxh("90vh")
66
66
  .df.fdc.wPx(width)
67
67
  .mhPx(defaultMinHeight)
@@ -4,7 +4,6 @@ exports.SuperDrawer = void 0;
4
4
  const react_1 = require("@emotion/react");
5
5
  const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
6
6
  const react_2 = require("@emotion/react");
7
- const form_state_1 = require("@homebound/form-state");
8
7
  const framer_motion_1 = require("framer-motion");
9
8
  const react_3 = require("react");
10
9
  const react_dom_1 = require("react-dom");
@@ -72,6 +71,6 @@ function SuperDrawer() {
72
71
  // Custom transitions settings for the translateX animation
73
72
  transition: { ease: "linear", duration: 0.2, delay: 0.2 }, exit: { transition: { ease: "linear", duration: 0.2 }, x: width },
74
73
  // Preventing clicks from triggering parent onClick
75
- onClick: (e) => e.stopPropagation(), children: (0, jsx_runtime_1.jsxs)(form_state_1.AutoSaveStatusProvider, { children: [(0, jsx_runtime_1.jsxs)("header", { css: Css_1.Css.p3.bb.bGray200.df.aic.jcsb.gap3.$, children: [(0, jsx_runtime_1.jsx)("div", { ref: headerRef, css: Css_1.Css.gray900.fg1.addIn("h1", Css_1.Css.xl2Sb.$).$ }), (0, jsx_runtime_1.jsx)(components_1.IconButton, { icon: "x", onClick: closeDrawer, ...testId.close })] }), content] }) }, "superDrawerContainer"))] })) }), document.body);
74
+ onClick: (e) => e.stopPropagation(), children: (0, jsx_runtime_1.jsxs)(components_1.AutoSaveStatusProvider, { children: [(0, jsx_runtime_1.jsxs)("header", { css: Css_1.Css.p3.bb.bGray200.df.aic.jcsb.gap3.$, children: [(0, jsx_runtime_1.jsx)("div", { ref: headerRef, css: Css_1.Css.gray900.fg1.addIn("h1", Css_1.Css.xl2Sb.$).$ }), (0, jsx_runtime_1.jsx)(components_1.IconButton, { icon: "x", onClick: closeDrawer, ...testId.close })] }), content] }) }, "superDrawerContainer"))] })) }), document.body);
76
75
  }
77
76
  exports.SuperDrawer = SuperDrawer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.317.0",
3
+ "version": "2.317.2",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "format": "prettier --loglevel warn --write \"**/*.{ts,tsx,css,md,mdx}\""
34
34
  },
35
35
  "dependencies": {
36
- "@homebound/form-state": "^2.17.0",
36
+ "@homebound/form-state": "^2.20.1",
37
37
  "@internationalized/number": "^3.0.3",
38
38
  "@popperjs/core": "^2.11.6",
39
39
  "@react-aria/utils": "^3.18.0",
@@ -116,8 +116,8 @@
116
116
  "jest-chain": "^1.1.6",
117
117
  "jest-environment-jsdom": "^29.4.3",
118
118
  "jest-watch-typeahead": "^2.2.2",
119
- "mobx": "^6.8.0",
120
- "mobx-react": "^7.6.0",
119
+ "mobx": "^6.10.2",
120
+ "mobx-react": "^9.0.1",
121
121
  "prettier": "^2.8.4",
122
122
  "prettier-plugin-organize-imports": "^3.2.2",
123
123
  "react": "^18.2.0",