@alfalab/core-components-confirmation 13.10.4 → 13.10.5

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.
Files changed (70) hide show
  1. package/components/base-confirmation/component.js +7 -4
  2. package/components/base-confirmation/index.css +6 -5
  3. package/components/countdown-loader/component.js +1 -1
  4. package/components/countdown-loader/index.css +2 -2
  5. package/components/header/component.js +1 -1
  6. package/components/header/index.css +4 -4
  7. package/components/screens/fatal-error/component.js +1 -1
  8. package/components/screens/fatal-error/index.css +7 -7
  9. package/components/screens/hint/component.js +1 -1
  10. package/components/screens/hint/index.css +13 -13
  11. package/components/screens/initial/component.js +1 -1
  12. package/components/screens/initial/countdown-section.js +1 -1
  13. package/components/screens/initial/index.css +20 -20
  14. package/components/screens/temp-block/component.js +1 -1
  15. package/components/screens/temp-block/index.css +9 -9
  16. package/components/screens/temp-block-over/component.js +1 -1
  17. package/components/screens/temp-block-over/index.css +6 -6
  18. package/{countdown-section-1b73699c.js → countdown-section-258f2fb9.js} +1 -1
  19. package/cssm/components/base-confirmation/component.js +6 -3
  20. package/cssm/components/base-confirmation/index.module.css +4 -3
  21. package/esm/components/base-confirmation/component.js +7 -4
  22. package/esm/components/base-confirmation/index.css +6 -5
  23. package/esm/components/countdown-loader/component.js +1 -1
  24. package/esm/components/countdown-loader/index.css +2 -2
  25. package/esm/components/header/component.js +1 -1
  26. package/esm/components/header/index.css +4 -4
  27. package/esm/components/screens/fatal-error/component.js +1 -1
  28. package/esm/components/screens/fatal-error/index.css +7 -7
  29. package/esm/components/screens/hint/component.js +1 -1
  30. package/esm/components/screens/hint/index.css +13 -13
  31. package/esm/components/screens/initial/component.js +1 -1
  32. package/esm/components/screens/initial/countdown-section.js +1 -1
  33. package/esm/components/screens/initial/index.css +20 -20
  34. package/esm/components/screens/temp-block/component.js +1 -1
  35. package/esm/components/screens/temp-block/index.css +9 -9
  36. package/esm/components/screens/temp-block-over/component.js +1 -1
  37. package/esm/components/screens/temp-block-over/index.css +6 -6
  38. package/esm/{countdown-section-9901d246.js → countdown-section-214fffb8.js} +1 -1
  39. package/esm/mobile/component.mobile.js +1 -1
  40. package/esm/mobile/mobile.css +2 -2
  41. package/mobile/component.mobile.js +1 -1
  42. package/mobile/mobile.css +2 -2
  43. package/modern/components/base-confirmation/component.js +4 -2
  44. package/modern/components/base-confirmation/index.css +6 -5
  45. package/modern/components/countdown-loader/component.js +1 -1
  46. package/modern/components/countdown-loader/index.css +2 -2
  47. package/modern/components/header/component.js +1 -1
  48. package/modern/components/header/index.css +4 -4
  49. package/modern/components/screens/fatal-error/component.js +1 -1
  50. package/modern/components/screens/fatal-error/index.css +7 -7
  51. package/modern/components/screens/hint/component.js +1 -1
  52. package/modern/components/screens/hint/index.css +13 -13
  53. package/modern/components/screens/initial/component.js +1 -1
  54. package/modern/components/screens/initial/countdown-section.js +1 -1
  55. package/modern/components/screens/initial/index.css +20 -20
  56. package/modern/components/screens/temp-block/component.js +1 -1
  57. package/modern/components/screens/temp-block/index.css +9 -9
  58. package/modern/components/screens/temp-block-over/component.js +1 -1
  59. package/modern/components/screens/temp-block-over/index.css +6 -6
  60. package/modern/{countdown-section-113af7c0.js → countdown-section-4580d2ec.js} +1 -1
  61. package/modern/mobile/component.mobile.js +1 -1
  62. package/modern/mobile/mobile.css +2 -2
  63. package/moderncssm/components/base-confirmation/component.js +3 -1
  64. package/moderncssm/components/base-confirmation/index.module.css +5 -2
  65. package/package.json +8 -8
  66. package/src/components/base-confirmation/component.tsx +6 -1
  67. package/src/components/base-confirmation/index.module.css +4 -1
  68. /package/{countdown-section-1b73699c.d.ts → countdown-section-258f2fb9.d.ts} +0 -0
  69. /package/esm/{countdown-section-9901d246.d.ts → countdown-section-214fffb8.d.ts} +0 -0
  70. /package/modern/{countdown-section-113af7c0.d.ts → countdown-section-4580d2ec.d.ts} +0 -0
