@hh.ru/magritte-ui-action 4.4.22 → 4.4.24

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/index.js CHANGED
@@ -7,7 +7,7 @@ import 'react';
7
7
  import 'classnames';
8
8
  import '@hh.ru/magritte-common-focus-visible';
9
9
  import '@hh.ru/magritte-common-use-disabled';
10
- import './Skeleton-O_YZEck_.js';
10
+ import './Skeleton-O6Mk7iTj.js';
11
11
  import '@hh.ru/magritte-common-use-loading-state';
12
12
  import '@hh.ru/magritte-ui-skeleton';
13
13
  import '@hh.ru/magritte-ui-badge';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hh.ru/magritte-ui-action",
3
- "version": "4.4.22",
3
+ "version": "4.4.24",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -23,13 +23,13 @@
23
23
  "@hh.ru/magritte-common-focus-visible": "0.1.6",
24
24
  "@hh.ru/magritte-common-use-disabled": "1.0.10",
25
25
  "@hh.ru/magritte-common-use-loading-state": "1.0.6",
26
- "@hh.ru/magritte-design-tokens": "20.1.0",
27
- "@hh.ru/magritte-ui-badge": "2.2.14",
26
+ "@hh.ru/magritte-design-tokens": "21.1.0",
27
+ "@hh.ru/magritte-ui-badge": "2.2.16",
28
28
  "@hh.ru/magritte-ui-breakpoint": "5.0.0",
29
- "@hh.ru/magritte-ui-icon": "7.9.10",
29
+ "@hh.ru/magritte-ui-icon": "7.9.12",
30
30
  "@hh.ru/magritte-ui-mock-component": "1.0.12",
31
- "@hh.ru/magritte-ui-skeleton": "2.1.20",
32
- "@hh.ru/magritte-ui-theme-provider": "1.1.35"
31
+ "@hh.ru/magritte-ui-skeleton": "2.1.22",
32
+ "@hh.ru/magritte-ui-theme-provider": "1.1.37"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "classnames": ">=2.3.2",
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "1f85c1274063f28c68e856b26db4540e4f210fa1"
41
+ "gitHead": "6ae3dbd40e749f4dfd123c76295ec05afc2c79e0"
42
42
  }
