@plesk/ui-library 3.45.1 → 3.46.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/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 +66 -9
- 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 +87 -17
- 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/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 +66 -9
- package/esm/components/Markdown/Markdown.js +2 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/styleguide/build/bundle.19f0a6f2.js +2 -0
- package/styleguide/index.html +2 -2
- package/types/components/FormFieldPassword/PasswordMeter.d.ts +3 -1
- package/types/components/FormFieldPassword/index.d.ts +1 -0
- package/types/components/Layout/Layout.d.ts +10 -0
- package/types/components/Markdown/Markdown.d.ts +7 -1
- package/styleguide/build/bundle.a9dbfec3.js +0 -2
- /package/styleguide/build/{bundle.a9dbfec3.js.LICENSE.txt → bundle.19f0a6f2.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.
|
|
7
|
+
<title>Plesk UI Library 3.46.1</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.19f0a6f2.js"></script>
|
|
30
30
|
</body>
|
|
31
31
|
</html>
|
|
@@ -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;
|
|
@@ -46,6 +46,16 @@ export interface LayoutProps {
|
|
|
46
46
|
* @since 1.4.0
|
|
47
47
|
*/
|
|
48
48
|
sidebarCollapsed?: boolean | CollapsedState[];
|
|
49
|
+
/**
|
|
50
|
+
* Right sidebar content.
|
|
51
|
+
* @since 3.45.2
|
|
52
|
+
*/
|
|
53
|
+
rightSidebar?: ReactNode;
|
|
54
|
+
/**
|
|
55
|
+
* Right sidebar visibility.
|
|
56
|
+
* @since 3.45.2
|
|
57
|
+
*/
|
|
58
|
+
rightSidebarVisible?: boolean;
|
|
49
59
|
/**
|
|
50
60
|
* Additional content between header and main content.
|
|
51
61
|
* @since 1.4.0
|
|
@@ -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;
|