@plesk/ui-library 3.38.2 → 3.40.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 (93) hide show
  1. package/cjs/components/Button/Button.js +4 -22
  2. package/cjs/components/Card/CardButton.js +2 -3
  3. package/cjs/components/CardList/CardListToolbar.js +3 -8
  4. package/cjs/components/Dialog/Dialog.js +5 -27
  5. package/cjs/components/Drawer/Drawer.js +7 -20
  6. package/cjs/components/Dropdown/Dropdown.js +3 -11
  7. package/cjs/components/FormField/FormField.js +13 -26
  8. package/cjs/components/Icon/constants.js +2 -2
  9. package/cjs/components/Icon/images/symbols.svg +9 -1
  10. package/cjs/components/List/List.js +1 -14
  11. package/cjs/components/Progress/Progress.js +6 -5
  12. package/cjs/components/ProgressStep/ProgressStep.js +5 -14
  13. package/cjs/components/ProgressStep/index.js +6 -0
  14. package/cjs/components/Section/Section.js +11 -19
  15. package/cjs/components/SplitButton/SplitButton.js +2 -3
  16. package/cjs/components/TextArea/TextArea.js +49 -97
  17. package/cjs/components/TextArea/calculateNodeHeight.js +8 -8
  18. package/cjs/components/Toolbar/RegistryContextBeta.js +112 -0
  19. package/cjs/components/Toolbar/Toolbar.js +46 -2
  20. package/cjs/components/Toolbar/ToolbarBetaProvider.js +23 -0
  21. package/cjs/components/Toolbar/ToolbarGroup.js +66 -4
  22. package/cjs/components/Toolbar/ToolbarItem.js +27 -12
  23. package/cjs/components/Toolbar/ToolbarMenu.js +2 -1
  24. package/cjs/components/Toolbar/index.js +8 -1
  25. package/cjs/components/index.js +15 -1
  26. package/cjs/hooks/index.js +12 -0
  27. package/cjs/hooks/useResizeObserver.js +29 -0
  28. package/cjs/hooks/useSqueeze.js +48 -0
  29. package/cjs/index.js +1 -1
  30. package/dist/images/symbols.svg +9 -1
  31. package/dist/plesk-ui-library-rtl.css +1 -1
  32. package/dist/plesk-ui-library-rtl.css.map +1 -1
  33. package/dist/plesk-ui-library.css +1 -1
  34. package/dist/plesk-ui-library.css.map +1 -1
  35. package/dist/plesk-ui-library.js +591 -309
  36. package/dist/plesk-ui-library.js.map +1 -1
  37. package/dist/plesk-ui-library.min.js +5 -5
  38. package/dist/plesk-ui-library.min.js.map +1 -1
  39. package/esm/components/Button/Button.js +3 -21
  40. package/esm/components/Card/CardButton.js +2 -3
  41. package/esm/components/CardList/CardListToolbar.js +3 -8
  42. package/esm/components/Dialog/Dialog.js +5 -27
  43. package/esm/components/Drawer/Drawer.js +7 -20
  44. package/esm/components/Dropdown/Dropdown.js +3 -11
  45. package/esm/components/FormField/FormField.js +13 -26
  46. package/esm/components/Icon/constants.js +2 -2
  47. package/esm/components/Icon/images/symbols.svg +9 -1
  48. package/esm/components/List/List.js +1 -14
  49. package/esm/components/Progress/Progress.js +7 -6
  50. package/esm/components/ProgressStep/ProgressStep.js +4 -13
  51. package/esm/components/ProgressStep/index.js +1 -1
  52. package/esm/components/Section/Section.js +11 -19
  53. package/esm/components/SplitButton/SplitButton.js +2 -3
  54. package/esm/components/TextArea/TextArea.js +50 -98
  55. package/esm/components/TextArea/calculateNodeHeight.js +8 -8
  56. package/esm/components/Toolbar/RegistryContextBeta.js +103 -0
  57. package/esm/components/Toolbar/Toolbar.js +47 -3
  58. package/esm/components/Toolbar/ToolbarBetaProvider.js +16 -0
  59. package/esm/components/Toolbar/ToolbarGroup.js +67 -5
  60. package/esm/components/Toolbar/ToolbarItem.js +27 -12
  61. package/esm/components/Toolbar/ToolbarMenu.js +2 -1
  62. package/esm/components/Toolbar/index.js +2 -1
  63. package/esm/components/index.js +2 -2
  64. package/esm/hooks/index.js +3 -0
  65. package/esm/hooks/useResizeObserver.js +22 -0
  66. package/esm/hooks/useSqueeze.js +41 -0
  67. package/esm/index.js +1 -1
  68. package/package.json +13 -13
  69. package/styleguide/build/bundle.8f00c54c.js +2 -0
  70. package/styleguide/images/symbols.svg +9 -1
  71. package/styleguide/index.html +2 -2
  72. package/types/src/components/Button/Button.d.ts +1 -0
  73. package/types/src/components/Dialog/Dialog.d.ts +1 -25
  74. package/types/src/components/Drawer/Drawer.d.ts +1 -4
  75. package/types/src/components/FormField/FormField.d.ts +1 -23
  76. package/types/src/components/Icon/constants.d.ts +1 -1
  77. package/types/src/components/ProgressStep/ProgressStep.d.ts +2 -13
  78. package/types/src/components/ProgressStep/index.d.ts +1 -1
  79. package/types/src/components/Section/Section.d.ts +2 -32
  80. package/types/src/components/TextArea/TextArea.d.ts +5 -32
  81. package/types/src/components/TextArea/calculateNodeHeight.d.ts +2 -6
  82. package/types/src/components/Toolbar/RegistryContextBeta.d.ts +25 -0
  83. package/types/src/components/Toolbar/Toolbar.d.ts +2 -22
  84. package/types/src/components/Toolbar/ToolbarBetaProvider.d.ts +5 -0
  85. package/types/src/components/Toolbar/ToolbarGroup.d.ts +2 -5
  86. package/types/src/components/Toolbar/ToolbarItem.d.ts +1 -1
  87. package/types/src/components/Toolbar/index.d.ts +1 -0
  88. package/types/src/components/index.d.ts +2 -2
  89. package/types/src/hooks/index.d.ts +1 -0
  90. package/types/src/hooks/useResizeObserver.d.ts +7 -0
  91. package/types/src/hooks/useSqueeze.d.ts +10 -0
  92. package/styleguide/build/bundle.42040fbd.js +0 -2
  93. /package/styleguide/build/{bundle.42040fbd.js.LICENSE.txt → bundle.8f00c54c.js.LICENSE.txt} +0 -0
