@homebound/beam 2.217.0 → 2.218.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.
@@ -11,21 +11,21 @@ export declare const hoverStyles: {
11
11
  boxShadow: import("csstype").Property.BoxShadow | undefined;
12
12
  };
13
13
  export declare const pressedStyles: {
14
- borderRadius: import("csstype").Property.BorderRadius<0 | (string & {})> | undefined;
14
+ borderRadius: import("csstype").Property.BorderRadius<string | 0> | undefined;
15
15
  } & {
16
16
  backgroundColor: import("csstype").Property.BackgroundColor | undefined;
17
17
  } & {
18
18
  content: import("csstype").Property.Content | undefined;
19
19
  } & {
20
- width: import("csstype").Property.Width<0 | (string & {})> | undefined;
20
+ width: import("csstype").Property.Width<string | 0> | undefined;
21
21
  } & {
22
- height: import("csstype").Property.Height<0 | (string & {})> | undefined;
22
+ height: import("csstype").Property.Height<string | 0> | undefined;
23
23
  } & {
24
24
  position: import("csstype").Property.Position | undefined;
25
25
  } & {
26
- top: import("csstype").Property.Top<0 | (string & {})> | undefined;
26
+ top: import("csstype").Property.Top<string | 0> | undefined;
27
27
  } & {
28
- left: import("csstype").Property.Left<0 | (string & {})> | undefined;
28
+ left: import("csstype").Property.Left<string | 0> | undefined;
29
29
  } & {
30
30
  opacity: import("csstype").Property.Opacity | undefined;
31
31
  };
@@ -30,7 +30,7 @@ exports.Icons = {
30
30
  // Actions
31
31
  kanban: ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("path", { d: "M19.893 3.001H4C2.897 3.001 2 3.898 2 5.001V19.001C2 20.104 2.897 21.001 4 21.001H19.893C20.996 21.001 21.893 20.104 21.893 19.001V8V7V6V5.001V5C21.892 3.897 20.994 3.001 19.893 3.001ZM8 19.001H4V8H8V19.001ZM14 19.001H10V8H14V19.001ZM16 19.001V8H19.893L19.894 19.001H16Z" }, void 0) }, void 0)),
32
32
  expand: (0, jsx_runtime_1.jsx)("path", { d: "M5 12H3V21H12V19H5V12ZM12 5H19V12H21V3H12V5Z" }, void 0),
33
- collapse: ((0, jsx_runtime_1.jsx)("path", { d: "M21 15.344L18.879 17.465L15.707 14.293L14.293 15.707L17.465 18.879L15.344 21H21V15.344ZM3 8.656L5.121 6.535L8.293 9.707L9.707 8.293L6.535 5.121L8.656 3H3V8.656ZM21 3H15.344L17.465 5.121L14.293 8.293L15.707 9.707L18.879 6.535L21 8.656V3ZM3 21H8.656L6.535 18.879L9.707 15.707L8.293 14.293L5.121 17.465L3 15.344V21Z" }, void 0)),
33
+ collapse: ((0, jsx_runtime_1.jsx)("path", { d: "M16.121 6.465L14 4.344V10H19.656L17.535 7.879L20.707 4.707L19.293 3.293L16.121 6.465ZM4.70703 3.293L3.29303 4.707L6.46503 7.879L4.34403 10H10V4.344L7.87903 6.465L4.70703 3.293ZM19.656 14H14V19.656L16.121 17.535L19.293 20.707L20.707 19.293L17.535 16.121L19.656 14ZM6.46503 16.121L3.29303 19.293L4.70703 20.707L7.87903 17.535L10 19.656V14H4.34403L6.46503 16.121Z" }, void 0)),
34
34
  drag: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M8 8C7.44772 8 7 7.55228 7 7L7 5C7 4.44772 7.44772 4 8 4L10 4C10.5523 4 11 4.44772 11 5L11 7C11 7.55228 10.5523 8 10 8L8 8Z" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M8 14C7.44772 14 7 13.5523 7 13L7 11C7 10.4477 7.44772 10 8 10L10 10C10.5523 10 11 10.4477 11 11L11 13C11 13.5523 10.5523 14 10 14L8 14Z" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M8 20C7.44772 20 7 19.5523 7 19L7 17C7 16.4477 7.44772 16 8 16L10 16C10.5523 16 11 16.4477 11 17L11 19C11 19.5523 10.5523 20 10 20L8 20Z" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M14 8C13.4477 8 13 7.55228 13 7L13 5C13 4.44772 13.4477 4 14 4L16 4C16.5523 4 17 4.44772 17 5L17 7C17 7.55228 16.5523 8 16 8L14 8Z" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M14 14C13.4477 14 13 13.5523 13 13L13 11C13 10.4477 13.4477 10 14 10L16 10C16.5523 10 17 10.4477 17 11L17 13C17 13.5523 16.5523 14 16 14L14 14Z" }, void 0), (0, jsx_runtime_1.jsx)("path", { d: "M14 20C13.4477 20 13 19.5523 13 19L13 17C13 16.4477 13.4477 16 14 16L16 16C16.5523 16 17 16.4477 17 17L17 19C17 19.5523 16.5523 20 16 20L14 20Z" }, void 0)] }, void 0)),
