@sonic-equipment/ui 149.0.0 → 151.0.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.
@@ -10,7 +10,7 @@ const defaultCookieOptions = {
10
10
  secure: true,
11
11
  };
12
12
  function useCookie(name, options = defaultCookieOptions) {
13
- const cookieValue = Cookies.get()[name];
13
+ const cookieValue = Cookies.get()?.[name];
14
14
  const [stateValue, setStateValue] = useState(cookieValue);
15
15
  if (cookieValue !== stateValue) {
16
16
  setStateValue(cookieValue);
@@ -1,7 +1,7 @@
1
1
  import { useState, useRef, useEffect } from 'react';
2
2
 
3
3
  function useIntersectionObserver({ isDisabled, observables, onIntersectingChange, }) {
4
- const [isIntersecting, setIntersecting] = useState(false);
4
+ const [isIntersecting, setIntersecting] = useState(true);
5
5
  const state = useRef([]);
6
6
  function disconnectObservers() {
7
7
  state.current.forEach(entry => entry.observer.disconnect());
package/dist/styles.css CHANGED
@@ -2896,11 +2896,12 @@
2896
2896
  }
2897
2897
 
2898
2898
  .orderline-card-module-AMTMm .orderline-card-module-TlhUg {
2899
+ display: grid;
2899
2900
  aspect-ratio: 1;
2901
+ block-size: 100%;
2900
2902
  grid-area: image;
2901
2903
  justify-self: center;
2902
- max-block-size: 100%;
2903
- max-inline-size: 100%;
2904
+ place-items: center;
2904
2905
  }
2905
2906
 
2906
2907
  .orderline-card-module-AMTMm .orderline-card-module-ZjAaX {
@@ -2946,6 +2947,11 @@
2946
2947
  'image amount price'
2947
2948
  'image info info'
2948
2949
  }
2950
+
2951
+ .orderline-card-module-AMTMm .orderline-card-module-TlhUg {
2952
+ block-size: auto;
2953
+ inline-size: 100%;
2954
+ }
2949
2955
  }
2950
2956
 
2951
2957
  @container (inline-size >= 700px) {.orderline-card-module-AMTMm {
@@ -3054,11 +3060,13 @@
3054
3060
  }
3055
3061
 
3056
3062
  .product-card-module-pLaiB .product-card-module-65ZVi {
3063
+ display: flex;
3064
+ overflow: hidden;
3057
3065
  aspect-ratio: 1;
3066
+ block-size: 100%;
3058
3067
  grid-area: image;
3059
- justify-self: center;
3060
- max-block-size: 100%;
3061
- max-inline-size: 100%;
3068
+ place-items: center;
3069
+ place-self: center;
3062
3070
  }
3063
3071
 
3064
3072
  .product-card-module-pLaiB .product-card-module-irW0D {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-equipment/ui",
3
- "version": "149.0.0",
3
+ "version": "151.0.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "engines": {