@luxfi/ui 5.3.24 → 5.4.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.
@@ -2,12 +2,12 @@ import type { SnapPointsConfig } from './store'
2
2
 
3
3
  export default {
4
4
  mb: {
5
- micro: '62px',
6
- full: '550px'
5
+ micro: '72px',
6
+ full: '600px'
7
7
  },
8
8
 
9
9
  dt: {
10
- micro: '74px',
11
- full: '575px'
10
+ micro: '90px',
11
+ full: '620px'
12
12
  }
13
13
  } satisfies SnapPointsConfig
@@ -10,7 +10,7 @@ import {
10
10
 
11
11
  import type { CommerceService } from '@hanzo/commerce/types'
12
12
 
13
- const LOG = false ////////////////////
13
+ const LOG = true ////////////////////
14
14
  const log = (s: string) => {
15
15
  if (LOG) {
16
16
  console.log('COMMERCE_UI ' + s)
@@ -157,10 +157,12 @@ class CommerceUIStore implements
157
157
  onActivePointChanged = (newPoint: SnapPoint | null): void => {
158
158
  log("ON onActivePointChanged: " + newPoint) // ===========
159
159
  if (newPoint === this._points.micro && this.activePoint === this._points.full) {
160
+ log("ON onActivePointChanged: to MICRO") // ===========
160
161
  this.setIgnoreStateChange(true)
161
162
  this.hideVariants()
162
163
  }
163
164
  else if (newPoint === this._points.full && this.activePoint === this._points.micro) {
165
+ log("ON onActivePointChanged: to FULL") // ===========
164
166
  this.setIgnoreStateChange(true)
165
167
  this.showRecentVariants()
166
168
  }
@@ -210,6 +212,9 @@ class CommerceUIStore implements
210
212
  }
211
213
  else if (s === 'full') {
212
214
  this.setActivePoint(this.points[this.points.length - 1])
215
+ }
216
+ else {
217
+ this.setActivePoint(null)
213
218
  }
214
219
  }
215
220
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxfi/ui",
3
- "version": "5.3.24",
3
+ "version": "5.4.0",
4
4
  "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",