@adobe-commerce/elsie 1.6.0 → 1.7.0-beta1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe-commerce/elsie",
3
- "version": "1.6.0",
3
+ "version": "1.7.0-beta1",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "description": "Domain Package SDK",
6
6
  "engines": {
@@ -58,7 +58,6 @@
58
58
  "@storybook/preact": "^8.2.3",
59
59
  "@storybook/preact-vite": "^8.2.3",
60
60
  "@storybook/preact-webpack5": "^8.2.3",
61
- "@storybook/storybook-deployer": "^2.8.16",
62
61
  "@storybook/test": "^8.2.3",
63
62
  "@storybook/test-runner": "^0.19.1",
64
63
  "@storybook/theming": "^8.2.3",
@@ -45,6 +45,16 @@
45
45
  height: auto;
46
46
  }
47
47
 
48
+ .dropin-cart-item__image:is(a),
49
+ .dropin-cart-item__image a {
50
+ display: inline-block;
51
+ }
52
+
53
+ .dropin-cart-item__image:is(a) img,
54
+ .dropin-cart-item__image a img {
55
+ display: block;
56
+ }
57
+
48
58
  .dropin-cart-item__title {
49
59
  font: var(--type-body-1-default-font);
50
60
  letter-spacing: var(--type-body-1-default-letter-spacing);
@@ -283,7 +293,8 @@
283
293
  }
284
294
 
285
295
  /* Smallish / Medium */
286
- @container cart-item (width >= 400px) and (width < 737px) {
296
+ @container cart-item (width >=400px) and (width < 737px) {
297
+
287
298
  .dropin-cart-item__title,
288
299
  .dropin-cart-item__sku,
289
300
  .dropin-cart-item__attributes,
@@ -313,7 +324,8 @@
313
324
  }
314
325
 
315
326
  /* Large */
316
- @container cart-item (width >= 737px) and (width < 1192px) {
327
+ @container cart-item (width >=737px) and (width < 1192px) {
328
+
317
329
  /* Grid */
318
330
  .dropin-cart-item__wrapper {
319
331
  grid-template-columns: repeat(12, 1fr);
@@ -391,7 +403,7 @@
391
403
  }
392
404
 
393
405
  /* Extra Large */
394
- @container cart-item (width >= 1192px) {
406
+ @container cart-item (width >=1192px) {
395
407
  .dropin-cart-item {
396
408
  --item-group-spacing: var(--spacing-xxsmall);
397
409
  --group-spacing: var(--spacing-small);
@@ -2,14 +2,15 @@
2
2
  * Copyright 2024 Adobe
3
3
  * All Rights Reserved.
4
4
  *
5
- * NOTICE: Adobe permits you to use, modify, and distribute this
6
- * file in accordance with the terms of the Adobe license agreement
7
- * accompanying it.
5
+ * NOTICE: Adobe permits you to use, modify, and distribute this
6
+ * file in accordance with the terms of the Adobe license agreement
7
+ * accompanying it.
8
8
  *******************************************************************/
9
9
 
10
10
  .dropin-design a {
11
11
  --textColor: var(--color-brand-500);
12
12
  color: var(--textColor);
13
+ border: var(--shape-border-width-1) solid transparent;
13
14
  text-decoration: none;
14
15
  }
15
16
 
@@ -9,8 +9,12 @@
9
9
 
10
10
  export const debounce = (fn: Function, ms: number) => {
11
11
  let timeoutId: ReturnType<typeof setTimeout>;
12
- return function (this: any, ...args: any[]) {
12
+ const debouncedFn = function (this: any, ...args: any[]) {
13
13
  clearTimeout(timeoutId);
14
14
  timeoutId = setTimeout(() => fn.apply(this, args), ms);
15
15
  };
16
+ debouncedFn.cancel = () => {
17
+ clearTimeout(timeoutId);
18
+ };
19
+ return debouncedFn;
16
20
  };