@ultraviolet/plus 0.6.11 → 0.6.13

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/dist/index.d.ts CHANGED
@@ -213,7 +213,7 @@ type EstimateProduct = BareEstimateProduct & {
213
213
  };
214
214
 
215
215
  declare const EstimateCost: {
216
- ({ description, alert, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, discount, OverlayRight, OverlayLeft, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, numberLocales, currency, }: EstimateCostProps): _emotion_react_jsx_runtime.JSX.Element;
216
+ ({ description, alert, alertTitle, alertVariant, defaultTimeUnit, timeUnits, hideOverlay, disableOverlayLeft, disableOverlayRight, hideTimeUnit, hideTotal, discount, OverlayRight, OverlayLeft, isBeta, commitmentFees, commitmentFeesContent, monthlyFees, monthlyFeesLabel, monthlyFeesContent, overlayUnit, children, locales, numberLocales, currency, }: EstimateCostProps): _emotion_react_jsx_runtime.JSX.Element;
217
217
  LineThrough: _emotion_styled.StyledComponent<{
218
218
  theme?: _emotion_react.Theme | undefined;
219
219
  as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
@@ -24,6 +24,7 @@ const DEFAULT_UNIT_LIST = ['hours', 'days', 'months'];
24
24
  const EstimateCost = ({
25
25
  description,
26
26
  alert,
27
+ alertTitle,
27
28
  alertVariant = 'warning',
28
29
  defaultTimeUnit = 'hours',
29
30
  timeUnits = DEFAULT_UNIT_LIST,
@@ -53,6 +54,7 @@ const EstimateCost = ({
53
54
  children: jsx(EstimateCostContent, {
54
55
  description: description,
55
56
  alert: alert,
57
+ alertTitle: alertTitle,
56
58
  alertVariant: alertVariant,
57
59
  defaultTimeUnit: defaultTimeUnit,
58
60
  timeUnits: timeUnits,
@@ -106,10 +106,10 @@ const OverlayComponent = ({
106
106
  maximumFractionDigits: maximumFractionDigits[unit]
107
107
  })}` : null, "/", locales[`estimate.cost.units.${unit}.label`]]
108
108
  })
109
- }), isBeta ? jsx(StyledBadge, {
109
+ }), isBeta ? jsxs(StyledBadge, {
110
110
  prominence: "strong",
111
111
  sentiment: "warning",
112
- children: locales[`estimate.cost.beta.${discount > 0 ? 'discount' : 'free'}`]
112
+ children: [discount > 0 ? discount * 100 : '', locales[`estimate.cost.beta.${discount > 0 ? 'discount' : 'free'}`]]
113
113
  }) : null]
114
114
  })]
115
115
  }), OverlayRight ? jsx(SideItem, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/plus",
3
- "version": "0.6.11",
3
+ "version": "0.6.13",
4
4
  "description": "Ultraviolet Plus",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -54,7 +54,7 @@
54
54
  "@uiw/codemirror-theme-material": "4.21.21",
55
55
  "@uiw/react-codemirror": "4.21.21",
56
56
  "react-flatten-children": "1.1.2",
57
- "react-intersection-observer": "9.6.0",
57
+ "react-intersection-observer": "9.7.0",
58
58
  "@ultraviolet/themes": "1.8.0",
59
59
  "@ultraviolet/ui": "1.32.2"
60
60
  },