@commercetools-frontend/application-components 22.29.0 → 22.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91,7 +91,7 @@ var Stamp__default = /*#__PURE__*/_interopDefault(Stamp);
91
91
  var useResizeObserver__default = /*#__PURE__*/_interopDefault(useResizeObserver);
92
92
 
93
93
  // NOTE: This string will be replaced on build time with the package version.
94
- var version = "22.29.0";
94
+ var version = "22.30.1";
95
95
 
96
96
  var _context, _context2, _context3, _context4, _context5;
97
97
 
@@ -1383,10 +1383,12 @@ const FormPrimaryButton = props => {
1383
1383
  return jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$3({
1384
1384
  label: label,
1385
1385
  onClick: props.onClick,
1386
- isDisabled: props.isDisabled
1386
+ isDisabled: props.isDisabled,
1387
+ iconLeft: props.iconLeft
1387
1388
  }, filterDataAttributes(props.dataAttributes)));
1388
1389
  };
1389
1390
  FormPrimaryButton.propTypes = process.env.NODE_ENV !== "production" ? {
1391
+ iconLeft: _pt__default["default"].element,
1390
1392
  label: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].shape({
1391
1393
  id: _pt__default["default"].string.isRequired,
1392
1394
  description: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].object]),
@@ -90,7 +90,7 @@ var Stamp__default = /*#__PURE__*/_interopDefault(Stamp);
90
90
  var useResizeObserver__default = /*#__PURE__*/_interopDefault(useResizeObserver);
91
91
 
92
92
  // NOTE: This string will be replaced on build time with the package version.
93
- var version = "22.29.0";
93
+ var version = "22.30.1";
94
94
 
95
95
  var _context, _context2, _context3, _context4, _context5;
96
96
 
@@ -1089,7 +1089,8 @@ const FormPrimaryButton = props => {
1089
1089
  return jsxRuntime.jsx(PrimaryButton__default["default"], _objectSpread$3({
1090
1090
  label: label,
1091
1091
  onClick: props.onClick,
1092
- isDisabled: props.isDisabled
1092
+ isDisabled: props.isDisabled,
1093
+ iconLeft: props.iconLeft
1093
1094
  }, filterDataAttributes(props.dataAttributes)));
1094
1095
  };
1095
1096
  FormPrimaryButton.propTypes = {};
@@ -51,7 +51,7 @@ import useResizeObserver from '@react-hook/resize-observer';
51
51
  import { useMutationObserver } from '@commercetools-uikit/hooks';
52
52
 
53
53
  // NOTE: This string will be replaced on build time with the package version.
54
- var version = "22.29.0";
54
+ var version = "22.30.1";
55
55
 
56
56
  var _context, _context2, _context3, _context4, _context5;
57
57
 
@@ -1343,10 +1343,12 @@ const FormPrimaryButton = props => {
1343
1343
  return jsx(PrimaryButton, _objectSpread$3({
1344
1344
  label: label,
1345
1345
  onClick: props.onClick,
1346
- isDisabled: props.isDisabled
1346
+ isDisabled: props.isDisabled,
1347
+ iconLeft: props.iconLeft
1347
1348
  }, filterDataAttributes(props.dataAttributes)));
1348
1349
  };
