@hh.ru/magritte-ui-action 4.4.16 → 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/Action.js +1 -1
- package/Skeleton-B6pGwC12.js +25 -0
- package/{Skeleton-KfVuVCBz.js.map → Skeleton-B6pGwC12.js.map} +1 -1
- package/Skeleton.js +1 -1
- package/index.css +812 -812
- package/index.js +1 -1
- package/package.json +7 -7
- package/Skeleton-KfVuVCBz.js +0 -25
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-
|
|
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.
|
|
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": "20.0.
|
|
27
|
-
"@hh.ru/magritte-ui-badge": "2.2.
|
|
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.
|
|
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.
|
|
32
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.
|
|
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": "
|
|
41
|
+
"gitHead": "5e39c82ca3c8af74be5ac205406e44df626adcc6"
|
|
42
42
|
}
|
package/Skeleton-KfVuVCBz.js
DELETED
|
@@ -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-16","action-show-background":"magritte-action-show-background___Qg0JU_4-4-16","actionShowBackground":"magritte-action-show-background___Qg0JU_4-4-16","action-style-contrast":"magritte-action-style-contrast___5WfIK_4-4-16","actionStyleContrast":"magritte-action-style-contrast___5WfIK_4-4-16","action-hover-style-contrast":"magritte-action-hover-style-contrast___nPdPk_4-4-16","actionHoverStyleContrast":"magritte-action-hover-style-contrast___nPdPk_4-4-16","action-pressed-style-contrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-16","actionPressedStyleContrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-16","action-disable-padding":"magritte-action-disable-padding___F-AR7_4-4-16","actionDisablePadding":"magritte-action-disable-padding___F-AR7_4-4-16","action-style-neutral":"magritte-action-style-neutral___zv0k4_4-4-16","actionStyleNeutral":"magritte-action-style-neutral___zv0k4_4-4-16","action-mode-primary":"magritte-action-mode-primary___AzhY5_4-4-16","actionModePrimary":"magritte-action-mode-primary___AzhY5_4-4-16","action-mode-secondary":"magritte-action-mode-secondary___jvHEK_4-4-16","actionModeSecondary":"magritte-action-mode-secondary___jvHEK_4-4-16","action-hover-style-neutral":"magritte-action-hover-style-neutral___qiLyU_4-4-16","actionHoverStyleNeutral":"magritte-action-hover-style-neutral___qiLyU_4-4-16","action-pressed-style-neutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-16","actionPressedStyleNeutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-16","action-style-accent":"magritte-action-style-accent___5YSMF_4-4-16","actionStyleAccent":"magritte-action-style-accent___5YSMF_4-4-16","action-hover-style-accent":"magritte-action-hover-style-accent___C-bMb_4-4-16","actionHoverStyleAccent":"magritte-action-hover-style-accent___C-bMb_4-4-16","action-pressed-style-accent":"magritte-action-pressed-style-accent___Dc4hr_4-4-16","actionPressedStyleAccent":"magritte-action-pressed-style-accent___Dc4hr_4-4-16","action-style-negative":"magritte-action-style-negative___CrXqj_4-4-16","actionStyleNegative":"magritte-action-style-negative___CrXqj_4-4-16","action-hover-style-negative":"magritte-action-hover-style-negative___rVlDZ_4-4-16","actionHoverStyleNegative":"magritte-action-hover-style-negative___rVlDZ_4-4-16","action-pressed-style-negative":"magritte-action-pressed-style-negative___7ckSN_4-4-16","actionPressedStyleNegative":"magritte-action-pressed-style-negative___7ckSN_4-4-16","action-style-warning":"magritte-action-style-warning___ikeHT_4-4-16","actionStyleWarning":"magritte-action-style-warning___ikeHT_4-4-16","action-hover-style-warning":"magritte-action-hover-style-warning___4jUpU_4-4-16","actionHoverStyleWarning":"magritte-action-hover-style-warning___4jUpU_4-4-16","action-pressed-style-warning":"magritte-action-pressed-style-warning___b2e3N_4-4-16","actionPressedStyleWarning":"magritte-action-pressed-style-warning___b2e3N_4-4-16","action-style-special":"magritte-action-style-special___cav2H_4-4-16","actionStyleSpecial":"magritte-action-style-special___cav2H_4-4-16","action-hover-style-special":"magritte-action-hover-style-special___2HDP-_4-4-16","actionHoverStyleSpecial":"magritte-action-hover-style-special___2HDP-_4-4-16","action-pressed-style-special":"magritte-action-pressed-style-special___B7JXW_4-4-16","actionPressedStyleSpecial":"magritte-action-pressed-style-special___B7JXW_4-4-16","action-skeleton-container":"magritte-action-skeleton-container___5i2G3_4-4-16","actionSkeletonContainer":"magritte-action-skeleton-container___5i2G3_4-4-16","action-skeleton-disable-padding":"magritte-action-skeleton-disable-padding___pofiL_4-4-16","actionSkeletonDisablePadding":"magritte-action-skeleton-disable-padding___pofiL_4-4-16","action-skeleton":"magritte-action-skeleton___zIUA6_4-4-16","actionSkeleton":"magritte-action-skeleton___zIUA6_4-4-16","action-skeleton-show-background":"magritte-action-skeleton-show-background___4xgHf_4-4-16","actionSkeletonShowBackground":"magritte-action-skeleton-show-background___4xgHf_4-4-16"};
|
|
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-KfVuVCBz.js.map
|