@websolutespa/bom-mixer-llm 1.8.4 → 1.8.6

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-mixer-llm
2
2
 
3
+ ## 1.8.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: Product Card & Product Card Group style
8
+
9
+ ## 1.8.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Modified: Product hasPrice
14
+
3
15
  ## 1.8.4
4
16
 
5
17
  ### Patch Changes
@@ -1327,7 +1327,7 @@ llm-embed {
1327
1327
  gap: clamp(8px, 8px + (100vw - 375px) / 1545 * 0, 8px);
1328
1328
  display: flex;
1329
1329
  flex-wrap: nowrap;
1330
- align-items: flex-end;
1330
+ align-items: center;
1331
1331
  }
1332
1332
  .llm .llm__prompt-input {
1333
1333
  position: relative;
@@ -1492,15 +1492,21 @@ llm-embed {
1492
1492
  justify-content: center;
1493
1493
  align-items: center;
1494
1494
  column-gap: 4px;
1495
- padding: 6px 0;
1496
1495
  right: 0;
1497
1496
  left: 0;
1498
- font-size: 12px;
1499
1497
  color: var(--llm-color-foreground);
1500
1498
  opacity: 0.4;
1501
1499
  transition: opacity ease-in-out 250ms;
1502
1500
  pointer-events: auto;
1503
1501
  cursor: pointer;
1502
+ padding: 4px 0 0 0;
1503
+ font-size: 11px;
1504
+ }
1505
+ @media (min-width: 1024px) {
1506
+ .llm .llm__prompt-powered-by {
1507
+ padding: 6px 0;
1508
+ font-size: 12px;
1509
+ }
1504
1510
  }
1505
1511
  .llm .llm__prompt-powered-by:hover {
1506
1512
  opacity: 1;
@@ -2079,13 +2085,19 @@ llm-embed {
2079
2085
  .llm .llm__gridrow {
2080
2086
  --grid-columns: var(--llm-grid-columns, 12);
2081
2087
  --grid-size: var(--llm-grid-size, 1fr);
2082
- --grid-column-gap: var(--llm-grid-column-gap, 2rem);
2083
- --grid-row-gap: var(--llm-grid-row-gap, 2rem);
2088
+ --grid-column-gap: var(--llm-grid-column-gap, 1rem);
2089
+ --grid-row-gap: var(--llm-grid-row-gap, 1rem);
2084
2090
  display: grid;
2085
2091
  grid-template-columns: repeat(var(--grid-columns), var(--grid-size));
2086
2092
  grid-column-gap: var(--grid-column-gap);
2087
2093
  grid-row-gap: var(--grid-row-gap);
2088
2094
  }
2095
+ @media (min-width: 768px) {
2096
+ .llm .llm__gridrow {
2097
+ --grid-column-gap: var(--llm-grid-column-gap, 2rem);
2098
+ --grid-row-gap: var(--llm-grid-row-gap, 2rem);
2099
+ }
2100
+ }
2089
2101
  .llm .llm__grid {
2090
2102
  --grid-column: var(--llm-grid-columns, 12);
2091
2103
  grid-column: span var(--grid-column);
@@ -2102,6 +2114,30 @@ llm-embed {
2102
2114
  .llm .llm__grid.--xs-4 {
2103
2115
  --grid-column: 4;
2104
2116
  }
2117
+ .llm .llm__grid.--xs-5 {
2118
+ --grid-column: 5;
2119
+ }
2120
+ .llm .llm__grid.--xs-6 {
2121
+ --grid-column: 6;
2122
+ }
2123
+ .llm .llm__grid.--xs-7 {
2124
+ --grid-column: 7;
2125
+ }
2126
+ .llm .llm__grid.--xs-8 {
2127
+ --grid-column: 8;
2128
+ }
2129
+ .llm .llm__grid.--xs-9 {
2130
+ --grid-column: 9;
2131
+ }
2132
+ .llm .llm__grid.--xs-10 {
2133
+ --grid-column: 10;
2134
+ }
2135
+ .llm .llm__grid.--xs-11 {
2136
+ --grid-column: 11;
2137
+ }
2138
+ .llm .llm__grid.--xs-12 {
2139
+ --grid-column: 12;
2140
+ }
2105
2141
  @media (min-width: 768px) {
2106
2142
  .llm .llm__grid.--sm-1 {
2107
2143
  --grid-column: 1;
@@ -2122,6 +2158,46 @@ llm-embed {
2122
2158
  --grid-column: 4;
2123
2159
  }
2124
2160
  }
2161
+ @media (min-width: 768px) {
2162
+ .llm .llm__grid.--sm-5 {
2163
+ --grid-column: 5;
2164
+ }
2165
+ }
2166
+ @media (min-width: 768px) {
2167
+ .llm .llm__grid.--sm-6 {
2168
+ --grid-column: 6;
2169
+ }
2170
+ }
2171
+ @media (min-width: 768px) {
2172
+ .llm .llm__grid.--sm-7 {
2173
+ --grid-column: 7;
2174
+ }
2175
+ }
2176
+ @media (min-width: 768px) {
2177
+ .llm .llm__grid.--sm-8 {
2178
+ --grid-column: 8;
2179
+ }
2180
+ }
2181
+ @media (min-width: 768px) {
2182
+ .llm .llm__grid.--sm-9 {
2183
+ --grid-column: 9;
2184
+ }
2185
+ }
2186
+ @media (min-width: 768px) {
2187
+ .llm .llm__grid.--sm-10 {
2188
+ --grid-column: 10;
2189
+ }
2190
+ }
2191
+ @media (min-width: 768px) {
2192
+ .llm .llm__grid.--sm-11 {
2193
+ --grid-column: 11;
2194
+ }
2195
+ }
2196
+ @media (min-width: 768px) {
2197
+ .llm .llm__grid.--sm-12 {
2198
+ --grid-column: 12;
2199
+ }
2200
+ }
2125
2201
  @media (min-width: 1024px) {
2126
2202
  .llm .llm__grid.--md-1 {
2127
2203
  --grid-column: 1;
@@ -2315,6 +2391,9 @@ llm-embed {
2315
2391
  overflow: hidden;
2316
2392
  font-weight: 100;
2317
2393
  }
2394
+ .llm .llm__product:hover .llm__product-title {
2395
+ text-decoration: underline;
2396
+ }
2318
2397
  .llm .llm__product-media {
2319
2398
  position: relative;
2320
2399
  padding: 1rem;
@@ -2380,9 +2459,6 @@ llm-embed {
2380
2459
  -webkit-line-clamp: 2;
2381
2460
  -webkit-box-orient: vertical;
2382
2461
  }
2383
- .llm .llm__product-title:hover {
2384
- text-decoration: underline;
2385
- }
2386
2462
  .llm .llm__product-abstract {
2387
2463
  line-height: 1;
2388
2464
  font-family: var(--llm-font-secondary);
package/dist/cjs/index.js CHANGED
@@ -4846,7 +4846,14 @@ const ProductWrapper = _a => {
4846
4846
  props = __rest(_a, ["children"]);
4847
4847
  // const label = useLabel();
4848
4848
  const classNames = bomCore.getClassNames('llm__product', `llm__product--${props.productType}`);
4849
- return jsxRuntime.jsx("div", {
4849
+ return props.url ? jsxRuntime.jsx("a", {
4850
+ className: classNames,
4851
+ href: props.url,
4852
+ target: "_blank",
4853
+ rel: "noreferrer",
4854
+ "aria-label": props.title,
4855
+ children: children
4856
+ }) : jsxRuntime.jsx("div", {
4850
4857
  className: classNames,
4851
4858
  children: children
4852
4859
  });
@@ -4859,16 +4866,13 @@ const Product = props => {
4859
4866
  }
4860
4867
  const price = asNumber(props.price);
4861
4868
  const fullPrice = asNumber(props.fullPrice) || price;
4869
+ const hasPrice = props.price != null;
4862
4870
  const availability = asNumber(props.availability);
4863
4871
  const hasAvailability = props.availability != null;
4864
4872
  const labelKey = props.label ? `-${transliteration.slugify(props.label)}` : '';
4865
4873
  return jsxRuntime.jsxs(ProductWrapper, Object.assign({}, props, {
4866
- children: [props.media.type === 'image' && props.url && jsxRuntime.jsxs("a", {
4874
+ children: [props.media.type === 'image' && jsxRuntime.jsxs("div", {
4867
4875
  className: "llm__product-media",
4868
- href: props.url,
4869
- target: "_blank",
4870
- rel: "noreferrer",
4871
- "aria-label": label('llm.tellMeMore'),
4872
4876
  children: [jsxRuntime.jsx("div", {
4873
4877
  className: "llm__product-asset",
4874
4878
  children: jsxRuntime.jsx("img", {
@@ -4883,18 +4887,6 @@ const Product = props => {
4883
4887
  },
4884
4888
  children: props.label
4885
4889
  })]
4886
- }), props.media.type === 'image' && !props.url && jsxRuntime.jsxs("div", {
4887
- className: "llm__product-media",
4888
- children: [jsxRuntime.jsx("div", {
4889
- className: "llm__product-asset",
4890
- children: jsxRuntime.jsx("img", {
4891
- src: props.media.src,
4892
- alt: props.title
4893
- })
4894
- }), props.label && jsxRuntime.jsx("div", {
4895
- className: "llm__product-label",
4896
- children: props.label
4897
- })]
4898
4890
  }), jsxRuntime.jsxs("div", {
4899
4891
  className: "llm__product-content",
4900
4892
  children: [props.sku && jsxRuntime.jsx("div", {
@@ -4902,15 +4894,7 @@ const Product = props => {
4902
4894
  children: props.sku
4903
4895
  }), jsxRuntime.jsxs("div", {
4904
4896
  className: "llm__product-grow",
4905
- children: [props.title && props.url && jsxRuntime.jsx("a", {
4906
- className: "llm__product-title",
4907
- href: props.url,
4908
- target: "_blank",
4909
- rel: "noreferrer",
4910
- dangerouslySetInnerHTML: {
4911
- __html: props.title
4912
- }
4913
- }), props.title && !props.url && jsxRuntime.jsx("div", {
4897
+ children: [props.title && jsxRuntime.jsx("div", {
4914
4898
  className: "llm__product-title",
4915
4899
  dangerouslySetInnerHTML: {
4916
4900
  __html: props.title
@@ -4921,7 +4905,7 @@ const Product = props => {
4921
4905
  __html: props.abstract
4922
4906
  }
4923
4907
  })]
4924
- }), price && fullPrice && jsxRuntime.jsxs("div", {
4908
+ }), hasPrice && jsxRuntime.jsxs("div", {
4925
4909
  className: "llm__product-prices",
4926
4910
  children: [jsxRuntime.jsx("div", {
4927
4911
  className: "llm__product-price",
@@ -4938,11 +4922,8 @@ const Product = props => {
4938
4922
  }) : jsxRuntime.jsx("div", {
4939
4923
  className: "llm__product-soldout",
4940
4924
  children: label('llm.soldOut')
4941
- })), props.cta && props.url && jsxRuntime.jsxs("a", {
4925
+ })), props.cta && jsxRuntime.jsxs("div", {
4942
4926
  className: "llm__product-cta",
4943
- href: props.url,
4944
- target: "_blank",
4945
- rel: "noreferrer",
4946
4927
  children: [jsxRuntime.jsx("span", {
4947
4928
  children: props.cta
4948
4929
  }), " ", jsxRuntime.jsx(bomMixerIcons.IconLlmChevronRightCircle, {})]
@@ -4978,7 +4959,7 @@ const ProductGroup = props => {
4978
4959
  children: jsxRuntime.jsx(GridRow, {
4979
4960
  rowGap: "2rem",
4980
4961
  children: props.items.map((item, i) => jsxRuntime.jsx(Grid, {
4981
- sm: 6,
4962
+ xs: 6,
4982
4963
  md: 4,
4983
4964
  lg: 3,
4984
4965
  children: jsxRuntime.jsx(Product, Object.assign({}, item))