@hh.ru/magritte-ui-action 4.4.21 → 4.4.23
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-2uyq1meC.js +25 -0
- package/{Skeleton-B5Diz6UH.js.map → Skeleton-2uyq1meC.js.map} +1 -1
- package/Skeleton.js +1 -1
- package/index.css +284 -814
- package/index.js +1 -1
- package/package.json +8 -8
- package/Skeleton-B5Diz6UH.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-2uyq1meC.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.23",
|
|
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": "
|
|
27
|
-
"@hh.ru/magritte-ui-badge": "2.2.
|
|
28
|
-
"@hh.ru/magritte-ui-breakpoint": "
|
|
29
|
-
"@hh.ru/magritte-ui-icon": "7.9.
|
|
26
|
+
"@hh.ru/magritte-design-tokens": "21.0.0",
|
|
27
|
+
"@hh.ru/magritte-ui-badge": "2.2.15",
|
|
28
|
+
"@hh.ru/magritte-ui-breakpoint": "5.0.0",
|
|
29
|
+
"@hh.ru/magritte-ui-icon": "7.9.11",
|
|
30
30
|
"@hh.ru/magritte-ui-mock-component": "1.0.12",
|
|
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.21",
|
|
32
|
+
"@hh.ru/magritte-ui-theme-provider": "1.1.36"
|
|
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": "d969104667bac3470d222588ac719c4fc9cd06d6"
|
|
42
42
|
}
|
package/Skeleton-B5Diz6UH.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-21","action-show-background":"magritte-action-show-background___Qg0JU_4-4-21","actionShowBackground":"magritte-action-show-background___Qg0JU_4-4-21","action-style-contrast":"magritte-action-style-contrast___5WfIK_4-4-21","actionStyleContrast":"magritte-action-style-contrast___5WfIK_4-4-21","action-hover-style-contrast":"magritte-action-hover-style-contrast___nPdPk_4-4-21","actionHoverStyleContrast":"magritte-action-hover-style-contrast___nPdPk_4-4-21","action-pressed-style-contrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-21","actionPressedStyleContrast":"magritte-action-pressed-style-contrast___N04Fw_4-4-21","action-disable-padding":"magritte-action-disable-padding___F-AR7_4-4-21","actionDisablePadding":"magritte-action-disable-padding___F-AR7_4-4-21","action-style-neutral":"magritte-action-style-neutral___zv0k4_4-4-21","actionStyleNeutral":"magritte-action-style-neutral___zv0k4_4-4-21","action-mode-primary":"magritte-action-mode-primary___AzhY5_4-4-21","actionModePrimary":"magritte-action-mode-primary___AzhY5_4-4-21","action-mode-secondary":"magritte-action-mode-secondary___jvHEK_4-4-21","actionModeSecondary":"magritte-action-mode-secondary___jvHEK_4-4-21","action-hover-style-neutral":"magritte-action-hover-style-neutral___qiLyU_4-4-21","actionHoverStyleNeutral":"magritte-action-hover-style-neutral___qiLyU_4-4-21","action-pressed-style-neutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-21","actionPressedStyleNeutral":"magritte-action-pressed-style-neutral___gMAMl_4-4-21","action-style-accent":"magritte-action-style-accent___5YSMF_4-4-21","actionStyleAccent":"magritte-action-style-accent___5YSMF_4-4-21","action-hover-style-accent":"magritte-action-hover-style-accent___C-bMb_4-4-21","actionHoverStyleAccent":"magritte-action-hover-style-accent___C-bMb_4-4-21","action-pressed-style-accent":"magritte-action-pressed-style-accent___Dc4hr_4-4-21","actionPressedStyleAccent":"magritte-action-pressed-style-accent___Dc4hr_4-4-21","action-style-negative":"magritte-action-style-negative___CrXqj_4-4-21","actionStyleNegative":"magritte-action-style-negative___CrXqj_4-4-21","action-hover-style-negative":"magritte-action-hover-style-negative___rVlDZ_4-4-21","actionHoverStyleNegative":"magritte-action-hover-style-negative___rVlDZ_4-4-21","action-pressed-style-negative":"magritte-action-pressed-style-negative___7ckSN_4-4-21","actionPressedStyleNegative":"magritte-action-pressed-style-negative___7ckSN_4-4-21","action-style-warning":"magritte-action-style-warning___ikeHT_4-4-21","actionStyleWarning":"magritte-action-style-warning___ikeHT_4-4-21","action-hover-style-warning":"magritte-action-hover-style-warning___4jUpU_4-4-21","actionHoverStyleWarning":"magritte-action-hover-style-warning___4jUpU_4-4-21","action-pressed-style-warning":"magritte-action-pressed-style-warning___b2e3N_4-4-21","actionPressedStyleWarning":"magritte-action-pressed-style-warning___b2e3N_4-4-21","action-style-special":"magritte-action-style-special___cav2H_4-4-21","actionStyleSpecial":"magritte-action-style-special___cav2H_4-4-21","action-hover-style-special":"magritte-action-hover-style-special___2HDP-_4-4-21","actionHoverStyleSpecial":"magritte-action-hover-style-special___2HDP-_4-4-21","action-pressed-style-special":"magritte-action-pressed-style-special___B7JXW_4-4-21","actionPressedStyleSpecial":"magritte-action-pressed-style-special___B7JXW_4-4-21","action-skeleton-container":"magritte-action-skeleton-container___5i2G3_4-4-21","actionSkeletonContainer":"magritte-action-skeleton-container___5i2G3_4-4-21","action-skeleton-disable-padding":"magritte-action-skeleton-disable-padding___pofiL_4-4-21","actionSkeletonDisablePadding":"magritte-action-skeleton-disable-padding___pofiL_4-4-21","action-skeleton":"magritte-action-skeleton___zIUA6_4-4-21","actionSkeleton":"magritte-action-skeleton___zIUA6_4-4-21","action-skeleton-show-background":"magritte-action-skeleton-show-background___4xgHf_4-4-21","actionSkeletonShowBackground":"magritte-action-skeleton-show-background___4xgHf_4-4-21"};
|
|
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-B5Diz6UH.js.map
|