1349
1350
  FormPrimaryButton.propTypes = process.env.NODE_ENV !== "production" ? {
1351
+ iconLeft: _pt.element,
1350
1352
  label: _pt.oneOfType([_pt.string, _pt.shape({
1351
1353
  id: _pt.string.isRequired,
1352
1354
  description: _pt.oneOfType([_pt.string, _pt.object]),
@@ -39,6 +39,8 @@ declare const CustomFormDetailPage: {
39
39
  };
40
40
  FormPrimaryButton: {
41
41
  (props: {
42
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
43
+ } & {
42
44
  label: string | {
43
45
  id: string;
44
46
  description?: string | object | undefined;
@@ -24,6 +24,8 @@ declare const TabularDetailPage: {
24
24
  defaultProps: Pick<TTabularDetailPageProps, "hideControls">;
25
25
  FormPrimaryButton: {
26
26
  (props: {
27
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
28
+ } & {
27
29
  label: string | {
28
30
  id: string;
29
31
  description?: string | object | undefined;
@@ -41,6 +41,8 @@ declare namespace Drawer {
41
41
  var defaultProps: Pick<TDrawerProps, "size" | "onSecondaryButtonClick" | "onPrimaryButtonClick" | "hideControls">;
42
42
  var FormPrimaryButton: {
43
43
  (props: {
44
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
45
+ } & {
44
46
  label: string | {
45
47
  id: string;
46
48
  description?: string | object | undefined;
@@ -14,8 +14,11 @@ type Props = {
14
14
  };
15
15
  children?: never;
16
16
  };
17
+ type PrimaryButtonProps = {
18
+ iconLeft?: ReactElement;
19
+ } & Props;
17
20
  declare const FormPrimaryButton: {
18
- (props: Props): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
21
+ (props: PrimaryButtonProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
19
22
  displayName: string;
20
23
  defaultProps: Pick<Props, "label" | "isDisabled" | "dataAttributes">;
21
24
  };
@@ -32,6 +32,8 @@ declare const CustomFormMainPage: {
32
32
  };
33
33
  FormPrimaryButton: {
34
34
  (props: {
35
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
36
+ } & {
35
37
  label: string | {
36
38
  id: string;
37
39
  description?: string | object | undefined;
@@ -16,6 +16,8 @@ declare const TabularMainPage: {
16
16
  defaultProps: Pick<TTabularMainPageProps, "hideControls">;
17
17
  FormPrimaryButton: {
18
18
  (props: {
19
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
20
+ } & {
19
21
  label: string | {
20
22
  id: string;
21
23
  description?: string | object | undefined;
@@ -29,6 +29,8 @@ declare const CustomFormModalPage: {
29
29
  displayName: string;
30
30
  FormPrimaryButton: {
31
31
  (props: {
32
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
33
+ } & {
32
34
  label: string | {
33
35
  id: string;
34
36
  description?: string | object | undefined;
@@ -33,6 +33,8 @@ declare const TabularModalPage: {
33
33
  defaultProps: Pick<Props, "hideControls">;
34
34
  FormPrimaryButton: {
35
35
  (props: {
36
+ iconLeft?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
37
+ } & {
36
38
  label: string | {
37
39
  id: string;
38
40
  description?: string | object | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-components",
3
- "version": "22.29.0",
3
+ "version": "22.30.1",
4
4
  "description": "Generic components for building Merchant Center applications",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -36,14 +36,14 @@
36
36
  "dependencies": {
37
37
  "@babel/runtime": "^7.22.15",
38
38
  "@babel/runtime-corejs3": "^7.22.15",
39
- "@commercetools-frontend/actions-global": "22.29.0",
40
- "@commercetools-frontend/application-config": "22.29.0",
41
- "@commercetools-frontend/application-shell-connectors": "22.29.0",
42
- "@commercetools-frontend/assets": "22.29.0",
43
- "@commercetools-frontend/constants": "22.29.0",
44
- "@commercetools-frontend/i18n": "22.29.0",
45
- "@commercetools-frontend/l10n": "22.29.0",
46
- "@commercetools-frontend/sentry": "22.29.0",
39
+ "@commercetools-frontend/actions-global": "22.30.1",
40
+ "@commercetools-frontend/application-config": "22.30.1",
41
+ "@commercetools-frontend/application-shell-connectors": "22.30.1",
42
+ "@commercetools-frontend/assets": "22.30.1",
43
+ "@commercetools-frontend/constants": "22.30.1",
44
+ "@commercetools-frontend/i18n": "22.30.1",
45
+ "@commercetools-frontend/l10n": "22.30.1",
46
+ "@commercetools-frontend/sentry": "22.30.1",
47
47
  "@commercetools-uikit/accessible-button": "^19.2.0",
48
48
  "@commercetools-uikit/card": "^19.2.0",
49
49
  "@commercetools-uikit/constraints": "^19.2.0",