@alfalab/core-components-universal-modal 3.2.1-alfasans → 3.2.2
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/components/base-content/index.css +2 -3
- package/components/base-content/index.module.css.js +1 -1
- package/components/base-footer/index.css +5 -7
- package/components/base-footer/index.module.css.js +1 -1
- package/components/base-header/index.css +4 -4
- package/components/base-header/index.module.css.js +1 -1
- package/cssm/components/base-content/index.module.css +1 -2
- package/cssm/components/base-footer/index.module.css +2 -4
- package/cssm/desktop/components/center-modal/center-modal.js +2 -1
- package/cssm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/cssm/desktop/components/center-modal/index.module.css +1 -2
- package/cssm/desktop/components/footer/layout.module.css +3 -6
- package/cssm/desktop/components/header/desktop.module.css +9 -17
- package/cssm/desktop/components/side-modal/index.module.css +1 -2
- package/cssm/desktop/components/side-modal/side-modal.js +2 -1
- package/cssm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/cssm/desktop/utils/get-hug-content-styles.d.ts +8 -0
- package/cssm/desktop/utils/get-hug-content-styles.js +19 -0
- package/cssm/desktop/utils/get-hug-content-styles.js.map +1 -0
- package/cssm/desktop/utils/get-margin-styles.d.ts +0 -1
- package/cssm/desktop/utils/get-margin-styles.js +8 -14
- package/cssm/desktop/utils/get-margin-styles.js.map +1 -1
- package/cssm/mobile/components/content/index.module.css +1 -2
- package/cssm/mobile/components/footer/index.module.css +1 -2
- package/cssm/mobile/components/footer/layout.mobile.module.css +1 -2
- package/cssm/mobile/components/header/index.module.css +10 -17
- package/desktop/components/center-modal/center-modal.js +2 -1
- package/desktop/components/center-modal/center-modal.js.map +1 -1
- package/desktop/components/center-modal/index.css +784 -785
- package/desktop/components/center-modal/index.module.css.js +1 -1
- package/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
- package/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/desktop/components/center-modal/transitions/transitions.css +7 -7
- package/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/desktop/components/footer/desktop.css +1 -1
- package/desktop/components/footer/desktop.module.css.js +1 -1
- package/desktop/components/footer/layout.css +12 -15
- package/desktop/components/footer/layout.module.css.js +1 -1
- package/desktop/components/header/desktop.css +14 -22
- package/desktop/components/header/desktop.module.css.js +1 -1
- package/desktop/components/modal-content/modal-content.css +4 -4
- package/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/desktop/components/side-modal/index.css +786 -787
- package/desktop/components/side-modal/index.module.css.js +1 -1
- package/desktop/components/side-modal/side-modal.js +2 -1
- package/desktop/components/side-modal/side-modal.js.map +1 -1
- package/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
- package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
- package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
- package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/desktop/utils/get-hug-content-styles.d.ts +8 -0
- package/desktop/utils/get-hug-content-styles.js +19 -0
- package/desktop/utils/get-hug-content-styles.js.map +1 -0
- package/desktop/utils/get-margin-styles.d.ts +0 -1
- package/desktop/utils/get-margin-styles.js +8 -14
- package/desktop/utils/get-margin-styles.js.map +1 -1
- package/esm/components/base-content/index.css +2 -3
- package/esm/components/base-content/index.module.css.js +1 -1
- package/esm/components/base-footer/index.css +5 -7
- package/esm/components/base-footer/index.module.css.js +1 -1
- package/esm/components/base-header/index.css +4 -4
- package/esm/components/base-header/index.module.css.js +1 -1
- package/esm/desktop/components/center-modal/center-modal.js +2 -1
- package/esm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/esm/desktop/components/center-modal/index.css +784 -785
- package/esm/desktop/components/center-modal/index.module.css.js +1 -1
- package/esm/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
- package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/esm/desktop/components/center-modal/transitions/transitions.css +7 -7
- package/esm/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/esm/desktop/components/footer/desktop.css +1 -1
- package/esm/desktop/components/footer/desktop.module.css.js +1 -1
- package/esm/desktop/components/footer/layout.css +12 -15
- package/esm/desktop/components/footer/layout.module.css.js +1 -1
- package/esm/desktop/components/header/desktop.css +14 -22
- package/esm/desktop/components/header/desktop.module.css.js +1 -1
- package/esm/desktop/components/modal-content/modal-content.css +4 -4
- package/esm/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/esm/desktop/components/side-modal/index.css +786 -787
- package/esm/desktop/components/side-modal/index.module.css.js +1 -1
- package/esm/desktop/components/side-modal/side-modal.js +2 -1
- package/esm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/esm/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/esm/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
- package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
- package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
- package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/esm/desktop/utils/get-hug-content-styles.d.ts +8 -0
- package/esm/desktop/utils/get-hug-content-styles.js +15 -0
- package/esm/desktop/utils/get-hug-content-styles.js.map +1 -0
- package/esm/desktop/utils/get-margin-styles.d.ts +0 -1
- package/esm/desktop/utils/get-margin-styles.js +8 -14
- package/esm/desktop/utils/get-margin-styles.js.map +1 -1
- package/esm/mobile/components/content/index.css +4 -5
- package/esm/mobile/components/content/index.module.css.js +1 -1
- package/esm/mobile/components/footer/index.css +3 -4
- package/esm/mobile/components/footer/index.module.css.js +1 -1
- package/esm/mobile/components/footer/layout.mobile.css +10 -11
- package/esm/mobile/components/footer/layout.mobile.module.css.js +1 -1
- package/esm/mobile/components/header/index.css +13 -20
- package/esm/mobile/components/header/index.module.css.js +1 -1
- package/esm/mobile/mobile.css +3 -3
- package/esm/mobile/mobile.module.css.js +1 -1
- package/esm/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/esm/mobile/transitions/transitions.mobile.css +7 -7
- package/esm/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/mobile/components/content/index.css +4 -5
- package/mobile/components/content/index.module.css.js +1 -1
- package/mobile/components/footer/index.css +3 -4
- package/mobile/components/footer/index.module.css.js +1 -1
- package/mobile/components/footer/layout.mobile.css +10 -11
- package/mobile/components/footer/layout.mobile.module.css.js +1 -1
- package/mobile/components/header/index.css +13 -20
- package/mobile/components/header/index.module.css.js +1 -1
- package/mobile/mobile.css +3 -3
- package/mobile/mobile.module.css.js +1 -1
- package/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/mobile/transitions/transitions.mobile.css +7 -7
- package/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/modern/components/base-content/index.css +2 -3
- package/modern/components/base-content/index.module.css.js +1 -1
- package/modern/components/base-footer/index.css +5 -7
- package/modern/components/base-footer/index.module.css.js +1 -1
- package/modern/components/base-header/index.css +4 -4
- package/modern/components/base-header/index.module.css.js +1 -1
- package/modern/desktop/components/center-modal/center-modal.js +3 -1
- package/modern/desktop/components/center-modal/center-modal.js.map +1 -1
- package/modern/desktop/components/center-modal/index.css +784 -785
- package/modern/desktop/components/center-modal/index.module.css.js +1 -1
- package/modern/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
- package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/modern/desktop/components/center-modal/transitions/transitions.css +7 -7
- package/modern/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/modern/desktop/components/footer/desktop.css +1 -1
- package/modern/desktop/components/footer/desktop.module.css.js +1 -1
- package/modern/desktop/components/footer/layout.css +12 -15
- package/modern/desktop/components/footer/layout.module.css.js +1 -1
- package/modern/desktop/components/header/desktop.css +14 -22
- package/modern/desktop/components/header/desktop.module.css.js +1 -1
- package/modern/desktop/components/modal-content/modal-content.css +4 -4
- package/modern/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/modern/desktop/components/side-modal/index.css +786 -787
- package/modern/desktop/components/side-modal/index.module.css.js +1 -1
- package/modern/desktop/components/side-modal/side-modal.js +3 -1
- package/modern/desktop/components/side-modal/side-modal.js.map +1 -1
- package/modern/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/modern/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
- package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
- package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
- package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/modern/desktop/utils/get-hug-content-styles.d.ts +8 -0
- package/modern/desktop/utils/get-hug-content-styles.js +17 -0
- package/modern/desktop/utils/get-hug-content-styles.js.map +1 -0
- package/modern/desktop/utils/get-margin-styles.d.ts +0 -1
- package/modern/desktop/utils/get-margin-styles.js +11 -13
- package/modern/desktop/utils/get-margin-styles.js.map +1 -1
- package/modern/mobile/components/content/index.css +4 -5
- package/modern/mobile/components/content/index.module.css.js +1 -1
- package/modern/mobile/components/footer/index.css +3 -4
- package/modern/mobile/components/footer/index.module.css.js +1 -1
- package/modern/mobile/components/footer/layout.mobile.css +10 -11
- package/modern/mobile/components/footer/layout.mobile.module.css.js +1 -1
- package/modern/mobile/components/header/index.css +13 -20
- package/modern/mobile/components/header/index.module.css.js +1 -1
- package/modern/mobile/mobile.css +3 -3
- package/modern/mobile/mobile.module.css.js +1 -1
- package/modern/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/modern/mobile/transitions/transitions.mobile.css +7 -7
- package/modern/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/moderncssm/desktop/components/center-modal/center-modal.js +3 -1
- package/moderncssm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/moderncssm/desktop/components/header/desktop.module.css +4 -8
- package/moderncssm/desktop/components/side-modal/side-modal.js +3 -1
- package/moderncssm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/moderncssm/desktop/utils/get-hug-content-styles.d.ts +8 -0
- package/moderncssm/desktop/utils/get-hug-content-styles.js +17 -0
- package/moderncssm/desktop/utils/get-hug-content-styles.js.map +1 -0
- package/moderncssm/desktop/utils/get-margin-styles.d.ts +0 -1
- package/moderncssm/desktop/utils/get-margin-styles.js +11 -13
- package/moderncssm/desktop/utils/get-margin-styles.js.map +1 -1
- package/moderncssm/mobile/components/header/index.module.css +4 -6
- package/package.json +9 -9
- package/src/desktop/components/center-modal/center-modal.tsx +3 -1
- package/src/desktop/components/side-modal/side-modal.tsx +3 -1
- package/src/desktop/utils/get-hug-content-styles.ts +24 -0
- package/src/desktop/utils/get-margin-styles.ts +11 -16
|
@@ -2,7 +2,6 @@ import { type UniversalModalDesktopProps } from '../types/props';
|
|
|
2
2
|
interface Params {
|
|
3
3
|
styles: Record<string, string>;
|
|
4
4
|
margin: UniversalModalDesktopProps['margin'];
|
|
5
|
-
height: NonNullable<UniversalModalDesktopProps['height']>;
|
|
6
5
|
}
|
|
7
6
|
export declare const getMarginStyles: (params: Params) => Record<string, boolean>;
|
|
8
7
|
export {};
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { hasOwnProperty } from '@alfalab/core-components-shared/modern';
|
|
2
2
|
|
|
3
3
|
const getMarginStyles = (params) => {
|
|
4
|
-
const { margin, styles
|
|
5
|
-
if (margin) {
|
|
6
|
-
|
|
7
|
-
return {
|
|
8
|
-
[styles[`marginTop-${margin.top}`]]: hasOwnProperty(margin, 'top'),
|
|
9
|
-
[styles[`marginRight-${margin.right}`]]: hasOwnProperty(margin, 'right'),
|
|
10
|
-
[styles[`marginBottom-${margin.bottom}`]]: hasOwnProperty(margin, 'bottom'),
|
|
11
|
-
[styles[`marginLeft-${margin.left}`]]: hasOwnProperty(margin, 'left'),
|
|
12
|
-
[styles.hugContent]: isHugContent,
|
|
13
|
-
[styles[`topGap-${margin.top}`]]: isHugContent && hasOwnProperty(margin, 'top'),
|
|
14
|
-
[styles[`bottomGap-${margin.bottom}`]]: isHugContent && hasOwnProperty(margin, 'bottom'),
|
|
15
|
-
};
|
|
4
|
+
const { margin, styles } = params;
|
|
5
|
+
if (!margin) {
|
|
6
|
+
return {};
|
|
16
7
|
}
|
|
17
|
-
return {
|
|
8
|
+
return {
|
|
9
|
+
...(hasOwnProperty(margin, 'top') && { [styles[`marginTop-${margin.top}`]]: true }),
|
|
10
|
+
...(hasOwnProperty(margin, 'right') && { [styles[`marginRight-${margin.right}`]]: true }),
|
|
11
|
+
...(hasOwnProperty(margin, 'bottom') && {
|
|
12
|
+
[styles[`marginBottom-${margin.bottom}`]]: true,
|
|
13
|
+
}),
|
|
14
|
+
...(hasOwnProperty(margin, 'left') && { [styles[`marginLeft-${margin.left}`]]: true }),
|
|
15
|
+
};
|
|
18
16
|
};
|
|
19
17
|
|
|
20
18
|
export { getMarginStyles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-margin-styles.js","sources":["../../../src/desktop/utils/get-margin-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\ninterface Params {\n styles: Record<string, string>;\n margin: UniversalModalDesktopProps['margin'];\n
|
|
1
|
+
{"version":3,"file":"get-margin-styles.js","sources":["../../../src/desktop/utils/get-margin-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\ninterface Params {\n styles: Record<string, string>;\n margin: UniversalModalDesktopProps['margin'];\n}\n\nexport const getMarginStyles = (params: Params): Record<string, boolean> => {\n const { margin, styles } = params;\n\n if (!margin) {\n return {};\n }\n\n return {\n ...(hasOwnProperty(margin, 'top') && { [styles[`marginTop-${margin.top}`]]: true }),\n ...(hasOwnProperty(margin, 'right') && { [styles[`marginRight-${margin.right}`]]: true }),\n ...(hasOwnProperty(margin, 'bottom') && {\n [styles[`marginBottom-${margin.bottom}`]]: true,\n }),\n ...(hasOwnProperty(margin, 'left') && { [styles[`marginLeft-${margin.left}`]]: true }),\n };\n};\n"],"names":[],"mappings":";;AASa,MAAA,eAAe,GAAG,CAAC,MAAc,KAA6B;AACvE,IAAA,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;IAEjC,IAAI,CAAC,MAAM,EAAE;AACT,QAAA,OAAO,EAAE;;IAGb,OAAO;QACH,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAa,UAAA,EAAA,MAAM,CAAC,GAAG,CAAA,CAAE,CAAC,GAAG,IAAI,EAAE,CAAC;QACnF,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAe,YAAA,EAAA,MAAM,CAAC,KAAK,CAAA,CAAE,CAAC,GAAG,IAAI,EAAE,CAAC;AACzF,QAAA,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI;YACpC,CAAC,MAAM,CAAC,CAAA,aAAA,EAAgB,MAAM,CAAC,MAAM,CAAE,CAAA,CAAC,GAAG,IAAI;SAClD,CAAC;QACF,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAc,WAAA,EAAA,MAAM,CAAC,IAAI,CAAA,CAAE,CAAC,GAAG,IAAI,EAAE,CAAC;KACzF;AACL;;;;"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--gap-l: 20px;
|
|
3
2
|
--gap-0: 0px;
|
|
4
|
-
--gap-20:
|
|
3
|
+
--gap-20: 20px;
|
|
5
4
|
}
|
|
6
|
-
.universal-
|
|
5
|
+
.universal-modal__content_92r7v {
|
|
7
6
|
padding: var(--gap-20);
|
|
8
7
|
}
|
|
9
|
-
.universal-
|
|
8
|
+
.universal-modal__content_92r7v.universal-modal__withHeader_92r7v {
|
|
10
9
|
padding-top: var(--gap-0);
|
|
11
10
|
}
|
|
12
|
-
.universal-
|
|
11
|
+
.universal-modal__content_92r7v.universal-modal__withFooter_92r7v {
|
|
13
12
|
padding-bottom: var(--gap-0);
|
|
14
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"content":"universal-
|
|
3
|
+
const styles = {"content":"universal-modal__content_92r7v","withHeader":"universal-modal__withHeader_92r7v","withFooter":"universal-modal__withFooter_92r7v"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--gap-l: 20px;
|
|
3
2
|
--gap-0: 0px;
|
|
4
|
-
--gap-20:
|
|
3
|
+
--gap-20: 20px;
|
|
5
4
|
}
|
|
6
|
-
.universal-
|
|
5
|
+
.universal-modal__footer_sk6o6 {
|
|
7
6
|
padding: var(--gap-20);
|
|
8
7
|
}
|
|
9
|
-
.universal-
|
|
8
|
+
.universal-modal__sticky_sk6o6 {
|
|
10
9
|
bottom: var(--gap-0);
|
|
11
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"footer":"universal-
|
|
3
|
+
const styles = {"footer":"universal-modal__footer_sk6o6","sticky":"universal-modal__sticky_sk6o6"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--gap-
|
|
3
|
-
--gap-8: var(--gap-xs);
|
|
2
|
+
--gap-8: 8px;
|
|
4
3
|
}
|
|
5
|
-
.universal-
|
|
4
|
+
.universal-modal__column_18lpj {
|
|
6
5
|
flex-direction: column;
|
|
7
6
|
}
|
|
8
|
-
.universal-
|
|
7
|
+
.universal-modal__start_18lpj {
|
|
9
8
|
justify-content: flex-start;
|
|
10
9
|
}
|
|
11
|
-
.universal-
|
|
10
|
+
.universal-modal__center_18lpj {
|
|
12
11
|
justify-content: center;
|
|
13
12
|
}
|
|
14
|
-
.universal-modal__space-
|
|
13
|
+
.universal-modal__space-between_18lpj {
|
|
15
14
|
justify-content: space-between;
|
|
16
15
|
}
|
|
17
|
-
.universal-modal__space-
|
|
16
|
+
.universal-modal__space-between_18lpj > * {
|
|
18
17
|
flex: 1;
|
|
19
18
|
}
|
|
20
|
-
.universal-
|
|
21
|
-
.universal-
|
|
22
|
-
.universal-modal__space-
|
|
23
|
-
.universal-
|
|
19
|
+
.universal-modal__start_18lpj,
|
|
20
|
+
.universal-modal__center_18lpj,
|
|
21
|
+
.universal-modal__space-between_18lpj,
|
|
22
|
+
.universal-modal__column_18lpj {
|
|
24
23
|
display: flex;
|
|
25
24
|
gap: var(--gap-8);
|
|
26
25
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './layout.mobile.css';
|
|
2
2
|
|
|
3
|
-
const layoutStylesMobile = {"column":"universal-
|
|
3
|
+
const layoutStylesMobile = {"column":"universal-modal__column_18lpj","start":"universal-modal__start_18lpj","center":"universal-modal__center_18lpj","space-between":"universal-modal__space-between_18lpj"};
|
|
4
4
|
|
|
5
5
|
export { layoutStylesMobile as default };
|
|
6
6
|
//# sourceMappingURL=layout.mobile.module.css.js.map
|
|
@@ -1,37 +1,30 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--gap-
|
|
3
|
-
--gap-xs: 8px;
|
|
4
|
-
--gap-s: 12px;
|
|
5
|
-
--gap-m: 16px;
|
|
6
|
-
--gap-4: var(--gap-2xs);
|
|
2
|
+
--gap-4: 4px;
|
|
7
3
|
--gap-6: 6px;
|
|
8
|
-
--gap-8:
|
|
9
|
-
--gap-12:
|
|
10
|
-
--gap-16:
|
|
4
|
+
--gap-8: 8px;
|
|
5
|
+
--gap-12: 12px;
|
|
6
|
+
--gap-16: 16px;
|
|
11
7
|
}
|
|
12
8
|
:root {
|
|
13
|
-
--font-family-
|
|
14
|
-
|
|
15
|
-
Helvetica, sans-serif;
|
|
9
|
+
--font-family-system:
|
|
10
|
+
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
|
|
16
11
|
}
|
|
17
|
-
.universal-
|
|
12
|
+
.universal-modal__header_ruz9p {
|
|
18
13
|
padding: var(--gap-8) var(--gap-4);
|
|
19
14
|
}
|
|
20
|
-
.universal-
|
|
15
|
+
.universal-modal__content_ruz9p {
|
|
21
16
|
font-size: 20px;
|
|
22
17
|
line-height: 28px;
|
|
23
|
-
font-weight:
|
|
24
|
-
|
|
25
|
-
font-family: var(--font-family-alfasans);
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
font-family: var(--font-family-system);
|
|
26
20
|
padding: 0 var(--gap-12);
|
|
27
21
|
min-height: 40px;
|
|
28
22
|
justify-content: center;
|
|
29
23
|
}
|
|
30
|
-
.universal-
|
|
24
|
+
.universal-modal__bottomAddons_ruz9p {
|
|
31
25
|
font-size: 20px;
|
|
32
26
|
line-height: 28px;
|
|
33
|
-
font-weight:
|
|
34
|
-
|
|
35
|
-
font-family: var(--font-family-alfasans);
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
font-family: var(--font-family-system);
|
|
36
29
|
padding: var(--gap-6) var(--gap-16);
|
|
37
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const mobileStyles = {"header":"universal-
|
|
3
|
+
const mobileStyles = {"header":"universal-modal__header_ruz9p","content":"universal-modal__content_ruz9p","bottomAddons":"universal-modal__bottomAddons_ruz9p"};
|
|
4
4
|
|
|
5
5
|
export { mobileStyles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
package/modern/mobile/mobile.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--gap-0: 0px;
|
|
3
3
|
}
|
|
4
|
-
.universal-
|
|
4
|
+
.universal-modal__component_kzifs {
|
|
5
5
|
top: var(--gap-0);
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
}
|
|
14
|
-
.universal-
|
|
14
|
+
.universal-modal__component_kzifs .universal-modal__content_kzifs {
|
|
15
15
|
height: auto;
|
|
16
16
|
}
|
|
17
|
-
.universal-
|
|
17
|
+
.universal-modal__component_kzifs.universal-modal__component_kzifs {
|
|
18
18
|
position: fixed;
|
|
19
19
|
flex: 1;
|
|
20
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './mobile.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"component":"universal-
|
|
3
|
+
const styles = {"component":"universal-modal__component_kzifs","content":"universal-modal__content_kzifs"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=mobile.module.css.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.universal-
|
|
2
|
-
.universal-
|
|
1
|
+
.universal-modal__appear_1yodc,
|
|
2
|
+
.universal-modal__enter_1yodc {
|
|
3
3
|
transform: translateX(100%);
|
|
4
4
|
}
|
|
5
|
-
.universal-
|
|
6
|
-
.universal-
|
|
5
|
+
.universal-modal__appearActive_1yodc,
|
|
6
|
+
.universal-modal__enterActive_1yodc {
|
|
7
7
|
transform: translateX(0);
|
|
8
8
|
transition: transform 280ms ease-in-out;
|
|
9
9
|
transition-delay: 80ms;
|
|
10
10
|
}
|
|
11
|
-
.universal-
|
|
11
|
+
.universal-modal__exit_1yodc {
|
|
12
12
|
transform: translateX(0);
|
|
13
13
|
}
|
|
14
|
-
.universal-
|
|
15
|
-
.universal-
|
|
14
|
+
.universal-modal__exitActive_1yodc,
|
|
15
|
+
.universal-modal__exitDone_1yodc {
|
|
16
16
|
transform: translateX(100%);
|
|
17
17
|
transition: transform 280ms ease-in-out;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './right-side-transitions.mobile.css';
|
|
2
2
|
|
|
3
|
-
const rightSideTransitions = {"appear":"universal-
|
|
3
|
+
const rightSideTransitions = {"appear":"universal-modal__appear_1yodc","enter":"universal-modal__enter_1yodc","appearActive":"universal-modal__appearActive_1yodc","enterActive":"universal-modal__enterActive_1yodc","exit":"universal-modal__exit_1yodc","exitActive":"universal-modal__exitActive_1yodc","exitDone":"universal-modal__exitDone_1yodc"};
|
|
4
4
|
|
|
5
5
|
export { rightSideTransitions as default };
|
|
6
6
|
//# sourceMappingURL=right-side-transitions.mobile.module.css.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.universal-
|
|
2
|
-
.universal-
|
|
1
|
+
.universal-modal__appear_ava34,
|
|
2
|
+
.universal-modal__enter_ava34 {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
transform: translateY(15px);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.universal-
|
|
8
|
-
.universal-
|
|
7
|
+
.universal-modal__appearActive_ava34,
|
|
8
|
+
.universal-modal__enterActive_ava34 {
|
|
9
9
|
opacity: 1;
|
|
10
10
|
transform: translateY(0);
|
|
11
11
|
transition:
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
transform 200ms ease-in;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.universal-
|
|
16
|
+
.universal-modal__exit_ava34 {
|
|
17
17
|
opacity: 1;
|
|
18
18
|
transform: translateY(0);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.universal-
|
|
22
|
-
.universal-
|
|
21
|
+
.universal-modal__exitActive_ava34,
|
|
22
|
+
.universal-modal__exitDone_ava34 {
|
|
23
23
|
opacity: 0;
|
|
24
24
|
transform: translateY(15px);
|
|
25
25
|
transition:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './transitions.mobile.css';
|
|
2
2
|
|
|
3
|
-
const transitions = {"appear":"universal-
|
|
3
|
+
const transitions = {"appear":"universal-modal__appear_ava34","enter":"universal-modal__enter_ava34","appearActive":"universal-modal__appearActive_ava34","enterActive":"universal-modal__enterActive_ava34","exit":"universal-modal__exit_ava34","exitActive":"universal-modal__exitActive_ava34","exitDone":"universal-modal__exitDone_ava34"};
|
|
4
4
|
|
|
5
5
|
export { transitions as default };
|
|
6
6
|
//# sourceMappingURL=transitions.mobile.module.css.js.map
|
|
@@ -5,6 +5,7 @@ import { isMacOS, isSafari } from '@alfalab/core-components-shared/moderncssm';
|
|
|
5
5
|
import { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref.js';
|
|
6
6
|
import { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions.js';
|
|
7
7
|
import { getHeightStyle } from '../../utils/get-height-style.js';
|
|
8
|
+
import { getHugContentStyles } from '../../utils/get-hug-content-styles.js';
|
|
8
9
|
import { getMarginStyles } from '../../utils/get-margin-styles.js';
|
|
9
10
|
import { getWidthStyle } from '../../utils/get-width-style.js';
|
|
10
11
|
import { ModalContent } from '../modal-content/modal-content.js';
|
|
@@ -29,7 +30,8 @@ const CenterModal = forwardRef((props, ref) => {
|
|
|
29
30
|
[styles.wrapperJustifyEnd]: verticalAlign === 'bottom',
|
|
30
31
|
[styles.withoutOverlay]: withoutOverlay,
|
|
31
32
|
}), className: cn(styles.component, className, styles.baseModalComponent, {
|
|
32
|
-
...getMarginStyles({ styles, margin
|
|
33
|
+
...getMarginStyles({ styles, margin }),
|
|
34
|
+
...getHugContentStyles({ styles, margin, height }),
|
|
33
35
|
}), transitionProps: {
|
|
34
36
|
classNames: transitionProps,
|
|
35
37
|
...(isFullSizeModal && fullSizeModalContentTransitions),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"center-modal.js","sources":["../../../../src/desktop/components/center-modal/center-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\nimport { isMacOS, isSafari } from '@alfalab/core-components-shared';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthStyle } from '../../utils/get-width-style';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport styles from './index.module.css';\nimport safariTransitions from './transitions/safari-transitions.module.css';\nimport transitions from './transitions/transitions.module.css';\n\n// в safari некорректно отрабатывает transform:scale (???), поэтому применяем немного другую анимацию\nconst transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;\n\nexport const CenterModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n dataTestId,\n className,\n open,\n children,\n width = 500,\n height = 'hugContent',\n verticalAlign = 'center',\n overlay = true,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n\n const componentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n scrollHandler='content'\n scrollLock={overlay}\n wrapperClassName={cn(styles.baseModalContainer, {\n [styles.wrapperJustifyStart]: verticalAlign === 'top',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(styles.component, className, styles.baseModalComponent, {\n ...getMarginStyles({ styles, margin, height }),\n })}\n transitionProps={{\n classNames: transitionProps,\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n shouldRender: overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n ...getHeightStyle(height, margin),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent height={height} scrollableContainerRef={scrollableContainerRef}>\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"center-modal.js","sources":["../../../../src/desktop/components/center-modal/center-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\nimport { isMacOS, isSafari } from '@alfalab/core-components-shared';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getHugContentStyles } from '../../utils/get-hug-content-styles';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthStyle } from '../../utils/get-width-style';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport styles from './index.module.css';\nimport safariTransitions from './transitions/safari-transitions.module.css';\nimport transitions from './transitions/transitions.module.css';\n\n// в safari некорректно отрабатывает transform:scale (???), поэтому применяем немного другую анимацию\nconst transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;\n\nexport const CenterModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n dataTestId,\n className,\n open,\n children,\n width = 500,\n height = 'hugContent',\n verticalAlign = 'center',\n overlay = true,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n\n const componentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n scrollHandler='content'\n scrollLock={overlay}\n wrapperClassName={cn(styles.baseModalContainer, {\n [styles.wrapperJustifyStart]: verticalAlign === 'top',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(styles.component, className, styles.baseModalComponent, {\n ...getMarginStyles({ styles, margin }),\n ...getHugContentStyles({ styles, margin, height }),\n })}\n transitionProps={{\n classNames: transitionProps,\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n shouldRender: overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n ...getHeightStyle(height, margin),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent height={height} scrollableContainerRef={scrollableContainerRef}>\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA;AACA,MAAM,eAAe,GAAG,OAAO,EAAE,IAAI,QAAQ,EAAE,GAAG,iBAAiB,GAAG,WAAW;AAEpE,MAAA,WAAW,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC7F,IAAA,MAAM,EACF,UAAU,EACV,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,MAAM,EACN,sBAAsB,EAAE,0BAA0B,EAClD,OAAO,EACP,GAAG,SAAS,EACf,GAAG,KAAK;AAET,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,yBAAyB,CAAC;QACtE,OAAO;AACP,QAAA,SAAS,EAAE,0BAA0B;AACxC,KAAA,CAAC;IAEF,MAAM,EACF,eAAe,EACf,oBAAoB,EAAE,+BAA+B,EACrD,mBAAmB,EAAE,gCAAgC,GACxD,GAAG,2BAA2B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEjE,IAAA,MAAM,cAAc,GAAG,CAAC,OAAO;AAE/B,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,EACF,EAAA,GAAA,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAC,SAAS,EACvB,UAAU,EAAE,OAAO,EACnB,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,kBAAkB,EAAE;AAC5C,YAAA,CAAC,MAAM,CAAC,mBAAmB,GAAG,aAAa,KAAK,KAAK;AACrD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;AACtD,YAAA,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc;AAC1C,SAAA,CAAC,EACF,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,EAAE;AAClE,YAAA,GAAG,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;YACtC,GAAG,mBAAmB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;SACrD,CAAC,EACF,eAAe,EAAE;AACb,YAAA,UAAU,EAAE,eAAe;AAC3B,YAAA,IAAI,eAAe,IAAI,+BAA+B,CAAC;YACvD,GAAG,SAAS,CAAC,eAAe;AAC/B,SAAA,EACD,aAAa,EAAE;AACX,YAAA,YAAY,EAAE,OAAO;AACrB,YAAA,IAAI,eAAe,IAAI,gCAAgC,CAAC;YACxD,GAAG,SAAS,CAAC,aAAa;AAC7B,SAAA,EACD,iBAAiB,EAAE;AACf,YAAA,KAAK,EAAE;AACH,gBAAA,KAAK,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC;AACnC,gBAAA,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACpC,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB,EACvE,EAAA,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
font-size: 22px;
|
|
9
9
|
line-height: 26px;
|
|
10
10
|
font-weight: 700;
|
|
11
|
-
|
|
12
|
-
font-family: var(--font-family-alfasans);
|
|
11
|
+
font-family: var(--font-family-system);
|
|
13
12
|
padding: 11px var(--gap-12);
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -17,8 +16,7 @@
|
|
|
17
16
|
font-size: 22px;
|
|
18
17
|
line-height: 26px;
|
|
19
18
|
font-weight: 700;
|
|
20
|
-
|
|
21
|
-
font-family: var(--font-family-alfasans);
|
|
19
|
+
font-family: var(--font-family-system);
|
|
22
20
|
padding: var(--gap-6) var(--gap-12) var(--gap-16);
|
|
23
21
|
}
|
|
24
22
|
|
|
@@ -26,8 +24,7 @@
|
|
|
26
24
|
font-size: 30px;
|
|
27
25
|
line-height: 36px;
|
|
28
26
|
font-weight: 700;
|
|
29
|
-
|
|
30
|
-
font-family: var(--font-family-alfasans);
|
|
27
|
+
font-family: var(--font-family-system);
|
|
31
28
|
padding: var(--gap-6) var(--gap-12) var(--gap-16);
|
|
32
29
|
}
|
|
33
30
|
|
|
@@ -35,6 +32,5 @@
|
|
|
35
32
|
font-size: 30px;
|
|
36
33
|
line-height: 36px;
|
|
37
34
|
font-weight: 700;
|
|
38
|
-
|
|
39
|
-
font-family: var(--font-family-alfasans);
|
|
35
|
+
font-family: var(--font-family-system);
|
|
40
36
|
}
|
|
@@ -4,6 +4,7 @@ import { BaseModal } from '@alfalab/core-components-base-modal/moderncssm';
|
|
|
4
4
|
import { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref.js';
|
|
5
5
|
import { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions.js';
|
|
6
6
|
import { getHeightStyle } from '../../utils/get-height-style.js';
|
|
7
|
+
import { getHugContentStyles } from '../../utils/get-hug-content-styles.js';
|
|
7
8
|
import { getMarginStyles } from '../../utils/get-margin-styles.js';
|
|
8
9
|
import { getWidthStyle } from '../../utils/get-width-style.js';
|
|
9
10
|
import { ModalContent } from '../modal-content/modal-content.js';
|
|
@@ -27,7 +28,8 @@ const SideModal = forwardRef((props, ref) => {
|
|
|
27
28
|
[styles.wrapperJustifyEnd]: verticalAlign === 'bottom',
|
|
28
29
|
[styles.withoutOverlay]: withoutOverlay,
|
|
29
30
|
}), className: cn(styles.component, className, styles.baseModalComponent, {
|
|
30
|
-
...getMarginStyles({ styles, margin
|
|
31
|
+
...getMarginStyles({ styles, margin }),
|
|
32
|
+
...getHugContentStyles({ styles, margin, height }),
|
|
31
33
|
}), contentClassName: styles.content, transitionProps: {
|
|
32
34
|
...getDefaultTransitionProps({
|
|
33
35
|
horizontalAlign,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-modal.js","sources":["../../../../src/desktop/components/side-modal/side-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthStyle } from '../../utils/get-width-style';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport { getDefaultTransitionProps } from './get-default-transition-props';\n\nimport styles from './index.module.css';\n\nexport const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n width = 500,\n height = 'fullHeight',\n horizontalAlign = 'center',\n verticalAlign = 'center',\n overlay = true,\n open,\n dataTestId,\n className,\n children,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n contentElementRef={contentRef}\n scrollHandler='content'\n scrollLock={overlay}\n wrapperClassName={cn(styles.wrapper, styles.baseModalContainer, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(styles.component, className, styles.baseModalComponent, {\n ...getMarginStyles({ styles, margin, height }),\n })}\n contentClassName={styles.content}\n transitionProps={{\n ...getDefaultTransitionProps({\n horizontalAlign,\n margin,\n }),\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n shouldRender: overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n ...getHeightStyle(height, margin),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent height={height} scrollableContainerRef={scrollableContainerRef}>\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"side-modal.js","sources":["../../../../src/desktop/components/side-modal/side-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightStyle } from '../../utils/get-height-style';\nimport { getHugContentStyles } from '../../utils/get-hug-content-styles';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthStyle } from '../../utils/get-width-style';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport { getDefaultTransitionProps } from './get-default-transition-props';\n\nimport styles from './index.module.css';\n\nexport const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n width = 500,\n height = 'fullHeight',\n horizontalAlign = 'center',\n verticalAlign = 'center',\n overlay = true,\n open,\n dataTestId,\n className,\n children,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n contentElementRef={contentRef}\n scrollHandler='content'\n scrollLock={overlay}\n wrapperClassName={cn(styles.wrapper, styles.baseModalContainer, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(styles.component, className, styles.baseModalComponent, {\n ...getMarginStyles({ styles, margin }),\n ...getHugContentStyles({ styles, margin, height }),\n })}\n contentClassName={styles.content}\n transitionProps={{\n ...getDefaultTransitionProps({\n horizontalAlign,\n margin,\n }),\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n shouldRender: overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: getWidthStyle(width, margin),\n ...getHeightStyle(height, margin),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent height={height} scrollableContainerRef={scrollableContainerRef}>\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;AAkBa,MAAA,SAAS,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC3F,IAAA,MAAM,EACF,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,eAAe,GAAG,QAAQ,EAC1B,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,IAAI,EACJ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAM,EACN,sBAAsB,EAAE,0BAA0B,EAClD,OAAO,EACP,GAAG,SAAS,EACf,GAAG,KAAK;AACT,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC;AAC/C,IAAA,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,yBAAyB,CAAC;QACtE,OAAO;AACP,QAAA,SAAS,EAAE,0BAA0B;AACxC,KAAA,CAAC;IAEF,MAAM,EACF,eAAe,EACf,oBAAoB,EAAE,+BAA+B,EACrD,mBAAmB,EAAE,gCAAgC,GACxD,GAAG,2BAA2B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEjE,IAAA,MAAM,cAAc,GAAG,CAAC,OAAO;IAE/B,QACI,oBAAC,SAAS,EAAA,EAAA,GACF,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,iBAAiB,EAAE,UAAU,EAC7B,aAAa,EAAC,SAAS,EACvB,UAAU,EAAE,OAAO,EACnB,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE;AAC5D,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,eAAe,KAAK,OAAO;AACvD,YAAA,CAAC,MAAM,CAAC,eAAe,GAAG,eAAe,KAAK,KAAK;AACnD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;AACtD,YAAA,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc;AAC1C,SAAA,CAAC,EACF,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,EAAE;AAClE,YAAA,GAAG,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;YACtC,GAAG,mBAAmB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;SACrD,CAAC,EACF,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAChC,eAAe,EAAE;AACb,YAAA,GAAG,yBAAyB,CAAC;gBACzB,eAAe;gBACf,MAAM;aACT,CAAC;AACF,YAAA,IAAI,eAAe,IAAI,+BAA+B,CAAC;YACvD,GAAG,SAAS,CAAC,eAAe;AAC/B,SAAA,EACD,aAAa,EAAE;AACX,YAAA,YAAY,EAAE,OAAO;AACrB,YAAA,IAAI,eAAe,IAAI,gCAAgC,CAAC;YACxD,GAAG,SAAS,CAAC,aAAa;AAC7B,SAAA,EACD,iBAAiB,EAAE;AACf,YAAA,KAAK,EAAE;AACH,gBAAA,KAAK,EAAE,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC;AACnC,gBAAA,GAAG,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC;AACpC,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB,EACvE,EAAA,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type UniversalModalDesktopProps } from '../types/props';
|
|
2
|
+
interface Params {
|
|
3
|
+
styles: Record<string, string>;
|
|
4
|
+
margin: UniversalModalDesktopProps['margin'];
|
|
5
|
+
height: NonNullable<UniversalModalDesktopProps['height']>;
|
|
6
|
+
}
|
|
7
|
+
export declare const getHugContentStyles: (params: Params) => Record<string, boolean>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { hasOwnProperty } from '@alfalab/core-components-shared/moderncssm';
|
|
2
|
+
|
|
3
|
+
const getHugContentStyles = (params) => {
|
|
4
|
+
const { margin, styles, height } = params;
|
|
5
|
+
if (height !== 'hugContent') {
|
|
6
|
+
return {};
|
|
7
|
+
}
|
|
8
|
+
return {
|
|
9
|
+
[styles.hugContent]: true,
|
|
10
|
+
...(margin && hasOwnProperty(margin, 'top') && { [styles[`topGap-${margin.top}`]]: true }),
|
|
11
|
+
...(margin &&
|
|
12
|
+
hasOwnProperty(margin, 'bottom') && { [styles[`bottomGap-${margin.bottom}`]]: true }),
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { getHugContentStyles };
|
|
17
|
+
//# sourceMappingURL=get-hug-content-styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-hug-content-styles.js","sources":["../../../src/desktop/utils/get-hug-content-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\ninterface Params {\n styles: Record<string, string>;\n margin: UniversalModalDesktopProps['margin'];\n height: NonNullable<UniversalModalDesktopProps['height']>;\n}\n\nexport const getHugContentStyles = (params: Params): Record<string, boolean> => {\n const { margin, styles, height } = params;\n\n if (height !== 'hugContent') {\n return {};\n }\n\n return {\n [styles.hugContent]: true,\n ...(margin && hasOwnProperty(margin, 'top') && { [styles[`topGap-${margin.top}`]]: true }),\n ...(margin &&\n hasOwnProperty(margin, 'bottom') && { [styles[`bottomGap-${margin.bottom}`]]: true }),\n };\n};\n"],"names":[],"mappings":";;AAUa,MAAA,mBAAmB,GAAG,CAAC,MAAc,KAA6B;IAC3E,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;AAEzC,IAAA,IAAI,MAAM,KAAK,YAAY,EAAE;AACzB,QAAA,OAAO,EAAE;;IAGb,OAAO;AACH,QAAA,CAAC,MAAM,CAAC,UAAU,GAAG,IAAI;QACzB,IAAI,MAAM,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAA,OAAA,EAAU,MAAM,CAAC,GAAG,CAAA,CAAE,CAAC,GAAG,IAAI,EAAE,CAAC;AAC1F,QAAA,IAAI,MAAM;YACN,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,aAAa,MAAM,CAAC,MAAM,CAAE,CAAA,CAAC,GAAG,IAAI,EAAE,CAAC;KAC5F;AACL;;;;"}
|
|
@@ -2,7 +2,6 @@ import { type UniversalModalDesktopProps } from '../types/props';
|
|
|
2
2
|
interface Params {
|
|
3
3
|
styles: Record<string, string>;
|
|
4
4
|
margin: UniversalModalDesktopProps['margin'];
|
|
5
|
-
height: NonNullable<UniversalModalDesktopProps['height']>;
|
|
6
5
|
}
|
|
7
6
|
export declare const getMarginStyles: (params: Params) => Record<string, boolean>;
|
|
8
7
|
export {};
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { hasOwnProperty } from '@alfalab/core-components-shared/moderncssm';
|
|
2
2
|
|
|
3
3
|
const getMarginStyles = (params) => {
|
|
4
|
-
const { margin, styles
|
|
5
|
-
if (margin) {
|
|
6
|
-
|
|
7
|
-
return {
|
|
8
|
-
[styles[`marginTop-${margin.top}`]]: hasOwnProperty(margin, 'top'),
|
|
9
|
-
[styles[`marginRight-${margin.right}`]]: hasOwnProperty(margin, 'right'),
|
|
10
|
-
[styles[`marginBottom-${margin.bottom}`]]: hasOwnProperty(margin, 'bottom'),
|
|
11
|
-
[styles[`marginLeft-${margin.left}`]]: hasOwnProperty(margin, 'left'),
|
|
12
|
-
[styles.hugContent]: isHugContent,
|
|
13
|
-
[styles[`topGap-${margin.top}`]]: isHugContent && hasOwnProperty(margin, 'top'),
|
|
14
|
-
[styles[`bottomGap-${margin.bottom}`]]: isHugContent && hasOwnProperty(margin, 'bottom'),
|
|
15
|
-
};
|
|
4
|
+
const { margin, styles } = params;
|
|
5
|
+
if (!margin) {
|
|
6
|
+
return {};
|
|
16
7
|
}
|
|
17
|
-
return {
|
|
8
|
+
return {
|
|
9
|
+
...(hasOwnProperty(margin, 'top') && { [styles[`marginTop-${margin.top}`]]: true }),
|
|
10
|
+
...(hasOwnProperty(margin, 'right') && { [styles[`marginRight-${margin.right}`]]: true }),
|
|
11
|
+
...(hasOwnProperty(margin, 'bottom') && {
|
|
12
|
+
[styles[`marginBottom-${margin.bottom}`]]: true,
|
|
13
|
+
}),
|
|
14
|
+
...(hasOwnProperty(margin, 'left') && { [styles[`marginLeft-${margin.left}`]]: true }),
|
|
15
|
+
};
|
|
18
16
|
};
|
|
19
17
|
|
|
20
18
|
export { getMarginStyles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-margin-styles.js","sources":["../../../src/desktop/utils/get-margin-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\ninterface Params {\n styles: Record<string, string>;\n margin: UniversalModalDesktopProps['margin'];\n
|
|
1
|
+
{"version":3,"file":"get-margin-styles.js","sources":["../../../src/desktop/utils/get-margin-styles.ts"],"sourcesContent":["import { hasOwnProperty } from '@alfalab/core-components-shared';\n\nimport { type UniversalModalDesktopProps } from '../types/props';\n\ninterface Params {\n styles: Record<string, string>;\n margin: UniversalModalDesktopProps['margin'];\n}\n\nexport const getMarginStyles = (params: Params): Record<string, boolean> => {\n const { margin, styles } = params;\n\n if (!margin) {\n return {};\n }\n\n return {\n ...(hasOwnProperty(margin, 'top') && { [styles[`marginTop-${margin.top}`]]: true }),\n ...(hasOwnProperty(margin, 'right') && { [styles[`marginRight-${margin.right}`]]: true }),\n ...(hasOwnProperty(margin, 'bottom') && {\n [styles[`marginBottom-${margin.bottom}`]]: true,\n }),\n ...(hasOwnProperty(margin, 'left') && { [styles[`marginLeft-${margin.left}`]]: true }),\n };\n};\n"],"names":[],"mappings":";;AASa,MAAA,eAAe,GAAG,CAAC,MAAc,KAA6B;AACvE,IAAA,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM;IAEjC,IAAI,CAAC,MAAM,EAAE;AACT,QAAA,OAAO,EAAE;;IAGb,OAAO;QACH,IAAI,cAAc,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAa,UAAA,EAAA,MAAM,CAAC,GAAG,CAAA,CAAE,CAAC,GAAG,IAAI,EAAE,CAAC;QACnF,IAAI,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAe,YAAA,EAAA,MAAM,CAAC,KAAK,CAAA,CAAE,CAAC,GAAG,IAAI,EAAE,CAAC;AACzF,QAAA,IAAI,cAAc,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI;YACpC,CAAC,MAAM,CAAC,CAAA,aAAA,EAAgB,MAAM,CAAC,MAAM,CAAE,CAAA,CAAC,GAAG,IAAI;SAClD,CAAC;QACF,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC,CAAc,WAAA,EAAA,MAAM,CAAC,IAAI,CAAA,CAAE,CAAC,GAAG,IAAI,EAAE,CAAC;KACzF;AACL;;;;"}
|
|
@@ -7,9 +7,8 @@
|
|
|
7
7
|
.content {
|
|
8
8
|
font-size: 20px;
|
|
9
9
|
line-height: 28px;
|
|
10
|
-
font-weight:
|
|
11
|
-
|
|
12
|
-
font-family: var(--font-family-alfasans);
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
font-family: var(--font-family-system);
|
|
13
12
|
padding: 0 var(--gap-12);
|
|
14
13
|
min-height: 40px;
|
|
15
14
|
justify-content: center;
|
|
@@ -18,8 +17,7 @@
|
|
|
18
17
|
.bottomAddons {
|
|
19
18
|
font-size: 20px;
|
|
20
19
|
line-height: 28px;
|
|
21
|
-
font-weight:
|
|
22
|
-
|
|
23
|
-
font-family: var(--font-family-alfasans);
|
|
20
|
+
font-weight: 600;
|
|
21
|
+
font-family: var(--font-family-system);
|
|
24
22
|
padding: var(--gap-6) var(--gap-16);
|
|
25
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-universal-modal",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"description": "UniversalModal component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"build": "rollup -c ../../tools/rollup/rollup.config.mjs --silent"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@alfalab/core-components-backdrop": "5.0.2
|
|
17
|
-
"@alfalab/core-components-base-modal": "7.1.
|
|
18
|
-
"@alfalab/core-components-mq": "6.0.
|
|
19
|
-
"@alfalab/core-components-navigation-bar-private": "2.0.
|
|
20
|
-
"@alfalab/core-components-scrollbar": "5.0.
|
|
21
|
-
"@alfalab/core-components-shared": "2.2.
|
|
16
|
+
"@alfalab/core-components-backdrop": "^5.0.2",
|
|
17
|
+
"@alfalab/core-components-base-modal": "^7.1.8",
|
|
18
|
+
"@alfalab/core-components-mq": "^6.0.7",
|
|
19
|
+
"@alfalab/core-components-navigation-bar-private": "^2.0.13",
|
|
20
|
+
"@alfalab/core-components-scrollbar": "^5.0.6",
|
|
21
|
+
"@alfalab/core-components-shared": "^2.2.3",
|
|
22
22
|
"@types/react-transition-group": "^4.4.12",
|
|
23
23
|
"classnames": "^2.5.1",
|
|
24
24
|
"react-merge-refs": "^1.1.0",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"access": "public",
|
|
34
34
|
"directory": "dist"
|
|
35
35
|
},
|
|
36
|
-
"themesVersion": "15.2.
|
|
37
|
-
"varsVersion": "11.2.
|
|
36
|
+
"themesVersion": "15.2.1",
|
|
37
|
+
"varsVersion": "11.2.1"
|
|
38
38
|
}
|