@hh.ru/magritte-ui-action 4.4.17 → 4.4.19
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-aXf97fwN.js +25 -0
- package/{Skeleton-B6pGwC12.js.map → Skeleton-aXf97fwN.js.map} +1 -1
- package/Skeleton.js +1 -1
- package/index.css +812 -812
- package/index.js +1 -1
- package/package.json +11 -11
- package/Skeleton-B6pGwC12.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-aXf97fwN.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.19",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@hh.ru/magritte-common-focus-visible": "0.1.6",
|
|
24
|
-
"@hh.ru/magritte-common-use-disabled": "1.0.
|
|
25
|
-
"@hh.ru/magritte-common-use-loading-state": "1.0.
|
|
26
|
-
"@hh.ru/magritte-design-tokens": "20.0.
|
|
27
|
-
"@hh.ru/magritte-ui-badge": "2.2.
|
|
28
|
-
"@hh.ru/magritte-ui-breakpoint": "4.1.
|
|
29
|
-
"@hh.ru/magritte-ui-icon": "7.9.
|
|
30
|
-
"@hh.ru/magritte-ui-mock-component": "1.0.
|
|
31
|
-
"@hh.ru/magritte-ui-skeleton": "2.1.
|
|
32
|
-
"@hh.ru/magritte-ui-theme-provider": "1.1.
|
|
24
|
+
"@hh.ru/magritte-common-use-disabled": "1.0.10",
|
|
25
|
+
"@hh.ru/magritte-common-use-loading-state": "1.0.6",
|
|
26
|
+
"@hh.ru/magritte-design-tokens": "20.0.2",
|
|
27
|
+
"@hh.ru/magritte-ui-badge": "2.2.13",
|
|
28
|
+
"@hh.ru/magritte-ui-breakpoint": "4.1.1",
|
|
29
|
+
"@hh.ru/magritte-ui-icon": "7.9.8",
|
|
30
|
+
"@hh.ru/magritte-ui-mock-component": "1.0.12",
|
|
31
|
+
"@hh.ru/magritte-ui-skeleton": "2.1.18",
|
|
32
|
+
"@hh.ru/magritte-ui-theme-provider": "1.1.34"
|
|
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": "7b03528e973107957213eb5e4ec37766e79a5a43"
|
|
42
42
|
}
|
package/Skeleton-B6pGwC12.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-17","action-show-background":"magritte-action-show-background___Qg0JU_4-4-17","actionShowBackground":"magritte-action-show-background___Qg0JU_4-4-17","action-style-contrast":"magritte-action-style-contrast___5WfIK_4-4-17","actionStyleContrast":"magritte-action-style-contrast___5WfIK_4-4-17","action-hover-style-contrast":"magritte-action-hover-style-contrast___nPdPk_4-4-17","actionHoverStyleContrast":"magritte-action-hover-style-contrast___nPdPk_4-4-17","action-pressed-style-contrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-17","actionPressedStyleContrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-17","action-disable-padding":"magritte-action-disable-padding___F-AR7_4-4-17","actionDisablePadding":"magritte-action-disable-padding___F-AR7_4-4-17","action-style-neutral":"magritte-action-style-neutral___zv0k4_4-4-17","actionStyleNeutral":"magritte-action-style-neutral___zv0k4_4-4-17","action-mode-primary":"magritte-action-mode-primary___AzhY5_4-4-17","actionModePrimary":"magritte-action-mode-primary___AzhY5_4-4-17","action-mode-secondary":"magritte-action-mode-secondary___jvHEK_4-4-17","actionModeSecondary":"magritte-action-mode-secondary___jvHEK_4-4-17","action-hover-style-neutral":"magritte-action-hover-style-neutral___qiLyU_4-4-17","actionHoverStyleNeutral":"magritte-action-hover-style-neutral___qiLyU_4-4-17","action-pressed-style-neutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-17","actionPressedStyleNeutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-17","action-style-accent":"magritte-action-style-accent___5YSMF_4-4-17","actionStyleAccent":"magritte-action-style-accent___5YSMF_4-4-17","action-hover-style-accent":"magritte-action-hover-style-accent___C-bMb_4-4-17","actionHoverStyleAccent":"magritte-action-hover-style-accent___C-bMb_4-4-17","action-pressed-style-accent":"magritte-action-pressed-style-accent___Dc4hr_4-4-17","actionPressedStyleAccent":"magritte-action-pressed-style-accent___Dc4hr_4-4-17","action-style-negative":"magritte-action-style-negative___CrXqj_4-4-17","actionStyleNegative":"magritte-action-style-negative___CrXqj_4-4-17","action-hover-style-negative":"magritte-action-hover-style-negative___rVlDZ_4-4-17","actionHoverStyleNegative":"magritte-action-hover-style-negative___rVlDZ_4-4-17","action-pressed-style-negative":"magritte-action-pressed-style-negative___7ckSN_4-4-17","actionPressedStyleNegative":"magritte-action-pressed-style-negative___7ckSN_4-4-17","action-style-warning":"magritte-action-style-warning___ikeHT_4-4-17","actionStyleWarning":"magritte-action-style-warning___ikeHT_4-4-17","action-hover-style-warning":"magritte-action-hover-style-warning___4jUpU_4-4-17","actionHoverStyleWarning":"magritte-action-hover-style-warning___4jUpU_4-4-17","action-pressed-style-warning":"magritte-action-pressed-style-warning___b2e3N_4-4-17","actionPressedStyleWarning":"magritte-action-pressed-style-warning___b2e3N_4-4-17","action-style-special":"magritte-action-style-special___cav2H_4-4-17","actionStyleSpecial":"magritte-action-style-special___cav2H_4-4-17","action-hover-style-special":"magritte-action-hover-style-special___2HDP-_4-4-17","actionHoverStyleSpecial":"magritte-action-hover-style-special___2HDP-_4-4-17","action-pressed-style-special":"magritte-action-pressed-style-special___B7JXW_4-4-17","actionPressedStyleSpecial":"magritte-action-pressed-style-special___B7JXW_4-4-17","action-skeleton-container":"magritte-action-skeleton-container___5i2G3_4-4-17","actionSkeletonContainer":"magritte-action-skeleton-container___5i2G3_4-4-17","action-skeleton-disable-padding":"magritte-action-skeleton-disable-padding___pofiL_4-4-17","actionSkeletonDisablePadding":"magritte-action-skeleton-disable-padding___pofiL_4-4-17","action-skeleton":"magritte-action-skeleton___zIUA6_4-4-17","actionSkeleton":"magritte-action-skeleton___zIUA6_4-4-17","action-skeleton-show-background":"magritte-action-skeleton-show-background___4xgHf_4-4-17","actionSkeletonShowBackground":"magritte-action-skeleton-show-background___4xgHf_4-4-17"};
|
|
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-B6pGwC12.js.map
|