@plesk/ui-library 3.36.0 → 3.37.0

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.
Files changed (90) hide show
  1. package/cjs/components/Card/helpers.js +0 -1
  2. package/cjs/components/Carousel/Carousel.js +182 -77
  3. package/cjs/components/ComboBox/ComboBoxOption.js +2 -1
  4. package/cjs/components/Drawer/DrawerProgress.js +1 -1
  5. package/cjs/components/List/List.js +102 -314
  6. package/cjs/components/List/ListAction.js +0 -1
  7. package/cjs/components/Panel/Panel.js +61 -98
  8. package/cjs/components/Select/SelectControl.js +4 -0
  9. package/cjs/components/Select/SelectOption.js +2 -1
  10. package/cjs/components/Toaster/Toaster.js +3 -3
  11. package/cjs/components/Toolbar/ToolbarMenu.js +0 -1
  12. package/cjs/components/index.js +42 -22
  13. package/cjs/index.js +1 -1
  14. package/dist/plesk-ui-library-rtl.css +1 -1
  15. package/dist/plesk-ui-library-rtl.css.map +1 -1
  16. package/dist/plesk-ui-library.css +1 -1
  17. package/dist/plesk-ui-library.css.map +1 -1
  18. package/dist/plesk-ui-library.js +574 -678
  19. package/dist/plesk-ui-library.js.map +1 -1
  20. package/dist/plesk-ui-library.min.js +10 -10
  21. package/dist/plesk-ui-library.min.js.map +1 -1
  22. package/esm/components/Card/helpers.js +0 -1
  23. package/esm/components/Carousel/Carousel.js +183 -78
  24. package/esm/components/ComboBox/ComboBoxOption.js +2 -1
  25. package/esm/components/Drawer/DrawerProgress.js +1 -1
  26. package/esm/components/List/List.js +102 -314
  27. package/esm/components/List/ListAction.js +0 -1
  28. package/esm/components/Panel/Panel.js +62 -99
  29. package/esm/components/Select/SelectControl.js +4 -0
  30. package/esm/components/Select/SelectOption.js +2 -1
  31. package/esm/components/Toaster/Toaster.js +3 -3
  32. package/esm/components/Toolbar/ToolbarMenu.js +0 -1
  33. package/esm/components/index.js +2 -4
  34. package/esm/index.js +1 -1
  35. package/package.json +41 -41
  36. package/styleguide/build/bundle.c3d05006.js +2 -0
  37. package/styleguide/index.html +2 -2
  38. package/types/src/components/Action/Action.d.ts +1 -1
  39. package/types/src/components/Action/index.d.ts +1 -0
  40. package/types/src/components/Alert/Alert.d.ts +1 -1
  41. package/types/src/components/Alert/index.d.ts +1 -0
  42. package/types/src/components/AutoClosable/AutoClosable.d.ts +1 -1
  43. package/types/src/components/AutoClosable/index.d.ts +1 -0
  44. package/types/src/components/AuxiliaryActions/AuxiliaryActions.d.ts +1 -1
  45. package/types/src/components/AuxiliaryActions/index.d.ts +1 -0
  46. package/types/src/components/Badge/Badge.d.ts +1 -1
  47. package/types/src/components/Badge/index.d.ts +1 -0
  48. package/types/src/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
  49. package/types/src/components/Breadcrumbs/index.d.ts +1 -0
  50. package/types/src/components/Button/ButtonContext.d.ts +1 -0
  51. package/types/src/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  52. package/types/src/components/ButtonGroup/index.d.ts +1 -0
  53. package/types/src/components/Carousel/Carousel.d.ts +43 -8
  54. package/types/src/components/Checkbox/Checkbox.d.ts +1 -1
  55. package/types/src/components/Checkbox/index.d.ts +1 -0
  56. package/types/src/components/ComboBox/ComboBox.d.ts +1 -1
  57. package/types/src/components/ComboBox/ComboBoxOption.d.ts +1 -1
  58. package/types/src/components/ComboBox/index.d.ts +2 -0
  59. package/types/src/components/ConsoleOutput/ConsoleOutput.d.ts +1 -1
  60. package/types/src/components/ConsoleOutput/index.d.ts +1 -0
  61. package/types/src/components/ContentLoader/ContentLoader.d.ts +1 -1
  62. package/types/src/components/ContentLoader/index.d.ts +1 -0
  63. package/types/src/components/Cuttable/Cuttable.d.ts +1 -1
  64. package/types/src/components/Cuttable/index.d.ts +1 -0
  65. package/types/src/components/DistractionFreeModeContext/DistractionFreeModeContext.d.ts +1 -0
  66. package/types/src/components/Drawer/DrawerProgress.d.ts +1 -1
  67. package/types/src/components/Form/DisabledContext.d.ts +1 -0
  68. package/types/src/components/Form/FormContext.d.ts +1 -0
  69. package/types/src/components/Form/ScrollableElementFormContext.d.ts +1 -0
  70. package/types/src/components/List/List.d.ts +637 -0
  71. package/types/src/components/List/ListAction.d.ts +21 -18
  72. package/types/src/components/List/ListActionsDivider.d.ts +1 -1
  73. package/types/src/components/List/ListEmptyView.d.ts +1 -1
  74. package/types/src/components/List/index.d.ts +12 -0
  75. package/types/src/components/OnDarkContext/OnDarkContext.d.ts +1 -0
  76. package/types/src/components/Pagination/Pagination.d.ts +1 -1
  77. package/types/src/components/Pagination/index.d.ts +1 -0
  78. package/types/src/components/Panel/Panel.d.ts +4 -21
  79. package/types/src/components/Panel/index.d.ts +1 -0
  80. package/types/src/components/Radio/Radio.d.ts +4 -6
  81. package/types/src/components/Radio/index.d.ts +1 -0
  82. package/types/src/components/ResponsiveContext/ResponsiveContext.d.ts +1 -0
  83. package/types/src/components/Section/Section.d.ts +1 -1
  84. package/types/src/components/Toolbar/RegistryContext.d.ts +1 -0
  85. package/types/src/components/Translate/Translate.d.ts +4 -3
  86. package/types/src/components/Translate/index.d.ts +1 -1
  87. package/types/src/components/VerticalContext/VerticalContext.d.ts +1 -0
  88. package/types/src/components/index.d.ts +17 -4
  89. package/styleguide/build/bundle.2c956ff2.js +0 -2
  90. /package/styleguide/build/{bundle.2c956ff2.js.LICENSE.txt → bundle.c3d05006.js.LICENSE.txt} +0 -0
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <title>Plesk UI Library 3.36.0</title>
7
+ <title>Plesk UI Library 3.37.0</title>
8
8
  <meta name="msapplication-TileColor" content="#da532c">