@@ -1,4 +1,4 @@
1
- <svg width="16" height="12432" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
1
+ <svg width="16" height="12480" 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="advisor:12">
4
4
  <path d="M4.5 6.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0ZM8 7a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z" />
@@ -244,6 +244,14 @@
244
244
  <path fill-rule="evenodd" d="M2 1a1 1 0 0 1 1-1h9a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a1 1 0 0 1-1-1V1zm1 12V1h9a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3zm10 .733V14a1 1 0 0 1-1 1H3v-1h9c.364 0 .706-.097 1-.267z" clip-rule="evenodd" />
245
245
  <path fill-rule="evenodd" d="M8 10a3 3 0 0 0 .878-.13c.264-.081.564.015.688.262.123.247.024.55-.236.642A4 4 0 1 1 12 7a1.5 1.5 0 0 1-2.4 1.2A2 2 0 1 1 10 7a.5.5 0 0 0 1 0 3 3 0 1 0-3 3zm0-2a1 1 0 1 0 0-2 1 1 0 0 0 0 2z" clip-rule="evenodd" />
246
246
  </symbol>
247
+ <symbol viewBox="0 0 12 12" id="boost:12">
248
+ <path d="M10.5 2.1c-.1 0-.1 0-.1.1l-.6 7c-.5.2-.8.7-.8 1.3 0 .8.7 1.5 1.5 1.5s1.5-.7 1.5-1.5c0-.6-.3-1.1-.8-1.3l-.6-7c0-.1 0-.1-.1-.1zm0 8.9c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5z" />
249
+ <path d="M11.5 1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5h-.1C8.1.2 5.1 1.7 3 4 1.3 6 .2 8.5 0 11.3v.2c0 .3.2.5.5.5s.5-.2.5-.5v-.2c.2-2.5 1.2-4.9 2.8-6.7C5.7 2.5 8.4 1.2 11.5 1z" />
250
+ </symbol>
251
+ <symbol viewBox="0 0 16 16" id="boost:16">
252
+ <path d="M15.5 1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5C11.4.1 7.6 1.8 4.9 4.5 2 7.3.1 11.2 0 15.5c0 .3.2.5.5.5s.5-.2.5-.5c.1-4 1.9-7.7 4.6-10.3 2.6-2.5 6.1-4.1 9.9-4.2z" />
253
+ <path d="M14 2.8c-.1 0-.1 0-.2.1l-.8 9.3a2 2 0 0 0 .9 3.8 2 2 0 0 0 .9-3.8L14.2 3c-.1-.1-.1-.2-.2-.2zM14 15c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z" />
254
+ </symbol>
247
255
  <symbol viewBox="0 0 12 12" id="boundary:12">
