@websolutespa/bom-llm 0.0.23 → 0.0.25

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.25
4
+
5
+ ### Patch Changes
6
+
7
+ - f5d0129: Added: Product Card & Product Card Group
8
+
9
+ ## 0.0.24
10
+
11
+ ### Patch Changes
12
+
13
+ - Added: markdown llm_pill click handler
14
+
3
15
  ## 0.0.23
4
16
 
5
17
  ### Patch Changes
@@ -1056,8 +1056,8 @@ llm-embed {
1056
1056
  margin: 12px auto 0 auto;
1057
1057
  padding: 10px 20px;
1058
1058
  border-radius: 40px;
1059
- background: var(--llm-color-neutral-100);
1060
- color: var(--llm-color-base-100);
1059
+ background: var(--llm-trigger-cta-background);
1060
+ color: var(--llm-trigger-cta-foreground);
1061
1061
  font-weight: 800;
1062
1062
  font-size: inherit;
1063
1063
  }
@@ -1471,6 +1471,14 @@ llm-embed {
1471
1471
  background: var(--llm-input-background);
1472
1472
  width: 100%;
1473
1473
  }
1474
+ .llm .llm__prompt-input.-speech-supported > .llm__prompt-textarea {
1475
+ padding: 10px 40px;
1476
+ }
1477
+ @media (min-width: 1024px) {
1478
+ .llm .llm__prompt-input.-speech-supported > .llm__prompt-textarea {
1479
+ padding: 18px 40px;
1480
+ }
1481
+ }
1474
1482
  .llm .llm__prompt-textarea {
1475
1483
  appearance: none;
1476
1484
  display: block;
@@ -1508,14 +1516,6 @@ llm-embed {
1508
1516
  max-height: 220px;
1509
1517
  }
1510
1518
  }
