@ultraviolet/plus 3.1.5 → 3.1.7

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 (57) hide show
  1. package/dist/components/CodeEditor/CodeEditor.js +1 -1
  2. package/dist/components/CodeEditor/styles.css.js +1 -1
  3. package/dist/components/ContentCard/index.d.ts.map +1 -1
  4. package/dist/components/ContentCard/index.js +5 -5
  5. package/dist/components/ContentCard/styles.css.js +1 -1
  6. package/dist/components/ContentCardGroup/index.d.ts.map +1 -1
  7. package/dist/components/ContentCardGroup/index.js +5 -2
  8. package/dist/components/Conversation/index.d.ts +1 -1
  9. package/dist/components/Conversation/index.d.ts.map +1 -1
  10. package/dist/components/Conversation/index.js +3 -3
  11. package/dist/components/CustomerSatisfaction/styles.css.d.ts +7 -7
  12. package/dist/components/CustomerSatisfaction/styles.css.js +1 -1
  13. package/dist/components/EstimateCost/Components/Item.d.ts.map +1 -1
  14. package/dist/components/EstimateCost/Components/Item.js +10 -10
  15. package/dist/components/EstimateCost/Components/Regular.js +2 -2
  16. package/dist/components/EstimateCost/Components/components.css.d.ts +18 -18
  17. package/dist/components/EstimateCost/Components/components.css.js +3 -3
  18. package/dist/components/EstimateCost/EstimateCost.d.ts +1 -1
  19. package/dist/components/EstimateCost/EstimateCost.d.ts.map +1 -1
  20. package/dist/components/EstimateCost/EstimateCost.js +3 -1
  21. package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
  22. package/dist/components/EstimateCost/EstimateCostContent.d.ts.map +1 -1
  23. package/dist/components/EstimateCost/EstimateCostContent.js +204 -162
  24. package/dist/components/EstimateCost/styles.css.d.ts +17 -14
  25. package/dist/components/EstimateCost/styles.css.d.ts.map +1 -1
  26. package/dist/components/EstimateCost/styles.css.js +9 -3
  27. package/dist/components/EstimateCost/types.d.ts +4 -0
  28. package/dist/components/EstimateCost/types.d.ts.map +1 -1
  29. package/dist/components/FAQ/index.d.ts.map +1 -1
  30. package/dist/components/FAQ/index.js +4 -1
  31. package/dist/components/Navigation/Header.js +2 -2
  32. package/dist/components/Navigation/NavigationContent.js +1 -1
  33. package/dist/components/Navigation/components/Item.d.ts.map +1 -1
  34. package/dist/components/Navigation/components/Item.js +32 -29
  35. package/dist/components/Navigation/components/PinnedItems.d.ts.map +1 -1
  36. package/dist/components/Navigation/components/PinnedItems.js +2 -1
  37. package/dist/components/Navigation/components/items.css.d.ts +10 -10
  38. package/dist/components/Navigation/components/items.css.js +3 -3
  39. package/dist/components/Navigation/components/styles.css.d.ts +4 -4
  40. package/dist/components/Navigation/components/styles.css.js +1 -1
  41. package/dist/components/Navigation/styles.css.d.ts +6 -6
  42. package/dist/components/Navigation/styles.css.js +2 -1
  43. package/dist/components/Navigation/variables.css.js +0 -1
  44. package/dist/components/OfferList/styles.css.d.ts +5 -5
  45. package/dist/components/OfferList/styles.css.js +1 -1
  46. package/dist/components/OrderSummary/NonScrollableContent.js +1 -1
  47. package/dist/components/OrderSummary/ScrollableContent.d.ts.map +1 -1
  48. package/dist/components/OrderSummary/ScrollableContent.js +2 -2
  49. package/dist/components/OrderSummary/index.js +3 -3
  50. package/dist/components/OrderSummary/styles.css.d.ts +2 -2
  51. package/dist/components/OrderSummary/styles.css.js +1 -1
  52. package/dist/components/Plans/index.js +1 -1
  53. package/dist/components/Plans/styles.css.d.ts +23 -18
  54. package/dist/components/Plans/styles.css.d.ts.map +1 -1
  55. package/dist/components/Plans/styles.css.js +1 -1
  56. package/dist/plus.css +1 -1
  57. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
3
3
  import { CalculatorIcon } from "@ultraviolet/icons";