9
9
  <meta name="theme-color" content="#ffffff">
10
10
  <link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
@@ -26,6 +26,6 @@
26
26
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KWST26V"
27
27
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
28
28
  <!-- End Google Tag Manager (noscript) -->
29
- <script src="build/bundle.2c956ff2.js"></script>
29
+ <script src="build/bundle.c3d05006.js"></script>
30
30
  </body>
31
31
  </html>
@@ -2,7 +2,7 @@ import { FunctionComponent, ReactNode, ReactElement, ElementType, MouseEvent } f
2
2
  import { IconProps } from '../Icon';
3
3
  import '../../helpers/base.less';
4
4
  import './Action.less';
5
- type ActionProps = {
5
+ export type ActionProps = {
6
6
  /**
7
7
  * Content of the `Action`.
8
8
  * @since 0.0.68
@@ -1 +1,2 @@
1
1
  export { default } from './Action';
2
+ export type { ActionProps } from './Action';
@@ -1,7 +1,7 @@
1
1
  import { ReactNode, SyntheticEvent, FunctionComponent } from 'react';
2
2
  import '../../helpers/base.less';
3
3
  import './Alert.less';
4
- type AlertProps = {
4
+ export type AlertProps = {
5
5
  /**
6
6
  * @ignore
7
7
  */
@@ -1 +1,2 @@
1
1
  export { default } from './Alert';
2
+ export type { AlertProps } from './Alert';
@@ -1,6 +1,6 @@
1
1
  import { Component, ReactElement, ReactInstance, RefObject, MutableRefObject, ContextType } from 'react';
2
2
  declare const AutoClosableContext: import("react").Context<AutoClosable | null>;
3
- type AutoClosableProps = {
3
+ export type AutoClosableProps = {
4
4
  /**
5
5
  * onClose handler
6
6
  * @since 0.0.42
@@ -1 +1,2 @@
1
1
  export { default } from './AutoClosable';
2
+ export type { AutoClosableProps } from './AutoClosable';
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
2
  import './AuxiliaryActions.less';
3
- type AuxiliaryActionsProps = {
3
+ export type AuxiliaryActionsProps = {
4
4
  /**
5
5
  * Actions
6
6
  * @since 0.4.1
@@ -1 +1,2 @@
1
1
  export { default } from './AuxiliaryActions';
2
+ export type { AuxiliaryActionsProps } from './AuxiliaryActions';
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
2
  import '../../helpers/base.less';
3
3
  import './Badge.less';
4
- type BadgeProps = {
4
+ export type BadgeProps = {
5
5
  /**
6
6
  * Display value. See [Label](#!/Label) for all props.
7
7
  * @since 0.0.58
@@ -1 +1,2 @@
1
1
  export { default } from './Badge';
2
+ export type { BadgeProps } from './Badge';
@@ -1,7 +1,7 @@
1
1
  import { ReactNode, FunctionComponent } from 'react';
2
2
  import '../../helpers/base.less';
3
3
  import './Breadcrumbs.less';
4
- type BreadcrumbsProps = {
4
+ export type BreadcrumbsProps = {
5
5
  /**
6
6
  * @ignore
7
7
  */
@@ -1 +1,2 @@
1
1
  export { default } from './Breadcrumbs';
2
+ export type { BreadcrumbsProps } from './Breadcrumbs';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ButtonContextValue = {
2
3
  defaultProps: {
3
4
  size?: 'md' | 'lg';
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent, ReactNode, Ref, HTMLAttributes } from 'react';
2
2
  import './ButtonGroup.less';
3
- type ButtonGroupProps = {
3
+ export type ButtonGroupProps = {
4
4
  /**
5
5
  * @ignore
6
6
  */
@@ -1 +1,2 @@
1
1
  export { default } from './ButtonGroup';
2
+ export type { ButtonGroupProps } from './ButtonGroup';
@@ -6,7 +6,36 @@ export interface CarouselProps {
6
6
  * Slides
7
7
  * @since 0.0.42
8
8
  */
9
- children?: ReactNode;
9
+ children?: ReactNode[];
10
+ /**
11
+ * Enable autoplay
12
+ * @since 3.37.0
13
+ */
14
+ autoplay?: boolean;
15
+ /**
16
+ * Autoplay interval, ms
17
+ * @since 3.37.0
18
+ */
19
+ autoplayInterval?: number;
20
+ /**
21
+ * Show exact number of slides
22
+ * @since 3.37.0
23
+ */
24
+ items?: number;
25
+ /**
26
+ * Show navigation arrows
27
+ * @since 3.37.0
28
+ */
29
+ arrows?: boolean;
30
+ /**
31
+ * Show navigation dots. Works only with items options.
32
+ * @since 3.37.0
33
+ */
34
+ dots?: boolean;
35
+ /**
36
+ * Callback called on change slides
37
+ */
38
+ onSlide?: (current: number) => {};
10
39
  /**
11
40
  * @ignore
12
41
  */
@@ -24,10 +53,14 @@ export interface CarouselProps {
24
53
  declare class Carousel extends Component<CarouselProps> {
25
54
  static defaultProps: {
26
55
  children: null;
56
+ arrows: boolean;
57
+ dots: boolean;
58
+ autoplay: boolean;
59
+ autoplayInterval: number;
60
+ onSlide: null;
27
61
  className: null;
28
62
  baseClassName: string;
29
63
  };
30
- constructor(props: CarouselProps);
31
64
  state: {
32
65
  showControls: boolean;
33
66
  current: number;
@@ -40,19 +73,21 @@ declare class Carousel extends Component<CarouselProps> {
40
73
  componentDidUpdate(): void;
41
74
  componentWillUnmount(): void;
42
75
  private readonly speed;
43
- private readonly playSpeed;
44
76
  private isRtl;
45
77
  private playTimer;
46
78
  private movingCallback;
47
79
  private readonly rootRef;
48
80
  private readonly genuineRef;
49
- handlePrevClick(): void;
50
- handleNextClick(): void;
51
- play(): void;
52
- stop(): void;
81
+ handlePrevClick: () => void;
82
+ handleNextClick: () => void;
83
+ play: () => void;
84
+ stop: () => void;
53
85
  setCurrentSlide(next: number): void;
54
- handleResize({ bounds }: ContentRect): void;
86
+ handleResize: ({ bounds }: ContentRect) => void;
55
87
  listStyle(): CSSProperties;
88
+ renderNavigationDots: () => import("react/jsx-runtime").JSX.Element | null;
89
+ renderNavigationArrows: () => import("react/jsx-runtime").JSX.Element | null;
90
+ renderSliderItems: () => ("" | 0 | import("react/jsx-runtime").JSX.Element)[] | null | undefined;
56
91
  render(): import("react/jsx-runtime").JSX.Element;
57
92
  }
58
93
  export default Carousel;
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, HTMLProps, FunctionComponent } from 'react';
2
2
  import './Checkbox.less';
3
- type CheckboxProps = {
3
+ export type CheckboxProps = {
4
4
  /**
5
5
  * Determine whether the `Checkbox` is checked.
6
6
  * @since 0.0.55
@@ -1 +1,2 @@
1
1
  export { default } from './Checkbox';
2
+ export type { CheckboxProps } from './Checkbox';
@@ -1,7 +1,7 @@
1
1
  import { ComponentProps, ReactElement } from 'react';
2
2
  import ComboBoxOption from './ComboBoxOption';
3
3
  import './ComboBox.less';
4
- type ComboBoxProps = {
4
+ export type ComboBoxProps = {
5
5
  /**
6
6
  * @ignore
7
7
  */
@@ -1,5 +1,5 @@
1
1
  import { FunctionComponent } from 'react';
2
- type ComboBoxOptionProps = {
2
+ export type ComboBoxOptionProps = {
3
3
  /**
4
4
  * Whether disabled or not.
5
5
  * @since 2.6.0
@@ -1,2 +1,4 @@
1
1
  export { default } from './ComboBox';
2
+ export type { ComboBoxProps } from './ComboBox';
2
3
  export { default as ComboBoxOption } from './ComboBoxOption';
4
+ export type { ComboBoxOptionProps } from './ComboBoxOption';
@@ -1,6 +1,6 @@
1
1
  import { PureComponent, ReactNode, RefObject } from 'react';
2
2
  import './ConsoleOutput.less';
3
- type ConsoleOutputProps = {
3
+ export type ConsoleOutputProps = {
4
4
  /**
5
5
  * @ignore
6
6
  */
@@ -1 +1,2 @@
1
1
  export { default } from './ConsoleOutput';
2
+ export type { ConsoleOutputProps } from './ConsoleOutput';
@@ -7,7 +7,7 @@ type Loader = 'spinner' | 'icons' | {
7
7
  icons: IconName[];
8
8
  [key: string]: unknown;
9
9
  };
10
- type ContentLoaderProps = {
10
+ export type ContentLoaderProps = {
11
11
  /**
12
12
  * Allows to set the text near the indicator.
13
13
  * @since 1.1.0
@@ -1 +1,2 @@
1
1
  export { default } from './ContentLoader';
2
+ export type { ContentLoaderProps } from './ContentLoader';
@@ -1,6 +1,6 @@
1
1
  import { Component, ReactNode } from 'react';
2
2
  import './Cuttable.less';
3
- type CuttableProps = {
3
+ export type CuttableProps = {
4
4
  /**
5
5
  * Content of the component.
6
6
  * @since 0.0.42
@@ -1 +1,2 @@
1
1
  export { default } from './Cuttable';
2
+ export type { CuttableProps } from './Cuttable';
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type DistractionFreeMode = {
2
3
  enabled: boolean;
3
4
  toggle: () => void;
@@ -10,7 +10,7 @@ export type DrawerProgressProps = {
10
10
  title?: ReactNode;
11
11
  steps: ProgressStepProps[];
12
12
  buttons?: ReactNode;
13
- autoCloseTimeout?: number;
13
+ autoCloseTimeout?: number | null;
14
14
  onStart?: () => void;
15
15
  onClose?: () => void;
16
16
  onCancel?: () => void;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const DisabledContext: import("react").Context<boolean | undefined>;
2
3
  export default DisabledContext;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormContextProps } from './types';
2
3
  declare const FormContext: import("react").Context<FormContextProps | undefined>;
3
4
  export default FormContext;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const ScrollableElementFormContext: import("react").Context<HTMLElement | null>;
2
3
  export default ScrollableElementFormContext;