@ultraviolet/plus 3.0.0-beta.9 → 3.0.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/components/CodeEditor/CodeEditor.d.ts +3 -2
- package/dist/components/CodeEditor/CodeEditor.js +44 -13
- package/dist/components/ContentCard/Skeleton.d.ts +1 -1
- package/dist/components/ContentCard/Skeleton.js +13 -8
- package/dist/components/ContentCard/index.d.ts +2 -1
- package/dist/components/ContentCard/index.js +131 -50
- package/dist/components/ContentCard/styles.css.js +0 -1
- package/dist/components/ContentCardGroup/Card.d.ts +2 -1
- package/dist/components/ContentCardGroup/Card.js +65 -86
- package/dist/components/ContentCardGroup/SkeletonCard.d.ts +1 -1
- package/dist/components/ContentCardGroup/SkeletonCard.js +4 -22
- package/dist/components/ContentCardGroup/index.d.ts +3 -1
- package/dist/components/ContentCardGroup/index.js +12 -18
- package/dist/components/ContentCardGroup/styles.css.d.ts +7 -0
- package/dist/components/ContentCardGroup/styles.css.js +18 -0
- package/dist/components/Conversation/index.d.ts +25 -17
- package/dist/components/Conversation/index.js +37 -103
- package/dist/components/Conversation/styles.css.d.ts +7 -0
- package/dist/components/Conversation/styles.css.js +17 -0
- package/dist/components/CustomerSatisfaction/index.d.ts +3 -1
- package/dist/components/CustomerSatisfaction/index.js +70 -96
- package/dist/components/CustomerSatisfaction/styles.css.d.ts +17 -0
- package/dist/components/CustomerSatisfaction/styles.css.js +6 -0
- package/dist/components/EstimateCost/Components/CustomUnitInput.d.ts +1 -1
- package/dist/components/EstimateCost/Components/CustomUnitInput.js +47 -27
- package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Item.js +308 -288
- package/dist/components/EstimateCost/Components/LineThrough.d.ts +3 -5
- package/dist/components/EstimateCost/Components/LineThrough.js +12 -12
- package/dist/components/EstimateCost/Components/NumberInput.d.ts +1 -1
- package/dist/components/EstimateCost/Components/NumberInput.js +18 -10
- package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
- package/dist/components/EstimateCost/Components/Region.js +44 -33
- package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Regular.js +21 -29
- package/dist/components/EstimateCost/Components/Strong.d.ts +3 -10
- package/dist/components/EstimateCost/Components/Strong.js +13 -24
- package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Unit.js +23 -31
- package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Zone.js +42 -32
- package/dist/components/EstimateCost/Components/components.css.d.ts +77 -0
- package/dist/components/EstimateCost/Components/components.css.js +124 -0
- package/dist/components/EstimateCost/EstimateCost.d.ts +29 -29
- package/dist/components/EstimateCost/EstimateCost.js +74 -25
- package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +270 -174
- package/dist/components/EstimateCost/EstimateCostProvider.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostProvider.js +24 -21
- package/dist/components/EstimateCost/OverlayComponent.d.ts +1 -1
- package/dist/components/EstimateCost/OverlayComponent.js +57 -81
- package/dist/components/EstimateCost/OverlayContext.d.ts +1 -1
- package/dist/components/EstimateCost/OverlayContext.js +2 -4
- package/dist/components/EstimateCost/constants.js +0 -4
- package/dist/components/EstimateCost/styles.css.d.ts +76 -0
- package/dist/components/EstimateCost/styles.css.js +50 -0
- package/dist/components/EstimateCost/types.d.ts +2 -1
- package/dist/components/FAQ/index.d.ts +3 -1
- package/dist/components/FAQ/index.js +4 -3
- package/dist/components/InfoTable/InfoTable.d.ts +9 -6
- package/dist/components/InfoTable/InfoTable.js +14 -18
- package/dist/components/InfoTable/components/Cell.d.ts +3 -6
- package/dist/components/InfoTable/components/Cell.js +28 -34
- package/dist/components/InfoTable/components/Row.d.ts +3 -14
- package/dist/components/InfoTable/components/Row.js +25 -18
- package/dist/components/InfoTable/context.d.ts +3 -0
- package/dist/components/InfoTable/context.js +5 -0
- package/dist/components/InfoTable/styles.css.d.ts +6 -0
- package/dist/components/InfoTable/styles.css.js +15 -0
- package/dist/components/Navigation/Footer.d.ts +1 -1
- package/dist/components/Navigation/Footer.js +35 -33
- package/dist/components/Navigation/Header.d.ts +1 -1
- package/dist/components/Navigation/Header.js +13 -26
- package/dist/components/Navigation/Navigation.d.ts +11 -8
- package/dist/components/Navigation/Navigation.js +2 -5
- package/dist/components/Navigation/NavigationContent.d.ts +1 -1
- package/dist/components/Navigation/NavigationContent.js +60 -71
- package/dist/components/Navigation/NavigationProvider.d.ts +1 -1
- package/dist/components/Navigation/NavigationProvider.js +108 -70
- package/dist/components/Navigation/animations.css.d.ts +6 -0
- package/dist/components/Navigation/components/Group.d.ts +3 -2
- package/dist/components/Navigation/components/Group.js +21 -43
- package/dist/components/Navigation/components/Item.d.ts +3 -2
- package/dist/components/Navigation/components/Item.js +552 -405
- package/dist/components/Navigation/components/ItemProvider.d.ts +1 -1
- package/dist/components/Navigation/components/ItemProvider.js +2 -4
- package/dist/components/Navigation/components/PinnedItems.d.ts +3 -2
- package/dist/components/Navigation/components/PinnedItems.js +94 -74
- package/dist/components/Navigation/components/Separator.d.ts +1 -1
- package/dist/components/Navigation/components/Separator.js +3 -11
- package/dist/components/Navigation/components/items.css.d.ts +70 -0
- package/dist/components/Navigation/components/items.css.js +47 -0
- package/dist/components/Navigation/components/styles.css.d.ts +23 -0
- package/dist/components/Navigation/components/styles.css.js +17 -0
- package/dist/components/Navigation/constants.d.ts +0 -12
- package/dist/components/Navigation/constants.js +1 -28
- package/dist/components/Navigation/styles.css.d.ts +33 -0
- package/dist/components/Navigation/styles.css.js +22 -0
- package/dist/components/Navigation/types.d.ts +2 -1
- package/dist/components/Navigation/variables.css.d.ts +1 -0
- package/dist/components/Navigation/variables.css.js +5 -0
- package/dist/components/OfferList/OfferList.d.ts +8 -5
- package/dist/components/OfferList/OfferList.js +43 -22
- package/dist/components/OfferList/OfferListProvider.d.ts +1 -1
- package/dist/components/OfferList/OfferListProvider.js +25 -15
- package/dist/components/OfferList/components/Banner.d.ts +1 -1
- package/dist/components/OfferList/components/Banner.js +32 -95
- package/dist/components/OfferList/components/Cell.d.ts +1 -1
- package/dist/components/OfferList/components/Cell.js +16 -37
- package/dist/components/OfferList/components/Row.d.ts +4 -2
- package/dist/components/OfferList/components/Row.js +141 -125
- package/dist/components/OfferList/styles.css.d.ts +42 -0
- package/dist/components/OfferList/styles.css.js +38 -0
- package/dist/components/OrderSummary/NonScrollableContent.d.ts +1 -1
- package/dist/components/OrderSummary/NonScrollableContent.js +70 -34
- package/dist/components/OrderSummary/Provider.js +1 -4
- package/dist/components/OrderSummary/ScrollableContent.d.ts +1 -1
- package/dist/components/OrderSummary/ScrollableContent.js +175 -68
- package/dist/components/OrderSummary/constants.js +7 -1
- package/dist/components/OrderSummary/helpers.js +39 -21
- package/dist/components/OrderSummary/index.d.ts +1 -1
- package/dist/components/OrderSummary/index.js +139 -83
- package/dist/components/OrderSummary/styles.css.d.ts +8 -0
- package/dist/components/OrderSummary/styles.css.js +19 -0
- package/dist/components/OrderSummary/types.d.ts +2 -1
- package/dist/components/Plans/FeatureHint.d.ts +1 -1
- package/dist/components/Plans/FeatureHint.js +27 -25
- package/dist/components/Plans/PlanHeader.d.ts +1 -1
- package/dist/components/Plans/PlanHeader.js +80 -84
- package/dist/components/Plans/index.d.ts +3 -1
- package/dist/components/Plans/index.js +150 -109
- package/dist/components/Plans/styles.css.d.ts +61 -0
- package/dist/components/Plans/styles.css.js +26 -0
- package/dist/components/SteppedListCard/Step.d.ts +6 -1
- package/dist/components/SteppedListCard/Step.js +44 -32
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +9 -5
- package/dist/components/SteppedListCard/SteppedListCard.js +70 -45
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +4 -3
- package/dist/components/SteppedListCard/SteppedListContent.js +20 -51
- package/dist/components/SteppedListCard/helper.d.ts +1 -1
- package/dist/components/SteppedListCard/helper.js +4 -1
- package/dist/components/SteppedListCard/styles.css.d.ts +8 -0
- package/dist/components/SteppedListCard/styles.css.js +19 -0
- package/dist/plus.css +1 -1
- package/package.json +13 -16
- package/dist/components/CodeEditor/CodeEditor.cjs +0 -49
- package/dist/components/CodeEditor/styles.css.cjs +0 -9
- package/dist/components/ContentCard/Skeleton.cjs +0 -23
- package/dist/components/ContentCard/index.cjs +0 -61
- package/dist/components/ContentCard/styles.css.cjs +0 -28
- package/dist/components/ContentCardGroup/Card.cjs +0 -94
- package/dist/components/ContentCardGroup/SkeletonCard.cjs +0 -35
- package/dist/components/ContentCardGroup/index.cjs +0 -31
- package/dist/components/Conversation/index.cjs +0 -127
- package/dist/components/CustomerSatisfaction/assets/1-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/1-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/2-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/2-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/3-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/3-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/4-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/4-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/5-5.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/assets/5-5NB.svg.cjs +0 -3
- package/dist/components/CustomerSatisfaction/index.cjs +0 -123
- package/dist/components/EstimateCost/Components/CustomUnitInput.cjs +0 -34
- package/dist/components/EstimateCost/Components/Item.cjs +0 -303
- package/dist/components/EstimateCost/Components/LineThrough.cjs +0 -19
- package/dist/components/EstimateCost/Components/NumberInput.cjs +0 -31
- package/dist/components/EstimateCost/Components/Region.cjs +0 -43
- package/dist/components/EstimateCost/Components/Regular.cjs +0 -37
- package/dist/components/EstimateCost/Components/Strong.cjs +0 -30
- package/dist/components/EstimateCost/Components/Unit.cjs +0 -53
- package/dist/components/EstimateCost/Components/Zone.cjs +0 -42
- package/dist/components/EstimateCost/EstimateCost.cjs +0 -90
- package/dist/components/EstimateCost/EstimateCostContent.cjs +0 -256
- package/dist/components/EstimateCost/EstimateCostProvider.cjs +0 -37
- package/dist/components/EstimateCost/OverlayComponent.cjs +0 -123
- package/dist/components/EstimateCost/OverlayContext.cjs +0 -15
- package/dist/components/EstimateCost/componentStyle.cjs +0 -221
- package/dist/components/EstimateCost/componentStyle.d.ts +0 -106
- package/dist/components/EstimateCost/componentStyle.js +0 -219
- package/dist/components/EstimateCost/constants.cjs +0 -32
- package/dist/components/EstimateCost/helper.cjs +0 -16
- package/dist/components/EstimateCost/locales/en.cjs +0 -23
- package/dist/components/FAQ/index.cjs +0 -48
- package/dist/components/FAQ/styles.css.cjs +0 -5
- package/dist/components/InfoTable/InfoTable.cjs +0 -32
- package/dist/components/InfoTable/components/Cell.cjs +0 -44
- package/dist/components/InfoTable/components/Row.cjs +0 -26
- package/dist/components/Navigation/Footer.cjs +0 -71
- package/dist/components/Navigation/Header.cjs +0 -36
- package/dist/components/Navigation/Navigation.cjs +0 -18
- package/dist/components/Navigation/NavigationContent.cjs +0 -163
- package/dist/components/Navigation/NavigationProvider.cjs +0 -129
- package/dist/components/Navigation/components/Group.cjs +0 -62
- package/dist/components/Navigation/components/Item.cjs +0 -429
- package/dist/components/Navigation/components/ItemProvider.cjs +0 -14
- package/dist/components/Navigation/components/PinnedItems.cjs +0 -116
- package/dist/components/Navigation/components/Separator.cjs +0 -18
- package/dist/components/Navigation/constants.cjs +0 -37
- package/dist/components/Navigation/locales/en.cjs +0 -11
- package/dist/components/OfferList/OfferList.cjs +0 -58
- package/dist/components/OfferList/OfferListProvider.cjs +0 -38
- package/dist/components/OfferList/components/Banner.cjs +0 -108
- package/dist/components/OfferList/components/Cell.cjs +0 -50
- package/dist/components/OfferList/components/Row.cjs +0 -192
- package/dist/components/OrderSummary/NonScrollableContent.cjs +0 -68
- package/dist/components/OrderSummary/Provider.cjs +0 -18
- package/dist/components/OrderSummary/ScrollableContent.cjs +0 -109
- package/dist/components/OrderSummary/constants.cjs +0 -12
- package/dist/components/OrderSummary/helpers.cjs +0 -91
- package/dist/components/OrderSummary/index.cjs +0 -135
- package/dist/components/OrderSummary/locales/en.cjs +0 -11
- package/dist/components/Plans/FeatureHint.cjs +0 -42
- package/dist/components/Plans/PlanHeader.cjs +0 -102
- package/dist/components/Plans/index.cjs +0 -152
- package/dist/components/Plans/locales/en.cjs +0 -7
- package/dist/components/SteppedListCard/Step.cjs +0 -51
- package/dist/components/SteppedListCard/SteppedListCard.cjs +0 -82
- package/dist/components/SteppedListCard/SteppedListContent.cjs +0 -86
- package/dist/components/SteppedListCard/helper.cjs +0 -38
- package/dist/index.cjs +0 -33
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { langs } from '@uiw/codemirror-extensions-langs';
|
|
2
2
|
import CodeMirror from '@uiw/react-codemirror';
|
|
3
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
import type { ComponentProps, CSSProperties, ReactNode } from 'react';
|
|
4
4
|
type CodeEditorProps = {
|
|
5
5
|
value: string;
|
|
6
6
|
onChange: ComponentProps<typeof CodeMirror>['onChange'];
|
|
@@ -24,6 +24,7 @@ type CodeEditorProps = {
|
|
|
24
24
|
className?: string;
|
|
25
25
|
error?: string;
|
|
26
26
|
lineNumbers?: boolean;
|
|
27
|
+
style?: CSSProperties;
|
|
27
28
|
};
|
|
28
|
-
export declare const CodeEditor: ({ value, onChange, extensions, onBlur, height, readOnly, autoCompletion, disabled, label, copyButton, id, helper, labelDescription, "aria-label": ariaLabel, "data-testid": dataTestId, className, error, lineNumbers, }: CodeEditorProps) => import("
|
|
29
|
+
export declare const CodeEditor: ({ value, onChange, extensions, onBlur, height, readOnly, autoCompletion, disabled, label, copyButton, id, helper, labelDescription, "aria-label": ariaLabel, "data-testid": dataTestId, className, error, lineNumbers, style, }: CodeEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
30
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs, jsx } from "
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { langs } from "@uiw/codemirror-extensions-langs";
|
|
4
4
|
import { material } from "@uiw/codemirror-theme-material";
|
|
5
5
|
import CodeMirror from "@uiw/react-codemirror";
|
|
@@ -23,21 +23,52 @@ const CodeEditor = ({
|
|
|
23
23
|
"data-testid": dataTestId,
|
|
24
24
|
className,
|
|
25
25
|
error,
|
|
26
|
-
lineNumbers = true
|
|
27
|
-
|
|
26
|
+
lineNumbers = true,
|
|
27
|
+
style
|
|
28
|
+
}) => /* @__PURE__ */ jsxs(Stack, { className: disabled ? disabledStack : "", gap: 0.5, style, children: [
|
|
28
29
|
label ? /* @__PURE__ */ jsx(Label, { labelDescription, children: label }) : null,
|
|
29
30
|
/* @__PURE__ */ jsxs("div", { className: codeEditor[disabled ? "disabled" : "default"], children: [
|
|
30
|
-
/* @__PURE__ */ jsx(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
CodeMirror,
|
|
33
|
+
{
|
|
34
|
+
"aria-disabled": disabled,
|
|
35
|
+
"aria-label": ariaLabel,
|
|
36
|
+
basicSetup: {
|
|
37
|
+
autocompletion: autoCompletion,
|
|
38
|
+
highlightActiveLine: false,
|
|
39
|
+
highlightActiveLineGutter: false,
|
|
40
|
+
lineNumbers
|
|
41
|
+
},
|
|
42
|
+
className,
|
|
43
|
+
"data-testid": dataTestId,
|
|
44
|
+
editable: !disabled || !readOnly,
|
|
45
|
+
extensions: [langs[extensions]?.() ?? langs["sh"]],
|
|
46
|
+
height,
|
|
47
|
+
id,
|
|
48
|
+
onBlur,
|
|
49
|
+
onChange,
|
|
50
|
+
onUpdate: () => {
|
|
51
|
+
if (disabled) {
|
|
52
|
+
document.getSelection()?.empty();
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
readOnly: readOnly || disabled,
|
|
56
|
+
theme: material,
|
|
57
|
+
value,
|
|
58
|
+
width: "100%"
|
|
38
59
|
}
|
|
39
|
-
|
|
40
|
-
copyButton$1 && !disabled ? /* @__PURE__ */ jsx(
|
|
60
|
+
),
|
|
61
|
+
copyButton$1 && !disabled ? /* @__PURE__ */ jsx(
|
|
62
|
+
CopyButton,
|
|
63
|
+
{
|
|
64
|
+
bordered: true,
|
|
65
|
+
className: copyButton,
|
|
66
|
+
sentiment: "neutral",
|
|
67
|
+
size: "small",
|
|
68
|
+
value,
|
|
69
|
+
children: typeof copyButton$1 === "string" ? copyButton$1 : void 0
|
|
70
|
+
}
|
|
71
|
+
) : null
|
|
41
72
|
] }),
|
|
42
73
|
error && typeof error !== "boolean" ? /* @__PURE__ */ jsx(Text, { as: "span", sentiment: "danger", variant: "caption", children: error }) : null,
|
|
43
74
|
!error && helper ? /* @__PURE__ */ jsx(Text, { as: "span", prominence: "weak", sentiment: "neutral", variant: "caption", children: helper }) : null
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type SkeletonProps = {
|
|
2
2
|
direction: 'row' | 'column';
|
|
3
3
|
};
|
|
4
|
-
export declare const Skeleton: ({ direction }: SkeletonProps) => import("
|
|
4
|
+
export declare const Skeleton: ({ direction }: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs, jsx } from "
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Stack, Skeleton as Skeleton$1 } from "@ultraviolet/ui";
|
|
4
4
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
5
5
|
import { skeletonImage, skeletonWidthVar, skeletonHeightVar, paddedStack } from "./styles.css.js";
|
|
6
|
-
const Skeleton = ({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
const Skeleton = ({ direction }) => /* @__PURE__ */ jsxs(Stack, { direction, children: [
|
|
7
|
+
/* @__PURE__ */ jsx(
|
|
8
|
+
Skeleton$1,
|
|
9
|
+
{
|
|
10
|
+
className: skeletonImage[direction],
|
|
11
|
+
style: assignInlineVars({
|
|
12
|
+
[skeletonHeightVar]: direction === "column" ? "120px" : "unset",
|
|
13
|
+
[skeletonWidthVar]: direction === "row" ? "220px" : "100%"
|
|
14
|
+
}),
|
|
15
|
+
variant: "square"
|
|
16
|
+
}
|
|
17
|
+
),
|
|
13
18
|
/* @__PURE__ */ jsxs(Stack, { className: paddedStack, gap: 2, children: [
|
|
14
19
|
/* @__PURE__ */ jsx(Skeleton$1, { variant: "line" }),
|
|
15
20
|
/* @__PURE__ */ jsx(Skeleton$1, { variant: "line" }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MouseEventHandler, ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
2
|
type ContentCardProps = {
|
|
3
3
|
direction?: 'row' | 'column';
|
|
4
4
|
/**
|
|
@@ -25,6 +25,7 @@ type ContentCardProps = {
|
|
|
25
25
|
disabled?: boolean;
|
|
26
26
|
loading?: boolean;
|
|
27
27
|
className?: string;
|
|
28
|
+
style?: CSSProperties;
|
|
28
29
|
};
|
|
29
30
|
/**
|
|
30
31
|
* ContentCard is a component that displays a title, subtitle, description, image and icon in a card.
|
|
@@ -1,61 +1,142 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { OpenInNewIcon } from "@ultraviolet/icons";
|
|
4
4
|
import { Stack, Text } from "@ultraviolet/ui";
|
|
5
5
|
import { assignInlineVars } from "@vanilla-extract/dynamic";
|
|
6
6
|
import { forwardRef, useRef, useState, useMemo, useEffect } from "react";
|
|
7
7
|
import { Skeleton } from "./Skeleton.js";
|
|
8
8
|
import { cardClass, activeClass, fullHeight, imageClass, subContainerHeightVar, subContainer, iconStack, iconContainer } from "./styles.css.js";
|
|
9
|
-
const ContentCard = forwardRef(
|
|
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
|
-
|
|
9
|
+
const ContentCard = forwardRef(
|
|
10
|
+
({
|
|
11
|
+
image,
|
|
12
|
+
direction = "column",
|
|
13
|
+
icon,
|
|
14
|
+
subtitle,
|
|
15
|
+
title,
|
|
16
|
+
headingTag = "h3",
|
|
17
|
+
description,
|
|
18
|
+
children,
|
|
19
|
+
href,
|
|
20
|
+
target = "_blank",
|
|
21
|
+
onClick,
|
|
22
|
+
disabled,
|
|
23
|
+
loading,
|
|
24
|
+
className,
|
|
25
|
+
style
|
|
26
|
+
}, ref) => {
|
|
27
|
+
const subContainerRef = useRef(null);
|
|
28
|
+
const [subContainerHeight, setSubContainerHeight] = useState(
|
|
29
|
+
subContainerRef?.current?.offsetHeight
|
|
30
|
+
);
|
|
31
|
+
const Container = useMemo(() => {
|
|
32
|
+
if (href) {
|
|
33
|
+
return "a";
|
|
34
|
+
}
|
|
35
|
+
if (onClick) {
|
|
36
|
+
return "button";
|
|
37
|
+
}
|
|
38
|
+
return "div";
|
|
39
|
+
}, [href, onClick]);
|
|
40
|
+
useEffect(
|
|
41
|
+
() => setSubContainerHeight(subContainerRef?.current?.offsetHeight),
|
|
42
|
+
[subContainerRef]
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ jsx(
|
|
45
|
+
Container,
|
|
46
|
+
{
|
|
47
|
+
className: `${className ? `${className} ` : ""}${cardClass}${onClick || href ? ` ${activeClass}` : ""}`,
|
|
48
|
+
disabled,
|
|
49
|
+
href: !disabled ? href : void 0,
|
|
50
|
+
onClick: !disabled ? onClick : void 0,
|
|
51
|
+
ref,
|
|
52
|
+
role: onClick && !href ? "button" : void 0,
|
|
53
|
+
style,
|
|
54
|
+
target,
|
|
55
|
+
children: loading ? /* @__PURE__ */ jsx(Skeleton, { direction }) : /* @__PURE__ */ jsxs(Stack, { className: fullHeight, direction, children: [
|
|
56
|
+
image ? /* @__PURE__ */ jsx(
|
|
57
|
+
"img",
|
|
58
|
+
{
|
|
59
|
+
alt: "",
|
|
60
|
+
className: imageClass[direction],
|
|
61
|
+
"data-disabled": disabled,
|
|
62
|
+
height: direction === "column" ? 120 : void 0,
|
|
63
|
+
src: image,
|
|
64
|
+
style: assignInlineVars({
|
|
65
|
+
[subContainerHeightVar]: subContainerHeight ? `${subContainerHeight.toString()}px` : void 0
|
|
66
|
+
}),
|
|
67
|
+
width: direction === "row" ? 220 : void 0
|
|
68
|
+
}
|
|
69
|
+
) : null,
|
|
70
|
+
/* @__PURE__ */ jsxs(Stack, { direction, flex: 1, gap: 2, children: [
|
|
71
|
+
/* @__PURE__ */ jsxs(
|
|
72
|
+
Stack,
|
|
73
|
+
{
|
|
74
|
+
alignItems: !subtitle && !description && !children ? "center" : void 0,
|
|
75
|
+
className: subContainer[!href ? "noHref" : direction],
|
|
76
|
+
direction,
|
|
77
|
+
flex: "1 1 auto",
|
|
78
|
+
gap: 2,
|
|
79
|
+
ref: subContainerRef,
|
|
80
|
+
children: [
|
|
81
|
+
icon ?? null,
|
|
82
|
+
/* @__PURE__ */ jsxs(Stack, { flex: "1 1 auto", gap: 2, justifyContent: "space-between", children: [
|
|
83
|
+
/* @__PURE__ */ jsxs(Stack, { gap: 0.5, children: [
|
|
84
|
+
/* @__PURE__ */ jsxs(Stack, { children: [
|
|
85
|
+
subtitle ? /* @__PURE__ */ jsx(
|
|
86
|
+
Text,
|
|
87
|
+
{
|
|
88
|
+
as: "small",
|
|
89
|
+
disabled,
|
|
90
|
+
prominence: "weak",
|
|
91
|
+
sentiment: "neutral",
|
|
92
|
+
variant: "caption",
|
|
93
|
+
children: subtitle
|
|
94
|
+
}
|
|
95
|
+
) : null,
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
Text,
|
|
98
|
+
{
|
|
99
|
+
as: headingTag,
|
|
100
|
+
disabled,
|
|
101
|
+
sentiment: "neutral",
|
|
102
|
+
variant: "bodyStrong",
|
|
103
|
+
children: title
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
] }),
|
|
107
|
+
description ? /* @__PURE__ */ jsx(
|
|
108
|
+
Text,
|
|
109
|
+
{
|
|
110
|
+
as: "p",
|
|
111
|
+
disabled,
|
|
112
|
+
sentiment: "neutral",
|
|
113
|
+
variant: "bodySmall",
|
|
114
|
+
children: description
|
|
115
|
+
}
|
|
116
|
+
) : null
|
|
117
|
+
] }),
|
|
118
|
+
children ? /* @__PURE__ */ jsx(Stack, { children }) : null
|
|
119
|
+
] })
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
href ? /* @__PURE__ */ jsx(
|
|
124
|
+
Stack,
|
|
125
|
+
{
|
|
126
|
+
alignItems: direction === "column" ? "flex-end" : "center",
|
|
127
|
+
className: iconStack[direction],
|
|
128
|
+
direction,
|
|
129
|
+
flex: 1,
|
|
130
|
+
justifyContent: direction === "column" ? "center" : "end",
|
|
131
|
+
children: /* @__PURE__ */ jsx("div", { className: iconContainer, children: /* @__PURE__ */ jsx(OpenInNewIcon, { disabled, sentiment: "neutral" }) })
|
|
132
|
+
}
|
|
133
|
+
) : null
|
|
134
|
+
] })
|
|
53
135
|
] })
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
);
|
|
59
140
|
export {
|
|
60
141
|
ContentCard
|
|
61
142
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnchorHTMLAttributes, ElementType, ReactNode } from 'react';
|
|
1
|
+
import type { AnchorHTMLAttributes, CSSProperties, ElementType, ReactNode } from 'react';
|
|
2
2
|
type CardProps = {
|
|
3
3
|
title?: string;
|
|
4
4
|
titleAs?: ElementType;
|
|
@@ -8,6 +8,7 @@ type CardProps = {
|
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
href: string;
|
|
10
10
|
target?: AnchorHTMLAttributes<HTMLAnchorElement>['target'];
|
|
11
|
+
style?: CSSProperties;
|
|
11
12
|
};
|
|
12
13
|
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
13
14
|
export {};
|
|
@@ -1,92 +1,71 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { OpenInNewIcon } from "@ultraviolet/icons";
|
|
5
|
-
import {
|
|
4
|
+
import { Stack, Text } from "@ultraviolet/ui";
|
|
6
5
|
import { forwardRef } from "react";
|
|
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
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const Card = forwardRef(({
|
|
71
|
-
title,
|
|
72
|
-
titleAs,
|
|
73
|
-
subtitle,
|
|
74
|
-
subtitleAs,
|
|
75
|
-
description,
|
|
76
|
-
children,
|
|
77
|
-
href,
|
|
78
|
-
target = "_blank"
|
|
79
|
-
}, ref) => /* @__PURE__ */ jsx(StyledWrapper, { href, ref, target, children: /* @__PURE__ */ jsxs(FullHeightStack, { alignItems: "center", direction: "row", gap: 2, justifyContent: "space-between", children: [
|
|
80
|
-
/* @__PURE__ */ jsxs(StyledStack, { gap: "0.5", children: [
|
|
81
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
82
|
-
subtitle ? /* @__PURE__ */ jsx(Text, { as: subtitleAs || "h5", oneLine: true, prominence: "weak", sentiment: "neutral", variant: "caption", children: subtitle }) : null,
|
|
83
|
-
/* @__PURE__ */ jsx(Text, { as: titleAs || "h3", oneLine: true, sentiment: "neutral", variant: "bodyStrong", children: title })
|
|
84
|
-
] }),
|
|
85
|
-
description ? /* @__PURE__ */ jsx(Text, { as: "p", oneLine: true, sentiment: "neutral", variant: "bodySmall", children: description }) : null,
|
|
86
|
-
children
|
|
87
|
-
] }),
|
|
88
|
-
/* @__PURE__ */ jsx(IconWrapper, { children: /* @__PURE__ */ jsx(OpenInNewIcon, { sentiment: "neutral" }) })
|
|
89
|
-
] }) }));
|
|
6
|
+
import { styledWrapper, fullHeightStack, customStack, iconWrapper } from "./styles.css.js";
|
|
7
|
+
const Card = forwardRef(
|
|
8
|
+
({
|
|
9
|
+
title,
|
|
10
|
+
titleAs,
|
|
11
|
+
subtitle,
|
|
12
|
+
subtitleAs,
|
|
13
|
+
description,
|
|
14
|
+
children,
|
|
15
|
+
href,
|
|
16
|
+
target = "_blank",
|
|
17
|
+
style
|
|
18
|
+
}, ref) => /* @__PURE__ */ jsx(
|
|
19
|
+
"a",
|
|
20
|
+
{
|
|
21
|
+
className: styledWrapper,
|
|
22
|
+
href,
|
|
23
|
+
ref,
|
|
24
|
+
style,
|
|
25
|
+
target,
|
|
26
|
+
children: /* @__PURE__ */ jsxs(
|
|
27
|
+
Stack,
|
|
28
|
+
{
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
className: fullHeightStack,
|
|
31
|
+
direction: "row",
|
|
32
|
+
gap: 2,
|
|
33
|
+
justifyContent: "space-between",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsxs(Stack, { className: customStack, gap: "0.5", children: [
|
|
36
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
37
|
+
subtitle ? /* @__PURE__ */ jsx(
|
|
38
|
+
Text,
|
|
39
|
+
{
|
|
40
|
+
as: subtitleAs || "h5",
|
|
41
|
+
oneLine: true,
|
|
42
|
+
prominence: "weak",
|
|
43
|
+
sentiment: "neutral",
|
|
44
|
+
variant: "caption",
|
|
45
|
+
children: subtitle
|
|
46
|
+
}
|
|
47
|
+
) : null,
|
|
48
|
+
/* @__PURE__ */ jsx(
|
|
49
|
+
Text,
|
|
50
|
+
{
|
|
51
|
+
as: titleAs || "h3",
|
|
52
|
+
oneLine: true,
|
|
53
|
+
sentiment: "neutral",
|
|
54
|
+
variant: "bodyStrong",
|
|
55
|
+
children: title
|
|
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
|
+
);
|
|
90
69
|
export {
|
|
91
70
|
Card
|
|
92
71
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SkeletonCard: () => import("
|
|
1
|
+
export declare const SkeletonCard: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx, jsxs } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { Stack, Skeleton } from "@ultraviolet/ui";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} : {
|
|
8
|
-
target: "e1xovou51",
|
|
9
|
-
label: "StyledWrapper"
|
|
10
|
-
})("padding:", ({
|
|
11
|
-
theme
|
|
12
|
-
}) => theme.space["3"], ";&:not(:first-child){border-top:1px solid ", ({
|
|
13
|
-
theme
|
|
14
|
-
}) => theme.colors.neutral.border, ";}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9Ta2VsZXRvbkNhcmQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUtnQyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy9wbHVzL3NyYy9jb21wb25lbnRzL0NvbnRlbnRDYXJkR3JvdXAvU2tlbGV0b25DYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IFNrZWxldG9uLCBTdGFjayB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcblxuY29uc3QgU3R5bGVkV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBhZGRpbmc6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuc3BhY2VbJzMnXX07XG5cbiAgJjpub3QoOmZpcnN0LWNoaWxkKSB7XG4gICAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuY29sb3JzLm5ldXRyYWwuYm9yZGVyfTtcbiAgfVxuYFxuXG5jb25zdCBTdHlsZWRTcXVhcmVTa2VsZXRvbiA9IHN0eWxlZChTa2VsZXRvbilgXG4gIGhlaWdodDogMzJweDtcbiAgd2lkdGg6IDMycHg7XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUucmFkaWkuZGVmYXVsdH07XG5gXG5cbmV4cG9ydCBjb25zdCBTa2VsZXRvbkNhcmQgPSAoKSA9PiAoXG4gIDxTdHlsZWRXcmFwcGVyPlxuICAgIDxTdGFjayBhbGlnbkl0ZW1zPVwiY2VudGVyXCIgZGlyZWN0aW9uPVwicm93XCIganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCI+XG4gICAgICA8U3RhY2sgZ2FwPXsyfT5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgIDwvU3RhY2s+XG4gICAgICA8U3R5bGVkU3F1YXJlU2tlbGV0b24gdmFyaWFudD1cInNxdWFyZVwiIC8+XG4gICAgPC9TdGFjaz5cbiAgPC9TdHlsZWRXcmFwcGVyPlxuKVxuIl19 */"));
|
|
15
|
-
const StyledSquareSkeleton = /* @__PURE__ */ _styled(Skeleton, process.env.NODE_ENV === "production" ? {
|
|
16
|
-
target: "e1xovou50"
|
|
17
|
-
} : {
|
|
18
|
-
target: "e1xovou50",
|
|
19
|
-
label: "StyledSquareSkeleton"
|
|
20
|
-
})("height:32px;width:32px;border-radius:", ({
|
|
21
|
-
theme
|
|
22
|
-
}) => theme.radii.default, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3BsdXMvc3JjL2NvbXBvbmVudHMvQ29udGVudENhcmRHcm91cC9Ta2VsZXRvbkNhcmQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWE2QyIsImZpbGUiOiIvaG9tZS9ydW5uZXIvd29yay91bHRyYXZpb2xldC91bHRyYXZpb2xldC9wYWNrYWdlcy9wbHVzL3NyYy9jb21wb25lbnRzL0NvbnRlbnRDYXJkR3JvdXAvU2tlbGV0b25DYXJkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB7IFNrZWxldG9uLCBTdGFjayB9IGZyb20gJ0B1bHRyYXZpb2xldC91aSdcblxuY29uc3QgU3R5bGVkV3JhcHBlciA9IHN0eWxlZC5kaXZgXG4gIHBhZGRpbmc6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuc3BhY2VbJzMnXX07XG5cbiAgJjpub3QoOmZpcnN0LWNoaWxkKSB7XG4gICAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUuY29sb3JzLm5ldXRyYWwuYm9yZGVyfTtcbiAgfVxuYFxuXG5jb25zdCBTdHlsZWRTcXVhcmVTa2VsZXRvbiA9IHN0eWxlZChTa2VsZXRvbilgXG4gIGhlaWdodDogMzJweDtcbiAgd2lkdGg6IDMycHg7XG4gIGJvcmRlci1yYWRpdXM6ICR7KHsgdGhlbWUgfSkgPT4gdGhlbWUucmFkaWkuZGVmYXVsdH07XG5gXG5cbmV4cG9ydCBjb25zdCBTa2VsZXRvbkNhcmQgPSAoKSA9PiAoXG4gIDxTdHlsZWRXcmFwcGVyPlxuICAgIDxTdGFjayBhbGlnbkl0ZW1zPVwiY2VudGVyXCIgZGlyZWN0aW9uPVwicm93XCIganVzdGlmeUNvbnRlbnQ9XCJzcGFjZS1iZXR3ZWVuXCI+XG4gICAgICA8U3RhY2sgZ2FwPXsyfT5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgICAgPFNrZWxldG9uIHZhcmlhbnQ9XCJsaW5lXCIgLz5cbiAgICAgIDwvU3RhY2s+XG4gICAgICA8U3R5bGVkU3F1YXJlU2tlbGV0b24gdmFyaWFudD1cInNxdWFyZVwiIC8+XG4gICAgPC9TdGFjaz5cbiAgPC9TdHlsZWRXcmFwcGVyPlxuKVxuIl19 */"));
|
|
23
|
-
const SkeletonCard = () => /* @__PURE__ */ jsx(StyledWrapper, { children: /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
4
|
+
import { skeletonWrapper, squareSkeleton } from "./styles.css.js";
|
|
5
|
+
const SkeletonCard = () => /* @__PURE__ */ jsx("div", { className: skeletonWrapper, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
24
6
|
/* @__PURE__ */ jsxs(Stack, { gap: 2, children: [
|
|
25
7
|
/* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
|
|
26
8
|
/* @__PURE__ */ jsx(Skeleton, { variant: "line" }),
|
|
27
9
|
/* @__PURE__ */ jsx(Skeleton, { variant: "line" })
|
|
28
10
|
] }),
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
11
|
+
/* @__PURE__ */ jsx(Skeleton, { className: squareSkeleton, variant: "square" })
|
|
30
12
|
] }) });
|
|
31
13
|
export {
|
|
32
14
|
SkeletonCard
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
type BaseContentCardGroupProps = {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
loading?: boolean;
|
|
5
|
+
style?: CSSProperties;
|
|
5
6
|
};
|
|
6
7
|
export declare const ContentCardGroup: import("react").ForwardRefExoticComponent<BaseContentCardGroupProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
7
8
|
Card: import("react").ForwardRefExoticComponent<{
|
|
@@ -13,6 +14,7 @@ export declare const ContentCardGroup: import("react").ForwardRefExoticComponent
|
|
|
13
14
|
children?: ReactNode;
|
|
14
15
|
href: string;
|
|
15
16
|
target?: import("react").AnchorHTMLAttributes<HTMLAnchorElement>["target"];
|
|
17
|
+
style?: CSSProperties;
|
|
16
18
|
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
17
19
|
};
|
|
18
20
|
export {};
|