@websolutespa/bom-mixer-llm 1.8.2 → 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.
Files changed (64) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/index.css +387 -3
  3. package/dist/cjs/index.js +426 -223
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/esm/index.css +387 -3
  6. package/dist/esm/llm/components/Chunk/chunk.js +9 -0
  7. package/dist/esm/llm/components/Chunk/chunk.js.map +1 -1
  8. package/dist/esm/llm/components/Grid/grid.js +25 -0
  9. package/dist/esm/llm/components/Grid/grid.js.map +1 -0
  10. package/dist/esm/llm/components/Product/product.js +121 -0
  11. package/dist/esm/llm/components/Product/product.js.map +1 -0
  12. package/dist/esm/llm/components/ProductGroup/product-group.js +23 -0
  13. package/dist/esm/llm/components/ProductGroup/product-group.js.map +1 -0
  14. package/dist/esm/llm/components/Scroller/scroller.js +8 -2
  15. package/dist/esm/llm/components/Scroller/scroller.js.map +1 -1
  16. package/dist/esm/llm/theme.js +2 -235
  17. package/dist/esm/llm/theme.js.map +1 -1
  18. package/dist/esm/llm/theme.json.js +267 -0
  19. package/dist/esm/llm/theme.json.js.map +1 -0
  20. package/dist/esm/useLlm/message.service.js +10 -0
  21. package/dist/esm/useLlm/message.service.js.map +1 -1
  22. package/dist/types/llm/components/Chunk/chunk.d.ts.map +1 -1
  23. package/dist/types/llm/components/Grid/grid.d.ts +19 -0
  24. package/dist/types/llm/components/Grid/grid.d.ts.map +1 -0
  25. package/dist/types/llm/components/Product/product-cta.d.ts +7 -0
  26. package/dist/types/llm/components/Product/product-cta.d.ts.map +1 -0
  27. package/dist/types/llm/components/Product/product.d.ts +7 -0
  28. package/dist/types/llm/components/Product/product.d.ts.map +1 -0
  29. package/dist/types/llm/components/ProductGroup/product-group.d.ts +3 -0
  30. package/dist/types/llm/components/ProductGroup/product-group.d.ts.map +1 -0
  31. package/dist/types/llm/components/ProductGroupSlider/product-group-slider.d.ts +3 -0
  32. package/dist/types/llm/components/ProductGroupSlider/product-group-slider.d.ts.map +1 -0
  33. package/dist/types/llm/components/Scroller/scroller.d.ts.map +1 -1
  34. package/dist/types/llm/theme.d.ts +39 -245
  35. package/dist/types/llm/theme.d.ts.map +1 -1
  36. package/dist/types/types.d.ts +32 -1
  37. package/dist/types/types.d.ts.map +1 -1
  38. package/dist/types/useLlm/message.service.d.ts.map +1 -1
  39. package/dist/types/useLlm/mock-app.silicon.d.ts +3 -0
  40. package/dist/types/useLlm/mock-app.silicon.d.ts.map +1 -0
  41. package/dist/types/useLlm/mock-thread.silicon.d.ts +3 -0
  42. package/dist/types/useLlm/mock-thread.silicon.d.ts.map +1 -0
  43. package/package.json +3 -2
  44. package/src/llm/components/Chunk/chunk.tsx +12 -0
  45. package/src/llm/components/Dialog/dialog.tsx +1 -1
  46. package/src/llm/components/Grid/_style.scss +35 -0
  47. package/src/llm/components/Grid/grid.tsx +39 -0
  48. package/src/llm/components/Product/_style.scss +141 -0
  49. package/src/llm/components/Product/product-cta.tsx +17 -0
  50. package/src/llm/components/Product/product.tsx +110 -0
  51. package/src/llm/components/ProductGroup/_style.scss +11 -0
  52. package/src/llm/components/ProductGroup/product-group.tsx +20 -0
  53. package/src/llm/components/ProductGroupSlider/_style.scss +55 -0
  54. package/src/llm/components/ProductGroupSlider/product-group-slider.tsx +65 -0
  55. package/src/llm/components/Scroller/scroller.tsx +4 -0
  56. package/src/llm/components/Thread/_style.scss +1 -1
  57. package/src/llm/components/Trigger/_style.scss +2 -2
  58. package/src/llm/scss/style.scss +3 -0
  59. package/src/llm/theme.json +247 -0
  60. package/src/llm/theme.ts +2 -228
  61. package/src/types.ts +42 -0
  62. package/src/useLlm/message.service.ts +10 -0
  63. package/src/useLlm/mock-app.silicon.ts +186 -0
  64. package/src/useLlm/mock-thread.silicon.ts +291 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @websolutespa/bom-mixer-llm