@@ -1,25 +0,0 @@
1
- import './index.css';
2
- import { jsx } from 'react/jsx-runtime';
3
- import classnames from 'classnames';
4
- import { useLoadingState } from '@hh.ru/magritte-common-use-loading-state';
5
- import { Skeleton } from '@hh.ru/magritte-ui-skeleton';
6
-
7
- var styles = {"action":"magritte-action___JtMQB_4-4-22","action-show-background":"magritte-action-show-background___Qg0JU_4-4-22","actionShowBackground":"magritte-action-show-background___Qg0JU_4-4-22","action-style-contrast":"magritte-action-style-contrast___5WfIK_4-4-22","actionStyleContrast":"magritte-action-style-contrast___5WfIK_4-4-22","action-hover-style-contrast":"magritte-action-hover-style-contrast___nPdPk_4-4-22","actionHoverStyleContrast":"magritte-action-hover-style-contrast___nPdPk_4-4-22","action-pressed-style-contrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-22","actionPressedStyleContrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-22","action-disable-padding":"magritte-action-disable-padding___F-AR7_4-4-22","actionDisablePadding":"magritte-action-disable-padding___F-AR7_4-4-22","action-style-neutral":"magritte-action-style-neutral___zv0k4_4-4-22","actionStyleNeutral":"magritte-action-style-neutral___zv0k4_4-4-22","action-mode-primary":"magritte-action-mode-primary___AzhY5_4-4-22","actionModePrimary":"magritte-action-mode-primary___AzhY5_4-4-22","action-mode-secondary":"magritte-action-mode-secondary___jvHEK_4-4-22","actionModeSecondary":"magritte-action-mode-secondary___jvHEK_4-4-22","action-hover-style-neutral":"magritte-action-hover-style-neutral___qiLyU_4-4-22","actionHoverStyleNeutral":"magritte-action-hover-style-neutral___qiLyU_4-4-22","action-pressed-style-neutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-22","actionPressedStyleNeutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-22","action-style-accent":"magritte-action-style-accent___5YSMF_4-4-22","actionStyleAccent":"magritte-action-style-accent___5YSMF_4-4-22","action-hover-style-accent":"magritte-action-hover-style-accent___C-bMb_4-4-22","actionHoverStyleAccent":"magritte-action-hover-style-accent___C-bMb_4-4-22","action-pressed-style-accent":"magritte-action-pressed-style-accent___Dc4hr_4-4-22","actionPressedStyleAccent":"magritte-action-pressed-style-accent___Dc4hr_4-4-22","action-style-negative":"magritte-action-style-negative___CrXqj_4-4-22","actionStyleNegative":"magritte-action-style-negative___CrXqj_4-4-22","action-hover-style-negative":"magritte-action-hover-style-negative___rVlDZ_4-4-22","actionHoverStyleNegative":"magritte-action-hover-style-negative___rVlDZ_4-4-22","action-pressed-style-negative":"magritte-action-pressed-style-negative___7ckSN_4-4-22","actionPressedStyleNegative":"magritte-action-pressed-style-negative___7ckSN_4-4-22","action-style-warning":"magritte-action-style-warning___ikeHT_4-4-22","actionStyleWarning":"magritte-action-style-warning___ikeHT_4-4-22","action-hover-style-warning":"magritte-action-hover-style-warning___4jUpU_4-4-22","actionHoverStyleWarning":"magritte-action-hover-style-warning___4jUpU_4-4-22","action-pressed-style-warning":"magritte-action-pressed-style-warning___b2e3N_4-4-22","actionPressedStyleWarning":"magritte-action-pressed-style-warning___b2e3N_4-4-22","action-style-special":"magritte-action-style-special___cav2H_4-4-22","actionStyleSpecial":"magritte-action-style-special___cav2H_4-4-22","action-hover-style-special":"magritte-action-hover-style-special___2HDP-_4-4-22","actionHoverStyleSpecial":"magritte-action-hover-style-special___2HDP-_4-4-22","action-pressed-style-special":"magritte-action-pressed-style-special___B7JXW_4-4-22","actionPressedStyleSpecial":"magritte-action-pressed-style-special___B7JXW_4-4-22","action-skeleton-container":"magritte-action-skeleton-container___5i2G3_4-4-22","actionSkeletonContainer":"magritte-action-skeleton-container___5i2G3_4-4-22","action-skeleton-disable-padding":"magritte-action-skeleton-disable-padding___pofiL_4-4-22","actionSkeletonDisablePadding":"magritte-action-skeleton-disable-padding___pofiL_4-4-22","action-skeleton":"magritte-action-skeleton___zIUA6_4-4-22","actionSkeleton":"magritte-action-skeleton___zIUA6_4-4-22","action-skeleton-show-background":"magritte-action-skeleton-show-background___4xgHf_4-4-22","actionSkeletonShowBackground":"magritte-action-skeleton-show-background___4xgHf_4-4-22"};
8
-
9
- const ActionSkeleton = ({ Component: Action,
10
- // skeleton props
11
- width, height, borderRadius, inline, additionalClass, loading, ...actionProps }) => {
12
- const isLoading = useLoadingState() || loading;
13
- if (isLoading) {
14
- return (jsx("div", { className: classnames(styles.actionSkeletonContainer, {
15
- [styles.actionSkeletonDisablePadding]: actionProps.disablePadding,
16
- }), children: jsx(Skeleton, { additionalClass: classnames(styles.actionSkeleton, {
17
- [styles.actionSkeletonShowBackground]: actionProps.showBackground && !actionProps.disablePadding,
18
- }) }) }));
19
- }
20
- return jsx(Action, { ...actionProps });
21
- };
22
- ActionSkeleton.isAction = true;
23
-
24
- export { ActionSkeleton as A, styles as s };
25
- //# sourceMappingURL=Skeleton-O_YZEck_.js.map