@elliemae/pui-app-sdk 5.17.7 → 5.18.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.
@@ -41,6 +41,7 @@ var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
41
41
  Breakpoints2["LARGE"] = "large";
42
42
  Breakpoints2["MEDIUM"] = "medium";
43
43
  Breakpoints2["SMALL"] = "small";
44
+ Breakpoints2["XSMALL"] = "xsmall";
44
45
  return Breakpoints2;
45
46
  })(Breakpoints || {});
46
47
  const initialState = {
@@ -49,6 +49,7 @@ const getCurrentBreakpoint = () => {
49
49
  const { breakpoints } = (0, import_pui_theme.getDefaultTheme)();
50
50
  if (width <= convertBreakpointToNumber(breakpoints.small)) return "small";
51
51
  if (width <= convertBreakpointToNumber(breakpoints.medium)) return "medium";
52
+ if (width <= convertBreakpointToNumber(breakpoints.xsmall)) return "xsmall";
52
53
  return "large";
53
54
  };
54
55
  const getAssetPath = () => {
@@ -34,9 +34,10 @@ const useBreakpoint = () => {
34
34
  [
35
35
  `(max-width: ${theme.breakpoints.small})`,
36
36
  `(max-width: ${theme.breakpoints.medium})`,
37
- `(max-width: ${theme.breakpoints.large})`
37
+ `(max-width: ${theme.breakpoints.large})`,
38
+ `(max-width: ${theme.breakpoints.xsmall})`
38
39
  ],
39
- ["small", "medium", "large"],
40
+ ["small", "medium", "large", "xsmall"],
40
41
  "large"
41
42
  );
42
43
  const dispatch = (0, import_react2.useAppDispatch)();
@@ -6,6 +6,7 @@ var Breakpoints = /* @__PURE__ */ ((Breakpoints2) => {
6
6
  Breakpoints2["LARGE"] = "large";
7
7
  Breakpoints2["MEDIUM"] = "medium";
8
8
  Breakpoints2["SMALL"] = "small";
9
+ Breakpoints2["XSMALL"] = "xsmall";
9
10
  return Breakpoints2;
10
11
  })(Breakpoints || {});
11
12
  const initialState = {
@@ -23,6 +23,7 @@ const getCurrentBreakpoint = () => {
23
23
  const { breakpoints } = getDefaultTheme();
24
24
  if (width <= convertBreakpointToNumber(breakpoints.small)) return "small";
25
25
  if (width <= convertBreakpointToNumber(breakpoints.medium)) return "medium";
26
+ if (width <= convertBreakpointToNumber(breakpoints.xsmall)) return "xsmall";
26
27
  return "large";
27
28
  };
28
29
  const getAssetPath = () => {
@@ -11,9 +11,10 @@ const useBreakpoint = () => {
11
11
  [
12
12
  `(max-width: ${theme.breakpoints.small})`,
13
13
  `(max-width: ${theme.breakpoints.medium})`,
14
- `(max-width: ${theme.breakpoints.large})`
14
+ `(max-width: ${theme.breakpoints.large})`,
15
+ `(max-width: ${theme.breakpoints.xsmall})`
15
16
  ],
16
- ["small", "medium", "large"],
17
+ ["small", "medium", "large", "xsmall"],
17
18
  "large"
18
19
  );
19
20
  const dispatch = useAppDispatch();
@@ -5,7 +5,8 @@ export declare const breakpoint: {
5
5
  export declare enum Breakpoints {
6
6
  LARGE = "large",
7
7
  MEDIUM = "medium",
8
- SMALL = "small"
8
+ SMALL = "small",
9
+ XSMALL = "xsmall"
9
10
  }
10
11
  export interface BreakpointState {
11
12
  value: Breakpoints;