35
35
  x: ((0, jsx_runtime_1.jsx)("path", { d: "M16.192 6.34399L11.949 10.586L7.70697 6.34399L6.29297 7.75799L10.535 12L6.29297 16.242L7.70697 17.656L11.949 13.414L16.192 17.656L17.606 16.242L13.364 12L17.606 7.75799L16.192 6.34399Z" }, void 0)),
36
36
  loader: ((0, jsx_runtime_1.jsx)("path", { d: "M12 22C17.421 22 22 17.421 22 12H20C20 16.337 16.337 20 12 20C7.663 20 4 16.337 4 12C4 7.664 7.663 4 12 4V2C6.579 2 2 6.58 2 12C2 17.421 6.579 22 12 22Z" }, void 0)),
@@ -17,6 +17,6 @@ export declare const scrollContainerBottomPadding: {
17
17
  } & {
18
18
  display: import("csstype").Property.Display | undefined;
19
19
  } & {
20
- height: import("csstype").Property.Height<0 | (string & {})> | undefined;
20
+ height: import("csstype").Property.Height<string | 0> | undefined;
21
21
  };
22
22
  export {};
@@ -57,44 +57,44 @@ export declare function getTabStyles(): {
57
57
  } & {
58
58
  alignItems: import("csstype").Property.AlignItems | undefined;
59
59
  } & {
60
- height: import("csstype").Property.Height<0 | (string & {})> | undefined;
60
+ height: import("csstype").Property.Height<string | 0> | undefined;
61
61
  } & {
62
- paddingTop: import("csstype").Property.PaddingTop<0 | (string & {})> | undefined;
62
+ paddingTop: import("csstype").Property.PaddingTop<string | 0> | undefined;
63
63
  } & {
64
- paddingBottom: import("csstype").Property.PaddingBottom<0 | (string & {})> | undefined;
64
+ paddingBottom: import("csstype").Property.PaddingBottom<string | 0> | undefined;
65
65
  } & {
66
- paddingLeft: import("csstype").Property.PaddingLeft<0 | (string & {})> | undefined;
66
+ paddingLeft: import("csstype").Property.PaddingLeft<string | 0> | undefined;
67
67
  } & {
68
- paddingRight: import("csstype").Property.PaddingRight<0 | (string & {})> | undefined;
68
+ paddingRight: import("csstype").Property.PaddingRight<string | 0> | undefined;
69
69
  } & {
70
- outline: import("csstype").Property.Outline<0 | (string & {})> | undefined;
70
+ outline: import("csstype").Property.Outline<string | 0> | undefined;
71
71
  } & {
72
72
  color: import("csstype").Property.Color | undefined;
73
73
  } & {
74
- width: import("csstype").Property.Width<0 | (string & {})> | undefined;
74
+ width: import("csstype").Property.Width<string | 0> | undefined;
75
75
  } & {
76
76
  cursor: import("csstype").Property.Cursor | undefined;
77
77
  } & {
78
78
  fontWeight: import("csstype").Property.FontWeight | undefined;
79
79
  } & {
80
- fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
80
+ fontSize: import("csstype").Property.FontSize<string | 0> | undefined;
81
81
  } & {
82
- lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
82
+ lineHeight: import("csstype").Property.LineHeight<string | 0> | undefined;
83
83
  };
