@kentico/xperience-admin-base 23.0.0 → 23.0.1

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/entry.d.ts CHANGED
@@ -1,6 +1,51 @@
1
1
  /// <reference types="react" />
2
2
 
3
+ import { DraggableProvidedDragHandleProps } from 'react-beautiful-dnd';
3
4
  import { default as React_2 } from 'react';
5
+ import { RefObject } from 'react';
6
+
7
+ declare interface BaseButtonProps extends UITestProps {
8
+ readonly renderComponent: (props: InjectedProps) => React.ReactNode;
9
+ readonly size?: ButtonSize;
10
+ readonly color?: ButtonColor;
11
+ readonly label?: string;
12
+ readonly icon?: IconName;
13
+ readonly trailingIcon?: IconName;
14
+ readonly active?: boolean;
15
+ readonly badge?: boolean;
16
+ readonly fillContainer?: boolean;
17
+ readonly destructive?: boolean;
18
+ readonly inProgress?: boolean;
19
+ readonly disabled?: boolean;
20
+ readonly tabIndex?: number;
21
+ readonly dragHandleProps?: DraggableProvidedDragHandleProps;
22
+ }
23
+
24
+ declare enum ButtonColor {
25
+ Primary = 'primary',
26
+ Secondary = 'secondary',
27
+ Tertiary = 'tertiary',
28
+ Quinary = 'quinary'
29
+ }
30
+
31
+ declare interface ButtonProps extends HTMLButtonProps, Omit<BaseButtonProps, 'renderComponent'> {
32
+ readonly type?: ButtonType;
33
+ readonly buttonRef?: RefObject<HTMLButtonElement>;
34
+ readonly tooltipAppendTo? : Element;
35
+ }
36
+
37
+ declare enum ButtonSize {
38
+ XS = 'XS',
39
+ S = 'S',
40
+ M = 'M',
41
+ L = 'L'
42
+ }
43
+
44
+ declare enum ButtonType {
45
+ Button = 'button',
46
+ Submit = 'submit',
47
+ Reset = 'reset'
48
+ }
4
49
 
5
50
  /**
6
51
  * Command result interface.
@@ -36,6 +81,26 @@ declare interface CommandContextType {
36
81
  */
37
82
  export declare type CommandExecutor<TData, TResponse> = (data?: TData, files?: FileList) => Promise<TResponse>;
38
83
 
84
+ declare interface DialogAction extends Omit<DialogFooterActionProps, 'color'> {}
85
+
86
+ declare interface DialogFooterActionProps extends Pick<ButtonProps,
87
+ 'icon' |
88
+ 'trailingIcon' |
89
+ 'destructive' |
90
+ 'disabled' |
91
+ 'inProgress' |
92
+ 'color' |
93
+ 'onClick'>, UITestProps {
94
+ readonly label: string;
95
+ }
96
+
97
+ /**
98
+ * Represents dialog handlers exposing submit action.
99
+ */
100
+ declare interface DialogHandlers {
101
+ readonly submitAction: DialogAction;
102
+ }
103
+
39
104
  /**
40
105
  * Represents information about form field.
41
106
  */
@@ -82,6 +147,455 @@ export declare interface FormComponentProps extends FieldInfo {
82
147
  readonly debounceValueChange?: boolean;
83
148
  }
84
149
 