@@ -6,7 +6,7 @@ import { Text } from '@alfalab/core-components-typography/modern';
6
6
  import { ConfirmationContext } from './context.js';
7
7
  import { formatMsAsMinutes } from './utils.js';
8
8
 
9
- const styles = {"component":"confirmation__component_y8rk3","phone":"confirmation__phone_y8rk3","typographyTheme":"confirmation__typographyTheme_y8rk3","typographyThemeMobile":"confirmation__typographyThemeMobile_y8rk3","compact":"confirmation__compact_y8rk3","loaderWrap":"confirmation__loaderWrap_y8rk3","left":"confirmation__left_y8rk3","center":"confirmation__center_y8rk3","codeInput":"confirmation__codeInput_y8rk3","smsBtn":"confirmation__smsBtn_y8rk3","smsComeLink":"confirmation__smsComeLink_y8rk3","countdownContainer":"confirmation__countdownContainer_y8rk3","countdownMobile":"confirmation__countdownMobile_y8rk3","countdownLoaderMobile":"confirmation__countdownLoaderMobile_y8rk3","timeCounter":"confirmation__timeCounter_y8rk3","getCodeButton":"confirmation__getCodeButton_y8rk3","getCodeButtonMobile":"confirmation__getCodeButtonMobile_y8rk3","containerInput":"confirmation__containerInput_y8rk3"};
9
+ const styles = {"component":"confirmation__component_mkw51","phone":"confirmation__phone_mkw51","typographyTheme":"confirmation__typographyTheme_mkw51","typographyThemeMobile":"confirmation__typographyThemeMobile_mkw51","compact":"confirmation__compact_mkw51","loaderWrap":"confirmation__loaderWrap_mkw51","left":"confirmation__left_mkw51","center":"confirmation__center_mkw51","codeInput":"confirmation__codeInput_mkw51","smsBtn":"confirmation__smsBtn_mkw51","smsComeLink":"confirmation__smsComeLink_mkw51","countdownContainer":"confirmation__countdownContainer_mkw51","countdownMobile":"confirmation__countdownMobile_mkw51","countdownLoaderMobile":"confirmation__countdownLoaderMobile_mkw51","timeCounter":"confirmation__timeCounter_mkw51","getCodeButton":"confirmation__getCodeButton_mkw51","getCodeButtonMobile":"confirmation__getCodeButtonMobile_mkw51","containerInput":"confirmation__containerInput_mkw51"};
10
10
  require('./components/screens/initial/index.css')
11
11
 
