@hanzo/commerce 1.1.9 → 1.1.10

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.
@@ -17,6 +17,7 @@ const FacetsWidget: React.FC<PropsWithChildren & {
17
17
  id?: string
18
18
  className?: string
19
19
  tabSize?: string
20
+ childrenAfter?: boolean
20
21
  }> = ({
21
22
  children,
22
23
  facets,
@@ -27,11 +28,13 @@ const FacetsWidget: React.FC<PropsWithChildren & {
27
28
  isMobile=false,
28
29
  className='',
29
30
  tabSize,
30
- id='FacetsWidget'
31
+ id='FacetsWidget',
32
+ childrenAfter=true
31
33
  }) => {
32
34
  const horiz = className.includes('flex-row')
33
35
  return (
34
36
  <div id={id} className={className} >
37
+ {!childrenAfter && children}
35
38
  {Object.keys(facets).map((key, i) => (
36
39
  <FacetTogglesWidget
37
40
  key={i}
@@ -44,7 +47,7 @@ const FacetsWidget: React.FC<PropsWithChildren & {
44
47
  tabSize={tabSize}
45
48
  />
46
49
  ))}
47
- {children}
50
+ {childrenAfter && children}
48
51
  </div>
49
52
  )
50
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/commerce",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Library with shopping cart components.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",