@activecollab/components 2.0.417 → 2.0.418

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.
@@ -0,0 +1,252 @@
1
+ import React, { useCallback, useState } from "react";
2
+ import styled from "styled-components";
3
+ import { screenBelow } from "../../components/BreakPoints";
4
+ import { Button } from "../../components/Button";
5
+ import { Dialog } from "../../components/Dialog";
6
+ import { IconButton } from "../../components/IconButton";
7
+ import { ThumbUpOutlineIcon } from "../../components/Icons";
8
+ import { Label } from "../../components/Label";
9
+ import { Textarea } from "../../components/Textarea";
10
+ import { Tooltip } from "../../components/Tooltip";
11
+ import { Body2 } from "../../components/Typography";
12
+ import { Typography } from "../../components/Typography/Typography";
13
+
14
+ /**
15
+ * MessageFeedback — the reusable "Was this helpful?" flow, as a Presentation
16
+ * mock.
17
+ *
18
+ * It is built only from design-system parts and owns the whole flow, so any
19
+ * content surface (the message dialog, a help article, a settings panel) can
20
+ * drop it in and get the same behaviour:
21
+ *
22
+ * 1. Prompt — an inline "Was this helpful?" row with a thumb up / down.
23
+ * 2. Details — a centred dialog: option chips for the chosen sentiment,
24
+ * plus an optional free-text comment. Submit or Cancel.
25
+ * 3. Thank you — a short confirmation, then the prompt shows a quiet
26
+ * "Thanks for your feedback!".
27
+ *
28
+ * The vote is recorded the moment a thumb is pressed (`onVote`), so a user who
29
+ * cancels the details step still leaves a valid vote — the same contract the
30
+ * trial Feedback flow uses. The details are reported on Submit (`onSubmit`).
31
+ *
32
+ * In the product this lives in application code; the presentation ships this
33
+ * demo copy so the stories need no app imports.
34
+ */
35
+
36
+ /* ---- public types & default option catalogs ------------------------ */
37
+
38
+ /* The options rate the one piece of content, not the whole product. Each
39
+ negative option maps to an action a writer can take. Override per surface
40
+ through the component props. */
41
+ export const POSITIVE_FEEDBACK_OPTIONS = [{
42
+ id: "clear",
43
+ label: "Clear and easy to understand"
44
+ }, {
45
+ id: "answered",
46
+ label: "Answered my question"
47
+ }, {
48
+ id: "right-detail",
49
+ label: "Right amount of detail"
50
+ }, {
51
+ id: "helped-use",
52
+ label: "Helped me use the feature"
53
+ }, {
54
+ id: "good-examples",
55
+ label: "Good examples or screenshots"
56
+ }, {
57
+ id: "other",
58
+ label: "Other"
59
+ }];
60
+ export const NEGATIVE_FEEDBACK_OPTIONS = [{
61
+ id: "not-answered",
62
+ label: "Did not answer my question"
63
+ }, {
64
+ id: "confusing",
65
+ label: "Confusing or hard to follow"
66
+ }, {
67
+ id: "too-long",
68
+ label: "Too long"
69
+ }, {
70
+ id: "not-enough-detail",
71
+ label: "Not enough detail"
72
+ }, {
73
+ id: "out-of-date",
74
+ label: "Out of date or incorrect"
75
+ }, {
76
+ id: "wrong-plan-role",
77
+ label: "Wrong for my plan or role"
78
+ }, {
79
+ id: "not-found",
80
+ label: "I could not find what I needed"
81
+ }, {
82
+ id: "broken",
83
+ label: "Something is broken"
84
+ }, {
85
+ id: "other",
86
+ label: "Other"
87
+ }];
88
+
89
+ /* ---- the inline prompt row ----------------------------------------- */
90
+
91
+ /* Down-vote reuses the up icon, rotated (the DS set only ships
92
+ ThumbUpOutlineIcon). */
93
+ const StyledPrompt = styled.div.withConfig({
94
+ displayName: "MessageFeedback__StyledPrompt",
95
+ componentId: "sc-1i96o75-0"
96
+ })(["display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 24px 28px;", "{padding:4px 24px 24px;}.fb-question{margin-right:4px;}.fb-btn svg{width:18px;height:18px;}.fb-down svg{transform:rotate(180deg);}"], screenBelow.sm);
97
+
98
+ /* ---- the details dialog -------------------------------------------- */
99
+
100
+ const StyledForm = styled.div.withConfig({
101
+ displayName: "MessageFeedback__StyledForm",
102
+ componentId: "sc-1i96o75-1"
103
+ })(["display:flex;flex-direction:column;gap:20px;.fb-field{display:flex;flex-direction:column;gap:8px;}.fb-chips{display:flex;flex-wrap:wrap;gap:8px;}.c-textarea{width:100%;box-sizing:border-box;}"]);
104
+
105
+ /* The option chip — a pill that toggles to the theme primary tint when
106
+ selected. Translated from the trial Feedback chip into styled-components
107
+ (runtime tw- classes do not work in the presentation storybook). The label
108
+ text is a DS Body2 so it carries the correct font. */
109
+ const StyledChip = styled.button.withConfig({
110
+ displayName: "MessageFeedback__StyledChip",
111
+ componentId: "sc-1i96o75-2"
112
+ })(["display:inline-flex;align-items:center;box-sizing:border-box;margin:0;padding:3px 8px 4px;border:1px solid ", ";border-radius:4px;background-color:", ";cursor:pointer;transition:border-color 120ms ease,background-color 120ms ease;&:hover{border-color:var(--color-primary);}"], _ref => {
113
+ let $selected = _ref.$selected;
114
+ return $selected ? "var(--color-primary)" : "var(--color-theme-500)";
115
+ }, _ref2 => {
116
+ let $selected = _ref2.$selected;
117
+ return $selected ? "var(--color-primary-300)" : "transparent";
118
+ });
119
+ const FeedbackChip = _ref3 => {
120
+ let option = _ref3.option,
121
+ selected = _ref3.selected,
122
+ onToggle = _ref3.onToggle;
123
+ return /*#__PURE__*/React.createElement(StyledChip, {
124
+ type: "button",
125
+ $selected: selected,
126
+ "aria-pressed": selected,
127
+ onClick: () => onToggle(option.id)
128
+ }, /*#__PURE__*/React.createElement(Typography, {
129
+ variant: "Body 2",
130
+ as: "span"
131
+ }, option.label));
132
+ };
133
+ const StyledActions = styled.div.withConfig({
134
+ displayName: "MessageFeedback__StyledActions",
135
+ componentId: "sc-1i96o75-3"
136
+ })(["display:flex;gap:12px;"]);
137
+
138
+ /* ---- the component ------------------------------------------------- */
139
+
140
+ export const MessageFeedback = _ref4 => {
141
+ let _ref4$question = _ref4.question,
142
+ question = _ref4$question === void 0 ? "Was this helpful?" : _ref4$question,
143
+ _ref4$positiveTitle = _ref4.positiveTitle,
144
+ positiveTitle = _ref4$positiveTitle === void 0 ? "What was good?" : _ref4$positiveTitle,
145
+ _ref4$negativeTitle = _ref4.negativeTitle,
146
+ negativeTitle = _ref4$negativeTitle === void 0 ? "What went wrong?" : _ref4$negativeTitle,
147
+ _ref4$positiveOptions = _ref4.positiveOptions,
148
+ positiveOptions = _ref4$positiveOptions === void 0 ? POSITIVE_FEEDBACK_OPTIONS : _ref4$positiveOptions,
149
+ _ref4$negativeOptions = _ref4.negativeOptions,
150
+ negativeOptions = _ref4$negativeOptions === void 0 ? NEGATIVE_FEEDBACK_OPTIONS : _ref4$negativeOptions,
151
+ onVote = _ref4.onVote,
152
+ onSubmit = _ref4.onSubmit;
153
+ const _useState = useState(null),
154
+ sentiment = _useState[0],
155
+ setSentiment = _useState[1];
156
+ const _useState2 = useState("closed"),
157
+ stage = _useState2[0],
158
+ setStage = _useState2[1];
159
+ const _useState3 = useState([]),
160
+ selected = _useState3[0],
161
+ setSelected = _useState3[1];
162
+ const _useState4 = useState(""),
163
+ comment = _useState4[0],
164
+ setComment = _useState4[1];
165
+ const _useState5 = useState(false),
166
+ done = _useState5[0],
167
+ setDone = _useState5[1];
168
+ const vote = useCallback(value => {
169
+ setSentiment(value);
170
+ setSelected([]);
171
+ setComment("");
172
+ onVote == null || onVote(value);
173
+ setStage("details");
174
+ }, [onVote]);
175
+ const toggleOption = useCallback(id => {
176
+ setSelected(current => current.includes(id) ? current.filter(one => one !== id) : [...current, id]);
177
+ }, []);
178
+ const submit = useCallback(() => {
179
+ if (sentiment) {
180
+ onSubmit == null || onSubmit({
181
+ sentiment,
182
+ options: selected,
183
+ comment: comment.trim()
184
+ });
185
+ }
186
+ setStage("closed");
187
+ setDone(true);
188
+ }, [sentiment, selected, comment, onSubmit]);
189
+
190
+ /* Cancel keeps the vote (already sent on the thumb press) and closes. */
191
+ const finish = useCallback(() => {
192
+ setStage("closed");
193
+ setDone(true);
194
+ }, []);
195
+ const isPositive = sentiment === "up";
196
+ const options = isPositive ? positiveOptions : negativeOptions;
197
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StyledPrompt, null, done ? /*#__PURE__*/React.createElement(Body2, {
198
+ color: "secondary"
199
+ }, "Thank you for the feedback!") : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Body2, {
200
+ color: "secondary",
201
+ className: "fb-question"
202
+ }, question), /*#__PURE__*/React.createElement(Tooltip, {
203
+ title: "Yes, helpful"
204
+ }, /*#__PURE__*/React.createElement(IconButton, {
205
+ type: "button",
206
+ variant: "text gray",
207
+ className: "fb-btn",
208
+ "aria-label": "Yes, helpful",
209
+ onClick: () => vote("up")
210
+ }, /*#__PURE__*/React.createElement(ThumbUpOutlineIcon, null))), /*#__PURE__*/React.createElement(Tooltip, {
211
+ title: "No, not helpful"
212
+ }, /*#__PURE__*/React.createElement(IconButton, {
213
+ type: "button",
214
+ variant: "text gray",
215
+ className: "fb-btn fb-down",
216
+ "aria-label": "No, not helpful",
217
+ onClick: () => vote("down")
218
+ }, /*#__PURE__*/React.createElement(ThumbUpOutlineIcon, null))))), /*#__PURE__*/React.createElement(Dialog, {
219
+ open: stage !== "closed",
220
+ onClose: finish,
221
+ enableBackgroundClick: true
222
+ }, stage === "details" ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dialog.Title, null, isPositive ? positiveTitle : negativeTitle), /*#__PURE__*/React.createElement(Dialog.ContentDivider, null), /*#__PURE__*/React.createElement(Dialog.Content, null, /*#__PURE__*/React.createElement(StyledForm, null, /*#__PURE__*/React.createElement("div", {
223
+ className: "fb-field"
224
+ }, /*#__PURE__*/React.createElement(Label, null, "Select all that apply"), /*#__PURE__*/React.createElement("div", {
225
+ className: "fb-chips"
226
+ }, options.map(option => /*#__PURE__*/React.createElement(FeedbackChip, {
227
+ key: option.id,
228
+ option: option,
229
+ selected: selected.includes(option.id),
230
+ onToggle: toggleOption
231
+ })))), /*#__PURE__*/React.createElement("div", {
232
+ className: "fb-field"
233
+ }, /*#__PURE__*/React.createElement(Label, {
234
+ htmlFor: "fb-comment"
235
+ }, "Tell us more (optional)"), /*#__PURE__*/React.createElement(Textarea, {
236
+ id: "fb-comment",
237
+ value: comment,
238
+ placeholder: isPositive ? "What made this useful?" : "What would have helped?",
239
+ onChange: event => setComment(event.target.value)
240
+ })))), /*#__PURE__*/React.createElement(Dialog.ContentDivider, null), /*#__PURE__*/React.createElement(Dialog.Actions, null, /*#__PURE__*/React.createElement(StyledActions, null, /*#__PURE__*/React.createElement(Button, {
241
+ variant: "primary",
242
+ size: "small",
243
+ type: "button",
244
+ onClick: submit
245
+ }, "Submit"), /*#__PURE__*/React.createElement(Button, {
246
+ variant: "secondary",
247
+ size: "small",
248
+ type: "button",
249
+ onClick: finish
250
+ }, "Cancel")))) : null));
251
+ };
252
+ //# sourceMappingURL=MessageFeedback.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageFeedback.js","names":["React","useCallback","useState","styled","screenBelow","Button","Dialog","IconButton","ThumbUpOutlineIcon","Label","Textarea","Tooltip","Body2","Typography","POSITIVE_FEEDBACK_OPTIONS","id","label","NEGATIVE_FEEDBACK_OPTIONS","StyledPrompt","div","withConfig","displayName","componentId","sm","StyledForm","StyledChip","button","_ref","$selected","_ref2","FeedbackChip","_ref3","option","selected","onToggle","createElement","type","onClick","variant","as","StyledActions","MessageFeedback","_ref4","_ref4$question","question","_ref4$positiveTitle","positiveTitle","_ref4$negativeTitle","negativeTitle","_ref4$positiveOptions","positiveOptions","_ref4$negativeOptions","negativeOptions","onVote","onSubmit","_useState","sentiment","setSentiment","_useState2","stage","setStage","_useState3","setSelected","_useState4","comment","setComment","_useState5","done","setDone","vote","value","toggleOption","current","includes","filter","one","submit","options","trim","finish","isPositive","Fragment","color","className","title","open","onClose","enableBackgroundClick","Title","ContentDivider","Content","map","key","htmlFor","placeholder","onChange","event","target","Actions","size"],"sources":["../../../../src/presentation/shared/MessageFeedback.tsx"],"sourcesContent":["import React, { ReactElement, ReactNode, useCallback, useState } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { screenBelow } from \"../../components/BreakPoints\";\nimport { Button } from \"../../components/Button\";\nimport { Dialog } from \"../../components/Dialog\";\nimport { IconButton } from \"../../components/IconButton\";\nimport { ThumbUpOutlineIcon } from \"../../components/Icons\";\nimport { Label } from \"../../components/Label\";\nimport { Textarea } from \"../../components/Textarea\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Body2 } from \"../../components/Typography\";\nimport { Typography } from \"../../components/Typography/Typography\";\n\n/**\n * MessageFeedback — the reusable \"Was this helpful?\" flow, as a Presentation\n * mock.\n *\n * It is built only from design-system parts and owns the whole flow, so any\n * content surface (the message dialog, a help article, a settings panel) can\n * drop it in and get the same behaviour:\n *\n * 1. Prompt — an inline \"Was this helpful?\" row with a thumb up / down.\n * 2. Details — a centred dialog: option chips for the chosen sentiment,\n * plus an optional free-text comment. Submit or Cancel.\n * 3. Thank you — a short confirmation, then the prompt shows a quiet\n * \"Thanks for your feedback!\".\n *\n * The vote is recorded the moment a thumb is pressed (`onVote`), so a user who\n * cancels the details step still leaves a valid vote — the same contract the\n * trial Feedback flow uses. The details are reported on Submit (`onSubmit`).\n *\n * In the product this lives in application code; the presentation ships this\n * demo copy so the stories need no app imports.\n */\n\n/* ---- public types & default option catalogs ------------------------ */\n\nexport type FeedbackSentiment = \"up\" | \"down\";\n\nexport interface FeedbackOption {\n /** Stable id sent with the feedback record; not shown to the user. */\n id: string;\n /** The chip label the user sees. */\n label: string;\n}\n\nexport interface MessageFeedbackResult {\n sentiment: FeedbackSentiment;\n /** The ids of the chosen option chips. */\n options: string[];\n /** The free-text comment, trimmed; \"\" when left blank. */\n comment: string;\n}\n\n/* The options rate the one piece of content, not the whole product. Each\n negative option maps to an action a writer can take. Override per surface\n through the component props. */\nexport const POSITIVE_FEEDBACK_OPTIONS: FeedbackOption[] = [\n { id: \"clear\", label: \"Clear and easy to understand\" },\n { id: \"answered\", label: \"Answered my question\" },\n { id: \"right-detail\", label: \"Right amount of detail\" },\n { id: \"helped-use\", label: \"Helped me use the feature\" },\n { id: \"good-examples\", label: \"Good examples or screenshots\" },\n { id: \"other\", label: \"Other\" },\n];\n\nexport const NEGATIVE_FEEDBACK_OPTIONS: FeedbackOption[] = [\n { id: \"not-answered\", label: \"Did not answer my question\" },\n { id: \"confusing\", label: \"Confusing or hard to follow\" },\n { id: \"too-long\", label: \"Too long\" },\n { id: \"not-enough-detail\", label: \"Not enough detail\" },\n { id: \"out-of-date\", label: \"Out of date or incorrect\" },\n { id: \"wrong-plan-role\", label: \"Wrong for my plan or role\" },\n { id: \"not-found\", label: \"I could not find what I needed\" },\n { id: \"broken\", label: \"Something is broken\" },\n { id: \"other\", label: \"Other\" },\n];\n\n/* ---- the inline prompt row ----------------------------------------- */\n\n/* Down-vote reuses the up icon, rotated (the DS set only ships\n ThumbUpOutlineIcon). */\nconst StyledPrompt = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n padding: 8px 24px 28px;\n\n ${screenBelow.sm} {\n padding: 4px 24px 24px;\n }\n\n .fb-question {\n margin-right: 4px;\n }\n\n .fb-btn svg {\n width: 18px;\n height: 18px;\n }\n\n .fb-down svg {\n transform: rotate(180deg);\n }\n`;\n\n/* ---- the details dialog -------------------------------------------- */\n\nconst StyledForm = styled.div`\n display: flex;\n flex-direction: column;\n gap: 20px;\n\n .fb-field {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .fb-chips {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n\n /* DS Textarea is a fixed 360px; let it fill the dialog width instead. */\n .c-textarea {\n width: 100%;\n box-sizing: border-box;\n }\n`;\n\n/* The option chip — a pill that toggles to the theme primary tint when\n selected. Translated from the trial Feedback chip into styled-components\n (runtime tw- classes do not work in the presentation storybook). The label\n text is a DS Body2 so it carries the correct font. */\nconst StyledChip = styled.button<{ $selected: boolean }>`\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n margin: 0;\n padding: 3px 8px 4px;\n border: 1px solid\n ${({ $selected }) =>\n $selected ? \"var(--color-primary)\" : \"var(--color-theme-500)\"};\n border-radius: 4px;\n background-color: ${({ $selected }) =>\n $selected ? \"var(--color-primary-300)\" : \"transparent\"};\n cursor: pointer;\n transition: border-color 120ms ease, background-color 120ms ease;\n\n &:hover {\n border-color: var(--color-primary);\n }\n`;\n\nconst FeedbackChip = ({\n option,\n selected,\n onToggle,\n}: {\n option: FeedbackOption;\n selected: boolean;\n onToggle: (id: string) => void;\n}): ReactElement => (\n <StyledChip\n type=\"button\"\n $selected={selected}\n aria-pressed={selected}\n onClick={() => onToggle(option.id)}\n >\n <Typography variant=\"Body 2\" as=\"span\">\n {option.label}\n </Typography>\n </StyledChip>\n);\n\nconst StyledActions = styled.div`\n display: flex;\n gap: 12px;\n`;\n\n/* ---- the component ------------------------------------------------- */\n\ntype DialogStage = \"closed\" | \"details\";\n\nexport interface MessageFeedbackProps {\n /** The inline prompt copy. */\n question?: ReactNode;\n /** Details-dialog title for a thumb up / down. */\n positiveTitle?: string;\n negativeTitle?: string;\n /** Option catalogs; default to the content-feedback sets above. */\n positiveOptions?: FeedbackOption[];\n negativeOptions?: FeedbackOption[];\n /** Fired the moment a thumb is pressed (the vote itself). */\n onVote?: (sentiment: FeedbackSentiment) => void;\n /** Fired on Submit, with the chosen options and comment. */\n onSubmit?: (result: MessageFeedbackResult) => void;\n}\n\nexport const MessageFeedback = ({\n question = \"Was this helpful?\",\n positiveTitle = \"What was good?\",\n negativeTitle = \"What went wrong?\",\n positiveOptions = POSITIVE_FEEDBACK_OPTIONS,\n negativeOptions = NEGATIVE_FEEDBACK_OPTIONS,\n onVote,\n onSubmit,\n}: MessageFeedbackProps): ReactElement => {\n const [sentiment, setSentiment] = useState<FeedbackSentiment | null>(null);\n const [stage, setStage] = useState<DialogStage>(\"closed\");\n const [selected, setSelected] = useState<string[]>([]);\n const [comment, setComment] = useState(\"\");\n const [done, setDone] = useState(false);\n\n const vote = useCallback(\n (value: FeedbackSentiment) => {\n setSentiment(value);\n setSelected([]);\n setComment(\"\");\n onVote?.(value);\n setStage(\"details\");\n },\n [onVote]\n );\n\n const toggleOption = useCallback((id: string) => {\n setSelected((current) =>\n current.includes(id)\n ? current.filter((one) => one !== id)\n : [...current, id]\n );\n }, []);\n\n const submit = useCallback(() => {\n if (sentiment) {\n onSubmit?.({ sentiment, options: selected, comment: comment.trim() });\n }\n setStage(\"closed\");\n setDone(true);\n }, [sentiment, selected, comment, onSubmit]);\n\n /* Cancel keeps the vote (already sent on the thumb press) and closes. */\n const finish = useCallback(() => {\n setStage(\"closed\");\n setDone(true);\n }, []);\n\n const isPositive = sentiment === \"up\";\n const options = isPositive ? positiveOptions : negativeOptions;\n\n return (\n <>\n <StyledPrompt>\n {done ? (\n <Body2 color=\"secondary\">Thank you for the feedback!</Body2>\n ) : (\n <>\n <Body2 color=\"secondary\" className=\"fb-question\">\n {question}\n </Body2>\n <Tooltip title=\"Yes, helpful\">\n <IconButton\n type=\"button\"\n variant=\"text gray\"\n className=\"fb-btn\"\n aria-label=\"Yes, helpful\"\n onClick={() => vote(\"up\")}\n >\n <ThumbUpOutlineIcon />\n </IconButton>\n </Tooltip>\n <Tooltip title=\"No, not helpful\">\n <IconButton\n type=\"button\"\n variant=\"text gray\"\n className=\"fb-btn fb-down\"\n aria-label=\"No, not helpful\"\n onClick={() => vote(\"down\")}\n >\n <ThumbUpOutlineIcon />\n </IconButton>\n </Tooltip>\n </>\n )}\n </StyledPrompt>\n\n <Dialog open={stage !== \"closed\"} onClose={finish} enableBackgroundClick>\n {stage === \"details\" ? (\n <>\n <Dialog.Title>\n {isPositive ? positiveTitle : negativeTitle}\n </Dialog.Title>\n <Dialog.ContentDivider />\n <Dialog.Content>\n <StyledForm>\n <div className=\"fb-field\">\n <Label>Select all that apply</Label>\n <div className=\"fb-chips\">\n {options.map((option) => (\n <FeedbackChip\n key={option.id}\n option={option}\n selected={selected.includes(option.id)}\n onToggle={toggleOption}\n />\n ))}\n </div>\n </div>\n <div className=\"fb-field\">\n <Label htmlFor=\"fb-comment\">Tell us more (optional)</Label>\n <Textarea\n id=\"fb-comment\"\n value={comment}\n placeholder={\n isPositive\n ? \"What made this useful?\"\n : \"What would have helped?\"\n }\n onChange={(event) => setComment(event.target.value)}\n />\n </div>\n </StyledForm>\n </Dialog.Content>\n <Dialog.ContentDivider />\n <Dialog.Actions>\n <StyledActions>\n <Button\n variant=\"primary\"\n size=\"small\"\n type=\"button\"\n onClick={submit}\n >\n Submit\n </Button>\n <Button\n variant=\"secondary\"\n size=\"small\"\n type=\"button\"\n onClick={finish}\n >\n Cancel\n </Button>\n </StyledActions>\n </Dialog.Actions>\n </>\n ) : null}\n </Dialog>\n </>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAA6BC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAE7E,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SAASC,kBAAkB,QAAQ,wBAAwB;AAC3D,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,QAAQ,QAAQ,2BAA2B;AACpD,SAASC,OAAO,QAAQ,0BAA0B;AAClD,SAASC,KAAK,QAAQ,6BAA6B;AACnD,SAASC,UAAU,QAAQ,wCAAwC;;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAmBA;AACA;AACA;AACA,OAAO,MAAMC,yBAA2C,GAAG,CACzD;EAAEC,EAAE,EAAE,OAAO;EAAEC,KAAK,EAAE;AAA+B,CAAC,EACtD;EAAED,EAAE,EAAE,UAAU;EAAEC,KAAK,EAAE;AAAuB,CAAC,EACjD;EAAED,EAAE,EAAE,cAAc;EAAEC,KAAK,EAAE;AAAyB,CAAC,EACvD;EAAED,EAAE,EAAE,YAAY;EAAEC,KAAK,EAAE;AAA4B,CAAC,EACxD;EAAED,EAAE,EAAE,eAAe;EAAEC,KAAK,EAAE;AAA+B,CAAC,EAC9D;EAAED,EAAE,EAAE,OAAO;EAAE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AAE;IACvCmB,QAAQ,EAAEqC;EAAa,CACxB,CACF,CACE,CACF,CAAC,eACNvE,KAAA,CAAAmC,aAAA;IAAKgD,SAAS,EAAC;EAAU,gBACvBnF,KAAA,CAAAmC,aAAA,CAAC1B,KAAK;IAACoF,OAAO,EAAC;EAAY,GAAC,yBAA8B,CAAC,eAC3D7F,KAAA,CAAAmC,aAAA,CAACzB,QAAQ;IACPK,EAAE,EAAC,YAAY;IACfuD,KAAK,EAAEN,OAAQ;IACf8B,WAAW,EACTd,UAAU,GACN,wBAAwB,GACxB,yBACL;IACDe,QAAQ,EAAGC,KAAK,IAAK/B,UAAU,CAAC+B,KAAK,CAACC,MAAM,CAAC3B,KAAK;EAAE,CACrD,CACE,CACK,CACE,CAAC,eACjBtE,KAAA,CAAAmC,aAAA,CAAC7B,MAAM,CAACmF,cAAc,MAAE,CAAC,eACzBzF,KAAA,CAAAmC,aAAA,CAAC7B,MAAM,CAAC4F,OAAO,qBACblG,KAAA,CAAAmC,aAAA,CAACK,aAAa,qBACZxC,KAAA,CAAAmC,aAAA,CAAC9B,MAAM;IACLiC,OAAO,EAAC,SAAS;IACjB6D,IAAI,EAAC,OAAO;IACZ/D,IAAI,EAAC,QAAQ;IACbC,OAAO,EAAEuC;EAAO,GACjB,QAEO,CAAC,eACT5E,KAAA,CAAAmC,aAAA,CAAC9B,MAAM;IACLiC,OAAO,EAAC,WAAW;IACnB6D,IAAI,EAAC,OAAO;IACZ/D,IAAI,EAAC,QAAQ;IACbC,OAAO,EAAE0C;EAAO,GACjB,QAEO,CACK,CACD,CAChB,CAAC,GACD,IACE,CACR,CAAC;AAEP,CAAC","ignoreList":[]}
@@ -14,6 +14,8 @@ export type { PageHeaderProps, ProjectPageHeaderProps, TabHeaderProps, } from ".
14
14
  export { FloatingControls } from "./FloatingControls";
