@ultraviolet/plus 0.7.2 → 0.8.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/@ultraviolet/icons/dist/components/ProductIcon/Icons.js +199 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/abuse.svg.js +26 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/advanced-settings.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/api-gateway.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/api-key.svg.js +55 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/apple-silicon.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/application-library.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/application.svg.js +44 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/backends.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/basic-support.svg.js +33 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/billing.svg.js +43 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/block-storage.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/cb.svg.js +39 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/cdn.svg.js +37 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/changelog.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/cli.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/cockpit.svg.js +53 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/console.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/containers.svg.js +36 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/dedibox.svg.js +48 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/dedicated-control-plane.svg.js +82 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/dedicated-server.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/devices.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/direct-connect.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/distributed-data-lab.svg.js +80 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/dns.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/document-db.svg.js +36 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/documentation.svg.js +45 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/domains.svg.js +51 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/elastic-metal.svg.js +40 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/file.svg.js +43 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/flexible-ip.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/folder.svg.js +41 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/front-ends.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/functions.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/gold-support.svg.js +37 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/hub-networks.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/hub-routes.svg.js +26 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/iam.svg.js +38 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/images.svg.js +31 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/instance-enterprise.svg.js +28 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/instance-gpu.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/instance.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/iot-edge.svg.js +36 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/iot.svg.js +28 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/ip-failover.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/ipfs-naming.svg.js +55 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/ipfs.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/jero.svg.js +51 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/k8s-kosmos.svg.js +54 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/kubernetes.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/lb.svg.js +39 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/life-cycle-rules.svg.js +33 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/mac-mini-m2.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/multi-user.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/nabu.svg.js +51 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/nats.svg.js +40 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/object-storage.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/packer.svg.js +25 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/placement-group.svg.js +72 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/platinum-support.svg.js +33 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/policy.svg.js +46 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/pool.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/postgresql-mysql.svg.js +36 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/private-network.svg.js +37 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/public-gateway.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/qaas.svg.js +54 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/queueing.svg.js +31 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/rabbit-mq.svg.js +38 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/rdb.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/redis.svg.js +31 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/registry.svg.js +36 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/rocket.svg.js +40 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/router.svg.js +50 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/secret-manager.svg.js +36 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/security-group.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/sepa.svg.js +31 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/server.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/serverless-db.svg.js +49 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/serverless-jobs.svg.js +92 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/silver-support.svg.js +38 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/sms.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/smtp.svg.js +38 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/snapshots.svg.js +39 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/sns.svg.js +79 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/sqs.svg.js +51 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/ssl-certificates.svg.js +33 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/support.svg.js +40 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/terraform.svg.js +33 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/transactional-email.svg.js +31 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/tutorial.svg.js +38 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/user.svg.js +32 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/verify-card.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/video.svg.js +34 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/volume.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/vpc.svg.js +30 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/webhosting.svg.js +47 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/assets/zone.svg.js +31 -0
- package/dist/@ultraviolet/icons/dist/components/ProductIcon/index.js +53 -0
- package/dist/index.d.ts +34 -1
- package/dist/src/components/Conversation/index.js +115 -0
- package/dist/src/components/FAQ/index.js +49 -0
- package/dist/src/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import _styled from '@emotion/styled/base';
|
|
2
|
+
import { Stack, Text, Tag } from '@ultraviolet/ui';
|
|
3
|
+
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
6
|
+
const Conversation = ({
|
|
7
|
+
children
|
|
8
|
+
}) => jsx(Stack, {
|
|
9
|
+
children: children
|
|
10
|
+
});
|
|
11
|
+
const StyledInfos = /*#__PURE__*/_styled("div", {
|
|
12
|
+
target: "e7oenbq6"
|
|
13
|
+
})("display:flex;align-items:center;justify-content:", ({
|
|
14
|
+
align
|
|
15
|
+
}) => align === 'left' ? 'flex-start' : 'flex-end', ";margin:0 ", ({
|
|
16
|
+
theme
|
|
17
|
+
}) => theme.space['7'], ";");
|
|
18
|
+
const MessageInfos = ({
|
|
19
|
+
children,
|
|
20
|
+
align
|
|
21
|
+
}) => jsx(StyledInfos, {
|
|
22
|
+
align: align,
|
|
23
|
+
children: children
|
|
24
|
+
});
|
|
25
|
+
const StyledText = /*#__PURE__*/_styled(Text, {
|
|
26
|
+
target: "e7oenbq5"
|
|
27
|
+
})("margin-top:", ({
|
|
28
|
+
theme
|
|
29
|
+
}) => theme.space['3'], ";text-align:center;");
|
|
30
|
+
const Date = ({
|
|
31
|
+
children
|
|
32
|
+
}) => jsx(StyledText, {
|
|
33
|
+
as: "p",
|
|
34
|
+
variant: "bodySmall",
|
|
35
|
+
prominence: "weak",
|
|
36
|
+
children: children
|
|
37
|
+
});
|
|
38
|
+
const MessageContainer = /*#__PURE__*/_styled('div', {
|
|
39
|
+
shouldForwardProp: prop => !['align'].includes(prop),
|
|
40
|
+
target: "e7oenbq4"
|
|
41
|
+
})("display:flex;flex-direction:", ({
|
|
42
|
+
align
|
|
43
|
+
}) => align === 'left' ? 'row-reverse' : 'row', ";margin-bottom:", ({
|
|
44
|
+
theme
|
|
45
|
+
}) => theme.space['2'], ";");
|
|
46
|
+
const RawMessageContainer = /*#__PURE__*/_styled('div', {
|
|
47
|
+
shouldForwardProp: prop => !['align'].includes(prop),
|
|
48
|
+
target: "e7oenbq3"
|
|
49
|
+
})("margin:0 ", ({
|
|
50
|
+
theme
|
|
51
|
+
}) => theme.space['3'], ";margin-top:", ({
|
|
52
|
+
theme
|
|
53
|
+
}) => theme.space['3'], ";border-radius:", ({
|
|
54
|
+
theme
|
|
55
|
+
}) => theme.radii.default, ";padding:", ({
|
|
56
|
+
theme
|
|
57
|
+
}) => theme.space['3'], ";background-color:", ({
|
|
58
|
+
theme,
|
|
59
|
+
align
|
|
60
|
+
}) => align === 'left' ? theme.colors.neutral.backgroundStrong : theme.colors.primary.background, ";");
|
|
61
|
+
const AvatarContainer = /*#__PURE__*/_styled("div", {
|
|
62
|
+
target: "e7oenbq2"
|
|
63
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
64
|
+
name: "1cnh6jp",
|
|
65
|
+
styles: "display:flex;align-self:flex-end"
|
|
66
|
+
} : {
|
|
67
|
+
name: "1cnh6jp",
|
|
68
|
+
styles: "display:flex;align-self:flex-end",
|
|
69
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
70
|
+
});
|
|
71
|
+
const BubbleContainer = /*#__PURE__*/_styled("div", {
|
|
72
|
+
target: "e7oenbq1"
|
|
73
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
74
|
+
name: "1d3w5wq",
|
|
75
|
+
styles: "width:100%"
|
|
76
|
+
} : {
|
|
77
|
+
name: "1d3w5wq",
|
|
78
|
+
styles: "width:100%",
|
|
79
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
80
|
+
});
|
|
81
|
+
const Message = ({
|
|
82
|
+
className,
|
|
83
|
+
children,
|
|
84
|
+
avatar,
|
|
85
|
+
align = 'right'
|
|
86
|
+
}) => jsxs(MessageContainer, {
|
|
87
|
+
align: align,
|
|
88
|
+
className: className,
|
|
89
|
+
children: [jsx(BubbleContainer, {
|
|
90
|
+
children: jsx(RawMessageContainer, {
|
|
91
|
+
align: align,
|
|
92
|
+
children: children
|
|
93
|
+
})
|
|
94
|
+
}), jsx(AvatarContainer, {
|
|
95
|
+
children: avatar
|
|
96
|
+
})]
|
|
97
|
+
});
|
|
98
|
+
const StyledTag = /*#__PURE__*/_styled(Tag, {
|
|
99
|
+
target: "e7oenbq0"
|
|
100
|
+
})("background-color:", ({
|
|
101
|
+
theme
|
|
102
|
+
}) => theme.colors.neutral.backgroundStrong, ";height:16px;margin-right:", ({
|
|
103
|
+
theme
|
|
104
|
+
}) => theme.space['1'], ";");
|
|
105
|
+
const MessageTag = ({
|
|
106
|
+
children
|
|
107
|
+
}) => jsx(StyledTag, {
|
|
108
|
+
children: children
|
|
109
|
+
});
|
|
110
|
+
Conversation.Date = Date;
|
|
111
|
+
Conversation.Message = Message;
|
|
112
|
+
Conversation.MessageInfos = MessageInfos;
|
|
113
|
+
Conversation.Tag = MessageTag;
|
|
114
|
+
|
|
115
|
+
export { Conversation, Date, Message, MessageInfos, MessageTag };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _styled from '@emotion/styled/base';
|
|
2
|
+
import { Stack, Bullet, Text, Card } from '@ultraviolet/ui';
|
|
3
|
+
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
4
|
+
import { ProductIcon } from '../../../@ultraviolet/icons/dist/components/ProductIcon/index.js';
|
|
5
|
+
|
|
6
|
+
const StyledCard = /*#__PURE__*/_styled(Card, {
|
|
7
|
+
target: "ebaosvo0"
|
|
8
|
+
})("padding:", ({
|
|
9
|
+
theme
|
|
10
|
+
}) => theme.space['2'], ";text-align:left;");
|
|
11
|
+
const FAQ = ({
|
|
12
|
+
productIconName,
|
|
13
|
+
illustrationText,
|
|
14
|
+
title,
|
|
15
|
+
description,
|
|
16
|
+
notes
|
|
17
|
+
}) => jsx(StyledCard, {
|
|
18
|
+
children: jsxs(Stack, {
|
|
19
|
+
gap: 2,
|
|
20
|
+
direction: "row",
|
|
21
|
+
children: [jsxs("div", {
|
|
22
|
+
children: [!productIconName && illustrationText ? jsx(Bullet, {
|
|
23
|
+
sentiment: "primary",
|
|
24
|
+
text: illustrationText.toString()
|
|
25
|
+
}) : null, productIconName ? jsx(ProductIcon, {
|
|
26
|
+
name: productIconName,
|
|
27
|
+
size: "xlarge"
|
|
28
|
+
}) : null]
|
|
29
|
+
}), jsxs("div", {
|
|
30
|
+
children: [jsx(Text, {
|
|
31
|
+
as: "p",
|
|
32
|
+
variant: "bodyStronger",
|
|
33
|
+
prominence: "strong",
|
|
34
|
+
children: title
|
|
35
|
+
}), jsxs(Text, {
|
|
36
|
+
as: "div",
|
|
37
|
+
variant: "bodySmall",
|
|
38
|
+
children: [description, notes ? jsx(Text, {
|
|
39
|
+
variant: "caption",
|
|
40
|
+
as: "small",
|
|
41
|
+
italic: true,
|
|
42
|
+
children: notes
|
|
43
|
+
}) : null]
|
|
44
|
+
})]
|
|
45
|
+
})]
|
|
46
|
+
})
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export { FAQ };
|
package/dist/src/index.js
CHANGED
|
@@ -4,3 +4,5 @@ export { CodeEditor } from './components/CodeEditor/CodeEditor.js';
|
|
|
4
4
|
export { EstimateCost } from './components/EstimateCost/EstimateCost.js';
|
|
5
5
|
export { default as estimateCostDefaultLocales } from './components/EstimateCost/locales/en.js';
|
|
6
6
|
export { CustomerSatisfaction } from './components/CustomerSatisfaction/index.js';
|
|
7
|
+
export { Conversation } from './components/Conversation/index.js';
|
|
8
|
+
export { FAQ } from './components/FAQ/index.js';
|