@plesk/ui-library 3.35.0 → 3.35.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.
Files changed (64) hide show
  1. package/cjs/components/Icon/constants.js +2 -2
  2. package/cjs/components/Icon/images/symbols.svg +15 -1
  3. package/cjs/components/Progress/Progress.js +8 -28
  4. package/cjs/components/ProgressStep/ProgressStep.js +4 -46
  5. package/cjs/components/ProgressStep/index.js +36 -12
  6. package/cjs/components/Switch/Switch.js +43 -118
  7. package/cjs/components/Tooltip/Tooltip.js +35 -64
  8. package/cjs/components/Translate/Translate.js +10 -78
  9. package/cjs/components/Translate/index.js +4 -4
  10. package/cjs/components/Translate/isLikeText.js +27 -0
  11. package/cjs/index.js +1 -1
  12. package/cjs/tests/index.js +13 -0
  13. package/cjs/tests/renderer.js +27 -0
  14. package/dist/.DS_Store +0 -0
  15. package/dist/images/default.svg +1 -0
  16. package/dist/images/filtered.svg +1 -0
  17. package/dist/images/symbols.svg +15 -1
  18. package/dist/plesk-ui-library-rtl.css +1 -1
  19. package/dist/plesk-ui-library-rtl.css.map +1 -1
  20. package/dist/plesk-ui-library.css +1 -1
  21. package/dist/plesk-ui-library.css.map +1 -1
  22. package/dist/plesk-ui-library.js +295 -468
  23. package/dist/plesk-ui-library.js.map +1 -1
  24. package/dist/plesk-ui-library.min.js +5 -5
  25. package/dist/plesk-ui-library.min.js.map +1 -1
  26. package/esm/components/Icon/constants.js +2 -2
  27. package/esm/components/Icon/images/symbols.svg +15 -1
  28. package/esm/components/Progress/Progress.js +8 -26
  29. package/esm/components/ProgressStep/ProgressStep.js +6 -48
  30. package/esm/components/ProgressStep/index.js +1 -2
  31. package/esm/components/Switch/Switch.js +43 -116
  32. package/esm/components/Tooltip/Tooltip.js +36 -62
  33. package/esm/components/Translate/Translate.js +9 -73
  34. package/esm/components/Translate/index.js +2 -1
  35. package/esm/components/Translate/isLikeText.js +19 -0
  36. package/esm/index.js +1 -1
  37. package/esm/tests/index.js +3 -0
  38. package/esm/tests/renderer.js +19 -0
  39. package/package.json +13 -9
  40. package/styleguide/build/bundle.edc3f2a1.js +2 -0
  41. package/styleguide/images/symbols.svg +15 -1
  42. package/styleguide/index.html +2 -2
  43. package/types/src/components/Drawer/DrawerProgress.d.ts +3 -3
  44. package/types/src/components/Icon/constants.d.ts +1 -1
  45. package/types/src/components/ItemList/index.d.ts +1 -0
  46. package/types/src/components/Pagination/index.d.ts +1 -0
  47. package/types/src/components/Panel/index.d.ts +1 -0
  48. package/types/src/components/Progress/Progress.d.ts +49 -0
  49. package/types/src/components/Progress/index.d.ts +2 -0
  50. package/types/src/components/ProgressStep/ProgressStep.d.ts +69 -0
  51. package/types/src/components/ProgressStep/index.d.ts +2 -0
  52. package/types/src/components/Switch/Switch.d.ts +58 -0
  53. package/types/src/components/Switch/index.d.ts +2 -0
  54. package/types/src/components/TextArea/index.d.ts +1 -0
  55. package/types/src/components/Tooltip/Tooltip.d.ts +61 -0
  56. package/types/src/components/Tooltip/index.d.ts +2 -0
  57. package/types/src/components/Translate/Translate.d.ts +56 -0
  58. package/types/src/components/Translate/index.d.ts +3 -0
  59. package/types/src/components/Translate/isLikeText.d.ts +2 -0
  60. package/types/src/components/index.d.ts +5 -0
  61. package/types/src/tests/index.d.ts +1 -0
  62. package/types/src/tests/renderer.d.ts +23 -0
  63. package/styleguide/build/bundle.2a886a79.js +0 -2
  64. /package/styleguide/build/{bundle.2a886a79.js.LICENSE.txt → bundle.edc3f2a1.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- <svg width="16" height="11760" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
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>
@@ -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.0</title>
7
+ <title>Plesk UI Library 3.35.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.2a886a79.js"></script>
29
+ <script src="build/bundle.edc3f2a1.js"></script>
30
30
  </body>
31
31
  </html>
@@ -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: ProgressStepProps['status']) => void;
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: ProgressStepProps['status']) => void;
40
+ handleStatusChange: (status: Status) => void;
41
41
  handleClose: () => void;
