@mailstep/design-system 0.6.9 → 0.6.11

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 (33) hide show
  1. package/package.json +1 -1
  2. package/ui/Blocks/CommonGrid/CommonGridContainer.js +1 -1
  3. package/ui/Blocks/CommonGrid/components/ActionHead/ActionHead.js +1 -1
  4. package/ui/Blocks/CommonGrid/components/ButtonMore/ButtonMore.js +1 -1
  5. package/ui/Blocks/CommonGrid/components/ControlButtons/ControlButtons.js +1 -1
  6. package/ui/Blocks/CommonGrid/components/DataRow.js +1 -1
  7. package/ui/Blocks/CommonGrid/components/ExtraControlButtons/ExtraControlButtons.js +3 -3
  8. package/ui/Blocks/CommonGrid/components/NumberRange/NumberRange.js +6 -7
  9. package/ui/Blocks/CommonGrid/components/TextRange/TextRange.js +5 -4
  10. package/ui/Blocks/CommonGrid/components/gridCells/ButtonInCell.js +1 -1
  11. package/ui/Blocks/CommonGrid/hooks/useEvent.d.ts +3 -0
  12. package/ui/Blocks/CommonGrid/hooks/useEvent.js +17 -0
  13. package/ui/Blocks/CommonGrid/index.d.ts +2 -2
  14. package/ui/Blocks/CommonGrid/index.js +2 -2
  15. package/ui/Blocks/CommonGrid/styles.d.ts +1 -1
  16. package/ui/Blocks/CommonGrid/types.d.ts +3 -1
  17. package/ui/Blocks/LightBox/LightBox.js +1 -1
  18. package/ui/Blocks/Modal/Modal.js +1 -1
  19. package/ui/Elements/Button/Button.d.ts +1 -1
  20. package/ui/Elements/Button/Button.js +2 -2
  21. package/ui/Elements/Button/stories/Button.stories.d.ts +12 -10
  22. package/ui/Elements/Button/stories/Button.stories.js +61 -27
  23. package/ui/Elements/Button/styles.d.ts +5 -8
  24. package/ui/Elements/Button/styles.js +15 -31
  25. package/ui/Elements/Button/types.d.ts +8 -11
  26. package/ui/Elements/DropdownSelect/DropdownSelect.d.ts +3 -2
  27. package/ui/Elements/DropdownSelect/DropdownSelect.js +2 -2
  28. package/ui/Elements/Select/themes/selectStyles.js +1 -1
  29. package/ui/ThemeProvider/themes/default.js +1 -1
  30. package/ui/index.es.js +10297 -10351
  31. package/ui/index.umd.js +390 -421
  32. package/ui/Blocks/CommonGrid/StandardButtons.d.ts +0 -4
  33. package/ui/Blocks/CommonGrid/StandardButtons.js +0 -36
@@ -1,4 +0,0 @@
1
- import { ExtraControlButton } from './types';
2
- export declare const getCreateButton: (onCreate: () => void, canCreate: boolean, disabled?: boolean) => ExtraControlButton;
3
- export declare const getImportButton: (onImport: () => void, canImport: boolean, disabled?: boolean) => ExtraControlButton;
4
- export declare const getMoreButton: (onExport: () => void, onImport?: () => void, canImport?: boolean) => ExtraControlButton;
@@ -1,36 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Trans } from '@lingui/react';
3
- import ButtonMore from './components/ButtonMore/ButtonMore';
4
- export var getCreateButton = function (onCreate, canCreate, disabled) { return ({
5
- label: _jsx(Trans, { id: "dataGrid.actionOptions.createNew", message: "Create new" }),
6
- style: 'primary',
7
- onClick: onCreate,
8
- hide: !canCreate,
9
- disabled: disabled,
10
- }); };
11
- export var getImportButton = function (onImport, canImport, disabled) { return ({
12
- label: _jsx(Trans, { id: "form.buttonImport", message: "Import" }),
13
- onClick: onImport,
14
- hide: !canImport,
15
- disabled: disabled,
16
- }); };
17
- export var getMoreButton = function (onExport, onImport, canImport) {
18
- var items = [];
19
- if (onImport && canImport) {
20
- items.push({
21
- title: _jsx(Trans, { id: "form.buttonImport", message: "Import" }),
22
- onClick: onImport,
23
- link: '#',
24
- name: 'moreActionImportBtn',
25
- });
26
- }
27
- items.push({
28
- title: _jsx(Trans, { id: "dataGrid.actionOptions.export", message: "Export" }),
29
- onClick: onExport,
30
- link: '#',
31
- name: 'moreActionExportBtn',
32
- });
33
- return {
34
- node: _jsx(ButtonMore, { items: items }),
35
- };
36
- };