@forge/react 11.0.1-next.0 → 11.1.0-next.2
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/CHANGELOG.md +12 -0
- package/out/components/index.d.ts +1 -2
- package/out/components/index.d.ts.map +1 -1
- package/out/components/index.js +1 -2
- package/out/components/ui-kit-components.d.ts +342 -61
- package/out/components/ui-kit-components.d.ts.map +1 -1
- package/out/components/ui-kit-components.js +289 -1
- package/package.json +8 -4
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,66 +1,354 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// This file is partially generated by the `yarn run add-component-jsdoc` command (also the prebuild script in the package.json).
|
|
3
|
+
// The manual step involved is to:
|
|
4
|
+
// 1. import the new component type from the forge-react-types package, e.g. `TBadge`
|
|
5
|
+
// 2. add the export statement for the new component, e.g. `export const Badge = 'Badge' as unknown as TBadge<ForgeElement>;`
|
|
6
|
+
// 3. either run the `yarn run add-component-jsdoc` command or manually add the JSDoc comment for the new component
|
|
7
|
+
// or the build process will automatically add the JSDoc comment during `bolt build`
|
|
8
|
+
// For more information, please see: https://hello.atlassian.net/wiki/x/SI2n0w?atlOrigin=eyJpIjoiYjJhOTliZmZmYWE1NDE5ZjgzOWU1Y2ViZWI3Yjk3NTMiLCJwIjoiYyJ9
|
|
2
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
10
|
exports.TabList = exports.Tab = exports.StackBarChart = exports.Stack = exports.Spinner = exports.SingleValueChart = exports.SectionMessageAction = exports.SectionMessage = exports.Select = exports.Range = exports.RadioGroup = exports.Radio = exports.ProgressTracker = exports.ProgressBar = exports.PieChart = exports.ModalTransition = exports.ModalTitle = exports.ModalHeader = exports.ModalFooter = exports.ModalBody = exports.Modal = exports.Lozenge = exports.LoadingButton = exports.ListItem = exports.List = exports.LinkButton = exports.LineChart = exports.Label = exports.Inline = exports.Icon = exports.HorizontalStackBarChart = exports.HorizontalBarChart = exports.HelperMessage = exports.Heading = exports.FormSection = exports.FormHeader = exports.FormFooter = exports.Form = exports.ErrorMessage = exports.EmptyState = exports.DatePicker = exports.CodeBlock = exports.Code = exports.Checkbox = exports.Calendar = exports.ButtonGroup = exports.Button = exports.Box = exports.BarChart = exports.Badge = void 0;
|
|
4
|
-
exports.RequiredAsterisk = exports.ValidMessage = exports.Tooltip = exports.Toggle = exports.TimePicker = exports.Textfield = exports.TextArea = exports.TagGroup = exports.Tag = exports.Tabs = exports.TabPanel = void 0;
|
|
11
|
+
exports.RequiredAsterisk = exports.ValidMessage = exports.Text = exports.Tooltip = exports.Toggle = exports.TimePicker = exports.Textfield = exports.TextArea = exports.TagGroup = exports.Tag = exports.Tabs = exports.TabPanel = void 0;
|
|
12
|
+
/**
|
|
13
|
+
* A badge is a visual indicator for numeric values such as tallies and scores.
|
|
14
|
+
*
|
|
15
|
+
* @see [Badge](https://developer.atlassian.com/platform/forge/ui-kit/components/badge/) in UI Kit documentation for more information
|
|
16
|
+
*/
|
|
5
17
|
exports.Badge = 'Badge';
|
|
18
|
+
/** A visual representation of data using rectangular bars of varying heights to compare different categories or values. */
|
|
6
19
|
exports.BarChart = 'BarChart';
|
|
20
|
+
/**
|
|
21
|
+
* A box is a generic container that provides managed access to design tokens.
|
|
22
|
+
*
|
|
23
|
+
* @see [Box](https://developer.atlassian.com/platform/forge/ui-kit/components/box/) in UI Kit documentation for more information
|
|
24
|
+
*/
|
|
7
25
|
exports.Box = 'Box';
|
|
26
|
+
/**
|
|
27
|
+
* A button triggers an event or action. They let users know what will happen next.
|
|
28
|
+
*
|
|
29
|
+
* @see [Button](https://developer.atlassian.com/platform/forge/ui-kit/components/button/) in UI Kit documentation for more information
|
|
30
|
+
*/
|
|
8
31
|
exports.Button = 'Button';
|
|
32
|
+
/**
|
|
33
|
+
* A button group gives users access to frequently performed, related actions.
|
|
34
|
+
*
|
|
35
|
+
* @see [ButtonGroup](https://developer.atlassian.com/platform/forge/ui-kit/components/button-group/) in UI Kit documentation for more information
|
|
36
|
+
*/
|
|
9
37
|
exports.ButtonGroup = 'ButtonGroup';
|
|
38
|
+
/**
|
|
39
|
+
* An interactive calendar for date selection experiences.
|
|
40
|
+
*
|
|
41
|
+
* @see [Calendar](https://developer.atlassian.com/platform/forge/ui-kit/components/calendar/) in UI Kit documentation for more information
|
|
42
|
+
*/
|
|
10
43
|
exports.Calendar = 'Calendar';
|
|
44
|
+
/**
|
|
45
|
+
* A checkbox is an input control that allows a user to select one or more options from a number of choices.
|
|
46
|
+
*
|
|
47
|
+
* @see [Checkbox](https://developer.atlassian.com/platform/forge/ui-kit/components/checkbox/) in UI Kit documentation for more information
|
|
48
|
+
*/
|
|
11
49
|
exports.Checkbox = 'Checkbox';
|
|
50
|
+
/**
|
|
51
|
+
* Code highlights short strings of code snippets inline with body text.
|
|
52
|
+
*
|
|
53
|
+
* @see [Code](https://developer.atlassian.com/platform/forge/ui-kit/components/code/) in UI Kit documentation for more information
|
|
54
|
+
*/
|
|
12
55
|
exports.Code = 'Code';
|
|
56
|
+
/**
|
|
57
|
+
* Code highlights short strings of code snippets inline with body text.
|
|
58
|
+
*
|
|
59
|
+
* @see [CodeBlock](https://developer.atlassian.com/platform/forge/ui-kit/components/code-block/) in UI Kit documentation for more information
|
|
60
|
+
*/
|
|
13
61
|
exports.CodeBlock = 'CodeBlock';
|
|
62
|
+
/**
|
|
63
|
+
* A date picker allows the user to select a particular date.
|
|
64
|
+
*
|
|
65
|
+
* @see [DatePicker](https://developer.atlassian.com/platform/forge/ui-kit/components/date-picker/) in UI Kit documentation for more information
|
|
66
|
+
*/
|
|
14
67
|
exports.DatePicker = 'DatePicker';
|
|
68
|
+
/**
|
|
69
|
+
* An empty state appears when there is no data to display and describes what the user can do next.
|
|
70
|
+
*
|
|
71
|
+
* @see [EmptyState](https://developer.atlassian.com/platform/forge/ui-kit/components/empty-state/) in UI Kit documentation for more information
|
|
72
|
+
*/
|
|
15
73
|
exports.EmptyState = 'EmptyState';
|
|
74
|
+
/**
|
|
75
|
+
* An error message is used to tell a user that the field input is invalid.
|
|
76
|
+
* For example, an error message could be "Invalid username, needs to be more than 4 characters".
|
|
77
|
+
*
|
|
78
|
+
* @see [ErrorMessage](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#error-message) in UI Kit documentation for more information
|
|
79
|
+
*/
|
|
16
80
|
exports.ErrorMessage = 'ErrorMessage';
|
|
81
|
+
/**
|
|
82
|
+
* A form allows users to input information.
|
|
83
|
+
*
|
|
84
|
+
* @see [Form](https://developer.atlassian.com/platform/forge/ui-kit/components/form/) in UI Kit documentation for more information
|
|
85
|
+
*/
|
|
17
86
|
exports.Form = 'Form';
|
|
87
|
+
/**
|
|
88
|
+
* Use a form footer to set the content at the end of the form. This is used for a button that submits the form.
|
|
89
|
+
*
|
|
90
|
+
* This is positioned after the last field in the form.
|
|
91
|
+
*
|
|
92
|
+
* @see [FormFooter](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#form-footer) in UI Kit documentation for more information
|
|
93
|
+
*/
|
|
18
94
|
exports.FormFooter = 'FormFooter';
|
|
95
|
+
/**
|
|
96
|
+
* Use a form header to describe the contents of the form. This is the title and description of the form.
|
|
97
|
+
* If your form contains required fields, the form header is also where you should include a legend
|
|
98
|
+
* for sighted users to know that * indicates a required field.
|
|
99
|
+
*
|
|
100
|
+
* @see [FormHeader](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#form-header) in UI Kit documentation for more information
|
|
101
|
+
*/
|
|
19
102
|
exports.FormHeader = 'FormHeader';
|
|
103
|
+
/**
|
|
104
|
+
* Use a form section to group related information together, so that longer forms are easier to understand.
|
|
105
|
+
* There can be multiple form sections in one form.
|
|
106
|
+
*
|
|
107
|
+
* @see [FormSection](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#form-section) in UI Kit documentation for more information
|
|
108
|
+
*/
|
|
20
109
|
exports.FormSection = 'FormSection';
|
|
110
|
+
/**
|
|
111
|
+
* A heading is a typography component used to display text in different sizes and formats.
|
|
112
|
+
*
|
|
113
|
+
* @see [Heading](https://developer.atlassian.com/platform/forge/ui-kit/components/heading/) in UI Kit documentation for more information
|
|
114
|
+
*/
|
|
21
115
|
exports.Heading = 'Heading';
|
|
116
|
+
/**
|
|
117
|
+
* A helper message tells the user what kind of input the field takes.
|
|
118
|
+
* For example, a helper message could be "Password should be more than 4 characters".
|
|
119
|
+
*
|
|
120
|
+
* @see [HelperMessage](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#helper-message) in UI Kit documentation for more information
|
|
121
|
+
*/
|
|
22
122
|
exports.HelperMessage = 'HelperMessage';
|
|
123
|
+
/** A visual representation of data using horizontal rectangular bars of varying lengths to compare different categories or values. */
|
|
23
124
|
exports.HorizontalBarChart = 'HorizontalBarChart';
|
|
125
|
+
/** A visual representation of data using horizontal rectangular bars of varying lengths to demonstrate comparisons between categories of data. */
|
|
24
126
|
exports.HorizontalStackBarChart = 'HorizontalStackBarChart';
|
|
127
|
+
/**
|
|
128
|
+
* An icon is a visual representation of a command, device, directory, or common action.
|
|
129
|
+
*
|
|
130
|
+
* @see [Icon](https://developer.atlassian.com/platform/forge/ui-kit/components/icon/) in UI Kit documentation for more information
|
|
131
|
+
*/
|
|
25
132
|
exports.Icon = 'Icon';
|
|
133
|
+
/**
|
|
134
|
+
* An inline manages the horizontal layout of direct children using flexbox.
|
|
135
|
+
*
|
|
136
|
+
* @see [Inline](https://developer.atlassian.com/platform/forge/ui-kit/components/inline/) in UI Kit documentation for more information
|
|
137
|
+
*/
|
|
26
138
|
exports.Inline = 'Inline';
|
|
139
|
+
/**
|
|
140
|
+
* A label represents a caption for an item in a user interface.
|
|
141
|
+
*
|
|
142
|
+
* @see [Label](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#label) in UI Kit documentation for more information
|
|
143
|
+
*/
|
|
27
144
|
exports.Label = 'Label';
|
|
145
|
+
/** A visual representation of data showing trends. */
|
|
28
146
|
exports.LineChart = 'LineChart';
|
|
147
|
+
/**
|
|
148
|
+
* Renders a link in the style of a button.
|
|
149
|
+
*
|
|
150
|
+
* @see [LinkButton](https://developer.atlassian.com/platform/forge/ui-kit/components/button/#linkbutton-props) in UI Kit documentation for more information
|
|
151
|
+
*/
|
|
29
152
|
exports.LinkButton = 'LinkButton';
|
|
153
|
+
/**
|
|
154
|
+
* An unordered (bulleted) or ordered (numbered) list.
|
|
155
|
+
*
|
|
156
|
+
* @see [List](https://developer.atlassian.com/platform/forge/ui-kit/components/list/) in UI Kit documentation for more information
|
|
157
|
+
*/
|
|
30
158
|
exports.List = 'List';
|
|
31
159
|
exports.ListItem = 'ListItem';
|
|
160
|
+
/**
|
|
161
|
+
* A button that shows an spinner as an overlay on the button when you set an isLoading prop to true.
|
|
162
|
+
*
|
|
163
|
+
* @see [LoadingButton](https://developer.atlassian.com/platform/forge/ui-kit/components/button/#loadingbutton-props) in UI Kit documentation for more information
|
|
164
|
+
*/
|
|
32
165
|
exports.LoadingButton = 'LoadingButton';
|
|
166
|
+
/**
|
|
167
|
+
* A lozenge is a visual indicator used to highlight an item's status for quick recognition.
|
|
168
|
+
*
|
|
169
|
+
* @see [Lozenge](https://developer.atlassian.com/platform/forge/ui-kit/components/lozenge/) in UI Kit documentation for more information
|
|
170
|
+
*/
|
|
33
171
|
exports.Lozenge = 'Lozenge';
|
|
172
|
+
/**
|
|
173
|
+
* A modal dialog displays content that requires user interaction, in a layer above the page.
|
|
174
|
+
*
|
|
175
|
+
* @see [Modal](https://developer.atlassian.com/platform/forge/ui-kit/components/modal/) in UI Kit documentation for more information
|
|
176
|
+
*/
|
|
34
177
|
exports.Modal = 'Modal';
|
|
178
|
+
/**
|
|
179
|
+
* A modal body is used to display the main content of a modal.
|
|
180
|
+
*
|
|
181
|
+
* @see [ModalBody](https://developer.atlassian.com/platform/forge/ui-kit/components/modal/#body) in UI Kit documentation for more information
|
|
182
|
+
*/
|
|
35
183
|
exports.ModalBody = 'ModalBody';
|
|
184
|
+
/**
|
|
185
|
+
* A modal footer often contains a primary action and the ability to cancel and close the dialog,
|
|
186
|
+
* though can contain any React element.
|
|
187
|
+
*
|
|
188
|
+
* @see [ModalFooter](https://developer.atlassian.com/platform/forge/ui-kit/components/modal/#footer) in UI Kit documentation for more information
|
|
189
|
+
*/
|
|
36
190
|
exports.ModalFooter = 'ModalFooter';
|
|
191
|
+
/**
|
|
192
|
+
* A modal header contains the title of the modal and can contain other React elements such as a close button.
|
|
193
|
+
*
|
|
194
|
+
* @see [ModalHeader](https://developer.atlassian.com/platform/forge/ui-kit/components/modal/#header) in UI Kit documentation for more information
|
|
195
|
+
*/
|
|
37
196
|
exports.ModalHeader = 'ModalHeader';
|
|
197
|
+
/**
|
|
198
|
+
* A modal title is used to display a title within a modal.
|
|
199
|
+
*
|
|
200
|
+
* @see [ModalTitle](https://developer.atlassian.com/platform/forge/ui-kit/components/modal/#title) in UI Kit documentation for more information
|
|
201
|
+
*/
|
|
38
202
|
exports.ModalTitle = 'ModalTitle';
|
|
203
|
+
/**
|
|
204
|
+
* A modal transition wraps a modal to provide a fluid transition upon opening and closing.
|
|
205
|
+
*
|
|
206
|
+
* @see [ModalTransition](https://developer.atlassian.com/platform/forge/ui-kit/components/modal/#modal-transition) in UI Kit documentation for more information
|
|
207
|
+
*/
|
|
39
208
|
exports.ModalTransition = 'ModalTransition';
|
|
209
|
+
/** A visual representation of data proportions in a circular format. */
|
|
40
210
|
exports.PieChart = 'PieChart';
|
|
211
|
+
/**
|
|
212
|
+
* A progress bar communicates the status of a system process.
|
|
213
|
+
*
|
|
214
|
+
* @see [ProgressBar](https://developer.atlassian.com/platform/forge/ui-kit/components/progress-bar/) in UI Kit documentation for more information
|
|
215
|
+
*/
|
|
41
216
|
exports.ProgressBar = 'ProgressBar';
|
|
217
|
+
/**
|
|
218
|
+
* A progress tracker displays the steps and progress through a journey.
|
|
219
|
+
*
|
|
220
|
+
* @see [ProgressTracker](https://developer.atlassian.com/platform/forge/ui-kit/components/progress-tracker/) in UI Kit documentation for more information
|
|
221
|
+
*/
|
|
42
222
|
exports.ProgressTracker = 'ProgressTracker';
|
|
223
|
+
/**
|
|
224
|
+
* A radio input allows users to select only one option from a number of choices. Radio is generally displayed in a radio group.
|
|
225
|
+
*
|
|
226
|
+
* @see [Radio](https://developer.atlassian.com/platform/forge/ui-kit/components/radio/) in UI Kit documentation for more information
|
|
227
|
+
*/
|
|
43
228
|
exports.Radio = 'Radio';
|
|
229
|
+
/**
|
|
230
|
+
* A radio input allows users to select only one option from a number of choices. Radio is generally displayed in a radio group.
|
|
231
|
+
*
|
|
232
|
+
* @see [RadioGroup](https://developer.atlassian.com/platform/forge/ui-kit/components/radio-group/) in UI Kit documentation for more information
|
|
233
|
+
*/
|
|
44
234
|
exports.RadioGroup = 'RadioGroup';
|
|
235
|
+
/**
|
|
236
|
+
* A range lets users choose an approximate value on a slider.
|
|
237
|
+
*
|
|
238
|
+
* @see [Range](https://developer.atlassian.com/platform/forge/ui-kit/components/range/) in UI Kit documentation for more information
|
|
239
|
+
*/
|
|
45
240
|
exports.Range = 'Range';
|
|
241
|
+
/**
|
|
242
|
+
* Select allows users to make a single selection or multiple selections from a list of options.
|
|
243
|
+
*
|
|
244
|
+
* @see [Select](https://developer.atlassian.com/platform/forge/ui-kit/components/select/) in UI Kit documentation for more information
|
|
245
|
+
*/
|
|
46
246
|
exports.Select = 'Select';
|
|
247
|
+
/**
|
|
248
|
+
* A section message is used to alert users to a particular section of the screen.
|
|
249
|
+
*
|
|
250
|
+
* @see [SectionMessage](https://developer.atlassian.com/platform/forge/ui-kit/components/section-message/) in UI Kit documentation for more information
|
|
251
|
+
*/
|
|
47
252
|
exports.SectionMessage = 'SectionMessage';
|
|
253
|
+
/**
|
|
254
|
+
* A section message is used to alert users to a particular section of the screen.
|
|
255
|
+
*
|
|
256
|
+
* @see [SectionMessageAction](https://developer.atlassian.com/platform/forge/ui-kit/components/section-message/#section-message-action) in UI Kit documentation for more information
|
|
257
|
+
*/
|
|
48
258
|
exports.SectionMessageAction = 'SectionMessageAction';
|
|
259
|
+
/**
|
|
260
|
+
* A visualization representation of information with a single value as its metrics.
|
|
261
|
+
* The metric can be displayed with a increase/decrease indicator to display trends or changes over time.
|
|
262
|
+
*/
|
|
49
263
|
exports.SingleValueChart = 'SingleValueChart';
|
|
264
|
+
/**
|
|
265
|
+
* A spinner is an animated spinning icon that lets users know content is being loaded.
|
|
266
|
+
*
|
|
267
|
+
* @see [Spinner](https://developer.atlassian.com/platform/forge/ui-kit/components/spinner/) in UI Kit documentation for more information
|
|
268
|
+
*/
|
|
50
269
|
exports.Spinner = 'Spinner';
|
|
270
|
+
/**
|
|
271
|
+
* A stack manages the vertical layout of direct children using flexbox.
|
|
272
|
+
*
|
|
273
|
+
* @see [Stack](https://developer.atlassian.com/platform/forge/ui-kit/components/stack/) in UI Kit documentation for more information
|
|
274
|
+
*/
|
|
51
275
|
exports.Stack = 'Stack';
|
|
276
|
+
/** A visual representation of data using rectangular bars of varying heights to demonstrate comparisons between categories of data. */
|
|
52
277
|
exports.StackBarChart = 'StackBarChart';
|
|
278
|
+
/**
|
|
279
|
+
* `Tab` represents an individual tab displayed in a TabList.
|
|
280
|
+
*
|
|
281
|
+
* @see [Tab](https://developer.atlassian.com/platform/forge/ui-kit/components/tabs/) in UI Kit documentation for more information
|
|
282
|
+
*/
|
|
53
283
|
exports.Tab = 'Tab';
|
|
284
|
+
/**
|
|
285
|
+
* A `TabList` groups `Tab` components together.
|
|
286
|
+
*
|
|
287
|
+
* @see [TabList](https://developer.atlassian.com/platform/forge/ui-kit/components/tab-list/) in UI Kit documentation for more information
|
|
288
|
+
*/
|
|
54
289
|
exports.TabList = 'TabList';
|
|
290
|
+
/**
|
|
291
|
+
* A `TabPanel` houses the contents of a `Tab`.
|
|
292
|
+
*
|
|
293
|
+
* @see [TabPanel](https://developer.atlassian.com/platform/forge/ui-kit/components/tabs/) in UI Kit documentation for more information
|
|
294
|
+
*/
|
|
55
295
|
exports.TabPanel = 'TabPanel';
|
|
296
|
+
/**
|
|
297
|
+
* Tabs are used to organize content by grouping similar information on the same page.
|
|
298
|
+
*
|
|
299
|
+
* @see [Tabs](https://developer.atlassian.com/platform/forge/ui-kit/components/tabs/) in UI Kit documentation for more information
|
|
300
|
+
*/
|
|
56
301
|
exports.Tabs = 'Tabs';
|
|
57
302
|
exports.Tag = 'Tag';
|
|
303
|
+
/**
|
|
304
|
+
* A tag group controls the layout and alignment for a collection of tags.
|
|
305
|
+
*
|
|
306
|
+
* @see [TagGroup](https://developer.atlassian.com/platform/forge/ui-kit/components/tag-group/) in UI Kit documentation for more information
|
|
307
|
+
*/
|
|
58
308
|
exports.TagGroup = 'TagGroup';
|
|
309
|
+
/**
|
|
310
|
+
* A text area lets users enter long form text which spans over multiple lines.
|
|
311
|
+
*
|
|
312
|
+
* @see [TextArea](https://developer.atlassian.com/platform/forge/ui-kit/components/text-area/) in UI Kit documentation for more information
|
|
313
|
+
*/
|
|
59
314
|
exports.TextArea = 'TextArea';
|
|
315
|
+
/**
|
|
316
|
+
* A text field is an input that allows a user to write or edit text.
|
|
317
|
+
*
|
|
318
|
+
* @see [Textfield](https://developer.atlassian.com/platform/forge/ui-kit/components/textfield/) in UI Kit documentation for more information
|
|
319
|
+
*/
|
|
60
320
|
exports.Textfield = 'Textfield';
|
|
321
|
+
/**
|
|
322
|
+
* A time picker allows the user to select a specific time.
|
|
323
|
+
*
|
|
324
|
+
* @see [TimePicker](https://developer.atlassian.com/platform/forge/ui-kit/components/time-picker/) in UI Kit documentation for more information
|
|
325
|
+
*/
|
|
61
326
|
exports.TimePicker = 'TimePicker';
|
|
327
|
+
/**
|
|
328
|
+
* A toggle is used to view or switch between enabled or disabled states.
|
|
329
|
+
*
|
|
330
|
+
* @see [Toggle](https://developer.atlassian.com/platform/forge/ui-kit/components/toggle/) in UI Kit documentation for more information
|
|
331
|
+
*/
|
|
62
332
|
exports.Toggle = 'Toggle';
|
|
333
|
+
/**
|
|
334
|
+
* A `Tooltip` is a floating, non-actionable label used to explain a user interface element or feature.
|
|
335
|
+
*
|
|
336
|
+
* @see [Tooltip](https://developer.atlassian.com/platform/forge/ui-kit/components/tooltip/) in UI Kit documentation for more information
|
|
337
|
+
*/
|
|
63
338
|
exports.Tooltip = 'Tooltip';
|
|
339
|
+
/**
|
|
340
|
+
* A typography component used to display body text.
|
|
341
|
+
* It can also include inline components such as
|
|
342
|
+
* [Badge](https://developer.atlassian.com/platform/forge/ui-kit/components/badge/) and
|
|
343
|
+
* [Lozenge](https://developer.atlassian.com/platform/forge/ui-kit/components/lozenge/).
|
|
344
|
+
*/
|
|
345
|
+
exports.Text = 'Text';
|
|
346
|
+
/**
|
|
347
|
+
* A valid message is used to tell a user that the field input is valid.
|
|
348
|
+
* For example, a helper message could be "Nice one, this username is available".
|
|
349
|
+
*
|
|
350
|
+
* @see [ValidMessage](https://developer.atlassian.com/platform/forge/ui-kit/components/form/#validation-message) in UI Kit documentation for more information
|
|
351
|
+
*/
|
|
64
352
|
exports.ValidMessage = 'ValidMessage';
|
|
65
353
|
// Additional components without props
|
|
66
354
|
exports.RequiredAsterisk = 'RequiredAsterisk';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/react",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.0-next.2",
|
|
4
4
|
"description": "Forge React reconciler",
|
|
5
5
|
"author": "Atlassian",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
"types": "out/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"build": "yarn run clean && yarn run compile",
|
|
11
|
+
"prebuild": "yarn run add-component-jsdoc",
|
|
11
12
|
"clean": "rm -rf ./out && rm -f tsconfig.tsbuildinfo",
|
|
12
13
|
"compile": "tsc -p tsconfig.json",
|
|
13
|
-
"pack": "./build/bundle-types.sh"
|
|
14
|
+
"pack": "./build/bundle-types.sh",
|
|
15
|
+
"add-component-jsdoc": "ts-node ./build/add-component-jsdoc.ts"
|
|
14
16
|
},
|
|
15
17
|
"exports": {
|
|
16
18
|
".": "./out/index.js",
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
"dependencies": {
|
|
20
22
|
"@atlaskit/adf-schema": "^46.0.0",
|
|
21
23
|
"@atlaskit/adf-utils": "^19.12.0",
|
|
22
|
-
"@atlaskit/forge-react-types": "^0.
|
|
24
|
+
"@atlaskit/forge-react-types": "^0.37.13",
|
|
23
25
|
"@forge/bridge": "^4.5.0",
|
|
24
26
|
"@forge/i18n": "0.0.4",
|
|
25
27
|
"@types/react-reconciler": "^0.28.8",
|
|
@@ -31,7 +33,9 @@
|
|
|
31
33
|
"uuid": "^9.0.1"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
|
-
"@testing-library/react-hooks": "^8.0.1"
|
|
36
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
37
|
+
"ts-morph": "^22.0.0",
|
|
38
|
+
"ts-node": "^10.9.2"
|
|
35
39
|
},
|
|
36
40
|
"publishConfig": {
|
|
37
41
|
"registry": "https://packages.atlassian.com/api/npm/npm-public/"
|