@camunda/camunda-composite-components 0.20.2 → 0.20.3
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/lib/esm/package.json +27 -28
- package/lib/esm/src/api/clusters.js +1 -1
- package/lib/esm/src/api/endpoints.const.js +2 -0
- package/lib/esm/src/api/help-center.d.ts +1 -1
- package/lib/esm/src/api/status.js +1 -1
- package/lib/esm/src/assets/c3-icons.d.ts +4 -4
- package/lib/esm/src/assets/c3-icons.js +5 -14
- package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.d.ts +1 -1
- package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.js +10 -19
- package/lib/esm/src/components/c3-app-teaser/app-teaster-card.d.ts +1 -1
- package/lib/esm/src/components/c3-app-teaser/app-teaster-card.js +4 -8
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.d.ts +1 -1
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.js +2 -2
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.d.ts +1 -1
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.js +8 -9
- package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.d.ts +2 -1
- package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.js +9 -8
- package/lib/esm/src/components/c3-data-table/c3-data-table.js +84 -70
- package/lib/esm/src/components/c3-data-table/c3-data-table.types.d.ts +3 -2
- package/lib/esm/src/components/c3-data-table/link-button/link-button.js +2 -4
- package/lib/esm/src/components/c3-data-table/link-button/link-button.types.d.ts +0 -1
- package/lib/esm/src/components/c3-empty-state/c3-empty-state.js +9 -29
- package/lib/esm/src/components/c3-help-center/c3-help-center-provider.js +3 -2
- package/lib/esm/src/components/c3-help-center/c3-help-center.js +3 -7
- package/lib/esm/src/components/c3-help-center/help-center-hint.d.ts +1 -1
- package/lib/esm/src/components/c3-help-center/help-center-hint.js +6 -10
- package/lib/esm/src/components/c3-help-center/help-center.d.ts +1 -1
- package/lib/esm/src/components/c3-help-center/help-center.js +69 -102
- package/lib/esm/src/components/c3-help-center/tabs/feedback.js +41 -89
- package/lib/esm/src/components/c3-help-center/tabs/tabContent.js +2 -5
- package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.js +4 -5
- package/lib/esm/src/components/c3-help-center/tile.js +16 -30
- package/lib/esm/src/components/c3-navigation/c3-info-button.d.ts +1 -1
- package/lib/esm/src/components/c3-navigation/c3-info-button.js +2 -3
- package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +1 -1
- package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +9 -9
- package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/c3-navigation-appbar.js +72 -87
- package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.d.ts +1 -5
- package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.js +1 -0
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +1 -1
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +20 -28
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +1 -1
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +23 -27
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +1 -1
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +29 -37
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +18 -24
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +3 -2
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +13 -37
- package/lib/esm/src/components/c3-navigation/c3-navigation.js +78 -120
- package/lib/esm/src/components/c3-navigation/c3-navigation.types.d.ts +5 -6
- package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +1 -1
- package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.js +10 -18
- package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +4 -4
- package/lib/esm/src/components/c3-navigation/c3-org-name.js +2 -4
- package/lib/esm/src/components/c3-navigation/c3-org-sidebar/c3-org-sidebar.js +48 -60
- package/lib/esm/src/components/c3-navigation/c3-org-sidebar/components.js +23 -13
- package/lib/esm/src/components/c3-navigation/helpers.d.ts +2 -3
- package/lib/esm/src/components/c3-navigation/index.d.ts +1 -2
- package/lib/esm/src/components/c3-navigation/stories/story-helpers.js +3 -5
- package/lib/esm/src/components/c3-navigation/stories/story-templates.d.ts +1 -1
- package/lib/esm/src/components/c3-navigation/stories/story-templates.js +23 -29
- package/lib/esm/src/components/c3-onboarding-survey/c3-onboarding-survey.js +2 -1
- package/lib/esm/src/components/c3-onboarding-survey/elements/dropdownSelect.js +25 -38
- package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupMulti.js +45 -56
- package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupSingle.js +24 -34
- package/lib/esm/src/components/c3-onboarding-survey/elements/textField.js +4 -9
- package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.d.ts +9 -9
- package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.js +31 -42
- package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.d.ts +9 -9
- package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.js +27 -39
- package/lib/esm/src/components/c3-onboarding-survey/onboardingSurvey.js +9 -13
- package/lib/esm/src/components/c3-onboarding-survey/step.js +27 -27
- package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.js +8 -17
- package/lib/esm/src/components/c3-page/c3-page.js +2 -9
- package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.js +4 -5
- package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.d.ts +2 -0
- package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.js +13 -0
- package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.d.ts +1 -1
- package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.js +5 -4
- package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/carbon-theme-provider.js +3 -2
- package/lib/esm/src/components/c3-user-configuration/c3-user-configuration-provider.js +3 -4
- package/lib/esm/src/contexts/c3-cluster-update-manager.d.ts +1 -1
- package/lib/esm/src/contexts/c3-cluster-update-manager.js +3 -2
- package/lib/esm/src/hooks/useApi.d.ts +4 -5
- package/lib/esm/src/index.d.ts +1 -0
- package/lib/esm/src/index.js +1 -0
- package/package.json +20 -27
- package/README.md +0 -197
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { Button, ModalFooter, SideNav, SideNavItems, SideNavMenuItem, Stack, } from "@carbon/react";
|
|
2
3
|
import { Undo } from "@carbon/react/icons";
|
|
3
|
-
import
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
4
5
|
import { Feedback } from "./tabs/feedback";
|
|
5
6
|
import { TabContent } from "./tabs/tabContent";
|
|
6
7
|
import { useC3UserConfiguration } from "../c3-user-configuration/c3-user-configuration-provider";
|
|
@@ -64,7 +65,7 @@ export const HelpCenter = ({ configuration, persona, email, audience, flags = []
|
|
|
64
65
|
};
|
|
65
66
|
const tabTiles = getTabTiles();
|
|
66
67
|
let header = "";
|
|
67
|
-
let content =
|
|
68
|
+
let content = _jsx(_Fragment, {});
|
|
68
69
|
useEffect(() => {
|
|
69
70
|
setActiveTab(initialTab ?? firstTab);
|
|
70
71
|
}, [initialTab]);
|
|
@@ -80,38 +81,28 @@ export const HelpCenter = ({ configuration, persona, email, audience, flags = []
|
|
|
80
81
|
Object.keys(tabTiles).length === 0 &&
|
|
81
82
|
isLoadingTiles) {
|
|
82
83
|
header = "Your recommendations";
|
|
83
|
-
content =
|
|
84
|
+
content = _jsx(TabContentSkeleton, {});
|
|
84
85
|
}
|
|
85
86
|
else if (activeTab === "recommendations" &&
|
|
86
87
|
Object.keys(tabTiles).length === 0) {
|
|
87
88
|
header = "";
|
|
88
|
-
content = (
|
|
89
|
+
content = (_jsx("div", { style: {
|
|
89
90
|
height: "100%",
|
|
90
91
|
display: "flex",
|
|
91
92
|
justifyContent: "center",
|
|
92
93
|
alignItems: "center",
|
|
93
|
-
}
|
|
94
|
-
React.createElement("div", { style: {
|
|
94
|
+
}, children: _jsx("div", { style: {
|
|
95
95
|
height: "200px",
|
|
96
96
|
width: "450px",
|
|
97
|
-
} },
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
React.createElement("path", { d: "M22.5379 14.9379C22.5379 9.46436 26.9851 5.0171 32.4587 5.0171C37.9322 5.0171 42.3795 9.46436 42.3795 14.9379C42.3795 20.4115 37.9322 24.8587 32.4587 24.8587C26.9851 24.8587 22.5379 20.3944 22.5379 14.9379ZM53.4976 38.7137L51.445 59H13.4723L11.4197 38.7137H20.5024V34.5743L10 26.86V5H16.3288V23.6443L24.5733 29.6994H41.4045L44.415 33.8046V38.7308L53.4976 38.7137ZM36.1704 48.8568C36.1704 46.8042 34.5112 45.1451 32.4587 45.1451C30.4061 45.1451 28.7469 46.8042 28.7469 48.8568C28.7469 50.9094 30.4061 52.5686 32.4587 52.5686C34.5112 52.5686 36.1704 50.9094 36.1704 48.8568Z", fill: "#FC5D0D" })),
|
|
101
|
-
React.createElement(Stack, { gap: 3 },
|
|
102
|
-
React.createElement("h2", null, "Personalize your experience"),
|
|
103
|
-
React.createElement(Stack, { gap: 6 },
|
|
104
|
-
React.createElement("p", { style: { maxWidth: "400px" } }, "Complete a 1-minute survey to access personalized next steps and educational content designed for you"),
|
|
105
|
-
React.createElement(Stack, { gap: 3 },
|
|
106
|
-
React.createElement(Button, { id: "additional-feedback-button", size: "md", onClick: () => {
|
|
107
|
-
onRequestRetakeSurvey();
|
|
108
|
-
} }, "Start now"))))))));
|
|
97
|
+
}, children: _jsxs(Stack, { orientation: "horizontal", gap: 6, children: [_jsx("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M22.5379 14.9379C22.5379 9.46436 26.9851 5.0171 32.4587 5.0171C37.9322 5.0171 42.3795 9.46436 42.3795 14.9379C42.3795 20.4115 37.9322 24.8587 32.4587 24.8587C26.9851 24.8587 22.5379 20.3944 22.5379 14.9379ZM53.4976 38.7137L51.445 59H13.4723L11.4197 38.7137H20.5024V34.5743L10 26.86V5H16.3288V23.6443L24.5733 29.6994H41.4045L44.415 33.8046V38.7308L53.4976 38.7137ZM36.1704 48.8568C36.1704 46.8042 34.5112 45.1451 32.4587 45.1451C30.4061 45.1451 28.7469 46.8042 28.7469 48.8568C28.7469 50.9094 30.4061 52.5686 32.4587 52.5686C34.5112 52.5686 36.1704 50.9094 36.1704 48.8568Z", fill: "#FC5D0D" }) }), _jsxs(Stack, { gap: 3, children: [_jsx("h2", { children: "Personalize your experience" }), _jsxs(Stack, { gap: 6, children: [_jsx("p", { style: { maxWidth: "400px" }, children: "Complete a 1-minute survey to access personalized next steps and educational content designed for you" }), _jsx(Stack, { gap: 3, children: _jsx(Button, { id: "additional-feedback-button", size: "md", onClick: () => {
|
|
98
|
+
onRequestRetakeSurvey();
|
|
99
|
+
}, children: "Start now" }) })] })] })] }) }) }));
|
|
109
100
|
}
|
|
110
101
|
else {
|
|
111
102
|
const tab = configuration.tabs.find((tab) => tab.id === activeTab);
|
|
112
103
|
header = tab?.title ?? "";
|
|
113
104
|
if (tabTiles[activeTab]) {
|
|
114
|
-
content = (
|
|
105
|
+
content = (_jsx(TabContent, { onboarding: (() => {
|
|
115
106
|
if (activeTab === "recommendations") {
|
|
116
107
|
return {
|
|
117
108
|
complete: persona.complete || false,
|
|
@@ -132,87 +123,63 @@ export const HelpCenter = ({ configuration, persona, email, audience, flags = []
|
|
|
132
123
|
})),
|
|
133
124
|
{ id: "feedback", name: "feedback", text: "Share your feedback" },
|
|
134
125
|
];
|
|
135
|
-
return (
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
color: tabButtonColor,
|
|
195
|
-
}, "aria-label": text }, text)));
|
|
196
|
-
})))),
|
|
197
|
-
React.createElement("li", { style: { position: "absolute", bottom: "20px" } },
|
|
198
|
-
React.createElement("ul", null, configuration.links?.map((link) => (React.createElement(SideNavMenuItem, { key: link.label.split(" ").join("-").toLowerCase(), href: link.link,
|
|
199
|
-
// eslint-disable-next-line
|
|
200
|
-
// @ts-ignore
|
|
201
|
-
target: "_blank" },
|
|
202
|
-
React.createElement("span", { className: "cds--link" }, link.label))))))))),
|
|
203
|
-
content,
|
|
204
|
-
React.createElement("div", { style: { display: activeTab === "feedback" ? "block" : "none" } },
|
|
205
|
-
React.createElement(Feedback, { audience: audience, theme: theme, mixpanelTrack: mixpanelTrack, setHeader: (head) => {
|
|
206
|
-
header = head;
|
|
207
|
-
}, salesPlanType: organization?.salesPlan?.type ?? "" })))),
|
|
208
|
-
persona.complete && activeTab === "recommendations" && (React.createElement(StyledModalFooter, { "$hcTheme": theme },
|
|
209
|
-
React.createElement("div", null,
|
|
210
|
-
React.createElement(Button, { kind: "tertiary", renderIcon: Undo, onClick: onRequestRetakeSurvey, size: "sm", style: {
|
|
211
|
-
maxWidth: "200px",
|
|
212
|
-
height: "32px",
|
|
213
|
-
alignItems: "center",
|
|
214
|
-
paddingTop: "0px",
|
|
215
|
-
paddingBottom: "0px",
|
|
216
|
-
marginRight: "6px",
|
|
217
|
-
} }, "Retake the survey"))))));
|
|
126
|
+
return (_jsxs(_Fragment, { children: [_jsx(StyledModalHeader, { title: "", label: "", closeModal: onRequestClose, style: {
|
|
127
|
+
backgroundColor: theme === "light" ? "#FFFFFF" : "#161616",
|
|
128
|
+
marginBottom: "0",
|
|
129
|
+
}, children: _jsx(StyledHeading, { children: header }) }), _jsx(StyledModalBody, { style: {
|
|
130
|
+
backgroundColor: theme === "light" ? "#FFFFFF" : "#161616",
|
|
131
|
+
marginBottom: 0,
|
|
132
|
+
}, children: _jsxs("div", { style: {
|
|
133
|
+
height: persona.complete && activeTab === "recommendations"
|
|
134
|
+
? "634px"
|
|
135
|
+
: "696px",
|
|
136
|
+
}, children: [_jsx(SideNavMobileWrapper, { children: _jsx(C3Tabs, { tabs: tabBar.map((link) => {
|
|
137
|
+
return {
|
|
138
|
+
id: link.id,
|
|
139
|
+
label: link.text,
|
|
140
|
+
content: null,
|
|
141
|
+
};
|
|
142
|
+
}), desiredTabId: activeTab, onTabChange: (tabId) => {
|
|
143
|
+
const link = tabBar.find((item) => item.id === tabId);
|
|
144
|
+
if (link) {
|
|
145
|
+
setActiveTab(link.name);
|
|
146
|
+
mixpanelTrack?.("helpcenter:open", {
|
|
147
|
+
to: link.id,
|
|
148
|
+
from: origin,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
} }) }), _jsx(SideNavWrapper, { children: _jsx(SideNav, { isFixedNav: true, expanded: true, isChildOfHeader: false, "aria-label": "Side nav", children: _jsxs(SideNavItems, { children: [_jsx(SideNavMenuItem, { children: _jsx("h5", { children: "Help Center" }) }), _jsx("li", { style: { marginTop: "4px" }, children: _jsx(Stack, { children: _jsx("ul", { children: tabBar.map(({ name, id, text }) => {
|
|
152
|
+
const active = activeTab === name;
|
|
153
|
+
let tabBackgroundColor = theme === "light" ? "#F4F4F4" : "#161616";
|
|
154
|
+
let tabButtonColor = theme === "light" ? "#525252" : "#f4f4f4";
|
|
155
|
+
if (active) {
|
|
156
|
+
tabBackgroundColor =
|
|
157
|
+
theme === "light" ? "#E5E5E5" : "#8D8D8D3D";
|
|
158
|
+
tabButtonColor =
|
|
159
|
+
theme === "light" ? "#161616" : "#f4f4f4";
|
|
160
|
+
}
|
|
161
|
+
return (_jsx("li", { children: _jsx(Button, { className: active ? "active" : "", kind: "secondary", onClick: () => {
|
|
162
|
+
setActiveTab(name);
|
|
163
|
+
mixpanelTrack?.("helpcenter:open", {
|
|
164
|
+
to: id,
|
|
165
|
+
from: origin,
|
|
166
|
+
});
|
|
167
|
+
}, style: {
|
|
168
|
+
width: "100%",
|
|
169
|
+
backgroundColor: tabBackgroundColor,
|
|
170
|
+
color: tabButtonColor,
|
|
171
|
+
}, "aria-label": text, children: text }) }, name));
|
|
172
|
+
}) }) }) }), _jsx("li", { style: { position: "absolute", bottom: "20px" }, children: _jsx("ul", { children: configuration.links?.map((link) => (_jsx(SideNavMenuItem, { href: link.link,
|
|
173
|
+
// eslint-disable-next-line
|
|
174
|
+
// @ts-ignore
|
|
175
|
+
target: "_blank", children: _jsx("span", { className: "cds--link", children: link.label }) }, link.label.split(" ").join("-").toLowerCase()))) }) })] }) }) }), content, _jsx("div", { style: { display: activeTab === "feedback" ? "block" : "none" }, children: _jsx(Feedback, { audience: audience, theme: theme, mixpanelTrack: mixpanelTrack, setHeader: (head) => {
|
|
176
|
+
header = head;
|
|
177
|
+
}, salesPlanType: organization?.salesPlan?.type ?? "" }) })] }) }), persona.complete && activeTab === "recommendations" && (_jsx(StyledModalFooter, { "$hcTheme": theme, children: _jsx("div", { children: _jsx(Button, { kind: "tertiary", renderIcon: Undo, onClick: onRequestRetakeSurvey, size: "sm", style: {
|
|
178
|
+
maxWidth: "200px",
|
|
179
|
+
height: "32px",
|
|
180
|
+
alignItems: "center",
|
|
181
|
+
paddingTop: "0px",
|
|
182
|
+
paddingBottom: "0px",
|
|
183
|
+
marginRight: "6px",
|
|
184
|
+
}, children: "Retake the survey" }) }) }))] }));
|
|
218
185
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { StaticNotification, Button, Checkbox, FileUploaderDropContainer, FileUploaderItem, InlineLoading, RadioTile, Stack, TextArea, Tooltip, } from "@carbon/react";
|
|
2
3
|
import React, { useState } from "react";
|
|
3
4
|
import { Idea, Debug, Information, Chat } from "@carbon/react/icons";
|
|
@@ -88,100 +89,51 @@ export const Feedback = (props) => {
|
|
|
88
89
|
const orgIsEnterPriseOrPaidCC = props.salesPlanType === "enterprise" || props.salesPlanType === "paid-cc";
|
|
89
90
|
if (submitted) {
|
|
90
91
|
props.setHeader("");
|
|
91
|
-
return (
|
|
92
|
+
return (_jsx("div", { style: {
|
|
92
93
|
height: "100%",
|
|
93
94
|
display: "flex",
|
|
94
95
|
justifyContent: "center",
|
|
95
96
|
alignItems: "center",
|
|
96
|
-
}
|
|
97
|
-
React.createElement("div", { style: {
|
|
97
|
+
}, children: _jsx("div", { style: {
|
|
98
98
|
height: "200px",
|
|
99
99
|
width: "450px",
|
|
100
|
-
} },
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
React.createElement("p", { style: { maxWidth: "400px" } }, orgIsEnterPriseOrPaidCC ? (React.createElement(React.Fragment, null, "Your feedback will be forwarded to your Customer Success Manager who will ensure that your inputs are addressed promptly.")) : (React.createElement(React.Fragment, null,
|
|
108
|
-
"Thanks for sharing your feedback. ",
|
|
109
|
-
React.createElement("br", null),
|
|
110
|
-
"We use suggestions like yours to improve our service."))),
|
|
111
|
-
React.createElement(Stack, { gap: 3 },
|
|
112
|
-
React.createElement(Button, { id: "additional-feedback-button", size: "md", onClick: () => {
|
|
113
|
-
setSuggestion("");
|
|
114
|
-
setFile(undefined);
|
|
115
|
-
setSelectedType(ReportType.Feedback);
|
|
116
|
-
setAllowContact(false);
|
|
117
|
-
setSubmitted(false);
|
|
118
|
-
} }, "Share additional feedback"))))))));
|
|
100
|
+
}, children: _jsxs(Stack, { orientation: "horizontal", gap: 6, children: [_jsx("svg", { width: "62", height: "54", viewBox: "0 0 62 54", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M60.7573 6.91209L56.137 2.22698C55.3173 1.39576 54.2441 0.972656 53.1711 0.972656C52.0981 0.972656 51.0248 1.39576 50.2051 2.22698L20.635 32.2572L11.7819 23.2496C10.9622 22.4184 9.88904 21.9953 8.81588 21.9953C7.74272 21.9953 6.66971 22.4032 5.85001 23.2496L1.22972 27.9347C-0.409906 29.5972 -0.409906 32.3025 1.22972 33.9649L20.65 53.6726L60.7723 12.9425C62.4117 11.2798 62.4117 8.57471 60.7573 6.91209Z", fill: "#FC5D0D" }) }), _jsxs(Stack, { gap: 3, children: [_jsx("h2", { children: "Feedback submitted successfully" }), _jsxs(Stack, { gap: 6, children: [_jsx("p", { style: { maxWidth: "400px" }, children: orgIsEnterPriseOrPaidCC ? (_jsx(_Fragment, { children: "Your feedback will be forwarded to your Customer Success Manager who will ensure that your inputs are addressed promptly." })) : (_jsxs(_Fragment, { children: ["Thanks for sharing your feedback. ", _jsx("br", {}), "We use suggestions like yours to improve our service."] })) }), _jsx(Stack, { gap: 3, children: _jsx(Button, { id: "additional-feedback-button", size: "md", onClick: () => {
|
|
101
|
+
setSuggestion("");
|
|
102
|
+
setFile(undefined);
|
|
103
|
+
setSelectedType(ReportType.Feedback);
|
|
104
|
+
setAllowContact(false);
|
|
105
|
+
setSubmitted(false);
|
|
106
|
+
}, children: "Share additional feedback" }) })] })] })] }) }) }));
|
|
119
107
|
}
|
|
120
|
-
return (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}, value: suggestion }),
|
|
152
|
-
!orgIsEnterPriseOrPaidCC && (React.createElement(React.Fragment, null,
|
|
153
|
-
React.createElement("h5", null,
|
|
154
|
-
"Upload file (optional)",
|
|
155
|
-
React.createElement(Tooltip, { label: "Please be sure to redact any confidential information, such as intellectual property, addresses or account numbers before uploading files.",
|
|
156
|
-
// eslint-disable-next-line
|
|
157
|
-
// @ts-ignore
|
|
158
|
-
align: "bottom" },
|
|
159
|
-
React.createElement(Button, { kind: "ghost", "aria-label": "Information", renderIcon: Information, iconDescription: "Information", style: {
|
|
160
|
-
marginTop: "-10px",
|
|
161
|
-
backgroundColor: props.theme === "light" ? "#FFFFFF" : "#161616",
|
|
162
|
-
color: props.theme === "light" ? "#161616" : "#F4F4F4",
|
|
163
|
-
paddingLeft: "0px",
|
|
164
|
-
} }))),
|
|
165
|
-
React.createElement("p", { className: "cds--label-description", style: { marginTop: "-24px" } }, "Max. file size is 5MB. Supported file types are .jpg and .png."))),
|
|
166
|
-
!orgIsEnterPriseOrPaidCC &&
|
|
167
|
-
(() => {
|
|
168
|
-
if (file !== undefined) {
|
|
169
|
-
return (React.createElement(FileUploaderItem, { name: file.name, iconDescription: "Delete file", invalid: (() => {
|
|
170
|
-
return file.size > 5000000;
|
|
171
|
-
})(), status: "edit", errorSubject: "File exceeds size limit.", size: "lg", style: { marginTop: "-32px", maxWidth: "100%" }, onDelete: () => {
|
|
172
|
-
setFile(undefined);
|
|
173
|
-
} }));
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
return (React.createElement(FileUploaderDropContainer, { labelText: "Drag and drop file here or click to upload", multiple: false, accept: ["image/jpeg", "image/jpg", "image/png"], onAddFiles: (_evt, { addedFiles }) => {
|
|
177
|
-
setFile(addedFiles[0]);
|
|
178
|
-
}, style: { marginTop: "-32px", maxWidth: "100%" } }));
|
|
179
|
-
}
|
|
180
|
-
})(),
|
|
181
|
-
!orgIsEnterPriseOrPaidCC && (React.createElement("div", null,
|
|
182
|
-
React.createElement(Checkbox, { id: "allow-contact", labelText: "Camunda may contact me about my feedback", checked: allowContact, onChange: () => {
|
|
183
|
-
setAllowContact(!allowContact);
|
|
184
|
-
} }))),
|
|
185
|
-
React.createElement("div", null,
|
|
186
|
-
React.createElement("div", null, isDoingAsyncWork ? (React.createElement(InlineLoading, { description: "Submitting feedback...", status: "active", style: { marginLeft: "1rem" } })) : (React.createElement(Button, { kind: "primary", disabled: suggestion.trim().length == 0, onClick: submit }, "Submit feedback")))))))));
|
|
108
|
+
return (_jsx("div", { children: _jsxs(Stack, { gap: 6, children: [_jsx("p", { children: "We actively use this information to fix problems and improve your experience with our products." }), !orgIsEnterPriseOrPaidCC && (_jsxs("div", { children: [_jsx("h5", { style: { marginBottom: "12px" }, children: "What type of feedback would you like to share?" }), _jsxs("div", { style: {
|
|
109
|
+
display: "flex",
|
|
110
|
+
justifyContent: "space-between",
|
|
111
|
+
columnGap: "12px",
|
|
112
|
+
}, children: [_jsx("div", { style: { flexGrow: "1" }, children: _jsx(StyledRadioTile, { checked: selectedType === ReportType.Feedback, onChange: (value) => setSelectedType(value), value: ReportType.Feedback, children: _jsxs(Stack, { children: [_jsx(Chat, { size: "40" }), _jsx("p", { children: "General feedback" })] }) }) }), _jsx("div", { style: { flexGrow: "1" }, children: _jsx(StyledRadioTile, { checked: selectedType === ReportType.Idea, onChange: (value) => setSelectedType(value), value: ReportType.Idea, children: _jsxs(Stack, { children: [_jsx(Idea, { size: "40" }), _jsx("p", { children: "Suggest an idea" })] }) }) }), _jsx("div", { style: { flexGrow: "1" }, children: _jsx(StyledRadioTile, { checked: selectedType === ReportType.Bug, onChange: (value) => setSelectedType(value), value: ReportType.Bug, children: _jsxs(Stack, { children: [_jsx(Debug, { size: "40" }), _jsx("p", { children: "Report a bug" })] }) }) })] })] })), _jsx("div", { children: _jsxs(Stack, { children: [!orgIsEnterPriseOrPaidCC && (_jsx("h5", { style: { marginBottom: "-16px" }, children: content.title })), orgIsEnterPriseOrPaidCC && (_jsx(StaticNotification, { lowContrast: true, kind: "info", title: "If you are looking to get technical support, please use our Jira support system.", style: { maxWidth: "100%" }, actionButtonLabel: "Open a ticket", onActionButtonClick: () => window.open("https://jira.camunda.com/projects/SUPPORT/queues", "_blank"), "aria-describedby": "help-center-feedback-notification", titleId: "help-center-feedback-notification" })), _jsx(TextArea, { labelText: "", id: "feedback-text", placeholder: content.placeholder, rows: 4, onChange: (event) => {
|
|
113
|
+
setSuggestion(event.target.value);
|
|
114
|
+
}, value: suggestion }), !orgIsEnterPriseOrPaidCC && (_jsxs(_Fragment, { children: [_jsxs("h5", { children: ["Upload file (optional)", _jsx(Tooltip, { label: "Please be sure to redact any confidential information, such as intellectual property, addresses or account numbers before uploading files.",
|
|
115
|
+
// eslint-disable-next-line
|
|
116
|
+
// @ts-ignore
|
|
117
|
+
align: "bottom", children: _jsx(Button, { kind: "ghost", "aria-label": "Information", renderIcon: Information, iconDescription: "Information", style: {
|
|
118
|
+
marginTop: "-10px",
|
|
119
|
+
backgroundColor: props.theme === "light" ? "#FFFFFF" : "#161616",
|
|
120
|
+
color: props.theme === "light" ? "#161616" : "#F4F4F4",
|
|
121
|
+
paddingLeft: "0px",
|
|
122
|
+
} }) })] }), _jsx("p", { className: "cds--label-description", style: { marginTop: "-24px" }, children: "Max. file size is 5MB. Supported file types are .jpg and .png." })] })), !orgIsEnterPriseOrPaidCC &&
|
|
123
|
+
(() => {
|
|
124
|
+
if (file !== undefined) {
|
|
125
|
+
return (_jsx(FileUploaderItem, { name: file.name, iconDescription: "Delete file", invalid: (() => {
|
|
126
|
+
return file.size > 5000000;
|
|
127
|
+
})(), status: "edit", errorSubject: "File exceeds size limit.", size: "lg", style: { marginTop: "-32px", maxWidth: "100%" }, onDelete: () => {
|
|
128
|
+
setFile(undefined);
|
|
129
|
+
} }));
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return (_jsx(FileUploaderDropContainer, { labelText: "Drag and drop file here or click to upload", multiple: false, accept: ["image/jpeg", "image/jpg", "image/png"], onAddFiles: (_evt, { addedFiles }) => {
|
|
133
|
+
setFile(addedFiles[0]);
|
|
134
|
+
}, style: { marginTop: "-32px", maxWidth: "100%" } }));
|
|
135
|
+
}
|
|
136
|
+
})(), !orgIsEnterPriseOrPaidCC && (_jsx("div", { children: _jsx(Checkbox, { id: "allow-contact", labelText: "Camunda may contact me about my feedback", checked: allowContact, onChange: () => {
|
|
137
|
+
setAllowContact(!allowContact);
|
|
138
|
+
} }) })), _jsx("div", { children: _jsx("div", { children: isDoingAsyncWork ? (_jsx(InlineLoading, { description: "Submitting feedback...", status: "active", style: { marginLeft: "1rem" } })) : (_jsx(Button, { kind: "primary", disabled: suggestion.trim().length == 0, onClick: submit, children: "Submit feedback" })) }) })] }) })] }) }));
|
|
187
139
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { ActionableNotification, Stack } from "@carbon/react";
|
|
2
|
-
import React from "react";
|
|
3
3
|
import { HelpCenterTile } from "../tile";
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
export const TAB_TYPES = {
|
|
@@ -13,8 +13,5 @@ export const TileWrapper = styled.div `
|
|
|
13
13
|
gap: var(--cds-spacing-05);
|
|
14
14
|
`;
|
|
15
15
|
export const TabContent = ({ onboarding, type, origin, tiles, mixpanelTrack }) => {
|
|
16
|
-
return (
|
|
17
|
-
React.createElement(Stack, null,
|
|
18
|
-
onboarding && onboarding?.complete !== true && (React.createElement(ActionableNotification, { kind: "info", inline: true, lowContrast: true, hideCloseButton: true, style: { maxWidth: "100%", marginBottom: "1rem" }, actionButtonLabel: "Resume survey", onActionButtonClick: onboarding.resumeSurvey, title: "Complete the new user survey to see more recommendations", subtitle: "" })),
|
|
19
|
-
React.createElement(TileWrapper, null, tiles.map((tile) => (React.createElement(HelpCenterTile, { origin: origin, tabType: type, tile: tile, mixpanelTrack: mixpanelTrack, key: tile.card_id })))))));
|
|
16
|
+
return (_jsx("div", { children: _jsxs(Stack, { children: [onboarding && onboarding?.complete !== true && (_jsx(ActionableNotification, { kind: "info", inline: true, lowContrast: true, hideCloseButton: true, style: { maxWidth: "100%", marginBottom: "1rem" }, actionButtonLabel: "Resume survey", onActionButtonClick: onboarding.resumeSurvey, title: "Complete the new user survey to see more recommendations", subtitle: "" })), _jsx(TileWrapper, { children: tiles.map((tile) => (_jsx(HelpCenterTile, { origin: origin, tabType: type, tile: tile, mixpanelTrack: mixpanelTrack }, tile.card_id))) })] }) }));
|
|
20
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { TileWrapper } from "./tabContent";
|
|
3
3
|
import styled from "styled-components";
|
|
4
4
|
import { SkeletonPlaceholder } from "@carbon/react";
|
|
@@ -16,7 +16,6 @@ const TileSkeleton = styled(SkeletonPlaceholder) `
|
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 100%;
|
|
18
18
|
`;
|
|
19
|
-
export const TabContentSkeleton = () => (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
React.createElement(TileSkeleton, null))))));
|
|
19
|
+
export const TabContentSkeleton = () => (_jsx(TileWrapper, { children: Array(6)
|
|
20
|
+
.fill("_")
|
|
21
|
+
.map((_, i) => (_jsx(TileOuter, { children: _jsx(TileSkeleton, {}) }, `tile-skeleton-${i}-${Math.random() * 10000}`))) }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
1
2
|
import { Button, Stack, Tag, Tile } from "@carbon/react";
|
|
2
3
|
import { ArrowRight } from "@carbon/react/icons";
|
|
3
|
-
import React from "react";
|
|
4
4
|
import { TAB_TYPES } from "./tabs/tabContent";
|
|
5
5
|
import ReactMarkdown from "react-markdown";
|
|
6
6
|
import styled from "styled-components";
|
|
@@ -27,31 +27,22 @@ const TileWrapper = styled.div `
|
|
|
27
27
|
export const HelpCenterTile = ({ tile, tabType, origin, mixpanelTrack }) => {
|
|
28
28
|
const { title, description, timeToComplete, cta, image, link, card_id } = tile;
|
|
29
29
|
if (tabType === TAB_TYPES.Grid) {
|
|
30
|
-
return (
|
|
31
|
-
React.createElement(Tile, { style: {
|
|
30
|
+
return (_jsx(TileWrapper, { "$width": 300, children: _jsxs(Tile, { style: {
|
|
32
31
|
justifySelf: "start",
|
|
33
|
-
}, className: "cds--layer-two" },
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
})()))),
|
|
46
|
-
React.createElement(Button, { size: "sm", as: "a", href: link, target: "_blank", onClick: () => {
|
|
47
|
-
mixpanelTrack?.(`helpcenter:click`, {
|
|
48
|
-
from: origin,
|
|
49
|
-
to: card_id,
|
|
50
|
-
});
|
|
51
|
-
}, renderIcon: ArrowRight, kind: "tertiary", className: "cds--switcher__item", style: { alignSelf: "end", marginTop: "10px", maxWidth: "100%" } }, cta))));
|
|
32
|
+
}, className: "cds--layer-two", children: [_jsxs(Stack, { orientation: "vertical", gap: 3, children: [_jsx("img", { src: image, alt: title }), _jsxs(TileStack, { children: [_jsx(TileHeading, { children: title }), _jsx(TileDescription, { children: description }), _jsx("div", { style: { marginLeft: "-4px", marginTop: "12px" }, children: (() => {
|
|
33
|
+
let content = _jsx("div", { style: { height: "32px" } });
|
|
34
|
+
if (timeToComplete) {
|
|
35
|
+
content = (_jsx(Tag, { type: "warm-gray", size: "sm", title: timeToComplete, children: timeToComplete }));
|
|
36
|
+
}
|
|
37
|
+
return content;
|
|
38
|
+
})() })] })] }), _jsx(Button, { size: "sm", as: "a", href: link, target: "_blank", onClick: () => {
|
|
39
|
+
mixpanelTrack?.(`helpcenter:click`, {
|
|
40
|
+
from: origin,
|
|
41
|
+
to: card_id,
|
|
42
|
+
});
|
|
43
|
+
}, renderIcon: ArrowRight, kind: "tertiary", className: "cds--switcher__item", style: { alignSelf: "end", marginTop: "10px", maxWidth: "100%" }, children: cta })] }) }));
|
|
52
44
|
}
|
|
53
|
-
return (
|
|
54
|
-
React.createElement(Tile, { style: {
|
|
45
|
+
return (_jsx(TileWrapper, { "$width": 214, children: _jsx(Tile, { style: {
|
|
55
46
|
justifySelf: "start",
|
|
56
47
|
height: "initial",
|
|
57
48
|
}, className: "cds--layer-two", onClick: () => {
|
|
@@ -59,10 +50,5 @@ export const HelpCenterTile = ({ tile, tabType, origin, mixpanelTrack }) => {
|
|
|
59
50
|
to: card_id,
|
|
60
51
|
from: origin,
|
|
61
52
|
});
|
|
62
|
-
} },
|
|
63
|
-
React.createElement(Stack, { orientation: "vertical", gap: 3 },
|
|
64
|
-
React.createElement("img", { src: image, alt: title }),
|
|
65
|
-
React.createElement(Stack, null,
|
|
66
|
-
React.createElement("h5", null, title),
|
|
67
|
-
React.createElement(ReactMarkdown, { linkTarget: "_blank" }, description))))));
|
|
53
|
+
}, children: _jsxs(Stack, { orientation: "vertical", gap: 3, children: [_jsx("img", { src: image, alt: title }), _jsxs(Stack, { children: [_jsx("h5", { children: title }), _jsx(ReactMarkdown, { linkTarget: "_blank", children: description })] })] }) }) }));
|
|
68
54
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { HeaderGlobalAction } from "@carbon/react";
|
|
3
3
|
import { Help } from "@carbon/react/icons";
|
|
4
|
-
export const InfoButton = ({ onClick }) => (
|
|
5
|
-
React.createElement(Help, { size: 20 })));
|
|
4
|
+
export const InfoButton = ({ onClick }) => (_jsx(HeaderGlobalAction, { "aria-label": "Open Help Center", tooltipAlignment: "center", onClick: onClick, children: _jsx(Help, { size: 20 }) }));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
1
2
|
import { HeaderGlobalAction } from "@carbon/react";
|
|
2
|
-
import React from "react";
|
|
3
3
|
const C3ActionButtons = ({ elements, }) => {
|
|
4
|
-
return (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
return (_jsx(_Fragment, { children: elements.map((actionButton) => {
|
|
5
|
+
if ("element" in actionButton) {
|
|
6
|
+
return actionButton.element;
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
return (_jsx(HeaderGlobalAction, { "aria-label": `Open ${actionButton.label}`, onClick: actionButton.action, isActive: false, children: actionButton.icon }, `${actionButton.label}-key`));
|
|
10
|
+
}
|
|
11
|
+
}) }));
|
|
12
12
|
};
|
|
13
13
|
export default C3ActionButtons;
|