@ultraviolet/plus 3.0.0-beta.12 → 3.0.0-beta.14
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.cjs +3 -2
- package/dist/components/CodeEditor/CodeEditor.d.ts +3 -2
- package/dist/components/CodeEditor/CodeEditor.js +3 -2
- package/dist/components/ContentCard/index.cjs +3 -2
- package/dist/components/ContentCard/index.d.ts +2 -1
- package/dist/components/ContentCard/index.js +3 -2
- package/dist/components/ContentCard/styles.css.cjs +1 -0
- package/dist/components/ContentCard/styles.css.js +1 -0
- package/dist/components/ContentCardGroup/Card.cjs +3 -2
- package/dist/components/ContentCardGroup/Card.d.ts +2 -1
- package/dist/components/ContentCardGroup/Card.js +3 -2
- package/dist/components/ContentCardGroup/index.cjs +3 -2
- package/dist/components/ContentCardGroup/index.d.ts +3 -1
- package/dist/components/ContentCardGroup/index.js +3 -2
- package/dist/components/Conversation/index.cjs +15 -10
- package/dist/components/Conversation/index.d.ts +18 -10
- package/dist/components/Conversation/index.js +15 -10
- package/dist/components/Conversation/styles.css.cjs +0 -1
- package/dist/components/Conversation/styles.css.js +0 -1
- package/dist/components/CustomerSatisfaction/index.cjs +3 -2
- package/dist/components/CustomerSatisfaction/index.d.ts +3 -1
- package/dist/components/CustomerSatisfaction/index.js +3 -2
- package/dist/components/EstimateCost/Components/Item.cjs +34 -116
- package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Item.js +36 -116
- package/dist/components/EstimateCost/Components/LineThrough.cjs +6 -14
- package/dist/components/EstimateCost/Components/LineThrough.d.ts +3 -5
- package/dist/components/EstimateCost/Components/LineThrough.js +6 -12
- package/dist/components/EstimateCost/Components/NumberInput.cjs +2 -2
- package/dist/components/EstimateCost/Components/NumberInput.js +2 -2
- package/dist/components/EstimateCost/Components/Region.cjs +5 -14
- package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
- package/dist/components/EstimateCost/Components/Region.js +5 -12
- package/dist/components/EstimateCost/Components/Regular.cjs +7 -21
- package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Regular.js +7 -19
- package/dist/components/EstimateCost/Components/Strong.cjs +7 -21
- package/dist/components/EstimateCost/Components/Strong.d.ts +3 -10
- package/dist/components/EstimateCost/Components/Strong.js +8 -20
- package/dist/components/EstimateCost/Components/Unit.cjs +7 -24
- package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Unit.js +7 -22
- package/dist/components/EstimateCost/Components/Zone.cjs +5 -14
- package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Zone.js +5 -12
- package/dist/components/EstimateCost/Components/components.css.cjs +123 -0
- package/dist/components/EstimateCost/Components/components.css.d.ts +77 -0
- package/dist/components/EstimateCost/Components/components.css.js +123 -0
- package/dist/components/EstimateCost/EstimateCost.cjs +17 -21
- package/dist/components/EstimateCost/EstimateCost.d.ts +22 -22
- package/dist/components/EstimateCost/EstimateCost.js +17 -19
- package/dist/components/EstimateCost/EstimateCostContent.cjs +24 -74
- package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +25 -73
- package/dist/components/EstimateCost/OverlayComponent.cjs +13 -51
- package/dist/components/EstimateCost/OverlayComponent.js +14 -50
- package/dist/components/EstimateCost/constants.cjs +0 -4
- package/dist/components/EstimateCost/constants.js +0 -4
- package/dist/components/EstimateCost/styles.css.cjs +50 -0
- 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.cjs +3 -2
- package/dist/components/FAQ/index.d.ts +3 -1
- package/dist/components/FAQ/index.js +3 -2
- package/dist/components/InfoTable/InfoTable.cjs +2 -1
- package/dist/components/InfoTable/InfoTable.d.ts +7 -4
- package/dist/components/InfoTable/InfoTable.js +2 -1
- package/dist/components/InfoTable/components/Cell.cjs +3 -2
- package/dist/components/InfoTable/components/Cell.d.ts +3 -2
- package/dist/components/InfoTable/components/Cell.js +3 -2
- package/dist/components/InfoTable/components/Row.cjs +8 -4
- package/dist/components/InfoTable/components/Row.d.ts +3 -2
- package/dist/components/InfoTable/components/Row.js +8 -4
- package/dist/components/Navigation/Footer.cjs +4 -19
- package/dist/components/Navigation/Footer.js +4 -17
- package/dist/components/Navigation/Header.cjs +2 -20
- package/dist/components/Navigation/Header.js +2 -18
- package/dist/components/Navigation/Navigation.d.ts +6 -3
- package/dist/components/Navigation/NavigationContent.cjs +13 -64
- package/dist/components/Navigation/NavigationContent.js +14 -63
- package/dist/components/Navigation/animations.css.d.ts +6 -0
- package/dist/components/Navigation/components/Group.cjs +10 -35
- package/dist/components/Navigation/components/Group.d.ts +3 -2
- package/dist/components/Navigation/components/Group.js +10 -33
- package/dist/components/Navigation/components/Item.cjs +86 -238
- package/dist/components/Navigation/components/Item.d.ts +3 -2
- package/dist/components/Navigation/components/Item.js +87 -237
- package/dist/components/Navigation/components/PinnedItems.cjs +11 -47
- package/dist/components/Navigation/components/PinnedItems.d.ts +3 -2
- package/dist/components/Navigation/components/PinnedItems.js +11 -45
- package/dist/components/Navigation/components/Separator.cjs +2 -12
- package/dist/components/Navigation/components/Separator.js +2 -10
- package/dist/components/Navigation/components/items.css.cjs +47 -0
- 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.cjs +17 -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.cjs +0 -27
- package/dist/components/Navigation/constants.d.ts +0 -12
- package/dist/components/Navigation/constants.js +1 -28
- package/dist/components/Navigation/styles.css.cjs +23 -0
- package/dist/components/Navigation/styles.css.d.ts +33 -0
- package/dist/components/Navigation/styles.css.js +23 -0
- package/dist/components/Navigation/types.d.ts +2 -1
- package/dist/components/Navigation/variables.css.cjs +4 -0
- package/dist/components/Navigation/variables.css.d.ts +1 -0
- package/dist/components/Navigation/variables.css.js +4 -0
- package/dist/components/OfferList/OfferList.cjs +2 -1
- package/dist/components/OfferList/OfferList.d.ts +6 -4
- package/dist/components/OfferList/OfferList.js +2 -1
- package/dist/components/OfferList/components/Cell.cjs +3 -2
- package/dist/components/OfferList/components/Cell.d.ts +1 -1
- package/dist/components/OfferList/components/Cell.js +3 -2
- package/dist/components/OfferList/components/Row.cjs +1 -1
- package/dist/components/OfferList/components/Row.d.ts +2 -1
- package/dist/components/OfferList/components/Row.js +2 -2
- package/dist/components/OfferList/styles.css.cjs +9 -5
- package/dist/components/OfferList/styles.css.d.ts +2 -0
- package/dist/components/OfferList/styles.css.js +10 -6
- package/dist/components/OrderSummary/NonScrollableContent.cjs +2 -14
- package/dist/components/OrderSummary/NonScrollableContent.js +2 -12
- package/dist/components/OrderSummary/ScrollableContent.cjs +5 -41
- package/dist/components/OrderSummary/ScrollableContent.js +5 -39
- package/dist/components/OrderSummary/helpers.cjs +4 -4
- package/dist/components/OrderSummary/helpers.js +4 -4
- package/dist/components/OrderSummary/index.cjs +6 -39
- package/dist/components/OrderSummary/index.d.ts +1 -1
- package/dist/components/OrderSummary/index.js +7 -38
- package/dist/components/OrderSummary/styles.css.cjs +19 -0
- 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.cjs +2 -20
- package/dist/components/Plans/FeatureHint.js +2 -18
- package/dist/components/Plans/PlanHeader.cjs +6 -66
- package/dist/components/Plans/PlanHeader.js +6 -64
- package/dist/components/Plans/index.cjs +42 -92
- package/dist/components/Plans/index.d.ts +3 -1
- package/dist/components/Plans/index.js +46 -94
- package/dist/components/Plans/styles.css.cjs +26 -0
- package/dist/components/Plans/styles.css.d.ts +61 -0
- package/dist/components/Plans/styles.css.js +26 -0
- package/dist/components/SteppedListCard/Step.cjs +2 -33
- package/dist/components/SteppedListCard/Step.js +2 -31
- package/dist/components/SteppedListCard/SteppedListCard.cjs +3 -31
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +2 -1
- package/dist/components/SteppedListCard/SteppedListCard.js +4 -30
- package/dist/components/SteppedListCard/SteppedListContent.cjs +6 -41
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +3 -2
- package/dist/components/SteppedListCard/SteppedListContent.js +7 -40
- package/dist/components/SteppedListCard/styles.css.cjs +17 -0
- package/dist/components/SteppedListCard/styles.css.d.ts +7 -0
- package/dist/components/SteppedListCard/styles.css.js +17 -0
- package/dist/plus.css +1 -1
- package/package.json +7 -7
- 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
|
@@ -27,8 +27,9 @@ const CodeEditor = ({
|
|
|
27
27
|
"data-testid": dataTestId,
|
|
28
28
|
className,
|
|
29
29
|
error,
|
|
30
|
-
lineNumbers = true
|
|
31
|
-
|
|
30
|
+
lineNumbers = true,
|
|
31
|
+
style
|
|
32
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { className: disabled ? styles_css.disabledStack : "", gap: 0.5, style, children: [
|
|
32
33
|
label ? /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { labelDescription, children: label }) : null,
|
|
33
34
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles_css.codeEditor[disabled ? "disabled" : "default"], children: [
|
|
34
35
|
/* @__PURE__ */ jsxRuntime.jsx(CodeMirror__default.default, { "aria-disabled": disabled, "aria-label": ariaLabel, basicSetup: {
|
|
@@ -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("@emotion/react/jsx-runtime").JSX.Element;
|
|
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("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
30
|
export {};
|
|
@@ -23,8 +23,9 @@ 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
31
|
/* @__PURE__ */ jsx(CodeMirror, { "aria-disabled": disabled, "aria-label": ariaLabel, basicSetup: {
|
|
@@ -22,7 +22,8 @@ const ContentCard = react.forwardRef(({
|
|
|
22
22
|
onClick,
|
|
23
23
|
disabled,
|
|
24
24
|
loading,
|
|
25
|
-
className
|
|
25
|
+
className,
|
|
26
|
+
style
|
|
26
27
|
}, ref) => {
|
|
27
28
|
const subContainerRef = react.useRef(null);
|
|
28
29
|
const [subContainerHeight, setSubContainerHeight] = react.useState(subContainerRef?.current?.offsetHeight);
|
|
@@ -36,7 +37,7 @@ const ContentCard = react.forwardRef(({
|
|
|
36
37
|
return "div";
|
|
37
38
|
}, [href, onClick]);
|
|
38
39
|
react.useEffect(() => setSubContainerHeight(subContainerRef?.current?.offsetHeight), [subContainerRef]);
|
|
39
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Container, { className: `${className ? `${className} ` : ""}${styles_css.cardClass}${onClick || href ? ` ${styles_css.activeClass}` : ""}`, disabled, href: !disabled ? href : void 0, onClick: !disabled ? onClick : void 0, ref, role: onClick && !href ? "button" : void 0, target, children: loading ? /* @__PURE__ */ jsxRuntime.jsx(Skeleton.Skeleton, { direction }) : /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { className: styles_css.fullHeight, direction, children: [
|
|
40
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Container, { className: `${className ? `${className} ` : ""}${styles_css.cardClass}${onClick || href ? ` ${styles_css.activeClass}` : ""}`, disabled, href: !disabled ? href : void 0, onClick: !disabled ? onClick : void 0, ref, role: onClick && !href ? "button" : void 0, style, target, children: loading ? /* @__PURE__ */ jsxRuntime.jsx(Skeleton.Skeleton, { direction }) : /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { className: styles_css.fullHeight, direction, children: [
|
|
40
41
|
image ? /* @__PURE__ */ jsxRuntime.jsx("img", { alt: "", className: styles_css.imageClass[direction], "data-disabled": disabled, height: direction === "column" ? 120 : void 0, src: image, style: dynamic.assignInlineVars({
|
|
41
42
|
[styles_css.subContainerHeightVar]: subContainerHeight ? `${subContainerHeight.toString()}px` : void 0
|
|
42
43
|
}), width: direction === "row" ? 220 : void 0 }) : null,
|
|
@@ -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.
|
|
@@ -20,7 +20,8 @@ const ContentCard = forwardRef(({
|
|
|
20
20
|
onClick,
|
|
21
21
|
disabled,
|
|
22
22
|
loading,
|
|
23
|
-
className
|
|
23
|
+
className,
|
|
24
|
+
style
|
|
24
25
|
}, ref) => {
|
|
25
26
|
const subContainerRef = useRef(null);
|
|
26
27
|
const [subContainerHeight, setSubContainerHeight] = useState(subContainerRef?.current?.offsetHeight);
|
|
@@ -34,7 +35,7 @@ const ContentCard = forwardRef(({
|
|
|
34
35
|
return "div";
|
|
35
36
|
}, [href, onClick]);
|
|
36
37
|
useEffect(() => setSubContainerHeight(subContainerRef?.current?.offsetHeight), [subContainerRef]);
|
|
37
|
-
return /* @__PURE__ */ jsx(Container, { className: `${className ? `${className} ` : ""}${cardClass}${onClick || href ? ` ${activeClass}` : ""}`, disabled, href: !disabled ? href : void 0, onClick: !disabled ? onClick : void 0, ref, role: onClick && !href ? "button" : void 0, target, children: loading ? /* @__PURE__ */ jsx(Skeleton, { direction }) : /* @__PURE__ */ jsxs(Stack, { className: fullHeight, direction, children: [
|
|
38
|
+
return /* @__PURE__ */ jsx(Container, { className: `${className ? `${className} ` : ""}${cardClass}${onClick || href ? ` ${activeClass}` : ""}`, disabled, href: !disabled ? href : void 0, onClick: !disabled ? onClick : void 0, ref, role: onClick && !href ? "button" : void 0, style, target, children: loading ? /* @__PURE__ */ jsx(Skeleton, { direction }) : /* @__PURE__ */ jsxs(Stack, { className: fullHeight, direction, children: [
|
|
38
39
|
image ? /* @__PURE__ */ jsx("img", { alt: "", className: imageClass[direction], "data-disabled": disabled, height: direction === "column" ? 120 : void 0, src: image, style: assignInlineVars({
|
|
39
40
|
[subContainerHeightVar]: subContainerHeight ? `${subContainerHeight.toString()}px` : void 0
|
|
40
41
|
}), width: direction === "row" ? 220 : void 0 }) : null,
|
|
@@ -14,8 +14,9 @@ const Card = react.forwardRef(({
|
|
|
14
14
|
description,
|
|
15
15
|
children,
|
|
16
16
|
href,
|
|
17
|
-
target = "_blank"
|
|
18
|
-
|
|
17
|
+
target = "_blank",
|
|
18
|
+
style
|
|
19
|
+
}, ref) => /* @__PURE__ */ jsxRuntime.jsx("a", { className: styles_css.styledWrapper, href, ref, style, target, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { alignItems: "center", className: styles_css.fullHeightStack, direction: "row", gap: 2, justifyContent: "space-between", children: [
|
|
19
20
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Stack, { className: styles_css.customStack, gap: "0.5", children: [
|
|
20
21
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
21
22
|
subtitle ? /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: subtitleAs || "h5", oneLine: true, prominence: "weak", sentiment: "neutral", variant: "caption", children: subtitle }) : null,
|
|
@@ -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 {};
|
|
@@ -12,8 +12,9 @@ const Card = forwardRef(({
|
|
|
12
12
|
description,
|
|
13
13
|
children,
|
|
14
14
|
href,
|
|
15
|
-
target = "_blank"
|
|
16
|
-
|
|
15
|
+
target = "_blank",
|
|
16
|
+
style
|
|
17
|
+
}, ref) => /* @__PURE__ */ jsx("a", { className: styledWrapper, href, ref, style, target, children: /* @__PURE__ */ jsxs(Stack, { alignItems: "center", className: fullHeightStack, direction: "row", gap: 2, justifyContent: "space-between", children: [
|
|
17
18
|
/* @__PURE__ */ jsxs(Stack, { className: customStack, gap: "0.5", children: [
|
|
18
19
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
19
20
|
subtitle ? /* @__PURE__ */ jsx(Text, { as: subtitleAs || "h5", oneLine: true, prominence: "weak", sentiment: "neutral", variant: "caption", children: subtitle }) : null,
|
|
@@ -9,8 +9,9 @@ const SkeletonCard = require("./SkeletonCard.cjs");
|
|
|
9
9
|
const styles_css = require("./styles.css.cjs");
|
|
10
10
|
const BaseContentCardGroup = react.forwardRef(({
|
|
11
11
|
children,
|
|
12
|
-
loading
|
|
13
|
-
|
|
12
|
+
loading,
|
|
13
|
+
style
|
|
14
|
+
}, ref) => /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { className: styles_css.groupCardWrapper, direction: "column", ref, style, children: !loading ? children : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: react.Children.map(children, (_child, index) => /* @__PURE__ */ jsxRuntime.jsx(SkeletonCard.SkeletonCard, {}, index)) }) }));
|
|
14
15
|
const ContentCardGroup = Object.assign(BaseContentCardGroup, {
|
|
15
16
|
Card: Card.Card
|
|
16
17
|
});
|
|
@@ -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 {};
|
|
@@ -7,8 +7,9 @@ import { SkeletonCard } from "./SkeletonCard.js";
|
|
|
7
7
|
import { groupCardWrapper } from "./styles.css.js";
|
|
8
8
|
const BaseContentCardGroup = forwardRef(({
|
|
9
9
|
children,
|
|
10
|
-
loading
|
|
11
|
-
|
|
10
|
+
loading,
|
|
11
|
+
style
|
|
12
|
+
}, ref) => /* @__PURE__ */ jsx(Stack, { className: groupCardWrapper, direction: "column", ref, style, children: !loading ? children : /* @__PURE__ */ jsx(Fragment, { children: Children.map(children, (_child, index) => /* @__PURE__ */ jsx(SkeletonCard, {}, index)) }) }));
|
|
12
13
|
const ContentCardGroup = Object.assign(BaseContentCardGroup, {
|
|
13
14
|
Card
|
|
14
15
|
});
|
|
@@ -5,27 +5,32 @@ const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
|
5
5
|
const ui = require("@ultraviolet/ui");
|
|
6
6
|
const styles_css = require("./styles.css.cjs");
|
|
7
7
|
const Conversation = ({
|
|
8
|
-
children
|
|
9
|
-
|
|
8
|
+
children,
|
|
9
|
+
style
|
|
10
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { style, children });
|
|
10
11
|
const MessageInfos = ({
|
|
11
12
|
children,
|
|
12
|
-
align
|
|
13
|
-
|
|
13
|
+
align,
|
|
14
|
+
style
|
|
15
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.conversationInfos[align], style, children });
|
|
14
16
|
const Date = ({
|
|
15
|
-
children
|
|
16
|
-
|
|
17
|
+
children,
|
|
18
|
+
style
|
|
19
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { as: "p", className: styles_css.styledText, prominence: "weak", style, variant: "bodySmall", children });
|
|
17
20
|
const Message = ({
|
|
18
21
|
className,
|
|
19
22
|
children,
|
|
20
23
|
avatar,
|
|
21
|
-
align = "right"
|
|
22
|
-
|
|
24
|
+
align = "right",
|
|
25
|
+
style
|
|
26
|
+
}) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${className ? `${className} ` : ""}${styles_css.conversationContainer[align]}`, style, children: [
|
|
23
27
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.conversationBubble, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.conversationRawMessage[align], children }) }),
|
|
24
28
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_css.conversationAvatar, children: avatar })
|
|
25
29
|
] });
|
|
26
30
|
const MessageTag = ({
|
|
27
|
-
children
|
|
28
|
-
|
|
31
|
+
children,
|
|
32
|
+
style
|
|
33
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx(ui.Tag, { className: styles_css.conversationTag, style, children });
|
|
29
34
|
Conversation.Date = Date;
|
|
30
35
|
Conversation.Message = Message;
|
|
31
36
|
Conversation.MessageInfos = MessageInfos;
|
|
@@ -1,35 +1,43 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
declare const Conversation: {
|
|
3
|
-
({ children }: {
|
|
3
|
+
({ children, style, }: {
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
style?: CSSProperties;
|
|
5
6
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
-
Date: ({ children }: {
|
|
7
|
+
Date: ({ children, style, }: {
|
|
7
8
|
children: ReactNode;
|
|
9
|
+
style?: CSSProperties;
|
|
8
10
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
-
Message: ({ className, children, avatar, align, }: MessageProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
-
MessageInfos: ({ children, align, }: {
|
|
11
|
+
Message: ({ className, children, avatar, align, style, }: MessageProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
MessageInfos: ({ children, align, style, }: {
|
|
11
13
|
children: ReactNode;
|
|
12
14
|
align: "left" | "right";
|
|
15
|
+
style?: CSSProperties;
|
|
13
16
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
-
Tag: ({ children }: {
|
|
17
|
+
Tag: ({ children, style, }: {
|
|
15
18
|
children: ReactNode;
|
|
19
|
+
style?: CSSProperties;
|
|
16
20
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
21
|
};
|
|
18
|
-
export declare const MessageInfos: ({ children, align, }: {
|
|
22
|
+
export declare const MessageInfos: ({ children, align, style, }: {
|
|
19
23
|
children: ReactNode;
|
|
20
24
|
align: "left" | "right";
|
|
25
|
+
style?: CSSProperties;
|
|
21
26
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare const Date: ({ children }: {
|
|
27
|
+
export declare const Date: ({ children, style, }: {
|
|
23
28
|
children: ReactNode;
|
|
29
|
+
style?: CSSProperties;
|
|
24
30
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
31
|
type MessageProps = {
|
|
26
32
|
className?: string;
|
|
27
33
|
children: ReactNode;
|
|
28
34
|
avatar: ReactNode;
|
|
29
35
|
align?: 'left' | 'right';
|
|
36
|
+
style?: CSSProperties;
|
|
30
37
|
};
|
|
31
|
-
export declare const Message: ({ className, children, avatar, align, }: MessageProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
32
|
-
export declare const MessageTag: ({ children }: {
|
|
38
|
+
export declare const Message: ({ className, children, avatar, align, style, }: MessageProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const MessageTag: ({ children, style, }: {
|
|
33
40
|
children: ReactNode;
|
|
41
|
+
style?: CSSProperties;
|
|
34
42
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
43
|
export { Conversation };
|
|
@@ -3,27 +3,32 @@ import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
|
3
3
|
import { Stack, Text, Tag } from "@ultraviolet/ui";
|
|
4
4
|
import { styledText, conversationContainer, conversationBubble, conversationRawMessage, conversationAvatar, conversationInfos, conversationTag } from "./styles.css.js";
|
|
5
5
|
const Conversation = ({
|
|
6
|
-
children
|
|
7
|
-
|
|
6
|
+
children,
|
|
7
|
+
style
|
|
8
|
+
}) => /* @__PURE__ */ jsx(Stack, { style, children });
|
|
8
9
|
const MessageInfos = ({
|
|
9
10
|
children,
|
|
10
|
-
align
|
|
11
|
-
|
|
11
|
+
align,
|
|
12
|
+
style
|
|
13
|
+
}) => /* @__PURE__ */ jsx("div", { className: conversationInfos[align], style, children });
|
|
12
14
|
const Date = ({
|
|
13
|
-
children
|
|
14
|
-
|
|
15
|
+
children,
|
|
16
|
+
style
|
|
17
|
+
}) => /* @__PURE__ */ jsx(Text, { as: "p", className: styledText, prominence: "weak", style, variant: "bodySmall", children });
|
|
15
18
|
const Message = ({
|
|
16
19
|
className,
|
|
17
20
|
children,
|
|
18
21
|
avatar,
|
|
19
|
-
align = "right"
|
|
20
|
-
|
|
22
|
+
align = "right",
|
|
23
|
+
style
|
|
24
|
+
}) => /* @__PURE__ */ jsxs("div", { className: `${className ? `${className} ` : ""}${conversationContainer[align]}`, style, children: [
|
|
21
25
|
/* @__PURE__ */ jsx("div", { className: conversationBubble, children: /* @__PURE__ */ jsx("div", { className: conversationRawMessage[align], children }) }),
|
|
22
26
|
/* @__PURE__ */ jsx("div", { className: conversationAvatar, children: avatar })
|
|
23
27
|
] });
|
|
24
28
|
const MessageTag = ({
|
|
25
|
-
children
|
|
26
|
-
|
|
29
|
+
children,
|
|
30
|
+
style
|
|
31
|
+
}) => /* @__PURE__ */ jsx(Tag, { className: conversationTag, style, children });
|
|
27
32
|
Conversation.Date = Date;
|
|
28
33
|
Conversation.Message = Message;
|
|
29
34
|
Conversation.MessageInfos = MessageInfos;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
;/* empty css */
|
|
4
3
|
;/* empty css */
|
|
5
4
|
var conversationInfos = { left: "uv_plus_16zcyo51 uv_plus_16zcyo50", right: "uv_plus_16zcyo52 uv_plus_16zcyo50" };
|
|
6
5
|
var styledText = "uv_plus_16zcyo53";
|
|
@@ -40,11 +40,12 @@ const CustomerSatisfaction = ({
|
|
|
40
40
|
value,
|
|
41
41
|
onChange,
|
|
42
42
|
"data-testid": dataTestId,
|
|
43
|
-
className
|
|
43
|
+
className,
|
|
44
|
+
style
|
|
44
45
|
}) => {
|
|
45
46
|
const [hoveredValue, setHoveredValue] = react.useState(0);
|
|
46
47
|
const isHappy = react.useMemo(() => value > ratings.length / 2, [value]);
|
|
47
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { className, "data-testid": dataTestId, direction: "row", justifyContent: "space-between", children: ratings.map((rating) => {
|
|
48
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { className, "data-testid": dataTestId, direction: "row", justifyContent: "space-between", style, children: ratings.map((rating) => {
|
|
48
49
|
const isSelected = rating.value === value;
|
|
49
50
|
const isOverfly = rating.value <= hoveredValue;
|
|
50
51
|
const isScaled = rating.value === hoveredValue && isSelected;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
1
2
|
declare const ratings: readonly [{
|
|
2
3
|
readonly imgNotSelected: string;
|
|
3
4
|
readonly imgSelected: string;
|
|
@@ -25,6 +26,7 @@ type CustomerSatisfactionProps = {
|
|
|
25
26
|
onChange: (rating: Value) => void;
|
|
26
27
|
'data-testid'?: string;
|
|
27
28
|
className?: string;
|
|
29
|
+
style?: CSSProperties;
|
|
28
30
|
};
|
|
29
|
-
export declare const CustomerSatisfaction: ({ value, onChange, "data-testid": dataTestId, className, }: CustomerSatisfactionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const CustomerSatisfaction: ({ value, onChange, "data-testid": dataTestId, className, style, }: CustomerSatisfactionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
32
|
export {};
|
|
@@ -38,11 +38,12 @@ const CustomerSatisfaction = ({
|
|
|
38
38
|
value,
|
|
39
39
|
onChange,
|
|
40
40
|
"data-testid": dataTestId,
|
|
41
|
-
className
|
|
41
|
+
className,
|
|
42
|
+
style
|
|
42
43
|
}) => {
|
|
43
44
|
const [hoveredValue, setHoveredValue] = useState(0);
|
|
44
45
|
const isHappy = useMemo(() => value > ratings.length / 2, [value]);
|
|
45
|
-
return /* @__PURE__ */ jsx(Stack, { className, "data-testid": dataTestId, direction: "row", justifyContent: "space-between", children: ratings.map((rating) => {
|
|
46
|
+
return /* @__PURE__ */ jsx(Stack, { className, "data-testid": dataTestId, direction: "row", justifyContent: "space-between", style, children: ratings.map((rating) => {
|
|
46
47
|
const isSelected = rating.value === value;
|
|
47
48
|
const isOverfly = rating.value <= hoveredValue;
|
|
48
49
|
const isScaled = rating.value === hoveredValue && isSelected;
|