@homebound/beam 2.369.1 → 2.369.3

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.
@@ -103,7 +103,6 @@ export declare const Icons: {
103
103
  openBook: import("@emotion/react/jsx-runtime").JSX.Element;
104
104
  inbox: import("@emotion/react/jsx-runtime").JSX.Element;
105
105
  criticalPath: import("@emotion/react/jsx-runtime").JSX.Element;
106
- calendarError: import("@emotion/react/jsx-runtime").JSX.Element;
107
106
  nested: import("@emotion/react/jsx-runtime").JSX.Element;
108
107
  estimate: import("@emotion/react/jsx-runtime").JSX.Element;
109
108
  commentItem: import("@emotion/react/jsx-runtime").JSX.Element;
@@ -120,6 +119,8 @@ export declare const Icons: {
120
119
  dollar: import("@emotion/react/jsx-runtime").JSX.Element;
121
120
  userCircle: import("@emotion/react/jsx-runtime").JSX.Element;
122
121
  calendar: import("@emotion/react/jsx-runtime").JSX.Element;
122
+ calendarError: import("@emotion/react/jsx-runtime").JSX.Element;
123
+ calendarX: import("@emotion/react/jsx-runtime").JSX.Element;
123
124
  changeEvent: import("@emotion/react/jsx-runtime").JSX.Element;
124
125
  buildingHouse: import("@emotion/react/jsx-runtime").JSX.Element;
125
126
  house: import("@emotion/react/jsx-runtime").JSX.Element;
@@ -102,7 +102,7 @@ exports.Icons = {
102
102
  subDirectoryRight: (0, jsx_runtime_1.jsx)("path", { d: "M14 13H8V5H6V14C6 14.553 6.447 15 7 15H14V18L19 14L14 10V13Z" }),
103
103
  // Media
104
104
  camera: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M12 8C9.832 8 8 9.832 8 12C8 14.168 9.832 16 12 16C14.168 16 16 14.168 16 12C16 9.832 14.168 8 12 8ZM12 14C10.935 14 10 13.065 10 12C10 10.935 10.935 10 12 10C13.065 10 14 10.935 14 12C14 13.065 13.065 14 12 14Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M20 5H17.414L14.707 2.293C14.52 2.105 14.266 2 14 2H10C9.734 2 9.48 2.105 9.293 2.293L6.586 5H4C2.897 5 2 5.897 2 7V18C2 19.103 2.897 20 4 20H20C21.103 20 22 19.103 22 18V7C22 5.897 21.103 5 20 5ZM4 18V7H7C7.266 7 7.52 6.895 7.707 6.707L10.414 4H13.586L16.293 6.707C16.48 6.895 16.734 7 17 7H20L20.002 18H4Z" })] })),
105
- email: ((0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", "clip-rule": "evenodd", d: "M19.7885 7.82129L11.9381 14.1015L4.13462 7.41281V18.0529H19.7885V7.82129ZM5.92342 6.13462L11.9851 11.3303L18.4797 6.13462H5.92342ZM2 20.1875V4H21.9231V6.02293L21.9673 6.07821L21.9231 6.11359V20.1875H2Z" })),
105
+ email: ((0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M19.7885 7.82129L11.9381 14.1015L4.13462 7.41281V18.0529H19.7885V7.82129ZM5.92342 6.13462L11.9851 11.3303L18.4797 6.13462H5.92342ZM2 20.1875V4H21.9231V6.02293L21.9673 6.07821L21.9231 6.11359V20.1875H2Z" })),
106
106
  fileBlank: ((0, jsx_runtime_1.jsx)("path", { d: "M19.937 8.68C19.926 8.648 19.917 8.617 19.904 8.586C19.855 8.48 19.794 8.379 19.708 8.293L13.708 2.293C13.622 2.207 13.521 2.146 13.415 2.097C13.385 2.083 13.353 2.075 13.321 2.064C13.237 2.036 13.151 2.018 13.062 2.013C13.04 2.011 13.021 2 13 2H6C4.897 2 4 2.897 4 4V20C4 21.103 4.897 22 6 22H18C19.103 22 20 21.103 20 20V9C20 8.979 19.989 8.96 19.987 8.938C19.982 8.85 19.965 8.764 19.937 8.68ZM16.586 8H14V5.414L16.586 8ZM6 20V4H12V9C12 9.553 12.447 10 13 10H18L18.002 20H6Z" })),
107
107
  folder: ((0, jsx_runtime_1.jsx)("path", { d: "M20 5H11.414L9.707 3.293C9.52 3.105 9.265 3 9 3H4C2.897 3 2 3.897 2 5V19C2 20.103 2.897 21 4 21H20C21.103 21 22 20.103 22 19V7C22 5.897 21.103 5 20 5ZM4 19V7H11H12H20L20.002 19H4Z" })),
108
108
  image: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M7.49902 11C8.32745 11 8.99902 10.3284 8.99902 9.5C8.99902 8.67157 8.32745 8 7.49902 8C6.6706 8 5.99902 8.67157 5.99902 9.5C5.99902 10.3284 6.6706 11 7.49902 11Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M10.499 14L8.99902 12L5.99902 16H8.99902H11.999H17.999L13.499 10L10.499 14Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M19.999 4H3.99902C2.89602 4 1.99902 4.897 1.99902 6V18C1.99902 19.103 2.89602 20 3.99902 20H19.999C21.102 20 21.999 19.103 21.999 18V6C21.999 4.897 21.102 4 19.999 4ZM3.99902 18V6H19.999L20.001 18H3.99902Z" })] })),
@@ -112,7 +112,6 @@ exports.Icons = {
112
112
  // Misc
113
113
  inbox: ((0, jsx_runtime_1.jsx)("path", { d: "M20 3H4C2.897 3 2 3.897 2 5V13V14V19C2 20.104 2.896 21 4 21H20C21.104 21 22 20.104 22 19V14V13V5C22 3.897 21.103 3 20 3ZM19 12H16H15.858C15.412 13.722 13.861 15 12 15C10.139 15 8.588 13.722 8.142 12H8H4V5H20V12H19Z" })),
114
114
  criticalPath: ((0, jsx_runtime_1.jsx)("path", { d: "M6.5 20H14.844C15.2 20.753 15.636 21.422 16.093 22H6.5C4.019 22 2 19.981 2 17.5C2 15.019 4.019 13 6.5 13H13.5C14.327 13 15 12.327 15 11.5C15 10.673 14.327 10 13.5 10H7.285C7.771 9.443 8.248 8.771 8.639 8H13.5C15.43 8 17 9.57 17 11.5C17 13.43 15.43 15 13.5 15H6.5C5.121 15 4 16.121 4 17.5C4 18.879 5.121 20 6.5 20ZM2 5C2 3.346 3.346 2 5 2C6.654 2 8 3.346 8 5C8 8.187 5 10 5 10C5 10 2 8.188 2 5ZM3.5 5C3.5 5.828 4.172 6.5 5 6.5C5.828 6.5 6.5 5.828 6.5 5C6.5 4.172 5.828 3.5 5 3.5C4.172 3.5 3.5 4.172 3.5 5ZM16 17C16 15.346 17.346 14 19 14C20.654 14 22 15.346 22 17C22 20.187 19 22 19 22C19 22 16 20.188 16 17ZM17.5 17C17.5 17.828 18.172 18.5 19 18.5C19.828 18.5 20.5 17.828 20.5 17C20.5 16.172 19.828 15.5 19 15.5C18.172 15.5 17.5 16.172 17.5 17Z" })),
115
- calendarError: ((0, jsx_runtime_1.jsx)("path", { d: "M2.99902 8V6C2.99902 4.897 3.89602 4 4.99902 4H6.99902V2H8.99902V4H14.999V2H16.999V4H18.999C20.102 4 20.999 4.897 20.999 6V8V20C20.999 21.103 20.102 22 18.999 22H4.99902C3.89602 22 2.99902 21.103 2.99902 20V8ZM4.99902 20H19.001L18.999 7H4.99902V20ZM13 9H11V15H13V9ZM13 16H11V18H13V16Z" })),
116
115
  nested: (0, jsx_runtime_1.jsx)("path", { d: "M7 6.99994V16.3333L16.3333 16.3333V14.3333H9L9 6.99994H7Z" }),
117
116
  estimate: ((0, jsx_runtime_1.jsx)("path", { d: "M11.4409 2.01586C5.9355 2.32427 1.70744 7.05416 2.01585 12.5595C2.03847 12.9633 2.08488 13.3602 2.15363 13.749L0 14.6172L4.55475 16.5548L6.49234 12L4.06026 12.9804C4.03868 12.8046 4.02277 12.627 4.01272 12.4477C3.766 8.04357 7.14864 4.25944 11.5527 4.01273C13.5759 3.89938 15.4683 4.55199 16.947 5.71769L17.9477 3.96644C16.1361 2.62291 13.8636 1.88014 11.4409 2.01586ZM12 11C10 11 10 10.374 10 9.99996C10 9.51596 10.701 8.99996 12 8.99996C13.185 8.99996 13.386 9.63796 13.4 10.018L14.4 9.99996H15.4C15.4 8.97396 14.734 7.53096 13 7.12096V6.01196H11V7.08496C9.029 7.41596 8 8.71196 8 9.99996C8 11.12 8.52 13 12 13C14 13 14 13.676 14 14C14 14.415 13.38 15 12 15C10.159 15 10.011 14.143 10 14H8C8 14.918 8.661 16.553 11 16.92V18H13V16.915C14.971 16.584 16 15.288 16 14C16 12.88 15.48 11 12 11ZM21.9318 10.9952C22.2403 16.5005 18.0122 21.2304 12.5068 21.5388C10.0841 21.6746 7.81163 20.9318 5.99999 19.5882L7.00071 17.837C8.47939 19.0027 10.3718 19.6553 12.395 19.542C16.7991 19.2952 20.1817 15.5111 19.935 11.107C19.9249 10.9277 19.909 10.75 19.8874 10.5743L17.4554 11.5547L19.3929 6.99994L23.9477 8.93752L21.7941 9.80568C21.8628 10.1944 21.9092 10.5914 21.9318 10.9952Z" })),
118
117
  commentItem: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M5.33333 7.18518C5.33333 6.57153 5.75973 6.07407 6.28571 6.07407H17.7143C18.2403 6.07407 18.6667 6.57153 18.6667 7.18518C18.6667 7.79883 18.2403 8.29629 17.7143 8.29629H6.28571C5.75973 8.29629 5.33333 7.79883 5.33333 7.18518Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M5.33333 10.8889C5.33333 10.2752 5.75973 9.77777 6.28571 9.77777H17.7143C18.2403 9.77777 18.6667 10.2752 18.6667 10.8889C18.6667 11.5025 18.2403 12 17.7143 12H6.28571C5.75973 12 5.33333 11.5025 5.33333 10.8889Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M3.11111 2C2.81643 2 2.53381 2.11706 2.32544 2.32544C2.11706 2.53381 2 2.81643 2 3.11111V15.7037C2 16.3173 2.49746 16.8148 3.11111 16.8148H11.5825L17.1942 21.7251C17.5223 22.0122 17.988 22.0808 18.385 21.9007C18.7821 21.7205 19.037 21.3248 19.037 20.8889V16.8148H20.8889C21.5025 16.8148 22 16.3173 22 15.7037V3.11111C22 2.49746 21.5025 2 20.8889 2H3.11111ZM4.22222 14.5926V4.22222H19.7778V14.5926H17.9259C17.3123 14.5926 16.8148 15.09 16.8148 15.7037V18.4402L12.7317 14.8675C12.5291 14.6903 12.2691 14.5926 12 14.5926H4.22222Z" })] })),
@@ -129,6 +128,8 @@ exports.Icons = {
129
128
  dollar: ((0, jsx_runtime_1.jsx)("path", { d: "M15.999 8.5H17.999C17.999 5.663 15.244 4.369 12.999 4.071V2H10.999V4.071C8.75402 4.369 5.99902 5.663 5.99902 8.5C5.99902 11.206 8.66502 12.613 10.999 12.93V17.9C9.55102 17.649 7.99902 16.876 7.99902 15.5H5.99902C5.99902 18.089 8.42402 19.619 10.999 19.936V20.999V22H12.999V20.999V19.93C15.244 19.632 17.999 18.337 17.999 15.5C17.999 12.663 15.244 11.369 12.999 11.071V6.1C14.329 6.339 15.999 7.041 15.999 8.5ZM7.99902 8.5C7.99902 7.041 9.66902 6.339 10.999 6.1V10.899C9.62802 10.646 7.99902 9.897 7.99902 8.5ZM15.999 15.5C15.999 16.959 14.329 17.661 12.999 17.9V13.1C14.329 13.339 15.999 14.041 15.999 15.5Z" })),
130
129
  userCircle: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M12 2C6.579 2 2 6.579 2 12C2 15.189 3.592 18.078 6 19.924V20H6.102C7.77 21.245 9.813 22 12 22C14.187 22 16.23 21.245 17.898 20H18V19.924C20.408 18.078 22 15.19 22 12C22 6.579 17.421 2 12 2ZM8.074 18.927C8.371 17.582 9.568 16.573 11 16.573H13C14.432 16.573 15.629 17.583 15.926 18.927C14.758 19.604 13.416 20 12 20C10.584 20 9.242 19.604 8.074 18.927ZM17.61 17.641C16.853 15.841 15.072 14.573 13 14.573H11C8.928 14.573 7.146 15.842 6.39 17.641C4.923 16.182 4 14.176 4 12C4 7.663 7.663 4 12 4C16.337 4 20 7.663 20 12C20 14.176 19.077 16.182 17.61 17.641Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M12 6C9.72 6 8 7.72 8 10C8 12.28 9.72 14 12 14C14.28 14 16 12.28 16 10C16 7.72 14.28 6 12 6ZM12 12C10.822 12 10 11.178 10 10C10 8.822 10.822 8 12 8C13.178 8 14 8.822 14 10C14 11.178 13.178 12 12 12Z" })] })),
131
130
  calendar: ((0, jsx_runtime_1.jsx)("path", { d: "M2.99902 6V8V20C2.99902 21.103 3.89602 22 4.99902 22H18.999C20.102 22 20.999 21.103 20.999 20V8V6C20.999 4.897 20.102 4 18.999 4H16.999V2H14.999V4H8.99902V2H6.99902V4H4.99902C3.89602 4 2.99902 4.897 2.99902 6ZM19.001 20H4.99902V8H18.999L19.001 20Z" })),
131
+ calendarError: ((0, jsx_runtime_1.jsx)("path", { d: "M2.99902 8V6C2.99902 4.897 3.89602 4 4.99902 4H6.99902V2H8.99902V4H14.999V2H16.999V4H18.999C20.102 4 20.999 4.897 20.999 6V8V20C20.999 21.103 20.102 22 18.999 22H4.99902C3.89602 22 2.99902 21.103 2.99902 20V8ZM4.99902 20H19.001L18.999 7H4.99902V20ZM13 9H11V15H13V9ZM13 16H11V18H13V16Z" })),
132
+ calendarX: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M8.293 16.293L9.707 17.707L12 15.414L14.293 17.707L15.707 16.293L13.414 14L15.707 11.707L14.293 10.293L12 12.586L9.707 10.293L8.293 11.707L10.586 14L8.293 16.293Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M19 4H17V2H15V4H9V2H7V4H5C3.897 4 3 4.897 3 6V8V20C3 21.103 3.897 22 5 22H19C20.103 22 21 21.103 21 20V8V6C21 4.897 20.103 4 19 4ZM19.002 20H5V8H19L19.002 20Z" })] })),
132
133
  changeEvent: ((0, jsx_runtime_1.jsx)("path", { d: "M4 16.5262H6.28841L9.94864 12.4999L6.28841 8.47368H4V6.68421H7.08002L16.0274 16.5263H17.4211V13.842L21 17.4209L17.4211 20.9999V18.3158H15.2358L11.1578 13.8301L7.08002 18.3157H4V16.5262ZM13.36 11.4077L12.1508 10.0776L15.2358 6.68409H17.4211V4L21 7.57895L17.4211 11.1579V8.47357H16.0274L13.36 11.4077Z" })),
133
134
  buildingHouse: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M19.0002 2.00002H9.00019C7.89719 2.00002 7.00019 2.89702 7.00019 4.00002V9.58602L2.29319 14.293C2.00719 14.579 1.92119 15.009 2.07619 15.383C2.23119 15.757 2.59619 16 3.00019 16V17V21C3.00019 21.553 3.44819 22 4.00019 22H12.0002H20.0002C20.5532 22 21.0002 21.553 21.0002 21V4.00002C21.0002 2.89702 20.1032 2.00002 19.0002 2.00002ZM11.0002 20H5.00019V17V15V14.414L8.00019 11.414L11.0002 14.414V15V18V20ZM19.0002 20H13.0002V18V16C13.4042 16 13.7702 15.757 13.9242 15.383C14.0792 15.009 13.9932 14.579 13.7072 14.293L9.00019 9.58602V4.00002H19.0002V20Z" }), (0, jsx_runtime_1.jsx)("path", { d: "M11 6.00002H13V8.00002H11V6.00002ZM15 6.00002H17V8.00002H15V6.00002ZM15 10.031H17V12H15V10.031ZM15 14H17V16H15V14ZM7 15H9V17H7V15Z" })] })),
134
135
  house: ((0, jsx_runtime_1.jsx)("path", { d: "M5.00299 22H9.00299H15.003H19.003C20.106 22 21.003 21.103 21.003 20V11C21.003 10.735 20.898 10.48 20.71 10.293L12.71 2.29301C12.319 1.90201 11.687 1.90201 11.296 2.29301L3.29599 10.293C3.10799 10.48 3.00299 10.735 3.00299 11V20C3.00299 21.103 3.89999 22 5.00299 22ZM10.003 20V15H14.003V20H10.003ZM5.00299 11.414L12.003 4.41401L19.003 11.414L19.004 20H16.003V15C16.003 13.897 15.106 13 14.003 13H10.003C8.89999 13 8.00299 13.897 8.00299 15V20H5.00299V11.414Z" })),
@@ -5,6 +5,7 @@ export interface ToastNoticeProps extends Omit<BannerProps, "onClose"> {
5
5
  export type ToastContextProps = {
6
6
  notice: ToastNoticeProps | undefined;
7
7
  setNotice: React.Dispatch<React.SetStateAction<ToastNoticeProps | undefined>>;
8
+ clear: () => void;
8
9
  };
9
10
  export declare const ToastContext: React.Context<ToastContextProps>;
10
11
  export declare function ToastProvider(props: {
@@ -7,11 +7,13 @@ exports.ToastContext = (0, react_1.createContext)({
7
7
  setNotice: () => {
8
8
  throw new Error("Missing ToastProvider");
9
9
  },
10
+ clear: () => { },
10
11
  notice: undefined,
11
12
  });
12
13
  function ToastProvider(props) {
13
14
  const [notice, setNotice] = (0, react_1.useState)();
14
- const contextValue = (0, react_1.useMemo)(() => ({ setNotice, notice }), [setNotice, notice]);
15
+ const clear = (0, react_1.useCallback)(() => setNotice(undefined), [setNotice]);
16
+ const contextValue = (0, react_1.useMemo)(() => ({ setNotice, notice, clear }), [notice, clear]);
15
17
  return (0, jsx_runtime_1.jsx)(exports.ToastContext.Provider, { value: contextValue, children: props.children });
16
18
  }
17
19
  exports.ToastProvider = ToastProvider;
@@ -1,5 +1,6 @@
1
1
  import { ToastNoticeProps } from "./ToastContext";
2
2
  export interface UseToastProps {
3
3
  showToast: (props: ToastNoticeProps) => void;
4
+ clear: () => void;
4
5
  }
5
6
  export declare function useToast(): UseToastProps;
@@ -4,8 +4,8 @@ exports.useToast = void 0;
4
4
  const react_1 = require("react");
5
5
  const ToastContext_1 = require("./ToastContext");
6
6
  function useToast() {
7
- const { setNotice } = (0, ToastContext_1.useToastContext)();
7
+ const { setNotice, clear } = (0, ToastContext_1.useToastContext)();
8
8
  const showToast = (0, react_1.useCallback)((props) => setNotice(props), [setNotice]);
9
- return { showToast };
9
+ return { showToast, clear };
10
10
  }
11
11
  exports.useToast = useToast;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.369.1",
3
+ "version": "2.369.3",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",