@webiny/app-admin 5.41.0-dbt.0 → 5.41.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.
@@ -20,4 +20,4 @@ export { ButtonContainer };
20
20
  export declare const ButtonDefault: ({ onAction, ...other }: ButtonProps) => React.JSX.Element;
21
21
  export declare const ButtonPrimary: ({ onAction, ...other }: ButtonProps) => React.JSX.Element;
22
22
  export declare const ButtonSecondary: ({ onAction, ...other }: ButtonProps) => React.JSX.Element;
23
- export declare const IconButton: ({ label, onAction, tooltipPlacement, ...other }: IconButtonProps) => React.JSX.Element;
23
+ export declare const IconButton: ({ label, onAction, tooltipPlacement, disabled, ...other }: IconButtonProps) => React.JSX.Element;
@@ -20,7 +20,7 @@ var _Buttons = require("./Buttons.styles");
20
20
  var _excluded = ["onAction"],
21
21
  _excluded2 = ["onAction"],
22
22
  _excluded3 = ["onAction"],
23
- _excluded4 = ["label", "onAction", "tooltipPlacement"];
23
+ _excluded4 = ["label", "onAction", "tooltipPlacement", "disabled"];
24
24
  var Buttons = exports.Buttons = function Buttons(props) {
25
25
  if (!props.actions.length) {
26
26
  return null;
@@ -56,8 +56,9 @@ var IconButton = exports.IconButton = function IconButton(_ref4) {
56
56
  var label = _ref4.label,
57
57
  onAction = _ref4.onAction,
58
58
  tooltipPlacement = _ref4.tooltipPlacement,
59
+ disabled = _ref4.disabled,
59
60
  other = (0, _objectWithoutProperties2.default)(_ref4, _excluded4);
60
- if (label) {
61
+ if (label && !disabled) {
61
62
  return /*#__PURE__*/_react.default.createElement(_Tooltip.Tooltip, {
62
63
  content: label,
63
64
  placement: tooltipPlacement
@@ -66,7 +67,8 @@ var IconButton = exports.IconButton = function IconButton(_ref4) {
66
67
  })));
67
68
  }
68
69
  return /*#__PURE__*/_react.default.createElement(_Button.IconButton, Object.assign({}, other, {
69
- onClick: onAction
70
+ onClick: onAction,
71
+ disabled: disabled
70
72
  }));
71
73
  };
72
74
 
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_Button","_Tooltip","_useButtons","_Buttons","_excluded","_excluded2","_excluded3","_excluded4","Buttons","exports","props","actions","length","default","createElement","Fragment","map","action","ButtonContainer","key","name","ButtonsProvider","element","ButtonDefault","_ref","onAction","other","_objectWithoutProperties2","Object","assign","onClick","ButtonPrimary","_ref2","ButtonSecondary","_ref3","IconButton","_ref4","label","tooltipPlacement","Tooltip","content","placement"],"sources":["Buttons.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n ButtonDefault as BaseButtonDefault,\n ButtonPrimary as BaseButtonPrimary,\n ButtonSecondary as BaseButtonSecondary,\n IconButton as BaseIconButton,\n ButtonProps as BaseButtonProps,\n IconButtonProps as BaseIconButtonProps\n} from \"@webiny/ui/Button\";\nimport { Tooltip, TooltipProps } from \"@webiny/ui/Tooltip\";\n\nimport { ButtonsProvider } from \"./useButtons\";\nimport { ButtonContainer } from \"./Buttons.styles\";\n\ninterface ButtonProps extends Omit<BaseButtonProps, \"onClick\"> {\n onAction: (ev?: any) => void;\n}\n\ninterface IconButtonProps extends Omit<BaseIconButtonProps, \"onClick\"> {\n onAction: (ev?: any) => void;\n tooltipPlacement?: TooltipProps[\"placement\"];\n}\n\nexport interface ButtonsProps {\n actions: {\n name: string;\n element: React.ReactElement;\n }[];\n}\n\nexport const Buttons = (props: ButtonsProps) => {\n if (!props.actions.length) {\n return null;\n }\n\n return (\n <>\n {props.actions.map(action => (\n <ButtonContainer key={action.name}>\n <ButtonsProvider>{action.element}</ButtonsProvider>\n </ButtonContainer>\n ))}\n </>\n );\n};\n\nexport { ButtonContainer };\n\nexport const ButtonDefault = ({ onAction, ...other }: ButtonProps) => {\n return <BaseButtonDefault {...other} onClick={onAction} />;\n};\n\nexport const ButtonPrimary = ({ onAction, ...other }: ButtonProps) => {\n return <BaseButtonPrimary {...other} onClick={onAction} />;\n};\n\nexport const ButtonSecondary = ({ onAction, ...other }: ButtonProps) => {\n return <BaseButtonSecondary {...other} onClick={onAction} />;\n};\n\nexport const IconButton = ({ label, onAction, tooltipPlacement, ...other }: IconButtonProps) => {\n if (label) {\n return (\n <Tooltip content={label} placement={tooltipPlacement}>\n <BaseIconButton {...other} onClick={onAction} />\n </Tooltip>\n );\n }\n\n return <BaseIconButton {...other} onClick={onAction} />;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAQA,IAAAE,QAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAmD,IAAAK,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAkB5C,IAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,SAAVA,OAAOA,CAAIE,KAAmB,EAAK;EAC5C,IAAI,CAACA,KAAK,CAACC,OAAO,CAACC,MAAM,EAAE;IACvB,OAAO,IAAI;EACf;EAEA,oBACIf,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAAAjB,MAAA,CAAAgB,OAAA,CAAAE,QAAA,QACKL,KAAK,CAACC,OAAO,CAACK,GAAG,CAAC,UAAAC,MAAM;IAAA,oBACrBpB,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACX,QAAA,CAAAe,eAAe;MAACC,GAAG,EAAEF,MAAM,CAACG;IAAK,gBAC9BvB,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACZ,WAAA,CAAAmB,eAAe,QAAEJ,MAAM,CAACK,OAAyB,CACrC,CAAC;EAAA,CACrB,CACH,CAAC;AAEX,CAAC;AAIM,IAAMC,aAAa,GAAAd,OAAA,CAAAc,aAAA,GAAG,SAAhBA,aAAaA,CAAAC,IAAA,EAA4C;EAAA,IAAtCC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAKC,KAAK,OAAAC,yBAAA,CAAAd,OAAA,EAAAW,IAAA,EAAApB,SAAA;EAC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AE;IACP,oBACIxC,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACb,QAAA,CAAAsC,OAAO;MAACC,OAAO,EAAEH,KAAM;MAACI,SAAS,EAAEH;IAAiB,gBACjDzC,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACd,OAAA,CAAAmC,UAAc,EAAAP,MAAA,CAAAC,MAAA,KAAKH,KAAK;MAAEI,OAAO,EAAEL;IAAS,EAAE,CAC1C,CAAC;EAElB;EAEA,oBAAO5B,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACd,OAAA,CAAAmC,UAAc,EAAAP,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEI,OAAO,EAAEL;EAAS,EAAE,CAAC;AAC3D,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_Button","_Tooltip","_useButtons","_Buttons","_excluded","_excluded2","_excluded3","_excluded4","Buttons","exports","props","actions","length","default","createElement","Fragment","map","action","ButtonContainer","key","name","ButtonsProvider","element","ButtonDefault","_ref","onAction","other","_objectWithoutProperties2","Object","assign","onClick","ButtonPrimary","_ref2","ButtonSecondary","_ref3","IconButton","_ref4","label","tooltipPlacement","disabled","Tooltip","content","placement"],"sources":["Buttons.tsx"],"sourcesContent":["import React from \"react\";\nimport {\n ButtonDefault as BaseButtonDefault,\n ButtonPrimary as BaseButtonPrimary,\n ButtonSecondary as BaseButtonSecondary,\n IconButton as BaseIconButton,\n ButtonProps as BaseButtonProps,\n IconButtonProps as BaseIconButtonProps\n} from \"@webiny/ui/Button\";\nimport { Tooltip, TooltipProps } from \"@webiny/ui/Tooltip\";\n\nimport { ButtonsProvider } from \"./useButtons\";\nimport { ButtonContainer } from \"./Buttons.styles\";\n\ninterface ButtonProps extends Omit<BaseButtonProps, \"onClick\"> {\n onAction: (ev?: any) => void;\n}\n\ninterface IconButtonProps extends Omit<BaseIconButtonProps, \"onClick\"> {\n onAction: (ev?: any) => void;\n tooltipPlacement?: TooltipProps[\"placement\"];\n}\n\nexport interface ButtonsProps {\n actions: {\n name: string;\n element: React.ReactElement;\n }[];\n}\n\nexport const Buttons = (props: ButtonsProps) => {\n if (!props.actions.length) {\n return null;\n }\n\n return (\n <>\n {props.actions.map(action => (\n <ButtonContainer key={action.name}>\n <ButtonsProvider>{action.element}</ButtonsProvider>\n </ButtonContainer>\n ))}\n </>\n );\n};\n\nexport { ButtonContainer };\n\nexport const ButtonDefault = ({ onAction, ...other }: ButtonProps) => {\n return <BaseButtonDefault {...other} onClick={onAction} />;\n};\n\nexport const ButtonPrimary = ({ onAction, ...other }: ButtonProps) => {\n return <BaseButtonPrimary {...other} onClick={onAction} />;\n};\n\nexport const ButtonSecondary = ({ onAction, ...other }: ButtonProps) => {\n return <BaseButtonSecondary {...other} onClick={onAction} />;\n};\n\nexport const IconButton = ({\n label,\n onAction,\n tooltipPlacement,\n disabled,\n ...other\n}: IconButtonProps) => {\n if (label && !disabled) {\n return (\n <Tooltip content={label} placement={tooltipPlacement}>\n <BaseIconButton {...other} onClick={onAction} />\n </Tooltip>\n );\n }\n\n return <BaseIconButton {...other} onClick={onAction} disabled={disabled} />;\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAQA,IAAAE,QAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAAmD,IAAAK,SAAA;EAAAC,UAAA;EAAAC,UAAA;EAAAC,UAAA;AAkB5C,IAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG,SAAVA,OAAOA,CAAIE,KAAmB,EAAK;EAC5C,IAAI,CAACA,KAAK,CAACC,OAAO,CAACC,MAAM,EAAE;IACvB,OAAO,IAAI;EACf;EAEA,oBACIf,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAAAjB,MAAA,CAAAgB,OAAA,CAAAE,QAAA,QACKL,KAAK,C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AqB,KAAA,EAAA5B,UAAA;EAChD,oBAAOT,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACd,OAAA,CAAAiC,eAAmB,EAAAL,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEI,OAAO,EAAEL;EAAS,EAAE,CAAC;AAChE,CAAC;AAEM,IAAMU,UAAU,GAAA1B,OAAA,CAAA0B,UAAA,GAAG,SAAbA,UAAUA,CAAAC,KAAA,EAMA;EAAA,IALnBC,KAAK,GAAAD,KAAA,CAALC,KAAK;IACLZ,QAAQ,GAAAW,KAAA,CAARX,QAAQ;IACRa,gBAAgB,GAAAF,KAAA,CAAhBE,gBAAgB;IAChBC,QAAQ,GAAAH,KAAA,CAARG,QAAQ;IACLb,KAAK,OAAAC,yBAAA,CAAAd,OAAA,EAAAuB,KAAA,EAAA7B,UAAA;EAER,IAAI8B,KAAK,IAAI,CAACE,QAAQ,EAAE;IACpB,oBACI1C,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACb,QAAA,CAAAuC,OAAO;MAACC,OAAO,EAAEJ,KAAM;MAACK,SAAS,EAAEJ;IAAiB,gBACjDzC,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACd,OAAA,CAAAmC,UAAc,EAAAP,MAAA,CAAAC,MAAA,KAAKH,KAAK;MAAEI,OAAO,EAAEL;IAAS,EAAE,CAC1C,CAAC;EAElB;EAEA,oBAAO5B,MAAA,CAAAgB,OAAA,CAAAC,aAAA,CAACd,OAAA,CAAAmC,UAAc,EAAAP,MAAA,CAAAC,MAAA,KAAKH,KAAK;IAAEI,OAAO,EAAEL,QAAS;IAACc,QAAQ,EAAEA;EAAS,EAAE,CAAC;AAC/E,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-admin",
3
- "version": "5.41.0-dbt.0",
3
+ "version": "5.41.0",
4
4
  "main": "index.js",
5
5
  "description": "A collection of plugins that together form a complete admin interface, customizable and extensible with Webiny apps and plugins.",
6
6
  "repository": {
@@ -20,20 +20,20 @@
20
20
  "@svgr/webpack": "6.5.1",
21
21
  "@types/mime": "2.0.3",
22
22
  "@types/react": "18.2.79",
23
- "@webiny/app": "5.41.0-dbt.0",
24
- "@webiny/app-security": "5.41.0-dbt.0",
25
- "@webiny/app-theme": "5.41.0-dbt.0",
26
- "@webiny/app-wcp": "5.41.0-dbt.0",
27
- "@webiny/form": "5.41.0-dbt.0",
28
- "@webiny/lexical-editor": "5.41.0-dbt.0",
29
- "@webiny/plugins": "5.41.0-dbt.0",
30
- "@webiny/react-composition": "5.41.0-dbt.0",
31
- "@webiny/react-router": "5.41.0-dbt.0",
32
- "@webiny/telemetry": "5.41.0-dbt.0",
33
- "@webiny/ui": "5.41.0-dbt.0",
34
- "@webiny/ui-composer": "5.41.0-dbt.0",
35
- "@webiny/utils": "5.41.0-dbt.0",
36
- "@webiny/validation": "5.41.0-dbt.0",
23
+ "@webiny/app": "5.41.0",
24
+ "@webiny/app-security": "5.41.0",
25
+ "@webiny/app-theme": "5.41.0",
26
+ "@webiny/app-wcp": "5.41.0",
27
+ "@webiny/form": "5.41.0",
28
+ "@webiny/lexical-editor": "5.41.0",
29
+ "@webiny/plugins": "5.41.0",
30
+ "@webiny/react-composition": "5.41.0",
31
+ "@webiny/react-router": "5.41.0",
32
+ "@webiny/telemetry": "5.41.0",
33
+ "@webiny/ui": "5.41.0",
34
+ "@webiny/ui-composer": "5.41.0",
35
+ "@webiny/utils": "5.41.0",
36
+ "@webiny/validation": "5.41.0",
37
37
  "apollo-cache": "1.3.5",
38
38
  "apollo-client": "2.6.10",
39
39
  "apollo-link": "1.2.14",
@@ -68,8 +68,8 @@
68
68
  "@types/graphlib": "2.1.8",
69
69
  "@types/is-hotkey": "0.1.7",
70
70
  "@types/store": "2.0.2",
71
- "@webiny/cli": "5.41.0-dbt.0",
72
- "@webiny/project-utils": "5.41.0-dbt.0",
71
+ "@webiny/cli": "5.41.0",
72
+ "@webiny/project-utils": "5.41.0",
73
73
  "rimraf": "5.0.5",
74
74
  "ttypescript": "1.5.15",
75
75
  "typescript": "4.9.5"
@@ -95,5 +95,5 @@
95
95
  ]
96
96
  }
97
97
  },
98
- "gitHead": "bbaec4dd1685579548c08bbde386aee5d96b80f8"
98
+ "gitHead": "a542f4d0806744c5e2333b3786478c4af3b6b750"
99
99
  }