@plesk/ui-library 3.35.8 → 3.36.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.
Files changed (89) hide show
  1. package/cjs/components/Action/Action.js +4 -2
  2. package/cjs/components/Card/Card.js +2 -2
  3. package/cjs/components/Card/helpers.js +1 -0
  4. package/cjs/components/CardList/CardList.js +2 -2
  5. package/cjs/components/CardList/CardListToolbar.js +2 -2
  6. package/cjs/components/CodeEditor/CodeEditor.js +25 -85
  7. package/cjs/components/CodeEditor/CodeMirror.js +1 -4
  8. package/cjs/components/Columns/Columns.js +2 -2
  9. package/cjs/components/ComboBox/ComboBox.js +2 -2
  10. package/cjs/components/ComboBoxDropdown/ComboBoxDropdown.js +2 -2
  11. package/cjs/components/ComboBoxDropdown/index.js +2 -2
  12. package/cjs/components/Dialog/Dialog.js +2 -2
  13. package/cjs/components/Drawer/DrawerProgress.js +2 -2
  14. package/cjs/components/Dropdown/index.js +2 -2
  15. package/cjs/components/Figure/index.js +2 -2
  16. package/cjs/components/Form/Form.js +2 -2
  17. package/cjs/components/Form/index.js +2 -2
  18. package/cjs/components/FormField/FormField.js +47 -167
  19. package/cjs/components/FormField/index.js +2 -2
  20. package/cjs/components/FormFieldPassword/PasswordMeter.js +2 -2
  21. package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +2 -2
  22. package/cjs/components/Heading/Heading.js +2 -2
  23. package/cjs/components/Icon/constants.js +2 -2
  24. package/cjs/components/Icon/images/symbols.svg +26 -1
  25. package/cjs/components/Icon/index.js +2 -2
  26. package/cjs/components/Icon/utils.js +2 -2
  27. package/cjs/components/Item/Item.js +2 -2
  28. package/cjs/components/ItemList/ItemList.js +3 -3
  29. package/cjs/components/Layer/index.js +2 -2
  30. package/cjs/components/List/List.js +5 -2
  31. package/cjs/components/LocaleProvider/index.js +2 -2
  32. package/cjs/components/Media/Media.js +2 -2
  33. package/cjs/components/Menu/MenuBaseItem.js +2 -2
  34. package/cjs/components/Pagination/index.js +2 -2
  35. package/cjs/components/Popper/index.js +2 -2
  36. package/cjs/components/ProgressStep/ProgressStep.js +2 -2
  37. package/cjs/components/ProgressStep/index.js +2 -2
  38. package/cjs/components/Section/Section.js +2 -2
  39. package/cjs/components/Section/index.js +2 -2
  40. package/cjs/components/SegmentedControl/SegmentedControl.js +2 -2
  41. package/cjs/components/SegmentedControl/index.js +2 -2
  42. package/cjs/components/Select/Select.js +2 -2
  43. package/cjs/components/SplitButton/index.js +2 -2
  44. package/cjs/components/Subnav/index.js +2 -2
  45. package/cjs/components/Tabs/SearchBar.js +2 -2
  46. package/cjs/components/Tabs/Tabs.js +2 -2
  47. package/cjs/components/Toast/index.js +2 -2
  48. package/cjs/components/Toolbar/Toolbar.js +2 -2
  49. package/cjs/components/Toolbar/ToolbarGroup.js +2 -2
  50. package/cjs/components/Toolbar/ToolbarMenu.js +2 -2
  51. package/cjs/components/VerticalContext/index.js +2 -2
  52. package/cjs/components/index.js +2 -2
  53. package/cjs/index.js +1 -1
  54. package/dist/images/symbols.svg +26 -1
  55. package/dist/plesk-ui-library-rtl.css +1 -1
  56. package/dist/plesk-ui-library-rtl.css.map +1 -1
  57. package/dist/plesk-ui-library.css +1 -1
  58. package/dist/plesk-ui-library.css.map +1 -1
  59. package/dist/plesk-ui-library.js +207 -384
  60. package/dist/plesk-ui-library.js.map +1 -1
  61. package/dist/plesk-ui-library.min.js +6 -6
  62. package/dist/plesk-ui-library.min.js.map +1 -1
  63. package/esm/components/Action/Action.js +2 -0
  64. package/esm/components/Card/helpers.js +1 -0
  65. package/esm/components/CodeEditor/CodeEditor.js +23 -83
  66. package/esm/components/CodeEditor/CodeMirror.js +0 -3
  67. package/esm/components/FormField/FormField.js +48 -167
  68. package/esm/components/Icon/constants.js +2 -2
  69. package/esm/components/Icon/images/symbols.svg +26 -1
  70. package/esm/components/ItemList/ItemList.js +1 -1
  71. package/esm/components/List/List.js +3 -0
  72. package/esm/index.js +1 -1
  73. package/package.json +21 -19
  74. package/styleguide/build/bundle.2c956ff2.js +2 -0
  75. package/styleguide/images/symbols.svg +26 -1
  76. package/styleguide/index.html +2 -2
  77. package/types/src/components/Action/Action.d.ts +10 -1
  78. package/types/src/components/CodeEditor/CodeEditor.d.ts +188 -0
  79. package/types/src/components/CodeEditor/CodeMirror.d.ts +9 -0
  80. package/types/src/components/CodeEditor/index.d.ts +2 -0
  81. package/types/src/components/FormField/FormField.d.ts +158 -0
  82. package/types/src/components/FormField/index.d.ts +3 -0
  83. package/types/src/components/FormFieldSelect/FormFieldSelect.d.ts +3 -2
  84. package/types/src/components/Icon/constants.d.ts +1 -1
  85. package/types/src/components/ItemList/ItemList.d.ts +3 -3
  86. package/types/src/components/Select/Select.d.ts +30 -21
  87. package/types/src/components/index.d.ts +2 -0
  88. package/styleguide/build/bundle.50841a29.js +0 -2
  89. /package/styleguide/build/{bundle.50841a29.js.LICENSE.txt → bundle.2c956ff2.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- <svg width="16" height="12144" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
1
+ <svg width="16" height="12288" 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" />
@@ -978,6 +978,22 @@
978
978
  <path fill-rule="evenodd" d="M14 4a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm-1 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" clip-rule="evenodd" />
979
979
  <path fill-rule="evenodd" d="M11 10a5 5 0 1 0-4.622-3.09L.146 13.143a.499.499 0 0 0-.146.356V15.5a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5V14h1.5a.5.5 0 0 0 .5-.5V12h1.5a.5.5 0 0 0 .5-.5V10h2.75c.02 0 .04-.001.06-.004.063.003.126.004.19.004zm0-1a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM1 13.703l5.876-5.876c.308.45.688.846 1.124 1.173h-.5a.5.5 0 0 0-.5.5V11H5.5a.5.5 0 0 0-.5.5V13H3.5a.5.5 0 0 0-.5.5V15H1v-1.297z" clip-rule="evenodd" />
980
980
  </symbol>
981
+ <symbol viewBox="0 0 12 12" id="label-plus:12">
982
+ <path d="M6.65.4a1 1 0 0 0-1.3 0l-3 2.57a1 1 0 0 0-.35.76V11a1 1 0 0 0 1 1h2a.5.5 0 1 0 0-1H3V3.73l3-2.57 3 2.57V7a.5.5 0 0 0 1 0V3.73a1 1 0 0 0-.35-.76L6.65.4z" />
983
+ <path d="M6 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm1 2.5a.5.5 0 0 1 1 0V9h1.5a.5.5 0 0 1 0 1H8v1.5a.5.5 0 1 1-1 0V10H5.5a.5.5 0 1 1 0-1H7V7.5z" />
984
+ </symbol>
985
+ <symbol viewBox="0 0 16 16" id="label-plus:16">
986
+ <path d="M12 5.08v5.42a.5.5 0 0 0 1 0V5.08a1 1 0 0 0-.32-.73l-4-3.72a1 1 0 0 0-1.36 0l-4 3.72a1 1 0 0 0-.32.73V15a1 1 0 0 0 1 1h3.5a.5.5 0 0 0 0-1H4V5.08l4-3.71 4 3.71z" />
987
+ <path d="M9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm1.5 6a.5.5 0 0 0-.5.5V13H8.5a.5.5 0 0 0 0 1H10v1.5a.5.5 0 0 0 1 0V14h1.5a.5.5 0 0 0 0-1H11v-1.5a.5.5 0 0 0-.5-.5z" />
988
+ </symbol>
989
+ <symbol viewBox="0 0 12 12" id="label:12">
990
+ <path d="M6 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" />
991
+ <path fill-rule="evenodd" d="M6.65.4a1 1 0 0 0-1.3 0l-3 2.57a1 1 0 0 0-.35.76V11a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V3.73a1 1 0 0 0-.35-.76L6.65.4zM3 3.73l3-2.57 3 2.57V11H3V3.73z" clip-rule="evenodd" />
992
+ </symbol>
993
+ <symbol viewBox="0 0 16 16" id="label:16">
994
+ <path d="M8 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" />
995
+ <path fill-rule="evenodd" d="M3 5.08a1 1 0 0 1 .32-.73l4-3.72a1 1 0 0 1 1.36 0l4 3.72a1 1 0 0 1 .32.73V15a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5.08zm9 0V15H4V5.08l4-3.71 4 3.71z" clip-rule="evenodd" />
996
+ </symbol>
981
997
  <symbol viewBox="0 0 12 12" id="laravel:12">
982
998
  <path fill-rule="evenodd" d="m6.75 4.95-1.5.87V1.56a.2.2 0 0 0-.1-.17L2.92.1a.61.61 0 0 0-.57 0L.1 1.4a.2.2 0 0 0-.09.16v7.59c0 .06.04.13.1.16l4.5 2.59c.14.09.4.08.56 0l4.5-2.59c.05-.03.09-.1.09-.16V6.69l2.16-1.24a.19.19 0 0 0 .09-.16V2.83a.18.18 0 0 0-.1-.16l-2.24-1.3a.8.8 0 0 0-.57 0l-2.25 1.3c-.05.03-.09.09-.09.16v2.12Zm-1.5 4.3v1.72L9 8.81v-1.7L5.25 9.27Zm4.5-4.8v1.37l1.5-.87V3.6l-1.5.87Zm-.75 0L7.5 3.6v1.36l1.5.87V4.46ZM2.25 3.2v4.69c0 .07.04.12.1.16L4.5 9.26v1.71L.75 8.81V2.32l1.5.87Zm1.87-1.52L2.62.8l-1.49.86 1.5.86 1.49-.86ZM3 7.1l1.5-.86V2.32L3 3.2V7.1Zm4.88-4.17 1.5.86 1.49-.86-1.5-.86-1.49.86Zm.73 3.53L7.13 5.6 3.39 7.76l1.48.84 3.74-2.13Z" clip-rule="evenodd" />
983
999
  </symbol>
@@ -1804,6 +1820,15 @@
1804
1820
  <path fill-rule="evenodd" d="M5.93 11.69a1.75 1.75 0 0 0-.68-.12c-.27 0-.5.04-.7.13-.2.09-.36.21-.49.37a1.6 1.6 0 0 0-.3.57c-.06.21-.09.45-.09.71 0 .27.03.5.09.71.06.2.15.38.27.53.12.14.28.25.47.33.2.07.42.11.69.11.26 0 .5-.04.7-.12a1.34 1.34 0 0 0 .77-.91 2.58 2.58 0 0 0 .01-1.43 1.22 1.22 0 0 0-.74-.88Zm-1.22.77c.1-.2.25-.3.47-.3a.56.56 0 0 1 .55.34c.05.1.09.22.1.36.03.14.04.3.04.47 0 .36-.05.63-.14.83-.1.19-.26.29-.47.29a.63.63 0 0 1-.34-.09.61.61 0 0 1-.22-.23c-.05-.1-.09-.23-.1-.37a3.3 3.3 0 0 1-.04-.46c0-.36.05-.64.15-.84Z" clip-rule="evenodd" />
1805
1821
  <path d="M9.4 15h-.62l-.41-.96a4.04 4.04 0 0 0-.16-.39 15.16 15.16 0 0 0-.2-.55v.65a10.28 10.28 0 0 1-.01.57l-.03.68h-.76l.2-3.38h.71l.78 1.95a5.88 5.88 0 0 1 .2.6 8.56 8.56 0 0 1 .22-.6l.78-1.95h.7L11 15h-.78l-.03-.68-.01-.25v-.97a25.89 25.89 0 0 0-.28.73l-.07.17-.42 1ZM13.08 15h.63l.42-1a19.93 19.93 0 0 1 .17-.4 5.74 5.74 0 0 0 .18-.5v1.22l.04.68h.77l-.2-3.38h-.7l-.77 1.95a5.97 5.97 0 0 0-.21.6 4.76 4.76 0 0 0-.2-.6l-.79-1.95h-.7l-.2 3.38h.75l.03-.68a4.6 4.6 0 0 0 0-.57v-.65a95.66 95.66 0 0 0 .37.94l.41.96Z" />
1806
1822
  </symbol>
1823
+ <symbol viewBox="0 0 12 12" id="wordpress-minus:12">
1824
+ <path fill-rule="evenodd" d="m12 6-.01.34a4.02 4.02 0 0 0-1.01-.82 4.97 4.97 0 0 0-.58-1.9 3.81 3.81 0 0 1-.12 1.59A3.98 3.98 0 0 0 9.27 5a3.46 3.46 0 0 0-.3-.64l-.05-.1c-.24-.37-.44-.7-.44-1.08 0-.46.35-.89.84-.89h.03a.3.3 0 0 0 .02 0A4.98 4.98 0 0 0 6 1a5 5 0 0 0-4.18 2.25h.32c.53 0 1.33-.06 1.33-.06.27-.02.3.38.04.41l-.58.05 1.83 5.43.4-1.2a4 4 0 0 0-.13 1.63L4.6 10.8c.3.09.61.15.93.18.22.38.5.72.82 1.01A6 6 0 1 1 12 6zm-8.19 4.5a5 5 0 0 1-2.38-6.53l2.38 6.53z" clip-rule="evenodd" />
1825
+ <path d="m6.69 3.65.58 1.74a4.01 4.01 0 0 0-2.01 2.2l.6-1.8-.8-2.14c-.26-.01-.51-.04-.51-.04-.28-.02-.24-.44.02-.41 0 0 .82.06 1.32.06.52 0 1.34-.07 1.34-.07.27-.02.3.38.03.42l-.57.04z" />
1826
+ <path fill-rule="evenodd" d="M12 9a3 3 0 1 1-6 0 3 3 0 0 1 6 0zm-5-.5h4v1H7v-1z" clip-rule="evenodd" />
1827
+ </symbol>
1828
+ <symbol viewBox="0 0 16 16" id="wordpress-minus:16">
1829
+ <path fill-rule="evenodd" d="M8 16c.52 0 1.02-.05 1.5-.14a4.53 4.53 0 0 1-.79-.93 7.18 7.18 0 0 1-.71.04 6.9 6.9 0 0 1-1.97-.29l2.1-6.07.55 1.51a4.52 4.52 0 0 1 1.58-1.52l-1.3-3.86.8-.07c.37-.05.32-.6-.05-.57 0 0-1.14.08-1.87.08-.68 0-1.83-.08-1.83-.08-.37-.03-.41.55-.04.57 0 0 .36.05.73.07L7.8 7.7l-1.52 4.57-2.55-7.54.8-.07c.37-.05.33-.6-.05-.57 0 0-1.12.08-1.86.08h-.44A6.97 6.97 0 0 1 12.7 2.86h-.05a.27.27 0 0 0-.04-.01c-.69 0-1.17.6-1.17 1.24 0 .53.28.98.6 1.5l.09.13A3.69 3.69 0 0 1 12.68 8a4.5 4.5 0 0 1 .86.12l.09-.25a6.61 6.61 0 0 0 .48-3.21 6.93 6.93 0 0 1 .82 4.05c.34.22.66.5.93.8A8 8 0 1 0 8 16zM1.63 5.16c-.38.87-.6 1.83-.6 2.84a6.95 6.95 0 0 0 3.93 6.27l-3.33-9.1z" clip-rule="evenodd" />
1830
+ <path fill-rule="evenodd" d="M16 12.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0zm-6-.5h5v1h-5v-1z" clip-rule="evenodd" />
1831
+ </symbol>
1807
1832
  <symbol viewBox="0 0 12 12" id="wordpress:12">
1808
1833
  <path fill-rule="evenodd" d="M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0zm-4.342 4.719A4.99 4.99 0 0 1 6 11c-.49 0-.964-.07-1.411-.202l1.502-4.36 1.538 4.22a.193.193 0 0 0 .029.06zm2.738-7.104C10.78 4.325 11 5.137 11 6a4.998 4.998 0 0 1-2.483 4.321l1.528-4.412c.286-.717.383-1.288.383-1.796 0-.181-.013-.343-.032-.498zM1.823 3.25A4.996 4.996 0 0 1 6 1c1.3 0 2.484.496 3.373 1.31l-.02-.004a.192.192 0 0 0-.032-.003c-.494 0-.842.431-.842.891 0 .38.202.706.437 1.084l.057.093c.188.334.411.759.411 1.378 0 .394-.14.84-.327 1.444L9 7.372 8.5 9.042 6.69 3.655c.299-.021.57-.05.57-.05.272-.034.237-.43-.035-.41 0 0-.814.063-1.336.063-.495 0-1.316-.063-1.316-.063-.265-.02-.3.397-.028.41 0 0 .257.036.522.05l.787 2.137L4.76 9.078 2.929 3.654c.307-.021.578-.05.578-.05.265-.034.237-.43-.035-.41 0 0-.807.063-1.336.063-.089 0-.197 0-.313-.007zm1.988 7.246A5 5 0 0 1 1.429 3.97l2.382 6.526z" clip-rule="evenodd" />
1809
1834
  </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.8</title>
7
+ <title>Plesk UI Library 3.36.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">
@@ -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.50841a29.js"></script>
29
+ <script src="build/bundle.2c956ff2.js"></script>
30
30
  </body>
31
31
  </html>
@@ -1,4 +1,4 @@
1
- import { FunctionComponent, ReactNode, ReactElement, ElementType } from 'react';
1
+ import { FunctionComponent, ReactNode, ReactElement, ElementType, MouseEvent } from 'react';
2
2
  import { IconProps } from '../Icon';
3
3
  import '../../helpers/base.less';
4
4
  import './Action.less';
@@ -37,6 +37,11 @@ type ActionProps = {
37
37
  * @since 1.1.0
38
38
  */
39
39
  progress?: boolean;
40
+ /**
41
+ * Component visual emphasis
42
+ * @since 3.36.0
43
+ */
44
+ primary?: boolean;
40
45
  /**
41
46
  * Suppresses line breaks (text wrapping) within the source.
42
47
  * @since 0.0.68
@@ -50,6 +55,10 @@ type ActionProps = {
50
55
  className?: string;
51
56
  component?: string | ElementType;
52
57
  };
58
+ /**
59
+ * @ignore
60
+ */
61
+ onClick?: (e: MouseEvent<HTMLElement>) => void;
53
62
  } & {
54
63
  [key: string]: any;
55
64
  };
@@ -0,0 +1,188 @@
1
+ import { Component } from 'react';
2
+ import CM, { Editor, EditorChange, EditorConfiguration, ModeSpec, ModeSpecOptions, ScrollInfo } from 'codemirror';
3
+ import './CodeEditor.less';
4
+ type ExtendedEditorConfiguration = EditorConfiguration & {
5
+ enterMode?: string;
6
+ tabMode?: string;
7
+ };
8
+ export interface CodeEditorProps {
9
+ /**
10
+ * The mode to use. When not given, this will default to the first mode that was loaded.
11
+ * @since 0.0.61
12
+ */
13
+ mode?: string | ModeSpec<ModeSpecOptions> | null;
14
+ /**
15
+ * CodeEditor can detect mode by file name. Will be ignored if you set mode property.
16
+ * @since 0.0.61
17
+ */
18
+ fileName?: string;
19
+ /**
20
+ * Content of the `CodeEditor`.
21
+ * @since 0.0.61
22
+ */
23
+ children?: string;
24
+ /**
25
+ * Set read only.
26
+ * @since 0.0.61
27
+ */
28
+ readOnly?: boolean | string;
29
+ /**
30
+ * Set autofocus.
31
+ * @since 0.0.61
32
+ */
33
+ autofocus?: boolean;
34
+ /**
35
+ * onInit event handler.
36
+ * @since 0.0.61
37
+ */
38
+ onInit?: (el: HTMLElement) => void;
39
+ /**
40
+ * onChange event handler.
41
+ * @since 0.0.61
42
+ */
43
+ onChange?: (content: string) => void;
44
+ /**
45
+ * onSave event handler.
46
+ * @since 0.0.61
47
+ */
48
+ onSave?: () => void;
49
+ /**
50
+ * See all supported options in [CodeMirror](https://codemirror.net/doc/manual.html#config) documentation.
51
+ * @since 0.0.61
52
+ */
53
+ options?: ExtendedEditorConfiguration;
54
+ /**
55
+ * Set scroll position.
56
+ * @since 1.12.4
57
+ */
58
+ scrollPosition?: {
59
+ top: number;
60
+ left: number;
61
+ };
62
+ /**
63
+ * onScroll event handler.
64
+ * @since 1.12.4
65
+ */
66
+ onScroll?: (scrollInfo: ScrollInfo) => void;
67
+ /**
68
+ * @ignore
69
+ */
70
+ className?: string;
71
+ /**
72
+ * @ignore
73
+ */
74
+ baseClassName?: string;
75
+ }
76
+ type CodeEditorState = {
77
+ lineSeparator: string;
78
+ content?: string;
79
+ options: ExtendedEditorConfiguration;
80
+ };
81
+ /**
82
+ * `CodeEditor` component is used for editing text as code with proper color highlighting according to selected programming language.
83
+ * @since 0.0.61
84
+ */
85
+ declare class CodeEditor extends Component<CodeEditorProps, CodeEditorState> {
86
+ static defaultProps: {
87
+ mode: string;
88
+ fileName: string;
89
+ children: string;
90
+ readOnly: boolean;
91
+ autofocus: boolean;
92
+ onInit: null;
93
+ onChange: null;
94
+ onSave: null;
95
+ options: null;
96
+ className: null;
97
+ baseClassName: string;
98
+ scrollPosition: undefined;
99
+ onScroll: undefined;
100
+ };
101
+ state: CodeEditorState;
102
+ static getDerivedStateFromProps({ readOnly, autofocus, options }: CodeEditorProps, state: CodeEditorState): {
103
+ options: {
104
+ autofocus: boolean | undefined;
105
+ readOnly: string | boolean | undefined;
106
+ value?: string | CM.Doc | undefined;
107
+ mode?: string | CM.ModeSpec<CM.ModeSpecOptions> | undefined;
108
+ lineSeparator?: string | null | undefined;
109
+ theme?: string | undefined;
110
+ indentUnit?: number | undefined;
111
+ smartIndent?: boolean | undefined;
112
+ tabSize?: number | undefined;
113
+ indentWithTabs?: boolean | undefined;
114
+ electricChars?: boolean | undefined;
115
+ specialChars?: RegExp | undefined;
116
+ specialCharPlaceholder?: ((char: string) => HTMLElement) | undefined;
117
+ direction?: "ltr" | "rtl" | undefined;
118
+ rtlMoveVisually?: boolean | undefined;
119
+ keyMap?: string | undefined;
120
+ extraKeys?: string | CM.KeyMap | undefined;
121
+ configureMouse?: ((cm: CM.Editor, repeat: "double" | "single" | "triple", event: Event) => CM.MouseSelectionConfiguration) | undefined;
122
+ lineWrapping?: boolean | undefined;
123
+ lineNumbers?: boolean | undefined;
124
+ firstLineNumber?: number | undefined;
125
+ lineNumberFormatter?: ((line: number) => string) | undefined;
126
+ gutters?: (string | {
127
+ className: string;
128
+ style?: string | undefined;
129
+ })[] | undefined;
130
+ fixedGutter?: boolean | undefined;
131
+ scrollbarStyle?: keyof CM.ScrollbarModels | undefined;
132
+ coverGutterNextToScrollbar?: boolean | undefined;
133
+ inputStyle?: CM.InputStyle | undefined;
134
+ screenReaderLabel?: string | undefined;
135
+ showCursorWhenSelecting?: boolean | undefined;
136
+ lineWiseCopyCut?: boolean | undefined;
137
+ pasteLinesPerSelection?: boolean | undefined;
138
+ selectionsMayTouch?: boolean | undefined;
139
+ undoDepth?: number | undefined;
140
+ historyEventDelay?: number | undefined;
141
+ tabindex?: number | undefined;
142
+ phrases?: {
143
+ [s: string]: unknown;
144
+ } | undefined;
145
+ dragDrop?: boolean | undefined;
146
+ allowDropFileTypes?: string[] | null | undefined;
147
+ onDragEvent?: ((instance: CM.Editor, event: DragEvent) => boolean) | undefined;
148
+ onKeyEvent?: ((instance: CM.Editor, event: KeyboardEvent) => boolean) | undefined;
149
+ cursorBlinkRate?: number | undefined;
150
+ cursorScrollMargin?: number | undefined;
151
+ cursorHeight?: number | undefined;
152
+ resetSelectionOnContextMenu?: boolean | undefined;
153
+ workTime?: number | undefined;
154
+ workDelay?: number | undefined;
155
+ pollInterval?: number | undefined;
156
+ flattenSpans?: boolean | undefined;
157
+ addModeClass?: boolean | undefined;
158
+ maxHighlightLength?: number | undefined;
159
+ viewportMargin?: number | undefined;
160
+ spellcheck?: boolean | undefined;
161
+ autocorrect?: boolean | undefined;
162
+ autocapitalize?: boolean | undefined;
163
+ matchBrackets?: boolean | CM.MatchBrackets | undefined;
164
+ matchTags?: boolean | CM.MatchTags | undefined;
165
+ search?: {
166
+ bottom: boolean;
167
+ } | undefined;
168
+ autoRefresh?: boolean | {
169
+ delay: number;
170
+ } | undefined;
171
+ enterMode?: string | undefined;
172
+ tabMode?: string | undefined;
173
+ };
174
+ };
175
+ componentDidMount(): void;
176
+ componentDidUpdate(prevProps: CodeEditorProps): void;
177
+ componentWillUnmount(): void;
178
+ private readonly textareaNode;
179
+ private CodeMirror?;
180
+ private codeMirror?;
181
+ handleScroll: () => void;
182
+ findModeByFileName(fileName: string): string | null;
183
+ updateMode({ mode, fileName }: Pick<CodeEditorProps, 'mode' | 'fileName'>): void;
184
+ getLineSeparator(content?: string): string;
185
+ handleChange: (doc: Editor, changes: EditorChange) => void;
186
+ render(): import("react/jsx-runtime").JSX.Element;
187
+ }
188
+ export default CodeEditor;
@@ -0,0 +1,9 @@
1
+ import CodeMirror from 'codemirror';
2
+ import 'codemirror/addon/edit/matchbrackets';
3
+ import 'codemirror/addon/edit/matchtags';
4
+ import 'codemirror/mode/meta';
5
+ import 'codemirror/addon/dialog/dialog.js';
6
+ import 'codemirror/addon/search/searchcursor.js';
7
+ import 'codemirror/addon/search/search.js';
8
+ import 'codemirror/addon/display/autorefresh';
9
+ export { CodeMirror };
@@ -0,0 +1,2 @@
1
+ export { default } from './CodeEditor';
2
+ export type { CodeEditorProps } from './CodeEditor';
@@ -0,0 +1,158 @@
1
+ import { ReactNode } from 'react';
2
+ import type { FormContextProps, FormErrors, FormValues } from '../Form/types';
3
+ import './FormField.less';
4
+ export declare const BASE_FORM_FIELD_CLASS_NAME: string;
5
+ export type FormFieldApi = {
6
+ getValues: () => Readonly<FormValues> | null | undefined;
7
+ getId: () => string | undefined;
8
+ getName: () => string | undefined;
9
+ getValue: <T>(def?: T) => any | T;
10
+ setValue: (value: any) => void;
11
+ isDisabled: () => boolean;
12
+ getFullDescription: () => ReactNode;
13
+ getRequiredMark: () => ReactNode;
14
+ getErrors: () => FormErrors | undefined;
15
+ getSeparator?: () => ReactNode;
16
+ };
17
+ export interface FormFieldProps {
18
+ /**
19
+ * Field name.
20
+ * @since 0.0.54
21
+ */
22
+ name?: string;
23
+ /**
24
+ * Field ID.
25
+ * @since 0.0.59
26
+ */
27
+ id?: string;
28
+ /**
29
+ * Field value.
30
+ * @deprecated Use [Form](#!/Form) values.
31
+ * @since 0.0.57
32
+ */
33
+ value?: any;
34
+ /**
35
+ * A callback function, can be executed when the value is changing.
36
+ * @since 0.4.1
37
+ */
38
+ onChange?: (value: any) => void;
39
+ /**
40
+ * Field label.
41
+ * @since 0.0.54
42
+ */
43
+ label?: ReactNode;
44
+ /**
45
+ * Field description.
46
+ * @since 0.0.57
47
+ */
48
+ description?: ReactNode;
49
+ /**
50
+ * Show long descriptions in popover after clicking on "( i )" icon
51
+ * @since 3.14.0
52
+ */
53
+ fullDescription?: ReactNode;
54
+ /**
55
+ * Field errors.
56
+ * @deprecated Use [Form](#!/Form) errors.
57
+ * @since 0.0.57
58
+ */
59
+ errors?: FormErrors;
60
+ /**
61
+ * Indicates whether field is required.
62
+ * @since 0.0.54
63
+ */
64
+ required?: boolean;
65
+ /**
66
+ * Content of the `FormField`.
67
+ * @since 0.0.54
68
+ */
69
+ children?: ((props: FormFieldApi) => ReactNode) | ReactNode;
70
+ /**
71
+ * If 'true', a field will be multiple. You can also limit the number of fields with a value like { max: 5 }.
72
+ * @since 1.12.0
73
+ */
74
+ multi?: boolean | {
75
+ max: number;
76
+ };
77
+ /**
78
+ * @ignore Disabled state of multiple field.
79
+ */
80
+ disabled?: boolean;
81
+ /**
82
+ * Localization messages
83
+ * @since 1.12.0
84
+ */
85
+ locale?: {
86
+ addMode: ReactNode;
87
+ remove: ReactNode;
88
+ };
89
+ /**
90
+ * Callback which called for all values. If it returns 'true' a pseudo-link 'Add more' will be disabled
91
+ * @ignore
92
+ * @deprecated
93
+ */
94
+ addMoreValidator?: () => void;
95
+ /**
96
+ * A callback function, can be executed when the row is removed.
97
+ * @since 1.12.0
98
+ */
99
+ onRemoveRow?: (index: number) => void;
100
+ /**
101
+ * @ignore
102
+ */
103
+ className?: string;
104
+ /**
105
+ * @ignore
106
+ */
107
+ baseClassName?: string;
108
+ /**
109
+ * @ignore
110
+ */
111
+ form?: FormContextProps;
112
+ /**
113
+ * Vertical or horizontal field view.
114
+ * If it is not defined explicitly, the vertical mode will use from Form or Section components.
115
+ * @since 3.13.0
116
+ */
117
+ vertical?: boolean;
118
+ /**
119
+ * @ignore
120
+ */
121
+ scrollableElement?: HTMLElement | null;
122
+ }
123
+ /**
124
+ * `FormField` component is used for showing of parameter values in Form or
125
+ * for entering of user data with any form elements.
126
+ *
127
+ * For the most cases the following form elements can be used:
128
+ * * [FormFieldText](#!/FormFieldText) for entering text,
129
+ * * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
130
+ * [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
131
+ */
132
+ declare const FormFieldWrapper: {
133
+ (props: FormFieldProps): import("react/jsx-runtime").JSX.Element;
134
+ displayName: string;
135
+ defaultProps: {
136
+ id: undefined;
137
+ name: undefined;
138
+ value: undefined;
139
+ onChange: null;
140
+ label: undefined;
141
+ description: undefined;
142
+ errors: {};
143
+ required: boolean;
144
+ children: undefined;
145
+ multi: undefined;
146
+ disabled: undefined;
147
+ locale: undefined;
148
+ addMoreValidator: undefined;
149
+ onRemoveRow: null;
150
+ fullDescription: undefined;
151
+ className: undefined;
152
+ baseClassName: string;
153
+ form: undefined;
154
+ vertical: undefined;
155
+ scrollableElement: undefined;
156
+ };
157
+ };
158
+ export default FormFieldWrapper;
@@ -0,0 +1,3 @@
1
+ export { default } from './FormField';
2
+ export { BASE_FORM_FIELD_CLASS_NAME } from './FormField';
3
+ export type { FormFieldProps, FormFieldApi } from './FormField';
@@ -1,8 +1,9 @@
1
1
  import { FunctionComponent, ComponentProps } from 'react';
2
+ import { FormFieldProps } from '../FormField';
2
3
  import Select from '../Select';
3
4
  import './FormFieldSelect.less';
4
- type SelectProps = ComponentProps<typeof Select>;
5
- export type FormFieldSelectProps = Omit<SelectProps, 'value' | 'defaultValue' | 'onChange'>;
5
+ type SelectProps = Pick<ComponentProps<typeof Select>, 'children' | 'size' | 'multiple' | 'searchable' | 'clearable' | 'placeholder'>;
6
+ export type FormFieldSelectProps = SelectProps & Omit<FormFieldProps, 'children'>;
6
7
  /**
7
8
  * `FormFieldSelect` componentis is used for making a choice among a set of related options.
8
9
  * See description of `Select` for [the full list of properties](#!/Select) of this component.
@@ -1,3 +1,3 @@
1
1
  export declare const NAMES_12: IconName[];
2
- export type IconName = 'archive' | 'arrow-back' | 'arrow-diagonal-out' | 'arrow-down' | 'arrow-down-circle-filled' | 'arrow-down-in' | 'arrow-down-out' | 'arrow-down-tray' | 'arrow-left' | 'arrow-left-circle-filled' | 'arrow-right' | 'arrow-right-circle-filled' | 'arrow-right-in' | 'arrow-right-out' | 'arrow-up' | 'arrow-up-circle' | 'arrow-up-circle-filled' | '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' | 'dot-big' | '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' | 'plus-circle' | 'plus-circle-filled' | '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';
2
+ export type IconName = 'archive' | 'arrow-back' | 'arrow-diagonal-out' | 'arrow-down' | 'arrow-down-circle-filled' | 'arrow-down-in' | 'arrow-down-out' | 'arrow-down-tray' | 'arrow-left' | 'arrow-left-circle-filled' | 'arrow-right' | 'arrow-right-circle-filled' | 'arrow-right-in' | 'arrow-right-out' | 'arrow-up' | 'arrow-up-circle' | 'arrow-up-circle-filled' | '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' | 'dot-big' | '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' | 'label' | 'label-plus' | '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' | 'plus-circle' | 'plus-circle-filled' | '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' | 'wordpress-minus' | 'zero-circle-filled';
3
3
  export declare const NAMES: IconName[];
@@ -1,5 +1,5 @@
1
- import { Component, ComponentProps, ReactElement, MouseEvent, ReactNode } from 'react';
2
- import Grid from '../Grid';
1
+ import { GridProps } from '../Grid';
2
+ import { Component, ReactElement, MouseEvent, ReactNode } from 'react';
3
3
  import '../Item/Item.less';
4
4
  import './ItemList.less';
5
5
  type ItemValue = string | number;
@@ -73,7 +73,7 @@ type ItemListProps = {
73
73
  * @ignore
74
74
  */
75
75
  baseClassName?: string;
76
- } & Pick<ComponentProps<typeof Grid>, 'gap'>;
76
+ } & Omit<GridProps, 'children'>;
77
77
  type ItemListState = {
78
78
  ReorderableGrid: null | any;
79
79
  ReorderableGridCol: null | any;
@@ -1,7 +1,36 @@
1
1
  import { FunctionComponent, HTMLProps, ReactNode } from 'react';
2
2
  import { Value } from './structures';
3
3
  import './Select.less';
4
- type SelectProps = {
4
+ type SingleProps = {
5
+ /**
6
+ * In this mode, it is possible to select several options.
7
+ * @since 2.3.0
8
+ */
9
+ multiple?: false;
10
+ /**
11
+ * An initial value.
12
+ * @since 2.3.0
13
+ */
14
+ defaultValue?: Value;
15
+ /**
16
+ * An initial value. It switches component into a controlled mode.
17
+ * @since 2.3.0
18
+ */
19
+ value?: Value;
20
+ /**
21
+ * A callback executed when a value is changed.
22
+ * @since 2.3.0
23
+ */
24
+ onChange?: (value: Value | undefined) => void;
25
+ };
26
+ type MultipleProps = {
27
+ multiple: true;
28
+ defaultValue?: Value[];
29
+ value?: Value[];
30
+ onChange?: (value: Value[] | undefined) => void;
31
+ };
32
+ type MultipleBaseProps = MultipleProps | SingleProps;
33
+ type SelectProps = MultipleBaseProps & {
5
34
  /**
6
35
  * ID of the input.
7
36
  */
@@ -39,31 +68,11 @@ type SelectProps = {
39
68
  * @since 2.3.0
40
69
  */
41
70
  clearable?: boolean;
42
- /**
43
- * In this mode, it is possible to select several options.
44
- * @since 2.3.0
45
- */
46
- multiple?: boolean;
47
71
  /**
48
72
  * A placeholder for the input.
49
73
  * @since 2.3.0
50
74
  */
51
75
  placeholder?: ReactNode;
52
- /**
53
- * An initial value.
54
- * @since 2.3.0
55
- */
56
- defaultValue?: Value | Value[];
57
- /**
58
- * An initial value. It switches component into a controlled mode.
59
- * @since 2.3.0
60
- */
61
- value?: Value | Value[];
62
- /**
63
- * A callback executed when a value is changed.
64
- * @since 2.3.0
65
- */
66
- onChange?: (value: Value | Value[] | undefined) => void;
67
76
  } & Omit<HTMLProps<HTMLDivElement>, 'onChange' | 'size'>;
68
77
  /**
69
78
  * `Select` component is used for making a choice among a set of related options.
@@ -15,6 +15,7 @@ export type { CarouselProps } from './Carousel';
15
15
  export { default as Checkbox } from './Checkbox';
16
16
  export { default as Radio } from './Radio';
17
17
  export { default as CodeEditor } from './CodeEditor';
18
+ export type { CodeEditorProps } from './CodeEditor';
18
19
  export { default as Columns, Column } from './Columns';
19
20
  export type { ColumnsProps, ColumnProps } from './Columns';
20
21
  export { default as ComboBox } from './ComboBox';
@@ -38,6 +39,7 @@ export { default as Form } from './Form';
38
39
  export type { FormProps, FormValues, FormInstanceHandles } from './Form';
39
40
  export * from './Form';
40
41
  export { default as FormField } from './FormField';
42
+ export type { FormFieldProps, FormFieldApi } from './FormField';
41
43
  export { default as FormFieldCheckbox } from './FormFieldCheckbox';
42
44
  export type { FormFieldCheckboxProps } from './FormFieldCheckbox';
43
45
  export { default as FormFieldPassword } from './FormFieldPassword';