84
84
  activeStyles: {
85
85
  borderBottomStyle: import("csstype").Property.BorderBottomStyle | undefined;
86
86
  } & {
87
- borderBottomWidth: import("csstype").Property.BorderBottomWidth<0 | (string & {})> | undefined;
87
+ borderBottomWidth: import("csstype").Property.BorderBottomWidth<string | 0> | undefined;
88
88
  } & {
89
- paddingBottom: import("csstype").Property.PaddingBottom<0 | (string & {})> | undefined;
89
+ paddingBottom: import("csstype").Property.PaddingBottom<string | 0> | undefined;
90
90
  } & {
91
91
  borderColor: import("csstype").Property.BorderColor | undefined;
92
92
  } & {
93
93
  fontWeight: import("csstype").Property.FontWeight | undefined;
94
94
  } & {
95
- fontSize: import("csstype").Property.FontSize<0 | (string & {})> | undefined;
95
+ fontSize: import("csstype").Property.FontSize<string | 0> | undefined;
96
96
  } & {
97
- lineHeight: import("csstype").Property.LineHeight<0 | (string & {})> | undefined;
97
+ lineHeight: import("csstype").Property.LineHeight<string | 0> | undefined;
98
98
  } & {
99
99
  color: import("csstype").Property.Color | undefined;
100
100
  };
@@ -111,9 +111,9 @@ export declare function getTabStyles(): {
111
111
  hoverStyles: {
112
112
  borderBottomStyle: import("csstype").Property.BorderBottomStyle | undefined;
113
113
  } & {
114
- borderBottomWidth: import("csstype").Property.BorderBottomWidth<0 | (string & {})> | undefined;
114
+ borderBottomWidth: import("csstype").Property.BorderBottomWidth<string | 0> | undefined;
115
115
  } & {
116
- paddingBottom: import("csstype").Property.PaddingBottom<0 | (string & {})> | undefined;
116
+ paddingBottom: import("csstype").Property.PaddingBottom<string | 0> | undefined;
117
117
  } & {
118
118
  borderColor: import("csstype").Property.BorderColor | undefined;
119
119
  };
@@ -122,9 +122,9 @@ export declare function getTabStyles(): {
122
122
  } & {
123
123
  borderBottomStyle: import("csstype").Property.BorderBottomStyle | undefined;
124
124
  } & {
125
- borderBottomWidth: import("csstype").Property.BorderBottomWidth<0 | (string & {})> | undefined;
125
+ borderBottomWidth: import("csstype").Property.BorderBottomWidth<string | 0> | undefined;
126
126
  } & {
127
- paddingBottom: import("csstype").Property.PaddingBottom<0 | (string & {})> | undefined;
127
+ paddingBottom: import("csstype").Property.PaddingBottom<string | 0> | undefined;
128
128
  } & {
129
129
  borderColor: import("csstype").Property.BorderColor | undefined;
130
130
  };
@@ -1,11 +1,11 @@
1
- import { BreakpointKey } from "../Css";
1
+ import { Breakpoint } from "../Css";
2
+ declare type BreakpointsType = Record<Breakpoint, boolean>;
2
3
  /**
3
4
  * A React hook to return a record of responsive breakpoints that updates on resize.
4
5
  *
5
6
  * @example
6
7
  * const { breakpoints } = useBreakpoint();
7
- * if(breakpoints.mdAndDown) {...do something cool}
8
+ * if (breakpoints.mdAndDown) { ...do something cool }
8
9
  */
9
- declare type BreakpointsType = Record<BreakpointKey, boolean>;
10
10
  export declare const useBreakpoint: () => BreakpointsType;
11
11
  export {};
@@ -6,8 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.useBreakpoint = void 0;
7
7
  const fast_deep_equal_1 = __importDefault(require("fast-deep-equal"));
8
8
  const react_1 = require("react");
9
+ const index_1 = require("../utils/index");
9
10
  const use_debounce_1 = require("use-debounce");
10
11
  const Css_1 = require("../Css");
12
+ /**
13
+ * A React hook to return a record of responsive breakpoints that updates on resize.
14
+ *
15
+ * @example
16
+ * const { breakpoints } = useBreakpoint();
17
+ * if (breakpoints.mdAndDown) { ...do something cool }
18
+ */
11
19
  const useBreakpoint = () => {
12
20
  const [breakpoints, setBreakpoints] = (0, react_1.useState)(matchMediaBreakpoints());
13
21
  const handleResize = (0, use_debounce_1.useDebouncedCallback)(() => {
@@ -20,13 +28,13 @@ const useBreakpoint = () => {
20
28
  window.addEventListener("resize", handleResize);
21
29
  // Remove event listener on cleanup
22
30
  return () => window.removeEventListener("resize", handleResize);
23
- }, []);
31
+ }, [handleResize]);
24
32
  return breakpoints;
25
33
  };
