@ultraviolet/plus 3.4.5 → 3.5.1
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/.vite/license.md +3 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/defineProperty.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectSpread2.js +28 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutProperties.js +18 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/objectWithoutPropertiesLoose.js +15 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPrimitive.js +17 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/toPropertyKey.js +12 -0
- package/dist/_virtual/_@oxc-project_runtime@0.113.0/helpers/typeof.js +14 -0
- package/dist/_virtual/_rolldown/runtime.js +9 -0
- package/dist/components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.js +111 -137
- package/dist/components/CodeEditor/styles.css.js +18 -15
- package/dist/components/ContentCard/Skeleton.d.ts.map +1 -1
- package/dist/components/ContentCard/Skeleton.js +31 -27
- package/dist/components/ContentCard/index.js +107 -140
- package/dist/components/ContentCard/styles.css.d.ts +1 -1
- package/dist/components/ContentCard/styles.css.js +23 -19
- package/dist/components/ContentCardGroup/Card.js +55 -69
- package/dist/components/ContentCardGroup/SkeletonCard.js +28 -14
- package/dist/components/ContentCardGroup/index.d.ts +7 -7
- package/dist/components/ContentCardGroup/index.js +20 -25
- package/dist/components/ContentCardGroup/styles.css.js +6 -11
- package/dist/components/Conversation/index.d.ts +29 -23
- package/dist/components/Conversation/index.d.ts.map +1 -1
- package/dist/components/Conversation/index.js +46 -48
- package/dist/components/Conversation/styles.css.js +19 -13
- package/dist/components/CustomerSatisfaction/assets/1-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/1-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/2-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/3-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/4-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5.js +5 -0
- package/dist/components/CustomerSatisfaction/assets/5-5NB.js +5 -0
- package/dist/components/CustomerSatisfaction/index.d.ts +1 -1
- package/dist/components/CustomerSatisfaction/index.d.ts.map +1 -1
- package/dist/components/CustomerSatisfaction/index.js +85 -100
- package/dist/components/CustomerSatisfaction/styles.css.js +18 -6
- package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/CustomUnitInput.js +39 -52
- package/dist/components/EstimateCost/Components/Item.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Item.js +223 -323
- package/dist/components/EstimateCost/Components/LineThrough.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/LineThrough.js +16 -16
- package/dist/components/EstimateCost/Components/NumberInput.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/NumberInput.js +33 -37
- package/dist/components/EstimateCost/Components/Region.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Region.js +34 -57
- package/dist/components/EstimateCost/Components/Regular.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Regular.js +21 -26
- package/dist/components/EstimateCost/Components/Strong.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Strong.js +14 -19
- package/dist/components/EstimateCost/Components/Unit.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Unit.js +47 -40
- package/dist/components/EstimateCost/Components/Zone.d.ts.map +1 -1
- package/dist/components/EstimateCost/Components/Zone.js +33 -55
- package/dist/components/EstimateCost/Components/components.css.js +122 -86
- package/dist/components/EstimateCost/EstimateCost.d.ts +138 -121
- package/dist/components/EstimateCost/EstimateCost.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCost.js +79 -124
- package/dist/components/EstimateCost/EstimateCostContent.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +284 -394
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts.map +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.js +30 -37
- package/dist/components/EstimateCost/OverlayComponent.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayComponent.js +95 -93
- package/dist/components/EstimateCost/OverlayContext.d.ts.map +1 -1
- package/dist/components/EstimateCost/OverlayContext.js +12 -10
- package/dist/components/EstimateCost/constants.js +19 -21
- package/dist/components/EstimateCost/helper.d.ts +2 -2
- package/dist/components/EstimateCost/helper.d.ts.map +1 -1
- package/dist/components/EstimateCost/helper.js +9 -14
- package/dist/components/EstimateCost/locales/en.js +24 -23
- package/dist/components/EstimateCost/styles.css.d.ts +2 -2
- package/dist/components/EstimateCost/styles.css.js +50 -36
- package/dist/components/EstimateCost/types.d.ts +1 -1
- package/dist/components/EstimateCost/types.d.ts.map +1 -1
- package/dist/components/FAQ/index.d.ts.map +1 -1
- package/dist/components/FAQ/index.js +37 -31
- package/dist/components/FAQ/styles.css.js +6 -4
- package/dist/components/InfoTable/InfoTable.d.ts +10 -13
- package/dist/components/InfoTable/InfoTable.d.ts.map +1 -1
- package/dist/components/InfoTable/InfoTable.js +24 -15
- package/dist/components/InfoTable/components/Cell.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Cell.js +37 -45
- package/dist/components/InfoTable/components/Row.d.ts.map +1 -1
- package/dist/components/InfoTable/components/Row.js +19 -27
- package/dist/components/InfoTable/context.d.ts +1 -1
- package/dist/components/InfoTable/context.d.ts.map +1 -1
- package/dist/components/InfoTable/context.js +5 -3
- package/dist/components/InfoTable/styles.css.js +6 -10
- package/dist/components/Navigation/Footer.d.ts.map +1 -1
- package/dist/components/Navigation/Footer.js +59 -75
- package/dist/components/Navigation/Header.d.ts.map +1 -1
- package/dist/components/Navigation/Header.js +20 -17
- package/dist/components/Navigation/Navigation.d.ts +46 -43
- package/dist/components/Navigation/Navigation.d.ts.map +1 -1
- package/dist/components/Navigation/Navigation.js +23 -27
- package/dist/components/Navigation/NavigationContent.d.ts +1 -1
- package/dist/components/Navigation/NavigationContent.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationContent.js +100 -138
- package/dist/components/Navigation/NavigationProvider.d.ts.map +1 -1
- package/dist/components/Navigation/NavigationProvider.js +116 -165
- package/dist/components/Navigation/components/Group.d.ts.map +1 -1
- package/dist/components/Navigation/components/Group.js +36 -43
- package/dist/components/Navigation/components/Item.d.ts +1 -1
- package/dist/components/Navigation/components/Item.d.ts.map +1 -1
- package/dist/components/Navigation/components/Item.js +440 -607
- package/dist/components/Navigation/components/ItemProvider.d.ts.map +1 -1
- package/dist/components/Navigation/components/ItemProvider.js +13 -8
- package/dist/components/Navigation/components/PinnedItems.d.ts.map +1 -1
- package/dist/components/Navigation/components/PinnedItems.js +101 -132
- package/dist/components/Navigation/components/Separator.js +10 -7
- package/dist/components/Navigation/components/ShowHide.d.ts +1 -1
- package/dist/components/Navigation/components/ShowHide.d.ts.map +1 -1
- package/dist/components/Navigation/components/ShowHide.js +51 -75
- package/dist/components/Navigation/components/items.css.js +72 -30
- package/dist/components/Navigation/components/styles.css.js +23 -13
- package/dist/components/Navigation/locales/en.js +12 -11
- package/dist/components/Navigation/styles.css.js +28 -14
- package/dist/components/Navigation/variables.css.js +6 -4
- package/dist/components/OfferList/OfferList.d.ts +5 -51
- package/dist/components/OfferList/OfferList.d.ts.map +1 -1
- package/dist/components/OfferList/OfferList.js +11 -78
- package/dist/components/OrderSummary/index.d.ts +5 -2
- package/dist/components/OrderSummary/index.d.ts.map +1 -1
- package/dist/components/OrderSummary/index.js +11 -204
- package/dist/components/Plans/index.d.ts +5 -21
- package/dist/components/Plans/index.d.ts.map +1 -1
- package/dist/components/Plans/index.js +11 -214
- package/dist/components/SteppedListCard/index.d.ts +5 -1
- package/dist/components/SteppedListCard/index.d.ts.map +1 -1
- package/dist/components/SteppedListCard/index.js +11 -0
- package/dist/index.js +5 -21
- package/dist/plus.css +2 -1
- package/package.json +9 -8
- package/LICENSE +0 -189
- package/dist/components/CustomerSatisfaction/assets/1-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5.svg.js +0 -4
- package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.js +0 -4
- package/dist/components/Navigation/constants.js +0 -10
- package/dist/components/OfferList/OfferListProvider.d.ts +0 -30
- package/dist/components/OfferList/OfferListProvider.d.ts.map +0 -1
- package/dist/components/OfferList/OfferListProvider.js +0 -48
- package/dist/components/OfferList/components/Banner.d.ts +0 -13
- package/dist/components/OfferList/components/Banner.d.ts.map +0 -1
- package/dist/components/OfferList/components/Banner.js +0 -43
- package/dist/components/OfferList/components/Cell.d.ts +0 -4
- package/dist/components/OfferList/components/Cell.d.ts.map +0 -1
- package/dist/components/OfferList/components/Cell.js +0 -35
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts +0 -9
- package/dist/components/OfferList/components/OfferListRowProvider.d.ts.map +0 -1
- package/dist/components/OfferList/components/OfferListRowProvider.js +0 -10
- package/dist/components/OfferList/components/Row.d.ts +0 -18
- package/dist/components/OfferList/components/Row.d.ts.map +0 -1
- package/dist/components/OfferList/components/Row.js +0 -258
- package/dist/components/OfferList/styles.css.d.ts +0 -44
- package/dist/components/OfferList/styles.css.d.ts.map +0 -1
- package/dist/components/OfferList/styles.css.js +0 -40
- package/dist/components/OrderSummary/NonScrollableContent.d.ts +0 -20
- package/dist/components/OrderSummary/NonScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/NonScrollableContent.js +0 -136
- package/dist/components/OrderSummary/Provider.d.ts +0 -15
- package/dist/components/OrderSummary/Provider.d.ts.map +0 -1
- package/dist/components/OrderSummary/Provider.js +0 -15
- package/dist/components/OrderSummary/ScrollableContent.d.ts +0 -2
- package/dist/components/OrderSummary/ScrollableContent.d.ts.map +0 -1
- package/dist/components/OrderSummary/ScrollableContent.js +0 -314
- package/dist/components/OrderSummary/constants.d.ts +0 -3
- package/dist/components/OrderSummary/constants.d.ts.map +0 -1
- package/dist/components/OrderSummary/constants.js +0 -18
- package/dist/components/OrderSummary/helpers.d.ts +0 -28
- package/dist/components/OrderSummary/helpers.d.ts.map +0 -1
- package/dist/components/OrderSummary/helpers.js +0 -156
- package/dist/components/OrderSummary/locales/en.d.ts +0 -11
- package/dist/components/OrderSummary/locales/en.d.ts.map +0 -1
- package/dist/components/OrderSummary/locales/en.js +0 -12
- package/dist/components/OrderSummary/styles.css.d.ts +0 -21
- package/dist/components/OrderSummary/styles.css.d.ts.map +0 -1
- package/dist/components/OrderSummary/styles.css.js +0 -26
- package/dist/components/OrderSummary/types.d.ts +0 -125
- package/dist/components/OrderSummary/types.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.d.ts +0 -7
- package/dist/components/Plans/FeatureHint.d.ts.map +0 -1
- package/dist/components/Plans/FeatureHint.js +0 -42
- package/dist/components/Plans/PlanHeader.d.ts +0 -14
- package/dist/components/Plans/PlanHeader.d.ts.map +0 -1
- package/dist/components/Plans/PlanHeader.js +0 -96
- package/dist/components/Plans/locales/en.d.ts +0 -7
- package/dist/components/Plans/locales/en.d.ts.map +0 -1
- package/dist/components/Plans/locales/en.js +0 -8
- package/dist/components/Plans/styles.css.d.ts +0 -67
- package/dist/components/Plans/styles.css.d.ts.map +0 -1
- package/dist/components/Plans/styles.css.js +0 -26
- package/dist/components/Plans/types.d.ts +0 -38
- package/dist/components/Plans/types.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.d.ts +0 -23
- package/dist/components/SteppedListCard/Step.d.ts.map +0 -1
- package/dist/components/SteppedListCard/Step.js +0 -61
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +0 -69
- package/dist/components/SteppedListCard/SteppedListCard.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListCard.js +0 -105
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +0 -12
- package/dist/components/SteppedListCard/SteppedListContent.d.ts.map +0 -1
- package/dist/components/SteppedListCard/SteppedListContent.js +0 -53
- package/dist/components/SteppedListCard/helper.d.ts +0 -27
- package/dist/components/SteppedListCard/helper.d.ts.map +0 -1
- package/dist/components/SteppedListCard/helper.js +0 -41
- package/dist/components/SteppedListCard/styles.css.d.ts +0 -9
- package/dist/components/SteppedListCard/styles.css.d.ts.map +0 -1
- package/dist/components/SteppedListCard/styles.css.js +0 -19
|
@@ -1,143 +1,110 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { activeClass, cardClass, fullHeight, iconContainer, iconStack, imageClass, subContainer, subContainerHeightVar } from "./styles.css.js";
|
|
4
|
+
import { Skeleton as Skeleton$1 } from "./Skeleton.js";
|
|
4
5
|
import { Stack, Text } from "@ultraviolet/ui";
|
|
5
6
|
import { cn } from "@ultraviolet/utils";
|
|
6
7
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
7
|
-
import { forwardRef,
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
{
|
|
111
|
-
as: "p",
|
|
112
|
-
disabled,
|
|
113
|
-
sentiment: "neutral",
|
|
114
|
-
variant: "bodySmall",
|
|
115
|
-
children: description
|
|
116
|
-
}
|
|
117
|
-
) : null
|
|
118
|
-
] }),
|
|
119
|
-
children ? /* @__PURE__ */ jsx(Stack, { children }) : null
|
|
120
|
-
] })
|
|
121
|
-
]
|
|
122
|
-
}
|
|
123
|
-
),
|
|
124
|
-
href ? /* @__PURE__ */ jsx(
|
|
125
|
-
Stack,
|
|
126
|
-
{
|
|
127
|
-
alignItems: direction === "column" ? "flex-end" : "center",
|
|
128
|
-
className: iconStack[direction],
|
|
129
|
-
direction,
|
|
130
|
-
flex: 1,
|
|
131
|
-
justifyContent: direction === "column" ? "center" : "flex-end",
|
|
132
|
-
children: /* @__PURE__ */ jsx("div", { className: iconContainer, children: /* @__PURE__ */ jsx(OpenInNewIcon, { disabled, sentiment: "neutral" }) })
|
|
133
|
-
}
|
|
134
|
-
) : null
|
|
135
|
-
] })
|
|
136
|
-
] })
|
|
137
|
-
}
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
);
|
|
141
|
-
export {
|
|
142
|
-
ContentCard
|
|
143
|
-
};
|
|
8
|
+
import { forwardRef, useEffect, useMemo, useRef, useState } from "react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
|
|
11
|
+
|
|
12
|
+
//#region src/components/ContentCard/index.tsx
|
|
13
|
+
/**
|
|
14
|
+
* ContentCard is a component that displays a title, subtitle, description, image and icon in a card.
|
|
15
|
+
* It can take different directions to display the image and the content. You can also add more content
|
|
16
|
+
* by passing children.
|
|
17
|
+
*/
|
|
18
|
+
const ContentCard = forwardRef(({ image, direction = "column", icon, subtitle, title, headingTag = "h3", description, children, href, target = "_blank", onClick, disabled, loading, className, style }, ref) => {
|
|
19
|
+
var _subContainerRef$curr;
|
|
20
|
+
const subContainerRef = useRef(null);
|
|
21
|
+
const [subContainerHeight, setSubContainerHeight] = useState(subContainerRef === null || subContainerRef === void 0 || (_subContainerRef$curr = subContainerRef.current) === null || _subContainerRef$curr === void 0 ? void 0 : _subContainerRef$curr.offsetHeight);
|
|
22
|
+
const Container = useMemo(() => {
|
|
23
|
+
if (href) return "a";
|
|
24
|
+
if (onClick) return "button";
|
|
25
|
+
return "div";
|
|
26
|
+
}, [href, onClick]);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
var _subContainerRef$curr2;
|
|
29
|
+
return setSubContainerHeight(subContainerRef === null || subContainerRef === void 0 || (_subContainerRef$curr2 = subContainerRef.current) === null || _subContainerRef$curr2 === void 0 ? void 0 : _subContainerRef$curr2.offsetHeight);
|
|
30
|
+
}, [subContainerRef]);
|
|
31
|
+
return /* @__PURE__ */ jsx(Container, {
|
|
32
|
+
className: cn(className, cardClass, onClick || href ? activeClass : ""),
|
|
33
|
+
disabled,
|
|
34
|
+
href: disabled ? void 0 : href,
|
|
35
|
+
onClick: disabled ? void 0 : onClick,
|
|
36
|
+
ref,
|
|
37
|
+
role: onClick && !href ? "button" : void 0,
|
|
38
|
+
style,
|
|
39
|
+
target,
|
|
40
|
+
children: loading ? /* @__PURE__ */ jsx(Skeleton$1, { direction }) : /* @__PURE__ */ jsxs(Stack, {
|
|
41
|
+
className: fullHeight,
|
|
42
|
+
direction,
|
|
43
|
+
children: [image ? /* @__PURE__ */ jsx("img", {
|
|
44
|
+
alt: "",
|
|
45
|
+
className: imageClass[direction],
|
|
46
|
+
"data-disabled": disabled,
|
|
47
|
+
height: direction === "column" ? 120 : void 0,
|
|
48
|
+
src: image,
|
|
49
|
+
style: assignInlineVars({ [subContainerHeightVar]: subContainerHeight ? `${subContainerHeight.toString()}px` : void 0 }),
|
|
50
|
+
width: direction === "row" ? 220 : void 0
|
|
51
|
+
}) : null, /* @__PURE__ */ jsxs(Stack, {
|
|
52
|
+
direction,
|
|
53
|
+
flex: 1,
|
|
54
|
+
gap: 2,
|
|
55
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
56
|
+
alignItems: subtitle || description || children ? void 0 : "center",
|
|
57
|
+
className: subContainer[href ? direction : "noHref"],
|
|
58
|
+
direction,
|
|
59
|
+
flex: "1 1 auto",
|
|
60
|
+
gap: 2,
|
|
61
|
+
ref: subContainerRef,
|
|
62
|
+
children: [icon !== null && icon !== void 0 ? icon : null, /* @__PURE__ */ jsxs(Stack, {
|
|
63
|
+
flex: "1 1 auto",
|
|
64
|
+
gap: 2,
|
|
65
|
+
justifyContent: "space-between",
|
|
66
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
67
|
+
gap: .5,
|
|
68
|
+
children: [/* @__PURE__ */ jsxs(Stack, { children: [subtitle ? /* @__PURE__ */ jsx(Text, {
|
|
69
|
+
as: "small",
|
|
70
|
+
disabled,
|
|
71
|
+
prominence: "weak",
|
|
72
|
+
sentiment: "neutral",
|
|
73
|
+
variant: "caption",
|
|
74
|
+
children: subtitle
|
|
75
|
+
}) : null, /* @__PURE__ */ jsx(Text, {
|
|
76
|
+
as: headingTag,
|
|
77
|
+
disabled,
|
|
78
|
+
sentiment: "neutral",
|
|
79
|
+
variant: "bodyStrong",
|
|
80
|
+
children: title
|
|
81
|
+
})] }), description ? /* @__PURE__ */ jsx(Text, {
|
|
82
|
+
as: "p",
|
|
83
|
+
disabled,
|
|
84
|
+
sentiment: "neutral",
|
|
85
|
+
variant: "bodySmall",
|
|
86
|
+
children: description
|
|
87
|
+
}) : null]
|
|
88
|
+
}), children ? /* @__PURE__ */ jsx(Stack, { children }) : null]
|
|
89
|
+
})]
|
|
90
|
+
}), href ? /* @__PURE__ */ jsx(Stack, {
|
|
91
|
+
alignItems: direction === "column" ? "flex-end" : "center",
|
|
92
|
+
className: iconStack[direction],
|
|
93
|
+
direction,
|
|
94
|
+
flex: 1,
|
|
95
|
+
justifyContent: direction === "column" ? "center" : "flex-end",
|
|
96
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
97
|
+
className: iconContainer,
|
|
98
|
+
children: /* @__PURE__ */ jsx(OpenInNewIcon, {
|
|
99
|
+
disabled,
|
|
100
|
+
sentiment: "neutral"
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
}) : null]
|
|
104
|
+
})]
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { ContentCard };
|
|
@@ -5,7 +5,7 @@ export declare const activeClass: string;
|
|
|
5
5
|
export declare const cardClass: string;
|
|
6
6
|
export declare const iconContainer: string;
|
|
7
7
|
export declare const iconStack: Record<"column" | "row", string>;
|
|
8
|
-
export declare const subContainer: Record<"column" | "
|
|
8
|
+
export declare const subContainer: Record<"column" | "noHref" | "row", string>;
|
|
9
9
|
export declare const imageClass: Record<"column" | "row", string>;
|
|
10
10
|
export declare const fullHeight: string;
|
|
11
11
|
export declare const skeletonImage: Record<"column" | "row", string>;
|
|
@@ -1,27 +1,31 @@
|
|
|
1
|
-
/* empty css
|
|
1
|
+
/* empty css */
|
|
2
|
+
|
|
3
|
+
//#region src/components/ContentCard/styles.css.ts
|
|
2
4
|
var subContainerHeightVar = "var(--uv_plus_u4r1ts0)";
|
|
3
5
|
var skeletonHeightVar = "var(--uv_plus_u4r1ts1)";
|
|
4
6
|
var skeletonWidthVar = "var(--uv_plus_u4r1ts2)";
|
|
5
7
|
var activeClass = "uv_plus_u4r1ts3";
|
|
6
8
|
var cardClass = "uv_plus_u4r1ts4";
|
|
7
9
|
var iconContainer = "uv_plus_u4r1ts5";
|
|
8
|
-
var iconStack = {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
var iconStack = {
|
|
11
|
+
column: "uv_plus_u4r1ts6",
|
|
12
|
+
row: "uv_plus_u4r1ts7"
|
|
13
|
+
};
|
|
14
|
+
var subContainer = {
|
|
15
|
+
column: "uv_plus_u4r1ts9 uv_plus_u4r1ts8",
|
|
16
|
+
noHref: "uv_plus_u4r1tsa uv_plus_u4r1ts8",
|
|
17
|
+
row: "uv_plus_u4r1tsb uv_plus_u4r1ts8"
|
|
18
|
+
};
|
|
19
|
+
var imageClass = {
|
|
20
|
+
column: "uv_plus_u4r1tsd uv_plus_u4r1tsc",
|
|
21
|
+
row: "uv_plus_u4r1tse uv_plus_u4r1tsc"
|
|
22
|
+
};
|
|
11
23
|
var fullHeight = "uv_plus_u4r1tsf";
|
|
12
|
-
var skeletonImage = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
activeClass,
|
|
16
|
-
cardClass,
|
|
17
|
-
fullHeight,
|
|
18
|
-
iconContainer,
|
|
19
|
-
iconStack,
|
|
20
|
-
imageClass,
|
|
21
|
-
paddedStack,
|
|
22
|
-
skeletonHeightVar,
|
|
23
|
-
skeletonImage,
|
|
24
|
-
skeletonWidthVar,
|
|
25
|
-
subContainer,
|
|
26
|
-
subContainerHeightVar
|
|
24
|
+
var skeletonImage = {
|
|
25
|
+
column: "uv_plus_u4r1tsh uv_plus_u4r1tsg",
|
|
26
|
+
row: "uv_plus_u4r1tsi uv_plus_u4r1tsg"
|
|
27
27
|
};
|
|
28
|
+
var paddedStack = "uv_plus_u4r1tsj";
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { activeClass, cardClass, fullHeight, iconContainer, iconStack, imageClass, paddedStack, skeletonHeightVar, skeletonImage, skeletonWidthVar, subContainer, subContainerHeightVar };
|
|
@@ -1,71 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import { customStack, fullHeightStack, iconWrapper, styledWrapper } from "./styles.css.js";
|
|
4
4
|
import { Stack, Text } from "@ultraviolet/ui";
|
|
5
5
|
import { forwardRef } from "react";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
] }),
|
|
59
|
-
description ? /* @__PURE__ */ jsx(Text, { as: "p", oneLine: true, sentiment: "neutral", variant: "bodySmall", children: description }) : null,
|
|
60
|
-
children
|
|
61
|
-
] }),
|
|
62
|
-
/* @__PURE__ */ jsx("div", { className: iconWrapper, children: /* @__PURE__ */ jsx(OpenInNewIcon, { sentiment: "neutral" }) })
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
);
|
|
69
|
-
export {
|
|
70
|
-
Card
|
|
71
|
-
};
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { OpenInNewIcon } from "@ultraviolet/icons/OpenInNewIcon";
|
|
8
|
+
|
|
9
|
+
//#region src/components/ContentCardGroup/Card.tsx
|
|
10
|
+
const Card$1 = forwardRef(({ title, titleAs, subtitle, subtitleAs, description, children, href, target = "_blank", style }, ref) => /* @__PURE__ */ jsx("a", {
|
|
11
|
+
className: styledWrapper,
|
|
12
|
+
href,
|
|
13
|
+
ref,
|
|
14
|
+
style,
|
|
15
|
+
target,
|
|
16
|
+
children: /* @__PURE__ */ jsxs(Stack, {
|
|
17
|
+
alignItems: "center",
|
|
18
|
+
className: fullHeightStack,
|
|
19
|
+
direction: "row",
|
|
20
|
+
gap: 2,
|
|
21
|
+
justifyContent: "space-between",
|
|
22
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
23
|
+
className: customStack,
|
|
24
|
+
gap: "0.5",
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsxs("div", { children: [subtitle ? /* @__PURE__ */ jsx(Text, {
|
|
27
|
+
as: subtitleAs !== null && subtitleAs !== void 0 ? subtitleAs : "h5",
|
|
28
|
+
oneLine: true,
|
|
29
|
+
prominence: "weak",
|
|
30
|
+
sentiment: "neutral",
|
|
31
|
+
variant: "caption",
|
|
32
|
+
children: subtitle
|
|
33
|
+
}) : null, /* @__PURE__ */ jsx(Text, {
|
|
34
|
+
as: titleAs !== null && titleAs !== void 0 ? titleAs : "h3",
|
|
35
|
+
oneLine: true,
|
|
36
|
+
sentiment: "neutral",
|
|
37
|
+
variant: "bodyStrong",
|
|
38
|
+
children: title
|
|
39
|
+
})] }),
|
|
40
|
+
description ? /* @__PURE__ */ jsx(Text, {
|
|
41
|
+
as: "p",
|
|
42
|
+
oneLine: true,
|
|
43
|
+
sentiment: "neutral",
|
|
44
|
+
variant: "bodySmall",
|
|
45
|
+
children: description
|
|
46
|
+
}) : null,
|
|
47
|
+
children
|
|
48
|
+
]
|
|
49
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
50
|
+
className: iconWrapper,
|
|
51
|
+
children: /* @__PURE__ */ jsx(OpenInNewIcon, { sentiment: "neutral" })
|
|
52
|
+
})]
|
|
53
|
+
})
|
|
54
|
+
}));
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
export { Card$1 as Card };
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Stack, Skeleton } from "@ultraviolet/ui";
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
4
3
|
import { skeletonWrapper, squareSkeleton } from "./styles.css.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
import { Skeleton, Stack } from "@ultraviolet/ui";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/ContentCardGroup/SkeletonCard.tsx
|
|
8
|
+
const SkeletonCard = () => /* @__PURE__ */ jsx("div", {
|
|
9
|
+
className: skeletonWrapper,
|
|
10
|
+
children: /* @__PURE__ */ jsxs(Stack, {
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
direction: "row",
|
|
13
|
+
justifyContent: "space-between",
|
|
14
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
15
|
+
gap: 2,
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
|
|
18
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
|
|
19
|
+
/* @__PURE__ */ jsx(Skeleton, { variant: "line" })
|
|
20
|
+
]
|
|
21
|
+
}), /* @__PURE__ */ jsx(Skeleton, {
|
|
22
|
+
className: squareSkeleton,
|
|
23
|
+
variant: "square"
|
|
24
|
+
})]
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { SkeletonCard };
|
|
@@ -6,15 +6,15 @@ type BaseContentCardGroupProps = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const ContentCardGroup: import("react").ForwardRefExoticComponent<BaseContentCardGroupProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
8
8
|
Card: import("react").ForwardRefExoticComponent<{
|
|
9
|
-
title?: string;
|
|
10
|
-
titleAs?: import("react").ElementType;
|
|
11
|
-
subtitle?: string;
|
|
12
|
-
subtitleAs?: import("react").ElementType;
|
|
13
|
-
description?: string;
|
|
9
|
+
title?: string | undefined;
|
|
10
|
+
titleAs?: import("react").ElementType | undefined;
|
|
11
|
+
subtitle?: string | undefined;
|
|
12
|
+
subtitleAs?: import("react").ElementType | undefined;
|
|
13
|
+
description?: string | undefined;
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
href: string;
|
|
16
|
-
target?: import("react").
|
|
17
|
-
style?: CSSProperties;
|
|
16
|
+
target?: import("react").HTMLAttributeAnchorTarget | undefined;
|
|
17
|
+
style?: CSSProperties | undefined;
|
|
18
18
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
19
19
|
};
|
|
20
20
|
export {};
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Stack } from "@ultraviolet/ui";
|
|
4
|
-
import { forwardRef, Children } from "react";
|
|
5
|
-
import { Card } from "./Card.js";
|
|
6
|
-
import { SkeletonCard } from "./SkeletonCard.js";
|
|
1
|
+
'use client';
|
|
2
|
+
import { __name } from "../../_virtual/_rolldown/runtime.js";
|
|
7
3
|
import { groupCardWrapper } from "./styles.css.js";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
4
|
+
import { Card as Card$1 } from "./Card.js";
|
|
5
|
+
import { SkeletonCard } from "./SkeletonCard.js";
|
|
6
|
+
import { Stack } from "@ultraviolet/ui";
|
|
7
|
+
import { Children, forwardRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
|
|
10
|
+
//#region src/components/ContentCardGroup/index.tsx
|
|
11
|
+
const BaseContentCardGroup = forwardRef(({ children, loading, style }, ref) => /* @__PURE__ */ jsx(Stack, {
|
|
12
|
+
className: groupCardWrapper,
|
|
13
|
+
direction: "column",
|
|
14
|
+
ref,
|
|
15
|
+
style,
|
|
16
|
+
children: loading ? Children.map(children, (_child, index) => /* @__PURE__ */ jsx(SkeletonCard, {}, index)) : children
|
|
17
|
+
}));
|
|
18
|
+
const ContentCardGroup = Object.assign(BaseContentCardGroup, { Card: Card$1 });
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { ContentCardGroup };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
/* empty css
|
|
2
|
-
|
|
1
|
+
/* empty css */
|
|
2
|
+
|
|
3
|
+
//#region src/components/ContentCardGroup/styles.css.ts
|
|
3
4
|
var customStack = "uv_plus_1gpmh3x0";
|
|
4
5
|
var styledWrapper = "uv_plus_1gpmh3x1";
|
|
5
6
|
var iconWrapper = "uv_plus_1gpmh3x2";
|
|
@@ -7,12 +8,6 @@ var fullHeightStack = "uv_plus_1gpmh3x3";
|
|
|
7
8
|
var groupCardWrapper = "uv_plus_1gpmh3x4";
|
|
8
9
|
var skeletonWrapper = "uv_plus_1gpmh3x5";
|
|
9
10
|
var squareSkeleton = "uv_plus_1gpmh3x6";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
groupCardWrapper,
|
|
14
|
-
iconWrapper,
|
|
15
|
-
skeletonWrapper,
|
|
16
|
-
squareSkeleton,
|
|
17
|
-
styledWrapper
|
|
18
|
-
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { customStack, fullHeightStack, groupCardWrapper, iconWrapper, skeletonWrapper, squareSkeleton, styledWrapper };
|