4
- import { Stack, Alert, Badge, Text } from "@ultraviolet/ui";
4
+ import { Stack, Text, Alert, Badge } from "@ultraviolet/ui";
5
5
  import { cn } from "@ultraviolet/utils";
6
6
  import { assignInlineVars } from "@vanilla-extract/dynamic";
7
7
  import { useState, useMemo, useEffect, memo, Children, cloneElement, isValidElement } from "react";
@@ -15,7 +15,7 @@ import { calculatePrice } from "./helper.js";
15
15
  import EstimateCostLocales from "./locales/en.js";
16
16
  import { OverlayComponent } from "./OverlayComponent.js";
17
17
  import { OverlayContextProvider } from "./OverlayContext.js";
18
- import { estimateCostTable, estimateCostPriceColumn, estimateCostTimeCell, estimateCostPriceCellContent, estimateCostPriceCell, estimateCostEmptyTable, estimateCostEmptyCell, estimateCostBadgeBeta, estimateCostText, paddingLeftCell, estimateCostCell, estimateCostTotalPriceCell, estimatecostFeesText, estimateCostFeesTable, estimateCostTitle, estimateCostCalculatorIcon } from "./styles.css.js";
18
+ import { estimateCostCompact, estimateCostCompactText, estimateCostContent, estimateCostTable, estimateCostPriceColumn, estimateCostTimeCell, estimateCostPriceCellContent, estimateCostPriceCell, estimateCostEmptyTable, estimateCostEmptyCell, estimateCostBadgeBeta, estimateCostText, paddingLeftCell, estimateCostCell, estimateCostTotalPriceCell, estimatecostFeesText, estimateCostFeesTable, estimateCostTitle, estimateCostCalculatorIcon } from "./styles.css.js";
19
19
  const DEFAULT_UNIT_LIST = ["hours", "days", "months"];
