@ultraviolet/plus 0.9.0 → 0.10.0
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
|
@@ -287,7 +287,7 @@ declare const EstimateCost: {
|
|
|
287
287
|
theme?: _emotion_react.Theme | undefined;
|
|
288
288
|
as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
|
|
289
289
|
}, react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
290
|
-
Region: ({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, }: {
|
|
290
|
+
Region: ({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, }: {
|
|
291
291
|
shouldBeHidden?: boolean | undefined;
|
|
292
292
|
priceText?: ReactNode;
|
|
293
293
|
animated?: boolean | undefined;
|
|
@@ -303,7 +303,44 @@ declare const EstimateCost: {
|
|
|
303
303
|
image: string;
|
|
304
304
|
noBorder?: boolean | undefined;
|
|
305
305
|
noPrice?: boolean | undefined;
|
|
306
|
-
}
|
|
306
|
+
} & Pick<{
|
|
307
|
+
amount?: number | undefined;
|
|
308
|
+
amountFree?: number | undefined;
|
|
309
|
+
animated?: boolean | undefined;
|
|
310
|
+
children?: ReactNode;
|
|
311
|
+
discount?: number | undefined;
|
|
312
|
+
discountText?: string | undefined;
|
|
313
|
+
hideFromOverlay?: boolean | undefined;
|
|
314
|
+
isDefined?: boolean | undefined;
|
|
315
|
+
isFirstElement?: boolean | undefined;
|
|
316
|
+
isLastElement?: boolean | undefined;
|
|
317
|
+
isPrimaryBackground?: boolean | undefined;
|
|
318
|
+
iteration?: Iteration | undefined;
|
|
319
|
+
label?: ReactNode;
|
|
320
|
+
labelTextVariant?: "body" | "caption" | "code" | "heading" | "bodySmall" | "bodySmallStrong" | "bodySmallStronger" | "bodyStrong" | "bodyStronger" | "captionSmall" | "captionSmallStrong" | "captionSmallStronger" | "captionStrong" | "captionStronger" | "codeStrong" | "codeStronger" | "headingLarge" | "headingLargeStrong" | "headingLargeStronger" | "headingSmall" | "headingSmallStrong" | "headingSmallStronger" | "headingStrong" | "headingStronger" | undefined;
|
|
321
|
+
labelTextProminence?: "strong" | "weak" | "default" | "stronger" | undefined;
|
|
322
|
+
longFractionDigits?: boolean | undefined;
|
|
323
|
+
maxAmount?: number | undefined;
|
|
324
|
+
monthlyPrice?: number | undefined;
|
|
325
|
+
noBorder?: boolean | undefined;
|
|
326
|
+
noIteration?: boolean | undefined;
|
|
327
|
+
noIterationText?: string | undefined;
|
|
328
|
+
noPrice?: boolean | undefined;
|
|
329
|
+
notice?: string | undefined;
|
|
330
|
+
onAmountChange?: ((amount: number) => void) | undefined;
|
|
331
|
+
price?: number | undefined;
|
|
332
|
+
priceText?: ReactNode;
|
|
333
|
+
productsCallback?: {
|
|
334
|
+
add: (product: EstimateProduct) => void;
|
|
335
|
+
remove: (product: BareEstimateProduct) => void;
|
|
336
|
+
} | undefined;
|
|
337
|
+
shouldBeHidden?: boolean | undefined;
|
|
338
|
+
subLabel?: string | undefined;
|
|
339
|
+
tabulation?: number | undefined;
|
|
340
|
+
textNotDefined?: string | undefined;
|
|
341
|
+
tooltipInfo?: string | undefined;
|
|
342
|
+
unit?: (string & {}) | "seconds" | "minutes" | "hours" | "days" | "months" | "mb" | "gb" | "tb" | "years" | undefined;
|
|
343
|
+
}, "hideFromOverlay">) => _emotion_react_jsx_runtime.JSX.Element;
|
|
307
344
|
Zone: ({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, }: {
|
|
308
345
|
shouldBeHidden?: boolean | undefined;
|
|
309
346
|
priceText?: string | undefined;
|
|
@@ -21,7 +21,8 @@ const Region = ({
|
|
|
21
21
|
iteration,
|
|
22
22
|
discount,
|
|
23
23
|
noBorder,
|
|
24
|
-
noPrice
|
|
24
|
+
noPrice,
|
|
25
|
+
hideFromOverlay
|
|
25
26
|
}) => {
|
|
26
27
|
const {
|
|
27
28
|
locales
|
|
@@ -38,6 +39,7 @@ const Region = ({
|
|
|
38
39
|
discount: discount,
|
|
39
40
|
noBorder: noBorder,
|
|
40
41
|
noPrice: noPrice,
|
|
42
|
+
hideFromOverlay: hideFromOverlay,
|
|
41
43
|
children: jsxs(Strong, {
|
|
42
44
|
children: [jsx(StyledImage, {
|
|
43
45
|
alt: label,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultraviolet/plus",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Ultraviolet Plus",
|
|
5
5
|
"homepage": "https://github.com/scaleway/ultraviolet#readme",
|
|
6
6
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"react": "18.2.0",
|
|
49
49
|
"react-dom": "18.2.0",
|
|
50
50
|
"@ultraviolet/icons": "2.9.3",
|
|
51
|
-
"@ultraviolet/illustrations": "1.6.
|
|
51
|
+
"@ultraviolet/illustrations": "1.6.3"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@uiw/codemirror-extensions-langs": "4.21.24",
|