248
256
  <path fill-rule="evenodd" d="M3 9V2.997a1 1 0 01.342-.753L5.835.062a.25.25 0 01.33 0l2.494 2.182A1.003 1.003 0 019 2.997V9h.666a1 1 0 01.6.2l1.332 1c.769.577.361 1.8-.6 1.8H1.002c-.961 0-1.369-1.223-.6-1.8l1.333-1a1 1 0 01.6-.2H3zm5-1.565V9H6.435L8 7.435zM5 9l3-3V3.435l-4 4V9h1zm2.469-6.469L6 1.247l-2 1.75V6L7.469 2.53zM1.002 11l1.333-1h7.33l1.333 1H1.002z" clip-rule="evenodd" />
249
257
  </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.38.2</title>
7
+ <title>Plesk UI Library 3.40.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.42040fbd.js"></script>
29
+ <script src="build/bundle.8f00c54c.js"></script>
30
30
  </body>
31
31
  </html>
@@ -92,6 +92,7 @@ type ButtonComponent<Component extends ElementType = 'button'> = {
92
92
  defaultProps?: Partial<ButtonProps<Component>>;
93
93
  displayName?: string;
94
94
  } & (<C extends ElementType = Component>(props: ButtonProps<C>) => ReactElement | null);
95
+ export declare const BUTTON_PROP_NAMES: (keyof ButtonProps)[];
95
96
  /**
96
97
  * `Button` component is used for executing actions, changing the application state, opening forms or dialog windows, and submitting data.
97
98
  * As a rule, you should not use buttons for navigation between individual pages (use `Link` instead).
@@ -118,29 +118,5 @@ export type DialogProps<FV extends FormValues = FormValues> = {
118
118
  * `Dialog` is a modal window that asks users to make a decision or enter additional information.
119
119
  * @since 0.0.68
120
120
  */