15
15
  export { MessageDialog, DocLinkContext, messageComponents, } from "./MessageDialog";
16
16
  export type { MessageDialogProps, MessageDialogSize, OpenArticleHandler, } from "./MessageDialog";
17
+ export { MessageFeedback, POSITIVE_FEEDBACK_OPTIONS, NEGATIVE_FEEDBACK_OPTIONS, } from "./MessageFeedback";
18
+ export type { MessageFeedbackProps, MessageFeedbackResult, FeedbackOption, FeedbackSentiment, } from "./MessageFeedback";
17
19
  export { HelpAndSupportMenu } from "./HelpAndSupportMenu";
18
20
  export type { HelpAndSupportMenuProps } from "./HelpAndSupportMenu";
19
21
  export { LinkingCommandsButton } from "./LinkingCommandsButton";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACzE,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACrE,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,aAAa,EACb,cAAc,EACd,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,YAAY,EAAE,kCAAkC,EAAE,MAAM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O,EACP,UAAU,GACX,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACzE,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACrE,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,aAAa,EACb,cAAc,EACd,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,GAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACpE,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AAoB,CAAC;AAChF,YAAY,EACV,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,OAAO,EACP,UAAU,GACX,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EACL,mBAAmB,EACnB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EACV,wBAAwB,EACxB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,uBAAuB,CAAC"}