20
20
  const DescriptionComponent = memo(
21
21
  ({
@@ -65,7 +65,8 @@ const EstimateCostContent = ({
65
65
  locales = EstimateCostLocales,
66
66
  overlayMargin,
67
67
  onTotalPriceChange,
68
- style
68
+ style,
69
+ compact
69
70
  }) => {
70
71
  const { formatNumber } = useEstimateCost();
71
72
  const [ref, inView] = useInView();
@@ -148,7 +149,7 @@ const EstimateCostContent = ({
148
149
  (acc, product) => acc + (product.noIteration ? 0 : (product.price - product.price * product.discount) * Math.max(product.amount - product.amountFree, 0)),
149
150
  0
150
151
  ),
151
- total: !hideTotal ? products.reduce(
152
+ total: hideTotal ? 0 : products.reduce(
152
153
  (acc, product) => acc + calculatePrice({
153
154
  amount: product.amount,
154
155
  amountFree: product.amountFree,
@@ -158,7 +159,7 @@ const EstimateCostContent = ({
158
159
  timeUnit: product.noIteration ? "hours" : iteration.unit
159
160
  }),
160
161
  0
161
- ) : 0
162
+ )
162
163
  });
163
164
  onTotalPriceChange?.({
164
165
  total: totalPrice.total,
@@ -180,176 +181,217 @@ const EstimateCostContent = ({
180
181
  setIteration({ unit: defaultTimeUnit ?? "hours", value: 1 });
181
182
  }
182
183
  }, [hideTimeUnit, iteration, defaultTimeUnit]);
183
- return /* @__PURE__ */ jsxs(Stack, { gap: 2, style, children: [
184
- !hideOverlay ? /* @__PURE__ */ jsx(
185
- OverlayComponent,
184
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
185
+ compact ? /* @__PURE__ */ jsxs(
186
+ Stack,
186
187
  {
187
- disableOverlayLeft,
188
- disableOverlayRight,
189
- discount,
190
- inView,
191
- isBeta,
192
- OverlayLeft,
193
- OverlayRight,
194
- overlayMargin,
195
- totalPrice,
196
- unit: overlayUnit ?? "hours",
197
- children
188
+ alignItems: "center",
189
+ className: estimateCostCompact,
190
+ direction: "row",
191
+ justifyContent: "space-between",
192
+ children: [
193
+ /* @__PURE__ */ jsxs(Text, { as: "p", className: estimateCostCompactText, variant: "bodyStrong", children: [
194
+ /* @__PURE__ */ jsx(CalculatorIcon, { sentiment: "primary", size: "medium" }),
195
+ locales["estimate.cost.label"]
196
+ ] }),
197
+ /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", children: [
198
+ /* @__PURE__ */ jsxs(Text, { as: "span", variant: "headingSmallStrong", children: [
199
+ "€",
200
+ totalPrice.total
201
+ ] }),
202
+ /* @__PURE__ */ jsxs(Text, { as: "span", variant: "bodyStrong", children: [
203
+ "/",
204
+ iteration.unit.length > 1 && iteration.unit.endsWith("s") ? iteration.unit.slice(0, -1) : iteration.unit
205
+ ] })
206
+ ] })
207
+ ]
198
208
  }
199
209
  ) : null,
200
- description === false ? null : /* @__PURE__ */ jsx(DescriptionComponent, { description, locales }),
201
- alert ? /* @__PURE__ */ jsx(Alert, { sentiment: alertVariant, title: alertTitle, children: alert }) : null,
202
- /* @__PURE__ */ jsx(OverlayContextProvider, { value: providerValue, children: /* @__PURE__ */ jsxs("div", { children: [
203
- children ? /* @__PURE__ */ jsxs(
204
- "table",
205
- {
206
- cellPadding: "0",
207
- cellSpacing: "0",
208
- className: estimateCostTable[hideTotal ? "noTotal" : "total"],
209
- "data-testid": "summary",
210
- ref,
211
- children: [
212
- /* @__PURE__ */ jsxs("colgroup", { children: [
213
- /* @__PURE__ */ jsx("col", {}),
214
- /* @__PURE__ */ jsx("col", { className: estimateCostPriceColumn })
215
- ] }),
216
- !hideTimeUnit ? /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
217
- /* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(TitleComponent, { locales }) }),
218
- /* @__PURE__ */ jsx(
219
- "th",
220
- {
221
- className: cn(
222
- estimateCostPriceCellContent,
223
- estimateCostPriceCell
224
- ),
225
- children: /* @__PURE__ */ jsx("div", { className: estimateCostTimeCell, children: /* @__PURE__ */ jsx(
226
- CustomUnitInput,
227
- {
228
- defaultTimeUnit,
229
- iteration,
230
- setIteration,
231
- timeUnits
232
- }
233
- ) })
234
- }
235
- )
236
- ] }) }) : null,
237
- /* @__PURE__ */ jsx("tbody", { children: Children.map(
238
- children,
239
- (child, index) => isValidElement(child) ? cloneElement(child, {
240
- discount: discount && !child.props.discount ? discount : child.props.discount,
241
- isLastElement: index === Children.count(children) - 1,
242
- iteration,
243
- productsCallback
244
- }) : child
245
- ) })
246
- ]
247
- }
248
- ) : null,
249
- !hideTotal ? /* @__PURE__ */ jsxs(
250
- "table",
251
- {
252
- cellPadding: "0",
253
- cellSpacing: "0",
254
- className: estimateCostEmptyTable,
255
- children: [
256
- /* @__PURE__ */ jsxs("colgroup", { children: [
257
- /* @__PURE__ */ jsx("col", {}),
258
- /* @__PURE__ */ jsx("col", { className: estimateCostPriceColumn })
259
- ] }),
260
- /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
261
- /* @__PURE__ */ jsx("td", { "aria-label": "control", className: estimateCostEmptyCell }),
262
- /* @__PURE__ */ jsxs(
263
- "td",
264
- {
265
- className: cn(
266
- estimateCostCell({ hasBorder: false, primary: false }),
267
- estimateCostTotalPriceCell
268
- ),
269
- style: assignInlineVars({
270
- [paddingLeftCell]: `16px`
271
- }),
272
- children: [
273
- isBeta ? /* @__PURE__ */ jsx(
274
- Badge,
275
- {
276
- className: estimateCostBadgeBeta[locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`].length > 25 ? "long" : "short"],
277
- prominence: "strong",
278
- sentiment: "warning",
279
- children: `${discount > 0 ? discount * 100 : ""}
280
- ${locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`]}`
281
- }
282
- ) : null,
210
+ /* @__PURE__ */ jsxs(
211
+ Stack,
212
+ {
213
+ className: estimateCostContent[compact ? "compact" : "default"],
214
+ gap: 2,
215
+ style,
216
+ children: [
217
+ hideOverlay ? null : /* @__PURE__ */ jsx(
218
+ OverlayComponent,
219
+ {
220
+ disableOverlayLeft,
221
+ disableOverlayRight,
222
+ discount,
223
+ inView,
224
+ isBeta,
225
+ OverlayLeft,
226
+ OverlayRight,
227
+ overlayMargin,
228
+ totalPrice,
229
+ unit: overlayUnit ?? "hours",
230
+ children
231
+ }
232
+ ),
233
+ description === false ? null : /* @__PURE__ */ jsx(DescriptionComponent, { description, locales }),
234
+ alert ? /* @__PURE__ */ jsx(Alert, { sentiment: alertVariant, title: alertTitle, children: alert }) : null,
235
+ /* @__PURE__ */ jsx(OverlayContextProvider, { value: providerValue, children: /* @__PURE__ */ jsxs("div", { children: [
236
+ children ? /* @__PURE__ */ jsxs(
237
+ "table",
238
+ {
239
+ cellPadding: "0",
240
+ cellSpacing: "0",
241
+ className: estimateCostTable[hideTotal ? "noTotal" : "total"],
242
+ "data-testid": "summary",
243
+ ref,
244
+ children: [
245
+ /* @__PURE__ */ jsxs("colgroup", { children: [
246
+ /* @__PURE__ */ jsx("col", {}),
247
+ /* @__PURE__ */ jsx("col", { className: estimateCostPriceColumn })
248
+ ] }),
249
+ hideTimeUnit ? null : /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
250
+ /* @__PURE__ */ jsx("th", { children: /* @__PURE__ */ jsx(TitleComponent, { locales }) }),
283
251
  /* @__PURE__ */ jsx(
284
- Text,
252
+ "th",
285
253
  {
286
- as: "h3",
287
- className: estimateCostText[isBeta ? "beta" : "notBeta"],
288
- sentiment: "primary",
289
- variant: "heading",
290
- children: /* @__PURE__ */ jsxs(
291
- LineThrough,
254
+ className: cn(
255
+ estimateCostPriceCellContent,
256
+ estimateCostPriceCell
257
+ ),
258
+ children: /* @__PURE__ */ jsx("div", { className: estimateCostTimeCell, children: /* @__PURE__ */ jsx(
259
+ CustomUnitInput,
292
260
  {
293
- isActive: isBeta && (discount === 0 || discount >= 1),
294
- children: [
295
- totalValue,
296
- totalPrice.maxTotal > 0 ? ` - ${totalMaxValue}` : null
297
- ]
261
+ defaultTimeUnit,
262
+ iteration,
263
+ setIteration,
264
+ timeUnits
298
265
  }
299
- )
266
+ ) })
267
+ }
268
+ )
269
+ ] }) }),
270
+ /* @__PURE__ */ jsx("tbody", { children: Children.map(
271
+ children,
272
+ (child, index) => isValidElement(child) ? cloneElement(child, {
273
+ discount: discount && !child.props.discount ? discount : child.props.discount,
274
+ isLastElement: index === Children.count(children) - 1,
275
+ iteration,
276
+ productsCallback
277
+ }) : child
278
+ ) })
279
+ ]
280
+ }
281
+ ) : null,
282
+ hideTotal ? null : /* @__PURE__ */ jsxs(
283
+ "table",
284
+ {
285
+ cellPadding: "0",
286
+ cellSpacing: "0",
287
+ className: estimateCostEmptyTable,
288
+ children: [
289
+ /* @__PURE__ */ jsxs("colgroup", { children: [
290
+ /* @__PURE__ */ jsx("col", {}),
291
+ /* @__PURE__ */ jsx("col", { className: estimateCostPriceColumn })
292
+ ] }),
293
+ /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsxs("tr", { children: [
294
+ /* @__PURE__ */ jsx(
295
+ "td",
296
+ {
297
+ "aria-label": "control",
298
+ className: estimateCostEmptyCell
300
299
  }
301
300
  ),
302
- hideHourlyPriceOnTotal && totalPrice.hourly > 0 && totalPrice.hourly !== totalPrice.total && totalPrice.total > 0 ? /* @__PURE__ */ jsx(Text, { as: "p", placement: "right", variant: "body", children: /* @__PURE__ */ jsxs(
303
- LineThrough,
301
+ /* @__PURE__ */ jsxs(
302
+ "td",
304
303
  {
305
- isActive: isBeta && (discount === 0 || discount >= 1),
304
+ className: cn(
305
+ estimateCostCell({ hasBorder: false, primary: false }),
306
+ estimateCostTotalPriceCell
307
+ ),
308
+ style: assignInlineVars({
309
+ [paddingLeftCell]: "16px"
310
+ }),
306
311
  children: [
307
- formatNumber(totalPrice.hourly, {
308
- maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong.hours : maximumFractionDigits.hours
309
- }),
310
- totalPrice.maxHourly > 0 ? ` - ${formatNumber(totalPrice.maxHourly, {
311
- maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong.hours : maximumFractionDigits.hours
312
- })}` : null,
313
- "/",
314
- locales[`estimate.cost.units.hours.label`].toLowerCase()
312
+ isBeta ? /* @__PURE__ */ jsx(
313
+ Badge,
314
+ {
315
+ className: estimateCostBadgeBeta[locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`].length > 25 ? "long" : "short"],
316
+ prominence: "strong",
317
+ sentiment: "warning",
318
+ children: `${discount > 0 ? discount * 100 : ""}
319
+ ${locales[`estimate.cost.beta.${discount > 0 ? "discount" : "free"}`]}`
320
+ }
321
+ ) : null,
322
+ /* @__PURE__ */ jsx(
323
+ Text,
324
+ {
325
+ as: "h3",
326
+ className: estimateCostText[isBeta ? "beta" : "notBeta"],
327
+ sentiment: "primary",
328
+ variant: "heading",
329
+ children: /* @__PURE__ */ jsxs(
330
+ LineThrough,
331
+ {
332
+ isActive: isBeta && (discount === 0 || discount >= 1),
333
+ children: [
334
+ totalValue,
335
+ totalPrice.maxTotal > 0 ? ` - ${totalMaxValue}` : null
336
+ ]
337
+ }
338
+ )
339
+ }
340
+ ),
341
+ hideHourlyPriceOnTotal && totalPrice.hourly > 0 && totalPrice.hourly !== totalPrice.total && totalPrice.total > 0 ? /* @__PURE__ */ jsx(Text, { as: "p", placement: "right", variant: "body", children: /* @__PURE__ */ jsxs(
342
+ LineThrough,
343
+ {
344
+ isActive: isBeta && (discount === 0 || discount >= 1),
345
+ children: [
346
+ formatNumber(totalPrice.hourly, {
347
+ maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong.hours : maximumFractionDigits.hours
348
+ }),
349
+ totalPrice.maxHourly > 0 ? ` - ${formatNumber(totalPrice.maxHourly, {
350
+ maximumFractionDigits: isLongFractionDigits ? maximumFractionDigitsLong.hours : maximumFractionDigits.hours
351
+ })}` : null,
352
+ "/",
353
+ locales["estimate.cost.units.hours.label"].toLowerCase()
354
+ ]
355
+ }
356
+ ) }) : null
315
357
  ]
316
358
  }
317
- ) }) : null
318
- ]
319
- }
320
- )
321
- ] }) })
322
- ]
323
- }
324
- ) : null,
325
- commitmentFees !== void 0 || monthlyFees !== void 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
326
- /* @__PURE__ */ jsx(
327
- Text,
328
- {
329
- as: "h3",
330
- className: estimatecostFeesText,
331
- variant: "headingSmall",
332
- children: locales[`estimate.cost.fees.${commitmentFees ? "oneTime" : "monthly"}.title`]
333
- }
334
- ),
335
- /* @__PURE__ */ jsx("table", { className: estimateCostFeesTable, children: /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx(
336
- Item,
337
- {
338
- isLastElement: true,
339
- label: commitmentFees ? locales["estimate.cost.fees.commitment"] : monthlyFeesLabel,
340
- noIteration: true,
341
- price: commitmentFees || monthlyFees,
342
- productsCallback: {
343
- add: () => {
344
- },
345
- remove: () => {
359
+ )
360
+ ] }) })
361
+ ]
346
362
  }
347
- },
348
- children: commitmentFees ? commitmentFeesContent : monthlyFeesContent
349
- }
350
- ) }) })
351
- ] }) : null
352
- ] }) })
363
+ ),
364
+ commitmentFees !== void 0 || monthlyFees !== void 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
365
+ /* @__PURE__ */ jsx(
366
+ Text,
367
+ {
368
+ as: "h3",
369
+ className: estimatecostFeesText,
370
+ variant: "headingSmall",
371
+ children: locales[`estimate.cost.fees.${commitmentFees ? "oneTime" : "monthly"}.title`]
372
+ }
373
+ ),
374
+ /* @__PURE__ */ jsx("table", { className: estimateCostFeesTable, children: /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx(
375
+ Item,
376
+ {
377
+ isLastElement: true,
378
+ label: commitmentFees ? locales["estimate.cost.fees.commitment"] : monthlyFeesLabel,
379
+ noIteration: true,
380
+ price: commitmentFees || monthlyFees,
381
+ productsCallback: {
382
+ add: () => {
383
+ },
384
+ remove: () => {
385
+ }
386
+ },
387
+ children: commitmentFees ? commitmentFeesContent : monthlyFeesContent
388
+ }
389
+ ) }) })
390
+ ] }) : null
391
+ ] }) })
392
+ ]
393
+ }
394
+ )
353
395
  ] });
354
396
  };
355
397
  export {
@@ -10,14 +10,14 @@ export declare const estimateCostCell: import("@vanilla-extract/recipes").Runtim
10
10
  true: {
11
11
  selectors: {
12
12
  '&:before': {
13
- content: "''";
14
- position: "absolute";
15
- left: number;
13
+ borderBottom: `1px solid var(--${string})`;
16
14
  bottom: number;
15
+ content: "''";
17
16
  height: number;
18
- width: "calc(100% - 32px)";
17
+ left: number;
19
18
  marginLeft: `var(--${string})`;
20
- borderBottom: `1px solid var(--${string})`;
19
+ position: "absolute";
20
+ width: "calc(100% - 32px)";
21
21
  };
22
22
  };
23
23
  };
@@ -35,6 +35,11 @@ export declare const estimateCostEmptyCell: string;
35
35
  export declare const estimateCostTimeCell: string;
36
36
  export declare const estimateCostBadgeBeta: Record<"long" | "short", string>;
37
37
  export declare const estimateCostOverlayRow: import("@vanilla-extract/recipes").RuntimeFn<{
38
+ hideFromOverlay: {
39
+ true: {
40
+ display: "none";
41
+ };
42
+ };
38
43
  isFirstElement: {
39
44
  true: {
40
45
  border: number;
@@ -49,11 +54,6 @@ export declare const estimateCostOverlayRow: import("@vanilla-extract/recipes").
49
54
  };
50
55
  };
51
56
  };
52
- hideFromOverlay: {
53
- true: {
54
- display: "none";
55
- };
56
- };
57
57
  }>;
58
58
  export declare const estimateCostBadge: string;
59
59
  export declare const estimatecostFeesText: string;
@@ -62,16 +62,19 @@ export declare const estimateCostCalculatorIcon: string;
62
62
  export declare const estimateCostPriceCellContent: string;
63
63
  export declare const estimateCostOverlayContainer: import("@vanilla-extract/recipes").RuntimeFn<{
64
64
  inView: {
65
- true: {
66
- bottom: "-120px";
67
- boxShadow: "0";
68
- };
69
65
  false: {
70
66
  bottom: number;
71
67
  boxShadow: `var(--${string})`;
72
68
  };
69
+ true: {
70
+ bottom: "-120px";
71
+ boxShadow: "0";
72
+ };
73
73
  };
74
74
  }>;
75
75
  export declare const estimateCostList: string;
76
76
  export declare const estimateCostSideItem: string;
77
+ export declare const estimateCostContent: Record<"default" | "compact", string>;
78
+ export declare const estimateCostCompact: string;
79
+ export declare const estimateCostCompactText: string;
77
80
  //# sourceMappingURL=styles.css.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/styles.css.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,eAAe,oBAAc,CAAA;AAC1C,eAAO,MAAM,gBAAgB,oBAAc,CAAA;AAE3C,eAAO,MAAM,iBAAiB,QAG5B,CAAA;AAOF,eAAO,MAAM,iBAAiB,qCAG5B,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAGhC,CAAA;AAUF,eAAO,MAAM,uBAAuB,QAElC,CAAA;AAEF,eAAO,MAAM,qBAAqB,QAKhC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;EA+B3B,CAAA;AA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E,eAAO,MAAM,oBAAoB,QAM/B,CAAA;AAMF,eAAO,MAAM,qBAAqB,kCAGhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;EA8BjC,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAM5B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAE/B,CAAA;AAEF,eAAO,MAAM,gBAAgB,oCAQ3B,CAAA;AAEF,eAAO,MAAM,0BAA0B,QAAyC,CAAA;AAEhF,eAAO,MAAM,4BAA4B,QAEvC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;EAyBvC,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAO3B,CAAA;AAEF,eAAO,MAAM,oBAAoB,QAI/B,CAAA;AAEF,eAAO,MAAM,mBAAmB,uCAK9B,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAG9B,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAMlC,CAAA"}
@@ -3,7 +3,7 @@ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
3
3
  var paddingLeftCell = "var(--uv_plus_sk5tga0)";
4
4
  var overlayMarginVar = "var(--uv_plus_sk5tga1)";
5
5
  var estimateCostImage = "uv_plus_sk5tga2";
6
- var estimateCostTable = { total: "uv_plus_sk5tga4 uv_plus_sk5tga3", noTotal: "uv_plus_sk5tga5 uv_plus_sk5tga3" };
6
+ var estimateCostTable = { noTotal: "uv_plus_sk5tga4 uv_plus_sk5tga3", total: "uv_plus_sk5tga5 uv_plus_sk5tga3" };
7
7
  var estimateCostFeesTable = "uv_plus_sk5tga6 uv_plus_sk5tga3";
8
8
  var estimateCostPriceColumn = "uv_plus_sk5tga7";
9
9
  var estimateCostPriceCell = "uv_plus_sk5tga8";
@@ -14,20 +14,26 @@ var estimateCostTitle = "uv_plus_sk5tgae";
14
14
  var estimateCostEmptyCell = "uv_plus_sk5tgaf";
15
15
  var estimateCostTimeCell = "uv_plus_sk5tgag";
16
16
  var estimateCostBadgeBeta = { "long": "uv_plus_sk5tgai uv_plus_sk5tgah", "short": "uv_plus_sk5tgaj uv_plus_sk5tgah" };
17
- var estimateCostOverlayRow = createRuntimeFn({ defaultClassName: "uv_plus_sk5tgak", variantClassNames: { isFirstElement: { true: "uv_plus_sk5tgal" }, shouldBeHidden: { true: "uv_plus_sk5tgam" }, hideFromOverlay: { true: "uv_plus_sk5tgan" } }, defaultVariants: {}, compoundVariants: [] });
17
+ var estimateCostOverlayRow = createRuntimeFn({ defaultClassName: "uv_plus_sk5tgak", variantClassNames: { hideFromOverlay: { true: "uv_plus_sk5tgal" }, isFirstElement: { true: "uv_plus_sk5tgam" }, shouldBeHidden: { true: "uv_plus_sk5tgan" } }, defaultVariants: {}, compoundVariants: [] });
18
18
  var estimateCostBadge = "uv_plus_sk5tgao";
19
19
  var estimatecostFeesText = "uv_plus_sk5tgap";
20
20
  var estimateCostText = { beta: "uv_plus_sk5tgaq", notBeta: "uv_plus_sk5tgar" };
21
21
  var estimateCostCalculatorIcon = "uv_plus_sk5tgas";
22
22
  var estimateCostPriceCellContent = "uv_plus_sk5tgat";
23
- var estimateCostOverlayContainer = createRuntimeFn({ defaultClassName: "uv_plus_sk5tgau", variantClassNames: { inView: { true: "uv_plus_sk5tgav", false: "uv_plus_sk5tgaw" } }, defaultVariants: {}, compoundVariants: [] });
23
+ var estimateCostOverlayContainer = createRuntimeFn({ defaultClassName: "uv_plus_sk5tgau", variantClassNames: { inView: { false: "uv_plus_sk5tgav", true: "uv_plus_sk5tgaw" } }, defaultVariants: {}, compoundVariants: [] });
24
24
  var estimateCostList = "uv_plus_sk5tgax";
25
25
  var estimateCostSideItem = "uv_plus_sk5tgay";
26
+ var estimateCostContent = { compact: "uv_plus_sk5tgaz", "default": "uv_plus_sk5tga10" };
27
+ var estimateCostCompact = "uv_plus_sk5tga11";
28
+ var estimateCostCompactText = "uv_plus_sk5tga12";
26
29
  export {
27
30
  estimateCostBadge,
28
31
  estimateCostBadgeBeta,
29
32
  estimateCostCalculatorIcon,
30
33
  estimateCostCell,
34
+ estimateCostCompact,
35
+ estimateCostCompactText,
36
+ estimateCostContent,
31
37
  estimateCostEmptyCell,
32
38
  estimateCostEmptyTable,
33
39
  estimateCostFeesTable,
@@ -20,6 +20,10 @@ export type EstimateCostProps = {
20
20
  * Content to display into the fees part, it can be any component but in order to have a consistent design, it is recommended to use `<EstimateCost.Regular>` and `<EstimateCost.Strong>` components.
21
21
  */
22
22
  commitmentFeesContent?: ReactNode;
23
+ /**
24
+ * When set to true, only the estimated final cost is displayed
25
+ */
26
+ compact?: boolean;
23
27
  /**
24
28
  * By default, a description exists but if you need you can customize it with this prop.
25
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/EstimateCost/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC1E,OAAO,KAAK,mBAAmB,MAAM,cAAc,CAAA;AAEnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAA;IACxD,QAAQ,EAAE,SAAS,CAAA;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,qBAAqB,CAAC,EAAE,SAAS,CAAA;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;OAEG;IACH,mBAAmB,CAAC,EAAE,OA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;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,8BAA8B,CAC9C,MAAM,OAAO,WAAW,EACxB,aAAa,CACd,CAAA;IACD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,GAAG,GAAI,0EAOjB,QAAQ,4CAkCV,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FAQ/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,WAAW,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAA;AAGjE,KAAK,QAAQ,GAAG;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,8BAA8B,CAC9C,MAAM,OAAO,WAAW,EACxB,aAAa,CACd,CAAA;IACD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,GAAG,GAAI,0EAOjB,QAAQ,4CAmCV,CAAA"}
@@ -11,7 +11,10 @@ const FAQ = ({
11
11
  notes,
12
12
  style
13
13
  }) => {
14
- const ProductIconUsed = productIconName ? ProductIcon[`${productIconName.charAt(0).toUpperCase() + productIconName.slice(1)}ProductIcon`] : null;
14
+ const ProductIconUsed = productIconName ? (
15
+ // biome-ignore lint/performance/noDynamicNamespaceImportAccess: to fix
16
+ ProductIcon[`${productIconName.charAt(0).toUpperCase() + productIconName.slice(1)}ProductIcon`]
17
+ ) : null;
15
18
  return /* @__PURE__ */ jsx(Card, { className: faq, style, children: /* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 2, children: [
16
19
  /* @__PURE__ */ jsxs("div", { children: [
17
20
  !productIconName && illustrationText ? /* @__PURE__ */ jsx(Bullet, { sentiment: "primary", children: illustrationText.toString() }) : null,
@@ -9,9 +9,9 @@ const Header = memo(({ logo }) => {
9
9
  return /* @__PURE__ */ jsx("div", { className: navigationHeader, children: /* @__PURE__ */ jsx(
10
10
  Stack,
11
11
  {
12
- alignItems: "start",
12
+ alignItems: "flex-start",
13
13
  className: navigationLogoContainer,
14
- justifyContent: !expanded ? "center" : void 0,
14
+ justifyContent: expanded ? void 0 : "center",
15
15
  children: typeof logo === "function" ? logo(animation ? false : expanded) : logo
16
16
  }
17
17
  ) });
@@ -70,7 +70,7 @@ const NavigationContent = ({
70
70
  onToggleExpand?.(!expanded);
71
71
  }
72
72
  if (navigationRef.current) {
73
- if (!shouldCollapseOnMouseUp && !shouldExpandOnMouseUp) {
73
+ if (!(shouldCollapseOnMouseUp || shouldExpandOnMouseUp)) {
74
74
  onWidthResize?.(navigationRef.current.offsetWidth);
75
75
  setWidth?.(navigationRef.current.offsetWidth);
76
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigation/components/Item.tsx"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,EAON,MAAM,iBAAiB,CAAA;AAExB,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAEb,WAAW,EAEX,SAAS,EACV,MAAM,OAAO,CAAA;AAad,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAyB5C,KAAK,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAA;AAMpD,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAA;IAC1D,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAA;IAChC,MAAM,CAAC,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAA;IACpC,GAAG,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAA;IAC9B;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,eAAe,CAAC,EAAE,CAAC,UAAU,EAAE,YAAY,KAAK,IAAI,CAAA;IACpD;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;;;OAKG;IACH,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAOD,eAAO,MAAM,IAAI,wRAyBZ,SAAS,oDAqpBb,CAAA"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../../src/components/Navigation/components/Item.tsx"],"names":[],"mappings":"AAeA,OAAO,EACL,KAA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