121
- declare const Dialog: {
122
- <FV extends FormValues = FormValues>({ baseClassName, className, children, actions, isOpen, banner, image, title, subtitle, cancelTitle, cancelButton, buttons, form, size, closable, onClose, closingConfirmation, canClose, ...props }: DialogProps<FV>): import("react/jsx-runtime").JSX.Element;
123
- defaultProps: {
124
- isOpen: boolean;
125
- banner: undefined;
126
- sideBanner: undefined;
127
- sideBannerContainer: undefined;
128
- image: undefined;
129
- title: undefined;
130
- subtitle: undefined;
131
- cancelTitle: undefined;
132
- cancelButton: undefined;
133
- buttons: undefined;
134
- actions: undefined;
135
- form: undefined;
136
- size: string;
137
- closable: boolean;
138
- canClose: boolean;
139
- onClose: undefined;
140
- closingConfirmation: undefined;
141
- children: undefined;
142
- className: undefined;
143
- baseClassName: string;
144
- };
145
- };
121
+ declare const Dialog: <FV extends FormValues = FormValues>({ baseClassName, isOpen, size, closable, canClose, className, children, actions, banner, image, title, subtitle, cancelTitle, cancelButton, buttons, form, onClose, closingConfirmation, ...props }: DialogProps<FV>) => import("react/jsx-runtime").JSX.Element;
146
122
  export default Dialog;