2
2
 
3
+ ## 1.8.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: Product Card & Product Card Group style
8
+
9
+ ## 1.8.3
10
+
11
+ ### Patch Changes
12
+
13
+ - f5d0129: Added: Product Card & Product Card Group
14
+
3
15
  ## 1.8.2
4
16
 
5
17
  ### Patch Changes
@@ -922,8 +922,8 @@ llm-embed {
922
922
  margin: 12px auto 0 auto;
923
923
  padding: 10px 20px;
924
924
  border-radius: 40px;
925
- background: var(--llm-color-neutral-100);
926
- color: var(--llm-color-base-100);
925
+ background: var(--llm-trigger-cta-background);
926
+ color: var(--llm-trigger-cta-foreground);
927
927
  font-weight: 800;
928
928
  font-size: inherit;
929
929
  }
@@ -2076,6 +2076,391 @@ llm-embed {
2076
2076
  z-index: 10000;
2077
2077
  }
2078
2078
 
2079
+ .llm .llm__gridrow {
2080
+ --grid-columns: var(--llm-grid-columns, 12);
2081
+ --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);
2084
+ display: grid;
2085
+ grid-template-columns: repeat(var(--grid-columns), var(--grid-size));
2086
+ grid-column-gap: var(--grid-column-gap);
2087
+ grid-row-gap: var(--grid-row-gap);
2088
+ }
2089
+ .llm .llm__grid {
2090
+ --grid-column: var(--llm-grid-columns, 12);
2091
+ grid-column: span var(--grid-column);
2092
+ }
2093
+ .llm .llm__grid.--xs-1 {
2094
+ --grid-column: 1;
2095
+ }
2096
+ .llm .llm__grid.--xs-2 {
2097
+ --grid-column: 2;
2098
+ }
2099
+ .llm .llm__grid.--xs-3 {
2100
+ --grid-column: 3;
2101
+ }
2102
+ .llm .llm__grid.--xs-4 {
2103
+ --grid-column: 4;
2104
+ }
2105
+ @media (min-width: 768px) {
2106
+ .llm .llm__grid.--sm-1 {
2107
+ --grid-column: 1;
2108
+ }
2109
+ }
2110
+ @media (min-width: 768px) {
2111
+ .llm .llm__grid.--sm-2 {
2112
+ --grid-column: 2;
2113
+ }
2114
+ }
2115
+ @media (min-width: 768px) {
2116
+ .llm .llm__grid.--sm-3 {
2117
+ --grid-column: 3;
2118
+ }
2119
+ }
2120
+ @media (min-width: 768px) {
2121
+ .llm .llm__grid.--sm-4 {
2122
+ --grid-column: 4;
2123
+ }
2124
+ }
2125
+ @media (min-width: 1024px) {
2126
+ .llm .llm__grid.--md-1 {
2127
+ --grid-column: 1;
2128
+ }
2129
+ }
2130
+ @media (min-width: 1024px) {
2131
+ .llm .llm__grid.--md-2 {
2132
+ --grid-column: 2;
2133
+ }
2134
+ }
2135
+ @media (min-width: 1024px) {
2136
+ .llm .llm__grid.--md-3 {
2137
+ --grid-column: 3;
2138
+ }
2139
+ }
2140
+ @media (min-width: 1024px) {
2141
+ .llm .llm__grid.--md-4 {
2142
+ --grid-column: 4;
2143
+ }
2144
+ }
2145
+ @media (min-width: 1024px) {
2146
+ .llm .llm__grid.--md-5 {
2147
+ --grid-column: 5;
2148
+ }
2149
+ }
2150
+ @media (min-width: 1024px) {
2151
+ .llm .llm__grid.--md-6 {
2152
+ --grid-column: 6;
2153
+ }
2154
+ }
2155
+ @media (min-width: 1024px) {
2156
+ .llm .llm__grid.--md-7 {
2157
+ --grid-column: 7;
2158
+ }
2159
+ }
2160
+ @media (min-width: 1024px) {
2161
+ .llm .llm__grid.--md-8 {
2162
+ --grid-column: 8;
2163
+ }
2164
+ }
2165
+ @media (min-width: 1024px) {
2166
+ .llm .llm__grid.--md-9 {
2167
+ --grid-column: 9;
2168
+ }
2169
+ }
2170
+ @media (min-width: 1024px) {
2171
+ .llm .llm__grid.--md-10 {
2172
+ --grid-column: 10;
2173
+ }
2174
+ }
2175
+ @media (min-width: 1024px) {
2176
+ .llm .llm__grid.--md-11 {
2177
+ --grid-column: 11;
2178
+ }
2179
+ }
2180
+ @media (min-width: 1024px) {
2181
+ .llm .llm__grid.--md-12 {
2182
+ --grid-column: 12;
2183
+ }
2184
+ }
2185
+ @media (min-width: 1440px) {
2186
+ .llm .llm__grid.--lg-1 {
2187
+ --grid-column: 1;
2188
+ }
2189
+ }
2190
+ @media (min-width: 1440px) {
2191
+ .llm .llm__grid.--lg-2 {
2192
+ --grid-column: 2;
2193
+ }
2194
+ }
2195
+ @media (min-width: 1440px) {
2196
+ .llm .llm__grid.--lg-3 {
2197
+ --grid-column: 3;
2198
+ }
2199
+ }
2200
+ @media (min-width: 1440px) {
2201
+ .llm .llm__grid.--lg-4 {
2202
+ --grid-column: 4;
2203
+ }
2204
+ }
2205
+ @media (min-width: 1440px) {
2206
+ .llm .llm__grid.--lg-5 {
2207
+ --grid-column: 5;
2208
+ }
2209
+ }
2210
+ @media (min-width: 1440px) {
2211
+ .llm .llm__grid.--lg-6 {
2212
+ --grid-column: 6;
2213
+ }
2214
+ }
2215
+ @media (min-width: 1440px) {
2216
+ .llm .llm__grid.--lg-7 {
2217
+ --grid-column: 7;
2218
+ }
2219
+ }
2220
+ @media (min-width: 1440px) {
2221
+ .llm .llm__grid.--lg-8 {
2222
+ --grid-column: 8;
2223
+ }
2224
+ }
2225
+ @media (min-width: 1440px) {
2226
+ .llm .llm__grid.--lg-9 {
2227
+ --grid-column: 9;
2228
+ }
2229
+ }
2230
+ @media (min-width: 1440px) {
2231
+ .llm .llm__grid.--lg-10 {
2232
+ --grid-column: 10;
2233
+ }
2234
+ }
2235
+ @media (min-width: 1440px) {
2236
+ .llm .llm__grid.--lg-11 {
2237
+ --grid-column: 11;
2238
+ }
2239
+ }
2240
+ @media (min-width: 1440px) {
2241
+ .llm .llm__grid.--lg-12 {
2242
+ --grid-column: 12;
2243
+ }
2244
+ }
2245
+ @media (min-width: 1600px) {
2246
+ .llm .llm__grid.--xl-1 {
2247
+ --grid-column: 1;
2248
+ }
2249
+ }
2250
+ @media (min-width: 1600px) {
2251
+ .llm .llm__grid.--xl-2 {
2252
+ --grid-column: 2;
2253
+ }
2254
+ }
2255
+ @media (min-width: 1600px) {
2256
+ .llm .llm__grid.--xl-3 {
2257
+ --grid-column: 3;
2258
+ }
2259
+ }
2260
+ @media (min-width: 1600px) {
2261
+ .llm .llm__grid.--xl-4 {
2262
+ --grid-column: 4;
2263
+ }
2264
+ }
2265
+ @media (min-width: 1600px) {
2266
+ .llm .llm__grid.--xl-5 {
2267
+ --grid-column: 5;
2268
+ }
2269
+ }
2270
+ @media (min-width: 1600px) {
2271
+ .llm .llm__grid.--xl-6 {
2272
+ --grid-column: 6;
2273
+ }
2274
+ }
2275
+ @media (min-width: 1600px) {
2276
+ .llm .llm__grid.--xl-7 {
2277
+ --grid-column: 7;
2278
+ }
2279
+ }
2280
+ @media (min-width: 1600px) {
2281
+ .llm .llm__grid.--xl-8 {
2282
+ --grid-column: 8;
2283
+ }
2284
+ }
2285
+ @media (min-width: 1600px) {
2286
+ .llm .llm__grid.--xl-9 {
2287
+ --grid-column: 9;
2288
+ }
2289
+ }
2290
+ @media (min-width: 1600px) {
2291
+ .llm .llm__grid.--xl-10 {
2292
+ --grid-column: 10;
2293
+ }
2294
+ }
2295
+ @media (min-width: 1600px) {
2296
+ .llm .llm__grid.--xl-11 {
2297
+ --grid-column: 11;
2298
+ }
2299
+ }
2300
+ @media (min-width: 1600px) {
2301
+ .llm .llm__grid.--xl-12 {
2302
+ --grid-column: 12;
2303
+ }
2304
+ }
2305
+
2306
+ .llm .llm__product {
2307
+ position: relative;
2308
+ display: flex;
2309
+ flex-direction: column;
2310
+ justify-content: flex-end;
2311
+ border-radius: 0.6rem;
2312
+ border: 1px solid var(--llm-product-border);
2313
+ background: var(--llm-product-background);
2314
+ color: var(--llm-product-foreground);
2315
+ overflow: hidden;
2316
+ font-weight: 100;
2317
+ }
2318
+ .llm .llm__product-media {
2319
+ position: relative;
2320
+ padding: 1rem;
2321
+ }
2322
+ .llm .llm__product-asset {
2323
+ display: flex;
2324
+ justify-content: center;
2325
+ align-items: center;
2326
+ aspect-ratio: var(--llm-product-aspect-ratio);
2327
+ overflow: hidden;
2328
+ background: var(--llm-color-neutral-200);
2329
+ }
2330
+ .llm .llm__product-asset > img {
2331
+ width: 100%;
2332
+ height: 100%;
2333
+ object-fit: cover;
2334
+ background: var(--llm-color-neutral-200);
2335
+ }
2336
+ .llm .llm__product-content {
2337
+ position: relative;
2338
+ display: flex;
2339
+ flex-direction: column;
2340
+ padding: 1rem;
2341
+ row-gap: 0.5em;
2342
+ height: 100%;
2343
+ }
2344
+ .llm .llm__product-label {
2345
+ font-size: 0.8rem;
2346
+ line-height: 1.25;
2347
+ position: absolute;
2348
+ top: 1rem;
2349
+ left: 1rem;
2350
+ padding: 0.4rem 0.8rem;
2351
+ border-radius: 0.5rem;
2352
+ letter-spacing: 0.05rem;
2353
+ font-weight: 400;
2354
+ background: var(--llm-product-label-background);
2355
+ color: var(--llm-product-label-foreground);
2356
+ }
2357
+ .llm .llm__product-sku {
2358
+ line-height: 1;
2359
+ font-family: var(--llm-font-primary);
2360
+ font-weight: var(--llm-typography-label1-font-weight);
2361
+ line-height: var(--llm-typography-label1-line-height);
2362
+ letter-spacing: var(--llm-typography-label1-letter-spacing);
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
+ font-weight: 700;
2365
+ }
2366
+ .llm .llm__product-grow {
2367
+ flex-grow: 1;
2368
+ }
2369
+ .llm .llm__product-title {
2370
+ line-height: 1;
2371
+ font-family: var(--llm-font-primary);
2372
+ font-weight: var(--llm-typography-body4-font-weight);
2373
+ line-height: var(--llm-typography-body4-line-height);
2374
+ letter-spacing: var(--llm-typography-body4-letter-spacing);
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);
2376
+ font-weight: 100;
2377
+ overflow: hidden;
2378
+ text-overflow: ellipsis;
2379
+ display: -webkit-box;
2380
+ -webkit-line-clamp: 2;
2381
+ -webkit-box-orient: vertical;
2382
+ }
2383
+ .llm .llm__product-title:hover {
2384
+ text-decoration: underline;
2385
+ }
2386
+ .llm .llm__product-abstract {
2387
+ line-height: 1;
2388
+ font-family: var(--llm-font-secondary);
2389
+ font-weight: var(--llm-typography-body5-font-weight);
2390
+ line-height: var(--llm-typography-body5-line-height);
2391
+ letter-spacing: var(--llm-typography-body5-letter-spacing);
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);
2393
+ font-weight: 100;
2394
+ overflow: hidden;
2395
+ text-overflow: ellipsis;
2396
+ display: -webkit-box;
2397
+ -webkit-line-clamp: 2;
2398
+ -webkit-box-orient: vertical;
2399
+ }
2400
+ .llm .llm__product-prices {
2401
+ display: flex;
2402
+ column-gap: 1em;
2403
+ }
2404
+ .llm .llm__product-price {
2405
+ line-height: 1;
2406
+ font-family: var(--llm-font-primary);
2407
+ font-weight: var(--llm-typography-label1-font-weight);
2408
+ line-height: var(--llm-typography-label1-line-height);
2409
+ letter-spacing: var(--llm-typography-label1-letter-spacing);
2410
+ 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);
2411
+ font-weight: 400;
2412
+ }
2413
+ .llm .llm__product-fullprice {
2414
+ line-height: 1;
2415
+ font-family: var(--llm-font-primary);
2416
+ font-weight: var(--llm-typography-label1-font-weight);
2417
+ line-height: var(--llm-typography-label1-line-height);
2418
+ letter-spacing: var(--llm-typography-label1-letter-spacing);
2419
+ 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);
2420
+ text-decoration: line-through;
2421
+ opacity: 0.5;
2422
+ }
2423
+ .llm .llm__product-available {
2424
+ color: var(--llm-product-available);
2425
+ }
2426
+ .llm .llm__product-soldout {
2427
+ color: var(--llm-product-soldout);
2428
+ }
2429
+ .llm .llm__product-ctas {
2430
+ display: flex;
2431
+ justify-content: center;
2432
+ gap: clamp(24px, 24px + (100vw - 375px) / 1545 * 8, 32px);
2433
+ padding-top: clamp(8px, 8px + (100vw - 375px) / 1545 * 8, 16px);
2434
+ margin-top: auto;
2435
+ }
2436
+ .llm .llm__product-cta {
2437
+ display: flex;
2438
+ align-items: center;
2439
+ gap: 0.5em;
2440
+ margin: 0 auto;
2441
+ line-height: 1;
2442
+ font-family: var(--llm-font-primary);
2443
+ font-weight: var(--llm-typography-body4-font-weight);
2444
+ line-height: var(--llm-typography-body4-line-height);
2445
+ letter-spacing: var(--llm-typography-body4-letter-spacing);
2446
+ 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);
2447
+ font-weight: 700;
2448
+ }
2449
+ .llm .llm__product-cta svg {
2450
+ fill: currentColor;
2451
+ width: 24px;
2452
+ height: 24px;
2453
+ }
2454
+
2455
+ .llm .llm__products {
2456
+ width: 100%;
2457
+ max-width: 1440px;
2458
+ margin: 3rem auto;
2459
+ }
2460
+ .llm .llm__product {
2461
+ height: 100%;
2462
+ }
2463
+
2079
2464
  .llm .llm__event-inner {
2080
2465
  border-radius: 5px;
2081
2466
  background: rgba(0, 60, 140, 0.8);
@@ -2566,7 +2951,6 @@ llm-embed {
2566
2951
  margin-bottom: 20vh;
2567
2952
  }
2568
2953
  .llm .llm__inner {
2569
- width: 100%;
2570
2954
  margin: 0 clamp(20px, 20px + (100vw - 375px) / 1545 * 90, 110px);
2571
2955
  }
2572
2956
  .llm .llm__inner--cardGroup {