@@ -11,6 +11,7 @@ export { PresentationShell, StyledPagePaper } from "./PresentationShell";
11
11
  export { PageHeader, ProjectPageHeader, TabHeader } from "./headers";
12
12
  export { FloatingControls } from "./FloatingControls";
13
13
  export { MessageDialog, DocLinkContext, messageComponents } from "./MessageDialog";
14
+ export { MessageFeedback, POSITIVE_FEEDBACK_OPTIONS, NEGATIVE_FEEDBACK_OPTIONS } from "./MessageFeedback";
14
15
  export { HelpAndSupportMenu } from "./HelpAndSupportMenu";
15
16
  export { LinkingCommandsButton } from "./LinkingCommandsButton";
16
17
  export { LinkBranchOrPullRequestDialog } from "./LinkBranchOrPullRequestDialog";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["MainLogo","RoundAvatar","PresentationShell","StyledPagePaper","PageHeader","ProjectPageHeader","TabHeader","FloatingControls","MessageDialog","DocLinkContext","messageComponents","HelpAndSupportMenu","LinkingCommandsButton","LinkBranchOrPullRequestDialog","ConnectRepositoryDialog","RepositorySelect","buildRepoOptions","CONNECTIONS","PROJECT_REPOSITORIES","CONNECTABLE_REPOSITORIES","WebhookLogsDialog","WEBHOOK_CONNECTIONS","WEBHOOK_REPOSITORIES","SourceCodeSection","IssueRow","CodeRow","Spine","HistoryDialog","CompletedHeader","SuggestSubtasksButton","TaskOptionsMenu","TaskListOptionsMenu","UserMenu","TwoFactorShield","BackupCodesDialogs","CreateLoginCodeDialogs","SettingsHeader","SettingsContent","StyledSettingRow","RowText","SettingRow","FeatureAvailability","DEFAULT_FEATURE_AVAILABILITY"],"sources":["../../../../src/presentation/shared/index.ts"],"sourcesContent":["/**\n * Shared building blocks for the Presentation mock-ups (`Presentation/*`\n * stories). The application shell, page headers, tab bar and small widgets are\n * defined once here and reused by the List view, Column view, Task sheet and\n * empty-page stories so the chrome stays identical and in one place.\n */\nexport * from \"./tokens\";\nexport { MainLogo } from \"./MainLogo\";\nexport { RoundAvatar } from \"./RoundAvatar\";\nexport { PresentationShell, StyledPagePaper } from \"./PresentationShell\";\nexport type { PresentationShellProps } from \"./PresentationShell\";\nexport { PageHeader, ProjectPageHeader, TabHeader } from \"./headers\";\nexport type {\n PageHeaderProps,\n ProjectPageHeaderProps,\n TabHeaderProps,\n} from \"./headers\";\nexport { FloatingControls } from \"./FloatingControls\";\nexport {\n MessageDialog,\n DocLinkContext,\n messageComponents,\n} from \"./MessageDialog\";\nexport type {\n MessageDialogProps,\n MessageDialogSize,\n OpenArticleHandler,\n} from \"./MessageDialog\";\nexport { HelpAndSupportMenu } from \"./HelpAndSupportMenu\";\nexport type { HelpAndSupportMenuProps } from \"./HelpAndSupportMenu\";\nexport { LinkingCommandsButton } from \"./LinkingCommandsButton\";\nexport { LinkBranchOrPullRequestDialog } from \"./LinkBranchOrPullRequestDialog\";\nexport type { LinkBranchOrPullRequestDialogProps } from \"./LinkBranchOrPullRequestDialog\";\nexport {\n ConnectRepositoryDialog,\n RepositorySelect,\n buildRepoOptions,\n CONNECTIONS,\n PROJECT_REPOSITORIES,\n CONNECTABLE_REPOSITORIES,\n} from \"./ConnectRepositoryDialog\";\nexport type {\n ConnectRepositoryDialogProps,\n RepositorySelectProps,\n Connection,\n ConnectionService,\n Repository,\n} from \"./ConnectRepositoryDialog\";\nexport {\n WebhookLogsDialog,\n WEBHOOK_CONNECTIONS,\n WEBHOOK_REPOSITORIES,\n} from \"./WebhookLogsDialog\";\nexport type {\n WebhookLogsDialogProps,\n WebhookConnection,\n WebhookRepository,\n WebhookLog,\n} from \"./WebhookLogsDialog\";\nexport {\n SourceCodeSection,\n IssueRow,\n CodeRow,\n Spine,\n HistoryDialog,\n CompletedHeader,\n} from \"./SourceCodeSection\";\nexport type {\n IssueEntry,\n CodeEntry,\n Stage,\n HistoryEvent,\n StageState,\n CodeStatus,\n SectionVariant,\n} from \"./SourceCodeSection\";\nexport { SuggestSubtasksButton } from \"./SuggestSubtasksButton\";\nexport { TaskOptionsMenu, TaskListOptionsMenu } from \"./TaskOptionsMenu\";\nexport type {\n TaskOptionsMenuProps,\n TaskListOptionsMenuProps,\n} from \"./TaskOptionsMenu\";\nexport { UserMenu } from \"./UserMenu\";\nexport type { UserMenuProps, UserMenuVariant } from \"./UserMenu\";\nexport { TwoFactorShield } from \"./TwoFactorShield\";\nexport type { TwoFactorShieldProps } from \"./TwoFactorShield\";\nexport { BackupCodesDialogs, CreateLoginCodeDialogs } from \"./TwoFactorDialogs\";\nexport type {\n BackupCodesDialogsProps,\n CreateLoginCodeDialogsProps,\n} from \"./TwoFactorDialogs\";\nexport {\n SettingsHeader,\n SettingsContent,\n StyledSettingRow,\n RowText,\n SettingRow,\n} from \"./settings\";\nexport type { SettingsHeaderProps, SettingRowProps } from \"./settings\";\nexport {\n FeatureAvailability,\n DEFAULT_FEATURE_AVAILABILITY,\n} from \"./FeatureAvailability\";\nexport type {\n FeatureAvailabilityProps,\n AvailabilityRow,\n AvailabilityMark,\n AvailabilityStatus,\n} from \"./FeatureAvailability\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB,SAASA,QAAQ,QAAQ,YAAY;AACrC,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,iBAAiB,EAAEC,eAAe,QAAQ,qBAAqB;AAExE,SAASC,UAAU,EAAEC,iBAAiB,EAAEC,SAAS,QAAQ,WAAW;AAMpE,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SACEC,aAAa,EACbC,cAAc,EACdC,iBAAiB,QACZ,iBAAiB;AAMxB,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,6BAA6B,QAAQ,iCAAiC;AAE/E,SACEC,uBAAuB,EACvBC,gBAAgB,EAChBC,gBAAgB,EAChBC,WAAW,EACXC,oBAAoB,EACpBC,wBAAwB,QACnB,2BAA2B;AAQlC,SACEC,iBAAiB,EACjBC,mBAAmB,EACnBC,oBAAoB,QACf,qBAAqB;AAO5B,SACEC,iBAAiB,EACjBC,QAAQ,EACRC,OAAO,EACPC,KAAK,EACLC,aAAa,EACbC,eAAe,QACV,qBAAqB;AAU5B,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,eAAe,EAAEC,mBAAmB,QAAQ,mBAAmB;AAKxE,SAASC,QAAQ,QAAQ,YAAY;AAErC,SAASC,eAAe,QAAQ,mBAAmB;AAEnD,SAASC,kBAAkB,EAAEC,sBAAsB,QAAQ,oBAAoB;AAK/E,SACEC,cAAc,EACdC,eAAe,EACfC,gBAAgB,EAChBC,OAAO,EACPC,UAAU,QACL,YAAY;AAEnB,SACEC,mBAAmB,EACnBC,4BAA4B,QACvB,uBAAuB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["MainLogo","RoundAvatar","PresentationShell","StyledPagePaper","PageHeader","ProjectPageHeader","TabHeader","FloatingControls","MessageDialog","DocLinkContext","messageComponents","MessageFeedback","POSITIVE_FEEDBACK_OPTIONS","NEGATIVE_FEEDBACK_OPTIONS","HelpAndSupportMenu","LinkingCommandsButton","LinkBranchOrPullRequestDialog","ConnectRepositoryDialog","RepositorySelect","buildRepoOptions","CONNECTIONS","PROJECT_REPOSITORIES","CONNECTABLE_REPOSITORIES","WebhookLogsDialog","WEBHOOK_CONNECTIONS","WEBHOOK_REPOSITORIES","SourceCodeSection","IssueRow","CodeRow","Spine","HistoryDialog","CompletedHeader","SuggestSubtasksButton","TaskOptionsMenu","TaskListOptionsMenu","UserMenu","TwoFactorShield","BackupCodesDialogs","CreateLoginCodeDialogs","SettingsHeader","SettingsContent","StyledSettingRow","RowText","SettingRow","FeatureAvailability","DEFAULT_FEATURE_AVAILABILITY"],"sources":["../../../../src/presentation/shared/index.ts"],"sourcesContent":["/**\n * Shared building blocks for the Presentation mock-ups (`Presentation/*`\n * stories). The application shell, page headers, tab bar and small widgets are\n * defined once here and reused by the List view, Column view, Task sheet and\n * empty-page stories so the chrome stays identical and in one place.\n */\nexport * from \"./tokens\";\nexport { MainLogo } from \"./MainLogo\";\nexport { RoundAvatar } from \"./RoundAvatar\";\nexport { PresentationShell, StyledPagePaper } from \"./PresentationShell\";\nexport type { PresentationShellProps } from \"./PresentationShell\";\nexport { PageHeader, ProjectPageHeader, TabHeader } from \"./headers\";\nexport type {\n PageHeaderProps,\n ProjectPageHeaderProps,\n TabHeaderProps,\n} from \"./headers\";\nexport { FloatingControls } from \"./FloatingControls\";\nexport {\n MessageDialog,\n DocLinkContext,\n messageComponents,\n} from \"./MessageDialog\";\nexport type {\n MessageDialogProps,\n MessageDialogSize,\n OpenArticleHandler,\n} from \"./MessageDialog\";\nexport {\n MessageFeedback,\n POSITIVE_FEEDBACK_OPTIONS,\n NEGATIVE_FEEDBACK_OPTIONS,\n} from \"./MessageFeedback\";\nexport type {\n MessageFeedbackProps,\n MessageFeedbackResult,\n FeedbackOption,\n FeedbackSentiment,\n} from \"./MessageFeedback\";\nexport { HelpAndSupportMenu } from \"./HelpAndSupportMenu\";\nexport type { HelpAndSupportMenuProps } from \"./HelpAndSupportMenu\";\nexport { LinkingCommandsButton } from \"./LinkingCommandsButton\";\nexport { LinkBranchOrPullRequestDialog } from \"./LinkBranchOrPullRequestDialog\";\nexport type { LinkBranchOrPullRequestDialogProps } from \"./LinkBranchOrPullRequestDialog\";\nexport {\n ConnectRepositoryDialog,\n RepositorySelect,\n buildRepoOptions,\n CONNECTIONS,\n PROJECT_REPOSITORIES,\n CONNECTABLE_REPOSITORIES,\n} from \"./ConnectRepositoryDialog\";\nexport type {\n ConnectRepositoryDialogProps,\n RepositorySelectProps,\n Connection,\n ConnectionService,\n Repository,\n} from \"./ConnectRepositoryDialog\";\nexport {\n WebhookLogsDialog,\n WEBHOOK_CONNECTIONS,\n WEBHOOK_REPOSITORIES,\n} from \"./WebhookLogsDialog\";\nexport type {\n WebhookLogsDialogProps,\n WebhookConnection,\n WebhookRepository,\n WebhookLog,\n} from \"./WebhookLogsDialog\";\nexport {\n SourceCodeSection,\n IssueRow,\n CodeRow,\n Spine,\n HistoryDialog,\n CompletedHeader,\n} from \"./SourceCodeSection\";\nexport type {\n IssueEntry,\n CodeEntry,\n Stage,\n HistoryEvent,\n StageState,\n CodeStatus,\n SectionVariant,\n} from \"./SourceCodeSection\";\nexport { SuggestSubtasksButton } from \"./SuggestSubtasksButton\";\nexport { TaskOptionsMenu, TaskListOptionsMenu } from \"./TaskOptionsMenu\";\nexport type {\n TaskOptionsMenuProps,\n TaskListOptionsMenuProps,\n} from \"./TaskOptionsMenu\";\nexport { UserMenu } from \"./UserMenu\";\nexport type { UserMenuProps, UserMenuVariant } from \"./UserMenu\";\nexport { TwoFactorShield } from \"./TwoFactorShield\";\nexport type { TwoFactorShieldProps } from \"./TwoFactorShield\";\nexport { BackupCodesDialogs, CreateLoginCodeDialogs } from \"./TwoFactorDialogs\";\nexport type {\n BackupCodesDialogsProps,\n CreateLoginCodeDialogsProps,\n} from \"./TwoFactorDialogs\";\nexport {\n SettingsHeader,\n SettingsContent,\n StyledSettingRow,\n RowText,\n SettingRow,\n} from \"./settings\";\nexport type { SettingsHeaderProps, SettingRowProps } from \"./settings\";\nexport {\n FeatureAvailability,\n DEFAULT_FEATURE_AVAILABILITY,\n} from \"./FeatureAvailability\";\nexport type {\n FeatureAvailabilityProps,\n AvailabilityRow,\n AvailabilityMark,\n AvailabilityStatus,\n} from \"./FeatureAvailability\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB,SAASA,QAAQ,QAAQ,YAAY;AACrC,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,iBAAiB,EAAEC,eAAe,QAAQ,qBAAqB;AAExE,SAASC,UAAU,EAAEC,iBAAiB,EAAEC,SAAS,QAAQ,WAAW;AAMpE,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SACEC,aAAa,EACbC,cAAc,EACdC,iBAAiB,QACZ,iBAAiB;AAMxB,SACEC,eAAe,EACfC,yBAAyB,EACzBC,yBAAyB,QACpB,mBAAmB;AAO1B,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,6BAA6B,QAAQ,iCAAiC;AAE/E,SACEC,uBAAuB,EACvBC,gBAAgB,EAChBC,gBAAgB,EAChBC,WAAW,EACXC,oBAAoB,EACpBC,wBAAwB,QACnB,2BAA2B;AAQlC,SACEC,iBAAiB,EACjBC,mBAAmB,EACnBC,oBAAoB,QACf,qBAAqB;AAO5B,SACEC,iBAAiB,EACjBC,QAAQ,EACRC,OAAO,EACPC,KAAK,EACLC,aAAa,EACbC,eAAe,QACV,qBAAqB;AAU5B,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,eAAe,EAAEC,mBAAmB,QAAQ,mBAAmB;AAKxE,SAASC,QAAQ,QAAQ,YAAY;AAErC,SAASC,eAAe,QAAQ,mBAAmB;AAEnD,SAASC,kBAAkB,EAAEC,sBAAsB,QAAQ,oBAAoB;AAK/E,SACEC,cAAc,EACdC,eAAe,EACfC,gBAAgB,EAChBC,OAAO,EACPC,UAAU,QACL,YAAY;AAEnB,SACEC,mBAAmB,EACnBC,4BAA4B,QACvB,uBAAuB","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activecollab/components",
3
- "version": "2.0.417",
3
+ "version": "2.0.418",
4
4
  "description": "ActiveCollab Components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",