@activecollab/components 2.0.409 → 2.0.411
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/cjs/components/BreakPoints.js +12 -1
- package/dist/cjs/components/BreakPoints.js.map +1 -1
- package/dist/cjs/components/Columns/Columns.js +42 -0
- package/dist/cjs/components/Columns/Columns.js.map +1 -0
- package/dist/cjs/components/Columns/Styles.js +25 -0
- package/dist/cjs/components/Columns/Styles.js.map +1 -0
- package/dist/cjs/components/Columns/index.js +17 -0
- package/dist/cjs/components/Columns/index.js.map +1 -0
- package/dist/cjs/components/LayoutTokens.js +21 -0
- package/dist/cjs/components/LayoutTokens.js.map +1 -0
- package/dist/cjs/components/Media/Media.js +39 -0
- package/dist/cjs/components/Media/Media.js.map +1 -0
- package/dist/cjs/components/Media/Styles.js +18 -0
- package/dist/cjs/components/Media/Styles.js.map +1 -0
- package/dist/cjs/components/Media/index.js +17 -0
- package/dist/cjs/components/Media/index.js.map +1 -0
- package/dist/cjs/components/PortableText/PortableText.js +125 -0
- package/dist/cjs/components/PortableText/PortableText.js.map +1 -0
- package/dist/cjs/components/PortableText/Styles.js +33 -0
- package/dist/cjs/components/PortableText/Styles.js.map +1 -0
- package/dist/cjs/components/PortableText/index.js +39 -0
- package/dist/cjs/components/PortableText/index.js.map +1 -0
- package/dist/cjs/components/PortableText/renderers.js +136 -0
- package/dist/cjs/components/PortableText/renderers.js.map +1 -0
- package/dist/cjs/components/PortableText/types.js +122 -0
- package/dist/cjs/components/PortableText/types.js.map +1 -0
- package/dist/cjs/components/PortableText/types.test.js +194 -0
- package/dist/cjs/components/PortableText/types.test.js.map +1 -0
- package/dist/cjs/components/Row/Row.js +30 -0
- package/dist/cjs/components/Row/Row.js.map +1 -0
- package/dist/cjs/components/Row/Styles.js +25 -0
- package/dist/cjs/components/Row/Styles.js.map +1 -0
- package/dist/cjs/components/Row/index.js +17 -0
- package/dist/cjs/components/Row/index.js.map +1 -0
- package/dist/cjs/components/Stack/Stack.js +27 -0
- package/dist/cjs/components/Stack/Stack.js.map +1 -0
- package/dist/cjs/components/Stack/Styles.js +21 -0
- package/dist/cjs/components/Stack/Styles.js.map +1 -0
- package/dist/cjs/components/Stack/index.js +17 -0
- package/dist/cjs/components/Stack/index.js.map +1 -0
- package/dist/cjs/components/Tiles/Styles.js +25 -0
- package/dist/cjs/components/Tiles/Styles.js.map +1 -0
- package/dist/cjs/components/Tiles/Tiles.js +29 -0
- package/dist/cjs/components/Tiles/Tiles.js.map +1 -0
- package/dist/cjs/components/Tiles/index.js +17 -0
- package/dist/cjs/components/Tiles/index.js.map +1 -0
- package/dist/cjs/components/TitledText/Styles.js +15 -0
- package/dist/cjs/components/TitledText/Styles.js.map +1 -0
- package/dist/cjs/components/TitledText/TitledText.js +50 -0
- package/dist/cjs/components/TitledText/TitledText.js.map +1 -0
- package/dist/cjs/components/TitledText/index.js +17 -0
- package/dist/cjs/components/TitledText/index.js.map +1 -0
- package/dist/cjs/components/index.js +88 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/presentation/shared/MessageDialog.js +351 -0
- package/dist/cjs/presentation/shared/MessageDialog.js.map +1 -0
- package/dist/cjs/presentation/shared/index.js +22 -0
- package/dist/cjs/presentation/shared/index.js.map +1 -1
- package/dist/esm/components/BreakPoints.d.ts +2 -0
- package/dist/esm/components/BreakPoints.d.ts.map +1 -1
- package/dist/esm/components/BreakPoints.js +9 -0
- package/dist/esm/components/BreakPoints.js.map +1 -1
- package/dist/esm/components/Columns/Columns.d.ts +11 -0
- package/dist/esm/components/Columns/Columns.d.ts.map +1 -0
- package/dist/esm/components/Columns/Columns.js +34 -0
- package/dist/esm/components/Columns/Columns.js.map +1 -0
- package/dist/esm/components/Columns/Styles.d.ts +8 -0
- package/dist/esm/components/Columns/Styles.d.ts.map +1 -0
- package/dist/esm/components/Columns/Styles.js +18 -0
- package/dist/esm/components/Columns/Styles.js.map +1 -0
- package/dist/esm/components/Columns/index.d.ts +2 -0
- package/dist/esm/components/Columns/index.d.ts.map +1 -0
- package/dist/esm/components/Columns/index.js +2 -0
- package/dist/esm/components/Columns/index.js.map +1 -0
- package/dist/esm/components/LayoutTokens.d.ts +6 -0
- package/dist/esm/components/LayoutTokens.d.ts.map +1 -0
- package/dist/esm/components/LayoutTokens.js +15 -0
- package/dist/esm/components/LayoutTokens.js.map +1 -0
- package/dist/esm/components/Media/Media.d.ts +10 -0
- package/dist/esm/components/Media/Media.d.ts.map +1 -0
- package/dist/esm/components/Media/Media.js +31 -0
- package/dist/esm/components/Media/Media.js.map +1 -0
- package/dist/esm/components/Media/Styles.d.ts +4 -0
- package/dist/esm/components/Media/Styles.d.ts.map +1 -0
- package/dist/esm/components/Media/Styles.js +11 -0
- package/dist/esm/components/Media/Styles.js.map +1 -0
- package/dist/esm/components/Media/index.d.ts +2 -0
- package/dist/esm/components/Media/index.d.ts.map +1 -0
- package/dist/esm/components/Media/index.js +2 -0
- package/dist/esm/components/Media/index.js.map +1 -0
- package/dist/esm/components/PortableText/PortableText.d.ts +24 -0
- package/dist/esm/components/PortableText/PortableText.d.ts.map +1 -0
- package/dist/esm/components/PortableText/PortableText.js +111 -0
- package/dist/esm/components/PortableText/PortableText.js.map +1 -0
- package/dist/esm/components/PortableText/Styles.d.ts +9 -0
- package/dist/esm/components/PortableText/Styles.d.ts.map +1 -0
- package/dist/esm/components/PortableText/Styles.js +27 -0
- package/dist/esm/components/PortableText/Styles.js.map +1 -0
- package/dist/esm/components/PortableText/index.d.ts +4 -0
- package/dist/esm/components/PortableText/index.d.ts.map +1 -0
- package/dist/esm/components/PortableText/index.js +4 -0
- package/dist/esm/components/PortableText/index.js.map +1 -0
- package/dist/esm/components/PortableText/renderers.d.ts +9 -0
- package/dist/esm/components/PortableText/renderers.d.ts.map +1 -0
- package/dist/esm/components/PortableText/renderers.js +130 -0
- package/dist/esm/components/PortableText/renderers.js.map +1 -0
- package/dist/esm/components/PortableText/types.d.ts +141 -0
- package/dist/esm/components/PortableText/types.d.ts.map +1 -0
- package/dist/esm/components/PortableText/types.js +106 -0
- package/dist/esm/components/PortableText/types.js.map +1 -0
- package/dist/esm/components/PortableText/types.test.d.ts +2 -0
- package/dist/esm/components/PortableText/types.test.d.ts.map +1 -0
- package/dist/esm/components/PortableText/types.test.js +192 -0
- package/dist/esm/components/PortableText/types.test.js.map +1 -0
- package/dist/esm/components/Row/Row.d.ts +10 -0
- package/dist/esm/components/Row/Row.d.ts.map +1 -0
- package/dist/esm/components/Row/Row.js +22 -0
- package/dist/esm/components/Row/Row.js.map +1 -0
- package/dist/esm/components/Row/Styles.d.ts +8 -0
- package/dist/esm/components/Row/Styles.d.ts.map +1 -0
- package/dist/esm/components/Row/Styles.js +18 -0
- package/dist/esm/components/Row/Styles.js.map +1 -0
- package/dist/esm/components/Row/index.d.ts +2 -0
- package/dist/esm/components/Row/index.d.ts.map +1 -0
- package/dist/esm/components/Row/index.js +2 -0
- package/dist/esm/components/Row/index.js.map +1 -0
- package/dist/esm/components/Stack/Stack.d.ts +8 -0
- package/dist/esm/components/Stack/Stack.d.ts.map +1 -0
- package/dist/esm/components/Stack/Stack.js +19 -0
- package/dist/esm/components/Stack/Stack.js.map +1 -0
- package/dist/esm/components/Stack/Styles.d.ts +6 -0
- package/dist/esm/components/Stack/Styles.d.ts.map +1 -0
- package/dist/esm/components/Stack/Styles.js +14 -0
- package/dist/esm/components/Stack/Styles.js.map +1 -0
- package/dist/esm/components/Stack/index.d.ts +2 -0
- package/dist/esm/components/Stack/index.d.ts.map +1 -0
- package/dist/esm/components/Stack/index.js +2 -0
- package/dist/esm/components/Stack/index.js.map +1 -0
- package/dist/esm/components/Tiles/Styles.d.ts +8 -0
- package/dist/esm/components/Tiles/Styles.d.ts.map +1 -0
- package/dist/esm/components/Tiles/Styles.js +18 -0
- package/dist/esm/components/Tiles/Styles.js.map +1 -0
- package/dist/esm/components/Tiles/Tiles.d.ts +10 -0
- package/dist/esm/components/Tiles/Tiles.d.ts.map +1 -0
- package/dist/esm/components/Tiles/Tiles.js +21 -0
- package/dist/esm/components/Tiles/Tiles.js.map +1 -0
- package/dist/esm/components/Tiles/index.d.ts +2 -0
- package/dist/esm/components/Tiles/index.d.ts.map +1 -0
- package/dist/esm/components/Tiles/index.js +2 -0
- package/dist/esm/components/Tiles/index.js.map +1 -0
- package/dist/esm/components/TitledText/Styles.d.ts +2 -0
- package/dist/esm/components/TitledText/Styles.d.ts.map +1 -0
- package/dist/esm/components/TitledText/Styles.js +8 -0
- package/dist/esm/components/TitledText/Styles.js.map +1 -0
- package/dist/esm/components/TitledText/TitledText.d.ts +18 -0
- package/dist/esm/components/TitledText/TitledText.d.ts.map +1 -0
- package/dist/esm/components/TitledText/TitledText.js +43 -0
- package/dist/esm/components/TitledText/TitledText.js.map +1 -0
- package/dist/esm/components/TitledText/index.d.ts +2 -0
- package/dist/esm/components/TitledText/index.d.ts.map +1 -0
- package/dist/esm/components/TitledText/index.js +2 -0
- package/dist/esm/components/TitledText/index.js.map +1 -0
- package/dist/esm/components/index.d.ts +8 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +8 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/presentation/shared/MessageDialog.d.ts +35 -0
- package/dist/esm/presentation/shared/MessageDialog.d.ts.map +1 -0
- package/dist/esm/presentation/shared/MessageDialog.js +331 -0
- package/dist/esm/presentation/shared/MessageDialog.js.map +1 -0
- package/dist/esm/presentation/shared/index.d.ts +2 -0
- package/dist/esm/presentation/shared/index.d.ts.map +1 -1
- package/dist/esm/presentation/shared/index.js +1 -0
- package/dist/esm/presentation/shared/index.js.map +1 -1
- package/dist/index.js +1375 -742
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import React, { useCallback, useContext, useState } from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { screenBelow } from "../../components/BreakPoints";
|
|
4
|
+
import { Button } from "../../components/Button";
|
|
5
|
+
import { Columns } from "../../components/Columns";
|
|
6
|
+
import { IconButton } from "../../components/IconButton";
|
|
7
|
+
import { CancelCrossIcon, ThumbUpOutlineIcon } from "../../components/Icons";
|
|
8
|
+
import { InfoBox } from "../../components/InfoBox";
|
|
9
|
+
import { Media } from "../../components/Media";
|
|
10
|
+
import { Modal } from "../../components/Modal";
|
|
11
|
+
import { portableTextDefaultBlockRenderers } from "../../components/PortableText";
|
|
12
|
+
import { StyledLink as InlineLink } from "../../components/PortableText/Styles";
|
|
13
|
+
import { Row } from "../../components/Row";
|
|
14
|
+
import { Stack } from "../../components/Stack";
|
|
15
|
+
import { Tiles } from "../../components/Tiles";
|
|
16
|
+
import { Tooltip } from "../../components/Tooltip";
|
|
17
|
+
import { Body2 } from "../../components/Typography";
|
|
18
|
+
import { Typography } from "../../components/Typography/Typography";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The in-app message dialog, as a Presentation mock.
|
|
22
|
+
*
|
|
23
|
+
* Two pieces, mirroring how the product is split:
|
|
24
|
+
*
|
|
25
|
+
* - {@link MessageDialog} — the hollow dialog shell (width, closing,
|
|
26
|
+
* feedback), built only from design-system parts. In the product this shell
|
|
27
|
+
* lives in the application as `InAppMessageDialog`.
|
|
28
|
+
* - {@link messageComponents} — a demo message element catalog injected into
|
|
29
|
+
* the design-system Portable Text engine, exactly like the typed cards
|
|
30
|
+
* injected into the hollow StackedCard shell. In the product the catalog is
|
|
31
|
+
* application code; the presentation ships this demo copy so the stories
|
|
32
|
+
* need no app imports.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/* ---- the dialog shell ---------------------------------------------- */
|
|
36
|
+
|
|
37
|
+
const DIALOG_WIDTH = {
|
|
38
|
+
sm: "520px",
|
|
39
|
+
md: "720px",
|
|
40
|
+
lg: "880px"
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/* Feedback — the thumbs up / down slot. Down-vote reuses the up icon,
|
|
44
|
+
rotated (the DS set only ships ThumbUpOutlineIcon). */
|
|
45
|
+
const StyledFeedback = styled.div.withConfig({
|
|
46
|
+
displayName: "MessageDialog__StyledFeedback",
|
|
47
|
+
componentId: "sc-1kt5lil-0"
|
|
48
|
+
})(["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);
|
|
49
|
+
const DialogFeedback = _ref => {
|
|
50
|
+
let onVote = _ref.onVote;
|
|
51
|
+
const _useState = useState(null),
|
|
52
|
+
voted = _useState[0],
|
|
53
|
+
setVoted = _useState[1];
|
|
54
|
+
const vote = useCallback(value => {
|
|
55
|
+
setVoted(value);
|
|
56
|
+
onVote == null || onVote(value);
|
|
57
|
+
}, [onVote]);
|
|
58
|
+
return /*#__PURE__*/React.createElement(StyledFeedback, null, voted ? /*#__PURE__*/React.createElement(Body2, {
|
|
59
|
+
color: "secondary"
|
|
60
|
+
}, "Thanks for your feedback!") : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Body2, {
|
|
61
|
+
color: "secondary",
|
|
62
|
+
className: "fb-question"
|
|
63
|
+
}, "Was this helpful?"), /*#__PURE__*/React.createElement(Tooltip, {
|
|
64
|
+
title: "Yes, helpful"
|
|
65
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
66
|
+
type: "button",
|
|
67
|
+
variant: "text gray",
|
|
68
|
+
className: "fb-btn",
|
|
69
|
+
"aria-label": "Yes, helpful",
|
|
70
|
+
onClick: () => vote("up")
|
|
71
|
+
}, /*#__PURE__*/React.createElement(ThumbUpOutlineIcon, null))), /*#__PURE__*/React.createElement(Tooltip, {
|
|
72
|
+
title: "No, not helpful"
|
|
73
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
74
|
+
type: "button",
|
|
75
|
+
variant: "text gray",
|
|
76
|
+
className: "fb-btn fb-down",
|
|
77
|
+
"aria-label": "No, not helpful",
|
|
78
|
+
onClick: () => vote("down")
|
|
79
|
+
}, /*#__PURE__*/React.createElement(ThumbUpOutlineIcon, null)))));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/* The shell is behaviour only: it sizes itself, closes on click-outside /
|
|
83
|
+
Esc (DS Modal) / the X, and shows the feedback slot when an onVote handler
|
|
84
|
+
is supplied. Content is whatever the caller renders as children — usually
|
|
85
|
+
the Portable Text engine with the demo catalog injected. */
|
|
86
|
+
const StyledDialog = styled.div.withConfig({
|
|
87
|
+
displayName: "MessageDialog__StyledDialog",
|
|
88
|
+
componentId: "sc-1kt5lil-1"
|
|
89
|
+
})(["position:relative;box-sizing:border-box;display:flex;flex-direction:column;width:calc(100% - 32px);max-width:", ";max-height:calc(100vh - 96px);margin:56px auto 40px;overflow-y:auto;background-color:var(--page-paper-main);color:var(--color-theme-900);border-radius:12px;box-shadow:var(--shadow-primary);", "{margin:16px auto;}.dlg-close{position:absolute;top:12px;right:12px;z-index:2;}.dlg-content{padding:40px;}", "{.dlg-content{padding:32px 20px 24px;}}"], _ref2 => {
|
|
90
|
+
let $size = _ref2.$size;
|
|
91
|
+
return DIALOG_WIDTH[$size];
|
|
92
|
+
}, screenBelow.sm, screenBelow.sm);
|
|
93
|
+
export const MessageDialog = _ref3 => {
|
|
94
|
+
let open = _ref3.open,
|
|
95
|
+
onClose = _ref3.onClose,
|
|
96
|
+
_ref3$size = _ref3.size,
|
|
97
|
+
size = _ref3$size === void 0 ? "md" : _ref3$size,
|
|
98
|
+
onVote = _ref3.onVote,
|
|
99
|
+
children = _ref3.children;
|
|
100
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
101
|
+
open: open,
|
|
102
|
+
onClose: onClose
|
|
103
|
+
}, /*#__PURE__*/React.createElement(StyledDialog, {
|
|
104
|
+
$size: size
|
|
105
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
className: "dlg-close"
|
|
107
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
108
|
+
title: "Close"
|
|
109
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
110
|
+
type: "button",
|
|
111
|
+
variant: "text gray",
|
|
112
|
+
"aria-label": "Close",
|
|
113
|
+
onClick: onClose
|
|
114
|
+
}, /*#__PURE__*/React.createElement(CancelCrossIcon, null)))), /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
className: "dlg-content"
|
|
116
|
+
}, children), onVote ? /*#__PURE__*/React.createElement(DialogFeedback, {
|
|
117
|
+
onVote: onVote
|
|
118
|
+
}) : null));
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/* ---- doc-link wiring ------------------------------------------------ */
|
|
122
|
+
|
|
123
|
+
/** How a doc-link mark opens its article (by a slug-like reference). The
|
|
124
|
+
surface that renders the message supplies the handler — in the product it
|
|
125
|
+
closes the dialog and opens the article Sheet. */
|
|
126
|
+
|
|
127
|
+
export const DocLinkContext = /*#__PURE__*/React.createContext(() => undefined);
|
|
128
|
+
|
|
129
|
+
/* ---- the demo message element catalog ------------------------------- */
|
|
130
|
+
|
|
131
|
+
/* Inline marks ------------------------------------------------------- */
|
|
132
|
+
|
|
133
|
+
/* interface-name — the name of an interface element, e.g. the Security page. */
|
|
134
|
+
const StyledInterfaceName = styled.span.withConfig({
|
|
135
|
+
displayName: "MessageDialog__StyledInterfaceName",
|
|
136
|
+
componentId: "sc-1kt5lil-2"
|
|
137
|
+
})(["padding:0 4px;border-radius:4px;background-color:var(--color-theme-300);color:var(--color-theme-900);font-weight:600;white-space:nowrap;"]);
|
|
138
|
+
const InterfaceNameMark = _ref4 => {
|
|
139
|
+
let children = _ref4.children;
|
|
140
|
+
return /*#__PURE__*/React.createElement(StyledInterfaceName, null, children);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/* keyboard-key — a keyboard key cap. */
|
|
144
|
+
const StyledKeyboardKey = styled.kbd.withConfig({
|
|
145
|
+
displayName: "MessageDialog__StyledKeyboardKey",
|
|
146
|
+
componentId: "sc-1kt5lil-3"
|
|
147
|
+
})(["display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border:1px solid var(--border-primary);border-bottom-width:2px;border-radius:5px;background-color:var(--color-theme-200);color:var(--color-theme-900);font-family:ui-monospace,\"SFMono-Regular\",Menlo,Consolas,monospace;font-size:11px;font-weight:600;line-height:1;vertical-align:baseline;"]);
|
|
148
|
+
const KeyboardKeyMark = _ref5 => {
|
|
149
|
+
let children = _ref5.children;
|
|
150
|
+
return /*#__PURE__*/React.createElement(StyledKeyboardKey, null, children);
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/* doc-link — an inline link that opens a full help article. The mark carries
|
|
154
|
+
an article reference; the open behaviour comes from DocLinkContext, so the
|
|
155
|
+
authored content stays declarative. */
|
|
156
|
+
/* Built on the engine's inline anchor so a doc-link sits in the sentence
|
|
157
|
+
exactly like a default link mark — same size, weight and line box as the
|
|
158
|
+
surrounding copy — just recoloured. */
|
|
159
|
+
const StyledDocLink = styled(InlineLink).withConfig({
|
|
160
|
+
displayName: "MessageDialog__StyledDocLink",
|
|
161
|
+
componentId: "sc-1kt5lil-4"
|
|
162
|
+
})(["color:var(--color-secondary);text-decoration-color:var(--color-secondary);"]);
|
|
163
|
+
const DocLinkMark = _ref6 => {
|
|
164
|
+
let mark = _ref6.mark,
|
|
165
|
+
children = _ref6.children;
|
|
166
|
+
const openArticle = useContext(DocLinkContext);
|
|
167
|
+
return /*#__PURE__*/React.createElement(StyledDocLink, {
|
|
168
|
+
href: "#",
|
|
169
|
+
onClick: event => {
|
|
170
|
+
event.preventDefault();
|
|
171
|
+
openArticle(mark == null ? void 0 : mark.article);
|
|
172
|
+
}
|
|
173
|
+
}, children);
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/* Component objects --------------------------------------------------- */
|
|
177
|
+
|
|
178
|
+
/* callout — rendered with the DS InfoBox; the catalog keeps its own tone
|
|
179
|
+
vocabulary and maps it to InfoBox types. */
|
|
180
|
+
|
|
181
|
+
const CALLOUT_TYPE = {
|
|
182
|
+
info: "default",
|
|
183
|
+
note: "note",
|
|
184
|
+
success: "success"
|
|
185
|
+
};
|
|
186
|
+
const CalloutObject = _ref7 => {
|
|
187
|
+
var _ref8;
|
|
188
|
+
let node = _ref7.node,
|
|
189
|
+
children = _ref7.children;
|
|
190
|
+
return /*#__PURE__*/React.createElement(InfoBox, {
|
|
191
|
+
type: CALLOUT_TYPE[(_ref8 = node.tone) != null ? _ref8 : "info"],
|
|
192
|
+
title: node.title,
|
|
193
|
+
showIcon: true
|
|
194
|
+
}, children);
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
/* button-reference — a real DS Button shown for reference as its own block,
|
|
198
|
+
so a message can point at a button instead of screenshotting it. It is
|
|
199
|
+
intentionally non-interactive. */
|
|
200
|
+
const StyledButtonReference = styled.div.withConfig({
|
|
201
|
+
displayName: "MessageDialog__StyledButtonReference",
|
|
202
|
+
componentId: "sc-1kt5lil-5"
|
|
203
|
+
})(["display:flex;.c-button{pointer-events:none;}"]);
|
|
204
|
+
const ButtonReferenceObject = _ref9 => {
|
|
205
|
+
var _ref0;
|
|
206
|
+
let node = _ref9.node;
|
|
207
|
+
if (typeof node.label !== "string") {
|
|
208
|
+
return null;
|
|
209
|
+
}
|
|
210
|
+
return /*#__PURE__*/React.createElement(StyledButtonReference, {
|
|
211
|
+
"aria-hidden": "true"
|
|
212
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
213
|
+
variant: (_ref0 = node.variant) != null ? _ref0 : "primary",
|
|
214
|
+
size: "small",
|
|
215
|
+
type: "button",
|
|
216
|
+
tabIndex: -1
|
|
217
|
+
}, node.label));
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/* row — a horizontal run of blocks (e.g. two button references). */
|
|
221
|
+
const RowObject = _ref1 => {
|
|
222
|
+
var _ref10;
|
|
223
|
+
let node = _ref1.node,
|
|
224
|
+
children = _ref1.children;
|
|
225
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
226
|
+
space: (_ref10 = node.space) != null ? _ref10 : "sm"
|
|
227
|
+
}, children);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/* tiles — an equal-size mosaic of blocks. */
|
|
231
|
+
const TilesObject = _ref11 => {
|
|
232
|
+
var _ref12;
|
|
233
|
+
let node = _ref11.node,
|
|
234
|
+
children = _ref11.children;
|
|
235
|
+
return /*#__PURE__*/React.createElement(Tiles, {
|
|
236
|
+
columns: (_ref12 = node.columns) != null ? _ref12 : 3,
|
|
237
|
+
space: "md",
|
|
238
|
+
collapseBelow: "sm"
|
|
239
|
+
}, children);
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
/* split — text beside media, with the one layout rule the messages follow:
|
|
243
|
+
screenshots sit on the right, flat illustrations on the left. `widths` is
|
|
244
|
+
authored as [text, media] and reordered with the columns. */
|
|
245
|
+
|
|
246
|
+
const SplitObject = _ref13 => {
|
|
247
|
+
var _ref14;
|
|
248
|
+
let node = _ref13.node,
|
|
249
|
+
children = _ref13.children;
|
|
250
|
+
const media = node.media;
|
|
251
|
+
const widths = (_ref14 = node.widths) != null ? _ref14 : [1, 1];
|
|
252
|
+
const textColumn = /*#__PURE__*/React.createElement(Stack, {
|
|
253
|
+
space: "lg"
|
|
254
|
+
}, children);
|
|
255
|
+
|
|
256
|
+
// A split without media degrades to its text column instead of crashing.
|
|
257
|
+
if (!(media != null && media.src)) {
|
|
258
|
+
return textColumn;
|
|
259
|
+
}
|
|
260
|
+
const screenshot = media.variant === "screenshot";
|
|
261
|
+
const mediaColumn = /*#__PURE__*/React.createElement(Media, {
|
|
262
|
+
src: media.src,
|
|
263
|
+
alt: media.alt,
|
|
264
|
+
variant: media.variant,
|
|
265
|
+
caption: media.caption
|
|
266
|
+
});
|
|
267
|
+
return /*#__PURE__*/React.createElement(Columns, {
|
|
268
|
+
widths: screenshot ? widths : [...widths].reverse(),
|
|
269
|
+
space: "xl",
|
|
270
|
+
alignY: "center",
|
|
271
|
+
collapseBelow: "md"
|
|
272
|
+
}, screenshot ? textColumn : mediaColumn, screenshot ? mediaColumn : textColumn);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
/* Default-block overrides --------------------------------------------- */
|
|
276
|
+
|
|
277
|
+
/* The engine's defaults use Body 1 primary; the messages are designed on the
|
|
278
|
+
quieter Body 2 secondary voice, so the catalog overrides the text blocks —
|
|
279
|
+
demonstrating the `blocks` half of the injection contract. */
|
|
280
|
+
const ParagraphBlock = _ref15 => {
|
|
281
|
+
let children = _ref15.children;
|
|
282
|
+
return /*#__PURE__*/React.createElement(Body2, {
|
|
283
|
+
color: "secondary",
|
|
284
|
+
lineHeight: "loose"
|
|
285
|
+
}, children);
|
|
286
|
+
};
|
|
287
|
+
const ListItemBlock = _ref16 => {
|
|
288
|
+
let children = _ref16.children;
|
|
289
|
+
return /*#__PURE__*/React.createElement(Typography, {
|
|
290
|
+
variant: "Body 2",
|
|
291
|
+
as: "li",
|
|
292
|
+
color: "secondary",
|
|
293
|
+
lineHeight: "loose"
|
|
294
|
+
}, children);
|
|
295
|
+
};
|
|
296
|
+
|
|
297
|
+
/* Only the delta from the default renderer: the messages want a roomier
|
|
298
|
+
rhythm between a titled section's content nodes. */
|
|
299
|
+
const DefaultTitledText = portableTextDefaultBlockRenderers["titled-text"];
|
|
300
|
+
const TitledTextBlock = _ref17 => {
|
|
301
|
+
let block = _ref17.block,
|
|
302
|
+
children = _ref17.children;
|
|
303
|
+
return /*#__PURE__*/React.createElement(DefaultTitledText, {
|
|
304
|
+
block: block
|
|
305
|
+
}, children ? /*#__PURE__*/React.createElement(Stack, {
|
|
306
|
+
space: "sm"
|
|
307
|
+
}, children) : undefined);
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
/** The demo catalog the presentations inject into the Portable Text engine —
|
|
311
|
+
the stand-in for the application's `messageComponents` map. */
|
|
312
|
+
export const messageComponents = {
|
|
313
|
+
marks: {
|
|
314
|
+
"interface-name": InterfaceNameMark,
|
|
315
|
+
"keyboard-key": KeyboardKeyMark,
|
|
316
|
+
"doc-link": DocLinkMark
|
|
317
|
+
},
|
|
318
|
+
objects: {
|
|
319
|
+
callout: CalloutObject,
|
|
320
|
+
"button-reference": ButtonReferenceObject,
|
|
321
|
+
row: RowObject,
|
|
322
|
+
tiles: TilesObject,
|
|
323
|
+
split: SplitObject
|
|
324
|
+
},
|
|
325
|
+
blocks: {
|
|
326
|
+
paragraph: ParagraphBlock,
|
|
327
|
+
"list-item": ListItemBlock,
|
|
328
|
+
"titled-text": TitledTextBlock
|
|
329
|
+
}
|
|
330
|
+
};
|
|
331
|
+
//# sourceMappingURL=MessageDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageDialog.js","names":["React","useCallback","useContext","useState","styled","screenBelow","Button","Columns","IconButton","CancelCrossIcon","ThumbUpOutlineIcon","InfoBox","Media","Modal","portableTextDefaultBlockRenderers","StyledLink","InlineLink","Row","Stack","Tiles","Tooltip","Body2","Typography","DIALOG_WIDTH","sm","md","lg","StyledFeedback","div","withConfig","displayName","componentId","DialogFeedback","_ref","onVote","_useState","voted","setVoted","vote","value","createElement","color","Fragment","className","title","type","variant","onClick","StyledDialog","_ref2","$size","MessageDialog","_ref3","open","onClose","_ref3$size","size","children","DocLinkContext","createContext","undefined","StyledInterfaceName","span","InterfaceNameMark","_ref4","StyledKeyboardKey","kbd","KeyboardKeyMark","_ref5","StyledDocLink","DocLinkMark","_ref6","mark","openArticle","href","event","preventDefault","article","CALLOUT_TYPE","info","note","success","CalloutObject","_ref7","_ref8","node","tone","showIcon","StyledButtonReference","ButtonReferenceObject","_ref9","_ref0","label","tabIndex","RowObject","_ref1","_ref10","space","TilesObject","_ref11","_ref12","columns","collapseBelow","SplitObject","_ref13","_ref14","media","widths","textColumn","src","screenshot","mediaColumn","alt","caption","reverse","alignY","ParagraphBlock","_ref15","lineHeight","ListItemBlock","_ref16","as","DefaultTitledText","TitledTextBlock","_ref17","block","messageComponents","marks","objects","callout","row","tiles","split","blocks","paragraph"],"sources":["../../../../src/presentation/shared/MessageDialog.tsx"],"sourcesContent":["import React, {\n ReactElement,\n ReactNode,\n useCallback,\n useContext,\n useState,\n} from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { screenBelow } from \"../../components/BreakPoints\";\nimport { Button } from \"../../components/Button\";\nimport { Columns } from \"../../components/Columns\";\nimport { IconButton } from \"../../components/IconButton\";\nimport { CancelCrossIcon, ThumbUpOutlineIcon } from \"../../components/Icons\";\nimport { InfoBox, InfoBoxType } from \"../../components/InfoBox\";\nimport { Space } from \"../../components/LayoutTokens\";\nimport { Media } from \"../../components/Media\";\nimport { Modal } from \"../../components/Modal\";\nimport {\n portableTextDefaultBlockRenderers,\n PortableTextBlockRenderer,\n PortableTextComponents,\n PortableTextMarkRenderer,\n PortableTextMediaVariant,\n PortableTextObjectRenderer,\n} from \"../../components/PortableText\";\nimport { StyledLink as InlineLink } from \"../../components/PortableText/Styles\";\nimport { Row } from \"../../components/Row\";\nimport { Stack } from \"../../components/Stack\";\nimport { Tiles } from \"../../components/Tiles\";\nimport { Tooltip } from \"../../components/Tooltip\";\nimport { Body2 } from \"../../components/Typography\";\nimport { Typography } from \"../../components/Typography/Typography\";\n\n/**\n * The in-app message dialog, as a Presentation mock.\n *\n * Two pieces, mirroring how the product is split:\n *\n * - {@link MessageDialog} — the hollow dialog shell (width, closing,\n * feedback), built only from design-system parts. In the product this shell\n * lives in the application as `InAppMessageDialog`.\n * - {@link messageComponents} — a demo message element catalog injected into\n * the design-system Portable Text engine, exactly like the typed cards\n * injected into the hollow StackedCard shell. In the product the catalog is\n * application code; the presentation ships this demo copy so the stories\n * need no app imports.\n */\n\n/* ---- the dialog shell ---------------------------------------------- */\n\nexport type MessageDialogSize = \"sm\" | \"md\" | \"lg\";\n\nconst DIALOG_WIDTH: Record<MessageDialogSize, string> = {\n sm: \"520px\",\n md: \"720px\",\n lg: \"880px\",\n};\n\n/* Feedback — the thumbs up / down slot. Down-vote reuses the up icon,\n rotated (the DS set only ships ThumbUpOutlineIcon). */\nconst StyledFeedback = 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\nconst DialogFeedback = ({\n onVote,\n}: {\n onVote?: (vote: \"up\" | \"down\") => void;\n}): ReactElement => {\n const [voted, setVoted] = useState<\"up\" | \"down\" | null>(null);\n const vote = useCallback(\n (value: \"up\" | \"down\") => {\n setVoted(value);\n onVote?.(value);\n },\n [onVote]\n );\n\n return (\n <StyledFeedback>\n {voted ? (\n <Body2 color=\"secondary\">Thanks for your feedback!</Body2>\n ) : (\n <>\n <Body2 color=\"secondary\" className=\"fb-question\">\n Was this helpful?\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 </StyledFeedback>\n );\n};\n\n/* The shell is behaviour only: it sizes itself, closes on click-outside /\n Esc (DS Modal) / the X, and shows the feedback slot when an onVote handler\n is supplied. Content is whatever the caller renders as children — usually\n the Portable Text engine with the demo catalog injected. */\nconst StyledDialog = styled.div<{ $size: MessageDialogSize }>`\n position: relative;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n width: calc(100% - 32px);\n max-width: ${({ $size }) => DIALOG_WIDTH[$size]};\n max-height: calc(100vh - 96px);\n margin: 56px auto 40px;\n overflow-y: auto;\n background-color: var(--page-paper-main);\n color: var(--color-theme-900);\n border-radius: 12px;\n box-shadow: var(--shadow-primary);\n\n ${screenBelow.sm} {\n margin: 16px auto;\n }\n\n /* X floats in the corner and overlaps the content padding — it does not\n reserve a row of its own. */\n .dlg-close {\n position: absolute;\n top: 12px;\n right: 12px;\n z-index: 2;\n }\n\n .dlg-content {\n padding: 40px;\n }\n\n ${screenBelow.sm} {\n .dlg-content {\n padding: 32px 20px 24px;\n }\n }\n`;\n\nexport interface MessageDialogProps {\n open: boolean;\n onClose: () => void;\n size?: MessageDialogSize;\n /** Supplying a handler shows the centred helpful / not-helpful vote. */\n onVote?: (vote: \"up\" | \"down\") => void;\n children: ReactNode;\n}\n\nexport const MessageDialog = ({\n open,\n onClose,\n size = \"md\",\n onVote,\n children,\n}: MessageDialogProps): ReactElement => (\n <Modal open={open} onClose={onClose}>\n <StyledDialog $size={size}>\n <div className=\"dlg-close\">\n <Tooltip title=\"Close\">\n <IconButton\n type=\"button\"\n variant=\"text gray\"\n aria-label=\"Close\"\n onClick={onClose}\n >\n <CancelCrossIcon />\n </IconButton>\n </Tooltip>\n </div>\n <div className=\"dlg-content\">{children}</div>\n {onVote ? <DialogFeedback onVote={onVote} /> : null}\n </StyledDialog>\n </Modal>\n);\n\n/* ---- doc-link wiring ------------------------------------------------ */\n\n/** How a doc-link mark opens its article (by a slug-like reference). The\n surface that renders the message supplies the handler — in the product it\n closes the dialog and opens the article Sheet. */\nexport type OpenArticleHandler = (article?: string) => void;\n\nexport const DocLinkContext = React.createContext<OpenArticleHandler>(\n () => undefined\n);\n\n/* ---- the demo message element catalog ------------------------------- */\n\n/* Inline marks ------------------------------------------------------- */\n\n/* interface-name — the name of an interface element, e.g. the Security page. */\nconst StyledInterfaceName = styled.span`\n padding: 0 4px;\n border-radius: 4px;\n background-color: var(--color-theme-300);\n color: var(--color-theme-900);\n font-weight: 600;\n white-space: nowrap;\n`;\nconst InterfaceNameMark: PortableTextMarkRenderer = ({ children }) => (\n <StyledInterfaceName>{children}</StyledInterfaceName>\n);\n\n/* keyboard-key — a keyboard key cap. */\nconst StyledKeyboardKey = styled.kbd`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 20px;\n height: 20px;\n padding: 0 6px;\n border: 1px solid var(--border-primary);\n border-bottom-width: 2px;\n border-radius: 5px;\n background-color: var(--color-theme-200);\n color: var(--color-theme-900);\n font-family: ui-monospace, \"SFMono-Regular\", Menlo, Consolas, monospace;\n font-size: 11px;\n font-weight: 600;\n line-height: 1;\n vertical-align: baseline;\n`;\nconst KeyboardKeyMark: PortableTextMarkRenderer = ({ children }) => (\n <StyledKeyboardKey>{children}</StyledKeyboardKey>\n);\n\n/* doc-link — an inline link that opens a full help article. The mark carries\n an article reference; the open behaviour comes from DocLinkContext, so the\n authored content stays declarative. */\n/* Built on the engine's inline anchor so a doc-link sits in the sentence\n exactly like a default link mark — same size, weight and line box as the\n surrounding copy — just recoloured. */\nconst StyledDocLink = styled(InlineLink)`\n color: var(--color-secondary);\n text-decoration-color: var(--color-secondary);\n`;\nconst DocLinkMark: PortableTextMarkRenderer = ({ mark, children }) => {\n const openArticle = useContext(DocLinkContext);\n return (\n <StyledDocLink\n href=\"#\"\n onClick={(event: React.MouseEvent) => {\n event.preventDefault();\n openArticle(mark?.article as string | undefined);\n }}\n >\n {children}\n </StyledDocLink>\n );\n};\n\n/* Component objects --------------------------------------------------- */\n\n/* callout — rendered with the DS InfoBox; the catalog keeps its own tone\n vocabulary and maps it to InfoBox types. */\ntype CalloutTone = \"info\" | \"note\" | \"success\";\nconst CALLOUT_TYPE: Record<CalloutTone, InfoBoxType> = {\n info: \"default\",\n note: \"note\",\n success: \"success\",\n};\nconst CalloutObject: PortableTextObjectRenderer = ({ node, children }) => (\n <InfoBox\n type={CALLOUT_TYPE[(node.tone as CalloutTone | undefined) ?? \"info\"]}\n title={node.title as string | undefined}\n showIcon\n >\n {children}\n </InfoBox>\n);\n\n/* button-reference — a real DS Button shown for reference as its own block,\n so a message can point at a button instead of screenshotting it. It is\n intentionally non-interactive. */\nconst StyledButtonReference = styled.div`\n display: flex;\n\n .c-button {\n pointer-events: none;\n }\n`;\ntype ButtonReferenceVariant =\n | \"primary\"\n | \"secondary\"\n | \"text colored\"\n | \"text gray\";\nconst ButtonReferenceObject: PortableTextObjectRenderer = ({ node }) => {\n if (typeof node.label !== \"string\") {\n return null;\n }\n\n return (\n <StyledButtonReference aria-hidden=\"true\">\n <Button\n variant={\n (node.variant as ButtonReferenceVariant | undefined) ?? \"primary\"\n }\n size=\"small\"\n type=\"button\"\n tabIndex={-1}\n >\n {node.label}\n </Button>\n </StyledButtonReference>\n );\n};\n\n/* row — a horizontal run of blocks (e.g. two button references). */\nconst RowObject: PortableTextObjectRenderer = ({ node, children }) => (\n <Row space={(node.space as Space | undefined) ?? \"sm\"}>{children}</Row>\n);\n\n/* tiles — an equal-size mosaic of blocks. */\nconst TilesObject: PortableTextObjectRenderer = ({ node, children }) => (\n <Tiles\n columns={(node.columns as number | undefined) ?? 3}\n space=\"md\"\n collapseBelow=\"sm\"\n >\n {children}\n </Tiles>\n);\n\n/* split — text beside media, with the one layout rule the messages follow:\n screenshots sit on the right, flat illustrations on the left. `widths` is\n authored as [text, media] and reordered with the columns. */\ninterface SplitMedia {\n src: string;\n alt?: string;\n variant?: PortableTextMediaVariant;\n caption?: string;\n}\nconst SplitObject: PortableTextObjectRenderer = ({ node, children }) => {\n const media = node.media as SplitMedia | undefined;\n const widths = (node.widths as number[] | undefined) ?? [1, 1];\n const textColumn = <Stack space=\"lg\">{children}</Stack>;\n\n // A split without media degrades to its text column instead of crashing.\n if (!media?.src) {\n return textColumn;\n }\n\n const screenshot = media.variant === \"screenshot\";\n\n const mediaColumn = (\n <Media\n src={media.src}\n alt={media.alt}\n variant={media.variant}\n caption={media.caption}\n />\n );\n\n return (\n <Columns\n widths={screenshot ? widths : [...widths].reverse()}\n space=\"xl\"\n alignY=\"center\"\n collapseBelow=\"md\"\n >\n {screenshot ? textColumn : mediaColumn}\n {screenshot ? mediaColumn : textColumn}\n </Columns>\n );\n};\n\n/* Default-block overrides --------------------------------------------- */\n\n/* The engine's defaults use Body 1 primary; the messages are designed on the\n quieter Body 2 secondary voice, so the catalog overrides the text blocks —\n demonstrating the `blocks` half of the injection contract. */\nconst ParagraphBlock: PortableTextBlockRenderer = ({ children }) => (\n <Body2 color=\"secondary\" lineHeight=\"loose\">\n {children}\n </Body2>\n);\n\nconst ListItemBlock: PortableTextBlockRenderer = ({ children }) => (\n <Typography variant=\"Body 2\" as=\"li\" color=\"secondary\" lineHeight=\"loose\">\n {children}\n </Typography>\n);\n\n/* Only the delta from the default renderer: the messages want a roomier\n rhythm between a titled section's content nodes. */\nconst DefaultTitledText = portableTextDefaultBlockRenderers[\"titled-text\"];\nconst TitledTextBlock: PortableTextBlockRenderer = ({ block, children }) => (\n <DefaultTitledText block={block}>\n {children ? <Stack space=\"sm\">{children}</Stack> : undefined}\n </DefaultTitledText>\n);\n\n/** The demo catalog the presentations inject into the Portable Text engine —\n the stand-in for the application's `messageComponents` map. */\nexport const messageComponents: PortableTextComponents = {\n marks: {\n \"interface-name\": InterfaceNameMark,\n \"keyboard-key\": KeyboardKeyMark,\n \"doc-link\": DocLinkMark,\n },\n objects: {\n callout: CalloutObject,\n \"button-reference\": ButtonReferenceObject,\n row: RowObject,\n tiles: TilesObject,\n split: SplitObject,\n },\n blocks: {\n paragraph: ParagraphBlock,\n \"list-item\": ListItemBlock,\n \"titled-text\": TitledTextBlock,\n },\n};\n"],"mappings":"AAAA,OAAOA,KAAK,IAGVC,WAAW,EACXC,UAAU,EACVC,QAAQ,QACH,OAAO;AAEd,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,WAAW,QAAQ,8BAA8B;AAC1D,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,OAAO,QAAQ,0BAA0B;AAClD,SAASC,U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ACvDC,KAAK,EAAE;IACL,gBAAgB,EAAEhE,iBAAiB;IACnC,cAAc,EAAEI,eAAe;IAC/B,UAAU,EAAEG;EACd,CAAC;EACD0D,OAAO,EAAE;IACPC,OAAO,EAAE/C,aAAa;IACtB,kBAAkB,EAAEO,qBAAqB;IACzCyC,GAAG,EAAEpC,SAAS;IACdqC,KAAK,EAAEjC,WAAW;IAClBkC,KAAK,EAAE7B;EACT,CAAC;EACD8B,MAAM,EAAE;IACNC,SAAS,EAAElB,cAAc;IACzB,WAAW,EAAEG,aAAa;IAC1B,aAAa,EAAEI;EACjB;AACF,CAAC","ignoreList":[]}
|
|
@@ -12,6 +12,8 @@ export type { PresentationShellProps } from "./PresentationShell";
|
|
|
12
12
|
export { PageHeader, ProjectPageHeader, TabHeader } from "./headers";
|
|
13
13
|
export type { PageHeaderProps, ProjectPageHeaderProps, TabHeaderProps, } from "./headers";
|
|
14
14
|
export { FloatingControls } from "./FloatingControls";
|
|
15
|
+
export { MessageDialog, DocLinkContext, messageComponents, } from "./MessageDialog";
|
|
16
|
+
export type { MessageDialogProps, MessageDialogSize, OpenArticleHandler, } from "./MessageDialog";
|
|
15
17
|
export { HelpAndSupportMenu } from "./HelpAndSupportMenu";
|
|
16
18
|
export type { HelpAndSupportMenuProps } from "./HelpAndSupportMenu";
|
|
17
19
|
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,EA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GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,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"}
|
|
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;AACz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AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,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"}
|
|
@@ -10,6 +10,7 @@ export { RoundAvatar } from "./RoundAvatar";
|
|
|
10
10
|
export { PresentationShell, StyledPagePaper } from "./PresentationShell";
|
|
11
11
|
export { PageHeader, ProjectPageHeader, TabHeader } from "./headers";
|
|
12
12
|
export { FloatingControls } from "./FloatingControls";
|
|
13
|
+
export { MessageDialog, DocLinkContext, messageComponents } from "./MessageDialog";
|
|
13
14
|
export { HelpAndSupportMenu } from "./HelpAndSupportMenu";
|
|
14
15
|
export { LinkingCommandsButton } from "./LinkingCommandsButton";
|
|
15
16
|
export { LinkBranchOrPullRequestDialog } from "./LinkBranchOrPullRequestDialog";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["MainLogo","RoundAvatar","PresentationShell","StyledPagePaper","PageHeader","ProjectPageHeader","TabHeader","FloatingControls","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"],"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 { 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\";\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,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","ignoreList":[]}
|
|
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"],"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\";\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","ignoreList":[]}
|