42
42
  handleCancel: () => void;
43
43
  render(): ReactNode;
@@ -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';
@@ -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;
@@ -0,0 +1,2 @@
1
+ export { default } from './Progress';
2
+ export type { ProgressProps } from './Progress';
@@ -0,0 +1,69 @@
1
+ import { ReactNode } from 'react';
2
+ import { IconName, IconProps } from '../Icon';
3
+ import '../../helpers/base.less';
4
+ import './ProgressStep.less';
5
+ export declare const STATUS_NOT_STARTED = "not_started";
6
+ export declare const STATUS_RUNNING = "running";
7
+ export declare const STATUS_DONE = "done";
8
+ export declare const STATUS_WARNING = "warning";
9
+ export declare const STATUS_ERROR = "error";
10
+ export declare const STATUS_CANCELED = "canceled";
11
+ export declare type Status = typeof STATUS_NOT_STARTED | typeof STATUS_RUNNING | typeof STATUS_DONE | typeof STATUS_ERROR | typeof STATUS_CANCELED | typeof STATUS_WARNING;
12
+ export interface ProgressStepProps {
13
+ /**
14
+ * Title of the step
15
+ * @since 1.10.0
16
+ */
17
+ title?: ReactNode;
18
+ /**
19
+ * Status for the step
20
+ * @since 1.10.0
21
+ */
22
+ status?: Status;
23
+ /**
24
+ * Name of icon or [Icon](#!/Icon) component
25
+ * @ignore
26
+ */
27
+ icon?: ReactNode | IconName | IconProps;
28
+ /**
29
+ * Text description for the status of the step
30
+ * @since 1.10.0
31
+ */
32
+ statusText?: ReactNode;
33
+ /**
34
+ * Progress indication in numbers
35
+ * @since 1.10.0
36
+ */
37
+ progress?: number;
38
+ /**
39
+ * Content of the `ProgressStep`.
40
+ * @since 1.10.0
41
+ */
42
+ children?: ReactNode;
43
+ /**
44
+ * @ignore
45
+ */
46
+ className?: string;
47
+ /**
48
+ * @ignore
49
+ */
50
+ baseClassName?: string;
51
+ }
52
+ /**
53
+ * `ProgressStep` is a part of the [Progress](#!/Progress) component.
54
+ * @since 1.10.0
55
+ */
56
+ declare const ProgressStep: {
57
+ ({ className, children, icon, title, statusText, progress, status, baseClassName, ...props }: ProgressStepProps): JSX.Element;
58
+ defaultProps: {
59
+ icon: null;
60
+ title: null;
61
+ status: string;
62
+ statusText: null;
63
+ progress: number;
64
+ children: null;
65
+ className: null;
66
+ baseClassName: string;
67
+ };
68
+ };
69
+ export default ProgressStep;
@@ -0,0 +1,2 @@
1
+ export type { Status, ProgressStepProps } from './ProgressStep';
2
+ export { default, STATUS_RUNNING, STATUS_DONE, STATUS_ERROR, STATUS_WARNING, STATUS_CANCELED, STATUS_NOT_STARTED, } from './ProgressStep';
@@ -0,0 +1,58 @@
1
+ import { ReactNode } from 'react';
2
+ import './Switch.less';
3
+ export interface SwitchProps {
4
+ /**
5
+ * Determine whether the `Switch` is checked.
6
+ * @since 0.0.42
7
+ */
8
+ checked?: boolean;
9
+ /**
10
+ * A callback function, can be executed when the checked state is changing.
11
+ * @since 0.0.42
12
+ */
13
+ onChange?: (checked: boolean) => void;
14
+ /**
15
+ * Tooltip for component
16
+ * @since 0.0.42
17
+ */
18
+ tooltip?: ReactNode;
19
+ /**
20
+ * Visual intent color to apply to component.
21
+ * @since 0.3.0
22
+ */
23
+ intent?: 'warning' | 'danger';
24
+ /**
25
+ * Is `Switch` disabled?
26
+ * @since 0.0.42
27
+ */
28
+ disabled?: boolean;
29
+ /**
30
+ * Loading indication
31
+ * @since 0.3.0
32
+ */
33
+ loading?: boolean;
34
+ /**
35
+ * Label of the `Switch`
36
+ * @since 0.0.42
37
+ */
38
+ children?: ReactNode;
39
+ /**
40
+ * @ignore
41
+ */
42
+ defaultChecked?: boolean;
43
+ /**
44
+ * @ignore
45
+ */
46
+ className?: string;
47
+ /**
48
+ * @ignore
49
+ */
50
+ baseClassName?: string;
51
+ }
52
+ /**
53
+ * `Switch` component is used for changing the state of an object or system preferences.
54
+ * It provides immediate results that is why it should not be used in Form.
55
+ * @since 0.0.42
56
+ */
57
+ declare const Switch: ({ className, children, onChange, tooltip, intent, checked, defaultChecked, baseClassName, disabled, loading, ...props }: SwitchProps) => JSX.Element;
58
+ export default Switch;
@@ -0,0 +1,2 @@
1
+ export { default } from './Switch';
2
+ export type { SwitchProps } from './Switch';
@@ -0,0 +1 @@
1
+ export { default } from './TextArea';
@@ -0,0 +1,61 @@
1
+ import { Component, CSSProperties, MouseEvent, ReactElement, ReactNode } from 'react';
2
+ import './Tooltip.less';
3
+ export interface TooltipProps {
4
+ /**
5
+ * Content of the tooltip
6
+ * @since 0.0.42
7
+ */
8
+ title: ReactNode;
9
+ /**
10
+ * Element with tooltip
11
+ * @since 0.0.42
12
+ */
13
+ children: ReactElement;
14
+ /**
15
+ * Show delay (ms)
16
+ * @since 0.0.50
17
+ */
18
+ delay?: number;
19
+ /**
20
+ * @ignore
21
+ */
22
+ style?: CSSProperties;
23
+ /**
24
+ * @ignore
25
+ */
26
+ className?: string;
27
+ /**
28
+ * @ignore
29
+ */
30
+ baseClassName?: string;
31
+ }
32
+ /**
33
+ * `Tooltip` component is used for providing information about an interface element
34
+ * while user hovers the pointer over the element.
35
+ * @since 0.0.35
36
+ */
37
+ declare class Tooltip extends Component<TooltipProps> {
38
+ static defaultProps: {
39
+ delay: number;
40
+ style: undefined;
41
+ className: undefined;
42
+ baseClassName: string;
43
+ };
44
+ state: {
45
+ left: number;
46
+ top: number;
47
+ ready: boolean;
48
+ visible: boolean;
49
+ };
50
+ componentWillUnmount(): void;
51
+ private timer;
52
+ private tooltipRef;
53
+ clearTimer: () => void;
54
+ handleShow: () => void;
55
+ handleHide: () => void;
56
+ handleMouseEnter: () => void;
57
+ handleMouseMove: (e: MouseEvent) => void;
58
+ renderTooltip(): JSX.Element;
59
+ render(): JSX.Element;
60
+ }
61
+ export default Tooltip;
@@ -0,0 +1,2 @@
1
+ export { default } from './Tooltip';
2
+ export type { TooltipProps } from './Tooltip';
@@ -0,0 +1,56 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+ import { PolymorphicComponentProps } from '../../utils/types';
3
+ interface BaseTranslateProps {
4
+ /**
5
+ * A some prefix for the message key.
6
+ * @since 2.6.0
7
+ */
8
+ namespace?: string;
9
+ /**
10
+ * Translatable content or message key.
11
+ * @since 0.0.42
12
+ */
13
+ content?: string;
14
+ /**
15
+ * Message params
16
+ * @since 0.0.42
17
+ */
18
+ params?: {
19
+ [key: string]: ReactNode;
20
+ };
21
+ /**
22
+ * Fallback translation value.
23
+ * @since 0.0.47
24
+ */
25
+ fallback?: string;
26
+ /**
27
+ * A set of translation messages. If the set contains a message key, the component uses an item from the set for rendering.
28
+ * @ignore
29
+ */
30
+ translators?: {
31
+ [key: string]: ReactNode;
32
+ };
33
+ /**
34
+ * @ignore
35
+ */
36
+ unsafe?: boolean;
37
+ /**
38
+ * @ignore
39
+ */
40
+ children?: string;
41
+ }
42
+ export declare type TranslateProps<Component extends ElementType = 'span'> = {
43
+ /**
44
+ * Component to render as the root element. Useful when rendering a `Translate` as `<option>`.
45
+ * @since 0.0.42
46
+ * @type ElementType
47
+ * @default span
48
+ */
49
+ component?: Component;
50
+ } & PolymorphicComponentProps<Component, BaseTranslateProps>;
51
+ /**
52
+ * `Translate` component.
53
+ * @since 0.0.42
54
+ */
55
+ declare const Translate: <Component extends ElementType<any> = "span">({ component, content, children, params, unsafe, fallback, namespace, translators, ...props }: TranslateProps<Component>) => any;
56
+ export default Translate;
@@ -0,0 +1,3 @@
1
+ export { default } from './Translate';
2
+ export { isLikeText } from './isLikeText';
3
+ export type { TranslateProps } from './Translate';
@@ -0,0 +1,2 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const isLikeText: (node: ReactNode) => boolean;
@@ -76,10 +76,12 @@ export { default as Paragraph } from './Paragraph';
76
76
  export { default as Plaintext } from './Plaintext';