26
34
  exports.useBreakpoint = useBreakpoint;
27
35
  function matchMediaBreakpoints() {
28
- let bps = {};
29
- Object.entries(Css_1.Breakpoints).forEach(([name, bp]) => {
36
+ const bps = {};
37
+ (0, index_1.safeEntries)(Css_1.Breakpoints).forEach(([name, bp]) => {
30
38
  bps[name] = window.matchMedia(bp.replace("@media ", "")).matches;
31
39
  });
32
40
  return bps;
@@ -32,27 +32,27 @@ export interface RadioGroupFieldProps<K extends string> {
32
32
  */
33
33
  export declare function RadioGroupField<K extends string>(props: RadioGroupFieldProps<K>): import("@emotion/react/jsx-runtime").JSX.Element;
34
34
  export declare const radioReset: {
35
- outline: import("csstype").Property.Outline<0 | (string & {})> | undefined;
35
+ outline: import("csstype").Property.Outline<string | 0> | undefined;
36
36
  appearance: import("csstype").Property.Appearance | undefined;
37
- paddingTop: import("csstype").Property.PaddingTop<0 | (string & {})> | undefined;
38
- paddingBottom: import("csstype").Property.PaddingBottom<0 | (string & {})> | undefined;
39
- paddingRight: import("csstype").Property.PaddingRight<0 | (string & {})> | undefined;
40
- paddingLeft: import("csstype").Property.PaddingLeft<0 | (string & {})> | undefined;
37
+ paddingTop: import("csstype").Property.PaddingTop<string | 0> | undefined;
38
+ paddingBottom: import("csstype").Property.PaddingBottom<string | 0> | undefined;
39
+ paddingRight: import("csstype").Property.PaddingRight<string | 0> | undefined;
40
+ paddingLeft: import("csstype").Property.PaddingLeft<string | 0> | undefined;
41
41
  display: import("csstype").Property.Display | undefined;
42
- verticalAlign: import("csstype").Property.VerticalAlign<0 | (string & {})> | undefined;
42
+ verticalAlign: import("csstype").Property.VerticalAlign<string | 0> | undefined;
43
43
  userSelect: import("csstype").Property.UserSelect | undefined;
44
44
  flexShrink: import("csstype").Property.FlexShrink | undefined;
45
- height: import("csstype").Property.Height<0 | (string & {})> | undefined;
46
- width: import("csstype").Property.Width<0 | (string & {})> | undefined;
47
- borderRadius: import("csstype").Property.BorderRadius<0 | (string & {})> | undefined;
45
+ height: import("csstype").Property.Height<string | 0> | undefined;
46
+ width: import("csstype").Property.Width<string | 0> | undefined;
47
+ borderRadius: import("csstype").Property.BorderRadius<string | 0> | undefined;
48
48
  };
49
49
  export declare const radioDefault: {
50
- transition: import("csstype").Property.Transition<string & {}> | undefined;
50
+ transition: import("csstype").Property.Transition<string> | undefined;
51
51
  color: import("csstype").Property.Color | undefined;
52
52
  backgroundColor: import("csstype").Property.BackgroundColor | undefined;
53
53
  borderColor: import("csstype").Property.BorderColor | undefined;
54
54
  borderStyle: import("csstype").Property.BorderStyle | undefined;
55
- borderWidth: import("csstype").Property.BorderWidth<0 | (string & {})> | undefined;
55
+ borderWidth: import("csstype").Property.BorderWidth<string | 0> | undefined;
56
56
  };
57
57
  export declare const radioUnchecked: {
58
58
  cursor: import("csstype").Property.Cursor | undefined;
@@ -63,14 +63,14 @@ export declare const radioChecked: {
63
63
  borderColor: import("csstype").Property.BorderColor | undefined;
64
64
  backgroundImage: import("csstype").Property.BackgroundImage | undefined;
65
65
  backgroundColor: import("csstype").Property.BackgroundColor | undefined;
66
- backgroundSize: import("csstype").Property.BackgroundSize<0 | (string & {})> | undefined;
67
- backgroundPosition: import("csstype").Property.BackgroundPosition<0 | (string & {})> | undefined;
66
+ backgroundSize: import("csstype").Property.BackgroundSize<string | 0> | undefined;
67
+ backgroundPosition: import("csstype").Property.BackgroundPosition<string | 0> | undefined;
68
68
  backgroundRepeat: import("csstype").Property.BackgroundRepeat | undefined;
69
69
  };
70
70
  export declare const radioFocus: {
71
71
  boxShadow: import("csstype").Property.BoxShadow | undefined;
72
- outline: import("csstype").Property.Outline<0 | (string & {})> | undefined;
73
- outlineOffset: import("csstype").Property.OutlineOffset<0 | (string & {})> | undefined;
72
+ outline: import("csstype").Property.Outline<string | 0> | undefined;
73
+ outlineOffset: import("csstype").Property.OutlineOffset<string | 0> | undefined;
74
74
  };
75
75
  export declare const radioHover: {
76
76
  color: import("csstype").Property.Color | undefined;
@@ -78,8 +78,8 @@ export declare const radioHover: {
78
78
  };
79
79
  export declare const radioDisabled: {
80
80
  backgroundColor: import("csstype").Property.BackgroundColor | undefined;
81
- backgroundSize: import("csstype").Property.BackgroundSize<0 | (string & {})> | undefined;
82
- backgroundPosition: import("csstype").Property.BackgroundPosition<0 | (string & {})> | undefined;
81
+ backgroundSize: import("csstype").Property.BackgroundSize<string | 0> | undefined;
82
+ backgroundPosition: import("csstype").Property.BackgroundPosition<string | 0> | undefined;
83
83
  backgroundRepeat: import("csstype").Property.BackgroundRepeat | undefined;
84
84
  cursor: import("csstype").Property.Cursor | undefined;
85
85
  color: import("csstype").Property.Color | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@homebound/beam",
3
- "version": "2.217.0",
3
+ "version": "2.218.0",
4
4
  "author": "Homebound",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -77,7 +77,7 @@
77
77
  "@homebound/eslint-config": "1.5.1",
78
78
  "@homebound/rtl-react-router-utils": "^1.0.3",
79
79
  "@homebound/rtl-utils": "^2.59.3",
80
- "@homebound/truss": "^1.115.0",
80
+ "@homebound/truss": "^1.121.0",
81
81
  "@homebound/tsconfig": "^1.0.3",
82
82
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
83
83
  "@semantic-release/exec": "^6.0.3",