@websolutespa/bom-llm 0.0.27 → 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 +6 -0
- package/dist/umd/index.css +84 -8
- package/dist/umd/index.js +12 -32
- package/dist/umd/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/umd/index.css
CHANGED
|
@@ -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:
|
|
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,
|
|
2217
|
-
--grid-row-gap: var(--llm-grid-row-gap,
|
|
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("
|
|
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
|
});
|
|
@@ -32581,12 +32588,8 @@ void main(void) {
|
|
|
32581
32588
|
const labelKey = props.label ? `-${bundle_umd_minExports.slugify(props.label)}` : '';
|
|
32582
32589
|
return /*#__PURE__*/jsxRuntimeExports.jsxs(ProductWrapper, {
|
|
32583
32590
|
...props,
|
|
32584
|
-
children: [props.media.type === 'image' &&
|
|
32591
|
+
children: [props.media.type === 'image' && /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
32585
32592
|
className: "llm__product-media",
|
|
32586
|
-
href: props.url,
|
|
32587
|
-
target: "_blank",
|
|
32588
|
-
rel: "noreferrer",
|
|
32589
|
-
"aria-label": label('llm.tellMeMore'),
|
|
32590
32593
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
32591
32594
|
className: "llm__product-asset",
|
|
32592
32595
|
children: /*#__PURE__*/jsxRuntimeExports.jsx("img", {
|
|
@@ -32601,18 +32604,6 @@ void main(void) {
|
|
|
32601
32604
|
},
|
|
32602
32605
|
children: props.label
|
|
32603
32606
|
})]
|
|
32604
|
-
}), props.media.type === 'image' && !props.url && /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
32605
|
-
className: "llm__product-media",
|
|
32606
|
-
children: [/*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
32607
|
-
className: "llm__product-asset",
|
|
32608
|
-
children: /*#__PURE__*/jsxRuntimeExports.jsx("img", {
|
|
32609
|
-
src: props.media.src,
|
|
32610
|
-
alt: props.title
|
|
32611
|
-
})
|
|
32612
|
-
}), props.label && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
32613
|
-
className: "llm__product-label",
|
|
32614
|
-
children: props.label
|
|
32615
|
-
})]
|
|
32616
32607
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
32617
32608
|
className: "llm__product-content",
|
|
32618
32609
|
children: [props.sku && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
@@ -32620,15 +32611,7 @@ void main(void) {
|
|
|
32620
32611
|
children: props.sku
|
|
32621
32612
|
}), /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
32622
32613
|
className: "llm__product-grow",
|
|
32623
|
-
children: [props.title &&
|
|
32624
|
-
className: "llm__product-title",
|
|
32625
|
-
href: props.url,
|
|
32626
|
-
target: "_blank",
|
|
32627
|
-
rel: "noreferrer",
|
|
32628
|
-
dangerouslySetInnerHTML: {
|
|
32629
|
-
__html: props.title
|
|
32630
|
-
}
|
|
32631
|
-
}), props.title && !props.url && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
32614
|
+
children: [props.title && /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
32632
32615
|
className: "llm__product-title",
|
|
32633
32616
|
dangerouslySetInnerHTML: {
|
|
32634
32617
|
__html: props.title
|
|
@@ -32656,11 +32639,8 @@ void main(void) {
|
|
|
32656
32639
|
}) : /*#__PURE__*/jsxRuntimeExports.jsx("div", {
|
|
32657
32640
|
className: "llm__product-soldout",
|
|
32658
32641
|
children: label('llm.soldOut')
|
|
32659
|
-
})), props.cta &&
|
|
32642
|
+
})), props.cta && /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
|
|
32660
32643
|
className: "llm__product-cta",
|
|
32661
|
-
href: props.url,
|
|
32662
|
-
target: "_blank",
|
|
32663
|
-
rel: "noreferrer",
|
|
32664
32644
|
children: [/*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
32665
32645
|
children: props.cta
|
|
32666
32646
|
}), " ", /*#__PURE__*/jsxRuntimeExports.jsx(IconLlmChevronRightCircle, {})]
|
|
@@ -32696,7 +32676,7 @@ void main(void) {
|
|
|
32696
32676
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(GridRow, {
|
|
32697
32677
|
rowGap: "2rem",
|
|
32698
32678
|
children: props.items.map((item, i) => /*#__PURE__*/jsxRuntimeExports.jsx(Grid, {
|
|
32699
|
-
|
|
32679
|
+
xs: 6,
|
|
32700
32680
|
md: 4,
|
|
32701
32681
|
lg: 3,
|
|
32702
32682
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(Product, {
|