@ultraviolet/plus 0.5.5 → 0.5.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.
- package/README.md +0 -1
- package/dist/@ultraviolet/icons/dist/components/Icon/index.js +21 -24
- package/dist/index.d.ts +2 -2
- package/dist/src/components/CodeEditor/CodeEditor.js +35 -47
- package/dist/src/components/ContentCard/Skeleton.js +34 -49
- package/dist/src/components/ContentCard/index.js +52 -92
- package/dist/src/components/ContentCardGroup/Card.js +70 -106
- package/dist/src/components/ContentCardGroup/SkeletonCard.js +8 -17
- package/dist/src/components/ContentCardGroup/index.js +19 -31
- package/dist/src/components/EstimateCost/Components/CustomUnitInput.js +9 -13
- package/dist/src/components/EstimateCost/Components/Item.js +70 -86
- package/dist/src/components/EstimateCost/Components/LineThrough.js +4 -7
- package/dist/src/components/EstimateCost/Components/NumberInput.js +7 -8
- package/dist/src/components/EstimateCost/Components/Region.js +17 -21
- package/dist/src/components/EstimateCost/Components/Regular.js +14 -24
- package/dist/src/components/EstimateCost/Components/Strong.js +16 -28
- package/dist/src/components/EstimateCost/Components/Unit.js +6 -7
- package/dist/src/components/EstimateCost/Components/UnitInput.js +74 -95
- package/dist/src/components/EstimateCost/Components/Zone.js +17 -21
- package/dist/src/components/EstimateCost/EstimateCost.js +64 -74
- package/dist/src/components/EstimateCost/EstimateCostContent.js +41 -55
- package/dist/src/components/EstimateCost/EstimateCostProvider.js +6 -7
- package/dist/src/components/EstimateCost/OverlayComponent.js +23 -36
- package/dist/src/components/EstimateCost/OverlayContext.js +7 -10
- package/dist/src/components/EstimateCost/componentStyle.js +45 -96
- package/dist/src/components/EstimateCost/helper.js +8 -9
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -334,10 +334,9 @@ const customViewBoxes = [{
|
|
|
334
334
|
icons: ['expand'],
|
|
335
335
|
viewBox: '0 0 20 14'
|
|
336
336
|
}];
|
|
337
|
-
const sizeStyles =
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
} = _ref;
|
|
337
|
+
const sizeStyles = ({
|
|
338
|
+
size
|
|
339
|
+
}) => {
|
|
341
340
|
const pxSize = typeof size === 'number' && !Number.isNaN(size) ? `${size}px` : size;
|
|
342
341
|
return /*#__PURE__*/css("height:", pxSize, ";width:", pxSize, ";min-width:", pxSize, ";min-height:", pxSize, ";");
|
|
343
342
|
};
|
|
@@ -350,13 +349,12 @@ const PROMINENCES = {
|
|
|
350
349
|
const StyledIcon = /*#__PURE__*/_styled('svg', {
|
|
351
350
|
shouldForwardProp: prop => !['size', 'color', 'prominence', 'disabled'].includes(prop),
|
|
352
351
|
target: "e1gt4cfo0"
|
|
353
|
-
})("vertical-align:middle;fill:",
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
} = _ref2;
|
|
352
|
+
})("vertical-align:middle;fill:", ({
|
|
353
|
+
theme,
|
|
354
|
+
color,
|
|
355
|
+
prominence,
|
|
356
|
+
disabled
|
|
357
|
+
}) => {
|
|
360
358
|
// stronger is available only for neutral color
|
|
361
359
|
const definedProminence = color !== 'neutral' && prominence === 'stronger' ? capitalize$1(PROMINENCES.default) : capitalize$1(PROMINENCES[prominence]);
|
|
362
360
|
theme.colors[color];
|
|
@@ -366,19 +364,18 @@ const StyledIcon = /*#__PURE__*/_styled('svg', {
|
|
|
366
364
|
/**
|
|
367
365
|
* Icon component is our set of system icons in the design system. All of them are SVGs.
|
|
368
366
|
*/
|
|
369
|
-
const Icon = /*#__PURE__*/forwardRef((
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
} = _ref3;
|
|
367
|
+
const Icon = /*#__PURE__*/forwardRef(({
|
|
368
|
+
name = 'alert',
|
|
369
|
+
color = 'currentColor',
|
|
370
|
+
size = '1em',
|
|
371
|
+
prominence = 'default',
|
|
372
|
+
className,
|
|
373
|
+
'data-testid': dataTestId,
|
|
374
|
+
stroke,
|
|
375
|
+
cursor,
|
|
376
|
+
strokeWidth,
|
|
377
|
+
disabled
|
|
378
|
+
}, ref) => {
|
|
382
379
|
const render = ICONS[name] || ICONS.alert;
|
|
383
380
|
const defaultViewBox = useMemo(() => customViewBoxes.find(vB => vB.icons.includes(name))?.viewBox ?? '0 0 24 24', [name]);
|
|
384
381
|
return jsx(StyledIcon, {
|
package/dist/index.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ declare const EstimateCost: {
|
|
|
216
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;
|
|
217
217
|
LineThrough: _emotion_styled.StyledComponent<{
|
|
218
218
|
theme?: _emotion_react.Theme | undefined;
|
|
219
|
-
as?: react.ElementType<any> | undefined;
|
|
219
|
+
as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
|
|
220
220
|
} & {
|
|
221
221
|
isActive?: boolean | undefined;
|
|
222
222
|
}, react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -284,7 +284,7 @@ declare const EstimateCost: {
|
|
|
284
284
|
}) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
285
285
|
Image: _emotion_styled.StyledComponent<{
|
|
286
286
|
theme?: _emotion_react.Theme | undefined;
|
|
287
|
-
as?: react.ElementType<any> | undefined;
|
|
287
|
+
as?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
|
|
288
288
|
}, react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
289
289
|
Region: ({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, }: {
|
|
290
290
|
shouldBeHidden?: boolean | undefined;
|
|
@@ -7,52 +7,40 @@ import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
|
7
7
|
|
|
8
8
|
const StyledText = /*#__PURE__*/_styled(Text, {
|
|
9
9
|
target: "e13pskxy0"
|
|
10
|
-
})("background-color:",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
height,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
theme: material,
|
|
46
|
-
onChange: onChange,
|
|
47
|
-
value: value,
|
|
48
|
-
extensions: [langs[extensions]()],
|
|
49
|
-
onBlur: onBlur,
|
|
50
|
-
basicSetup: {
|
|
51
|
-
highlightActiveLine: false,
|
|
52
|
-
highlightActiveLineGutter: false
|
|
53
|
-
}
|
|
54
|
-
})]
|
|
55
|
-
});
|
|
56
|
-
};
|
|
10
|
+
})("background-color:", ({
|
|
11
|
+
theme
|
|
12
|
+
}) => theme.colors.neutral.backgroundStrong, ";padding:", ({
|
|
13
|
+
theme
|
|
14
|
+
}) => `${theme.space['1']} ${theme.space['2']}`, ";border-radius:", ({
|
|
15
|
+
theme
|
|
16
|
+
}) => theme.radii.default, ";width:100%;");
|
|
17
|
+
const CodeEditor = ({
|
|
18
|
+
title,
|
|
19
|
+
value,
|
|
20
|
+
onChange,
|
|
21
|
+
extensions = 'javascript',
|
|
22
|
+
onBlur,
|
|
23
|
+
height,
|
|
24
|
+
readOnly
|
|
25
|
+
}) => jsxs("div", {
|
|
26
|
+
children: [title ? jsx(StyledText, {
|
|
27
|
+
as: "h3",
|
|
28
|
+
variant: "headingSmall",
|
|
29
|
+
children: title
|
|
30
|
+
}) : null, jsx(CodeMirror, {
|
|
31
|
+
readOnly: readOnly,
|
|
32
|
+
width: "100%",
|
|
33
|
+
height: height,
|
|
34
|
+
theme: material,
|
|
35
|
+
onChange: onChange,
|
|
36
|
+
value: value,
|
|
37
|
+
extensions: [langs[extensions]()],
|
|
38
|
+
onBlur: onBlur,
|
|
39
|
+
basicSetup: {
|
|
40
|
+
highlightActiveLine: false,
|
|
41
|
+
highlightActiveLineGutter: false
|
|
42
|
+
}
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
57
45
|
|
|
58
46
|
export { CodeEditor };
|
|
@@ -5,57 +5,42 @@ import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
|
5
5
|
const SkeletonImage = /*#__PURE__*/_styled(Skeleton$1, {
|
|
6
6
|
shouldForwardProp: prop => !['height', 'width', 'direction'].includes(prop),
|
|
7
7
|
target: "e1wwr9dc1"
|
|
8
|
-
})("border-radius:",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
width
|
|
17
|
-
} = _ref2;
|
|
18
|
-
return width;
|
|
19
|
-
}, ";height:", _ref3 => {
|
|
20
|
-
let {
|
|
21
|
-
height
|
|
22
|
-
} = _ref3;
|
|
23
|
-
return height;
|
|
24
|
-
}, ";");
|
|
8
|
+
})("border-radius:", ({
|
|
9
|
+
theme,
|
|
10
|
+
direction
|
|
11
|
+
}) => `${direction === 'column' ? `${theme.radii.default} ${theme.radii.default} 0 0` : `${theme.radii.default} 0 0 ${theme.radii.default}`}`, ";width:", ({
|
|
12
|
+
width
|
|
13
|
+
}) => width, ";height:", ({
|
|
14
|
+
height
|
|
15
|
+
}) => height, ";");
|
|
25
16
|
const StyledStack = /*#__PURE__*/_styled(Stack, {
|
|
26
17
|
target: "e1wwr9dc0"
|
|
27
|
-
})("padding:",
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
direction: direction
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
variant: "line"
|
|
52
|
-
}), jsx(Skeleton$1, {
|
|
53
|
-
variant: "line"
|
|
54
|
-
}), jsx(Skeleton$1, {
|
|
55
|
-
variant: "line"
|
|
56
|
-
})]
|
|
18
|
+
})("padding:", ({
|
|
19
|
+
theme
|
|
20
|
+
}) => theme.space['3'], ";");
|
|
21
|
+
const Skeleton = ({
|
|
22
|
+
direction
|
|
23
|
+
}) => jsxs(Stack, {
|
|
24
|
+
direction: direction,
|
|
25
|
+
children: [jsx(SkeletonImage, {
|
|
26
|
+
variant: "square",
|
|
27
|
+
height: direction === 'column' ? '120px' : 'unset',
|
|
28
|
+
width: direction === 'row' ? '220px' : undefined,
|
|
29
|
+
direction: direction
|
|
30
|
+
}), jsxs(StyledStack, {
|
|
31
|
+
gap: 2,
|
|
32
|
+
children: [jsx(Skeleton$1, {
|
|
33
|
+
variant: "line"
|
|
34
|
+
}), jsx(Skeleton$1, {
|
|
35
|
+
variant: "line"
|
|
36
|
+
}), jsx(Skeleton$1, {
|
|
37
|
+
variant: "line"
|
|
38
|
+
}), jsx(Skeleton$1, {
|
|
39
|
+
variant: "line"
|
|
40
|
+
}), jsx(Skeleton$1, {
|
|
41
|
+
variant: "line"
|
|
57
42
|
})]
|
|
58
|
-
})
|
|
59
|
-
};
|
|
43
|
+
})]
|
|
44
|
+
});
|
|
60
45
|
|
|
61
46
|
export { Skeleton };
|
|
@@ -9,94 +9,55 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
const activeStyle = theme => /*#__PURE__*/css("&:hover{border:1px solid ", theme.colors.primary.borderHover, ";box-shadow:", theme.shadows.defaultShadow, ";cursor:pointer;}");
|
|
10
10
|
const Card = /*#__PURE__*/_styled("div", {
|
|
11
11
|
target: "e2ipnt5"
|
|
12
|
-
})("display:block;text-align:left;padding:0;color:",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} = _ref3;
|
|
26
|
-
return theme.radii.default;
|
|
27
|
-
}, ";background:", _ref4 => {
|
|
28
|
-
let {
|
|
29
|
-
theme
|
|
30
|
-
} = _ref4;
|
|
31
|
-
return theme.colors.neutral.background;
|
|
32
|
-
}, ";", _ref5 => {
|
|
33
|
-
let {
|
|
34
|
-
onClick,
|
|
35
|
-
href,
|
|
36
|
-
theme
|
|
37
|
-
} = _ref5;
|
|
38
|
-
return onClick || href ? activeStyle(theme) : null;
|
|
39
|
-
}, ";overflow-wrap:break-word;");
|
|
12
|
+
})("display:block;text-align:left;padding:0;color:", ({
|
|
13
|
+
theme
|
|
14
|
+
}) => theme.colors.neutral.text, ";text-decoration:none;border:1px solid ", ({
|
|
15
|
+
theme
|
|
16
|
+
}) => theme.colors.neutral.border, ";border-radius:", ({
|
|
17
|
+
theme
|
|
18
|
+
}) => theme.radii.default, ";background:", ({
|
|
19
|
+
theme
|
|
20
|
+
}) => theme.colors.neutral.background, ";", ({
|
|
21
|
+
onClick,
|
|
22
|
+
href,
|
|
23
|
+
theme
|
|
24
|
+
}) => onClick || href ? activeStyle(theme) : null, ";overflow-wrap:break-word;");
|
|
40
25
|
const IconContainer = /*#__PURE__*/_styled("div", {
|
|
41
26
|
target: "e2ipnt4"
|
|
42
|
-
})("display:flex;width:fit-content;background:",
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
theme
|
|
50
|
-
} = _ref7;
|
|
51
|
-
return theme.space['1'];
|
|
52
|
-
}, ";border-radius:", _ref8 => {
|
|
53
|
-
let {
|
|
54
|
-
theme
|
|
55
|
-
} = _ref8;
|
|
56
|
-
return theme.radii.default;
|
|
57
|
-
}, ";");
|
|
27
|
+
})("display:flex;width:fit-content;background:", ({
|
|
28
|
+
theme
|
|
29
|
+
}) => theme.colors.neutral.backgroundWeak, ";padding:", ({
|
|
30
|
+
theme
|
|
31
|
+
}) => theme.space['1'], ";border-radius:", ({
|
|
32
|
+
theme
|
|
33
|
+
}) => theme.radii.default, ";");
|
|
58
34
|
const StyledIconStack = /*#__PURE__*/_styled(Stack, {
|
|
59
35
|
shouldForwardProp: prop => prop !== 'direction',
|
|
60
36
|
target: "e2ipnt3"
|
|
61
|
-
})("padding:",
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
} = _ref9;
|
|
66
|
-
return direction === 'column' ? `0 ${theme.space['3']} ${theme.space['3']} ${theme.space['3']}` : `${theme.space['3']} ${theme.space['3']} ${theme.space['3']} 0`;
|
|
67
|
-
}, ";");
|
|
37
|
+
})("padding:", ({
|
|
38
|
+
theme,
|
|
39
|
+
direction
|
|
40
|
+
}) => direction === 'column' ? `0 ${theme.space['3']} ${theme.space['3']} ${theme.space['3']}` : `${theme.space['3']} ${theme.space['3']} ${theme.space['3']} 0`, ";");
|
|
68
41
|
const SubContainer = /*#__PURE__*/_styled(Stack, {
|
|
69
42
|
shouldForwardProp: prop => !['direction', 'href'].includes(prop),
|
|
70
43
|
target: "e2ipnt2"
|
|
71
|
-
})("padding:",
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}, ";
|
|
78
|
-
let {
|
|
79
|
-
theme,
|
|
80
|
-
href
|
|
81
|
-
} = _ref11;
|
|
82
|
-
return !href ? `${theme.space['3']}` : null;
|
|
83
|
-
}, ";height:fit-content;");
|
|
44
|
+
})("padding:", ({
|
|
45
|
+
theme,
|
|
46
|
+
direction
|
|
47
|
+
}) => direction === 'column' ? `${theme.space['3']} ${theme.space['3']} 0 ${theme.space['3']}` : `${theme.space['3']} 0 ${theme.space['3']} ${theme.space['3']}`, ";padding:", ({
|
|
48
|
+
theme,
|
|
49
|
+
href
|
|
50
|
+
}) => !href ? `${theme.space['3']}` : null, ";height:fit-content;");
|
|
84
51
|
const Image = /*#__PURE__*/_styled('img', {
|
|
85
52
|
shouldForwardProp: prop => !['direction', 'subContainerHeight'].includes(prop),
|
|
86
53
|
target: "e2ipnt1"
|
|
87
|
-
})("object-fit:cover;border-radius:",
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}, ";"
|
|
94
|
-
let {
|
|
95
|
-
direction,
|
|
96
|
-
subContainerHeight
|
|
97
|
-
} = _ref13;
|
|
98
|
-
return direction === 'row' ? `max-height: ${subContainerHeight}px` : null;
|
|
99
|
-
}, ";");
|
|
54
|
+
})("object-fit:cover;border-radius:", ({
|
|
55
|
+
theme,
|
|
56
|
+
direction
|
|
57
|
+
}) => `${direction === 'column' ? `${theme.radii.default} ${theme.radii.default} 0 0` : `${theme.radii.default} 0 0 ${theme.radii.default}`}`, ";", ({
|
|
58
|
+
direction,
|
|
59
|
+
subContainerHeight
|
|
60
|
+
}) => direction === 'row' ? `max-height: ${subContainerHeight}px` : null, ";");
|
|
100
61
|
const FullHeightStack = /*#__PURE__*/_styled(Stack, {
|
|
101
62
|
target: "e2ipnt0"
|
|
102
63
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -112,21 +73,20 @@ const FullHeightStack = /*#__PURE__*/_styled(Stack, {
|
|
|
112
73
|
* It can take different directions to display the image and the content. You can also add more content
|
|
113
74
|
* by passing children.
|
|
114
75
|
*/
|
|
115
|
-
const ContentCard = /*#__PURE__*/forwardRef((
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
} = _ref14;
|
|
76
|
+
const ContentCard = /*#__PURE__*/forwardRef(({
|
|
77
|
+
image,
|
|
78
|
+
direction = 'column',
|
|
79
|
+
icon,
|
|
80
|
+
subtitle,
|
|
81
|
+
title,
|
|
82
|
+
description,
|
|
83
|
+
children,
|
|
84
|
+
href,
|
|
85
|
+
target = '_blank',
|
|
86
|
+
onClick,
|
|
87
|
+
loading,
|
|
88
|
+
className
|
|
89
|
+
}, ref) => {
|
|
130
90
|
const subContainerRef = /*#__PURE__*/createRef();
|
|
131
91
|
const [subContainerHeight, setSubContainerHeight] = useState(subContainerRef?.current?.offsetHeight);
|
|
132
92
|
const Container = useMemo(() => {
|
|
@@ -17,65 +17,32 @@ const StyledStack = /*#__PURE__*/_styled(Stack, {
|
|
|
17
17
|
});
|
|
18
18
|
const IconWrapper = /*#__PURE__*/_styled("div", {
|
|
19
19
|
target: "eqcw8nr2"
|
|
20
|
-
})("display:inline-flex;background:",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
theme
|
|
28
|
-
} = _ref2;
|
|
29
|
-
return theme.space['1'];
|
|
30
|
-
}, ";border-radius:", _ref3 => {
|
|
31
|
-
let {
|
|
32
|
-
theme
|
|
33
|
-
} = _ref3;
|
|
34
|
-
return theme.radii.default;
|
|
35
|
-
}, ";");
|
|
20
|
+
})("display:inline-flex;background:", ({
|
|
21
|
+
theme
|
|
22
|
+
}) => theme.colors.neutral.backgroundWeak, ";padding:", ({
|
|
23
|
+
theme
|
|
24
|
+
}) => theme.space['1'], ";border-radius:", ({
|
|
25
|
+
theme
|
|
26
|
+
}) => theme.radii.default, ";");
|
|
36
27
|
const StyledWrapper = /*#__PURE__*/_styled("a", {
|
|
37
28
|
target: "eqcw8nr1"
|
|
38
|
-
})("padding:",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, "
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
theme
|
|
56
|
-
} = _ref7;
|
|
57
|
-
return theme.radii.default;
|
|
58
|
-
}, " 0 0;}&:last-child{border-radius:0 0 ", _ref8 => {
|
|
59
|
-
let {
|
|
60
|
-
theme
|
|
61
|
-
} = _ref8;
|
|
62
|
-
return theme.radii.default;
|
|
63
|
-
}, " ", _ref9 => {
|
|
64
|
-
let {
|
|
65
|
-
theme
|
|
66
|
-
} = _ref9;
|
|
67
|
-
return theme.radii.default;
|
|
68
|
-
}, ";}& ", IconWrapper, "{background:", _ref10 => {
|
|
69
|
-
let {
|
|
70
|
-
theme
|
|
71
|
-
} = _ref10;
|
|
72
|
-
return theme.colors.neutral.backgroundWeak;
|
|
73
|
-
}, ";}&:hover{background:", _ref11 => {
|
|
74
|
-
let {
|
|
75
|
-
theme
|
|
76
|
-
} = _ref11;
|
|
77
|
-
return theme.colors.neutral.backgroundHover;
|
|
78
|
-
}, ";& ", IconWrapper, "{background:none;}}");
|
|
29
|
+
})("padding:", ({
|
|
30
|
+
theme
|
|
31
|
+
}) => theme.space['3'], ";text-decoration:none;height:100%;&:not(:first-child){border-top:1px solid ", ({
|
|
32
|
+
theme
|
|
33
|
+
}) => theme.colors.neutral.border, ";}&:first-child{border-radius:", ({
|
|
34
|
+
theme
|
|
35
|
+
}) => theme.radii.default, " ", ({
|
|
36
|
+
theme
|
|
37
|
+
}) => theme.radii.default, " 0 0;}&:last-child{border-radius:0 0 ", ({
|
|
38
|
+
theme
|
|
39
|
+
}) => theme.radii.default, " ", ({
|
|
40
|
+
theme
|
|
41
|
+
}) => theme.radii.default, ";}& ", IconWrapper, "{background:", ({
|
|
42
|
+
theme
|
|
43
|
+
}) => theme.colors.neutral.backgroundWeak, ";}&:hover{background:", ({
|
|
44
|
+
theme
|
|
45
|
+
}) => theme.colors.neutral.backgroundHover, ";& ", IconWrapper, "{background:none;}}");
|
|
79
46
|
const FullHeightStack = /*#__PURE__*/_styled(Stack, {
|
|
80
47
|
target: "eqcw8nr0"
|
|
81
48
|
})(process.env.NODE_ENV === "production" ? {
|
|
@@ -86,56 +53,53 @@ const FullHeightStack = /*#__PURE__*/_styled(Stack, {
|
|
|
86
53
|
styles: "height:100%",
|
|
87
54
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
88
55
|
});
|
|
89
|
-
const Card = /*#__PURE__*/forwardRef((
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
children: [jsxs(
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
variant: "caption",
|
|
113
|
-
prominence: "weak",
|
|
114
|
-
sentiment: "neutral",
|
|
115
|
-
oneLine: true,
|
|
116
|
-
children: subtitle
|
|
117
|
-
}) : null, jsx(Text, {
|
|
118
|
-
as: "h3",
|
|
119
|
-
variant: "bodyStrong",
|
|
120
|
-
sentiment: "neutral",
|
|
121
|
-
oneLine: true,
|
|
122
|
-
children: title
|
|
123
|
-
})]
|
|
124
|
-
}), description ? jsx(Text, {
|
|
125
|
-
as: "p",
|
|
126
|
-
variant: "bodySmall",
|
|
56
|
+
const Card = /*#__PURE__*/forwardRef(({
|
|
57
|
+
title,
|
|
58
|
+
subtitle,
|
|
59
|
+
description,
|
|
60
|
+
children,
|
|
61
|
+
href,
|
|
62
|
+
target = '_blank'
|
|
63
|
+
}, ref) => jsx(StyledWrapper, {
|
|
64
|
+
href: href,
|
|
65
|
+
target: target,
|
|
66
|
+
ref: ref,
|
|
67
|
+
children: jsxs(FullHeightStack, {
|
|
68
|
+
direction: "row",
|
|
69
|
+
gap: 2,
|
|
70
|
+
alignItems: "center",
|
|
71
|
+
justifyContent: "space-between",
|
|
72
|
+
children: [jsxs(StyledStack, {
|
|
73
|
+
gap: "0.5",
|
|
74
|
+
children: [jsxs("div", {
|
|
75
|
+
children: [subtitle ? jsx(Text, {
|
|
76
|
+
as: "h5",
|
|
77
|
+
variant: "caption",
|
|
78
|
+
prominence: "weak",
|
|
127
79
|
sentiment: "neutral",
|
|
128
80
|
oneLine: true,
|
|
129
|
-
children:
|
|
130
|
-
}) : null,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
81
|
+
children: subtitle
|
|
82
|
+
}) : null, jsx(Text, {
|
|
83
|
+
as: "h3",
|
|
84
|
+
variant: "bodyStrong",
|
|
85
|
+
sentiment: "neutral",
|
|
86
|
+
oneLine: true,
|
|
87
|
+
children: title
|
|
88
|
+
})]
|
|
89
|
+
}), description ? jsx(Text, {
|
|
90
|
+
as: "p",
|
|
91
|
+
variant: "bodySmall",
|
|
92
|
+
sentiment: "neutral",
|
|
93
|
+
oneLine: true,
|
|
94
|
+
children: description
|
|
95
|
+
}) : null, children]
|
|
96
|
+
}), jsx(IconWrapper, {
|
|
97
|
+
children: jsx(Icon, {
|
|
98
|
+
name: "open-in-new",
|
|
99
|
+
color: "neutral"
|
|
100
|
+
})
|
|
101
|
+
})]
|
|
102
|
+
})
|
|
103
|
+
}));
|
|
140
104
|
|
|
141
105
|
export { Card };
|