@ultraviolet/plus 0.5.2 → 0.5.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.
package/dist/index.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ type EstimateCostProps = {
|
|
|
92
92
|
* Text to display into an alert on the top of the EstimateCost component.
|
|
93
93
|
*/
|
|
94
94
|
alert?: ReactNode;
|
|
95
|
+
alertTitle?: string;
|
|
95
96
|
/**
|
|
96
97
|
* Type of the alert defined by the Scaleway UI Alert component.
|
|
97
98
|
*/
|
|
@@ -285,7 +286,7 @@ declare const EstimateCost: {
|
|
|
285
286
|
theme?: _emotion_react.Theme | undefined;
|
|
286
287
|
as?: react.ElementType<any> | undefined;
|
|
287
288
|
}, react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
288
|
-
Region: ({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, }: {
|
|
289
|
+
Region: ({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, }: {
|
|
289
290
|
shouldBeHidden?: boolean | undefined;
|
|
290
291
|
priceText?: ReactNode;
|
|
291
292
|
animated?: boolean | undefined;
|
|
@@ -299,8 +300,10 @@ declare const EstimateCost: {
|
|
|
299
300
|
discount?: number | undefined;
|
|
300
301
|
label: string;
|
|
301
302
|
image: string;
|
|
303
|
+
noBorder?: boolean | undefined;
|
|
304
|
+
noPrice?: boolean | undefined;
|
|
302
305
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
303
|
-
Zone: ({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, }: {
|
|
306
|
+
Zone: ({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, }: {
|
|
304
307
|
shouldBeHidden?: boolean | undefined;
|
|
305
308
|
priceText?: string | undefined;
|
|
306
309
|
animated?: boolean | undefined;
|
|
@@ -314,6 +317,8 @@ declare const EstimateCost: {
|
|
|
314
317
|
discount?: number | undefined;
|
|
315
318
|
label: string;
|
|
316
319
|
image: string;
|
|
320
|
+
noBorder?: boolean | undefined;
|
|
321
|
+
noPrice?: boolean | undefined;
|
|
317
322
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
318
323
|
Ellipsis: ({ children, maxWidth, "data-testid": dataTestId, }: {
|
|
319
324
|
children: ReactNode;
|
|
@@ -23,7 +23,9 @@ const Region = _ref2 => {
|
|
|
23
23
|
isLastElement,
|
|
24
24
|
productsCallback,
|
|
25
25
|
iteration,
|
|
26
|
-
discount
|
|
26
|
+
discount,
|
|
27
|
+
noBorder,
|
|
28
|
+
noPrice
|
|
27
29
|
} = _ref2;
|
|
28
30
|
const {
|
|
29
31
|
locales
|
|
@@ -38,6 +40,8 @@ const Region = _ref2 => {
|
|
|
38
40
|
productsCallback: productsCallback,
|
|
39
41
|
iteration: iteration,
|
|
40
42
|
discount: discount,
|
|
43
|
+
noBorder: noBorder,
|
|
44
|
+
noPrice: noPrice,
|
|
41
45
|
children: jsxs(Strong, {
|
|
42
46
|
children: [jsx(StyledImage, {
|
|
43
47
|
alt: label,
|
|
@@ -23,7 +23,9 @@ const Zone = _ref2 => {
|
|
|
23
23
|
isLastElement,
|
|
24
24
|
productsCallback,
|
|
25
25
|
iteration,
|
|
26
|
-
discount
|
|
26
|
+
discount,
|
|
27
|
+
noBorder,
|
|
28
|
+
noPrice
|
|
27
29
|
} = _ref2;
|
|
28
30
|
const {
|
|
29
31
|
locales
|
|
@@ -38,6 +40,8 @@ const Zone = _ref2 => {
|
|
|
38
40
|
productsCallback: productsCallback,
|
|
39
41
|
iteration: iteration,
|
|
40
42
|
discount: discount,
|
|
43
|
+
noBorder: noBorder,
|
|
44
|
+
noPrice: noPrice,
|
|
41
45
|
children: jsxs(Strong, {
|
|
42
46
|
children: [jsx(StyledImage, {
|
|
43
47
|
alt: label,
|
|
@@ -66,6 +66,7 @@ const EstimateCostContent = _ref5 => {
|
|
|
66
66
|
let {
|
|
67
67
|
description,
|
|
68
68
|
alert,
|
|
69
|
+
alertTitle,
|
|
69
70
|
alertVariant = 'warning',
|
|
70
71
|
defaultTimeUnit = 'hours',
|
|
71
72
|
timeUnits = DEFAULT_UNIT_LIST,
|
|
@@ -181,6 +182,7 @@ const EstimateCostContent = _ref5 => {
|
|
|
181
182
|
children: description || locales['estimate.cost.description']
|
|
182
183
|
}) : description, alert ? jsx(Alert, {
|
|
183
184
|
sentiment: alertVariant,
|
|
185
|
+
title: alertTitle,
|
|
184
186
|
children: alert
|
|
185
187
|
}) : null, jsx(OverlayContextProvider, {
|
|
186
188
|
value: providerValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/plus",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.4",
|
|
4
4
|
"description": "Ultraviolet Plus",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"@types/react-dom": "18.2.15",
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
|
-
"@ultraviolet/icons": "2.
|
|
50
|
+
"@ultraviolet/icons": "2.6.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@uiw/codemirror-extensions-langs": "4.21.
|
|
54
|
-
"@uiw/codemirror-theme-material": "4.21.
|
|
55
|
-
"@uiw/react-codemirror": "4.21.
|
|
53
|
+
"@uiw/codemirror-extensions-langs": "4.21.21",
|
|
54
|
+
"@uiw/codemirror-theme-material": "4.21.21",
|
|
55
|
+
"@uiw/react-codemirror": "4.21.21",
|
|
56
56
|
"react-flatten-children": "1.1.2",
|
|
57
57
|
"react-intersection-observer": "9.5.3",
|
|
58
58
|
"@ultraviolet/themes": "1.5.0",
|
|
59
|
-
"@ultraviolet/ui": "1.27.
|
|
59
|
+
"@ultraviolet/ui": "1.27.3"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "rollup -c ../../rollup.config.mjs"
|