1511
- .-speech-supported .llm .llm__prompt-textarea {
1512
- padding: 10px 40px;
1513
- }
1514
- @media (min-width: 1024px) {
1515
- .-speech-supported .llm .llm__prompt-textarea {
1516
- padding: 18px 40px;
1517
- }
1518
- }
1519
1519
  .llm .llm__prompt-speak, .llm .llm__prompt-microphone {
1520
1520
  position: absolute;
1521
1521
  display: flex;
@@ -1817,6 +1817,10 @@ llm-embed {
1817
1817
  height: 320px;
1818
1818
  object-fit: cover;
1819
1819
  }
1820
+ .llm .llm__message--assistant .llm__inner--string .llm__text .llm__text-body .llm__pill {
1821
+ max-width: max(400px, 30vw);
1822
+ margin-bottom: 1em;
1823
+ }
1820
1824
  .llm .llm__text-disclaimer {
1821
1825
  line-height: 1;
1822
1826
  font-family: var(--llm-font-secondary);
@@ -2206,6 +2210,379 @@ llm-embed {
2206
2210
  z-index: 10000;
2207
2211
  }
2208
2212
 
2213
+ .llm .llm__gridrow {
2214
+ --grid-columns: var(--llm-grid-columns, 12);
2215
+ --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);
2218
+ display: grid;
2219
+ grid-template-columns: repeat(var(--grid-columns), var(--grid-size));
2220
+ grid-column-gap: var(--grid-column-gap);
2221
+ grid-row-gap: var(--grid-row-gap);
2222
+ }
2223
+ .llm .llm__grid {
2224
+ --grid-column: var(--llm-grid-columns, 12);
2225
+ grid-column: span var(--grid-column);
2226
+ }
2227
+ .llm .llm__grid.--xs-1 {
2228
+ --grid-column: 1;
2229
+ }
2230
+ .llm .llm__grid.--xs-2 {
2231
+ --grid-column: 2;
2232
+ }
2233
+ .llm .llm__grid.--xs-3 {
2234
+ --grid-column: 3;
2235
+ }
2236
+ .llm .llm__grid.--xs-4 {
2237
+ --grid-column: 4;
2238
+ }
2239
+ @media (min-width: 768px) {
2240
+ .llm .llm__grid.--sm-1 {
2241
+ --grid-column: 1;
2242
+ }
2243
+ }
2244
+ @media (min-width: 768px) {
2245
+ .llm .llm__grid.--sm-2 {
2246
+ --grid-column: 2;
2247
+ }
2248
+ }
2249
+ @media (min-width: 768px) {
2250
+ .llm .llm__grid.--sm-3 {
2251
+ --grid-column: 3;
2252
+ }
2253
+ }
2254
+ @media (min-width: 768px) {
2255
+ .llm .llm__grid.--sm-4 {
2256
+ --grid-column: 4;
2257
+ }
2258
+ }
2259
+ @media (min-width: 1024px) {
2260
+ .llm .llm__grid.--md-1 {
2261
+ --grid-column: 1;
2262
+ }
2263
+ }
2264
+ @media (min-width: 1024px) {
2265
+ .llm .llm__grid.--md-2 {
2266
+ --grid-column: 2;
2267
+ }
2268
+ }
2269
+ @media (min-width: 1024px) {
2270
+ .llm .llm__grid.--md-3 {
2271
+ --grid-column: 3;
2272
+ }
2273
+ }
2274
+ @media (min-width: 1024px) {
2275
+ .llm .llm__grid.--md-4 {
2276
+ --grid-column: 4;
2277
+ }
2278
+ }
2279
+ @media (min-width: 1024px) {
2280
+ .llm .llm__grid.--md-5 {
2281
+ --grid-column: 5;
2282
+ }
2283
+ }
2284
+ @media (min-width: 1024px) {
2285
+ .llm .llm__grid.--md-6 {
2286
+ --grid-column: 6;
2287
+ }
2288
+ }
2289
+ @media (min-width: 1024px) {
2290
+ .llm .llm__grid.--md-7 {
2291
+ --grid-column: 7;
2292
+ }
2293
+ }
2294
+ @media (min-width: 1024px) {
2295
+ .llm .llm__grid.--md-8 {
2296
+ --grid-column: 8;
2297
+ }
2298
+ }
2299
+ @media (min-width: 1024px) {
2300
+ .llm .llm__grid.--md-9 {
2301
+ --grid-column: 9;
2302
+ }
2303
+ }
2304
+ @media (min-width: 1024px) {
2305
+ .llm .llm__grid.--md-10 {
2306
+ --grid-column: 10;
2307
+ }
2308
+ }
2309
+ @media (min-width: 1024px) {
2310
+ .llm .llm__grid.--md-11 {
2311
+ --grid-column: 11;
2312
+ }
2313
+ }
2314
+ @media (min-width: 1024px) {
2315
+ .llm .llm__grid.--md-12 {
2316
+ --grid-column: 12;
2317
+ }
2318
+ }
2319
+ @media (min-width: 1440px) {
2320
+ .llm .llm__grid.--lg-1 {
2321
+ --grid-column: 1;
2322
+ }
2323
+ }
2324
+ @media (min-width: 1440px) {
2325
+ .llm .llm__grid.--lg-2 {
2326
+ --grid-column: 2;
2327
+ }
2328
+ }
2329
+ @media (min-width: 1440px) {
2330
+ .llm .llm__grid.--lg-3 {
2331
+ --grid-column: 3;
2332
+ }
2333
+ }
2334
+ @media (min-width: 1440px) {
2335
+ .llm .llm__grid.--lg-4 {
2336
+ --grid-column: 4;
2337
+ }
2338
+ }
2339
+ @media (min-width: 1440px) {
2340
+ .llm .llm__grid.--lg-5 {
2341
+ --grid-column: 5;
2342
+ }
2343
+ }
2344
+ @media (min-width: 1440px) {
2345
+ .llm .llm__grid.--lg-6 {
2346
+ --grid-column: 6;
2347
+ }
2348
+ }
2349
+ @media (min-width: 1440px) {
2350
+ .llm .llm__grid.--lg-7 {
2351
+ --grid-column: 7;
2352
+ }
2353
+ }
2354
+ @media (min-width: 1440px) {
2355
+ .llm .llm__grid.--lg-8 {
2356
+ --grid-column: 8;
2357
+ }
2358
+ }
2359
+ @media (min-width: 1440px) {
2360
+ .llm .llm__grid.--lg-9 {
2361
+ --grid-column: 9;
2362
+ }
2363
+ }
2364
+ @media (min-width: 1440px) {
2365
+ .llm .llm__grid.--lg-10 {
2366
+ --grid-column: 10;
2367
+ }
2368
+ }
2369
+ @media (min-width: 1440px) {
2370
+ .llm .llm__grid.--lg-11 {
2371
+ --grid-column: 11;
2372
+ }
2373
+ }
2374
+ @media (min-width: 1440px) {
2375
+ .llm .llm__grid.--lg-12 {
2376
+ --grid-column: 12;
2377
+ }
2378
+ }
2379
+ @media (min-width: 1600px) {
2380
+ .llm .llm__grid.--xl-1 {
2381
+ --grid-column: 1;
2382
+ }
2383
+ }
2384
+ @media (min-width: 1600px) {
2385
+ .llm .llm__grid.--xl-2 {
2386
+ --grid-column: 2;
2387
+ }
2388
+ }
2389
+ @media (min-width: 1600px) {
2390
+ .llm .llm__grid.--xl-3 {
2391
+ --grid-column: 3;
2392
+ }
2393
+ }
2394
+ @media (min-width: 1600px) {
2395
+ .llm .llm__grid.--xl-4 {
2396
+ --grid-column: 4;
2397
+ }
2398
+ }
2399
+ @media (min-width: 1600px) {
2400
+ .llm .llm__grid.--xl-5 {
2401
+ --grid-column: 5;
2402
+ }
2403
+ }
2404
+ @media (min-width: 1600px) {
2405
+ .llm .llm__grid.--xl-6 {
2406
+ --grid-column: 6;
2407
+ }
2408
+ }
2409
+ @media (min-width: 1600px) {
2410
+ .llm .llm__grid.--xl-7 {
2411
+ --grid-column: 7;
2412
+ }
2413
+ }
2414
+ @media (min-width: 1600px) {
2415
+ .llm .llm__grid.--xl-8 {
2416
+ --grid-column: 8;
2417
+ }
2418
+ }
2419
+ @media (min-width: 1600px) {
2420
+ .llm .llm__grid.--xl-9 {
2421
+ --grid-column: 9;
2422
+ }
2423
+ }
2424
+ @media (min-width: 1600px) {
2425
+ .llm .llm__grid.--xl-10 {
2426
+ --grid-column: 10;
2427
+ }
2428
+ }
2429
+ @media (min-width: 1600px) {
2430
+ .llm .llm__grid.--xl-11 {
2431
+ --grid-column: 11;
2432
+ }
2433
+ }
2434
+ @media (min-width: 1600px) {
2435
+ .llm .llm__grid.--xl-12 {
2436
+ --grid-column: 12;
2437
+ }
2438
+ }
2439
+
2440
+ .llm .llm__product {
2441
+ position: relative;
2442
+ display: flex;
2443
+ flex-direction: column;
2444
+ justify-content: flex-end;
2445
+ border-radius: 0.6rem;
2446
+ border: 1px solid var(--llm-product-border);
2447
+ background: var(--llm-product-background);
2448
+ color: var(--llm-product-foreground);
2449
+ overflow: hidden;
2450
+ font-weight: 100;
2451
+ }
2452
+ .llm .llm__product-media {
2453
+ position: relative;
2454
+ padding: 1rem;
2455
+ }
2456
+ .llm .llm__product-asset {
2457
+ display: flex;
2458
+ justify-content: center;
2459
+ align-items: center;
2460
+ aspect-ratio: var(--llm-product-aspect-ratio);
2461
+ overflow: hidden;
2462
+ background: var(--llm-color-neutral-200);
2463
+ }
2464
+ .llm .llm__product-asset > img {
2465
+ width: 100%;
2466
+ height: 100%;
2467
+ object-fit: cover;
2468
+ background: var(--llm-color-neutral-200);
2469
+ }
2470
+ .llm .llm__product-content {
2471
+ position: relative;
2472
+ display: flex;
2473
+ flex-direction: column;
2474
+ padding: 1rem;
2475
+ row-gap: 0.5em;
2476
+ height: 100%;
2477
+ }
2478
+ .llm .llm__product-label {
2479
+ font-size: 0.8rem;
2480
+ line-height: 1.25;
2481
+ position: absolute;
2482
+ top: 1rem;
2483
+ left: 1rem;
2484
+ padding: 0.4rem 0.8rem;
2485
+ border-radius: 0.5rem;
2486
+ letter-spacing: 0.05rem;
2487
+ font-weight: 400;
2488
+ background: var(--llm-product-label-background);
2489
+ color: var(--llm-product-label-foreground);
2490
+ }
2491
+ .llm .llm__product-sku {
2492
+ line-height: 1;
2493
+ font-family: var(--llm-font-primary);
2494
+ font-weight: var(--llm-typography-label1-font-weight);
2495
+ line-height: var(--llm-typography-label1-line-height);
2496
+ letter-spacing: var(--llm-typography-label1-letter-spacing);
2497
+ 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);
2498
+ font-weight: 700;
2499
+ }
2500
+ .llm .llm__product-title {
2501
+ line-height: 1;
2502
+ font-family: var(--llm-font-primary);
2503
+ font-weight: var(--llm-typography-body4-font-weight);
2504
+ line-height: var(--llm-typography-body4-line-height);
2505
+ letter-spacing: var(--llm-typography-body4-letter-spacing);
2506
+ 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);
2507
+ font-weight: 100;
2508
+ flex-grow: 1;
2509
+ }
2510
+ .llm .llm__product-title:hover {
2511
+ text-decoration: underline;
2512
+ }
2513
+ .llm .llm__product-abstract {
2514
+ line-height: 1;
2515
+ font-family: var(--llm-font-secondary);
2516
+ font-weight: var(--llm-typography-body5-font-weight);
2517
+ line-height: var(--llm-typography-body5-line-height);
2518
+ letter-spacing: var(--llm-typography-body5-letter-spacing);
2519
+ 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);
2520
+ font-weight: 100;
2521
+ flex-grow: 1;
2522
+ }
2523
+ .llm .llm__product-prices {
2524
+ display: flex;
2525
+ column-gap: 1em;
2526
+ }
2527
+ .llm .llm__product-price {
2528
+ line-height: 1;
2529
+ font-family: var(--llm-font-primary);
2530
+ font-weight: var(--llm-typography-label1-font-weight);
2531
+ line-height: var(--llm-typography-label1-line-height);
2532
+ letter-spacing: var(--llm-typography-label1-letter-spacing);
2533
+ 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);
2534
+ font-weight: 400;
2535
+ }
2536
+ .llm .llm__product-fullprice {
2537
+ line-height: 1;
2538
+ font-family: var(--llm-font-primary);
2539
+ font-weight: var(--llm-typography-label1-font-weight);
2540
+ line-height: var(--llm-typography-label1-line-height);
2541
+ letter-spacing: var(--llm-typography-label1-letter-spacing);
2542
+ 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);
2543
+ text-decoration: line-through;
2544
+ opacity: 0.5;
2545
+ }
2546
+ .llm .llm__product-available {
2547
+ color: var(--llm-product-available);
2548
+ }
2549
+ .llm .llm__product-soldout {
2550
+ color: var(--llm-product-soldout);
2551
+ }
2552
+ .llm .llm__product-ctas {
2553
+ display: flex;
2554
+ justify-content: center;
2555
+ gap: clamp(24px, 24px + (100vw - 375px) / 1545 * 8, 32px);
2556
+ padding-top: clamp(8px, 8px + (100vw - 375px) / 1545 * 8, 16px);
2557
+ margin-top: auto;
2558
+ }
2559
+ .llm .llm__product-cta {
2560
+ display: flex;
2561
+ align-items: center;
2562
+ gap: 0.5em;
2563
+ margin: 0 auto;
2564
+ line-height: 1;
2565
+ font-family: var(--llm-font-primary);
2566
+ font-weight: var(--llm-typography-body4-font-weight);
2567
+ line-height: var(--llm-typography-body4-line-height);
2568
+ letter-spacing: var(--llm-typography-body4-letter-spacing);
2569
+ 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);
2570
+ font-weight: 700;
2571
+ }
2572
+ .llm .llm__product-cta svg {
2573
+ fill: currentColor;
2574
+ width: 24px;
2575
+ height: 24px;
2576
+ }
2577
+
2578
+ .llm .llm__products {
2579
+ width: 100%;
2580
+ margin: 3rem 0;
2581
+ }
2582
+ .llm .llm__product {
2583
+ height: 100%;
2584
+ }
2585
+
2209
2586
  .llm .llm__event-inner {
2210
2587
  border-radius: 5px;
2211
2588
  background: rgba(0, 60, 140, 0.8);
@@ -2696,7 +3073,6 @@ llm-embed {
2696
3073
  margin-bottom: 20vh;
2697
3074
  }
2698
3075
  .llm .llm__inner {
2699
- width: 100%;
2700
3076
  margin: 0 clamp(20px, 20px + (100vw - 375px) / 1545 * 90, 110px);
2701
3077
  }
2702
3078
  .llm .llm__inner--cardGroup {