@plesk/ui-library 3.35.0 → 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/Icon/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +15 -1
- package/cjs/components/Link/Link.js +1 -2
- package/cjs/components/List/List.js +11 -8
- package/cjs/components/Progress/Progress.js +8 -28
- package/cjs/components/ProgressDialog/ProgressDialog.js +12 -85
- package/cjs/components/ProgressStep/ProgressStep.js +4 -46
- package/cjs/components/ProgressStep/index.js +36 -12
- 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/Switch/Switch.js +43 -118
- 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/Tooltip/Tooltip.js +35 -64
- package/cjs/components/Translate/Translate.js +10 -78
- package/cjs/components/Translate/index.js +4 -4
- package/cjs/components/Translate/isLikeText.js +27 -0
- package/cjs/components/index.js +14 -11
- package/cjs/index.js +1 -1
- package/cjs/tests/index.js +13 -0
- package/cjs/tests/renderer.js +33 -0
- package/dist/images/symbols.svg +15 -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 +567 -1139
- 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/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +15 -1
- package/esm/components/Link/Link.js +1 -2
- package/esm/components/List/List.js +11 -8
- package/esm/components/Progress/Progress.js +8 -26
- package/esm/components/ProgressDialog/ProgressDialog.js +12 -83
- package/esm/components/ProgressStep/ProgressStep.js +6 -48
- package/esm/components/ProgressStep/index.js +1 -2
- 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/Switch/Switch.js +43 -116
- 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/Tooltip/Tooltip.js +36 -62
- package/esm/components/Translate/Translate.js +9 -73
- package/esm/components/Translate/index.js +2 -1
- package/esm/components/Translate/isLikeText.js +19 -0
- package/esm/components/index.js +1 -2
- package/esm/index.js +1 -1
- package/esm/tests/index.js +3 -0
- package/esm/tests/renderer.js +25 -0
- package/package.json +25 -22
- package/styleguide/build/bundle.6318f4a5.js +2 -0
- package/styleguide/images/symbols.svg +15 -1
- 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/DrawerProgress.d.ts +3 -3
- 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/Icon/constants.d.ts +1 -1
- package/types/src/components/ItemList/index.d.ts +1 -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/Pagination/index.d.ts +1 -0
- package/types/src/components/Panel/index.d.ts +1 -0
- package/types/src/components/Progress/Progress.d.ts +49 -0
- package/types/src/components/Progress/index.d.ts +2 -0
- package/types/src/components/ProgressDialog/ProgressDialog.d.ts +125 -0
- package/types/src/components/ProgressDialog/index.d.ts +2 -0
- package/types/src/components/ProgressStep/ProgressStep.d.ts +69 -0
- package/types/src/components/ProgressStep/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/Switch/Switch.d.ts +58 -0
- package/types/src/components/Switch/index.d.ts +2 -0
- 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/TextArea/index.d.ts +1 -0
- package/types/src/components/Tooltip/Tooltip.d.ts +61 -0
- package/types/src/components/Tooltip/index.d.ts +2 -0
- package/types/src/components/Translate/Translate.d.ts +56 -0
- package/types/src/components/Translate/index.d.ts +3 -0
- package/types/src/components/Translate/isLikeText.d.ts +2 -0
- package/types/src/components/index.d.ts +15 -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/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.2a886a79.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/styleguide/build/{bundle.2a886a79.js.LICENSE.txt → bundle.6318f4a5.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="
|
|
1
|
+
<svg width="16" height="11856" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
2
|
<defs>
|
|
3
3
|
<symbol viewBox="0 0 12 12" id="archive:12">
|
|
4
4
|
<path d="M2 1h7v.5a.5.5 0 0 0 1 0V1a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1v-.5a.5.5 0 0 0-1 0v.5H2V1z" />
|
|
@@ -58,6 +58,12 @@
|
|
|
58
58
|
<symbol viewBox="0 0 16 16" id="arrow-left:16">
|
|
59
59
|
<path d="M.2018 8.0966A.4945.4945 0 0 0 0 8.498V8.5a.4945.4945 0 0 0 .2018.4034l3.4513 3.4513a.4961.4961 0 0 0 .7016-.7016L1.7016 9H15.5a.5.5 0 0 0 0-1H1.7016l2.6531-2.6531a.496.496 0 0 0-.7016-.7016L.2018 8.0966z" />
|
|
60
60
|
</symbol>
|
|
61
|
+
<symbol viewBox="0 0 12 12" id="arrow-right-circle-filled:12">
|
|
62
|
+
<path fill-rule="evenodd" d="M1 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 0 0-11 0ZM2.5 6a.5.5 0 0 0 0 1h5.8L6.65 8.65a.5.5 0 0 0 .7.7L9.8 6.9a.5.5 0 0 0 .2-.4.5.5 0 0 0-.2-.4L7.35 3.65a.5.5 0 0 0-.7.7L8.3 6H2.5Z" clip-rule="evenodd" />
|
|
63
|
+
</symbol>
|
|
64
|
+
<symbol viewBox="0 0 16 16" id="arrow-right-circle-filled:16">
|
|
65
|
+
<path fill-rule="evenodd" d="M8.5 16a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Zm.15-3.65a.5.5 0 0 1 0-.7L11.3 9H3.5a.5.5 0 0 1 0-1h7.8L8.65 5.35a.5.5 0 0 1 .7-.7L12.8 8.1a.5.5 0 0 1 .2.4.5.5 0 0 1-.2.4l-3.45 3.45c-.2.2-.51.2-.7 0Z" clip-rule="evenodd" />
|
|
66
|
+
</symbol>
|
|
61
67
|
<symbol viewBox="0 0 12 12" id="arrow-right-in:12">
|
|
62
68
|
<path d="M2 2h9v9H2v-1a.5.5 0 00-1 0v1a1 1 0 001 1h9a1 1 0 001-1V2a1 1 0 00-1-1H2a1 1 0 00-1 1v1a.5.5 0 001 0V2z" />
|
|
63
69
|
<path d="M5.645 4.347a.496.496 0 01.702-.702l2.451 2.452A.499.499 0 019 6.498v.004a.495.495 0 01-.202.401L6.347 9.355a.496.496 0 01-.702-.702L7.298 7H.5a.5.5 0 010-1h6.798L5.645 4.347z" />
|
|
@@ -1318,6 +1324,14 @@
|
|
|
1318
1324
|
<symbol viewBox="0 0 16 16" id="puzzle:16">
|
|
1319
1325
|
<path fill-rule="evenodd" d="M7 0a2 2 0 0 0-2 2v1H1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h1a1 1 0 0 1 0 2H1a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1v-1a1 1 0 1 1 2 0v1a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-4h1a2 2 0 1 0 0-4h-1V4a1 1 0 0 0-1-1H9V2a2 2 0 0 0-2-2zM2 11H1v4h4v-1a2 2 0 1 1 4 0v1h3v-4a1 1 0 0 1 1-1h1a1 1 0 1 0 0-2h-1a1 1 0 0 1-1-1V4H9a1 1 0 0 1-1-1V2a1 1 0 0 0-2 0v1a1 1 0 0 1-1 1H1v3h1a2 2 0 1 1 0 4z" clip-rule="evenodd" />
|
|
1320
1326
|
</symbol>
|
|
1327
|
+
<symbol viewBox="0 0 12 12" id="python:12">
|
|
1328
|
+
<path d="M6 2a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm.5 8.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z" />
|
|
1329
|
+
<path fill-rule="evenodd" d="M8.5 8.5v2.78a4.68 4.68 0 0 1-5 0V8.5H.69a8.08 8.08 0 0 1-.41-.98C.14 7.12 0 6.56 0 6s.14-1.11.28-1.52c.1-.34.25-.66.4-.98H3.5V.72A4.67 4.67 0 0 1 6 0c.9 0 1.74.25 2.5.72V3.5h2.81c.16.32.3.64.41.98A5 5 0 0 1 12 6c0 .56-.14 1.11-.27 1.52-.12.34-.26.66-.41.98H8.5zm-4-5V1.3a3.83 3.83 0 0 1 3 0v3.2c0 .87-.4 1-.5 1H5c-.9 0-1.5.87-1.5 2H1.33a6.06 6.06 0 0 1-.1-.3C1.1 6.84 1 6.4 1 6c0-.4.1-.84.23-1.2a6.06 6.06 0 0 1 .1-.3H6v-1H4.5zm4 1c0 1.13-.6 2-1.5 2H5c-.1 0-.5.13-.5 1v3.2a3.83 3.83 0 0 0 3 0V8.5H6v-1h4.67l.1-.3c.12-.36.23-.8.23-1.2 0-.4-.1-.84-.23-1.2a6.1 6.1 0 0 0-.1-.3H8.5z" clip-rule="evenodd" />
|
|
1330
|
+
</symbol>
|
|
1331
|
+
<symbol viewBox="0 0 16 16" id="python:16">
|
|
1332
|
+
<path d="M8 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM8.5 14a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z" />
|
|
1333
|
+
<path fill-rule="evenodd" d="M5 11H.66a10.9 10.9 0 0 1-.4-1.17C.15 9.33 0 8.66 0 8a7.45 7.45 0 0 1 .45-2.44L.65 5H5V.66c.39-.15.77-.29 1.17-.4C6.67.15 7.34 0 8 0c.66 0 1.33.14 1.83.27.4.1.78.24 1.17.39V5h4.34c.26.66.04-.18.4 1.17.12.5.26 1.17.26 1.83 0 .66-.14 1.33-.27 1.83-.1.4-.24.78-.39 1.17H11v4.34c-.39.15-.77.29-1.17.4A7.4 7.4 0 0 1 8 16a7.4 7.4 0 0 1-1.83-.27 9.96 9.96 0 0 1-.6-.18l-.57-.2V11zm1-6V1.36l.43-.13A6.46 6.46 0 0 1 8 1a6.46 6.46 0 0 1 2 .36V6.5c0 .38-.13.65-.26.8a.62.62 0 0 1-.24.2h-3c-.37 0-.75.24-1 .56-.3.33-.5.82-.5 1.44v.5H1.36a9.1 9.1 0 0 1-.13-.43A6.5 6.5 0 0 1 1 8c0-.54.11-1.12.23-1.57A9.09 9.09 0 0 1 1.36 6H8V5H6zm4 6H8v-1h6.64a9.11 9.11 0 0 0 .13-.43c.12-.45.23-1.03.23-1.57s-.11-1.12-.23-1.57a9.1 9.1 0 0 0-.13-.43H11v.5c0 .62-.2 1.1-.49 1.45-.26.3-.64.55-1.01.55h-3c.01 0 0 0 0 0a.62.62 0 0 0-.24.2c-.13.16-.26.42-.26.8v5.14l.43.13c.45.12 1.03.23 1.57.23a6.5 6.5 0 0 0 2-.36V11z" clip-rule="evenodd" />
|
|
1334
|
+
</symbol>
|
|
1321
1335
|
<symbol viewBox="0 0 12 12" id="question-mark-circle-filled:12">
|
|
1322
1336
|
<path fill-rule="evenodd" d="M12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0zM6.5 6a1 1 0 1 0-1-1 .5.5 0 0 1-1 .005V5A2 2 0 1 1 7 6.937V7a.5.5 0 0 1-1 0v-.5a.5.5 0 0 1 .5-.5zm.625 3a.625.625 0 1 1-1.25 0 .625.625 0 0 1 1.25 0z" clip-rule="evenodd" />
|
|
1323
1337
|
</symbol>
|
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.35.
|
|
7
|
+
<title>Plesk UI Library 3.35.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.6318f4a5.js"></script>
|
|
30
30
|
</body>
|
|
31
31
|
</html>
|
|
@@ -95,11 +95,10 @@ declare type ButtonComponent<Component extends ElementType = 'button'> = {
|
|
|
95
95
|
defaultProps?: Partial<ButtonProps<Component>>;
|
|
96
96
|
displayName?: string;
|
|
97
97
|
} & (<C extends ElementType = Component>(props: ButtonProps<C>) => ReactElement | null);
|
|
98
|
-
declare const _default: ButtonComponent<"button">;
|
|
99
98
|
/**
|
|
100
99
|
* `Button` component is used for executing actions, changing the application state, opening forms or dialog windows, and submitting data.
|
|
101
100
|
* As a rule, you should not use buttons for navigation between individual pages (use `Link` instead).
|
|
102
|
-
*
|
|
103
|
-
* Since: 0.0.37
|
|
101
|
+
* @since 0.0.37
|
|
104
102
|
*/
|
|
103
|
+
declare const _default: ButtonComponent<"button">;
|
|
105
104
|
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Component, CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { ContentRect } from 'react-measure';
|
|
3
|
+
import './Carousel.less';
|
|
4
|
+
export interface CarouselProps {
|
|
5
|
+
/**
|
|
6
|
+
* Slides
|
|
7
|
+
* @since 0.0.42
|
|
8
|
+
*/
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
baseClassName?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Carousel component is used for optimizing page space by displaying only some parts
|
|
21
|
+
* of entire content in a cyclic view.
|
|
22
|
+
* @since 0.0.42
|
|
23
|
+
*/
|
|
24
|
+
declare class Carousel extends Component<CarouselProps> {
|
|
25
|
+
static defaultProps: {
|
|
26
|
+
children: null;
|
|
27
|
+
className: null;
|
|
28
|
+
baseClassName: string;
|
|
29
|
+
};
|
|
30
|
+
constructor(props: CarouselProps);
|
|
31
|
+
state: {
|
|
32
|
+
showControls: boolean;
|
|
33
|
+
current: number;
|
|
34
|
+
next: number;
|
|
35
|
+
moving: boolean;
|
|
36
|
+
slideWidths: never[];
|
|
37
|
+
totalWidth: number;
|
|
38
|
+
};
|
|
39
|
+
componentDidMount(): void;
|
|
40
|
+
componentDidUpdate(): void;
|
|
41
|
+
componentWillUnmount(): void;
|
|
42
|
+
private readonly speed;
|
|
43
|
+
private readonly playSpeed;
|
|
44
|
+
private isRtl;
|
|
45
|
+
private playTimer;
|
|
46
|
+
private movingCallback;
|
|
47
|
+
private readonly rootRef;
|
|
48
|
+
private readonly genuineRef;
|
|
49
|
+
handlePrevClick(): void;
|
|
50
|
+
handleNextClick(): void;
|
|
51
|
+
play(): void;
|
|
52
|
+
stop(): void;
|
|
53
|
+
setCurrentSlide(next: number): void;
|
|
54
|
+
handleResize({ bounds }: ContentRect): void;
|
|
55
|
+
listStyle(): CSSProperties;
|
|
56
|
+
render(): JSX.Element;
|
|
57
|
+
}
|
|
58
|
+
export default Carousel;
|
|
@@ -4,7 +4,7 @@ import Form, { FormProps, FormValues } from '../Form';
|
|
|
4
4
|
import { ButtonProps } from '../Button';
|
|
5
5
|
import '../../helpers/base.less';
|
|
6
6
|
import './Dialog.less';
|
|
7
|
-
declare type ImageType = string | ReactElement | HTMLAttributes<HTMLImageElement>;
|
|
7
|
+
export declare type ImageType = string | ReactElement | HTMLAttributes<HTMLImageElement>;
|
|
8
8
|
export declare type DialogProps<FV extends FormValues = FormValues> = {
|
|
9
9
|
/**
|
|
10
10
|
* Toggles visibility.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './Dialog';
|
|
2
|
-
export type { DialogProps } from './Dialog';
|
|
2
|
+
export type { DialogProps, ImageType } from './Dialog';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, ReactNode, ReactElement } from 'react';
|
|
2
|
-
import { ProgressStepProps } from '../ProgressStep';
|
|
2
|
+
import { ProgressStepProps, Status } from '../ProgressStep';
|
|
3
3
|
import './DrawerProgress.less';
|
|
4
4
|
declare type RenderParams = {
|
|
5
5
|
content: ReactElement;
|
|
@@ -18,7 +18,7 @@ export declare type DrawerProgressProps = {
|
|
|
18
18
|
onFail?: () => void;
|
|
19
19
|
cancelable?: boolean;
|
|
20
20
|
onClosableChange?: (closable: boolean) => void;
|
|
21
|
-
onStatusChange?: (status:
|
|
21
|
+
onStatusChange?: (status: Status) => void;
|
|
22
22
|
render?: (params: RenderParams) => ReactNode;
|
|
23
23
|
};
|
|
24
24
|
declare type DrawerProgressState = {
|
|
@@ -37,7 +37,7 @@ declare class DrawerProgress extends Component<DrawerProgressProps, DrawerProgre
|
|
|
37
37
|
componentDidUpdate(_prevProps: DrawerProgressProps, prevState: DrawerProgressState): void;
|
|
38
38
|
componentWillUnmount(): void;
|
|
39
39
|
closeTimeout?: number;
|
|
40
|
-
handleStatusChange: (status:
|
|
40
|
+
handleStatusChange: (status: Status) => void;
|
|
41
41
|
handleClose: () => void;
|
|
42
42
|
handleCancel: () => void;
|
|
43
43
|
render(): ReactNode;
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import './Header.less';
|
|
3
|
-
|
|
3
|
+
interface HeaderProps {
|
|
4
4
|
baseClassName?: string;
|
|
5
5
|
onClose?: () => void;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
backButton?: boolean;
|
|
8
8
|
hideButton?: boolean;
|
|
9
9
|
tabs?: ReactNode;
|
|
10
|
-
};
|
|
11
|
-
export default class Header extends Component<HeaderProps> {
|
|
12
|
-
static defaultProps: {
|
|
13
|
-
onClose: null;
|
|
14
|
-
baseClassName: string;
|
|
15
|
-
backButton: boolean;
|
|
16
|
-
hideButton: boolean;
|
|
17
|
-
tabs: undefined;
|
|
18
|
-
};
|
|
19
|
-
componentDidMount(): void;
|
|
20
|
-
private isRtl;
|
|
21
|
-
renderBackButton(): JSX.Element;
|
|
22
|
-
renderHideButton(): JSX.Element;
|
|
23
|
-
renderCloseButton({ disabled }?: {
|
|
24
|
-
disabled?: boolean | undefined;
|
|
25
|
-
}): JSX.Element;
|
|
26
|
-
render(): JSX.Element;
|
|
27
10
|
}
|
|
28
|
-
|
|
11
|
+
declare const Header: ({ baseClassName, onClose, children, backButton, hideButton, tabs, ...props }: HeaderProps) => JSX.Element;
|
|
12
|
+
export default Header;
|
|
@@ -101,5 +101,10 @@ export type { FormValues, FormInstanceHandles };
|
|
|
101
101
|
declare type FormComponent = <FV extends FormValues>(props: FormProps<FV> & {
|
|
102
102
|
ref?: ForwardedRef<FormInstanceHandles>;
|
|
103
103
|
}) => ReactElement;
|
|
104
|
+
/**
|
|
105
|
+
* `Form` component is used for entering and submitting of user data.
|
|
106
|
+
* [More details about designing of forms.](#!/Good%20Forms)
|
|
107
|
+
* @since 0.0.54
|
|
108
|
+
*/
|
|
104
109
|
declare const _default: FormComponent;
|
|
105
110
|
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import FormField from '../FormField';
|
|
3
|
+
import '../../helpers/base.less';
|
|
4
|
+
import './FormFieldCheckbox.less';
|
|
5
|
+
export interface FormFieldCheckboxProps extends ComponentProps<typeof FormField> {
|
|
6
|
+
/**
|
|
7
|
+
* Disabled state of field.
|
|
8
|
+
* @since 0.1.0
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Custom checked value. Default is boolean true.
|
|
13
|
+
* @since 0.0.59
|
|
14
|
+
*/
|
|
15
|
+
checkedValue?: boolean | string;
|
|
16
|
+
/**
|
|
17
|
+
* Custom unchecked value. Default is boolean false.
|
|
18
|
+
* @since 0.0.59
|
|
19
|
+
*/
|
|
20
|
+
uncheckedValue?: boolean | string;
|
|
21
|
+
/**
|
|
22
|
+
* The browser will automatically focus on the component upon rendering the screen
|
|
23
|
+
* @since 1.9.0
|
|
24
|
+
*/
|
|
25
|
+
autoFocus?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @ignore
|
|
28
|
+
*/
|
|
29
|
+
label?: ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* @ignore
|
|
32
|
+
*/
|
|
33
|
+
required?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @ignore
|
|
36
|
+
*/
|
|
37
|
+
className?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
baseClassName?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Adds an info icon with the additional description.
|
|
44
|
+
*/
|
|
45
|
+
fullDescription?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* `FormFieldCheckbox` component is used for turning an option on or off
|
|
49
|
+
* and selecting or deselecting an item.
|
|
50
|
+
* @since 0.0.58
|
|
51
|
+
*/
|
|
52
|
+
declare const FormFieldCheckbox: ({ className, label, autoFocus, required, checkedValue, uncheckedValue, baseClassName, ...props }: FormFieldCheckboxProps) => JSX.Element;
|
|
53
|
+
export default FormFieldCheckbox;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
import { ContentRect } from 'react-measure';
|
|
3
|
+
import './Grid.less';
|
|
4
|
+
declare type ColumnsNumber = 1 | 2 | 3 | 4 | 5 | 6 | 'auto';
|
|
5
|
+
declare type CalculateMaxColumns = (options: {
|
|
6
|
+
width: number;
|
|
7
|
+
}) => number;
|
|
8
|
+
export interface GridProps {
|
|
9
|
+
/**
|
|
10
|
+
* Content of the `Grid`.
|
|
11
|
+
* @since 0.0.48
|
|
12
|
+
*/
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @ignore
|
|
20
|
+
*/
|
|
21
|
+
baseClassName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Minimal column width
|
|
24
|
+
* @since 0.0.50
|
|
25
|
+
*/
|
|
26
|
+
minColumnWidth?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum columns number
|
|
29
|
+
* @since 0.0.53
|
|
30
|
+
*/
|
|
31
|
+
maxColumnsNumber?: number | CalculateMaxColumns;
|
|
32
|
+
/**
|
|
33
|
+
* Number of columns for `xs` breakpoint
|
|
34
|
+
* @since 0.0.53
|
|
35
|
+
*/
|
|
36
|
+
xs?: ColumnsNumber;
|
|
37
|
+
/**
|
|
38
|
+
* Number of columns for `sm` breakpoint
|
|
39
|
+
* @since 0.0.48
|
|
40
|
+
*/
|
|
41
|
+
sm?: ColumnsNumber;
|
|
42
|
+
/**
|
|
43
|
+
* Number of columns for `md` breakpoint
|
|
44
|
+
* @since 0.0.48
|
|
45
|
+
*/
|
|
46
|
+
md?: ColumnsNumber;
|
|
47
|
+
/**
|
|
48
|
+
* Number of columns for `lg` breakpoint
|
|
49
|
+
* @since 0.0.48
|
|
50
|
+
*/
|
|
51
|
+
lg?: ColumnsNumber;
|
|
52
|
+
/**
|
|
53
|
+
* Number of columns for `xl` breakpoint
|
|
54
|
+
* @since 0.0.48
|
|
55
|
+
*/
|
|
56
|
+
xl?: ColumnsNumber;
|
|
57
|
+
/**
|
|
58
|
+
* Specifying the gutters between grid items
|
|
59
|
+
* @since 0.0.53
|
|
60
|
+
*/
|
|
61
|
+
gap?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
62
|
+
/**
|
|
63
|
+
* Columns number change notifier
|
|
64
|
+
* @since 0.0.50
|
|
65
|
+
*/
|
|
66
|
+
onColumnsChange?: (columnsNumber: number) => void;
|
|
67
|
+
}
|
|
68
|
+
interface GridState {
|
|
69
|
+
xs: ColumnsNumber | number | undefined;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* `Grid` component is used to layout and align content based on 12-column system.
|
|
73
|
+
* @since 0.0.48
|
|
74
|
+
*/
|
|
75
|
+
declare class Grid extends Component<GridProps, GridState> {
|
|
76
|
+
static defaultProps: {
|
|
77
|
+
children: null;
|
|
78
|
+
className: null;
|
|
79
|
+
baseClassName: string;
|
|
80
|
+
minColumnWidth: null;
|
|
81
|
+
maxColumnsNumber: number;
|
|
82
|
+
xs: null;
|
|
83
|
+
sm: null;
|
|
84
|
+
md: null;
|
|
85
|
+
lg: null;
|
|
86
|
+
xl: null;
|
|
87
|
+
gap: null;
|
|
88
|
+
onColumnsChange: null;
|
|
89
|
+
};
|
|
90
|
+
state: {
|
|
91
|
+
xs: ColumnsNumber | undefined;
|
|
92
|
+
};
|
|
93
|
+
handleResize: ({ bounds }: ContentRect) => void;
|
|
94
|
+
getGapSize(): 0 | 8 | 12 | 16 | 24 | 32;
|
|
95
|
+
render(): JSX.Element;
|
|
96
|
+
}
|
|
97
|
+
export default Grid;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
declare type GridColSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
3
|
+
export interface GridColProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Content of the `GridCol`.
|
|
6
|
+
* @since 0.0.48
|
|
7
|
+
*/
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* @ignore
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
/**
|
|
14
|
+
* @ignore
|
|
15
|
+
*/
|
|
16
|
+
baseClassName?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Column size for `xs` breakpoint
|
|
19
|
+
* @type number (1...12)
|
|
20
|
+
* @since 0.0.53
|
|
21
|
+
*/
|
|
22
|
+
xs?: GridColSize;
|
|
23
|
+
/**
|
|
24
|
+
* Column size for `sm` breakpoint
|
|
25
|
+
* @type number (1...12)
|
|
26
|
+
* @since 0.0.53
|
|
27
|
+
*/
|
|
28
|
+
sm?: GridColSize;
|
|
29
|
+
/**
|
|
30
|
+
* Column size for `sm` breakpoint
|
|
31
|
+
* @type number (1...12)
|
|
32
|
+
* @since 0.0.53
|
|
33
|
+
*/
|
|
34
|
+
md?: GridColSize;
|
|
35
|
+
/**
|
|
36
|
+
* Column size for `md` breakpoint
|
|
37
|
+
* @type number (1...12)
|
|
38
|
+
* @since 0.0.53
|
|
39
|
+
*/
|
|
40
|
+
lg?: GridColSize;
|
|
41
|
+
/**
|
|
42
|
+
* Column size for `lg` breakpoint
|
|
43
|
+
* @type number (1...12)
|
|
44
|
+
* @since 0.0.53
|
|
45
|
+
*/
|
|
46
|
+
xl?: GridColSize;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* `GridCol` component is a part of [Grid](#!/Grid) component.
|
|
50
|
+
* @since 0.0.48
|
|
51
|
+
*/
|
|
52
|
+
declare const GridCol: ({ baseClassName, className, children, xs, sm, md, lg, xl, ...props }: GridColProps) => JSX.Element;
|
|
53
|
+
export default GridCol;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const NAMES_12: IconName[];
|
|
2
|
-
export declare type IconName = 'archive' | 'arrow-back' | 'arrow-diagonal-out' | 'arrow-down' | 'arrow-down-in' | 'arrow-down-out' | 'arrow-down-tray' | 'arrow-left' | 'arrow-right' | 'arrow-right-in' | 'arrow-right-out' | 'arrow-up' | 'arrow-up-circle' | 'arrow-up-in' | 'arrow-up-in-cloud' | 'arrow-up-out' | 'arrow-up-tray' | 'arrows-four-directions' | 'arrows-inward' | 'arrows-loop' | 'arrows-opposite' | 'arrows-outward' | 'backup' | 'backup2' | 'bar-chart-vertical' | 'bar-chart-vertical-arrow-up' | 'bar-chart-vertical-lock' | 'bell' | 'book-email' | 'boundary' | 'box-diagonal-bottom-in' | 'box-diagonal-top-in' | 'brush' | 'bug' | 'calendar' | 'calendar-clock' | 'camera' | 'card' | 'card-ribbon' | 'card-row' | 'card-tile' | 'cd' | 'cd-up-in-cloud' | 'chain' | 'chain-broken' | 'chat' | 'check-list' | 'check-mark' | 'check-mark-circle' | 'check-mark-circle-filled' | 'chevron-double-down' | 'chevron-double-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-diagonal' | 'clean' | 'clip' | 'clock' | 'clone' | 'cloud' | 'cloud-checkmark' | 'cloud-crossed' | 'cloud-graph' | 'code' | 'connection' | 'console' | 'console-filled' | 'copy' | 'copy-indicator' | 'cpu' | 'crane' | 'credit-cards' | 'cross-mark' | 'cross-mark-circle' | 'cross-mark-circle-filled' | 'crown-transfer' | 'dashboard' | 'database' | 'database-box' | 'database-filled' | 'database-plus' | 'deploy' | 'docker-filled' | 'dollar' | 'dollar-filled' | 'dot' | 'emoticon-confused' | 'emoticon-dead' | 'emoticon-excited' | 'emoticon-happy' | 'emoticon-neutral' | 'emoticon-sad' | 'emoticon-smile' | 'enter' | 'exclamation-mark-circle' | 'exclamation-mark-circle-filled' | 'eye' | 'eye-closed' | 'facebook' | 'facebook-filled' | 'feedback' | 'filter' | 'filter-check-mark' | 'fire' | 'flag' | 'flag-filled' | 'flag-globe' | 'floppy-disk' | 'folder-closed' | 'folder-key' | 'folder-network' | 'folder-open' | 'folders-tree' | 'forward-circle-filled' | 'four-squares' | 'gear' | 'git' | 'github' | 'globe' | 'hard-drive' | 'hard-drive-key' | 'hat' | 'hexagons' | 'home' | 'info-circle' | 'info-circle-filled' | 'ip-addresses' | 'joomla' | 'kebab' | 'key' | 'laravel' | 'lifebuoy' | 'lightbulb' | 'limit' | 'linux' | 'list' | 'list-check-mark' | 'location' | 'lock-closed' | 'lock-closed-check' | 'lock-closed-filled' | 'lock-open' | 'lock-open-cross' | 'lock-open-filled' | 'mail' | 'mail-circle-filled' | 'mail-settings' | 'megaphone' | 'menu' | 'menu-thin' | 'microsoft' | 'minimize' | 'minus' | 'minus-circle' | 'minus-circle-filled' | 'monitoring' | 'monitoring-off' | 'my-little-admin' | 'net' | 'nine-dots' | 'node-js' | 'package' | 'panel' | 'panel-check' | 'panel-eye' | 'panel-key' | 'panel-settings' | 'panels' | 'pause-circle' | 'pencil' | 'pencil-dialog' | 'php' | 'phpmyadmin' | 'pin' | 'pipette' | 'plans' | 'plugins' | 'plus' | 'power' | 'projects' | 'puzzle' | 'question-mark-circle' | 'question-mark-circle-filled' | 'ram' | 'react-js' | 'recycle' | 'redirect-circle-filled' | 'refresh' | 'reload' | 'remove' | 'reset' | 'resource' | 'ribbon' | 'rocket' | 'ruby' | 'sand-clock' | 'scan' | 'screen' | 'search' | 'security-check' | 'send' | 'server' | 'servers' | 'share' | 'shield' | 'shield-attention-filled' | 'shield-chain' | 'shield-filled' | 'shopping-cart' | 'sidebar-right-hide' | 'sidebar-right-show' | 'signal-light' | 'site-page' | 'sleep' | 'sliders' | 'square-with-circles' | 'star' | 'star-circle-filled' | 'star-filled' | 'star-half-filled' | 'start' | 'start-circle' | 'start-filled' | 'stop' | 'stop-circle' | 'storage' | 'themes' | 'three-dots-horizontal' | 'three-dots-vertical' | 'tools' | 'transfer' | 'triangle-exclamation-mark' | 'triangle-exclamation-mark-filled' | 'unarchive' | 'user' | 'volume' | 'web' | 'web-plus' | 'web-settings' | 'windows' | 'woocommerce' | 'wordpress' | 'zero-circle-filled';
|
|
2
|
+
export declare type IconName = 'archive' | 'arrow-back' | 'arrow-diagonal-out' | 'arrow-down' | 'arrow-down-in' | 'arrow-down-out' | 'arrow-down-tray' | 'arrow-left' | 'arrow-right' | 'arrow-right-circle-filled' | 'arrow-right-in' | 'arrow-right-out' | 'arrow-up' | 'arrow-up-circle' | 'arrow-up-in' | 'arrow-up-in-cloud' | 'arrow-up-out' | 'arrow-up-tray' | 'arrows-four-directions' | 'arrows-inward' | 'arrows-loop' | 'arrows-opposite' | 'arrows-outward' | 'backup' | 'backup2' | 'bar-chart-vertical' | 'bar-chart-vertical-arrow-up' | 'bar-chart-vertical-lock' | 'bell' | 'book-email' | 'boundary' | 'box-diagonal-bottom-in' | 'box-diagonal-top-in' | 'brush' | 'bug' | 'calendar' | 'calendar-clock' | 'camera' | 'card' | 'card-ribbon' | 'card-row' | 'card-tile' | 'cd' | 'cd-up-in-cloud' | 'chain' | 'chain-broken' | 'chat' | 'check-list' | 'check-mark' | 'check-mark-circle' | 'check-mark-circle-filled' | 'chevron-double-down' | 'chevron-double-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'circle-diagonal' | 'clean' | 'clip' | 'clock' | 'clone' | 'cloud' | 'cloud-checkmark' | 'cloud-crossed' | 'cloud-graph' | 'code' | 'connection' | 'console' | 'console-filled' | 'copy' | 'copy-indicator' | 'cpu' | 'crane' | 'credit-cards' | 'cross-mark' | 'cross-mark-circle' | 'cross-mark-circle-filled' | 'crown-transfer' | 'dashboard' | 'database' | 'database-box' | 'database-filled' | 'database-plus' | 'deploy' | 'docker-filled' | 'dollar' | 'dollar-filled' | 'dot' | 'emoticon-confused' | 'emoticon-dead' | 'emoticon-excited' | 'emoticon-happy' | 'emoticon-neutral' | 'emoticon-sad' | 'emoticon-smile' | 'enter' | 'exclamation-mark-circle' | 'exclamation-mark-circle-filled' | 'eye' | 'eye-closed' | 'facebook' | 'facebook-filled' | 'feedback' | 'filter' | 'filter-check-mark' | 'fire' | 'flag' | 'flag-filled' | 'flag-globe' | 'floppy-disk' | 'folder-closed' | 'folder-key' | 'folder-network' | 'folder-open' | 'folders-tree' | 'forward-circle-filled' | 'four-squares' | 'gear' | 'git' | 'github' | 'globe' | 'hard-drive' | 'hard-drive-key' | 'hat' | 'hexagons' | 'home' | 'info-circle' | 'info-circle-filled' | 'ip-addresses' | 'joomla' | 'kebab' | 'key' | 'laravel' | 'lifebuoy' | 'lightbulb' | 'limit' | 'linux' | 'list' | 'list-check-mark' | 'location' | 'lock-closed' | 'lock-closed-check' | 'lock-closed-filled' | 'lock-open' | 'lock-open-cross' | 'lock-open-filled' | 'mail' | 'mail-circle-filled' | 'mail-settings' | 'megaphone' | 'menu' | 'menu-thin' | 'microsoft' | 'minimize' | 'minus' | 'minus-circle' | 'minus-circle-filled' | 'monitoring' | 'monitoring-off' | 'my-little-admin' | 'net' | 'nine-dots' | 'node-js' | 'package' | 'panel' | 'panel-check' | 'panel-eye' | 'panel-key' | 'panel-settings' | 'panels' | 'pause-circle' | 'pencil' | 'pencil-dialog' | 'php' | 'phpmyadmin' | 'pin' | 'pipette' | 'plans' | 'plugins' | 'plus' | 'power' | 'projects' | 'puzzle' | 'python' | 'question-mark-circle' | 'question-mark-circle-filled' | 'ram' | 'react-js' | 'recycle' | 'redirect-circle-filled' | 'refresh' | 'reload' | 'remove' | 'reset' | 'resource' | 'ribbon' | 'rocket' | 'ruby' | 'sand-clock' | 'scan' | 'screen' | 'search' | 'security-check' | 'send' | 'server' | 'servers' | 'share' | 'shield' | 'shield-attention-filled' | 'shield-chain' | 'shield-filled' | 'shopping-cart' | 'sidebar-right-hide' | 'sidebar-right-show' | 'signal-light' | 'site-page' | 'sleep' | 'sliders' | 'square-with-circles' | 'star' | 'star-circle-filled' | 'star-filled' | 'star-half-filled' | 'start' | 'start-circle' | 'start-filled' | 'stop' | 'stop-circle' | 'storage' | 'themes' | 'three-dots-horizontal' | 'three-dots-vertical' | 'tools' | 'transfer' | 'triangle-exclamation-mark' | 'triangle-exclamation-mark-filled' | 'unarchive' | 'user' | 'volume' | 'web' | 'web-plus' | 'web-settings' | 'windows' | 'woocommerce' | 'wordpress' | 'zero-circle-filled';
|
|
3
3
|
export declare const NAMES: IconName[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ItemList';
|
|
@@ -42,8 +42,7 @@ export declare type LinkProps<Component extends ElementType = 'a'> = {
|
|
|
42
42
|
} & PolymorphicComponentProps<Component, BaseLinkProps>;
|
|
43
43
|
/**
|
|
44
44
|
* `Link` is used for navigation purposes.
|
|
45
|
-
*
|
|
46
|
-
* Since: 1.9.0
|
|
45
|
+
* @since 1.9.0
|
|
47
46
|
*/
|
|
48
47
|
declare const Link: <Component extends ElementType<any> = "a">({ baseClassName, className, onClick, disabled, pseudo, component, children, ...other }: LinkProps<Component>) => JSX.Element;
|
|
49
48
|
export default Link;
|
|
@@ -7,7 +7,7 @@ declare type Messages = {
|
|
|
7
7
|
declare type Translate = (key: string, params?: {
|
|
8
8
|
[key: string]: unknown;
|
|
9
9
|
}, fallback?: string) => string | ReactNode[];
|
|
10
|
-
export declare const useTranslate: (namespace?: string
|
|
10
|
+
export declare const useTranslate: (namespace?: string) => Translate;
|
|
11
11
|
declare type LocaleProviderProps = {
|
|
12
12
|
/**
|
|
13
13
|
* Localization messages
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default, ITEMS_PER_PAGE_OPTIONS } from './Pagination';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Panel';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Component, ReactNode } from 'react';
|
|
2
|
+
import { Status } from '../ProgressStep';
|
|
3
|
+
import '../../helpers/base.less';
|
|
4
|
+
import './Progress.less';
|
|
5
|
+
export interface ProgressProps {
|
|
6
|
+
/**
|
|
7
|
+
* Content of the `Progress`.
|
|
8
|
+
* @since 1.10.0
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* On overall status event handler.
|
|
13
|
+
* @since 1.10.0
|
|
14
|
+
*/
|
|
15
|
+
onStatusChange?: (status: Status) => void;
|
|
16
|
+
/**
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @ignore
|
|
22
|
+
*/
|
|
23
|
+
baseClassName?: string;
|
|
24
|
+
}
|
|
25
|
+
declare type ProgressState = {
|
|
26
|
+
status: Status | null;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* `Progress` is used for showing progress of performing long operations.
|
|
30
|
+
* @since 1.10.0
|
|
31
|
+
*/
|
|
32
|
+
declare class Progress extends Component<ProgressProps, ProgressState> {
|
|
33
|
+
static defaultProps: {
|
|
34
|
+
onStatusChange: null;
|
|
35
|
+
children: null;
|
|
36
|
+
className: null;
|
|
37
|
+
baseClassName: string;
|
|
38
|
+
};
|
|
39
|
+
state: {
|
|
40
|
+
status: null;
|
|
41
|
+
};
|
|
42
|
+
static getDerivedStateFromProps({ children }: ProgressProps): {
|
|
43
|
+
status: string;
|
|
44
|
+
};
|
|
45
|
+
componentDidMount(): void;
|
|
46
|
+
componentDidUpdate(_: ProgressProps, prevState: ProgressState): void;
|
|
47
|
+
render(): JSX.Element;
|
|
48
|
+
}
|
|
49
|
+
export default Progress;
|