@jobber/components 4.60.2 → 4.60.3-JOB-82754-.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.
@@ -149,11 +149,14 @@ const TRANSITION_DURATION_IN_SECONDS = design.tokens["timing-base"] / 1000;
149
149
  const TRANSITION_DELAY_IN_SECONDS = design.tokens["timing-quick"] / 1000;
150
150
 
151
151
  function useResponsiveSizing() {
152
- const xs = useMediaQuery(`(width > ${BREAKPOINT_SIZES.xs}px)`);
153
- const sm = useMediaQuery(`(width >= ${BREAKPOINT_SIZES.sm}px)`);
154
- const md = useMediaQuery(`(width >= ${BREAKPOINT_SIZES.md}px)`);
155
- const lg = useMediaQuery(`(width >= ${BREAKPOINT_SIZES.lg}px)`);
156
- const xl = useMediaQuery(`(width >= ${BREAKPOINT_SIZES.xl}px)`);
152
+ // This was originally written to look for "min-width: 0" which would always
153
+ // return true no matter what.
154
+ // So, instead of running media query on it, just set it to true.
155
+ const xs = true;
156
+ const sm = useMediaQuery(`(min-width: ${BREAKPOINT_SIZES.sm}px)`);
157
+ const md = useMediaQuery(`(min-width: ${BREAKPOINT_SIZES.md}px)`);
158
+ const lg = useMediaQuery(`(min-width: ${BREAKPOINT_SIZES.lg}px)`);
159
+ const xl = useMediaQuery(`(min-width: ${BREAKPOINT_SIZES.xl}px)`);
157
160
  return { xs, sm, md, lg, xl };
158
161
  }
159
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.60.2",
3
+ "version": "4.60.3-JOB-82754-.0+6eb7e049",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "@jobber/design": "^0.47.0",
23
- "@jobber/formatters": "*",
23
+ "@jobber/formatters": "^0.2.2",
24
24
  "@jobber/hooks": "^2.7.0",
25
25
  "@popperjs/core": "^2.0.6",
26
26
  "@std-proposal/temporal": "0.0.1",
@@ -84,5 +84,5 @@
84
84
  "> 1%",
85
85
  "IE 10"
86
86
  ],
87
- "gitHead": "338cc47c611f0ecd674457c667bd8944039b367a"
87
+ "gitHead": "6eb7e049b719da5143779704a45ed3f91ead0b90"
88
88
  }