@websolutespa/bom-mixer-llm 1.8.3 → 1.8.4
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 +6 -0
- package/dist/cjs/index.css +15 -3
- package/dist/cjs/index.js +30 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.css +15 -3
- package/dist/esm/llm/components/Product/product.js +28 -22
- package/dist/esm/llm/components/Product/product.js.map +1 -1
- package/dist/esm/llm/components/ProductGroup/product-group.js +0 -1
- package/dist/esm/llm/components/ProductGroup/product-group.js.map +1 -1
- package/dist/esm/llm/theme.js.map +1 -1
- package/dist/esm/llm/theme.json.js +2 -2
- package/dist/types/llm/components/Product/product.d.ts.map +1 -1
- package/dist/types/llm/theme.d.ts +2 -1
- package/dist/types/llm/theme.d.ts.map +1 -1
- package/dist/types/useLlm/mock-app.silicon.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/llm/components/Product/_style.scss +16 -2
- package/src/llm/components/Product/product.tsx +32 -12
- package/src/llm/components/ProductGroup/_style.scss +2 -1
- package/src/llm/components/ProductGroup/product-group.tsx +1 -1
- package/src/llm/theme.json +2 -2
- package/src/llm/theme.ts +1 -1
- package/src/useLlm/mock-app.silicon.ts +18 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/index.css
CHANGED
|
@@ -2363,6 +2363,9 @@ llm-embed {
|
|
|
2363
2363
|
font-size: clamp(var(--llm-typography-label1-font-size-min) * 1px, var(--llm-typography-label1-font-size-min) * 1px + (100vw - 375px) / 1545 * (var(--llm-typography-label1-font-size-max) - var(--llm-typography-label1-font-size-min)), var(--llm-typography-label1-font-size-max) * 1px);
|
|
2364
2364
|
font-weight: 700;
|
|
2365
2365
|
}
|
|
2366
|
+
.llm .llm__product-grow {
|
|
2367
|
+
flex-grow: 1;
|
|
2368
|
+
}
|
|
2366
2369
|
.llm .llm__product-title {
|
|
2367
2370
|
line-height: 1;
|
|
2368
2371
|
font-family: var(--llm-font-primary);
|
|
@@ -2371,7 +2374,11 @@ llm-embed {
|
|
|
2371
2374
|
letter-spacing: var(--llm-typography-body4-letter-spacing);
|
|
2372
2375
|
font-size: clamp(var(--llm-typography-body4-font-size-min) * 1px, var(--llm-typography-body4-font-size-min) * 1px + (100vw - 375px) / 1545 * (var(--llm-typography-body4-font-size-max) - var(--llm-typography-body4-font-size-min)), var(--llm-typography-body4-font-size-max) * 1px);
|
|
2373
2376
|
font-weight: 100;
|
|
2374
|
-
|
|
2377
|
+
overflow: hidden;
|
|
2378
|
+
text-overflow: ellipsis;
|
|
2379
|
+
display: -webkit-box;
|
|
2380
|
+
-webkit-line-clamp: 2;
|
|
2381
|
+
-webkit-box-orient: vertical;
|
|
2375
2382
|
}
|
|
2376
2383
|
.llm .llm__product-title:hover {
|
|
2377
2384
|
text-decoration: underline;
|
|
@@ -2384,7 +2391,11 @@ llm-embed {
|
|
|
2384
2391
|
letter-spacing: var(--llm-typography-body5-letter-spacing);
|
|
2385
2392
|
font-size: clamp(var(--llm-typography-body5-font-size-min) * 1px, var(--llm-typography-body5-font-size-min) * 1px + (100vw - 375px) / 1545 * (var(--llm-typography-body5-font-size-max) - var(--llm-typography-body5-font-size-min)), var(--llm-typography-body5-font-size-max) * 1px);
|
|
2386
2393
|
font-weight: 100;
|
|
2387
|
-
|
|
2394
|
+
overflow: hidden;
|
|
2395
|
+
text-overflow: ellipsis;
|
|
2396
|
+
display: -webkit-box;
|
|
2397
|
+
-webkit-line-clamp: 2;
|
|
2398
|
+
-webkit-box-orient: vertical;
|
|
2388
2399
|
}
|
|
2389
2400
|
.llm .llm__product-prices {
|
|
2390
2401
|
display: flex;
|
|
@@ -2443,7 +2454,8 @@ llm-embed {
|
|
|
2443
2454
|
|
|
2444
2455
|
.llm .llm__products {
|
|
2445
2456
|
width: 100%;
|
|
2446
|
-
|
|
2457
|
+
max-width: 1440px;
|
|
2458
|
+
margin: 3rem auto;
|
|
2447
2459
|
}
|
|
2448
2460
|
.llm .llm__product {
|
|
2449
2461
|
height: 100%;
|
package/dist/cjs/index.js
CHANGED
|
@@ -17,6 +17,7 @@ var react$1 = require('swiper/react');
|
|
|
17
17
|
var swiper = require('swiper');
|
|
18
18
|
var reactDom = require('react-dom');
|
|
19
19
|
var marked = require('marked');
|
|
20
|
+
var transliteration = require('transliteration');
|
|
20
21
|
|
|
21
22
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
22
23
|
|
|
@@ -157,8 +158,8 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
157
158
|
};
|
|
158
159
|
|
|
159
160
|
var font = {
|
|
160
|
-
primary: "Aeonik",
|
|
161
|
-
secondary: "Capraia"
|
|
161
|
+
primary: "Aeonik, Arial, Helvetica, sans-serif",
|
|
162
|
+
secondary: "Capraia, Georgia, serif"
|
|
162
163
|
};
|
|
163
164
|
var typography = {
|
|
164
165
|
display1: {
|
|
@@ -4860,6 +4861,7 @@ const Product = props => {
|
|
|
4860
4861
|
const fullPrice = asNumber(props.fullPrice) || price;
|
|
4861
4862
|
const availability = asNumber(props.availability);
|
|
4862
4863
|
const hasAvailability = props.availability != null;
|
|
4864
|
+
const labelKey = props.label ? `-${transliteration.slugify(props.label)}` : '';
|
|
4863
4865
|
return jsxRuntime.jsxs(ProductWrapper, Object.assign({}, props, {
|
|
4864
4866
|
children: [props.media.type === 'image' && props.url && jsxRuntime.jsxs("a", {
|
|
4865
4867
|
className: "llm__product-media",
|
|
@@ -4875,6 +4877,10 @@ const Product = props => {
|
|
|
4875
4877
|
})
|
|
4876
4878
|
}), props.label && jsxRuntime.jsx("div", {
|
|
4877
4879
|
className: "llm__product-label",
|
|
4880
|
+
style: {
|
|
4881
|
+
background: `var(--llm-product-label${labelKey}-background, var(--llm-product-label-background))`,
|
|
4882
|
+
color: `var(--llm-product-label${labelKey}-foreground, var(--llm-product-label-foreground))`
|
|
4883
|
+
},
|
|
4878
4884
|
children: props.label
|
|
4879
4885
|
})]
|
|
4880
4886
|
}), props.media.type === 'image' && !props.url && jsxRuntime.jsxs("div", {
|
|
@@ -4894,24 +4900,27 @@ const Product = props => {
|
|
|
4894
4900
|
children: [props.sku && jsxRuntime.jsx("div", {
|
|
4895
4901
|
className: "llm__product-sku",
|
|
4896
4902
|
children: props.sku
|
|
4897
|
-
}),
|
|
4898
|
-
className: "llm__product-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4903
|
+
}), jsxRuntime.jsxs("div", {
|
|
4904
|
+
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", {
|
|
4914
|
+
className: "llm__product-title",
|
|
4915
|
+
dangerouslySetInnerHTML: {
|
|
4916
|
+
__html: props.title
|
|
4917
|
+
}
|
|
4918
|
+
}), props.abstract && jsxRuntime.jsx("div", {
|
|
4919
|
+
className: "llm__product-abstract",
|
|
4920
|
+
dangerouslySetInnerHTML: {
|
|
4921
|
+
__html: props.abstract
|
|
4922
|
+
}
|
|
4923
|
+
})]
|
|
4915
4924
|
}), price && fullPrice && jsxRuntime.jsxs("div", {
|
|
4916
4925
|
className: "llm__product-prices",
|
|
4917
4926
|
children: [jsxRuntime.jsx("div", {
|
|
@@ -4921,10 +4930,7 @@ const Product = props => {
|
|
|
4921
4930
|
className: "llm__product-fullprice",
|
|
4922
4931
|
children: currency(fullPrice)
|
|
4923
4932
|
})]
|
|
4924
|
-
}), hasAvailability && (availability ?
|
|
4925
|
-
className: "llm__product-available",
|
|
4926
|
-
children: label('llm.available')
|
|
4927
|
-
}) : jsxRuntime.jsx("div", {
|
|
4933
|
+
}), hasAvailability && (availability ? jsxRuntime.jsx("div", {
|
|
4928
4934
|
className: "llm__product-available",
|
|
4929
4935
|
children: label('llm.availability', {
|
|
4930
4936
|
availability: availability
|
|
@@ -4975,7 +4981,6 @@ const ProductGroup = props => {
|
|
|
4975
4981
|
sm: 6,
|
|
4976
4982
|
md: 4,
|
|
4977
4983
|
lg: 3,
|
|
4978
|
-
xl: 2,
|
|
4979
4984
|
children: jsxRuntime.jsx(Product, Object.assign({}, item))
|
|
4980
4985
|
}, i))
|
|
4981
4986
|
})
|