@ultraviolet/plus 3.0.0-beta.13 → 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/ContentCardGroup/styles.css.cjs +0 -1
- package/dist/components/ContentCardGroup/styles.css.js +0 -1
- 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/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 +3 -2
- package/dist/components/EstimateCost/Components/Item.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Item.js +3 -2
- package/dist/components/EstimateCost/Components/Region.cjs +3 -2
- package/dist/components/EstimateCost/Components/Region.d.ts +2 -2
- package/dist/components/EstimateCost/Components/Region.js +3 -2
- package/dist/components/EstimateCost/Components/Regular.cjs +3 -2
- package/dist/components/EstimateCost/Components/Regular.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Regular.js +3 -2
- package/dist/components/EstimateCost/Components/Strong.cjs +3 -2
- package/dist/components/EstimateCost/Components/Strong.d.ts +3 -2
- package/dist/components/EstimateCost/Components/Strong.js +3 -2
- package/dist/components/EstimateCost/Components/Unit.cjs +5 -3
- package/dist/components/EstimateCost/Components/Unit.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Unit.js +5 -3
- package/dist/components/EstimateCost/Components/Zone.cjs +3 -2
- package/dist/components/EstimateCost/Components/Zone.d.ts +3 -1
- package/dist/components/EstimateCost/Components/Zone.js +3 -2
- package/dist/components/EstimateCost/EstimateCost.cjs +2 -1
- package/dist/components/EstimateCost/EstimateCost.d.ts +14 -8
- package/dist/components/EstimateCost/EstimateCost.js +2 -1
- package/dist/components/EstimateCost/EstimateCostContent.cjs +3 -2
- package/dist/components/EstimateCost/EstimateCostContent.d.ts +1 -1
- package/dist/components/EstimateCost/EstimateCostContent.js +3 -2
- 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/Navigation.d.ts +6 -3
- package/dist/components/Navigation/components/Group.cjs +4 -2
- package/dist/components/Navigation/components/Group.d.ts +3 -2
- package/dist/components/Navigation/components/Group.js +4 -2
- package/dist/components/Navigation/components/Item.cjs +5 -3
- package/dist/components/Navigation/components/Item.d.ts +3 -2
- package/dist/components/Navigation/components/Item.js +5 -3
- package/dist/components/Navigation/components/PinnedItems.cjs +4 -2
- package/dist/components/Navigation/components/PinnedItems.d.ts +3 -2
- package/dist/components/Navigation/components/PinnedItems.js +4 -2
- package/dist/components/Navigation/types.d.ts +2 -1
- 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/helpers.cjs +4 -4
- package/dist/components/OrderSummary/helpers.js +4 -4
- package/dist/components/OrderSummary/index.cjs +3 -2
- package/dist/components/OrderSummary/index.d.ts +1 -1
- package/dist/components/OrderSummary/index.js +3 -2
- package/dist/components/OrderSummary/types.d.ts +2 -1
- package/dist/components/Plans/PlanHeader.cjs +6 -66
- package/dist/components/Plans/PlanHeader.js +6 -64
- package/dist/components/Plans/index.cjs +3 -2
- package/dist/components/Plans/index.d.ts +3 -1
- package/dist/components/Plans/index.js +3 -2
- package/dist/components/Plans/styles.css.cjs +10 -0
- package/dist/components/Plans/styles.css.d.ts +5 -0
- package/dist/components/Plans/styles.css.js +10 -0
- package/dist/components/SteppedListCard/SteppedListCard.d.ts +2 -1
- package/dist/components/SteppedListCard/SteppedListContent.cjs +3 -2
- package/dist/components/SteppedListCard/SteppedListContent.d.ts +3 -2
- package/dist/components/SteppedListCard/SteppedListContent.js +3 -2
- package/dist/plus.css +1 -1
- package/package.json +6 -6
|
@@ -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;
|
|
@@ -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;
|
|
@@ -68,8 +68,9 @@ const Item = react.memo(({
|
|
|
68
68
|
// To change left cell typography prominence
|
|
69
69
|
notice,
|
|
70
70
|
// To display a gray text below the label
|
|
71
|
-
strikeThrough
|
|
71
|
+
strikeThrough,
|
|
72
72
|
// To strike through the price
|
|
73
|
+
style
|
|
73
74
|
}) => {
|
|
74
75
|
const {
|
|
75
76
|
locales,
|
|
@@ -157,7 +158,7 @@ const Item = react.memo(({
|
|
|
157
158
|
hideFromOverlay,
|
|
158
159
|
isFirstElement,
|
|
159
160
|
shouldBeHidden
|
|
160
|
-
}) : components_css.estimateCostTr, children: [
|
|
161
|
+
}) : components_css.estimateCostTr, style, children: [
|
|
161
162
|
/* @__PURE__ */ jsxRuntime.jsx(Cell, { className: styles_css.estimateCostCell({
|
|
162
163
|
hasBorder: !isLastElement && !noBorder && !isOverlay
|
|
163
164
|
}), style: dynamic.assignInlineVars({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Text } from '@ultraviolet/ui';
|
|
2
|
-
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import type { ComponentProps, CSSProperties, ReactNode } from 'react';
|
|
3
3
|
import type { BareEstimateProduct, EstimateProduct, Iteration } from '../types';
|
|
4
4
|
type ItemProps = {
|
|
5
5
|
amount?: number;
|
|
@@ -111,6 +111,7 @@ type ItemProps = {
|
|
|
111
111
|
*/
|
|
112
112
|
unit?: 'mb' | 'gb' | 'tb' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | (string & NonNullable<unknown>);
|
|
113
113
|
strikeThrough?: boolean;
|
|
114
|
+
style?: CSSProperties;
|
|
114
115
|
};
|
|
115
|
-
export declare const Item: import("react").MemoExoticComponent<({ discount, priceText, discountText, label, tooltipInfo, subLabel, price: basePrice, monthlyPrice, unit: baseUnit, amount: currentAmount, onAmountChange, amountFree, maxAmount, longFractionDigits, noIteration, noIterationText, noBorder, noPrice, isDefined, children, isFirstElement, isLastElement, isPrimaryBackground, productsCallback, iteration: receivedIteration, shouldBeHidden, hideFromOverlay, textNotDefined, animated, tabulation, labelTextVariant, labelTextProminence, notice, strikeThrough, }: ItemProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
116
|
+
export declare const Item: import("react").MemoExoticComponent<({ discount, priceText, discountText, label, tooltipInfo, subLabel, price: basePrice, monthlyPrice, unit: baseUnit, amount: currentAmount, onAmountChange, amountFree, maxAmount, longFractionDigits, noIteration, noIterationText, noBorder, noPrice, isDefined, children, isFirstElement, isLastElement, isPrimaryBackground, productsCallback, iteration: receivedIteration, shouldBeHidden, hideFromOverlay, textNotDefined, animated, tabulation, labelTextVariant, labelTextProminence, notice, strikeThrough, style, }: ItemProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
116
117
|
export {};
|
|
@@ -66,8 +66,9 @@ const Item = memo(({
|
|
|
66
66
|
// To change left cell typography prominence
|
|
67
67
|
notice,
|
|
68
68
|
// To display a gray text below the label
|
|
69
|
-
strikeThrough
|
|
69
|
+
strikeThrough,
|
|
70
70
|
// To strike through the price
|
|
71
|
+
style
|
|
71
72
|
}) => {
|
|
72
73
|
const {
|
|
73
74
|
locales,
|
|
@@ -155,7 +156,7 @@ const Item = memo(({
|
|
|
155
156
|
hideFromOverlay,
|
|
156
157
|
isFirstElement,
|
|
157
158
|
shouldBeHidden
|
|
158
|
-
}) : estimateCostTr, children: [
|
|
159
|
+
}) : estimateCostTr, style, children: [
|
|
159
160
|
/* @__PURE__ */ jsx(Cell, { className: estimateCostCell({
|
|
160
161
|
hasBorder: !isLastElement && !noBorder && !isOverlay
|
|
161
162
|
}), style: assignInlineVars({
|
|
@@ -20,12 +20,13 @@ const Region = react.memo(({
|
|
|
20
20
|
discount,
|
|
21
21
|
noBorder,
|
|
22
22
|
noPrice,
|
|
23
|
-
hideFromOverlay
|
|
23
|
+
hideFromOverlay,
|
|
24
|
+
style
|
|
24
25
|
}) => {
|
|
25
26
|
const {
|
|
26
27
|
locales
|
|
27
28
|
} = EstimateCostProvider.useEstimateCost();
|
|
28
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Item.Item, { animated, discount, hideFromOverlay, isFirstElement, isLastElement, iteration, label: locales["estimate.cost.region.label"], noBorder, noPrice, priceText, productsCallback, shouldBeHidden, children: /* @__PURE__ */ jsxRuntime.jsxs(Strong.Strong, { children: [
|
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Item.Item, { animated, discount, hideFromOverlay, isFirstElement, isLastElement, iteration, label: locales["estimate.cost.region.label"], noBorder, noPrice, priceText, productsCallback, shouldBeHidden, style, children: /* @__PURE__ */ jsxRuntime.jsxs(Strong.Strong, { children: [
|
|
29
30
|
/* @__PURE__ */ jsxRuntime.jsx("img", { alt: label, className: styles_css.estimateCostImage, src: image }),
|
|
30
31
|
label
|
|
31
32
|
] }) });
|
|
@@ -17,6 +17,6 @@ type RegionProps = {
|
|
|
17
17
|
image: string;
|
|
18
18
|
noBorder?: boolean;
|
|
19
19
|
noPrice?: boolean;
|
|
20
|
-
} & Pick<ComponentProps<typeof Item>, 'hideFromOverlay'>;
|
|
21
|
-
export declare const Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, }: RegionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
20
|
+
} & Pick<ComponentProps<typeof Item>, 'hideFromOverlay' | 'style'>;
|
|
21
|
+
export declare const Region: import("react").MemoExoticComponent<({ label, image, shouldBeHidden, priceText, animated, isFirstElement, isLastElement, productsCallback, iteration, discount, noBorder, noPrice, hideFromOverlay, style, }: RegionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
22
22
|
export {};
|
|
@@ -18,12 +18,13 @@ const Region = memo(({
|
|
|
18
18
|
discount,
|
|
19
19
|
noBorder,
|
|
20
20
|
noPrice,
|
|
21
|
-
hideFromOverlay
|
|
21
|
+
hideFromOverlay,
|
|
22
|
+
style
|
|
22
23
|
}) => {
|
|
23
24
|
const {
|
|
24
25
|
locales
|
|
25
26
|
} = useEstimateCost();
|
|
26
|
-
return /* @__PURE__ */ jsx(Item, { animated, discount, hideFromOverlay, isFirstElement, isLastElement, iteration, label: locales["estimate.cost.region.label"], noBorder, noPrice, priceText, productsCallback, shouldBeHidden, children: /* @__PURE__ */ jsxs(Strong, { children: [
|
|
27
|
+
return /* @__PURE__ */ jsx(Item, { animated, discount, hideFromOverlay, isFirstElement, isLastElement, iteration, label: locales["estimate.cost.region.label"], noBorder, noPrice, priceText, productsCallback, shouldBeHidden, style, children: /* @__PURE__ */ jsxs(Strong, { children: [
|
|
27
28
|
/* @__PURE__ */ jsx("img", { alt: label, className: estimateCostImage, src: image }),
|
|
28
29
|
label
|
|
29
30
|
] }) });
|
|
@@ -9,7 +9,8 @@ const Regular = react.memo(({
|
|
|
9
9
|
variant = "normal",
|
|
10
10
|
isDisabledOnOverlay = false,
|
|
11
11
|
children = null,
|
|
12
|
-
className
|
|
12
|
+
className,
|
|
13
|
+
style
|
|
13
14
|
}) => {
|
|
14
15
|
const {
|
|
15
16
|
isOverlay
|
|
@@ -17,6 +18,6 @@ const Regular = react.memo(({
|
|
|
17
18
|
return !isDisabledOnOverlay || !isOverlay ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${className ? `${className} ` : ""}${components_css.estimateCostRegular({
|
|
18
19
|
isOverlay,
|
|
19
20
|
variant
|
|
20
|
-
})}`, children }) : null;
|
|
21
|
+
})}`, style, children }) : null;
|
|
21
22
|
});
|
|
22
23
|
exports.Regular = Regular;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
type RegularProps = {
|
|
3
3
|
variant?: 'normal' | 'small' | 'big' | 'capitalized';
|
|
4
4
|
isDisabledOnOverlay?: boolean;
|
|
5
5
|
children?: ReactNode;
|
|
6
|
+
style?: CSSProperties;
|
|
6
7
|
className?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, }: RegularProps) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
|
|
9
|
+
export declare const Regular: import("react").MemoExoticComponent<({ variant, isDisabledOnOverlay, children, className, style, }: RegularProps) => import("@emotion/react/jsx-runtime").JSX.Element | null>;
|
|
9
10
|
export {};
|
|
@@ -7,7 +7,8 @@ const Regular = memo(({
|
|
|
7
7
|
variant = "normal",
|
|
8
8
|
isDisabledOnOverlay = false,
|
|
9
9
|
children = null,
|
|
10
|
-
className
|
|
10
|
+
className,
|
|
11
|
+
style
|
|
11
12
|
}) => {
|
|
12
13
|
const {
|
|
13
14
|
isOverlay
|
|
@@ -15,7 +16,7 @@ const Regular = memo(({
|
|
|
15
16
|
return !isDisabledOnOverlay || !isOverlay ? /* @__PURE__ */ jsx("div", { className: `${className ? `${className} ` : ""}${estimateCostRegular({
|
|
16
17
|
isOverlay,
|
|
17
18
|
variant
|
|
18
|
-
})}`, children }) : null;
|
|
19
|
+
})}`, style, children }) : null;
|
|
19
20
|
});
|
|
20
21
|
export {
|
|
21
22
|
Regular
|
|
@@ -6,10 +6,11 @@ const react = require("react");
|
|
|
6
6
|
const components_css = require("./components.css.cjs");
|
|
7
7
|
const Strong = react.memo(({
|
|
8
8
|
variant = "normal",
|
|
9
|
-
children = null
|
|
9
|
+
children = null,
|
|
10
|
+
style
|
|
10
11
|
}) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${components_css.estimateCostRegular({
|
|
11
12
|
variant
|
|
12
13
|
})} ${components_css.estimateCostStrong({
|
|
13
14
|
variant
|
|
14
|
-
})}`, children }));
|
|
15
|
+
})}`, style, children }));
|
|
15
16
|
exports.Strong = Strong;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
type StrongProps = {
|
|
3
3
|
variant?: 'normal' | 'small' | 'big' | 'capitalized';
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
isDisabledOnOverlay?: boolean;
|
|
6
|
+
style?: CSSProperties;
|
|
6
7
|
};
|
|
7
|
-
export declare const Strong: import("react").MemoExoticComponent<({ variant, children }: StrongProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export declare const Strong: import("react").MemoExoticComponent<({ variant, children, style }: StrongProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
8
9
|
export {};
|
|
@@ -4,12 +4,13 @@ import { memo } from "react";
|
|
|
4
4
|
import { estimateCostRegular, estimateCostStrong } from "./components.css.js";
|
|
5
5
|
const Strong = memo(({
|
|
6
6
|
variant = "normal",
|
|
7
|
-
children = null
|
|
7
|
+
children = null,
|
|
8
|
+
style
|
|
8
9
|
}) => /* @__PURE__ */ jsx("div", { className: `${estimateCostRegular({
|
|
9
10
|
variant
|
|
10
11
|
})} ${estimateCostStrong({
|
|
11
12
|
variant
|
|
12
|
-
})}`, children }));
|
|
13
|
+
})}`, style, children }));
|
|
13
14
|
export {
|
|
14
15
|
Strong
|
|
15
16
|
};
|