@websolutespa/bom-llm 0.0.26 → 0.0.28

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @websolutespa/bom-llm
2
2
 
3
+ ## 0.0.28
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: Product Card & Product Card Group style
8
+
9
+ ## 0.0.27
10
+
11
+ ### Patch Changes
12
+
13
+ - Modified: Product hasPrice
14
+
3
15
  ## 0.0.26
4
16
 
5
17
  ### Patch Changes
@@ -1461,7 +1461,7 @@ llm-embed {
1461
1461
  gap: clamp(8px, 8px + (100vw - 375px) / 1545 * 0, 8px);
1462
1462
  display: flex;
1463
1463
  flex-wrap: nowrap;
1464
- align-items: flex-end;
1464
+ align-items: center;
1465
1465
  }
1466
1466
  .llm .llm__prompt-input {
1467
1467
  position: relative;
@@ -1626,15 +1626,21 @@ llm-embed {
1626
1626
  justify-content: center;
1627
1627
  align-items: center;
1628
1628
  column-gap: 4px;
1629
- padding: 6px 0;
1630
1629
  right: 0;
1631
1630
  left: 0;
1632
- font-size: 12px;
1633
1631
  color: var(--llm-color-foreground);
1634
1632
  opacity: 0.4;
1635
1633
  transition: opacity ease-in-out 250ms;
1636
1634
  pointer-events: auto;
1637
1635
  cursor: pointer;
1636
+ padding: 4px 0 0 0;
1637
+ font-size: 11px;
1638
+ }
1639
+ @media (min-width: 1024px) {
1640
+ .llm .llm__prompt-powered-by {
1641
+ padding: 6px 0;
1642
+ font-size: 12px;
1643
+ }
1638
1644
  }
1639
1645
  .llm .llm__prompt-powered-by:hover {
1640
1646
  opacity: 1;
@@ -2213,13 +2219,19 @@ llm-embed {
2213
2219
  .llm .llm__gridrow {
2214
2220
  --grid-columns: var(--llm-grid-columns, 12);
2215
2221
  --grid-size: var(--llm-grid-size, 1fr);
2216
- --grid-column-gap: var(--llm-grid-column-gap, 2rem);
2217
- --grid-row-gap: var(--llm-grid-row-gap, 2rem);
2222
+ --grid-column-gap: var(--llm-grid-column-gap, 1rem);
2223
+ --grid-row-gap: var(--llm-grid-row-gap, 1rem);
2218
2224
  display: grid;
2219
2225
  grid-template-columns: repeat(var(--grid-columns), var(--grid-size));
2220
2226
  grid-column-gap: var(--grid-column-gap);
2221
2227
  grid-row-gap: var(--grid-row-gap);
2222
2228
  }
2229
+ @media (min-width: 768px) {
2230
+ .llm .llm__gridrow {
2231
+ --grid-column-gap: var(--llm-grid-column-gap, 2rem);
2232
+ --grid-row-gap: var(--llm-grid-row-gap, 2rem);
2233
+ }
2234
+ }
2223
2235
  .llm .llm__grid {
2224
2236
  --grid-column: var(--llm-grid-columns, 12);
2225
2237
  grid-column: span var(--grid-column);
@@ -2236,6 +2248,30 @@ llm-embed {
2236
2248
  .llm .llm__grid.--xs-4 {
2237
2249
  --grid-column: 4;
2238
2250
  }
2251
+ .llm .llm__grid.--xs-5 {
2252
+ --grid-column: 5;
2253
+ }
2254
+ .llm .llm__grid.--xs-6 {
2255
+ --grid-column: 6;
2256
+ }
2257
+ .llm .llm__grid.--xs-7 {
2258
+ --grid-column: 7;
2259
+ }
2260
+ .llm .llm__grid.--xs-8 {
2261
+ --grid-column: 8;
2262
+ }
2263
+ .llm .llm__grid.--xs-9 {
2264
+ --grid-column: 9;
2265
+ }
2266
+ .llm .llm__grid.--xs-10 {
2267
+ --grid-column: 10;
2268
+ }
2269
+ .llm .llm__grid.--xs-11 {
2270
+ --grid-column: 11;
2271
+ }
2272
+ .llm .llm__grid.--xs-12 {
2273
+ --grid-column: 12;
2274
+ }
2239
2275
  @media (min-width: 768px) {
2240
2276
  .llm .llm__grid.--sm-1 {
2241
2277
  --grid-column: 1;
@@ -2256,6 +2292,46 @@ llm-embed {
2256
2292
  --grid-column: 4;
2257
2293
  }
2258
2294
  }
2295
+ @media (min-width: 768px) {
2296
+ .llm .llm__grid.--sm-5 {
2297
+ --grid-column: 5;
2298
+ }
2299
+ }
2300
+ @media (min-width: 768px) {
2301
+ .llm .llm__grid.--sm-6 {
2302
+ --grid-column: 6;
2303
+ }
2304
+ }
2305
+ @media (min-width: 768px) {
2306
+ .llm .llm__grid.--sm-7 {
2307
+ --grid-column: 7;
2308
+ }
2309
+ }
2310
+ @media (min-width: 768px) {
2311
+ .llm .llm__grid.--sm-8 {
2312
+ --grid-column: 8;
2313
+ }
2314
+ }
2315
+ @media (min-width: 768px) {
2316
+ .llm .llm__grid.--sm-9 {
2317
+ --grid-column: 9;
2318
+ }
2319
+ }
2320
+ @media (min-width: 768px) {
2321
+ .llm .llm__grid.--sm-10 {
2322
+ --grid-column: 10;
2323
+ }
2324
+ }
2325
+ @media (min-width: 768px) {
2326
+ .llm .llm__grid.--sm-11 {
2327
+ --grid-column: 11;
2328
+ }
2329
+ }
2330
+ @media (min-width: 768px) {
2331
+ .llm .llm__grid.--sm-12 {
2332
+ --grid-column: 12;
2333
+ }
2334
+ }
2259
2335
  @media (min-width: 1024px) {
2260
2336
  .llm .llm__grid.--md-1 {
2261
2337
  --grid-column: 1;
@@ -2449,6 +2525,9 @@ llm-embed {
2449
2525
  overflow: hidden;
2450
2526
  font-weight: 100;
2451
2527
  }
2528
+ .llm .llm__product:hover .llm__product-title {
2529
+ text-decoration: underline;
2530
+ }
2452
2531
  .llm .llm__product-media {
2453
2532
  position: relative;
2454
2533
  padding: 1rem;
@@ -2514,9 +2593,6 @@ llm-embed {
2514
2593
  -webkit-line-clamp: 2;
2515
2594
  -webkit-box-orient: vertical;
2516
2595
  }
2517
- .llm .llm__product-title:hover {
2518
- text-decoration: underline;
2519
- }
2520
2596
  .llm .llm__product-abstract {
2521
2597
  line-height: 1;
2522
2598
  font-family: var(--llm-font-secondary);
package/dist/umd/index.js CHANGED
@@ -32562,7 +32562,14 @@ void main(void) {
32562
32562
  } = _ref;
32563
32563
  // const label = useLabel();
32564
32564
  const classNames = getClassNames('llm__product', `llm__product--${props.productType}`);
32565
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
32565
+ return props.url ? /*#__PURE__*/jsxRuntimeExports.jsx("a", {
32566
+ className: classNames,
32567
+ href: props.url,
32568
+ target: "_blank",
32569
+ rel: "noreferrer",
32570
+ "aria-label": props.title,
32571
+ children: children
32572
+ }) : /*#__PURE__*/jsxRuntimeExports.jsx("div", {
32566
32573
  className: classNames,
32567
32574
  children: children
32568
32575
  });
@@ -32575,17 +32582,14 @@ void main(void) {
32575
32582
  }
32576
32583
  const price = asNumber(props.price);
32577
32584
  const fullPrice = asNumber(props.fullPrice) || price;
32585
+ const hasPrice = props.price != null;
32578
32586
  const availability = asNumber(props.availability);
32579
32587
  const hasAvailability = props.availability != null;
32580
32588
  const labelKey = props.label ? `-${bundle_umd_minExports.slugify(props.label)}` : '';
32581
32589
  return /*#__PURE__*/jsxRuntimeExports.jsxs(ProductWrapper, {
32582
32590
  ...props,
32583
- children: [props.media.type === 'image' && props.url && /*#__PURE__*/jsxRuntimeExports.jsxs("a", {
32591
+ children: [props.media.type === 'image' && /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
32584
32592
  className: "llm__product-media",
32585
- href: props.url,
32586
- target: "_blank",
32587
- rel: "noreferrer",
32588
- "aria-label": label('llm.tellMeMore'),
32589
32593
  children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
32590
32594
  className: "llm__product-asset",
32591
32595
  children: /*#__PURE__*/jsxRuntimeExports.jsx("img", {
@@ -32600,18 +32604,6 @@ void main(void) {
32600
32604
  },
32601
32605
  children: props.label
32602
32606
  })]
32603
- }), props.media.type === 'image' && !props.url && /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
32604
- className: "llm__product-media",
32605
- children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
32606
- className: "llm__product-asset",
32607
- children: /*#__PURE__*/jsxRuntimeExports.jsx("img", {
32608
- src: props.media.src,
32609
- alt: props.title
32610
- })
32611
- }), props.label && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
32612
- className: "llm__product-label",
32613
- children: props.label
32614
- })]
32615
32607
  }), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
32616
32608
  className: "llm__product-content",
32617
32609
  children: [props.sku && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
@@ -32619,15 +32611,7 @@ void main(void) {
32619
32611
  children: props.sku
32620
32612
  }), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
32621
32613
  className: "llm__product-grow",
32622
- children: [props.title && props.url && /*#__PURE__*/jsxRuntimeExports.jsx("a", {
32623
- className: "llm__product-title",
32624
- href: props.url,
32625
- target: "_blank",
32626
- rel: "noreferrer",
32627
- dangerouslySetInnerHTML: {
32628
- __html: props.title
32629
- }
32630
- }), props.title && !props.url && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
32614
+ children: [props.title && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
32631
32615
  className: "llm__product-title",
32632
32616
  dangerouslySetInnerHTML: {
32633
32617
  __html: props.title
@@ -32638,7 +32622,7 @@ void main(void) {
32638
32622
  __html: props.abstract
32639
32623
  }
32640
32624
  })]
32641
- }), price && fullPrice && /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
32625
+ }), hasPrice && /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
32642
32626
  className: "llm__product-prices",
32643
32627
  children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
32644
32628
  className: "llm__product-price",
@@ -32655,11 +32639,8 @@ void main(void) {
32655
32639
  }) : /*#__PURE__*/jsxRuntimeExports.jsx("div", {
32656
32640
  className: "llm__product-soldout",
32657
32641
  children: label('llm.soldOut')
32658
- })), props.cta && props.url && /*#__PURE__*/jsxRuntimeExports.jsxs("a", {
32642
+ })), props.cta && /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
32659
32643
  className: "llm__product-cta",
32660
- href: props.url,
32661
- target: "_blank",
32662
- rel: "noreferrer",
32663
32644
  children: [/*#__PURE__*/jsxRuntimeExports.jsx("span", {
32664
32645
  children: props.cta
32665
32646
  }), " ", /*#__PURE__*/jsxRuntimeExports.jsx(IconLlmChevronRightCircle, {})]
@@ -32695,7 +32676,7 @@ void main(void) {
32695
32676
  children: /*#__PURE__*/jsxRuntimeExports.jsx(GridRow, {
32696
32677
  rowGap: "2rem",
32697
32678
  children: props.items.map((item, i) => /*#__PURE__*/jsxRuntimeExports.jsx(Grid, {
32698
- sm: 6,
32679
+ xs: 6,
32699
32680
  md: 4,
32700
32681
  lg: 3,
32701
32682
  children: /*#__PURE__*/jsxRuntimeExports.jsx(Product, {