@graphcommerce/next-ui 9.0.4-canary.1 → 9.0.4-canary.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.
- package/CHANGELOG.md +8 -0
- package/Styles/createEmotionCache.ts +3 -1
- package/package.json +8 -8
- package/utils/sxx.ts +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 9.0.4-canary.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#2473](https://github.com/graphcommerce-org/graphcommerce/pull/2473) [`8df172e`](https://github.com/graphcommerce-org/graphcommerce/commit/8df172e4fa1364892d53bc96a437d037d245de35) - Do not warn about `:first-child` since all css is hoisted out of the components. ([@paales](https://github.com/paales))
|
8
|
+
|
9
|
+
- [#2473](https://github.com/graphcommerce-org/graphcommerce/pull/2473) [`b076b2a`](https://github.com/graphcommerce-org/graphcommerce/commit/b076b2ae4881bebf1d2debd5333a83f220c26ca7) - Also accept false as value for sxx ([@paales](https://github.com/paales))
|
10
|
+
|
3
11
|
## 9.0.4-canary.1
|
4
12
|
|
5
13
|
### Patch Changes
|
@@ -10,5 +10,7 @@ export const createEmotionCache = () => {
|
|
10
10
|
insertionPoint = emotionInsertionPoint ?? undefined
|
11
11
|
}
|
12
12
|
|
13
|
-
|
13
|
+
const cache = createCache({ key: 'mui-style', insertionPoint, stylisPlugins: [] })
|
14
|
+
cache.compat = true
|
15
|
+
return cache
|
14
16
|
}
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "9.0.4-canary.
|
5
|
+
"version": "9.0.4-canary.2",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -24,13 +24,13 @@
|
|
24
24
|
"@emotion/react": "^11",
|
25
25
|
"@emotion/server": "^11",
|
26
26
|
"@emotion/styled": "^11",
|
27
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.
|
28
|
-
"@graphcommerce/framer-next-pages": "^9.0.4-canary.
|
29
|
-
"@graphcommerce/framer-scroller": "^9.0.4-canary.
|
30
|
-
"@graphcommerce/framer-utils": "^9.0.4-canary.
|
31
|
-
"@graphcommerce/image": "^9.0.4-canary.
|
32
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.
|
27
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4-canary.2",
|
28
|
+
"@graphcommerce/framer-next-pages": "^9.0.4-canary.2",
|
29
|
+
"@graphcommerce/framer-scroller": "^9.0.4-canary.2",
|
30
|
+
"@graphcommerce/framer-utils": "^9.0.4-canary.2",
|
31
|
+
"@graphcommerce/image": "^9.0.4-canary.2",
|
32
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4-canary.2",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4-canary.2",
|
34
34
|
"@lingui/core": "^4.2.1",
|
35
35
|
"@lingui/macro": "^4.2.1",
|
36
36
|
"@lingui/react": "^4.2.1",
|
package/utils/sxx.ts
CHANGED
@@ -9,8 +9,8 @@ import type { SxProps, Theme } from '@mui/material'
|
|
9
9
|
* sxx({ position: 'absolute', right: 0, top: 0 }, props.sx)
|
10
10
|
* ```
|
11
11
|
*/
|
12
|
-
export const sxx = (...sxPropsArray: (SxProps<Theme> | undefined)[]): SxProps<Theme> =>
|
12
|
+
export const sxx = (...sxPropsArray: (SxProps<Theme> | undefined | false)[]): SxProps<Theme> =>
|
13
13
|
sxPropsArray
|
14
|
-
.filter((v) => v
|
14
|
+
.filter((v) => !!v)
|
15
15
|
.map((sx) => (Array.isArray(sx) ? sx : [sx]))
|
16
16
|
.flat(1)
|