@plesk/ui-library 3.27.4 → 3.28.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.
- package/cjs/components/Form/Form.js +4 -2
- package/cjs/components/FormFieldPassword/estimatePassword.js +19 -10
- package/cjs/components/Skeleton/Skeleton.js +49 -0
- package/cjs/components/Skeleton/Skeleton.stories.js +26 -0
- package/cjs/components/Skeleton/SkeletonTabs.js +41 -0
- package/cjs/components/Skeleton/SkeletonTabs.stories.js +17 -0
- package/cjs/components/Skeleton/SkeletonText.js +45 -0
- package/cjs/components/Skeleton/SkeletonText.stories.js +35 -0
- package/cjs/components/Skeleton/index.js +31 -0
- package/cjs/components/index.js +22 -1
- package/cjs/components/utils.js +6 -2
- package/cjs/index.js +1 -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 +295 -14
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +3 -3
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Form/Form.js +4 -2
- package/esm/components/FormFieldPassword/estimatePassword.js +19 -10
- package/esm/components/Skeleton/Skeleton.js +34 -0
- package/esm/components/Skeleton/Skeleton.stories.js +10 -0
- package/esm/components/Skeleton/SkeletonTabs.js +26 -0
- package/esm/components/Skeleton/SkeletonTabs.stories.js +4 -0
- package/esm/components/Skeleton/SkeletonText.js +30 -0
- package/esm/components/Skeleton/SkeletonText.stories.js +16 -0
- package/esm/components/Skeleton/index.js +4 -0
- package/esm/components/index.js +3 -1
- package/esm/components/utils.js +2 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
- package/styleguide/build/bundle.24d5b0eb.js +2 -0
- package/styleguide/build/{bundle.5df0ee96.js.LICENSE.txt → bundle.24d5b0eb.js.LICENSE.txt} +0 -0
- package/styleguide/index.html +2 -2
- package/types/src/components/Skeleton/Skeleton.d.ts +49 -0
- package/types/src/components/Skeleton/Skeleton.stories.d.ts +12 -0
- package/types/src/components/Skeleton/SkeletonTabs.d.ts +23 -0
- package/types/src/components/Skeleton/SkeletonTabs.stories.d.ts +6 -0
- package/types/src/components/Skeleton/SkeletonText.d.ts +34 -0
- package/types/src/components/Skeleton/SkeletonText.stories.d.ts +38 -0
- package/types/src/components/Skeleton/index.d.ts +3 -0
- package/types/src/components/index.d.ts +2 -0
- package/types/src/components/utils.d.ts +1 -0
- package/styleguide/build/bundle.5df0ee96.js +0 -2
|
File without changes
|
package/styleguide/index.html
CHANGED
|
@@ -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.
|
|
7
|
+
<title>Plesk UI Library 3.28.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">
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
</script>
|
|
41
41
|
<noscript><div><img src="https://mc.yandex.ru/watch/56446840" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
|
42
42
|
<!-- /Yandex.Metrika counter -->
|
|
43
|
-
<script src="build/bundle.
|
|
43
|
+
<script src="build/bundle.24d5b0eb.js"></script>
|
|
44
44
|
</body>
|
|
45
45
|
</html>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ComponentType, FC } from 'react';
|
|
2
|
+
import './Skeleton.less';
|
|
3
|
+
export declare type SkeletonProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Skeleton width. For the width specified as a number, `'px'` is used as the unit.
|
|
6
|
+
* You can also specify a value with other units such as `'em'`, `'%'`, etc. (f.e. 20%, 10em)
|
|
7
|
+
* @since 3.28.0
|
|
8
|
+
*/
|
|
9
|
+
width?: number | string;
|
|
10
|
+
/**
|
|
11
|
+
* Skeleton max width. For the width specified as a number, `'px'` is used as the unit.
|
|
12
|
+
* You can also specify a value with other units such as `'em'`, `'%'`, etc. (f.e. 20%, 10em)
|
|
13
|
+
* @since 3.28.0
|
|
14
|
+
*/
|
|
15
|
+
maxWidth?: number | string;
|
|
16
|
+
/**
|
|
17
|
+
* Skeleton height. For the width specified as a number, `'px'` is used as the unit.
|
|
18
|
+
* You can also specify a value with other units such as `'em'`, `'%'`, etc. (f.e. 20%, 10em)
|
|
19
|
+
* @since 3.28.0
|
|
20
|
+
*/
|
|
21
|
+
height?: number | string;
|
|
22
|
+
/**
|
|
23
|
+
* custom styles for skeleton
|
|
24
|
+
* @since 3.28.0
|
|
25
|
+
*/
|
|
26
|
+
style?: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Component to render as the root element.
|
|
31
|
+
* @since 3.28.0
|
|
32
|
+
*/
|
|
33
|
+
component?: ComponentType | keyof JSX.IntrinsicElements;
|
|
34
|
+
/**
|
|
35
|
+
* @ignore
|
|
36
|
+
*/
|
|
37
|
+
baseClassName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* `Skeleton` (or content-placeholder) is placeholder preview of content before the data gets loaded to reduce load-time frustration.
|
|
45
|
+
* Skeleton is used for non-text components, images, media-objects, etc.
|
|
46
|
+
* @since 3.28.0
|
|
47
|
+
*/
|
|
48
|
+
declare const Skeleton: FC<SkeletonProps>;
|
|
49
|
+
export default Skeleton;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Basic: {
|
|
3
|
+
(args: React.PropsWithChildren<import("./Skeleton").SkeletonProps>): JSX.Element;
|
|
4
|
+
args: {};
|
|
5
|
+
};
|
|
6
|
+
export declare const CustomSize: {
|
|
7
|
+
(args: React.PropsWithChildren<import("./Skeleton").SkeletonProps>): JSX.Element;
|
|
8
|
+
args: {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import './SkeletonTabs.less';
|
|
3
|
+
declare type SkeletonTabsProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Number of tabs
|
|
6
|
+
* @since 3.28.0
|
|
7
|
+
*/
|
|
8
|
+
count?: number;
|
|
9
|
+
/**
|
|
10
|
+
* @ignore
|
|
11
|
+
*/
|
|
12
|
+
className: string;
|
|
13
|
+
/**
|
|
14
|
+
* @ignore
|
|
15
|
+
*/
|
|
16
|
+
baseClassName: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Skeleton for tabs component
|
|
20
|
+
* @since `3.28.0
|
|
21
|
+
*/
|
|
22
|
+
declare const SkeletonTabs: FC<SkeletonTabsProps>;
|
|
23
|
+
export default SkeletonTabs;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FC, ComponentType } from 'react';
|
|
2
|
+
import { SkeletonProps } from './Skeleton';
|
|
3
|
+
import './SkeletonText.less';
|
|
4
|
+
declare type SkeletonTextProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Number of rows
|
|
7
|
+
* @since 3.28.0
|
|
8
|
+
*/
|
|
9
|
+
lines?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Props for line
|
|
12
|
+
* @since 3.28.0
|
|
13
|
+
*/
|
|
14
|
+
lineProps?: SkeletonProps;
|
|
15
|
+
/**
|
|
16
|
+
* Component to render as the root element.
|
|
17
|
+
* @since 3.28.0
|
|
18
|
+
*/
|
|
19
|
+
component?: ComponentType | keyof JSX.IntrinsicElements;
|
|
20
|
+
/**
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
baseClassName?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @ignore
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Skeleton for text-containing components. Is can be used inside Paragraph, as title, or single text
|
|
31
|
+
* @since 3.28.0
|
|
32
|
+
*/
|
|
33
|
+
declare const SkeletonText: FC<SkeletonTextProps>;
|
|
34
|
+
export default SkeletonText;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const Basic: {
|
|
3
|
+
(args: React.PropsWithChildren<{
|
|
4
|
+
lines?: number | undefined;
|
|
5
|
+
lineProps?: import("./Skeleton").SkeletonProps | undefined;
|
|
6
|
+
component?: "symbol" | "object" | "big" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "main" | "map" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "summary" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "u" | "ul" | "var" | "video" | "wbr" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "svg" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | "menuitem" | "keygen" | "noindex" | "webview" | "animate" | "animateMotion" | "animateTransform" | "feDropShadow" | "mpath" | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
|
|
7
|
+
baseClassName?: string | undefined;
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
}>): JSX.Element;
|
|
10
|
+
args: {};
|
|
11
|
+
};
|
|
12
|
+
export declare const LinesCount: {
|
|
13
|
+
(args: React.PropsWithChildren<{
|
|
14
|
+
lines?: number | undefined;
|
|
15
|
+
lineProps?: import("./Skeleton").SkeletonProps | undefined;
|
|
16
|
+
component?: "symbol" | "object" | "big" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "main" | "map" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "summary" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "u" | "ul" | "var" | "video" | "wbr" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "svg" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | "menuitem" | "keygen" | "noindex" | "webview" | "animate" | "animateMotion" | "animateTransform" | "feDropShadow" | "mpath" | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
|
|
17
|
+
baseClassName?: string | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
}>): JSX.Element;
|
|
20
|
+
args: {
|
|
21
|
+
lines: number;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const Custom: {
|
|
25
|
+
(args: React.PropsWithChildren<{
|
|
26
|
+
lines?: number | undefined;
|
|
27
|
+
lineProps?: import("./Skeleton").SkeletonProps | undefined;
|
|
28
|
+
component?: "symbol" | "object" | "big" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "main" | "map" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "source" | "span" | "strong" | "style" | "summary" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "u" | "ul" | "var" | "video" | "wbr" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "svg" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | "menuitem" | "keygen" | "noindex" | "webview" | "animate" | "animateMotion" | "animateTransform" | "feDropShadow" | "mpath" | React.ComponentClass<{}, any> | React.FunctionComponent<{}> | undefined;
|
|
29
|
+
baseClassName?: string | undefined;
|
|
30
|
+
className?: string | undefined;
|
|
31
|
+
}>): JSX.Element;
|
|
32
|
+
args: {
|
|
33
|
+
lines: number;
|
|
34
|
+
lineProps: {
|
|
35
|
+
width: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -96,3 +96,5 @@ export { default as Tooltip } from './Tooltip';
|
|
|
96
96
|
export { default as Tour } from './Tour';
|
|
97
97
|
export { default as Translate } from './Translate';
|
|
98
98
|
export { default as Link } from './Link';
|
|
99
|
+
export { default as Skeleton } from './Skeleton';
|
|
100
|
+
export * from './Skeleton';
|
|
@@ -25,4 +25,5 @@ export declare const createFocusManager: (containerRef: React.RefObject<HTMLElem
|
|
|
25
25
|
focusLast: (attempt?: number) => boolean;
|
|
26
26
|
};
|
|
27
27
|
export declare const mergeRefs: <T>(...refs: React.Ref<T | null>[]) => (value: T | null) => void;
|
|
28
|
+
export declare const normalizeSize: (value?: string | number | undefined) => string | number | undefined;
|
|
28
29
|
export {};
|