12
12
  const CountdownSection = ({ codeSendHintVisible, timePassed, processing, mobile, handleSmsRetryClick, }) => {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { BaseConfirmation } from '../components/base-confirmation/component.js';
4
4
 
5
- const styles = {"container":"confirmation__container_jofv4"};
5
+ const styles = {"container":"confirmation__container_80kg1"};
6
6
  require('./mobile.css')
7
7
 
8
8
  const ConfirmationMobile = ({ className, ...resProps }) => (React.createElement(BaseConfirmation, { mobile: true, className: cn(className, styles.container), ...resProps }));
@@ -1,4 +1,4 @@
1
- /* hash: ysde4 */
2
- .confirmation__container_jofv4 {
1
+ /* hash: 1v279 */
2
+ .confirmation__container_80kg1 {
3
3
  max-width: 288px;
4
4
  }
@@ -83,7 +83,9 @@ const BaseConfirmation = ({ state, screen, alignContent = 'left', children, requ
83
83
  const screensMap = customScreen || confirmationScreens;
84
84
  const CurrentScreen = screensMap[screen];
85
85
  return (React.createElement(ConfirmationContext.Provider, { value: contextValue },
86
- React.createElement("div", { className: cn(styles.component, className), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, { mobile: mobile }))));
86
+ React.createElement("div", { className: cn(styles.component, className, {
87
+ [styles.center]: alignContent === 'center',
88
+ }), "data-test-id": dataTestId }, CurrentScreen && React.createElement(CurrentScreen, { mobile: mobile }))));
87
89
  };
88
90
 
89
91
  export { BaseConfirmation };
@@ -3,6 +3,9 @@
3
3
  .component {
4
4
  width: 100%;
5
5
  max-width: 388px;
6
- margin: var(--gap-0) auto;
7
- color: var(--color-light-text-secondary);
6
+ color: var(--color-light-text-secondary)
8
7
  }
8
+
9
+ .component.center {
10
+ margin: var(--gap-0) auto;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-confirmation",
3
- "version": "13.10.4",
3
+ "version": "13.10.5",
4
4
  "description": "Sms confirmation component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -12,20 +12,20 @@
12
12
  },
13
13
  "sideEffects": false,
14
14
  "dependencies": {
15
- "@alfalab/core-components-button": "^11.11.9",
16
- "@alfalab/core-components-code-input": "^3.9.9",
15
+ "@alfalab/core-components-button": "^11.11.10",
16
+ "@alfalab/core-components-code-input": "^3.9.10",
17
17
  "@alfalab/core-components-link": "^5.3.4",
18
- "@alfalab/core-components-spinner": "^4.0.8",
19
- "@alfalab/core-components-typography": "^4.14.2",
18
+ "@alfalab/core-components-spinner": "^4.0.9",
19
+ "@alfalab/core-components-typography": "^4.14.3",
20
20
  "@alfalab/core-components-mq": "^4.4.1",
21
21
  "@alfalab/hooks": "^1.13.1",
22
22
  "classnames": "^2.5.1",
23
23
  "tslib": "^2.4.0",
24
- "@alfalab/core-components-shared": "^0.17.1"
24
+ "@alfalab/core-components-shared": "^0.18.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
28
28
  },
29
- "themesVersion": "13.7.3",
30
- "varsVersion": "9.20.0"
29
+ "themesVersion": "13.7.4",
30
+ "varsVersion": "9.20.1"
31
31
  }
@@ -130,7 +130,12 @@ export const BaseConfirmation: FC<ConfirmationProps> = ({
130
130
 
131
131
  return (
132
132
  <ConfirmationContext.Provider value={contextValue}>
133
- <div className={cn(styles.component, className)} data-test-id={dataTestId}>
133
+ <div
134
+ className={cn(styles.component, className, {
135
+ [styles.center]: alignContent === 'center',
136
+ })}
137
+ data-test-id={dataTestId}
138
+ >
134
139
  {CurrentScreen && <CurrentScreen mobile={mobile} />}
135
140
  </div>
136
141
  </ConfirmationContext.Provider>
@@ -3,6 +3,9 @@
3
3
  .component {
4
4
  width: 100%;
5
5
  max-width: 388px;
6
- margin: var(--gap-0) auto;
7
6
  color: var(--color-light-text-secondary);
7
+
8
+ &.center {
9
+ margin: var(--gap-0) auto;
10
+ }
8
11
  }