77
77
  export { default as Popover } from './Popover';
78
78
  export { default as Progress } from './Progress';
79
+ export type { ProgressProps } from './Progress';
79
80
  export { default as ProgressBar } from './ProgressBar';
80
81
  export { default as ProgressDialog } from './ProgressDialog';
81
82
  export { default as ProgressDialogStep } from './ProgressDialogStep';
82
83
  export { default as ProgressStep } from './ProgressStep';
84
+ export type { ProgressStepProps } from './ProgressStep';
83
85
  export { default as Rating } from './Rating';
84
86
  export { default as Section } from './Section';
85
87
  export * from './Section';
@@ -92,6 +94,7 @@ export { default as StatusMessage } from './StatusMessage';
92
94
  export { default as Subnav } from './Subnav';
93
95
  export * from './Subnav';
94
96
  export { default as Switch } from './Switch';
97
+ export type { SwitchProps } from './Switch';
95
98
  export { default as SwitchesPanel } from './SwitchesPanel';
96
99
  export { default as SwitchesPanelItem } from './SwitchesPanelItem';
97
100
  export { default as Tabs } from './Tabs';
@@ -101,8 +104,10 @@ export { default as Toaster } from './Toaster';
101
104
  export { default as Toolbar } from './Toolbar';
102
105
  export * from './Toolbar';
