@hh.ru/magritte-ui-action 4.4.15 → 4.4.17

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-Bi0HEbFK.js';
10
+ import './Skeleton-B6pGwC12.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.15",
3
+ "version": "4.4.17",
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.9",
25
25
  "@hh.ru/magritte-common-use-loading-state": "1.0.5",
26
- "@hh.ru/magritte-design-tokens": "19.1.2",
27
- "@hh.ru/magritte-ui-badge": "2.2.10",
26
+ "@hh.ru/magritte-design-tokens": "20.0.1",
27
+ "@hh.ru/magritte-ui-badge": "2.2.12",
28
28
  "@hh.ru/magritte-ui-breakpoint": "4.1.0",
29
- "@hh.ru/magritte-ui-icon": "7.9.4",
29
+ "@hh.ru/magritte-ui-icon": "7.9.6",
30
30
  "@hh.ru/magritte-ui-mock-component": "1.0.11",
31
- "@hh.ru/magritte-ui-skeleton": "2.1.15",
32
- "@hh.ru/magritte-ui-theme-provider": "1.1.31"
31
+ "@hh.ru/magritte-ui-skeleton": "2.1.17",
32
+ "@hh.ru/magritte-ui-theme-provider": "1.1.33"
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": "d65b5cdffe3fa7e332b76033a4317c2bbe7d6b68"
41
+ "gitHead": "5e39c82ca3c8af74be5ac205406e44df626adcc6"
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-15","action-show-background":"magritte-action-show-background___Qg0JU_4-4-15","actionShowBackground":"magritte-action-show-background___Qg0JU_4-4-15","action-style-contrast":"magritte-action-style-contrast___5WfIK_4-4-15","actionStyleContrast":"magritte-action-style-contrast___5WfIK_4-4-15","action-hover-style-contrast":"magritte-action-hover-style-contrast___nPdPk_4-4-15","actionHoverStyleContrast":"magritte-action-hover-style-contrast___nPdPk_4-4-15","action-pressed-style-contrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-15","actionPressedStyleContrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-15","action-disable-padding":"magritte-action-disable-padding___F-AR7_4-4-15","actionDisablePadding":"magritte-action-disable-padding___F-AR7_4-4-15","action-style-neutral":"magritte-action-style-neutral___zv0k4_4-4-15","actionStyleNeutral":"magritte-action-style-neutral___zv0k4_4-4-15","action-mode-primary":"magritte-action-mode-primary___AzhY5_4-4-15","actionModePrimary":"magritte-action-mode-primary___AzhY5_4-4-15","action-mode-secondary":"magritte-action-mode-secondary___jvHEK_4-4-15","actionModeSecondary":"magritte-action-mode-secondary___jvHEK_4-4-15","action-hover-style-neutral":"magritte-action-hover-style-neutral___qiLyU_4-4-15","actionHoverStyleNeutral":"magritte-action-hover-style-neutral___qiLyU_4-4-15","action-pressed-style-neutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-15","actionPressedStyleNeutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-15","action-style-accent":"magritte-action-style-accent___5YSMF_4-4-15","actionStyleAccent":"magritte-action-style-accent___5YSMF_4-4-15","action-hover-style-accent":"magritte-action-hover-style-accent___C-bMb_4-4-15","actionHoverStyleAccent":"magritte-action-hover-style-accent___C-bMb_4-4-15","action-pressed-style-accent":"magritte-action-pressed-style-accent___Dc4hr_4-4-15","actionPressedStyleAccent":"magritte-action-pressed-style-accent___Dc4hr_4-4-15","action-style-negative":"magritte-action-style-negative___CrXqj_4-4-15","actionStyleNegative":"magritte-action-style-negative___CrXqj_4-4-15","action-hover-style-negative":"magritte-action-hover-style-negative___rVlDZ_4-4-15","actionHoverStyleNegative":"magritte-action-hover-style-negative___rVlDZ_4-4-15","action-pressed-style-negative":"magritte-action-pressed-style-negative___7ckSN_4-4-15","actionPressedStyleNegative":"magritte-action-pressed-style-negative___7ckSN_4-4-15","action-style-warning":"magritte-action-style-warning___ikeHT_4-4-15","actionStyleWarning":"magritte-action-style-warning___ikeHT_4-4-15","action-hover-style-warning":"magritte-action-hover-style-warning___4jUpU_4-4-15","actionHoverStyleWarning":"magritte-action-hover-style-warning___4jUpU_4-4-15","action-pressed-style-warning":"magritte-action-pressed-style-warning___b2e3N_4-4-15","actionPressedStyleWarning":"magritte-action-pressed-style-warning___b2e3N_4-4-15","action-style-special":"magritte-action-style-special___cav2H_4-4-15","actionStyleSpecial":"magritte-action-style-special___cav2H_4-4-15","action-hover-style-special":"magritte-action-hover-style-special___2HDP-_4-4-15","actionHoverStyleSpecial":"magritte-action-hover-style-special___2HDP-_4-4-15","action-pressed-style-special":"magritte-action-pressed-style-special___B7JXW_4-4-15","actionPressedStyleSpecial":"magritte-action-pressed-style-special___B7JXW_4-4-15","action-skeleton-container":"magritte-action-skeleton-container___5i2G3_4-4-15","actionSkeletonContainer":"magritte-action-skeleton-container___5i2G3_4-4-15","action-skeleton-disable-padding":"magritte-action-skeleton-disable-padding___pofiL_4-4-15","actionSkeletonDisablePadding":"magritte-action-skeleton-disable-padding___pofiL_4-4-15","action-skeleton":"magritte-action-skeleton___zIUA6_4-4-15","actionSkeleton":"magritte-action-skeleton___zIUA6_4-4-15","action-skeleton-show-background":"magritte-action-skeleton-show-background___4xgHf_4-4-15","actionSkeletonShowBackground":"magritte-action-skeleton-show-background___4xgHf_4-4-15"};
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-Bi0HEbFK.js.map