@plesk/ui-library 3.35.1 → 3.35.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/cjs/components/Button/Button.js +1 -2
- package/cjs/components/Carousel/Carousel.js +25 -39
- package/cjs/components/Drawer/Header.js +71 -108
- package/cjs/components/Form/Form.js +5 -7
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +8 -67
- package/cjs/components/Grid/Grid.js +9 -71
- package/cjs/components/GridCol/GridCol.js +3 -54
- package/cjs/components/Link/Link.js +1 -2
- package/cjs/components/List/List.js +11 -8
- package/cjs/components/ProgressDialog/ProgressDialog.js +12 -85
- package/cjs/components/Rating/Rating.js +5 -36
- package/cjs/components/Skeleton/index.js +2 -2
- package/cjs/components/SplitButton/SplitButton.js +1 -2
- package/cjs/components/SwitchesPanel/SwitchesPanel.js +3 -26
- package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +3 -57
- package/cjs/components/Toaster/Toaster.js +3 -3
- package/cjs/components/index.js +14 -11
- package/cjs/index.js +1 -1
- package/cjs/tests/renderer.js +7 -1
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +273 -672
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +5 -5
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Button/Button.js +1 -2
- package/esm/components/Carousel/Carousel.js +25 -37
- package/esm/components/Drawer/Header.js +70 -107
- package/esm/components/Form/Form.js +5 -7
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +8 -65
- package/esm/components/Grid/Grid.js +9 -69
- package/esm/components/GridCol/GridCol.js +2 -55
- package/esm/components/Link/Link.js +1 -2
- package/esm/components/List/List.js +11 -8
- package/esm/components/ProgressDialog/ProgressDialog.js +12 -83
- package/esm/components/Rating/Rating.js +5 -36
- package/esm/components/Skeleton/index.js +2 -2
- package/esm/components/SplitButton/SplitButton.js +1 -2
- package/esm/components/SwitchesPanel/SwitchesPanel.js +3 -24
- package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +3 -55
- package/esm/components/Toaster/Toaster.js +3 -1
- package/esm/components/index.js +1 -2
- package/esm/index.js +1 -1
- package/esm/tests/renderer.js +7 -1
- package/package.json +16 -17
- package/styleguide/build/bundle.6318f4a5.js +2 -0
- package/styleguide/index.html +2 -2
- package/types/src/components/Button/Button.d.ts +2 -3
- package/types/src/components/Carousel/Carousel.d.ts +58 -0
- package/types/src/components/Carousel/index.d.ts +2 -0
- package/types/src/components/Dialog/Dialog.d.ts +1 -1
- package/types/src/components/Dialog/index.d.ts +1 -1
- package/types/src/components/Drawer/Header.d.ts +4 -20
- package/types/src/components/Form/Form.d.ts +5 -0
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.d.ts +53 -0
- package/types/src/components/FormFieldCheckbox/index.d.ts +2 -0
- package/types/src/components/FormFieldPassword/generatePassword.d.ts +2 -0
- package/types/src/components/Grid/Grid.d.ts +97 -0
- package/types/src/components/Grid/index.d.ts +2 -0
- package/types/src/components/GridCol/GridCol.d.ts +53 -0
- package/types/src/components/GridCol/index.d.ts +2 -0
- package/types/src/components/Link/Link.d.ts +1 -2
- package/types/src/components/LocaleProvider/LocaleProvider.d.ts +1 -1
- package/types/src/components/ProgressDialog/ProgressDialog.d.ts +125 -0
- package/types/src/components/ProgressDialog/index.d.ts +2 -0
- package/types/src/components/Rating/Rating.d.ts +27 -0
- package/types/src/components/Rating/index.d.ts +2 -0
- package/types/src/components/Skeleton/Skeleton.d.ts +3 -5
- package/types/src/components/Skeleton/SkeletonTabs.d.ts +4 -4
- package/types/src/components/Skeleton/SkeletonText.d.ts +2 -2
- package/types/src/components/Skeleton/index.d.ts +4 -1
- package/types/src/components/SplitButton/SplitButton.d.ts +1 -2
- package/types/src/components/SwitchesPanel/SwitchesPanel.d.ts +24 -0
- package/types/src/components/SwitchesPanel/index.d.ts +2 -0
- package/types/src/components/SwitchesPanelItem/SwitchesPanelItem.d.ts +78 -0
- package/types/src/components/SwitchesPanelItem/index.d.ts +2 -0
- package/types/src/components/index.d.ts +10 -2
- package/types/src/components/utils.d.ts +1 -1
- package/cjs/components/Alert/Alert.stories.js +0 -34
- package/cjs/components/Button/Button.stories.js +0 -109
- package/cjs/components/Cuttable/Cuttable.stories.js +0 -46
- package/cjs/components/Dialog/Dialog.stories.js +0 -49
- package/cjs/components/Drawer/Drawer.stories.js +0 -65
- package/cjs/components/Form/Form.stories.js +0 -35
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.stories.js +0 -32
- package/cjs/components/Icon/Icon.stories.js +0 -32
- package/cjs/components/ItemLink/ItemLink.stories.js +0 -20
- package/cjs/components/ItemList/ItemList.stories.js +0 -122
- package/cjs/components/List/List.stories.js +0 -152
- package/cjs/components/Markdown/Markdown.stories.js +0 -51
- package/cjs/components/Menu/Menu.stories.js +0 -77
- package/cjs/components/Popover/Popover.stories.js +0 -60
- package/cjs/components/Select/Select.stories.js +0 -57
- package/cjs/components/Skeleton/Skeleton.stories.js +0 -24
- package/cjs/components/Skeleton/SkeletonTabs.stories.js +0 -15
- package/cjs/components/Skeleton/SkeletonText.stories.js +0 -33
- package/cjs/components/Status/Status.stories.js +0 -19
- package/cjs/components/Tabs/Tabs.stories.js +0 -24
- package/dist/.DS_Store +0 -0
- package/dist/images/default.svg +0 -1
- package/dist/images/filtered.svg +0 -1
- package/esm/components/Alert/Alert.stories.js +0 -27
- package/esm/components/Button/Button.stories.js +0 -99
- package/esm/components/Cuttable/Cuttable.stories.js +0 -39
- package/esm/components/Dialog/Dialog.stories.js +0 -42
- package/esm/components/Drawer/Drawer.stories.js +0 -56
- package/esm/components/Form/Form.stories.js +0 -27
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.stories.js +0 -23
- package/esm/components/Icon/Icon.stories.js +0 -23
- package/esm/components/ItemLink/ItemLink.stories.js +0 -12
- package/esm/components/ItemList/ItemList.stories.js +0 -109
- package/esm/components/List/List.stories.js +0 -139
- package/esm/components/Markdown/Markdown.stories.js +0 -43
- package/esm/components/Menu/Menu.stories.js +0 -65
- package/esm/components/Popover/Popover.stories.js +0 -52
- package/esm/components/Select/Select.stories.js +0 -48
- package/esm/components/Skeleton/Skeleton.stories.js +0 -15
- package/esm/components/Skeleton/SkeletonTabs.stories.js +0 -7
- package/esm/components/Skeleton/SkeletonText.stories.js +0 -23
- package/esm/components/Status/Status.stories.js +0 -11
- package/esm/components/Tabs/Tabs.stories.js +0 -16
- package/styleguide/build/bundle.edc3f2a1.js +0 -2
- package/types/src/components/Alert/Alert.stories.d.ts +0 -11
- package/types/src/components/Button/Button.stories.d.ts +0 -17
- package/types/src/components/Cuttable/Cuttable.stories.d.ts +0 -17
- package/types/src/components/Dialog/Dialog.stories.d.ts +0 -25
- package/types/src/components/Drawer/Drawer.stories.d.ts +0 -43
- package/types/src/components/Form/Form.stories.d.ts +0 -13
- package/types/src/components/FormFieldCheckbox/FormFieldCheckbox.stories.d.ts +0 -20
- package/types/src/components/Icon/Icon.stories.d.ts +0 -7
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +0 -12
- package/types/src/components/ItemList/ItemList.stories.d.ts +0 -172
- package/types/src/components/List/List.stories.d.ts +0 -30
- package/types/src/components/Markdown/Markdown.stories.d.ts +0 -10
- package/types/src/components/Menu/Menu.stories.d.ts +0 -20
- package/types/src/components/Popover/Popover.stories.d.ts +0 -25
- package/types/src/components/Select/Select.stories.d.ts +0 -12
- package/types/src/components/Skeleton/Skeleton.stories.d.ts +0 -15
- package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +0 -5
- package/types/src/components/Skeleton/SkeletonText.stories.d.ts +0 -23
- package/types/src/components/Status/Status.stories.d.ts +0 -11
- package/types/src/components/Tabs/Tabs.stories.d.ts +0 -10
- package/types/src/tests/index.d.ts +0 -1
- package/types/src/tests/renderer.d.ts +0 -23
- /package/styleguide/build/{bundle.edc3f2a1.js.LICENSE.txt → bundle.6318f4a5.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
import { SwitchProps } from '../Switch';
|
|
3
|
+
import '../../helpers/base.less';
|
|
4
|
+
import './SwitchesPanelItem.less';
|
|
5
|
+
export interface SwitchesPanelItemProps {
|
|
6
|
+
/**
|
|
7
|
+
* A callback function, can be executed when the checked state is changing.
|
|
8
|
+
* @since 0.3.0
|
|
9
|
+
*/
|
|
10
|
+
onChange: (checked: boolean) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Title of the `SwitchesPanelItem`. Must be no longer than two lines.
|
|
13
|
+
* @since 0.3.0
|
|
14
|
+
*/
|
|
15
|
+
title: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
defaultChecked?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Visual intent color to apply to component.
|
|
22
|
+
* @since 0.3.0
|
|
23
|
+
*/
|
|
24
|
+
intent?: 'warning' | 'danger';
|
|
25
|
+
/**
|
|
26
|
+
* `SwitchesPanelItem` description. Must be no longer than three lines.
|
|
27
|
+
* @since 0.3.0
|
|
28
|
+
*/
|
|
29
|
+
description?: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Rich full description of the `SwitchesPanelItem`.
|
|
32
|
+
* Adds control button with question mark that shows `Popover` on click.
|
|
33
|
+
* @since 0.3.0
|
|
34
|
+
*/
|
|
35
|
+
fullDescription?: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Props of underlying [Switch](#!/Switch) component.
|
|
38
|
+
* @since 0.5.0
|
|
39
|
+
*/
|
|
40
|
+
switchProps?: SwitchProps;
|
|
41
|
+
/**
|
|
42
|
+
* Content of the control actions.
|
|
43
|
+
* Don't place here more than three buttons (with the one from 'fullDescription' property) or one link and one button.
|
|
44
|
+
* @since 0.3.0
|
|
45
|
+
*/
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* @ignore
|
|
49
|
+
*/
|
|
50
|
+
className?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @ignore
|
|
53
|
+
*/
|
|
54
|
+
baseClassName?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* `SwitchesPanelItem` component is used for combining [Switch](#!/Switch) component with text title and description.
|
|
58
|
+
* Used in [SwitchesPanel](#!/SwitchesPanel).
|
|
59
|
+
* @since 0.3.0
|
|
60
|
+
*/
|
|
61
|
+
declare class SwitchesPanelItem extends Component<SwitchesPanelItemProps> {
|
|
62
|
+
static defaultProps: {
|
|
63
|
+
defaultChecked: boolean;
|
|
64
|
+
intent: null;
|
|
65
|
+
description: null;
|
|
66
|
+
fullDescription: null;
|
|
67
|
+
switchProps: {};
|
|
68
|
+
children: null;
|
|
69
|
+
className: null;
|
|
70
|
+
baseClassName: string;
|
|
71
|
+
};
|
|
72
|
+
state: {
|
|
73
|
+
checked: boolean | undefined;
|
|
74
|
+
};
|
|
75
|
+
handleChange: (checked: boolean) => void;
|
|
76
|
+
render(): JSX.Element;
|
|
77
|
+
}
|
|
78
|
+
export default SwitchesPanelItem;
|
|
@@ -11,6 +11,7 @@ export { default as Card } from './Card';
|
|
|
11
11
|
export * from './Card';
|
|
12
12
|
export { default as CardList } from './CardList';
|
|
13
13
|
export { default as Carousel } from './Carousel';
|
|
14
|
+
export type { CarouselProps } from './Carousel';
|
|
14
15
|
export { default as Checkbox } from './Checkbox';
|
|
15
16
|
export { default as Radio } from './Radio';
|
|
16
17
|
export { default as CodeEditor } from './CodeEditor';
|
|
@@ -37,13 +38,16 @@ export type { FormProps, FormValues, FormInstanceHandles } from './Form';
|
|
|
37
38
|
export * from './Form';
|
|
38
39
|
export { default as FormField } from './FormField';
|
|
39
40
|
export { default as FormFieldCheckbox } from './FormFieldCheckbox';
|
|
41
|
+
export type { FormFieldCheckboxProps } from './FormFieldCheckbox';
|
|
40
42
|
export { default as FormFieldPassword } from './FormFieldPassword';
|
|
41
43
|
export * from './FormFieldPassword';
|
|
42
44
|
export { default as FormFieldRadioButtons } from './FormFieldRadioButtons';
|
|
43
45
|
export { default as FormFieldText } from './FormFieldText';
|
|
44
46
|
export { default as FormFieldSelect } from './FormFieldSelect';
|
|
45
47
|
export { default as Grid } from './Grid';
|
|
48
|
+
export type { GridProps } from './Grid';
|
|
46
49
|
export { default as GridCol } from './GridCol';
|
|
50
|
+
export type { GridColProps } from './GridCol';
|
|
47
51
|
export { default as Heading } from './Heading';
|
|
48
52
|
export { default as Hint } from './Hint';
|
|
49
53
|
export { default as Icon } from './Icon';
|
|
@@ -79,10 +83,12 @@ export { default as Progress } from './Progress';
|
|
|
79
83
|
export type { ProgressProps } from './Progress';
|
|
80
84
|
export { default as ProgressBar } from './ProgressBar';
|
|
81
85
|
export { default as ProgressDialog } from './ProgressDialog';
|
|
86
|
+
export type { ProgressDialogProps } from './ProgressDialog';
|
|
82
87
|
export { default as ProgressDialogStep } from './ProgressDialogStep';
|
|
83
88
|
export { default as ProgressStep } from './ProgressStep';
|
|
84
89
|
export type { ProgressStepProps } from './ProgressStep';
|
|
85
90
|
export { default as Rating } from './Rating';
|
|
91
|
+
export type { RatingProps } from './Rating';
|
|
86
92
|
export { default as Section } from './Section';
|
|
87
93
|
export * from './Section';
|
|
88
94
|
export { default as SegmentedControl } from './SegmentedControl';
|
|
@@ -96,7 +102,9 @@ export * from './Subnav';
|
|
|
96
102
|
export { default as Switch } from './Switch';
|
|
97
103
|
export type { SwitchProps } from './Switch';
|
|
98
104
|
export { default as SwitchesPanel } from './SwitchesPanel';
|
|
105
|
+
export type { SwitchesPanelProps } from './SwitchesPanel';
|
|
99
106
|
export { default as SwitchesPanelItem } from './SwitchesPanelItem';
|
|
107
|
+
export type { SwitchesPanelItemProps } from './SwitchesPanelItem';
|
|
100
108
|
export { default as Tabs } from './Tabs';
|
|
101
109
|
export * from './Tabs';
|
|
102
110
|
export { default as Text } from './Text';
|
|
@@ -110,6 +118,6 @@ export { default as Translate } from './Translate';
|
|
|
110
118
|
export type { TranslateProps } from './Translate';
|
|
111
119
|
export { default as Link } from './Link';
|
|
112
120
|
export type { LinkProps } from './Link';
|
|
113
|
-
export { default as Skeleton } from './Skeleton';
|
|
114
|
-
export
|
|
121
|
+
export { default as Skeleton, SkeletonTabs, SkeletonText } from './Skeleton';
|
|
122
|
+
export type { SkeletonProps, SkeletonTabsProps, SkeletonTextProps } from './Skeleton';
|
|
115
123
|
export { PortalContext } from './Layer';
|
|
@@ -27,5 +27,5 @@ export declare const createFocusManager: (containerRef: RefObject<HTMLElement>,
|
|
|
27
27
|
focusLast: (attempt?: number) => boolean;
|
|
28
28
|
};
|
|
29
29
|
export declare const mergeRefs: <T>(...refs: Ref<T | null>[]) => (value: T | null) => void;
|
|
30
|
-
export declare const normalizeSize: (value?:
|
|
30
|
+
export declare const normalizeSize: (value?: number | string) => string | number | undefined;
|
|
31
31
|
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Intents = exports.Basic = void 0;
|
|
8
|
-
var _Alert = _interopRequireDefault(require("./Alert"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
11
|
-
|
|
12
|
-
const Basic = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Alert.default, {
|
|
13
|
-
...args
|
|
14
|
-
});
|
|
15
|
-
exports.Basic = Basic;
|
|
16
|
-
Basic.args = {
|
|
17
|
-
children: 'Content'
|
|
18
|
-
};
|
|
19
|
-
const Intents = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
20
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
21
|
-
intent: "info",
|
|
22
|
-
...Basic.args
|
|
23
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
24
|
-
intent: "success",
|
|
25
|
-
...Basic.args
|
|
26
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
27
|
-
intent: "warning",
|
|
28
|
-
...Basic.args
|
|
29
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
30
|
-
intent: "danger",
|
|
31
|
-
...Basic.args
|
|
32
|
-
})]
|
|
33
|
-
});
|
|
34
|
-
exports.Intents = Intents;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.States = exports.Intents = exports.Ghost = exports.Basic = exports.Arrows = void 0;
|
|
8
|
-
var _Button = _interopRequireDefault(require("./Button"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
11
|
-
|
|
12
|
-
const Basic = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
13
|
-
...args
|
|
14
|
-
});
|
|
15
|
-
exports.Basic = Basic;
|
|
16
|
-
Basic.args = {
|
|
17
|
-
children: 'Click me'
|
|
18
|
-
};
|
|
19
|
-
const Ghost = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
20
|
-
ghost: true,
|
|
21
|
-
...args
|
|
22
|
-
});
|
|
23
|
-
exports.Ghost = Ghost;
|
|
24
|
-
Ghost.args = {
|
|
25
|
-
icon: 'gear'
|
|
26
|
-
};
|
|
27
|
-
const Intents = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
28
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
29
|
-
intent: "info",
|
|
30
|
-
...Basic.args
|
|
31
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
32
|
-
intent: "success",
|
|
33
|
-
...Basic.args
|
|
34
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
35
|
-
intent: "warning",
|
|
36
|
-
...Basic.args
|
|
37
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
38
|
-
intent: "danger",
|
|
39
|
-
...Basic.args
|
|
40
|
-
})]
|
|
41
|
-
});
|
|
42
|
-
exports.Intents = Intents;
|
|
43
|
-
const Arrows = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
44
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
45
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
46
|
-
arrow: "forward",
|
|
47
|
-
...Basic.args
|
|
48
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
49
|
-
arrow: "forward",
|
|
50
|
-
size: "lg",
|
|
51
|
-
...Basic.args
|
|
52
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
53
|
-
arrow: "forward",
|
|
54
|
-
icon: "cpu",
|
|
55
|
-
...Basic.args
|
|
56
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
57
|
-
arrow: "forward",
|
|
58
|
-
intent: "danger",
|
|
59
|
-
...Basic.args
|
|
60
|
-
})]
|
|
61
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
62
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
63
|
-
arrow: "backward",
|
|
64
|
-
...Basic.args
|
|
65
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
66
|
-
arrow: "backward",
|
|
67
|
-
size: "lg",
|
|
68
|
-
...Basic.args
|
|
69
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
70
|
-
arrow: "backward",
|
|
71
|
-
icon: "cpu",
|
|
72
|
-
...Basic.args
|
|
73
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
74
|
-
arrow: "backward",
|
|
75
|
-
intent: "danger",
|
|
76
|
-
...Basic.args
|
|
77
|
-
})]
|
|
78
|
-
})]
|
|
79
|
-
});
|
|
80
|
-
exports.Arrows = Arrows;
|
|
81
|
-
const States = () => [{
|
|
82
|
-
intent: 'primary'
|
|
83
|
-
}, {
|
|
84
|
-
disabled: true
|
|
85
|
-
}, {
|
|
86
|
-
ghost: true
|
|
87
|
-
}].map((props, index) =>
|
|
88
|
-
/*#__PURE__*/
|
|
89
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
90
|
-
(0, _jsxRuntime.jsxs)("p", {
|
|
91
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
92
|
-
state: "hovered",
|
|
93
|
-
...Basic.args,
|
|
94
|
-
...props
|
|
95
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
96
|
-
state: "active",
|
|
97
|
-
...Basic.args,
|
|
98
|
-
...props
|
|
99
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
100
|
-
state: "loading",
|
|
101
|
-
...Basic.args,
|
|
102
|
-
...props
|
|
103
|
-
}), ` `, /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
104
|
-
state: "focused",
|
|
105
|
-
...Basic.args,
|
|
106
|
-
...props
|
|
107
|
-
})]
|
|
108
|
-
}, index.toString()));
|
|
109
|
-
exports.States = States;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.WithItemList = exports.Basic = void 0;
|
|
8
|
-
var _Cuttable = _interopRequireDefault(require("./Cuttable"));
|
|
9
|
-
var _Paragraph = _interopRequireDefault(require("../Paragraph"));
|
|
10
|
-
var _ItemList = require("../ItemList/ItemList.stories");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
13
|
-
|
|
14
|
-
const Basic = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cuttable.default, {
|
|
15
|
-
...args
|
|
16
|
-
});
|
|
17
|
-
exports.Basic = Basic;
|
|
18
|
-
Basic.args = {
|
|
19
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
20
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Paragraph.default, {
|
|
21
|
-
children: 'Text 1'
|
|
22
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Paragraph.default, {
|
|
23
|
-
children: 'Text 2'
|
|
24
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Paragraph.default, {
|
|
25
|
-
children: 'Text 3'
|
|
26
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Paragraph.default, {
|
|
27
|
-
children: 'Text 4'
|
|
28
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Paragraph.default, {
|
|
29
|
-
children: 'Text 5'
|
|
30
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Paragraph.default, {
|
|
31
|
-
children: 'Text 6'
|
|
32
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Paragraph.default, {
|
|
33
|
-
children: 'Text 7'
|
|
34
|
-
})]
|
|
35
|
-
})
|
|
36
|
-
};
|
|
37
|
-
const WithItemList = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Cuttable.default, {
|
|
38
|
-
...args
|
|
39
|
-
});
|
|
40
|
-
exports.WithItemList = WithItemList;
|
|
41
|
-
WithItemList.args = {
|
|
42
|
-
maxHeight: 60,
|
|
43
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ItemList.Basic, {
|
|
44
|
-
..._ItemList.Basic.args
|
|
45
|
-
})
|
|
46
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.WithSideBanner = exports.Basic = void 0;
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
10
|
-
var _Dialog = _interopRequireDefault(require("./Dialog"));
|
|
11
|
-
var _placeholder_400x = _interopRequireDefault(require("../../docs/public/placeholders/placeholder_400x400.svg"));
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
14
|
-
|
|
15
|
-
const Basic = args => {
|
|
16
|
-
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
17
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
19
|
-
onClick: () => setIsOpen(true),
|
|
20
|
-
"data-id": "trigger",
|
|
21
|
-
children: 'Open'
|
|
22
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Dialog.default, {
|
|
23
|
-
...args,
|
|
24
|
-
"data-type": "test",
|
|
25
|
-
isOpen: isOpen,
|
|
26
|
-
onClose: () => setIsOpen(false)
|
|
27
|
-
})]
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
exports.Basic = Basic;
|
|
31
|
-
Basic.args = {
|
|
32
|
-
children: 'Dialog content.',
|
|
33
|
-
title: 'Title',
|
|
34
|
-
subtitle: 'Subtitle'
|
|
35
|
-
};
|
|
36
|
-
const WithSideBanner = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
37
|
-
...args
|
|
38
|
-
});
|
|
39
|
-
exports.WithSideBanner = WithSideBanner;
|
|
40
|
-
WithSideBanner.args = {
|
|
41
|
-
...Basic.args,
|
|
42
|
-
size: 'xs',
|
|
43
|
-
sideBanner: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
44
|
-
src: _placeholder_400x.default
|
|
45
|
-
}),
|
|
46
|
-
sideBannerContainer: {
|
|
47
|
-
background: 'skyblue'
|
|
48
|
-
}
|
|
49
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.WithSideBanner = exports.WithForm = exports.WithClosingConfirmation = exports.Basic = void 0;
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _Button = _interopRequireDefault(require("../Button"));
|
|
10
|
-
var _Drawer = _interopRequireDefault(require("./Drawer"));
|
|
11
|
-
var _placeholder_400x = _interopRequireDefault(require("../../docs/public/placeholders/placeholder_400x400.svg"));
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
14
|
-
|
|
15
|
-
const Basic = args => {
|
|
16
|
-
const [isOpen, setIsOpen] = (0, _react.useState)(false);
|
|
17
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
18
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
19
|
-
onClick: () => setIsOpen(true),
|
|
20
|
-
"data-id": "trigger",
|
|
21
|
-
children: 'Open'
|
|
22
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Drawer.default, {
|
|
23
|
-
...args,
|
|
24
|
-
"data-type": "test",
|
|
25
|
-
isOpen: isOpen,
|
|
26
|
-
onClose: () => setIsOpen(false)
|
|
27
|
-
})]
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
exports.Basic = Basic;
|
|
31
|
-
Basic.args = {
|
|
32
|
-
children: 'Drawer content.',
|
|
33
|
-
title: 'Title',
|
|
34
|
-
subtitle: 'Subtitle'
|
|
35
|
-
};
|
|
36
|
-
const WithForm = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
37
|
-
...args
|
|
38
|
-
});
|
|
39
|
-
exports.WithForm = WithForm;
|
|
40
|
-
WithForm.args = {
|
|
41
|
-
...Basic.args,
|
|
42
|
-
form: {}
|
|
43
|
-
};
|
|
44
|
-
const WithSideBanner = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
45
|
-
...args
|
|
46
|
-
});
|
|
47
|
-
exports.WithSideBanner = WithSideBanner;
|
|
48
|
-
WithSideBanner.args = {
|
|
49
|
-
...Basic.args,
|
|
50
|
-
size: 'xs',
|
|
51
|
-
sideBanner: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
52
|
-
src: _placeholder_400x.default
|
|
53
|
-
}),
|
|
54
|
-
sideBannerContainer: {
|
|
55
|
-
background: 'skyblue'
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
const WithClosingConfirmation = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
59
|
-
...args
|
|
60
|
-
});
|
|
61
|
-
exports.WithClosingConfirmation = WithClosingConfirmation;
|
|
62
|
-
WithClosingConfirmation.args = {
|
|
63
|
-
...Basic.args,
|
|
64
|
-
closingConfirmation: true
|
|
65
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Basic = void 0;
|
|
8
|
-
var _Form = _interopRequireDefault(require("./Form"));
|
|
9
|
-
var _FormFieldText = _interopRequireDefault(require("../FormFieldText"));
|
|
10
|
-
var _FormFieldPassword = _interopRequireDefault(require("../FormFieldPassword"));
|
|
11
|
-
var _FormFieldCheckbox = _interopRequireDefault(require("../FormFieldCheckbox"));
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
14
|
-
|
|
15
|
-
const Basic = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Form.default, {
|
|
16
|
-
...args
|
|
17
|
-
});
|
|
18
|
-
exports.Basic = Basic;
|
|
19
|
-
Basic.args = {
|
|
20
|
-
values: {
|
|
21
|
-
field1: 'Value 1',
|
|
22
|
-
field2: 'Value 2',
|
|
23
|
-
field3: true
|
|
24
|
-
},
|
|
25
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FormFieldText.default, {
|
|
26
|
-
label: "Field 1",
|
|
27
|
-
name: "field1"
|
|
28
|
-
}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormFieldPassword.default, {
|
|
29
|
-
label: "Field 2",
|
|
30
|
-
name: "field2"
|
|
31
|
-
}, "2"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormFieldCheckbox.default, {
|
|
32
|
-
label: "Field 3",
|
|
33
|
-
name: "field3"
|
|
34
|
-
}, "3")]
|
|
35
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.WithFullDescription = exports.Basic = void 0;
|
|
8
|
-
var _Form = _interopRequireDefault(require("../Form"));
|
|
9
|
-
var _FormFieldCheckbox = _interopRequireDefault(require("./FormFieldCheckbox"));
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
12
|
-
|
|
13
|
-
const Basic = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Form.default, {
|
|
14
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormFieldCheckbox.default, {
|
|
15
|
-
...args
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
exports.Basic = Basic;
|
|
19
|
-
Basic.args = {
|
|
20
|
-
name: 'name',
|
|
21
|
-
label: 'Lorem ipsum dolor sit amet.'
|
|
22
|
-
};
|
|
23
|
-
const WithFullDescription = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(Basic, {
|
|
24
|
-
...args
|
|
25
|
-
});
|
|
26
|
-
exports.WithFullDescription = WithFullDescription;
|
|
27
|
-
WithFullDescription.args = {
|
|
28
|
-
...Basic.args,
|
|
29
|
-
label: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac justo sed neque interdum varius. Aenean sollicitudin placerat orci, quis viverra libero mattis a. Morbi ac erat sed elit ullamcorper laoreet sed eget tortor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.',
|
|
30
|
-
fullDescription: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec ac justo sed neque interdum varius. Aenean sollicitudin placerat orci, quis viverra libero mattis a.',
|
|
31
|
-
required: true
|
|
32
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Basic = exports.All = void 0;
|
|
8
|
-
var _Icon = _interopRequireDefault(require("./Icon"));
|
|
9
|
-
var _constants = require("./constants");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
12
|
-
|
|
13
|
-
const Basic = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
14
|
-
...args
|
|
15
|
-
});
|
|
16
|
-
exports.Basic = Basic;
|
|
17
|
-
Basic.args = {};
|
|
18
|
-
const All = () => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
|
-
style: {
|
|
20
|
-
display: 'inline-block'
|
|
21
|
-
},
|
|
22
|
-
id: "icons",
|
|
23
|
-
children: _constants.NAMES_12.map(name => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
|
-
style: {
|
|
25
|
-
margin: 16
|
|
26
|
-
},
|
|
27
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.default, {
|
|
28
|
-
name: name
|
|
29
|
-
})
|
|
30
|
-
}, name))
|
|
31
|
-
});
|
|
32
|
-
exports.All = All;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.Basic = void 0;
|
|
8
|
-
var _ItemLink = _interopRequireDefault(require("./ItemLink"));
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
// Copyright 1999-2023. Plesk International GmbH. All rights reserved.
|
|
11
|
-
|
|
12
|
-
const Basic = args => /*#__PURE__*/(0, _jsxRuntime.jsx)(_ItemLink.default, {
|
|
13
|
-
...args
|
|
14
|
-
});
|
|
15
|
-
exports.Basic = Basic;
|
|
16
|
-
Basic.args = {
|
|
17
|
-
children: 'Add new item',
|
|
18
|
-
onClick: () => {},
|
|
19
|
-
'data-test': 'item-link'
|
|
20
|
-
};
|