103
106
  export { default as Tooltip } from './Tooltip';
107
+ export type { TooltipProps } from './Tooltip';
104
108
  export { default as Tour } from './Tour';
105
109
  export { default as Translate } from './Translate';
110
+ export type { TranslateProps } from './Translate';
106
111
  export { default as Link } from './Link';
107
112
  export type { LinkProps } from './Link';
108
113
  export { default as Skeleton } from './Skeleton';
@@ -0,0 +1 @@
1
+ export { default } from './renderer';
@@ -0,0 +1,23 @@
1
+ import { ComponentProps, ElementType } from 'react';
2
+ declare const renderer: <C extends ElementType<any>>(Component: C, baseProps?: ComponentProps<C> | undefined) => (propOverrides?: Partial<ComponentProps<C>> | undefined) => {
3
+ asFragment: () => DocumentFragment;
4
+ user: {
5
+ clear: (element: import("@testing-library/user-event").TargetElement) => void;
6
+ click: (element: import("@testing-library/user-event").TargetElement, init?: MouseEventInit | undefined, options?: import("@testing-library/user-event").IClickOptions | undefined) => void;
7
+ dblClick: (element: import("@testing-library/user-event").TargetElement, init?: MouseEventInit | undefined, options?: import("@testing-library/user-event").IClickOptions | undefined) => void;
8
+ selectOptions: (element: import("@testing-library/user-event").TargetElement, values: string | string[] | HTMLElement | HTMLElement[], init?: MouseEventInit | undefined) => void;
9
+ deselectOptions: (element: import("@testing-library/user-event").TargetElement, values: string | string[] | HTMLElement | HTMLElement[], init?: MouseEventInit | undefined) => void;
10
+ upload: (element: import("@testing-library/user-event").TargetElement, files: import("@testing-library/user-event").FilesArgument, init?: import("@testing-library/user-event").UploadInitArgument | undefined, options?: import("@testing-library/user-event").IUploadOptions | undefined) => void;
11
+ type: <T extends import("@testing-library/user-event").ITypeOpts>(element: import("@testing-library/user-event").TargetElement, text: string, userOpts?: T | undefined) => T extends {
12
+ delay: number;
13
+ } ? Promise<void> : void;
14
+ tab: (userOpts?: import("@testing-library/user-event").ITabUserOptions | undefined) => void;
15
+ paste: (element: import("@testing-library/user-event").TargetElement, text: string, init?: MouseEventInit | undefined, pasteOptions?: {
16
+ initialSelectionStart?: number | undefined;
17
+ initialSelectionEnd?: number | undefined;
18
+ } | undefined) => void;
19
+ hover: (element: import("@testing-library/user-event").TargetElement, init?: MouseEventInit | undefined) => void;
20
+ unhover: (element: import("@testing-library/user-event").TargetElement, init?: MouseEventInit | undefined) => void;
21
+ };
22
+ };
23
+ export default renderer;