@plesk/ui-library 3.46.0 → 3.46.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/FormFieldPassword/FormFieldPassword.js +0 -1
- package/cjs/components/FormFieldPassword/PasswordMeter.js +8 -2
- package/cjs/components/FormFieldPassword/index.js +8 -1
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +2 -3
- package/cjs/components/Layout/Layout.js +17 -7
- package/cjs/components/Markdown/Markdown.js +2 -1
- 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 +38 -16
- 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/FormFieldPassword/FormFieldPassword.js +0 -1
- package/esm/components/FormFieldPassword/PasswordMeter.js +6 -1
- package/esm/components/FormFieldPassword/index.js +2 -1
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +2 -3
- package/esm/components/Layout/Layout.js +17 -7
- package/esm/components/Markdown/Markdown.js +2 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/styleguide/build/bundle.1a395777.js +2 -0
- package/styleguide/index.html +2 -2
- package/types/components/FormFieldPassword/FormFieldPassword.d.ts +1 -17
- package/types/components/FormFieldPassword/PasswordMeter.d.ts +3 -1
- package/types/components/FormFieldPassword/index.d.ts +1 -0
- package/types/components/Markdown/Markdown.d.ts +7 -1
- package/styleguide/build/bundle.1db50e1a.js +0 -2
- /package/styleguide/build/{bundle.1db50e1a.js.LICENSE.txt → bundle.1a395777.js.LICENSE.txt} +0 -0
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.46.
|
|
7
|
+
<title>Plesk UI Library 3.46.2</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.
|
|
29
|
+
<script src="build/bundle.1a395777.js"></script>
|
|
30
30
|
</body>
|
|
31
31
|
</html>
|
|
@@ -68,21 +68,5 @@ export type FormFieldPasswordProps = {
|
|
|
68
68
|
*/
|
|
69
69
|
translate?: Translate;
|
|
70
70
|
} & ComponentProps<typeof FormField>;
|
|
71
|
-
declare const FormFieldPasswordWrapper:
|
|
72
|
-
(props: FormFieldPasswordProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
-
defaultProps: {
|
|
74
|
-
hideShowButton: boolean;
|
|
75
|
-
copyButton: undefined;
|
|
76
|
-
generateButton: undefined;
|
|
77
|
-
hideCopyButton: boolean;
|
|
78
|
-
hideGenerateButton: boolean;
|
|
79
|
-
hidePasswordMeter: boolean;
|
|
80
|
-
passwordMeterProps: {};
|
|
81
|
-
size: string;
|
|
82
|
-
autoFocus: undefined;
|
|
83
|
-
autoComplete: undefined;
|
|
84
|
-
className: undefined;
|
|
85
|
-
baseClassName: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
71
|
+
declare const FormFieldPasswordWrapper: (props: FormFieldPasswordProps) => import("react/jsx-runtime").JSX.Element;
|
|
88
72
|
export default FormFieldPasswordWrapper;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { FunctionComponent, ReactElement } from 'react';
|
|
2
2
|
import { PopoverProps } from '../Popover';
|
|
3
3
|
import estimatePassword, { EstimateResult, EstimateRule } from './estimatePassword';
|
|
4
|
+
type PasswordEstimateFn = (password: string, defaultEstimateFn: typeof estimatePassword, defaultEstimateRules: EstimateRule[]) => EstimateResult | Promise<EstimateResult>;
|
|
5
|
+
export declare const setDefaultPasswordEstimateFunction: (fn: PasswordEstimateFn) => void;
|
|
4
6
|
export type PasswordMeterProps = {
|
|
5
7
|
children: ReactElement;
|
|
6
8
|
value: string;
|
|
7
|
-
onEstimate?:
|
|
9
|
+
onEstimate?: PasswordEstimateFn;
|
|
8
10
|
} & Omit<PopoverProps, 'children' | 'target'>;
|
|
9
11
|
declare const PasswordMeter: FunctionComponent<PasswordMeterProps>;
|
|
10
12
|
export default PasswordMeter;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { MarkedOptions } from 'marked';
|
|
2
3
|
import './Markdown.less';
|
|
3
4
|
export type MarkdownProps = {
|
|
4
5
|
/**
|
|
@@ -19,10 +20,15 @@ export type MarkdownProps = {
|
|
|
19
20
|
* @since 0.0.42
|
|
20
21
|
*/
|
|
21
22
|
compact?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Options for marked parser
|
|
25
|
+
* @since 3.46.1
|
|
26
|
+
*/
|
|
27
|
+
parserOptions?: MarkedOptions;
|
|
22
28
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children'>;
|
|
23
29
|
/**
|
|
24
30
|
* `Markdown` component is used for creating content with rich text formatting.
|
|
25
31
|
* @since 0.0.42
|
|
26
32
|
*/
|
|
27
|
-
declare const Markdown: ({ baseClassName, className, compact, children, ...props }: MarkdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare const Markdown: ({ baseClassName, className, compact, children, parserOptions, ...props }: MarkdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
34
|
export default Markdown;
|