150
+ declare type HTMLButtonProps = Pick<React.ButtonHTMLAttributes<HTMLButtonElement>, 'title' | 'onClick'>;
151
+
152
+ declare type IconName = keyof typeof Icons;
153
+
154
+ declare const Icons = {
155
+ 'xp-a-lowercase': aLowercase,
156
+ 'xp-accordion': accordion,
157
+ 'xp-add-module': addModule,
158
+ 'xp-android': android,
159
+ 'xp-apple': apple,
160
+ 'xp-arrow-crooked-left': arrowCrookedLeft,
161
+ 'xp-arrow-crooked-right': arrowCrookedRight,
162
+ 'xp-arrow-curved-left': arrowCurvedLeft,
163
+ 'xp-arrow-curved-right': arrowCurvedRight,
164
+ 'xp-arrow-double-left': arrowDoubleLeft,
165
+ 'xp-arrow-double-right': arrowDoubleRight,
166
+ 'xp-arrow-down-circle': arrowDownCircle,
167
+ 'xp-arrow-down-line': arrowDownLine,
168
+ 'xp-arrow-down': arrowDown,
169
+ 'xp-arrow-enter-square': arrowEnterSquare,
170
+ 'xp-arrow-leave-square': arrowLeaveSquare,
171
+ 'xp-arrow-left-circle': arrowLeftCircle,
172
+ 'xp-arrow-left-rect': arrowLeftRect,
173
+ 'xp-arrow-left': arrowLeft,
174
+ 'xp-arrow-right-circle': arrowRightCircle,
175
+ 'xp-arrow-right-rect': arrowRightRect,
176
+ 'xp-arrow-right-top-square': arrowRightTopSquare,
177
+ 'xp-arrow-right': arrowRight,
178
+ 'xp-arrow-u-left': arrowULeft,
179
+ 'xp-arrow-u-right': arrowURight,
180
+ 'xp-arrow-up-circle': arrowUpCircle,
181
+ 'xp-arrow-up-line': arrowUpLine,
182
+ 'xp-arrow-up': arrowUp,
183
+ 'xp-arrows-crooked': arrowsCrooked,
184
+ 'xp-arrows-h': arrowsH,
185
+ 'xp-arrows-v': arrowsV,
186
+ 'xp-arrows': arrows,
187
+ 'xp-b': b,
188
+ 'xp-badge': badge,
189
+ 'xp-ban-sign': banSign,
190
+ 'xp-bell': bell,
191
+ 'xp-bezier-scheme': bezierScheme,
192
+ 'xp-bin': bin,
193
+ 'xp-binder': binder,
194
+ 'xp-book-opened': bookOpened,
195
+ 'xp-box-cart': boxCart,
196
+ 'xp-box': box,
197
+ 'xp-boxes': boxes,
198
+ 'xp-braces-octothorpe': bracesOctothorpe,
199
+ 'xp-braces': braces,
200
+ 'xp-brand-bing': brandBing,
201
+ 'xp-brand-facebook': brandFacebook,
202
+ 'xp-brand-google-plus': brandGooglePlus,
203
+ 'xp-brand-google': brandGoogle,
204
+ 'xp-brand-instagram': brandInstagram,
205
+ 'xp-brand-linkedin': brandLinkedin,
206
+ 'xp-brand-mstranslator': brandMstranslator,
207
+ 'xp-brand-open-id': brandOpenId,
208
+ 'xp-brand-pinterest': brandPinterest,
209
+ 'xp-brand-sharepoint': brandSharepoint,
210
+ 'xp-brand-twitter': brandTwitter,
211
+ 'xp-brand-youtube': brandYoutube,
212
+ 'xp-breadcrumb': breadcrumb,
213
+ 'xp-briefcase': briefcase,
214
+ 'xp-broom': broom,
215
+ 'xp-brush-slashed': brushSlashed,
216
+ 'xp-brush': brush,
217
+ 'xp-bubble-censored': bubbleCensored,
218
+ 'xp-bubble-check': bubbleCheck,
219
+ 'xp-bubble-hide': bubbleHide,
220
+ 'xp-bubble-inverted': bubbleInverted,
221
+ 'xp-bubble-pencil': bubblePencil,
222
+ 'xp-bubble-show': bubbleShow,
223
+ 'xp-bubble-times': bubbleTimes,
224
+ 'xp-bubble-with-lines': bubbleWithLines,
225
+ 'xp-bubble': bubble,
226
+ 'xp-bubbles': bubbles,
227
+ 'xp-bucket-shovel': bucketShovel,
228
+ 'xp-bug': bug,
229
+ 'xp-building-block': buildingBlock,
230
+ 'xp-building': building,
231
+ 'xp-bullseye': bullseye,
232
+ 'xp-c-sharp': cSharp,
233
+ 'xp-calendar-number': calendarNumber,
234
+ 'xp-calendar': calendar,
235
+ 'xp-camera': camera,
236
+ 'xp-cancel': cancel,
237
+ 'xp-caret-down': caretDown,
238
+ 'xp-caret-left-aligned-right': caretLeftAlignedRight,
239
+ 'xp-caret-left': caretLeft,
240
+ 'xp-caret-right-aligned-left': caretRightAlignedLeft,
241
+ 'xp-caret-right-down': caretRightDown,
242
+ 'xp-caret-right': caretRight,
243
+ 'xp-caret-up': caretUp,
244
+ 'xp-carousel': carousel,
245
+ 'xp-cb-check-disabled': cbCheckDisabled,
246
+ 'xp-cb-check-inverted': cbCheckInverted,
247
+ 'xp-cb-check-minus': cbCheckMinus,
248
+ 'xp-cb-check-preview': cbCheckPreview,
249
+ 'xp-cb-check-sign': cbCheckSign,
250
+ 'xp-cb-check': cbCheck,
251
+ 'xp-cb-uncheck': cbUncheck,
252
+ 'xp-chain-broken': chainBroken,
253
+ 'xp-chain-slash': chainSlash,
254
+ 'xp-chain': chain,
255
+ 'xp-check-circle-inverted': checkCircleInverted,
256
+ 'xp-check-circle': checkCircle,
257
+ 'xp-check': check,
258
+ 'xp-checklist': checklist,
259
+ 'xp-chevron-double-down': chevronDoubleDown,
260
+ 'xp-chevron-double-left': chevronDoubleLeft,
261
+ 'xp-chevron-double-right': chevronDoubleRight,
262
+ 'xp-chevron-double-up': chevronDoubleUp,
263
+ 'xp-chevron-down-circle': chevronDownCircle,
264
+ 'xp-chevron-down-line': chevronDownLine,
265
+ 'xp-chevron-down-square': chevronDownSquare,
266
+ 'xp-chevron-down': chevronDown,
267
+ 'xp-chevron-left-circle': chevronLeftCircle,
268
+ 'xp-chevron-left-line': chevronLeftLine,
269
+ 'xp-chevron-left-square': chevronLeftSquare,
270
+ 'xp-chevron-left': chevronLeft,
271
+ 'xp-chevron-right-circle': chevronRightCircle,
272
+ 'xp-chevron-right-line': chevronRightLine,
273
+ 'xp-chevron-right-square': chevronRightSquare,
274
+ 'xp-chevron-right': chevronRight,
275
+ 'xp-chevron-up-circle': chevronUpCircle,
276
+ 'xp-chevron-up-line': chevronUpLine,
277
+ 'xp-chevron-up-square': chevronUpSquare,
278
+ 'xp-chevron-up': chevronUp,
279
+ 'xp-choice-multi-scheme': choiceMultiScheme,
280
+ 'xp-choice-single-scheme': choiceSingleScheme,
281
+ 'xp-choice-user-scheme': choiceUserScheme,
282
+ 'xp-chrome': chrome,
283
+ 'xp-circle-dashed': circleDashed,
284
+ 'xp-circle-inverted': circleInverted,
285
+ 'xp-circle-slashed': circleSlashed,
286
+ 'xp-circle-square': circleSquare,
287
+ 'xp-circle': circle,
288
+ 'xp-clapperboard': clapperboard,
289
+ 'xp-clipboard-checklist': clipboardChecklist,
290
+ 'xp-clipboard-list': clipboardList,
291
+ 'xp-clock': clock,
292
+ 'xp-cloud': cloud,
293
+ 'xp-cogwheel-square': cogwheelSquare,
294
+ 'xp-cogwheel': cogwheel,
295
+ 'xp-cogwheels': cogwheels,
296
+ 'xp-collapse-scheme': collapseScheme,
297
+ 'xp-collapse': collapse,
298
+ 'xp-compass': compass,
299
+ 'xp-convert': convert,
300
+ 'xp-cookie': cookie,
301
+ 'xp-crosshair-f': crosshairF,
302
+ 'xp-crosshair-o': crosshairO,
303
+ 'xp-cup': cup,
304
+ 'xp-custom-element': customElement,
305
+ 'xp-database': database,
306
+ 'xp-desktop': desktop,
307
+ 'xp-dialog-window-cogwheel': dialogWindowCogwheel,
308
+ 'xp-dialog-window': dialogWindow,
309
+ 'xp-diamond': diamond,
310
+ 'xp-doc-arrows': docArrows,
311
+ 'xp-doc-ban-sign': docBanSign,
312
+ 'xp-doc-copy': docCopy,
313
+ 'xp-doc-inverted': docInverted,
314
+ 'xp-doc-move': docMove,
315
+ 'xp-doc-paste': docPaste,
316
+ 'xp-doc-plus': docPlus,
317
+ 'xp-doc-torn': docTorn,
318
+ 'xp-doc-user': docUser,
319
+ 'xp-doc': doc,
320
+ 'xp-dollar-sign': dollarSign,
321
+ 'xp-dots-vertical': dotsVertical,
322
+ 'xp-down-dir': downDir,
323
+ 'xp-drawers': drawers,
324
+ 'xp-e-book': eBook,
325
+ 'xp-earth': earth,
326
+ 'xp-edge': edge,
327
+ 'xp-edit': edit,
328
+ 'xp-ekg-line': ekgLine,
329
+ 'xp-ellipsis': ellipsis,
330
+ 'xp-engage-users': engageUsers,
331
+ 'xp-exclamation-triangle-inverted': exclamationTriangleInverted,
332
+ 'xp-exclamation-triangle': exclamationTriangle,
333
+ 'xp-expand': expand,
334
+ 'xp-eye-slash': eyeSlash,
335
+ 'xp-eye': eye,
336
+ 'xp-f': f,
337
+ 'xp-factory': factory,
338
+ 'xp-file-pdf': filePdf,
339
+ 'xp-file': file,
340
+ 'xp-filter-1': filter1,
341
+ 'xp-firefox': firefox,
342
+ 'xp-flag': flag,
343
+ 'xp-folder-belt': folderBelt,
344
+ 'xp-folder-clock': folderClock,
345
+ 'xp-folder-inverted': folderInverted,
346
+ 'xp-folder-opened': folderOpened,
347
+ 'xp-folder': folder,
348
+ 'xp-form': form,
349
+ 'xp-funnel': funnel,
350
+ 'xp-gauge': gauge,
351
+ 'xp-gift': gift,
352
+ 'xp-graduate-cap': graduateCap,
353
+ 'xp-graph': graph,
354
+ 'xp-h-1': h1,
355
+ 'xp-h-2': h2,
356
+ 'xp-h-3': h3,
357
+ 'xp-h-4': h4,
358
+ 'xp-half-arrows-right-left': halfArrowsRightLeft,
359
+ 'xp-hat-moustache': hatMoustache,
360
+ 'xp-heart': heart,
361
+ 'xp-heartshake': heartshake,
362
+ 'xp-highlighter': highlighter,
363
+ 'xp-home': home,
364
+ 'xp-i-circle': iCircle,
365
+ 'xp-i': i,
366
+ 'xp-id-card': idCard,
367
+ 'xp-id-cards': idCards,
368
+ 'xp-indent': indent,
369
+ 'xp-integration-scheme': integrationScheme,
370
+ 'xp-intercom': intercom,
371
+ 'xp-internet-explorer': internetExplorer,
372
+ 'xp-invoice': invoice,
373
+ 'xp-kentico': kentico,
374
+ 'xp-key': key,
375
+ 'xp-l-article-map': lArticleMap,
376
+ 'xp-l-calendar-number-article': lCalendarNumberArticle,
377
+ 'xp-l-cols-2': lCols2,
378
+ 'xp-l-cols-20-60-20': lCols206020,
379
+ 'xp-l-cols-20-80': lCols2080,
380
+ 'xp-l-cols-25-50-25': lCols255025,
381
+ 'xp-l-cols-3': lCols3,
382
+ 'xp-l-cols-30-70': lCols3070,
383
+ 'xp-l-cols-4': lCols4,
384
+ 'xp-l-cols-70-30': lCols7030,
385
+ 'xp-l-cols-80-20': lCols8020,
386
+ 'xp-l-forms-2': lForms2,
387
+ 'xp-l-grid-2-2': lGrid22,
388
+ 'xp-l-grid-3-2': lGrid32,
389
+ 'xp-l-header-cols-2-footer': lHeaderCols2Footer,
390
+ 'xp-l-header-cols-3-footer': lHeaderCols3Footer,
391
+ 'xp-l-header-list-img': lHeaderListImg,
392
+ 'xp-l-header-menu-text': lHeaderMenuText,
393
+ 'xp-l-header-text': lHeaderText,
394
+ 'xp-l-img-2-cols-3': lImg2Cols3,
395
+ 'xp-l-img-3-cols-3': lImg3Cols3,
396
+ 'xp-l-lightbox': lLightbox,
397
+ 'xp-l-list-article-col': lListArticleCol,
398
+ 'xp-l-list-article': lListArticle,
399
+ 'xp-l-list-img-article': lListImgArticle,
400
+ 'xp-l-list-title': lListTitle,
401
+ 'xp-l-logotype-menu-col-footer': lLogotypeMenuColFooter,
402
+ 'xp-l-logotype-menu-h-col': lLogotypeMenuHCol,
403
+ 'xp-l-logotype-menu-v-col': lLogotypeMenuVCol,
404
+ 'xp-l-menu-cols-2': lMenuCols2,
405
+ 'xp-l-menu-cols-3': lMenuCols3,
406
+ 'xp-l-menu-list-img-col': lMenuListImgCol,
407
+ 'xp-l-menu-list-img': lMenuListImg,
408
+ 'xp-l-menu-list': lMenuList,
409
+ 'xp-l-menu-text-col-bottom': lMenuTextColBottom,
410
+ 'xp-l-menu-text-col': lMenuTextCol,
411
+ 'xp-l-menu-text': lMenuText,
412
+ 'xp-l-rows-2': lRows2,
413
+ 'xp-l-rows-3': lRows3,
414
+ 'xp-l-rows-4': lRows4,
415
+ 'xp-l-text-col': lTextCol,
416
+ 'xp-l-text': lText,
417
+ 'xp-laptop': laptop,
418
+ 'xp-layout': layout,
419
+ 'xp-layouts': layouts,
420
+ 'xp-life-belt': lifeBelt,
421
+ 'xp-light-bulb': lightBulb,
422
+ 'xp-lines-rectangle': linesRectangle,
423
+ 'xp-linux': linux,
424
+ 'xp-list-bullets': listBullets,
425
+ 'xp-list-numbers': listNumbers,
426
+ 'xp-list': list,
427
+ 'xp-lock-unlocked': lockUnlocked,
428
+ 'xp-lock': lock,
429
+ 'xp-loop': loop,
430
+ 'xp-magnifier-minus': magnifierMinus,
431
+ 'xp-magnifier-plus': magnifierPlus,
432
+ 'xp-magnifier': magnifier,
433
+ 'xp-map-marker': mapMarker,
434
+ 'xp-map': map,
435
+ 'xp-market': market,
436
+ 'xp-mask': mask,
437
+ 'xp-media-player': mediaPlayer,
438
+ 'xp-menu': menu,
439
+ 'xp-merge': merge,
440
+ 'xp-message': message,
441
+ 'xp-messages': messages,
442
+ 'xp-microphone': microphone,
443
+ 'xp-minus-circle': minusCircle,
444
+ 'xp-minus-square': minusSquare,
445
+ 'xp-minus': minus,
446
+ 'xp-mobile': mobile,
447
+ 'xp-modal-close': modalClose,
448
+ 'xp-modal-maximize': modalMaximize,
449
+ 'xp-modal-minimize': modalMinimize,
450
+ 'xp-modal-question': modalQuestion,
451
+ 'xp-money-bill': moneyBill,
452
+ 'xp-monitor-broken': monitorBroken,
453
+ 'xp-monitor-smartphone': monitorSmartphone,
454
+ 'xp-monitor': monitor,
455
+ 'xp-mug': mug,
456
+ 'xp-newspaper': newspaper,
457
+ 'xp-note': note,
458
+ 'xp-notebook': notebook,
459
+ 'xp-octothorpe': octothorpe,
460
+ 'xp-one': one,
461
+ 'xp-opera': opera,
462
+ 'xp-organisational-scheme': organisationalScheme,
463
+ 'xp-outdent': outdent,
464
+ 'xp-palette': palette,
465
+ 'xp-pants': pants,
466
+ 'xp-paper-plane': paperPlane,
467
+ 'xp-paperclip': paperclip,
468
+ 'xp-paragraph-center': paragraphCenter,
469
+ 'xp-paragraph-short': paragraphShort,
470
+ 'xp-paragraph': paragraph,
471
+ 'xp-parent-child-scheme-inverted': parentChildSchemeInverted,
472
+ 'xp-parent-child-scheme': parentChildScheme,
473
+ 'xp-parent-children-scheme-2': parentChildrenScheme2,
474
+ 'xp-parent-children-scheme-3': parentChildrenScheme3,
475
+ 'xp-pause': pause,
476
+ 'xp-pc': pc,
477
+ 'xp-pda': pda,
478
+ 'xp-percent-sign': percentSign,
479
+ 'xp-perfume': perfume,
480
+ 'xp-permission-list': permissionList,
481
+ 'xp-personalisation-variants': personalisationVariants,
482
+ 'xp-personalisation': personalisation,
483
+ 'xp-picture': picture,
484
+ 'xp-pictures': pictures,
485
+ 'xp-piechart-lines': piechartLines,
486
+ 'xp-piechart': piechart,
487
+ 'xp-pilcrow': pilcrow,
488
+ 'xp-pin-inverted': pinInverted,
489
+ 'xp-pin': pin,
490
+ 'xp-placeholder': placeholder,
491
+ 'xp-plus-circle': plusCircle,
492
+ 'xp-plus-square': plusSquare,
493
+ 'xp-plus': plus,
494
+ 'xp-printer': printer,
495
+ 'xp-process-scheme': processScheme,
496
+ 'xp-project-scheme': projectScheme,
497
+ 'xp-puzzle': puzzle,
498
+ 'xp-qr-code': qrCode,
499
+ 'xp-question-circle': questionCircle,
500
+ 'xp-rb-check-sign': rbCheckSign,
501
+ 'xp-rb-check': rbCheck,
502
+ 'xp-rb-uncheck': rbUncheck,
503
+ 'xp-recaptcha': recaptcha,
504
+ 'xp-rectangle-a-inverted': rectangleAInverted,
505
+ 'xp-rectangle-a': rectangleA,
506
+ 'xp-rectangle-h': rectangleH,
507
+ 'xp-rectangle-paragraph': rectangleParagraph,
508
+ 'xp-rectangle-v': rectangleV,
509
+ 'xp-restriction-list': restrictionList,
510
+ 'xp-ribbon': ribbon,
511
+ 'xp-right-double-quotation-mark': rightDoubleQuotationMark,
512
+ 'xp-rotate-double-right': rotateDoubleRight,
513
+ 'xp-rotate-left': rotateLeft,
514
+ 'xp-rotate-right': rotateRight,
515
+ 'xp-rss': rss,
516
+ 'xp-s': s,
517
+ 'xp-safari': safari,
518
+ 'xp-scheme-circles-triangle': schemeCirclesTriangle,
519
+ 'xp-scheme-connected-circles': schemeConnectedCircles,
520
+ 'xp-scheme-path-circles-flipped': schemePathCirclesFlipped,
521
+ 'xp-scheme-path-circles': schemePathCircles,
522
+ 'xp-scissors': scissors,
523
+ 'xp-separate': separate,
524
+ 'xp-share-apple': shareApple,
525
+ 'xp-share-google': shareGoogle,
526
+ 'xp-shoe-women': shoeWomen,
527
+ 'xp-shopping-cart': shoppingCart,
528
+ 'xp-small-dot-centered': smallDotCentered,
529
+ 'xp-smartphone': smartphone,
530
+ 'xp-software-package': softwarePackage,
531
+ 'xp-spinner': spinner,
532
+ 'xp-square-dashed-line': squareDashedLine,
533
+ 'xp-square-dashed': squareDashed,
534
+ 'xp-square': square,
535
+ 'xp-staging-scheme': stagingScheme,
536
+ 'xp-star-empty': starEmpty,
537
+ 'xp-star-full': starFull,
538
+ 'xp-star-semi': starSemi,
539
+ 'xp-subscript': subscript,
540
+ 'xp-superscript': superscript,
541
+ 'xp-t-f': tF,
542
+ 'xp-t-shirt': tShirt,
543
+ 'xp-t-with-cross': tWithCross,
544
+ 'xp-t': t,
545
+ 'xp-tab-vertical': tabVertical,
546
+ 'xp-tab': tab,
547
+ 'xp-table': table,
548
+ 'xp-tablet': tablet,
549
+ 'xp-tag': tag,
550
+ 'xp-tags': tags,
551
+ 'xp-three-dots-vertical': threeDotsVertical,
552
+ 'xp-timed-box': timedBox,
553
+ 'xp-times-circle': timesCircle,
554
+ 'xp-times': times,
555
+ 'xp-translate': translate,
556
+ 'xp-tree-structure': treeStructure,
557
+ 'xp-triangle-right': triangleRight,
558
+ 'xp-trophy': trophy,
559
+ 'xp-truck': truck,
560
+ 'xp-two-rectangles-h': twoRectanglesH,
561
+ 'xp-two-rectangles-stacked-times': twoRectanglesStackedTimes,
562
+ 'xp-two-rectangles-stacked': twoRectanglesStacked,
563
+ 'xp-two-rectangles-v': twoRectanglesV,
564
+ 'xp-two-squares-line': twoSquaresLine,
565
+ 'xp-two-squares-with-lines': twoSquaresWithLines,
566
+ 'xp-u': u,
567
+ 'xp-up-dir': upDir,
568
+ 'xp-user-checkbox': userCheckbox,
569
+ 'xp-user-frame': userFrame,
570
+ 'xp-user': user,
571
+ 'xp-users': users,
572
+ 'xp-vb': vb,
573
+ 'xp-watch': watch,
574
+ 'xp-windows': windows,
575
+ 'xp-wizard-stick': wizardStick,
576
+ 'xp-x': x,
577
+ 'xp-xml-tag': xmlTag,
578
+ };
579
+
580
+ declare interface InjectedProps {
581
+ readonly classes: string;
582
+ readonly children: React.ReactNode;
583
+ }
584
+
585
+ declare interface NotificationMessage {
586
+ readonly id?: string | number;
587
+ readonly message: string;
588
+ readonly type: NotificationMessageType;
589
+ readonly messageAsHtml?: boolean;
590
+ }
591
+
592
+ declare enum NotificationMessageType {
593
+ Success = "success",
594
+ Error = "error",
595
+ Warning = "warning",
596
+ Info = "info"
597
+ }
598
+
85
599
  /**
86
600
  * Untyped alias for value used on change.
87
601
  */
