@plesk/ui-library 3.36.1 → 3.37.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.
- package/README.md +50 -50
- package/cjs/components/Action/Action.js +3 -3
- package/cjs/components/Alert/Alert.js +5 -5
- package/cjs/components/AutoClosable/AutoClosable.js +3 -3
- package/cjs/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
- package/cjs/components/Badge/Badge.js +3 -3
- package/cjs/components/Breadcrumbs/Breadcrumbs.js +4 -4
- package/cjs/components/Button/Button.js +4 -4
- package/cjs/components/ButtonGroup/ButtonGroup.js +3 -3
- package/cjs/components/Card/Card.js +52 -52
- package/cjs/components/Card/CardButton.js +2 -2
- package/cjs/components/Card/PreviewPanel.js +3 -3
- package/cjs/components/Card/images/no-image.svg +6 -6
- package/cjs/components/CardList/CardList.js +55 -55
- package/cjs/components/Carousel/Carousel.js +186 -81
- package/cjs/components/Checkbox/Checkbox.js +3 -3
- package/cjs/components/CodeEditor/CodeEditor.js +3 -3
- package/cjs/components/Columns/Column.js +3 -3
- package/cjs/components/Columns/Columns.js +3 -3
- package/cjs/components/ComboBox/ComboBox.js +4 -4
- package/cjs/components/ComboBox/ComboBoxOption.js +5 -4
- package/cjs/components/ConsoleOutput/ConsoleOutput.js +3 -3
- package/cjs/components/ContentLoader/ContentLoader.js +3 -3
- package/cjs/components/Cuttable/Cuttable.js +3 -3
- package/cjs/components/Dialog/Dialog.js +3 -3
- package/cjs/components/Drawer/Drawer.js +4 -4
- package/cjs/components/Dropdown/Dropdown.js +5 -5
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
- package/cjs/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
- package/cjs/components/Figure/Figure.js +3 -3
- package/cjs/components/Form/Form.js +4 -4
- package/cjs/components/Form/utils.js +22 -22
- package/cjs/components/FormField/FormField.js +24 -24
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +4 -4
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +3 -3
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +3 -3
- package/cjs/components/FormFieldSelect/FormFieldSelect.js +4 -4
- package/cjs/components/FormFieldText/FormFieldText.js +5 -5
- package/cjs/components/Grid/Grid.js +3 -3
- package/cjs/components/GridCol/GridCol.js +3 -3
- package/cjs/components/Heading/Heading.js +3 -3
- package/cjs/components/Hint/Hint.js +3 -3
- package/cjs/components/Icon/Icon.js +6 -6
- package/cjs/components/Icon/images/symbols.svg +1846 -1846
- package/cjs/components/InPlaceEdit/InPlaceEdit.js +5 -5
- package/cjs/components/Input/Input.js +3 -3
- package/cjs/components/InputFile/InputFile.js +3 -3
- package/cjs/components/InputNumber/InputNumber.js +3 -3
- package/cjs/components/Item/Item.js +4 -4
- package/cjs/components/ItemLink/ItemLink.js +4 -4
- package/cjs/components/ItemList/ItemList.js +6 -6
- package/cjs/components/Label/Label.js +3 -3
- package/cjs/components/Layer/Layer.js +2 -2
- package/cjs/components/Layout/Layout.js +2 -2
- package/cjs/components/Link/Link.js +3 -3
- package/cjs/components/List/List.js +4 -7
- package/cjs/components/List/ListAction.js +4 -4
- package/cjs/components/List/ListActions.js +3 -3
- package/cjs/components/List/ListActionsDivider.js +4 -4
- package/cjs/components/List/ListEmptyView.js +4 -4
- package/cjs/components/List/ListOperation.js +4 -4
- package/cjs/components/LocaleProvider/LocaleProvider.js +3 -3
- package/cjs/components/Markdown/Markdown.js +3 -3
- package/cjs/components/Media/Media.js +5 -5
- package/cjs/components/Media/MediaSection.js +3 -3
- package/cjs/components/Menu/Menu.js +9 -9
- package/cjs/components/Menu/MenuBaseItem.js +3 -3
- package/cjs/components/Menu/MenuDivider.js +3 -3
- package/cjs/components/Menu/MenuHeader.js +3 -3
- package/cjs/components/Menu/MenuItem.js +3 -3
- package/cjs/components/Menu/MenuSelectableItem.js +3 -3
- package/cjs/components/Overlay/Overlay.js +2 -2
- package/cjs/components/PageHeader/PageHeader.js +3 -3
- package/cjs/components/Pagination/Pagination.js +3 -3
- package/cjs/components/Panel/Panel.js +64 -101
- package/cjs/components/Paragraph/Paragraph.js +3 -3
- package/cjs/components/Plaintext/Plaintext.js +3 -3
- package/cjs/components/Popover/Popover.js +4 -4
- package/cjs/components/Popper/Popper.js +2 -2
- package/cjs/components/Progress/Progress.js +3 -3
- package/cjs/components/ProgressDialog/ProgressDialog.js +3 -3
- package/cjs/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
- package/cjs/components/ProgressStep/ProgressStep.js +3 -3
- package/cjs/components/Radio/Radio.js +3 -3
- package/cjs/components/Rating/Rating.js +3 -3
- package/cjs/components/Rating/images/rating.svg +6 -6
- package/cjs/components/Section/Section.js +4 -4
- package/cjs/components/Section/SectionItem.js +3 -3
- package/cjs/components/SegmentedControl/SegmentedControl.js +4 -4
- package/cjs/components/Select/MultiValue.js +1 -1
- package/cjs/components/Select/Select.js +3 -3
- package/cjs/components/Select/SelectControl.js +1 -1
- package/cjs/components/Select/SelectOption.js +5 -4
- package/cjs/components/Select/SelectOptionGroup.js +3 -3
- package/cjs/components/Skeleton/Skeleton.js +4 -4
- package/cjs/components/Skeleton/SkeletonTabs.js +3 -3
- package/cjs/components/Skeleton/SkeletonText.js +3 -3
- package/cjs/components/Spinner/Spinner.js +2 -2
- package/cjs/components/SplitButton/SplitButton.js +5 -5
- package/cjs/components/Spot/Spot.js +3 -3
- package/cjs/components/Status/Status.js +3 -3
- package/cjs/components/StatusMessage/StatusMessage.js +4 -4
- package/cjs/components/Subnav/Subnav.js +5 -5
- package/cjs/components/Switch/Switch.js +4 -4
- package/cjs/components/SwitchesPanel/SwitchesPanel.js +3 -3
- package/cjs/components/SwitchesPanelItem/SwitchesPanelItem.js +4 -4
- package/cjs/components/Tabs/SearchBar.js +3 -3
- package/cjs/components/Tabs/Tab.js +7 -7
- package/cjs/components/Tabs/Tabs.js +6 -6
- package/cjs/components/Text/Text.js +3 -3
- package/cjs/components/TextArea/TextArea.js +3 -3
- package/cjs/components/Toaster/Toaster.js +37 -37
- package/cjs/components/Toolbar/Toolbar.js +6 -6
- package/cjs/components/Toolbar/ToolbarExpander.js +5 -5
- package/cjs/components/Toolbar/ToolbarGroup.js +4 -4
- package/cjs/components/Toolbar/ToolbarMenu.js +0 -1
- package/cjs/components/Tooltip/Tooltip.js +4 -4
- package/cjs/components/Tour/Tour.js +5 -5
- package/cjs/components/Translate/Translate.js +3 -3
- package/cjs/index.js +1 -1
- package/dist/images/no-image.svg +6 -6
- package/dist/images/rating.svg +6 -6
- package/dist/images/symbols.svg +1846 -1846
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +11997 -11914
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +18 -18
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Action/Action.js +3 -3
- package/esm/components/Alert/Alert.js +5 -5
- package/esm/components/AutoClosable/AutoClosable.js +3 -3
- package/esm/components/AuxiliaryActions/AuxiliaryActions.js +3 -3
- package/esm/components/Badge/Badge.js +3 -3
- package/esm/components/Breadcrumbs/Breadcrumbs.js +4 -4
- package/esm/components/Button/Button.js +4 -4
- package/esm/components/ButtonGroup/ButtonGroup.js +3 -3
- package/esm/components/Card/Card.js +52 -52
- package/esm/components/Card/CardButton.js +2 -2
- package/esm/components/Card/PreviewPanel.js +3 -3
- package/esm/components/Card/images/no-image.svg +6 -6
- package/esm/components/CardList/CardList.js +55 -55
- package/esm/components/Carousel/Carousel.js +187 -82
- package/esm/components/Checkbox/Checkbox.js +3 -3
- package/esm/components/CodeEditor/CodeEditor.js +3 -3
- package/esm/components/Columns/Column.js +3 -3
- package/esm/components/Columns/Columns.js +3 -3
- package/esm/components/ComboBox/ComboBox.js +4 -4
- package/esm/components/ComboBox/ComboBoxOption.js +5 -4
- package/esm/components/ConsoleOutput/ConsoleOutput.js +3 -3
- package/esm/components/ContentLoader/ContentLoader.js +3 -3
- package/esm/components/Cuttable/Cuttable.js +3 -3
- package/esm/components/Dialog/Dialog.js +3 -3
- package/esm/components/Drawer/Drawer.js +4 -4
- package/esm/components/Dropdown/Dropdown.js +5 -5
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessage.js +4 -4
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageActions.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageDescription.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageSeparator.js +3 -3
- package/esm/components/ExtendedStatusMessage/ExtendedStatusMessageTitle.js +3 -3
- package/esm/components/Figure/Figure.js +3 -3
- package/esm/components/Form/Form.js +4 -4
- package/esm/components/Form/utils.js +22 -22
- package/esm/components/FormField/FormField.js +24 -24
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +4 -4
- package/esm/components/FormFieldPassword/FormFieldPassword.js +3 -3
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +3 -3
- package/esm/components/FormFieldSelect/FormFieldSelect.js +4 -4
- package/esm/components/FormFieldText/FormFieldText.js +5 -5
- package/esm/components/Grid/Grid.js +3 -3
- package/esm/components/GridCol/GridCol.js +3 -3
- package/esm/components/Heading/Heading.js +3 -3
- package/esm/components/Hint/Hint.js +3 -3
- package/esm/components/Icon/Icon.js +6 -6
- package/esm/components/Icon/images/symbols.svg +1846 -1846
- package/esm/components/InPlaceEdit/InPlaceEdit.js +5 -5
- package/esm/components/Input/Input.js +3 -3
- package/esm/components/InputFile/InputFile.js +3 -3
- package/esm/components/InputNumber/InputNumber.js +3 -3
- package/esm/components/Item/Item.js +4 -4
- package/esm/components/ItemLink/ItemLink.js +4 -4
- package/esm/components/ItemList/ItemList.js +6 -6
- package/esm/components/Label/Label.js +3 -3
- package/esm/components/Layer/Layer.js +2 -2
- package/esm/components/Layout/Layout.js +2 -2
- package/esm/components/Link/Link.js +3 -3
- package/esm/components/List/List.js +4 -7
- package/esm/components/List/ListAction.js +4 -4
- package/esm/components/List/ListActions.js +3 -3
- package/esm/components/List/ListActionsDivider.js +4 -4
- package/esm/components/List/ListEmptyView.js +4 -4
- package/esm/components/List/ListOperation.js +4 -4
- package/esm/components/LocaleProvider/LocaleProvider.js +3 -3
- package/esm/components/Markdown/Markdown.js +3 -3
- package/esm/components/Media/Media.js +5 -5
- package/esm/components/Media/MediaSection.js +3 -3
- package/esm/components/Menu/Menu.js +9 -9
- package/esm/components/Menu/MenuBaseItem.js +3 -3
- package/esm/components/Menu/MenuDivider.js +3 -3
- package/esm/components/Menu/MenuHeader.js +3 -3
- package/esm/components/Menu/MenuItem.js +3 -3
- package/esm/components/Menu/MenuSelectableItem.js +3 -3
- package/esm/components/Overlay/Overlay.js +2 -2
- package/esm/components/PageHeader/PageHeader.js +3 -3
- package/esm/components/Pagination/Pagination.js +3 -3
- package/esm/components/Panel/Panel.js +65 -102
- package/esm/components/Paragraph/Paragraph.js +3 -3
- package/esm/components/Plaintext/Plaintext.js +3 -3
- package/esm/components/Popover/Popover.js +4 -4
- package/esm/components/Popper/Popper.js +2 -2
- package/esm/components/Progress/Progress.js +3 -3
- package/esm/components/ProgressDialog/ProgressDialog.js +3 -3
- package/esm/components/ProgressDialogStep/ProgressDialogStep.js +3 -3
- package/esm/components/ProgressStep/ProgressStep.js +3 -3
- package/esm/components/Radio/Radio.js +3 -3
- package/esm/components/Rating/Rating.js +3 -3
- package/esm/components/Rating/images/rating.svg +6 -6
- package/esm/components/Section/Section.js +4 -4
- package/esm/components/Section/SectionItem.js +3 -3
- package/esm/components/SegmentedControl/SegmentedControl.js +4 -4
- package/esm/components/Select/MultiValue.js +1 -1
- package/esm/components/Select/Select.js +3 -3
- package/esm/components/Select/SelectControl.js +1 -1
- package/esm/components/Select/SelectOption.js +5 -4
- package/esm/components/Select/SelectOptionGroup.js +3 -3
- package/esm/components/Skeleton/Skeleton.js +4 -4
- package/esm/components/Skeleton/SkeletonTabs.js +3 -3
- package/esm/components/Skeleton/SkeletonText.js +3 -3
- package/esm/components/Spinner/Spinner.js +2 -2
- package/esm/components/SplitButton/SplitButton.js +5 -5
- package/esm/components/Spot/Spot.js +3 -3
- package/esm/components/Status/Status.js +3 -3
- package/esm/components/StatusMessage/StatusMessage.js +4 -4
- package/esm/components/Subnav/Subnav.js +5 -5
- package/esm/components/Switch/Switch.js +4 -4
- package/esm/components/SwitchesPanel/SwitchesPanel.js +3 -3
- package/esm/components/SwitchesPanelItem/SwitchesPanelItem.js +4 -4
- package/esm/components/Tabs/SearchBar.js +3 -3
- package/esm/components/Tabs/Tab.js +7 -7
- package/esm/components/Tabs/Tabs.js +6 -6
- package/esm/components/Text/Text.js +3 -3
- package/esm/components/TextArea/TextArea.js +3 -3
- package/esm/components/Toaster/Toaster.js +37 -37
- package/esm/components/Toolbar/Toolbar.js +6 -6
- package/esm/components/Toolbar/ToolbarExpander.js +5 -5
- package/esm/components/Toolbar/ToolbarGroup.js +4 -4
- package/esm/components/Toolbar/ToolbarMenu.js +0 -1
- package/esm/components/Tooltip/Tooltip.js +4 -4
- package/esm/components/Tour/Tour.js +5 -5
- package/esm/components/Translate/Translate.js +3 -3
- package/esm/index.js +1 -1
- package/index.js +5 -5
- package/package.json +150 -150
- package/scripts/postinstall.js +9 -9
- package/styleguide/browserconfig.xml +9 -9
- package/styleguide/build/bundle.c3d05006.js +2 -0
- package/styleguide/images/no-image.svg +6 -6
- package/styleguide/images/rating.svg +6 -6
- package/styleguide/images/symbols.svg +1846 -1846
- package/styleguide/index.html +2 -2
- package/styleguide/placeholders/placeholder_400x200.svg +5 -5
- package/styleguide/placeholders/placeholder_400x400.svg +5 -5
- package/styleguide/placeholders/placeholder_600x400.svg +5 -5
- package/styleguide/safari-pinned-tab.svg +28 -28
- package/styleguide/site.webmanifest +19 -19
- package/types/src/components/Carousel/Carousel.d.ts +43 -8
- package/types/src/components/List/List.d.ts +0 -1
- package/types/src/components/Panel/Panel.d.ts +4 -21
- package/types/src/components/Panel/index.d.ts +1 -0
- package/types/src/components/Radio/Radio.d.ts +4 -6
- package/types/src/components/Section/Section.d.ts +1 -1
- package/types/src/components/index.d.ts +1 -0
- package/styleguide/build/bundle.ed34a3c0.js +0 -2
- /package/styleguide/build/{bundle.ed34a3c0.js.LICENSE.txt → bundle.c3d05006.js.LICENSE.txt} +0 -0
|
@@ -17,17 +17,17 @@ const fixObj = (obj, key) => {
|
|
|
17
17
|
return [...obj];
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
/**
|
|
21
|
-
* Deeply get a value from an object via its path.
|
|
22
|
-
*
|
|
23
|
-
* @param {object} obj The object to query.
|
|
24
|
-
* @param {string} name The path of the property to get.
|
|
25
|
-
* @param {*} def The value returned for `undefined` resolved values.
|
|
26
|
-
* @returns {*} Returns the resolved value.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* const name = getIn(state, 'user[name]', 'Anonymous');
|
|
30
|
-
*
|
|
20
|
+
/**
|
|
21
|
+
* Deeply get a value from an object via its path.
|
|
22
|
+
*
|
|
23
|
+
* @param {object} obj The object to query.
|
|
24
|
+
* @param {string} name The path of the property to get.
|
|
25
|
+
* @param {*} def The value returned for `undefined` resolved values.
|
|
26
|
+
* @returns {*} Returns the resolved value.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* const name = getIn(state, 'user[name]', 'Anonymous');
|
|
30
|
+
*
|
|
31
31
|
*/
|
|
32
32
|
const getIn = (obj, name, def) => {
|
|
33
33
|
const path = nameToPath(name);
|
|
@@ -38,17 +38,17 @@ const getIn = (obj, name, def) => {
|
|
|
38
38
|
return val === undefined ? def : val;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* Deeply set a value from in object via it's path.
|
|
43
|
-
* Does not mutate an original object.
|
|
44
|
-
*
|
|
45
|
-
* @param {object} obj The object to query.
|
|
46
|
-
* @param {string} name The path of the property to set.
|
|
47
|
-
* @param {*} val The value to set.
|
|
48
|
-
* @returns {object} Returns a new object.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* const nextState = setIn(state, 'user[name]', 'John');
|
|
41
|
+
/**
|
|
42
|
+
* Deeply set a value from in object via it's path.
|
|
43
|
+
* Does not mutate an original object.
|
|
44
|
+
*
|
|
45
|
+
* @param {object} obj The object to query.
|
|
46
|
+
* @param {string} name The path of the property to set.
|
|
47
|
+
* @param {*} val The value to set.
|
|
48
|
+
* @returns {object} Returns a new object.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* const nextState = setIn(state, 'user[name]', 'John');
|
|
52
52
|
*/
|
|
53
53
|
const setIn = (obj, name, val) => {
|
|
54
54
|
const path = nameToPath(name);
|
|
@@ -45,8 +45,8 @@ const defaultProps = {
|
|
|
45
45
|
scrollableElement: undefined
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
/**
|
|
49
|
-
* Simple helper to handle situations when we're expecting only array
|
|
48
|
+
/**
|
|
49
|
+
* Simple helper to handle situations when we're expecting only array
|
|
50
50
|
*/
|
|
51
51
|
const getArrayHelper = function (value) {
|
|
52
52
|
let nonEmpty = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -60,8 +60,8 @@ const getArrayHelper = function (value) {
|
|
|
60
60
|
return result;
|
|
61
61
|
};
|
|
62
62
|
const isEmpty = value => !value && value !== 0 || Array.isArray(value) && value.length === 0 || !Array.isArray(value) && typeof value === 'object' && Object.values(value).filter(t => Boolean(t)).length === 0;
|
|
63
|
-
/**
|
|
64
|
-
* @since 0.0.54
|
|
63
|
+
/**
|
|
64
|
+
* @since 0.0.54
|
|
65
65
|
*/
|
|
66
66
|
class FormField extends Component {
|
|
67
67
|
constructor(_props) {
|
|
@@ -71,8 +71,8 @@ class FormField extends Component {
|
|
|
71
71
|
_defineProperty(this, "fieldApi", void 0);
|
|
72
72
|
_defineProperty(this, "targetRefs", void 0);
|
|
73
73
|
_defineProperty(this, "focusTimer", null);
|
|
74
|
-
/**
|
|
75
|
-
* Field API provided to field
|
|
74
|
+
/**
|
|
75
|
+
* Field API provided to field
|
|
76
76
|
*/
|
|
77
77
|
_defineProperty(this, "getFieldApi", index => {
|
|
78
78
|
if (!this.props.multi) {
|
|
@@ -144,15 +144,15 @@ class FormField extends Component {
|
|
|
144
144
|
}, 500);
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
|
-
/**
|
|
148
|
-
* Handler for clicks on 'Add more'
|
|
147
|
+
/**
|
|
148
|
+
* Handler for clicks on 'Add more'
|
|
149
149
|
*/
|
|
150
150
|
_defineProperty(this, "handleAddMore", () => {
|
|
151
151
|
const values = getArrayHelper(this.fieldApi.getValue(), true);
|
|
152
152
|
this.fieldApi.setValue([...values, defaultValue]);
|
|
153
153
|
});
|
|
154
|
-
/**
|
|
155
|
-
* Handler for clicks on 'Remove'
|
|
154
|
+
/**
|
|
155
|
+
* Handler for clicks on 'Remove'
|
|
156
156
|
*/
|
|
157
157
|
_defineProperty(this, "handleRemove", index => {
|
|
158
158
|
const values = getArrayHelper(this.fieldApi.getValue());
|
|
@@ -174,8 +174,8 @@ class FormField extends Component {
|
|
|
174
174
|
_defineProperty(this, "setTargetRef", index => node => {
|
|
175
175
|
this.targetRefs[index] = node;
|
|
176
176
|
});
|
|
177
|
-
/**
|
|
178
|
-
* Renders 'Remove' button for each row.
|
|
177
|
+
/**
|
|
178
|
+
* Renders 'Remove' button for each row.
|
|
179
179
|
*/
|
|
180
180
|
_defineProperty(this, "renderRemoveButton", index => {
|
|
181
181
|
const {
|
|
@@ -202,8 +202,8 @@ class FormField extends Component {
|
|
|
202
202
|
ghost: true
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
|
-
/**
|
|
206
|
-
* Renders description for last row.
|
|
205
|
+
/**
|
|
206
|
+
* Renders description for last row.
|
|
207
207
|
*/
|
|
208
208
|
_defineProperty(this, "renderDescription", index => {
|
|
209
209
|
const {
|
|
@@ -220,8 +220,8 @@ class FormField extends Component {
|
|
|
220
220
|
children: description
|
|
221
221
|
});
|
|
222
222
|
});
|
|
223
|
-
/**
|
|
224
|
-
* Renders one field.
|
|
223
|
+
/**
|
|
224
|
+
* Renders one field.
|
|
225
225
|
*/
|
|
226
226
|
_defineProperty(this, "renderField", function () {
|
|
227
227
|
let index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
@@ -440,14 +440,14 @@ class FormField extends Component {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
/**
|
|
444
|
-
* `FormField` component is used for showing of parameter values in Form or
|
|
445
|
-
* for entering of user data with any form elements.
|
|
446
|
-
*
|
|
447
|
-
* For the most cases the following form elements can be used:
|
|
448
|
-
* * [FormFieldText](#!/FormFieldText) for entering text,
|
|
449
|
-
* * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
|
|
450
|
-
* [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
|
|
443
|
+
/**
|
|
444
|
+
* `FormField` component is used for showing of parameter values in Form or
|
|
445
|
+
* for entering of user data with any form elements.
|
|
446
|
+
*
|
|
447
|
+
* For the most cases the following form elements can be used:
|
|
448
|
+
* * [FormFieldText](#!/FormFieldText) for entering text,
|
|
449
|
+
* * [FormFieldSelect](#!/FormFieldSelect), [FormFieldCheckbox](#!/FormFieldCheckbox),
|
|
450
|
+
* [FormFieldRadioButtons](#!/FormFieldRadioButtons) for selecting options.
|
|
451
451
|
*/
|
|
452
452
|
_defineProperty(FormField, "defaultProps", defaultProps);
|
|
453
453
|
const FormFieldWrapper = props => {
|
|
@@ -8,10 +8,10 @@ import FormField from '../FormField';
|
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
/**
|
|
12
|
-
* `FormFieldCheckbox` component is used for turning an option on or off
|
|
13
|
-
* and selecting or deselecting an item.
|
|
14
|
-
* @since 0.0.58
|
|
11
|
+
/**
|
|
12
|
+
* `FormFieldCheckbox` component is used for turning an option on or off
|
|
13
|
+
* and selecting or deselecting an item.
|
|
14
|
+
* @since 0.0.58
|
|
15
15
|
*/
|
|
16
16
|
const FormFieldCheckbox = _ref => {
|
|
17
17
|
let {
|
|
@@ -13,9 +13,9 @@ import generatePassword from './generatePassword';
|
|
|
13
13
|
import locale from './locale/en-US';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
/**
|
|
17
|
-
* `FormFieldPassword` component provides secure way to enter a password.
|
|
18
|
-
* @since 0.0.58
|
|
16
|
+
/**
|
|
17
|
+
* `FormFieldPassword` component provides secure way to enter a password.
|
|
18
|
+
* @since 0.0.58
|
|
19
19
|
*/
|
|
20
20
|
class FormFieldPassword extends Component {
|
|
21
21
|
constructor() {
|
|
@@ -8,9 +8,9 @@ import Hint from '../Hint';
|
|
|
8
8
|
import Radio from '../Radio';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
/**
|
|
12
|
-
* `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
|
|
13
|
-
* @since 0.2.0
|
|
11
|
+
/**
|
|
12
|
+
* `FormFieldRadioButtons` is used for making a choice among a set of mutually exclusive, related options. Only one option can be chosen.
|
|
13
|
+
* @since 0.2.0
|
|
14
14
|
*/
|
|
15
15
|
const FormFieldRadioButtons = _ref => {
|
|
16
16
|
let {
|
|
@@ -5,10 +5,10 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
5
5
|
import FormField from '../FormField';
|
|
6
6
|
import Select from '../Select';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
/**
|
|
9
|
-
* `FormFieldSelect` componentis is used for making a choice among a set of related options.
|
|
10
|
-
* See description of `Select` for [the full list of properties](#!/Select) of this component.
|
|
11
|
-
* @since 1.12.3
|
|
8
|
+
/**
|
|
9
|
+
* `FormFieldSelect` componentis is used for making a choice among a set of related options.
|
|
10
|
+
* See description of `Select` for [the full list of properties](#!/Select) of this component.
|
|
11
|
+
* @since 1.12.3
|
|
12
12
|
*/
|
|
13
13
|
const FormFieldSelect = _ref => {
|
|
14
14
|
let {
|
|
@@ -5,11 +5,11 @@ import FormField from '../FormField';
|
|
|
5
5
|
import Input from '../Input';
|
|
6
6
|
import TextArea from '../TextArea';
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
/**
|
|
9
|
-
* `FormFieldText` component is used for entering of user data in text format.
|
|
10
|
-
*
|
|
11
|
-
* [FormField](#!/FormField) with [InputNumber](#!/InputNumber) can be used for entering of integer numbers.
|
|
12
|
-
* @since 0.0.58
|
|
8
|
+
/**
|
|
9
|
+
* `FormFieldText` component is used for entering of user data in text format.
|
|
10
|
+
*
|
|
11
|
+
* [FormField](#!/FormField) with [InputNumber](#!/InputNumber) can be used for entering of integer numbers.
|
|
12
|
+
* @since 0.0.58
|
|
13
13
|
*/
|
|
14
14
|
const FormFieldText = props => {
|
|
15
15
|
const {
|
|
@@ -6,9 +6,9 @@ import classNames from 'classnames';
|
|
|
6
6
|
import Measure from 'react-measure';
|
|
7
7
|
import { CLS_PREFIX } from '../../constants';
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
/**
|
|
10
|
-
* `Grid` component is used to layout and align content based on 12-column system.
|
|
11
|
-
* @since 0.0.48
|
|
9
|
+
/**
|
|
10
|
+
* `Grid` component is used to layout and align content based on 12-column system.
|
|
11
|
+
* @since 0.0.48
|
|
12
12
|
*/
|
|
13
13
|
class Grid extends Component {
|
|
14
14
|
constructor() {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
/**
|
|
7
|
-
* `GridCol` component is a part of [Grid](#!/Grid) component.
|
|
8
|
-
* @since 0.0.48
|
|
6
|
+
/**
|
|
7
|
+
* `GridCol` component is a part of [Grid](#!/Grid) component.
|
|
8
|
+
* @since 0.0.48
|
|
9
9
|
*/
|
|
10
10
|
const GridCol = _ref => {
|
|
11
11
|
let {
|
|
@@ -5,9 +5,9 @@ import { CLS_PREFIX } from '../../constants';
|
|
|
5
5
|
import Icon, { ICON_SIZE_12, ICON_SIZE_16, ICON_SIZE_24, ICON_SIZE_32 } from '../Icon';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
/**
|
|
9
|
-
* `Heading` is used as a text title (or a subtitle) to define the hierarchy and the structure of the content.
|
|
10
|
-
* @since 2.3.0
|
|
8
|
+
/**
|
|
9
|
+
* `Heading` is used as a text title (or a subtitle) to define the hierarchy and the structure of the content.
|
|
10
|
+
* @since 2.3.0
|
|
11
11
|
*/
|
|
12
12
|
const Heading = _ref => {
|
|
13
13
|
let {
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import { CLS_PREFIX } from '../../constants';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
/**
|
|
7
|
-
* `Hint` component is used for auxiliary text like advice, suggestion or other useful practical information.
|
|
8
|
-
* @since 0.0.35
|
|
6
|
+
/**
|
|
7
|
+
* `Hint` component is used for auxiliary text like advice, suggestion or other useful practical information.
|
|
8
|
+
* @since 0.0.35
|
|
9
9
|
*/
|
|
10
10
|
const Hint = _ref => {
|
|
11
11
|
let {
|
|
@@ -33,12 +33,12 @@ const getHref = (name, size) => {
|
|
|
33
33
|
}
|
|
34
34
|
return `${symbols}#${name}:${iconSize}`;
|
|
35
35
|
};
|
|
36
|
-
/**
|
|
37
|
-
* `Icons` are small symbolic images used for two things: to help quickly find the right control on the screen and to
|
|
38
|
-
* bring user attention to something that requires consideration. In the former case, `Icon` typically acts as a part
|
|
39
|
-
* of a [Button](#!/Button) and helps differentiate this particular [Button](#!/Button) from others. `Icons` come in several
|
|
40
|
-
* standard sizes.
|
|
41
|
-
* @since 0.0.35
|
|
36
|
+
/**
|
|
37
|
+
* `Icons` are small symbolic images used for two things: to help quickly find the right control on the screen and to
|
|
38
|
+
* bring user attention to something that requires consideration. In the former case, `Icon` typically acts as a part
|
|
39
|
+
* of a [Button](#!/Button) and helps differentiate this particular [Button](#!/Button) from others. `Icons` come in several
|
|
40
|
+
* standard sizes.
|
|
41
|
+
* @since 0.0.35
|
|
42
42
|
*/
|
|
43
43
|
|
|
44
44
|
const Icon = _ref => {
|