@adobe-commerce/elsie 1.4.1-alpha008 → 1.4.1-alpha100

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.4.1-alpha008",
3
+ "version": "1.4.1-alpha100",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "description": "Domain Package SDK",
6
6
  "engines": {
@@ -26,7 +26,7 @@
26
26
  "cleanup": "rimraf dist"
27
27
  },
28
28
  "devDependencies": {
29
- "@adobe-commerce/event-bus": "1.0.1-beta1",
29
+ "@adobe-commerce/event-bus": "~1.0.1",
30
30
  "@adobe-commerce/fetch-graphql": "~1.1.0",
31
31
  "@adobe-commerce/recaptcha": "~1.0.1",
32
32
  "@adobe-commerce/storefront-design": "~1.0.0",
@@ -9,23 +9,10 @@
9
9
 
10
10
  /* https://cssguidelin.es/#bem-like-naming */
11
11
 
12
- .dropin-product-item-card__skeleton {
13
- gap: var(--spacing-small);
14
- }
15
-
16
12
  .dropin-product-item-card__skeleton__image {
17
- height: 375px;
18
- }
19
-
20
- .dropin-product-item-card__skeleton__content {
21
- grid-column: 1/-1;
22
- }
23
-
24
- /* .dropin-product-item-card__skeleton__image {
25
13
  width: 100%;
26
- height: auto;
14
+ height: 370px;
27
15
  }
28
- */
29
16
 
30
17
  /* Medium (portrait tablets and large phones, 768px and up) */
31
18
  /* @media only screen and (min-width: 768px) { } */
@@ -19,10 +19,11 @@ export const ProductItemCardSkeleton: FunctionComponent = () => {
19
19
  fullWidth={true}
20
20
  className="dropin-product-item-card__skeleton__image"
21
21
  />
22
- <div className="dropin-product-item-card__content dropin-product-item-card__skeleton__content">
22
+ </Skeleton>
23
+ <Skeleton className="dropin-product-item-card__content dropin-product-item-card__skeleton__content">
23
24
  <SkeletonRow
24
25
  fullWidth={true}
25
- size="large"
26
+ size="xsmall"
26
27
  className="dropin-product-item-card__skeleton__item"
27
28
  />
28
29
  <SkeletonRow
@@ -32,11 +33,10 @@ export const ProductItemCardSkeleton: FunctionComponent = () => {
32
33
  />
33
34
  <SkeletonRow
34
35
  fullWidth={true}
35
- size="small"
36
+ size="xsmall"
36
37
  className="dropin-product-item-card__skeleton__item"
37
38
  />
38
- </div>{' '}
39
- </Skeleton>
39
+ </Skeleton>
40
40
  </div>
41
41
  );
42
42
  };
@@ -14,6 +14,7 @@ import {
14
14
  useEffect,
15
15
  useRef,
16
16
  useCallback,
17
+ useMemo,
17
18
  } from 'preact/compat';
18
19
  import { classes } from '@adobe-commerce/elsie/lib';
19
20
  import '@adobe-commerce/elsie/components/TextSwatch/TextSwatch.css';
@@ -93,6 +94,8 @@ export const TextSwatch: FunctionComponent<TextSwatchProps> = ({
93
94
  }
94
95
  }, [label]);
95
96
 
97
+ const key = useMemo(() => `${name}_${id}_${Math.random().toString(36)}`, [name, id]);
98
+
96
99
  return (
97
100
  <div
98
101
  className="dropin-text-swatch__container"
@@ -101,7 +104,7 @@ export const TextSwatch: FunctionComponent<TextSwatchProps> = ({
101
104
  <input
102
105
  type={multi ? 'checkbox' : 'radio'}
103
106
  name={name}
104
- id={id}
107
+ id={key}
105
108
  value={value}
106
109
  aria-label={handleAriaLabel()}
107
110
  checked={selected}
@@ -116,7 +119,7 @@ export const TextSwatch: FunctionComponent<TextSwatchProps> = ({
116
119
  ])}
117
120
  />
118
121
  <label
119
- htmlFor={id}
122
+ htmlFor={key}
120
123
  ref={spanRef}
121
124
  className={classes([
122
125
  'dropin-text-swatch__label',