@@ -96,6 +610,44 @@ export declare interface RoutingContentPlaceholderProps {
96
610
  children?: React_2.ReactNode;
97
611
  }
98
612
 
613
+ /**
614
+ * Represents properties for Dialog context component.
615
+ */
616
+ export declare interface TemplateDialogContextProps {
617
+ readonly isInDialog: boolean;
618
+ readonly title: string;
619
+ readonly setTitle: (title: string) => void;
620
+ readonly minWidth?: string | number;
621
+ readonly setMinWidth: (width: string | number) => void;
622
+ readonly width?: string | number;
623
+ readonly setWidth: (width: string | number) => void;
624
+ readonly maxWidth?: string | number;
625
+ readonly setMaxWidth: (width: string | number) => void;
626
+ readonly minHeight?: string | number;
627
+ readonly setMinHeight: (height: string | number) => void;
628
+ readonly height?: string | number;
629
+ readonly setHeight: (height: string | number) => void;
630
+ readonly maxHeight?: string | number;
631
+ readonly setMaxHeight: (height: string | number) => void;
632
+ readonly dialogHandlers: DialogHandlers;
633
+ readonly messages: NotificationMessage[];
634
+ readonly addDialogMessage: (message: NotificationMessage) => void;
635
+ readonly removeDialogMessage: (id: string | number) => void;
636
+ readonly canProcessMessageType: (messageVariant: NotificationMessageType) => boolean;
637
+ readonly closeDialog: () => void;
638
+ readonly isFullscreen: boolean;
639
+ readonly setIsFullscreen: (isFullscreen: boolean) => void;
640
+ readonly actionInProgress: boolean;
641
+ readonly setActionInProgress: (prevent: boolean) => void;
642
+ }
643
+
644
+ declare interface UITestProps {
645
+ /**
646
+ * Test id data attribute.
647
+ */
648
+ readonly dataTestId?: string;
649
+ }
650
+
99
651
  /**
100
652
  * Command execution configuration.
101
653
  */
@@ -153,6 +705,8 @@ export declare function usePageCommand<TCommandResult, TCommandData = void>(comm
153
705
  */
154
706
  export declare const usePageCommandProvider: () => CommandContextType;
155
707
 
708
+ export declare const useTemplateDialog: () => TemplateDialogContextProps;
709
+
156
710
  /**
157
711
  * Validation rule result type.
158
712
  */