@@ -99,8 +99,5 @@ export interface DrawerProps<FV extends FormValues = FormValues> {
99
99
  * [Read more when to use Drawer](#!/Drawers%2C%20pages%2C%20popovers).
100
100
  * @since 0.0.65
101
101
  */
102
- declare const Drawer: {
103
- <FV extends FormValues = FormValues>({ baseClassName, className, children, title, subtitle, backButton, hideButton, tabs, onClose, form, progress, closingConfirmation, ...props }: DrawerProps<FV>): import("react/jsx-runtime").JSX.Element;
104
- defaultProps: Partial<DrawerProps<FormValues>>;
105
- };
102
+ declare const Drawer: <FV extends FormValues = FormValues>({ baseClassName, isOpen, placement, size, className, children, title, subtitle, backButton, hideButton, tabs, onClose, form, progress, closingConfirmation, ...props }: DrawerProps<FV>) => import("react/jsx-runtime").JSX.Element;
106
103
  export default Drawer;
@@ -130,29 +130,7 @@ export interface FormFieldProps {
130
130
  * [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
131
131
  */
132
132
  declare const FormFieldWrapper: {
133
- (props: FormFieldProps): import("react/jsx-runtime").JSX.Element;
133
+ ({ value, errors, required, baseClassName, ...props }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
134
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
135
  };
158
136
  export default FormFieldWrapper;
@@ -1,3 +1,3 @@
1
1
  export declare const NAMES_12: IconName[];
2
- export type IconName = 'advisor' | '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' | 'file' | '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' | 'ssl-it' | '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';
2
+ export type IconName = 'advisor' | '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' | 'boost' | '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' | 'file' | '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' | 'ssl-it' | '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[];
@@ -8,6 +8,7 @@ export declare const STATUS_DONE = "done";
8
8
  export declare const STATUS_WARNING = "warning";
9
9
  export declare const STATUS_ERROR = "error";
10
10
  export declare const STATUS_CANCELED = "canceled";
11
+ export declare const PROGRESS_STEP_DEFAULT_STATUS = "not_started";
11
12
  export type Status = typeof STATUS_NOT_STARTED | typeof STATUS_RUNNING | typeof STATUS_DONE | typeof STATUS_ERROR | typeof STATUS_CANCELED | typeof STATUS_WARNING;
12
13
  export interface ProgressStepProps {
13
14
  /**
@@ -53,17 +54,5 @@ export interface ProgressStepProps {
53
54
  * `ProgressStep` is a part of the [Progress](#!/Progress) component.
54
55
  * @since 1.10.0
55
56
  */
56
- declare const ProgressStep: {
57
- ({ className, children, icon, title, statusText, progress, status, baseClassName, ...props }: ProgressStepProps): import("react/jsx-runtime").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
- };
57
+ declare const ProgressStep: ({ className, children, icon, title, statusText, progress, status, baseClassName, ...props }: ProgressStepProps) => import("react/jsx-runtime").JSX.Element;
69
58
  export default ProgressStep;
@@ -1,2 +1,2 @@
1
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';
2
+ export { default, STATUS_RUNNING, STATUS_DONE, STATUS_ERROR, STATUS_WARNING, STATUS_CANCELED, STATUS_NOT_STARTED, PROGRESS_STEP_DEFAULT_STATUS, } from './ProgressStep';
@@ -54,7 +54,7 @@ export interface SectionProps {
54
54
  * Content of the `Section`.
55
55
  * @since 0.0.54
56
56
  */
57
- children: ReactNode;
57
+ children?: ReactNode;
58
58
  /**
59
59
  * @ignore
60
60
  */
@@ -78,21 +78,6 @@ interface SectionState extends DerivedState {
78
78
  }
79
79
  export declare const SECTION_BASE_CLASS_NAME: string;
80
80
  declare class Section extends Component<SectionProps, SectionState> {
81
- static defaultProps: {
82
- title: undefined;
83
- intent: undefined;
84
- collapsible: boolean;
85
- collapsed: boolean;
86
- onTitleChange: undefined;
87
- onClose: undefined;
88
- onToggle: undefined;
89
- buttons: undefined;
90
- vertical: undefined;
91
- children: undefined;
92
- className: undefined;
93
- baseClassName: string;
94
- form: undefined;
95
- };
96
81
  state: SectionState;
97
82
  static getDerivedStateFromProps(props: SectionProps, state: SectionState): DerivedState;
98
83
  handleResize: ({ bounds }: ContentRect) => void;
@@ -123,23 +108,8 @@ declare class Section extends Component<SectionProps, SectionState> {
123
108
  * @since 0.0.54
124
109
  */
125
110
  declare const SectionWrapper: {
126
- (props: Omit<SectionProps, 'form'>): import("react/jsx-runtime").JSX.Element;
111
+ ({ collapsible, collapsed, baseClassName, ...props }: Omit<SectionProps, 'form'>): import("react/jsx-runtime").JSX.Element;
127
112
  displayName: string;
128
- defaultProps: {
129
- title: undefined;
130
- intent: undefined;
131
- collapsible: boolean;
132
- collapsed: boolean;
133
- onTitleChange: undefined;
134
- onClose: undefined;
135
- onToggle: undefined;
136
- buttons: undefined;
137
- vertical: undefined;
138
- children: undefined;
139
- className: undefined;
140
- baseClassName: string;
141
- form: undefined;
142
- };
143
113
  WrappedComponent: typeof Section;
144
114
  };
145
115
  export default SectionWrapper;
@@ -1,4 +1,5 @@
1
- import { Component, ComponentPropsWithoutRef, SyntheticEvent } from 'react';
1
+ import { ComponentPropsWithoutRef, ChangeEventHandler } from 'react';
2
+ import { DataAttributes } from '../../utils/types';
2
3
  import './TextArea.less';
3
4
  type Rows = number | {
4
5
  min: number;
@@ -31,39 +32,11 @@ export type TextAreaProps = {
31
32
  /**
32
33
  * @ignore
33
34
  */
34
- onChange?: (e: SyntheticEvent<HTMLTextAreaElement>) => void;
35
- } & Omit<ComponentPropsWithoutRef<'textarea'>, 'rows'>;
36
- type TextAreaState = {
37
- textareaStyles: any;
38
- minRows?: number;
39
- maxRows?: number;
40
- };
35
+ onChange?: ChangeEventHandler<HTMLTextAreaElement>;
36
+ } & Omit<ComponentPropsWithoutRef<'textarea'>, 'rows'> & DataAttributes;
41
37
  /**
42
38
  * `TextArea` is used for entering long text (like email body, descriptions, comments).
43
39
  * @since 1.9.0
44
40
  */
45
- declare class TextArea extends Component<TextAreaProps, TextAreaState> {
46
- static defaultProps: {
47
- baseClassName: string;
48
- className: null;
49
- rows: number;
50
- size: string;
51
- autoheight: boolean;
52
- onChange: null;
53
- };
54
- state: TextAreaState;
55
- static getDerivedStateFromProps({ rows }: TextAreaProps): {
56
- minRows: number;
57
- maxRows?: undefined;
58
- } | {
59
- minRows: number;
60
- maxRows: number;
61
- } | null;
62
- componentDidMount(): void;
63
- componentDidUpdate(prevProps: TextAreaProps): void;
64
- rootRef: import("react").RefObject<HTMLTextAreaElement>;
65
- handleChange: (e: SyntheticEvent<HTMLTextAreaElement>) => void;
66
- adjustHeight(): void;
67
- render(): import("react/jsx-runtime").JSX.Element;
68
- }
41
+ declare const TextArea: ({ baseClassName, className, rows, size, autoheight, onChange, style, ...props }: TextAreaProps) => import("react/jsx-runtime").JSX.Element;
69
42
  export default TextArea;
@@ -1,6 +1,2 @@
1
- export default function calculateNodeHeight(uiTextNode: HTMLTextAreaElement, useCache?: boolean, minRows?: number | null, maxRows?: number | null): {
2
- height: number;
3
- minHeight: number | null;
4
- maxHeight: number | null;
5
- overflowY: any;
6
- };
1
+ import { CSSProperties } from 'react';
2
+ export default function calculateNodeHeight(uiTextNode: HTMLTextAreaElement, useCache?: boolean, minRows?: number | undefined, maxRows?: number | undefined): CSSProperties;
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ declare const RegistryContext: import("react").Context<Registry | undefined>;
3
+ export default RegistryContext;
4
+ declare class Registry {
5
+ private items;
6
+ register(item: RegistryItem | Registry): void;
7
+ unregister(item: RegistryItem | Registry): void;
8
+ compact(): boolean;
9
+ expand(): boolean;
10
+ get isCompact(): boolean;
11
+ get hasCompactItems(): boolean;
12
+ private checkItemIsCompactOrHasCompactItems;
13
+ }
14
+ declare class RegistryItem {
15
+ private _isCompact;
16
+ private readonly onCompactStateChange;
17
+ constructor({ onCompactStateChange }: {
18
+ onCompactStateChange: (state: boolean) => void;
19
+ });
20
+ compact(): void;
21
+ expand(): void;
22
+ get isCompact(): boolean;
23
+ }
24
+ export declare const useRegistry: () => Registry;
25
+ export declare const useRegistryItem: () => boolean[];
@@ -1,5 +1,4 @@
1
- import { Component, ReactNode } from 'react';
2
- import { DistractionFreeMode } from '../DistractionFreeModeContext';
1
+ import { ReactNode } from 'react';
3
2
  import '../../helpers/base.less';
4
3
  import './Toolbar.less';
5
4
  /**
@@ -24,24 +23,5 @@ export interface ToolbarProps {
24
23
  */
25
24
  baseClassName?: string;
26
25
  }
27
- type ToolbarState = {
28
- distractionFreeMode: DistractionFreeMode;
29
- };
30
- declare class Toolbar extends Component<ToolbarProps, ToolbarState> {
31
- static defaultProps: {
32
- children: null;
33
- className: null;
34
- baseClassName: string;
35
- };
36
- constructor(props: ToolbarProps);
37
- state: {
38
- distractionFreeMode: {
39
- enabled: boolean;
40
- toggle: () => void;
41
- };
42
- };
43
- private readonly registry;
44
- private measure;
45
- render(): import("react/jsx-runtime").JSX.Element;
46
- }
26
+ declare const Toolbar: (props: ToolbarProps) => import("react/jsx-runtime").JSX.Element;
47
27
  export default Toolbar;
@@ -0,0 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare const useToolbarBetaContext: () => boolean;
3
+ type ToolbarBetaProviderProps = PropsWithChildren<{}>;
4
+ declare const ToolbarBetaProvider: ({ children }: ToolbarBetaProviderProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default ToolbarBetaProvider;
@@ -39,8 +39,5 @@ export interface ToolbarGroupProps {
39
39
  */
40
40
  distractionFreeMode: DistractionFreeMode;
41
41
  }
42
- declare const ToolbarGroupWrapper: {
43
- ({ groupable, baseClassName, ...props }: Omit<ToolbarGroupProps, 'registry' | 'distractionFreeMode'>): import("react/jsx-runtime").JSX.Element;
44
- displayName: string;
45
- };
46
- export default ToolbarGroupWrapper;
42
+ declare const ToolbarGroup: (props: Omit<ToolbarGroupProps, 'distractionFreeMode' | 'registry'>) => import("react/jsx-runtime").JSX.Element;
43
+ export default ToolbarGroup;
@@ -1,2 +1,2 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const toToolbarItems: (children: ReactNode) => (string | number | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element)[] | null | undefined;
2
+ export declare const toToolbarItems: (children: ReactNode, isBeta?: boolean) => (string | number | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element)[] | null | undefined;
@@ -3,3 +3,4 @@ export type { ToolbarProps } from './Toolbar';
3
3
  export { default as ToolbarGroup } from './ToolbarGroup';
4
4
  export type { ToolbarGroupProps } from './ToolbarGroup';
5
5
  export { default as ToolbarExpander } from './ToolbarExpander';
6
+ export { default as ToolbarBetaProvider } from './ToolbarBetaProvider';
@@ -111,7 +111,7 @@ export { default as ProgressBar } from './ProgressBar';
111
111
  export { default as ProgressDialog } from './ProgressDialog';
112
112
  export type { ProgressDialogProps } from './ProgressDialog';
113
113
  export { default as ProgressDialogStep } from './ProgressDialogStep';
114
- export { default as ProgressStep } from './ProgressStep';
114
+ export { default as ProgressStep, PROGRESS_STEP_DEFAULT_STATUS } from './ProgressStep';
115
115
  export type { ProgressStepProps } from './ProgressStep';
116
116
  export { default as Rating } from './Rating';
117
117
  export type { RatingProps } from './Rating';
@@ -138,7 +138,7 @@ export { default as Tabs, Tab, SearchBar } from './Tabs';
138
138
  export type { TabsProps, TabProps, SearchBarProps } from './Tabs';
139
139
  export { default as Text } from './Text';
140
140
  export { default as Toaster } from './Toaster';
141
- export { default as Toolbar, ToolbarGroup, ToolbarExpander } from './Toolbar';
141
+ export { default as Toolbar, ToolbarGroup, ToolbarExpander, ToolbarBetaProvider } from './Toolbar';
142
142
  export type { ToolbarGroupProps, ToolbarProps } from './Toolbar';
143
143
  export { default as Tooltip } from './Tooltip';
144
144
  export type { TooltipProps } from './Tooltip';
@@ -0,0 +1 @@
1
+ export { useSqueeze } from './useSqueeze';
@@ -0,0 +1,7 @@
1
+ import { RefObject } from 'react';
2
+ type UseResizeObserverOptions<T extends HTMLElement = HTMLElement> = {
3
+ ref: RefObject<T>;
4
+ onResize?: () => void;
5
+ };
6
+ export declare const useResizeObserver: <Element_1 extends HTMLElement = HTMLElement>({ ref, onResize, }: UseResizeObserverOptions<Element_1>) => void;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import { RefObject } from 'react';
2
+ type UseSqueezeOptions<Element extends HTMLElement = HTMLElement> = {
3
+ ref: RefObject<Element>;
4
+ compact: () => boolean;
5
+ expand: () => boolean;
6
+ innerRef?: (el: Element) => void;
7
+ innerMeasure?: (measure: () => void) => void;
8
+ };
9
+ export declare const useSqueeze: <Element_1 extends HTMLElement = HTMLElement>({ ref, compact, expand, }: UseSqueezeOptions<Element_1>) => void;
10
+ export {};