@salutejs/plasma-new-hope 0.327.0-canary.1973.15733948288.0 → 0.327.0-canary.2010.15678347777.0
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/cjs/components/CodeField/CodeField.js +16 -15
- package/cjs/components/CodeField/CodeField.js.map +1 -1
- package/cjs/components/Tour/Tour.css +4 -0
- package/cjs/components/Tour/Tour.js +224 -0
- package/cjs/components/Tour/Tour.js.map +1 -0
- package/cjs/components/Tour/Tour.styles.js +51 -0
- package/cjs/components/Tour/Tour.styles.js.map +1 -0
- package/cjs/components/Tour/Tour.styles_1ks2isn.css +4 -0
- package/cjs/components/Tour/Tour.tokens.js +21 -0
- package/cjs/components/Tour/Tour.tokens.js.map +1 -0
- package/cjs/components/Tour/utils/index.js +19 -0
- package/cjs/components/Tour/utils/index.js.map +1 -0
- package/cjs/components/{CodeInput/variations/_disabled → Tour/variatoins/_size}/base.js +2 -2
- package/cjs/components/Tour/variatoins/_size/base.js.map +1 -0
- package/cjs/components/Tour/variatoins/_size/base_x642ct.css +1 -0
- package/cjs/components/{CodeInput/variations/_size → Tour/variatoins/_view}/base.js +2 -2
- package/cjs/components/Tour/variatoins/_view/base.js.map +1 -0
- package/cjs/components/Tour/variatoins/_view/base_x642ct.css +1 -0
- package/cjs/index.css +5 -15
- package/cjs/index.js +6 -12
- package/cjs/index.js.map +1 -1
- package/cjs/utils/constants.js +0 -12
- package/cjs/utils/constants.js.map +1 -1
- package/cjs/utils/index.js.map +1 -1
- package/emotion/cjs/components/CodeField/CodeField.js +16 -14
- package/emotion/cjs/components/Tour/Tour.js +233 -0
- package/emotion/cjs/components/Tour/Tour.styles.js +48 -0
- package/emotion/cjs/components/Tour/Tour.tokens.js +19 -0
- package/emotion/cjs/components/Tour/index.js +31 -0
- package/emotion/cjs/components/Tour/utils/index.js +18 -0
- package/emotion/cjs/components/Tour/variatoins/_size/base.js +8 -0
- package/emotion/cjs/components/Tour/variatoins/_view/base.js +8 -0
- package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.config.js +6 -6
- package/emotion/cjs/examples/plasma_b2c/components/Tour/Tour.config.js +22 -0
- package/emotion/cjs/examples/plasma_b2c/components/Tour/Tour.js +11 -0
- package/emotion/cjs/examples/plasma_b2c/components/Tour/Tour.stories.tsx +250 -0
- package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.config.js +6 -6
- package/emotion/cjs/examples/plasma_web/components/Tour/Tour.config.js +22 -0
- package/emotion/cjs/examples/plasma_web/components/Tour/Tour.js +11 -0
- package/emotion/cjs/examples/plasma_web/components/Tour/Tour.stories.tsx +242 -0
- package/emotion/cjs/hooks/index.js +1 -8
- package/emotion/cjs/index.js +8 -8
- package/emotion/cjs/utils/constants.js +2 -8
- package/emotion/cjs/utils/index.js +0 -12
- package/emotion/es/components/CodeField/CodeField.js +17 -16
- package/emotion/es/components/Tour/Tour.js +226 -0
- package/emotion/es/components/Tour/Tour.styles.js +41 -0
- package/emotion/es/components/Tour/Tour.tokens.js +13 -0
- package/emotion/es/components/Tour/index.js +2 -0
- package/emotion/es/components/Tour/utils/index.js +12 -0
- package/emotion/es/components/Tour/variatoins/_size/base.js +2 -0
- package/emotion/es/components/Tour/variatoins/_view/base.js +2 -0
- package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.config.js +6 -6
- package/emotion/es/examples/plasma_b2c/components/Tour/Tour.config.js +16 -0
- package/emotion/es/examples/plasma_b2c/components/Tour/Tour.js +5 -0
- package/emotion/es/examples/plasma_b2c/components/Tour/Tour.stories.tsx +250 -0
- package/emotion/es/examples/plasma_web/components/CodeField/CodeField.config.js +6 -6
- package/emotion/es/examples/plasma_web/components/Tour/Tour.config.js +16 -0
- package/emotion/es/examples/plasma_web/components/Tour/Tour.js +5 -0
- package/emotion/es/examples/plasma_web/components/Tour/Tour.stories.tsx +242 -0
- package/emotion/es/hooks/index.js +1 -2
- package/emotion/es/index.js +2 -2
- package/emotion/es/utils/constants.js +1 -7
- package/emotion/es/utils/index.js +0 -1
- package/es/components/CodeField/CodeField.js +17 -16
- package/es/components/CodeField/CodeField.js.map +1 -1
- package/es/components/Tour/Tour.css +4 -0
- package/es/components/Tour/Tour.js +215 -0
- package/es/components/Tour/Tour.js.map +1 -0
- package/es/components/Tour/Tour.styles.js +44 -0
- package/es/components/Tour/Tour.styles.js.map +1 -0
- package/es/components/Tour/Tour.styles_1ks2isn.css +4 -0
- package/es/components/Tour/Tour.tokens.js +16 -0
- package/es/components/Tour/Tour.tokens.js.map +1 -0
- package/es/components/Tour/utils/index.js +15 -0
- package/es/components/Tour/utils/index.js.map +1 -0
- package/es/components/{CodeInput/variations/_view → Tour/variatoins/_size}/base.js +2 -2
- package/es/components/Tour/variatoins/_size/base.js.map +1 -0
- package/es/components/Tour/variatoins/_size/base_x642ct.css +1 -0
- package/es/components/{CodeInput/variations/_size → Tour/variatoins/_view}/base.js +2 -2
- package/es/components/Tour/variatoins/_view/base.js.map +1 -0
- package/es/components/Tour/variatoins/_view/base_x642ct.css +1 -0
- package/es/index.css +5 -15
- package/es/index.js +2 -4
- package/es/index.js.map +1 -1
- package/es/utils/constants.js +1 -7
- package/es/utils/constants.js.map +1 -1
- package/es/utils/index.js.map +1 -1
- package/package.json +2 -2
- package/styled-components/cjs/components/CodeField/CodeField.js +16 -14
- package/styled-components/cjs/components/Tour/Tour.js +233 -0
- package/styled-components/cjs/components/Tour/Tour.styles.js +27 -0
- package/styled-components/cjs/components/Tour/Tour.tokens.js +19 -0
- package/styled-components/cjs/components/Tour/index.js +31 -0
- package/styled-components/cjs/components/Tour/utils/index.js +18 -0
- package/styled-components/cjs/components/{CodeInput/variations/_disabled → Tour/variatoins/_size}/base.js +1 -2
- package/styled-components/cjs/components/Tour/variatoins/_size/tokens.json +1 -0
- package/styled-components/cjs/components/Tour/variatoins/_view/base.js +8 -0
- package/styled-components/cjs/components/Tour/variatoins/_view/tokens.json +1 -0
- package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.config.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/Tour/Tour.config.js +22 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Tour/Tour.js +11 -0
- package/styled-components/cjs/examples/plasma_b2c/components/Tour/Tour.stories.tsx +250 -0
- package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.config.js +1 -1
- package/styled-components/cjs/examples/plasma_web/components/Tour/Tour.config.js +22 -0
- package/styled-components/cjs/examples/plasma_web/components/Tour/Tour.js +11 -0
- package/styled-components/cjs/examples/plasma_web/components/Tour/Tour.stories.tsx +242 -0
- package/styled-components/cjs/hooks/index.js +1 -8
- package/styled-components/cjs/index.js +8 -8
- package/styled-components/cjs/utils/constants.js +2 -8
- package/styled-components/cjs/utils/index.js +0 -12
- package/styled-components/es/components/CodeField/CodeField.js +17 -16
- package/styled-components/es/components/Tour/Tour.js +226 -0
- package/styled-components/es/components/Tour/Tour.styles.js +20 -0
- package/styled-components/es/components/Tour/Tour.tokens.js +13 -0
- package/styled-components/es/components/Tour/index.js +2 -0
- package/styled-components/es/components/Tour/utils/index.js +12 -0
- package/styled-components/es/components/Tour/variatoins/_size/base.js +2 -0
- package/styled-components/es/components/Tour/variatoins/_size/tokens.json +1 -0
- package/styled-components/es/components/Tour/variatoins/_view/base.js +2 -0
- package/styled-components/es/components/Tour/variatoins/_view/tokens.json +1 -0
- package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.config.js +1 -1
- package/styled-components/es/examples/plasma_b2c/components/Tour/Tour.config.js +16 -0
- package/styled-components/es/examples/plasma_b2c/components/Tour/Tour.js +5 -0
- package/styled-components/es/examples/plasma_b2c/components/Tour/Tour.stories.tsx +250 -0
- package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.config.js +1 -1
- package/styled-components/es/examples/plasma_web/components/Tour/Tour.config.js +16 -0
- package/styled-components/es/examples/plasma_web/components/Tour/Tour.js +5 -0
- package/styled-components/es/examples/plasma_web/components/Tour/Tour.stories.tsx +242 -0
- package/styled-components/es/hooks/index.js +1 -2
- package/styled-components/es/index.js +2 -2
- package/styled-components/es/utils/constants.js +1 -7
- package/styled-components/es/utils/index.js +0 -1
- package/types/components/CodeField/CodeField.d.ts.map +1 -1
- package/types/components/Tour/Tour.d.ts +23 -0
- package/types/components/Tour/Tour.d.ts.map +1 -0
- package/types/components/Tour/Tour.styles.d.ts +9 -0
- package/types/components/Tour/Tour.styles.d.ts.map +1 -0
- package/types/components/Tour/Tour.tokens.d.ts +14 -0
- package/types/components/Tour/Tour.tokens.d.ts.map +1 -0
- package/types/components/Tour/Tour.types.d.ts +78 -0
- package/types/components/Tour/Tour.types.d.ts.map +1 -0
- package/types/components/Tour/index.d.ts +4 -0
- package/types/components/Tour/index.d.ts.map +1 -0
- package/types/components/Tour/utils/index.d.ts +2 -0
- package/types/components/Tour/utils/index.d.ts.map +1 -0
- package/types/components/Tour/variatoins/_size/base.d.ts.map +1 -0
- package/types/components/Tour/variatoins/_view/base.d.ts.map +1 -0
- package/types/hooks/index.d.ts +0 -1
- package/types/hooks/index.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/utils/constants.d.ts +0 -6
- package/types/utils/constants.d.ts.map +1 -1
- package/types/utils/index.d.ts +0 -1
- package/types/utils/index.d.ts.map +1 -1
- package/cjs/components/CodeInput/CodeInput.css +0 -14
- package/cjs/components/CodeInput/CodeInput.js +0 -299
- package/cjs/components/CodeInput/CodeInput.js.map +0 -1
- package/cjs/components/CodeInput/CodeInput.styles.js +0 -78
- package/cjs/components/CodeInput/CodeInput.styles.js.map +0 -1
- package/cjs/components/CodeInput/CodeInput.styles_3w98lu.css +0 -8
- package/cjs/components/CodeInput/CodeInput.tokens.js +0 -72
- package/cjs/components/CodeInput/CodeInput.tokens.js.map +0 -1
- package/cjs/components/CodeInput/utils/handleCodeError.js +0 -55
- package/cjs/components/CodeInput/utils/handleCodeError.js.map +0 -1
- package/cjs/components/CodeInput/utils/handleItemError.js +0 -42
- package/cjs/components/CodeInput/utils/handleItemError.js.map +0 -1
- package/cjs/components/CodeInput/variations/_disabled/base.js.map +0 -1
- package/cjs/components/CodeInput/variations/_disabled/base_vkh53h.css +0 -1
- package/cjs/components/CodeInput/variations/_size/base.js.map +0 -1
- package/cjs/components/CodeInput/variations/_size/base_h42a8b.css +0 -1
- package/cjs/components/CodeInput/variations/_view/base.js +0 -9
- package/cjs/components/CodeInput/variations/_view/base.js.map +0 -1
- package/cjs/components/CodeInput/variations/_view/base_17gj0wr.css +0 -1
- package/cjs/hooks/useCodeHook.js +0 -34
- package/cjs/hooks/useCodeHook.js.map +0 -1
- package/cjs/utils/initialValuesHelper.js +0 -33
- package/cjs/utils/initialValuesHelper.js.map +0 -1
- package/emotion/cjs/components/CodeInput/CodeInput.js +0 -307
- package/emotion/cjs/components/CodeInput/CodeInput.styles.js +0 -76
- package/emotion/cjs/components/CodeInput/CodeInput.tokens.js +0 -76
- package/emotion/cjs/components/CodeInput/index.js +0 -31
- package/emotion/cjs/components/CodeInput/utils/handleCodeError.js +0 -58
- package/emotion/cjs/components/CodeInput/utils/handleItemError.js +0 -40
- package/emotion/cjs/components/CodeInput/utils/index.js +0 -38
- package/emotion/cjs/components/CodeInput/variations/_disabled/base.js +0 -9
- package/emotion/cjs/components/CodeInput/variations/_disabled/tokens.json +0 -4
- package/emotion/cjs/components/CodeInput/variations/_size/base.js +0 -25
- package/emotion/cjs/components/CodeInput/variations/_size/tokens.json +0 -19
- package/emotion/cjs/components/CodeInput/variations/_view/base.js +0 -16
- package/emotion/cjs/examples/plasma_b2c/components/CodeInput/CodeInput.config.js +0 -27
- package/emotion/cjs/examples/plasma_b2c/components/CodeInput/CodeInput.js +0 -11
- package/emotion/cjs/examples/plasma_b2c/components/CodeInput/CodeInput.stories.tsx +0 -100
- package/emotion/cjs/examples/plasma_web/components/CodeInput/CodeInput.config.js +0 -27
- package/emotion/cjs/examples/plasma_web/components/CodeInput/CodeInput.js +0 -11
- package/emotion/cjs/examples/plasma_web/components/CodeInput/CodeInput.stories.tsx +0 -100
- package/emotion/cjs/hooks/useCodeHook.js +0 -32
- package/emotion/cjs/utils/initialValuesHelper.js +0 -30
- package/emotion/es/components/CodeInput/CodeInput.js +0 -299
- package/emotion/es/components/CodeInput/CodeInput.styles.js +0 -69
- package/emotion/es/components/CodeInput/CodeInput.tokens.js +0 -70
- package/emotion/es/components/CodeInput/index.js +0 -2
- package/emotion/es/components/CodeInput/utils/handleCodeError.js +0 -52
- package/emotion/es/components/CodeInput/utils/handleItemError.js +0 -34
- package/emotion/es/components/CodeInput/utils/index.js +0 -3
- package/emotion/es/components/CodeInput/variations/_disabled/base.js +0 -3
- package/emotion/es/components/CodeInput/variations/_disabled/tokens.json +0 -4
- package/emotion/es/components/CodeInput/variations/_size/base.js +0 -19
- package/emotion/es/components/CodeInput/variations/_size/tokens.json +0 -19
- package/emotion/es/components/CodeInput/variations/_view/base.js +0 -10
- package/emotion/es/examples/plasma_b2c/components/CodeInput/CodeInput.config.js +0 -21
- package/emotion/es/examples/plasma_b2c/components/CodeInput/CodeInput.js +0 -5
- package/emotion/es/examples/plasma_b2c/components/CodeInput/CodeInput.stories.tsx +0 -100
- package/emotion/es/examples/plasma_web/components/CodeInput/CodeInput.config.js +0 -21
- package/emotion/es/examples/plasma_web/components/CodeInput/CodeInput.js +0 -5
- package/emotion/es/examples/plasma_web/components/CodeInput/CodeInput.stories.tsx +0 -100
- package/emotion/es/hooks/useCodeHook.js +0 -26
- package/emotion/es/utils/initialValuesHelper.js +0 -24
- package/es/components/CodeInput/CodeInput.css +0 -14
- package/es/components/CodeInput/CodeInput.js +0 -289
- package/es/components/CodeInput/CodeInput.js.map +0 -1
- package/es/components/CodeInput/CodeInput.styles.js +0 -67
- package/es/components/CodeInput/CodeInput.styles.js.map +0 -1
- package/es/components/CodeInput/CodeInput.styles_3w98lu.css +0 -8
- package/es/components/CodeInput/CodeInput.tokens.js +0 -67
- package/es/components/CodeInput/CodeInput.tokens.js.map +0 -1
- package/es/components/CodeInput/utils/handleCodeError.js +0 -51
- package/es/components/CodeInput/utils/handleCodeError.js.map +0 -1
- package/es/components/CodeInput/utils/handleItemError.js +0 -38
- package/es/components/CodeInput/utils/handleItemError.js.map +0 -1
- package/es/components/CodeInput/variations/_disabled/base.js +0 -5
- package/es/components/CodeInput/variations/_disabled/base.js.map +0 -1
- package/es/components/CodeInput/variations/_disabled/base_vkh53h.css +0 -1
- package/es/components/CodeInput/variations/_size/base.js.map +0 -1
- package/es/components/CodeInput/variations/_size/base_h42a8b.css +0 -1
- package/es/components/CodeInput/variations/_view/base.js.map +0 -1
- package/es/components/CodeInput/variations/_view/base_17gj0wr.css +0 -1
- package/es/hooks/useCodeHook.js +0 -30
- package/es/hooks/useCodeHook.js.map +0 -1
- package/es/utils/initialValuesHelper.js +0 -27
- package/es/utils/initialValuesHelper.js.map +0 -1
- package/styled-components/cjs/components/CodeInput/CodeInput.js +0 -307
- package/styled-components/cjs/components/CodeInput/CodeInput.styles.js +0 -47
- package/styled-components/cjs/components/CodeInput/CodeInput.tokens.js +0 -76
- package/styled-components/cjs/components/CodeInput/index.js +0 -31
- package/styled-components/cjs/components/CodeInput/utils/handleCodeError.js +0 -58
- package/styled-components/cjs/components/CodeInput/utils/handleItemError.js +0 -40
- package/styled-components/cjs/components/CodeInput/utils/index.js +0 -38
- package/styled-components/cjs/components/CodeInput/variations/_disabled/tokens.json +0 -4
- package/styled-components/cjs/components/CodeInput/variations/_size/base.js +0 -25
- package/styled-components/cjs/components/CodeInput/variations/_size/tokens.json +0 -19
- package/styled-components/cjs/components/CodeInput/variations/_view/base.js +0 -16
- package/styled-components/cjs/examples/plasma_b2c/components/CodeInput/CodeInput.config.js +0 -27
- package/styled-components/cjs/examples/plasma_b2c/components/CodeInput/CodeInput.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/CodeInput/CodeInput.stories.tsx +0 -100
- package/styled-components/cjs/examples/plasma_web/components/CodeInput/CodeInput.config.js +0 -27
- package/styled-components/cjs/examples/plasma_web/components/CodeInput/CodeInput.js +0 -11
- package/styled-components/cjs/examples/plasma_web/components/CodeInput/CodeInput.stories.tsx +0 -100
- package/styled-components/cjs/hooks/useCodeHook.js +0 -32
- package/styled-components/cjs/utils/initialValuesHelper.js +0 -30
- package/styled-components/es/components/CodeInput/CodeInput.js +0 -299
- package/styled-components/es/components/CodeInput/CodeInput.styles.js +0 -39
- package/styled-components/es/components/CodeInput/CodeInput.tokens.js +0 -70
- package/styled-components/es/components/CodeInput/index.js +0 -2
- package/styled-components/es/components/CodeInput/utils/handleCodeError.js +0 -52
- package/styled-components/es/components/CodeInput/utils/handleItemError.js +0 -34
- package/styled-components/es/components/CodeInput/utils/index.js +0 -3
- package/styled-components/es/components/CodeInput/variations/_disabled/base.js +0 -3
- package/styled-components/es/components/CodeInput/variations/_disabled/tokens.json +0 -4
- package/styled-components/es/components/CodeInput/variations/_size/base.js +0 -19
- package/styled-components/es/components/CodeInput/variations/_size/tokens.json +0 -19
- package/styled-components/es/components/CodeInput/variations/_view/base.js +0 -10
- package/styled-components/es/examples/plasma_b2c/components/CodeInput/CodeInput.config.js +0 -21
- package/styled-components/es/examples/plasma_b2c/components/CodeInput/CodeInput.js +0 -5
- package/styled-components/es/examples/plasma_b2c/components/CodeInput/CodeInput.stories.tsx +0 -100
- package/styled-components/es/examples/plasma_web/components/CodeInput/CodeInput.config.js +0 -21
- package/styled-components/es/examples/plasma_web/components/CodeInput/CodeInput.js +0 -5
- package/styled-components/es/examples/plasma_web/components/CodeInput/CodeInput.stories.tsx +0 -100
- package/styled-components/es/hooks/useCodeHook.js +0 -26
- package/styled-components/es/utils/initialValuesHelper.js +0 -24
- package/types/components/CodeInput/CodeInput.d.ts +0 -65
- package/types/components/CodeInput/CodeInput.d.ts.map +0 -1
- package/types/components/CodeInput/CodeInput.styles.d.ts +0 -16
- package/types/components/CodeInput/CodeInput.styles.d.ts.map +0 -1
- package/types/components/CodeInput/CodeInput.tokens.d.ts +0 -72
- package/types/components/CodeInput/CodeInput.tokens.d.ts.map +0 -1
- package/types/components/CodeInput/CodeInput.types.d.ts +0 -92
- package/types/components/CodeInput/CodeInput.types.d.ts.map +0 -1
- package/types/components/CodeInput/index.d.ts +0 -3
- package/types/components/CodeInput/index.d.ts.map +0 -1
- package/types/components/CodeInput/utils/handleCodeError.d.ts +0 -15
- package/types/components/CodeInput/utils/handleCodeError.d.ts.map +0 -1
- package/types/components/CodeInput/utils/handleItemError.d.ts +0 -14
- package/types/components/CodeInput/utils/handleItemError.d.ts.map +0 -1
- package/types/components/CodeInput/utils/index.d.ts +0 -4
- package/types/components/CodeInput/utils/index.d.ts.map +0 -1
- package/types/components/CodeInput/variations/_disabled/base.d.ts.map +0 -1
- package/types/components/CodeInput/variations/_size/base.d.ts.map +0 -1
- package/types/components/CodeInput/variations/_view/base.d.ts +0 -2
- package/types/components/CodeInput/variations/_view/base.d.ts.map +0 -1
- package/types/hooks/useCodeHook.d.ts +0 -13
- package/types/hooks/useCodeHook.d.ts.map +0 -1
- package/types/utils/initialValuesHelper.d.ts +0 -4
- package/types/utils/initialValuesHelper.d.ts.map +0 -1
- /package/emotion/cjs/components/{CodeInput/CodeInput.types.js → Tour/Tour.types.js} +0 -0
- /package/emotion/cjs/components/{CodeInput/variations/_view → Tour/variatoins/_size}/tokens.json +0 -0
- /package/emotion/{es/components/CodeInput/variations → cjs/components/Tour/variatoins}/_view/tokens.json +0 -0
- /package/emotion/es/components/{CodeInput/CodeInput.types.js → Tour/Tour.types.js} +0 -0
- /package/{styled-components/cjs/components/CodeInput/variations/_view → emotion/es/components/Tour/variatoins/_size}/tokens.json +0 -0
- /package/{styled-components/es/components/CodeInput/variations → emotion/es/components/Tour/variatoins}/_view/tokens.json +0 -0
- /package/styled-components/cjs/components/{CodeInput/CodeInput.types.js → Tour/Tour.types.js} +0 -0
- /package/styled-components/es/components/{CodeInput/CodeInput.types.js → Tour/Tour.types.js} +0 -0
- /package/types/components/{CodeInput/variations/_disabled → Tour/variatoins/_size}/base.d.ts +0 -0
- /package/types/components/{CodeInput/variations/_size → Tour/variatoins/_view}/base.d.ts +0 -0
@@ -1,299 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
6
|
-
var React = require('react');
|
7
|
-
var cls = require('classnames');
|
8
|
-
var constants = require('../../utils/constants.js');
|
9
|
-
var CodeInput_tokens = require('./CodeInput.tokens.js');
|
10
|
-
var CodeInput_styles = require('./CodeInput.styles.js');
|
11
|
-
var base = require('./variations/_view/base.js');
|
12
|
-
var base$1 = require('./variations/_size/base.js');
|
13
|
-
var base$2 = require('./variations/_disabled/base.js');
|
14
|
-
var initialValuesHelper = require('../../utils/initialValuesHelper.js');
|
15
|
-
var useCodeHook = require('../../hooks/useCodeHook.js');
|
16
|
-
var useDidMountEffect = require('../../hooks/useDidMountEffect.js');
|
17
|
-
var handleCodeError = require('./utils/handleCodeError.js');
|
18
|
-
var getSizeValueFromProp = require('../../utils/getSizeValueFromProp.js');
|
19
|
-
var handleItemError = require('./utils/handleItemError.js');
|
20
|
-
|
21
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
22
|
-
|
23
|
-
var React__default = /*#__PURE__*/_interopDefault(React);
|
24
|
-
var cls__default = /*#__PURE__*/_interopDefault(cls);
|
25
|
-
|
26
|
-
var _Separator;
|
27
|
-
var _excluded = ["className", "value", "placeholder", "autoFocus", "codeLength", "caption", "captionAlign", "width", "view", "size", "hidden", "disabled", "isError", "allowedSymbols", "itemErrorBehavior", "codeErrorBehavior", "autoComplete", "setIsError", "onChange", "onFullCodeEnter"];
|
28
|
-
var codeInputRoot = function codeInputRoot(Root) {
|
29
|
-
return /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
30
|
-
var className = _ref.className,
|
31
|
-
outerValue = _ref.value,
|
32
|
-
placeholder = _ref.placeholder,
|
33
|
-
autoFocus = _ref.autoFocus,
|
34
|
-
_ref$codeLength = _ref.codeLength,
|
35
|
-
codeLength = _ref$codeLength === void 0 ? 6 : _ref$codeLength,
|
36
|
-
caption = _ref.caption,
|
37
|
-
_ref$captionAlign = _ref.captionAlign,
|
38
|
-
captionAlign = _ref$captionAlign === void 0 ? 'left' : _ref$captionAlign,
|
39
|
-
width = _ref.width,
|
40
|
-
view = _ref.view,
|
41
|
-
size = _ref.size,
|
42
|
-
hidden = _ref.hidden,
|
43
|
-
disabled = _ref.disabled,
|
44
|
-
isError = _ref.isError,
|
45
|
-
_ref$allowedSymbols = _ref.allowedSymbols,
|
46
|
-
allowedSymbols = _ref$allowedSymbols === void 0 ? constants.ONLY_DIGITS_PATTERN : _ref$allowedSymbols,
|
47
|
-
_ref$itemErrorBehavio = _ref.itemErrorBehavior,
|
48
|
-
itemErrorBehavior = _ref$itemErrorBehavio === void 0 ? 'remove-symbol' : _ref$itemErrorBehavio,
|
49
|
-
_ref$codeErrorBehavio = _ref.codeErrorBehavior,
|
50
|
-
codeErrorBehavior = _ref$codeErrorBehavio === void 0 ? 'remove-code' : _ref$codeErrorBehavio,
|
51
|
-
_ref$autoComplete = _ref.autoComplete,
|
52
|
-
autoComplete = _ref$autoComplete === void 0 ? 'one-time-code' : _ref$autoComplete,
|
53
|
-
setIsError = _ref.setIsError,
|
54
|
-
onChange = _ref.onChange,
|
55
|
-
onFullCodeEnter = _ref.onFullCodeEnter,
|
56
|
-
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
57
|
-
var _useState = React.useState(initialValuesHelper.getCodeValue(codeLength, outerValue || '')),
|
58
|
-
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
59
|
-
code = _useState2[0],
|
60
|
-
setCode = _useState2[1];
|
61
|
-
var _useState3 = React.useState(code.join('')),
|
62
|
-
_useState4 = _rollupPluginBabelHelpers.slicedToArray(_useState3, 2),
|
63
|
-
originalValue = _useState4[0],
|
64
|
-
setOriginalValue = _useState4[1];
|
65
|
-
var inputRefs = React.useRef([]);
|
66
|
-
var inputContainerRef = React.useRef(null);
|
67
|
-
var captionRef = React.useRef(null);
|
68
|
-
var fieldPattern = initialValuesHelper.getFieldPattern(allowedSymbols);
|
69
|
-
var placeholderValue = initialValuesHelper.getPlaceholderValue(codeLength, placeholder);
|
70
|
-
var parts = codeLength === 6 ? 2 : 1;
|
71
|
-
var widthValue = width ? getSizeValueFromProp.getSizeValueFromProp(width, 'rem') : undefined;
|
72
|
-
var getLastActiveIndex = function getLastActiveIndex() {
|
73
|
-
if (code.length && code.length < codeLength) {
|
74
|
-
return code.length;
|
75
|
-
}
|
76
|
-
var lastEmptyIndex = code.findIndex(function (digit) {
|
77
|
-
return digit === '';
|
78
|
-
});
|
79
|
-
return lastEmptyIndex >= 0 ? lastEmptyIndex : codeLength - 1;
|
80
|
-
};
|
81
|
-
var handleClick = function handleClick() {
|
82
|
-
if (disabled) {
|
83
|
-
return;
|
84
|
-
}
|
85
|
-
var lastActiveIndex = getLastActiveIndex();
|
86
|
-
if (inputRefs.current[lastActiveIndex]) {
|
87
|
-
inputRefs.current[lastActiveIndex].focus();
|
88
|
-
}
|
89
|
-
};
|
90
|
-
var handleOnKeyDown = function handleOnKeyDown(event, index, type) {
|
91
|
-
if (disabled) {
|
92
|
-
return;
|
93
|
-
}
|
94
|
-
var key = event.key;
|
95
|
-
if (constants.FORBIDDEN_KEYS.includes(key)) {
|
96
|
-
event.preventDefault();
|
97
|
-
return;
|
98
|
-
}
|
99
|
-
if (key === constants.BACKSPACE_KEY) {
|
100
|
-
if (index > 0 && code[index] === '') {
|
101
|
-
var _inputRefs$current;
|
102
|
-
(_inputRefs$current = inputRefs.current[index - 1]) === null || _inputRefs$current === void 0 || _inputRefs$current.focus();
|
103
|
-
}
|
104
|
-
}
|
105
|
-
if (type === 'circle') {
|
106
|
-
var _inputRefs$current$in;
|
107
|
-
handleAddSymbol(key, index);
|
108
|
-
(_inputRefs$current$in = inputRefs.current[index]) === null || _inputRefs$current$in === void 0 || _inputRefs$current$in.focus();
|
109
|
-
}
|
110
|
-
};
|
111
|
-
var codeSetter = function codeSetter(newCode) {
|
112
|
-
setCode(newCode);
|
113
|
-
setOriginalValue(newCode.join(''));
|
114
|
-
if (onChange) {
|
115
|
-
onChange(newCode.join(''));
|
116
|
-
}
|
117
|
-
};
|
118
|
-
var handleChange = function handleChange(event, index) {
|
119
|
-
if (disabled) {
|
120
|
-
return;
|
121
|
-
}
|
122
|
-
var rawSymbol = event.currentTarget.value;
|
123
|
-
var symbol = rawSymbol.charAt(rawSymbol.length - 1);
|
124
|
-
handleAddSymbol(symbol, index);
|
125
|
-
};
|
126
|
-
var handleAddSymbol = function handleAddSymbol(symbol, index) {
|
127
|
-
var _inputRefs$current$in2;
|
128
|
-
var newCode = _rollupPluginBabelHelpers.toConsumableArray(code);
|
129
|
-
(_inputRefs$current$in2 = inputRefs.current[index]) === null || _inputRefs$current$in2 === void 0 || _inputRefs$current$in2.classList.remove(CodeInput_tokens.classes.itemError);
|
130
|
-
if (isError) {
|
131
|
-
var _captionRef$current;
|
132
|
-
(_captionRef$current = captionRef.current) === null || _captionRef$current === void 0 || _captionRef$current.classList.remove(CodeInput_tokens.classes.captionError);
|
133
|
-
if (codeErrorBehavior === 'keep') {
|
134
|
-
var _inputContainerRef$cu;
|
135
|
-
(_inputContainerRef$cu = inputContainerRef.current) === null || _inputContainerRef$cu === void 0 || _inputContainerRef$cu.classList.remove(CodeInput_tokens.classes.codeError, CodeInput_tokens.classes.codeErrorAnimation);
|
136
|
-
}
|
137
|
-
if (setIsError) {
|
138
|
-
setIsError(false);
|
139
|
-
}
|
140
|
-
}
|
141
|
-
if (!fieldPattern) {
|
142
|
-
newCode[index] = symbol;
|
143
|
-
codeSetter(newCode);
|
144
|
-
if (symbol && index < codeLength - 1) {
|
145
|
-
var _inputRefs$current2;
|
146
|
-
(_inputRefs$current2 = inputRefs.current[index + 1]) === null || _inputRefs$current2 === void 0 || _inputRefs$current2.focus();
|
147
|
-
}
|
148
|
-
return;
|
149
|
-
}
|
150
|
-
if (!symbol) {
|
151
|
-
newCode[index] = '';
|
152
|
-
codeSetter(newCode);
|
153
|
-
return;
|
154
|
-
}
|
155
|
-
if (fieldPattern.test(symbol)) {
|
156
|
-
newCode[index] = symbol.charAt(symbol.length - 1);
|
157
|
-
codeSetter(newCode);
|
158
|
-
if (index < codeLength - 1) {
|
159
|
-
var _inputRefs$current3;
|
160
|
-
(_inputRefs$current3 = inputRefs.current[index + 1]) === null || _inputRefs$current3 === void 0 || _inputRefs$current3.focus();
|
161
|
-
}
|
162
|
-
} else {
|
163
|
-
newCode[index] = symbol.charAt(symbol.length - 1);
|
164
|
-
handleItemError.handleItemError({
|
165
|
-
currentSymbol: symbol,
|
166
|
-
itemErrorBehavior: itemErrorBehavior,
|
167
|
-
index: index,
|
168
|
-
newCode: newCode,
|
169
|
-
inputRefs: inputRefs,
|
170
|
-
inputContainerRef: inputContainerRef,
|
171
|
-
codeSetter: codeSetter
|
172
|
-
});
|
173
|
-
}
|
174
|
-
};
|
175
|
-
var handlePaste = function handlePaste(event) {
|
176
|
-
var _inputRefs$current$ac;
|
177
|
-
var newCode = _rollupPluginBabelHelpers.toConsumableArray(code);
|
178
|
-
if (disabled) {
|
179
|
-
return;
|
180
|
-
}
|
181
|
-
event.preventDefault();
|
182
|
-
var rawData = event.clipboardData.getData('text/plain');
|
183
|
-
var pastedData = (fieldPattern ? rawData.split('').map(function (symb) {
|
184
|
-
var _symb$match;
|
185
|
-
return ((_symb$match = symb.match(fieldPattern)) === null || _symb$match === void 0 ? void 0 : _symb$match[0]) || '';
|
186
|
-
}).filter(Boolean) || [] : rawData.split('')).slice(0, codeLength);
|
187
|
-
pastedData.forEach(function (element, index) {
|
188
|
-
newCode[index] = element;
|
189
|
-
});
|
190
|
-
var activeIndex = Math.min(pastedData.length, codeLength - 1);
|
191
|
-
(_inputRefs$current$ac = inputRefs.current[activeIndex]) === null || _inputRefs$current$ac === void 0 || _inputRefs$current$ac.focus();
|
192
|
-
codeSetter(newCode);
|
193
|
-
};
|
194
|
-
var handleFullCodeEnter = React.useCallback(function (fullCode) {
|
195
|
-
if (onFullCodeEnter) {
|
196
|
-
onFullCodeEnter(fullCode);
|
197
|
-
}
|
198
|
-
}, []);
|
199
|
-
useCodeHook.useCodeHook({
|
200
|
-
inputRefs: inputRefs,
|
201
|
-
codeLength: codeLength,
|
202
|
-
disabled: disabled,
|
203
|
-
autoFocus: autoFocus,
|
204
|
-
originalValue: originalValue,
|
205
|
-
getLastActiveIndex: getLastActiveIndex,
|
206
|
-
handleFullCodeEnter: handleFullCodeEnter
|
207
|
-
});
|
208
|
-
useDidMountEffect.useDidMountEffect(function () {
|
209
|
-
if (isError) {
|
210
|
-
handleCodeError.handleCodeError({
|
211
|
-
codeLength: codeLength,
|
212
|
-
codeErrorBehavior: codeErrorBehavior,
|
213
|
-
currentCode: code,
|
214
|
-
inputRefs: inputRefs,
|
215
|
-
inputContainerRef: inputContainerRef,
|
216
|
-
captionRef: captionRef,
|
217
|
-
setCode: setCode,
|
218
|
-
codeSetter: codeSetter
|
219
|
-
});
|
220
|
-
}
|
221
|
-
}, [isError]);
|
222
|
-
return /*#__PURE__*/React__default.default.createElement(Root, _rollupPluginBabelHelpers.extends({
|
223
|
-
ref: ref,
|
224
|
-
view: view,
|
225
|
-
size: size,
|
226
|
-
disabled: disabled,
|
227
|
-
onClick: handleClick,
|
228
|
-
className: cls__default.default(className, _rollupPluginBabelHelpers.defineProperty({}, CodeInput_tokens.classes.captionAlignLeft, captionAlign === 'left'))
|
229
|
-
}, rest), /*#__PURE__*/React__default.default.createElement(CodeInput_styles.CodeWrapper, {
|
230
|
-
ref: inputContainerRef
|
231
|
-
}, _rollupPluginBabelHelpers.toConsumableArray(Array(parts)).map(function (_, partIndex) {
|
232
|
-
return /*#__PURE__*/React__default.default.createElement(React.Fragment, {
|
233
|
-
key: partIndex
|
234
|
-
}, /*#__PURE__*/React__default.default.createElement(CodeInput_styles.CodeGroup, {
|
235
|
-
role: "group"
|
236
|
-
}, _rollupPluginBabelHelpers.toConsumableArray(Array(codeLength / parts)).map(function (_, i) {
|
237
|
-
var inputCorrectIndex = i + codeLength / parts * partIndex;
|
238
|
-
return /*#__PURE__*/React__default.default.createElement(CodeInput_styles.ItemWrapper, {
|
239
|
-
key: partIndex + i + partIndex * i
|
240
|
-
}, (!code[inputCorrectIndex] || !!code[inputCorrectIndex] && hidden) && /*#__PURE__*/React__default.default.createElement(CodeInput_styles.ItemCircle, {
|
241
|
-
role: "tab",
|
242
|
-
tabIndex: originalValue.length === inputCorrectIndex ? 0 : -1,
|
243
|
-
onKeyDown: function onKeyDown(e) {
|
244
|
-
handleOnKeyDown(e, inputCorrectIndex, 'circle');
|
245
|
-
},
|
246
|
-
className: cls__default.default([!!code[inputCorrectIndex] && hidden ? CodeInput_tokens.classes.itemCirlceFilled : '', "".concat(CodeInput_tokens.classes.itemCircle, "-").concat(inputCorrectIndex)])
|
247
|
-
}), /*#__PURE__*/React__default.default.createElement(CodeInput_styles.ItemInput, _rollupPluginBabelHelpers.extends({
|
248
|
-
ref: function ref(element) {
|
249
|
-
inputRefs.current[inputCorrectIndex] = element;
|
250
|
-
},
|
251
|
-
className: cls__default.default(_rollupPluginBabelHelpers.defineProperty({}, CodeInput_tokens.classes.hoverEnabled, inputCorrectIndex >= originalValue.length)),
|
252
|
-
hide: hidden,
|
253
|
-
value: code[inputCorrectIndex] || '',
|
254
|
-
tabIndex: originalValue.length === inputCorrectIndex ? 0 : -1,
|
255
|
-
autoComplete: autoComplete,
|
256
|
-
onChange: function onChange(e) {
|
257
|
-
handleChange(e, inputCorrectIndex);
|
258
|
-
},
|
259
|
-
onKeyDown: function onKeyDown(e) {
|
260
|
-
handleOnKeyDown(e, inputCorrectIndex);
|
261
|
-
},
|
262
|
-
onPaste: handlePaste
|
263
|
-
}, placeholderValue && {
|
264
|
-
placeholder: placeholderValue[inputCorrectIndex]
|
265
|
-
})));
|
266
|
-
})), partIndex !== parts - 1 && (_Separator || (_Separator = /*#__PURE__*/React__default.default.createElement(CodeInput_styles.Separator, null))));
|
267
|
-
})), caption && /*#__PURE__*/React__default.default.createElement(CodeInput_styles.CaptionWrapper, {
|
268
|
-
ref: captionRef,
|
269
|
-
captionAlign: captionAlign,
|
270
|
-
widthValue: widthValue
|
271
|
-
}, caption));
|
272
|
-
});
|
273
|
-
};
|
274
|
-
var codeInputConfig = {
|
275
|
-
name: 'CodeInput',
|
276
|
-
tag: 'div',
|
277
|
-
layout: codeInputRoot,
|
278
|
-
base: CodeInput_styles.base,
|
279
|
-
variations: {
|
280
|
-
view: {
|
281
|
-
css: base.base
|
282
|
-
},
|
283
|
-
size: {
|
284
|
-
css: base$1.base
|
285
|
-
},
|
286
|
-
disabled: {
|
287
|
-
css: base$2.base,
|
288
|
-
attrs: true
|
289
|
-
}
|
290
|
-
},
|
291
|
-
defaults: {
|
292
|
-
size: 'm',
|
293
|
-
view: 'default'
|
294
|
-
}
|
295
|
-
};
|
296
|
-
|
297
|
-
exports.codeInputConfig = codeInputConfig;
|
298
|
-
exports.codeInputRoot = codeInputRoot;
|
299
|
-
//# sourceMappingURL=CodeInput.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeInput.js","sources":["../../../src/components/CodeInput/CodeInput.tsx"],"sourcesContent":["import React, { forwardRef, Fragment, useCallback, useRef, useState } from 'react';\nimport cls from 'classnames';\nimport type { ChangeEvent, KeyboardEvent, ClipboardEvent } from 'react';\nimport type { RootProps } from 'src/engines';\nimport { useDidMountEffect } from 'src/hooks';\nimport { getSizeValueFromProp } from 'src/utils';\n\nimport { BACKSPACE_KEY, FORBIDDEN_KEYS, ONLY_DIGITS_PATTERN } from '../../utils/constants';\nimport { useCodeHook } from '../../hooks';\n\nimport type { CodeInputProps } from './CodeInput.types';\nimport { getCodeValue, getFieldPattern, getPlaceholderValue, handleCodeError, handleItemError } from './utils';\nimport { classes } from './CodeInput.tokens';\nimport {\n base,\n CaptionWrapper,\n CodeGroup,\n CodeWrapper,\n ItemInput,\n Separator,\n ItemWrapper,\n ItemCircle,\n} from './CodeInput.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\n\nexport const codeInputRoot = (Root: RootProps<HTMLDivElement, CodeInputProps>) =>\n forwardRef<HTMLInputElement, CodeInputProps>(\n (\n {\n className,\n value: outerValue,\n placeholder,\n autoFocus,\n codeLength = 6,\n caption,\n captionAlign = 'left',\n width,\n view,\n size,\n hidden,\n disabled,\n isError,\n allowedSymbols = ONLY_DIGITS_PATTERN,\n itemErrorBehavior = 'remove-symbol',\n codeErrorBehavior = 'remove-code',\n autoComplete = 'one-time-code',\n setIsError,\n onChange,\n onFullCodeEnter,\n ...rest\n },\n ref,\n ) => {\n const [code, setCode] = useState<Array<string>>(getCodeValue(codeLength, outerValue || ''));\n const [originalValue, setOriginalValue] = useState<string>(code.join(''));\n\n const inputRefs = useRef<Array<HTMLInputElement>>([]);\n const inputContainerRef = useRef<HTMLDivElement | null>(null);\n const captionRef = useRef<HTMLDivElement | null>(null);\n\n const fieldPattern = getFieldPattern(allowedSymbols);\n const placeholderValue = getPlaceholderValue(codeLength, placeholder);\n const parts = codeLength === 6 ? 2 : 1;\n\n const widthValue = width ? getSizeValueFromProp(width, 'rem') : undefined;\n\n const getLastActiveIndex = () => {\n if (code.length && code.length < codeLength) {\n return code.length;\n }\n\n const lastEmptyIndex = code.findIndex((digit) => digit === '');\n return lastEmptyIndex >= 0 ? lastEmptyIndex : codeLength - 1;\n };\n\n const handleClick = () => {\n if (disabled) {\n return;\n }\n\n const lastActiveIndex = getLastActiveIndex();\n\n if (inputRefs.current[lastActiveIndex]) {\n inputRefs.current[lastActiveIndex].focus();\n }\n };\n\n const handleOnKeyDown = (\n event: KeyboardEvent<HTMLInputElement | HTMLDivElement>,\n index: number,\n type?: 'circle',\n ) => {\n if (disabled) {\n return;\n }\n\n const { key } = event;\n if (FORBIDDEN_KEYS.includes(key)) {\n event.preventDefault();\n return;\n }\n\n if (key === BACKSPACE_KEY) {\n if (index > 0 && code[index] === '') {\n inputRefs.current[index - 1]?.focus();\n }\n }\n\n if (type === 'circle') {\n handleAddSymbol(key, index);\n inputRefs.current[index]?.focus();\n }\n };\n\n const codeSetter = (newCode: Array<string>) => {\n setCode(newCode);\n setOriginalValue(newCode.join(''));\n\n if (onChange) {\n onChange(newCode.join(''));\n }\n };\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>, index: number) => {\n if (disabled) {\n return;\n }\n\n const rawSymbol = event.currentTarget.value;\n const symbol = rawSymbol.charAt(rawSymbol.length - 1);\n handleAddSymbol(symbol, index);\n };\n\n const handleAddSymbol = (symbol: string, index: number) => {\n const newCode = [...code];\n\n inputRefs.current[index]?.classList.remove(classes.itemError);\n if (isError) {\n captionRef.current?.classList.remove(classes.captionError);\n\n if (codeErrorBehavior === 'keep') {\n inputContainerRef.current?.classList.remove(classes.codeError, classes.codeErrorAnimation);\n }\n\n if (setIsError) {\n setIsError(false);\n }\n }\n\n if (!fieldPattern) {\n newCode[index] = symbol;\n codeSetter(newCode);\n\n if (symbol && index < codeLength - 1) {\n inputRefs.current[index + 1]?.focus();\n }\n\n return;\n }\n\n if (!symbol) {\n newCode[index] = '';\n codeSetter(newCode);\n\n return;\n }\n\n if (fieldPattern.test(symbol)) {\n newCode[index] = symbol.charAt(symbol.length - 1);\n codeSetter(newCode);\n\n if (index < codeLength - 1) {\n inputRefs.current[index + 1]?.focus();\n }\n } else {\n newCode[index] = symbol.charAt(symbol.length - 1);\n\n handleItemError({\n currentSymbol: symbol,\n itemErrorBehavior,\n index,\n newCode,\n inputRefs,\n inputContainerRef,\n codeSetter,\n });\n }\n };\n\n const handlePaste = (event: ClipboardEvent<HTMLInputElement>) => {\n const newCode = [...code];\n\n if (disabled) {\n return;\n }\n\n event.preventDefault();\n\n const rawData = event.clipboardData.getData('text/plain');\n\n const pastedData = (fieldPattern\n ? rawData\n .split('')\n .map((symb) => symb.match(fieldPattern)?.[0] || '')\n .filter(Boolean) || []\n : rawData.split('')\n ).slice(0, codeLength);\n\n pastedData.forEach((element, index) => {\n newCode[index] = element;\n });\n\n const activeIndex = Math.min(pastedData.length, codeLength - 1);\n inputRefs.current[activeIndex]?.focus();\n\n codeSetter(newCode);\n };\n\n const handleFullCodeEnter = useCallback((fullCode: string) => {\n if (onFullCodeEnter) {\n onFullCodeEnter(fullCode);\n }\n }, []);\n\n useCodeHook({\n inputRefs,\n codeLength,\n disabled,\n autoFocus,\n originalValue,\n getLastActiveIndex,\n handleFullCodeEnter,\n });\n\n useDidMountEffect(() => {\n if (isError) {\n handleCodeError({\n codeLength,\n codeErrorBehavior,\n currentCode: code,\n inputRefs,\n inputContainerRef,\n captionRef,\n setCode,\n codeSetter,\n });\n }\n }, [isError]);\n\n return (\n <Root\n ref={ref}\n view={view}\n size={size}\n disabled={disabled}\n onClick={handleClick}\n className={cls(className, {\n [classes.captionAlignLeft]: captionAlign === 'left',\n })}\n {...rest}\n >\n <CodeWrapper ref={inputContainerRef}>\n {[...Array(parts)].map((_, partIndex) => (\n <Fragment key={partIndex}>\n <CodeGroup role=\"group\">\n {[...Array(codeLength / parts)].map((_, i) => {\n const inputCorrectIndex = i + (codeLength / parts) * partIndex;\n\n return (\n <ItemWrapper key={partIndex + i + partIndex * i}>\n {(!code[inputCorrectIndex] ||\n (!!code[inputCorrectIndex] && hidden)) && (\n <ItemCircle\n role=\"tab\"\n tabIndex={originalValue.length === inputCorrectIndex ? 0 : -1}\n onKeyDown={(e: KeyboardEvent<HTMLDivElement>) => {\n handleOnKeyDown(e, inputCorrectIndex, 'circle');\n }}\n className={cls([\n !!code[inputCorrectIndex] && hidden\n ? classes.itemCirlceFilled\n : '',\n `${classes.itemCircle}-${inputCorrectIndex}`,\n ])}\n />\n )}\n <ItemInput\n ref={(element: HTMLInputElement) => {\n inputRefs.current[inputCorrectIndex] = element;\n }}\n className={cls({\n [classes.hoverEnabled]:\n inputCorrectIndex >= originalValue.length,\n })}\n hide={hidden}\n value={code[inputCorrectIndex] || ''}\n tabIndex={originalValue.length === inputCorrectIndex ? 0 : -1}\n autoComplete={autoComplete}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n handleChange(e, inputCorrectIndex);\n }}\n onKeyDown={(e: KeyboardEvent<HTMLInputElement>) => {\n handleOnKeyDown(e, inputCorrectIndex);\n }}\n onPaste={handlePaste}\n {...(placeholderValue && {\n placeholder: placeholderValue[inputCorrectIndex],\n })}\n />\n </ItemWrapper>\n );\n })}\n </CodeGroup>\n {partIndex !== parts - 1 && <Separator />}\n </Fragment>\n ))}\n </CodeWrapper>\n {caption && (\n <CaptionWrapper ref={captionRef} captionAlign={captionAlign} widthValue={widthValue}>\n {caption}\n </CaptionWrapper>\n )}\n </Root>\n );\n },\n );\n\nexport const codeInputConfig = {\n name: 'CodeInput',\n tag: 'div',\n layout: codeInputRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["codeInputRoot","Root","forwardRef","_ref","ref","className","outerValue","value","placeholder","autoFocus","_ref$codeLength","codeLength","caption","_ref$captionAlign","captionAlign","width","view","size","hidden","disabled","isError","_ref$allowedSymbols","allowedSymbols","ONLY_DIGITS_PATTERN","_ref$itemErrorBehavio","itemErrorBehavior","_ref$codeErrorBehavio","codeErrorBehavior","_ref$autoComplete","autoComplete","setIsError","onChange","onFullCodeEnter","rest","_objectWithoutProperties","_excluded","_useState","useState","getCodeValue","_useState2","_slicedToArray","code","setCode","_useState3","join","_useState4","originalValue","setOriginalValue","inputRefs","useRef","inputContainerRef","captionRef","fieldPattern","getFieldPattern","placeholderValue","getPlaceholderValue","parts","widthValue","getSizeValueFromProp","undefined","getLastActiveIndex","length","lastEmptyIndex","findIndex","digit","handleClick","lastActiveIndex","current","focus","handleOnKeyDown","event","index","type","key","FORBIDDEN_KEYS","includes","preventDefault","BACKSPACE_KEY","_inputRefs$current","_inputRefs$current$in","handleAddSymbol","codeSetter","newCode","handleChange","rawSymbol","currentTarget","symbol","charAt","_inputRefs$current$in2","_toConsumableArray","classList","remove","classes","itemError","_captionRef$current","captionError","_inputContainerRef$cu","codeError","codeErrorAnimation","_inputRefs$current2","test","_inputRefs$current3","handleItemError","currentSymbol","handlePaste","_inputRefs$current$ac","rawData","clipboardData","getData","pastedData","split","map","symb","_symb$match","match","filter","Boolean","slice","forEach","element","activeIndex","Math","min","handleFullCodeEnter","useCallback","fullCode","useCodeHook","useDidMountEffect","handleCodeError","currentCode","React","createElement","_extends","onClick","cls","_defineProperty","captionAlignLeft","CodeWrapper","Array","_","partIndex","Fragment","CodeGroup","role","i","inputCorrectIndex","ItemWrapper","ItemCircle","tabIndex","onKeyDown","e","itemCirlceFilled","concat","itemCircle","ItemInput","hoverEnabled","hide","onPaste","_Separator","Separator","CaptionWrapper","codeInputConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IA2BaA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAA+C,EAAA;AAAA,EAAA,oBACzEC,gBAAU,CACN,UAAAC,IAAA,EAwBIC,GAAG,EACF;AAAA,IAAA,IAvBGC,SAAS,GAAAF,IAAA,CAATE,SAAS;MACFC,UAAU,GAAAH,IAAA,CAAjBI,KAAK;MACLC,WAAW,GAAAL,IAAA,CAAXK,WAAW;MACXC,SAAS,GAAAN,IAAA,CAATM,SAAS;MAAAC,eAAA,GAAAP,IAAA,CACTQ,UAAU;AAAVA,MAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,eAAA;MACdE,OAAO,GAAAT,IAAA,CAAPS,OAAO;MAAAC,iBAAA,GAAAV,IAAA,CACPW,YAAY;A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,CAAA,CACnC,CAAC,CAAA;KACd,CACQ,CAAC,EACbnJ,OAAO,iBACJsH,sBAAA,CAAAC,aAAA,CAAC6B,+BAAc,EAAA;AAAC5J,MAAAA,GAAG,EAAE+C,UAAW;AAACrC,MAAAA,YAAY,EAAEA,YAAa;AAAC2C,MAAAA,UAAU,EAAEA,UAAAA;KACpE7C,EAAAA,OACW,CAElB,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMqJ,eAAe,GAAG;AAC3BC,EAAAA,IAAI,EAAE,WAAW;AACjBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEpK,aAAa;AACrBqK,EAAAA,IAAI,EAAJA,qBAAI;AACJC,EAAAA,UAAU,EAAE;AACRtJ,IAAAA,IAAI,EAAE;AACFuJ,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDvJ,IAAAA,IAAI,EAAE;AACFsJ,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDtJ,IAAAA,QAAQ,EAAE;AACNoJ,MAAAA,GAAG,EAAEG,WAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN3J,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
require('./CodeInput.styles_3w98lu.css');
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
5
|
-
|
6
|
-
var react = require('@linaria/react');
|
7
|
-
|
8
|
-
var base = "b1y2r9rw";
|
9
|
-
var CodeWrapper = /*#__PURE__*/react.styled('div')({
|
10
|
-
name: "CodeWrapper",
|
11
|
-
"class": "c1fux591",
|
12
|
-
propsAsIs: false
|
13
|
-
});
|
14
|
-
var CodeGroup = /*#__PURE__*/react.styled('div')({
|
15
|
-
name: "CodeGroup",
|
16
|
-
"class": "cuja080",
|
17
|
-
propsAsIs: false
|
18
|
-
});
|
19
|
-
var Separator = /*#__PURE__*/react.styled('div')({
|
20
|
-
name: "Separator",
|
21
|
-
"class": "s175xqem",
|
22
|
-
propsAsIs: false
|
23
|
-
});
|
24
|
-
var _exp3 = function _exp3() {
|
25
|
-
return function (_ref) {
|
26
|
-
var hide = _ref.hide;
|
27
|
-
return hide ? '0' : '1';
|
28
|
-
};
|
29
|
-
};
|
30
|
-
var ItemInput = /*#__PURE__*/react.styled('input')({
|
31
|
-
name: "ItemInput",
|
32
|
-
"class": "i16menav",
|
33
|
-
propsAsIs: false,
|
34
|
-
vars: {
|
35
|
-
"i16menav-0": [/*#__PURE__*/_exp3()]
|
36
|
-
}
|
37
|
-
});
|
38
|
-
var ItemWrapper = /*#__PURE__*/react.styled('div')({
|
39
|
-
name: "ItemWrapper",
|
40
|
-
"class": "iuawgdb",
|
41
|
-
propsAsIs: false
|
42
|
-
});
|
43
|
-
var ItemCircle = /*#__PURE__*/react.styled('div')({
|
44
|
-
name: "ItemCircle",
|
45
|
-
"class": "i1tn2nm3",
|
46
|
-
propsAsIs: false
|
47
|
-
});
|
48
|
-
var _exp9 = function _exp9() {
|
49
|
-
return function (_ref2) {
|
50
|
-
var captionAlign = _ref2.captionAlign;
|
51
|
-
return captionAlign;
|
52
|
-
};
|
53
|
-
};
|
54
|
-
var _exp10 = function _exp10() {
|
55
|
-
return function (_ref3) {
|
56
|
-
var widthValue = _ref3.widthValue;
|
57
|
-
return widthValue || 'auto';
|
58
|
-
};
|
59
|
-
};
|
60
|
-
var CaptionWrapper = /*#__PURE__*/react.styled('div')({
|
61
|
-
name: "CaptionWrapper",
|
62
|
-
"class": "c19x1gm7",
|
63
|
-
propsAsIs: false,
|
64
|
-
vars: {
|
65
|
-
"c19x1gm7-0": [/*#__PURE__*/_exp9()],
|
66
|
-
"c19x1gm7-1": [/*#__PURE__*/_exp10()]
|
67
|
-
}
|
68
|
-
});
|
69
|
-
|
70
|
-
exports.CaptionWrapper = CaptionWrapper;
|
71
|
-
exports.CodeGroup = CodeGroup;
|
72
|
-
exports.CodeWrapper = CodeWrapper;
|
73
|
-
exports.ItemCircle = ItemCircle;
|
74
|
-
exports.ItemInput = ItemInput;
|
75
|
-
exports.ItemWrapper = ItemWrapper;
|
76
|
-
exports.Separator = Separator;
|
77
|
-
exports.base = base;
|
78
|
-
//# sourceMappingURL=CodeInput.styles.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeInput.styles.js","sources":["../../../src/components/CodeInput/CodeInput.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { classes, tokens } from './CodeInput.tokens';\n\nexport const base = css`\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: min-content;\n align-items: center;\n\n &.${classes.captionAlignLeft} {\n align-items: start;\n }\n`;\n\nexport const CodeWrapper = styled.div`\n display: flex;\n align-items: center;\n`;\n\nexport const CodeGroup = styled.div`\n display: flex;\n align-items: center;\n`;\n\nexport const Separator = styled.div`\n width: var(${tokens.separatorWidth});\n`;\n\nexport const ItemInput = styled.input<{ hide?: boolean }>`\n box-sizing: border-box;\n appearance: none;\n border: 0;\n padding: 0;\n outline: none;\n pointer-events: none;\n text-align: center;\n caret-color: transparent;\n caret: none;\n opacity: ${({ hide }) => (hide ? '0' : '1')};\n`;\n\nexport const ItemWrapper = styled.div`\n position: relative;\n`;\n\nexport const ItemCircle = styled.div<{ filled?: boolean }>`\n position: absolute;\n top: calc(50% - calc(var(${tokens.codeItemCircleSize}) / 2));\n left: calc(50% - calc(var(${tokens.codeItemCircleSize}) / 2));\n width: var(${tokens.codeItemCircleSize});\n height: var(${tokens.codeItemCircleSize});\n box-sizing: border-box;\n border-radius: 100%;\n background-color: 'transparent';\n`;\n\nexport const CaptionWrapper = styled.div<{ captionAlign: 'left' | 'center'; widthValue?: string }>`\n text-align: ${({ captionAlign }) => captionAlign};\n align-self: ${({ captionAlign }) => captionAlign};\n width: ${({ widthValue }) => widthValue || 'auto'};\n white-space: pre-line;\n`;\n"],"names":["base","CodeWrapper","styled","name","class","propsAsIs","CodeGroup","Separator","_exp3","_ref","hide","ItemInput","vars","ItemWrapper","ItemCircle","_exp9","_ref2","captionAlign","_exp10","_ref3","widthValue","CaptionWrapper"],"mappings":";;;;;;AAKO,IAAMA,IAAI,GAUhB,WAAA;AAEM,IAAMC,WAAW,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,aAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAGhC,EAAA;AAEM,IAAMC,SAAS,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,WAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAG9B,EAAA;AAEM,IAAME,SAAS,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,WAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAE9B,EAAA;AAAC,IAAAG,KAAA,GA5BgBA,SA4BhBA,KAAAA,GAAA;AAAA,EAAA,OAYa,UAAAC,IAAA,EAAA;AAAA,IAAA,IAAGC,IAAAA,GAAAA,IAAAA,CAAAA,IAAAA,CAAAA;AAAAA,IAAAA,OAAYA,IAAI,GAAG,GAAG,GAAG,GAAI,CAAA;AAAA,GAAA,CAAA;AAAA,CAAA,CAAA;AAVxC,IAAMC,SAAS,gBAAGT,YAAM,CAAA,OAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,WAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAAO,EAAAA,IAAA,EAAA;AAAA,IAAA,YAAA,EAAA,cAUhBJ,K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kit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;width:-webkit-min-content;width:-moz-min-content;width:min-content;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.b1y2r9rw.codeinput-caption-align-left{-webkit-align-items:start;-webkit-box-align:start;-ms-flex-align:start;align-items:start;}
|
2
|
-
.c1fux591{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
3
|
-
.cuja080{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
4
|
-
.s175xqem{width:var(--plasma-codeinput-separator-width);}
|
5
|
-
.i16menav{box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;outline:none;pointer-events:none;text-align:center;caret-color:transparent;caret:none;opacity:var(--i16menav-0);}
|
6
|
-
.iuawgdb{position:relative;}
|
7
|
-
.i1tn2nm3{position:absolute;top:calc(50% - calc(var(--plasma-codeinput-item-circle-size) / 2));left:calc(50% - calc(var(--plasma-codeinput-item-circle-size) / 2));width:var(--plasma-codeinput-item-circle-size);height:var(--plasma-codeinput-item-circle-size);box-sizing:border-box;border-radius:100%;background-color:'transparent';}
|
8
|
-
.c19x1gm7{text-align:var(--c19x1gm7-0);-webkit-align-self:var(--c19x1gm7-0);-ms-flex-item-align:var(--c19x1gm7-0);align-self:var(--c19x1gm7-0);width:var(--c19x1gm7-1);white-space:pre-line;}
|
@@ -1,72 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var classes = {
|
6
|
-
itemError: 'codeinput-item-error',
|
7
|
-
itemErrorAnimation: 'codeinput-item-error-animation',
|
8
|
-
itemErrorFade: 'codeinput-item-error-fade',
|
9
|
-
itemCircle: 'codeinput-item-circle',
|
10
|
-
itemCirlceFilled: 'codeinput-item-circle-filled',
|
11
|
-
itemCircleError: 'codeinput-item-circle-error',
|
12
|
-
itemCircleErrorAnimation: 'codeinput-item-circle-error-animation',
|
13
|
-
captionError: 'codeinput-caption-error',
|
14
|
-
codeError: 'codeinput-code-error',
|
15
|
-
codeErrorAnimation: 'codeinput-code-error-animation',
|
16
|
-
codeErrorFade: 'codeinput-code-error-fade',
|
17
|
-
captionAlignLeft: 'codeinput-caption-align-left',
|
18
|
-
hoverEnabled: 'codeinput-item-hover-enabled',
|
19
|
-
segmented: 'codeinput-shape-segmented',
|
20
|
-
"default": 'codeinput-shape-default',
|
21
|
-
disabled: 'codeinput-disabled'
|
22
|
-
};
|
23
|
-
var tokens = {
|
24
|
-
captionGap: '--plasma-codeinput-caption-gap',
|
25
|
-
codeItemsGap: '--plasma-codeinput-code-item-gap',
|
26
|
-
separatorWidth: '--plasma-codeinput-separator-width',
|
27
|
-
largeCodeItemWidth: '--plasma-codeinput-item-large-width',
|
28
|
-
largeCodeItemHeight: '--plasma-codeinput-item-large-height',
|
29
|
-
mediumCodeItemWidth: '--plasma-codeinput-item-medium-width',
|
30
|
-
mediumCodeItemHeight: '--plasma-codeinput-item-medium-height',
|
31
|
-
smallCodeItemWidth: '--plasma-codeinput-item-small-width',
|
32
|
-
smallCodeItemHeight: '--plasma-codeinput-item-small-height',
|
33
|
-
codeItemCircleSize: '--plasma-codeinput-item-circle-size',
|
34
|
-
codeItemCircleBorderWidth: '--plasma-codeinput-item-circle-border-width',
|
35
|
-
fontStyle: '--plasma-codeinput-font-style',
|
36
|
-
fontFamily: '--plasma-codeinput-font-family',
|
37
|
-
fontWeight: '--plasma-codeinput-font-weight',
|
38
|
-
letterSpacing: '--plasma-codeinput-letter-spacing',
|
39
|
-
largeFontSize: '--plasma-codeinput-large-font-size',
|
40
|
-
largeLineHeight: '--plasma-codeinput-large-line-height',
|
41
|
-
mediumFontSize: '--plasma-codeinput-medium-font-size',
|
42
|
-
mediumLineHeight: '--plasma-codeinput-medium-line-height',
|
43
|
-
smallFontSize: '--plasma-codeinput-small-font-size',
|
44
|
-
smallLineHeight: '--plasma-codeinput-small-line-height',
|
45
|
-
captionFontFamily: '--plasma-codeinput-caption-font-family',
|
46
|
-
captionFontSize: '--plasma-codeinput-caption-font-style',
|
47
|
-
captionFontStyle: '--plasma-codeinput-caption-font-size',
|
48
|
-
captionFontWeight: '--plasma-codeinput-caption-font-weight',
|
49
|
-
captionLetterSpacing: '--plasma-codeinput-caption-letter-spacing',
|
50
|
-
captionLineHeight: '--plasma-codeinput-caption-line-height',
|
51
|
-
borderRadius: '--plasma-codeinput-code-item-border-radius',
|
52
|
-
borderRadiusSegmented: '--plasma-codeinput-code-item-border-radius-segmented',
|
53
|
-
segmentedSideBorderRadius: '--plasma-codeinput-code-item-segmented-side-border-radius',
|
54
|
-
captionColor: '--plasma-codeinput-caption-color',
|
55
|
-
captionColorError: '--plasma-codeinput-caption-color-error',
|
56
|
-
codeColor: '--plasma-codeinput-code-color',
|
57
|
-
codeColorError: '--plasma-codeinput-code-color-error',
|
58
|
-
backgroundColor: '--plasma-codeinput-background-color',
|
59
|
-
backgroundColorHover: '--plasma-codeinput-background-color-hover',
|
60
|
-
backgroundColorFocus: '--plasma-codeinput-background-color-focus',
|
61
|
-
backgroundErrorColor: '--plasma-codeinput-background-error-color',
|
62
|
-
borderWidth: '--plasma-codeinput-border-width',
|
63
|
-
borderColor: '--plasma-codeinput-border-color',
|
64
|
-
borderColorHover: '--plasma-codeinput-border-color-hover',
|
65
|
-
borderColorFocus: '--plasma-codeinput-border-color-focus',
|
66
|
-
borderErrorColor: '--plasma-codeinput-border-error-color',
|
67
|
-
disabledOpacity: '--plasma-codeinput-disabled-opacity'
|
68
|
-
};
|
69
|
-
|
70
|
-
exports.classes = classes;
|
71
|
-
exports.tokens = tokens;
|
72
|
-
//# sourceMappingURL=CodeInput.tokens.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CodeInput.tokens.js","sources":["../../../src/components/CodeInput/CodeInput.tokens.ts"],"sourcesContent":["export const classes = {\n itemError: 'codeinput-item-error',\n itemErrorAnimation: 'codeinput-item-error-animation',\n itemErrorFade: 'codeinput-item-error-fade',\n itemCircle: 'codeinput-item-circle',\n itemCirlceFilled: 'codeinput-item-circle-filled',\n itemCircleError: 'codeinput-item-circle-error',\n itemCircleErrorAnimation: 'codeinput-item-circle-error-animation',\n captionError: 'codeinput-caption-error',\n codeError: 'codeinput-code-error',\n codeErrorAnimation: 'codeinput-code-error-animation',\n codeErrorFade: 'codeinput-code-error-fade',\n\n captionAlignLeft: 'codeinput-caption-align-left',\n\n hoverEnabled: 'codeinput-item-hover-enabled',\n\n segmented: 'codeinput-shape-segmented',\n default: 'codeinput-shape-default',\n\n disabled: 'codeinput-disabled',\n};\n\nexport const privateTokens = {\n itemWidth: '--private-codeinput-item-width',\n itemHeight: '--private-codeinput-item-hieght',\n fontSize: '--private-codeinput-font-size',\n lineHeight: '--private-codeinput-line-height',\n};\n\nexport const tokens = {\n captionGap: '--plasma-codeinput-caption-gap',\n codeItemsGap: '--plasma-codeinput-code-item-gap',\n\n separatorWidth: '--plasma-codeinput-separator-width',\n\n largeCodeItemWidth: '--plasma-codeinput-item-large-width',\n largeCodeItemHeight: '--plasma-codeinput-item-large-height',\n\n mediumCodeItemWidth: '--plasma-codeinput-item-medium-width',\n mediumCodeItemHeight: '--plasma-codeinput-item-medium-height',\n\n smallCodeItemWidth: '--plasma-codeinput-item-small-width',\n smallCodeItemHeight: '--plasma-codeinput-item-small-height',\n\n codeItemCircleSize: '--plasma-codeinput-item-circle-size',\n codeItemCircleBorderWidth: '--plasma-codeinput-item-circle-border-width',\n\n fontStyle: '--plasma-codeinput-font-style',\n fontFamily: '--plasma-codeinput-font-family',\n fontWeight: '--plasma-codeinput-font-weight',\n letterSpacing: '--plasma-codeinput-letter-spacing',\n\n largeFontSize: '--plasma-codeinput-large-font-size',\n largeLineHeight: '--plasma-codeinput-large-line-height',\n\n mediumFontSize: '--plasma-codeinput-medium-font-size',\n mediumLineHeight: '--plasma-codeinput-medium-line-height',\n\n smallFontSize: '--plasma-codeinput-small-font-size',\n smallLineHeight: '--plasma-codeinput-small-line-height',\n\n captionFontFamily: '--plasma-codeinput-caption-font-family',\n captionFontSize: '--plasma-codeinput-caption-font-style',\n captionFontStyle: '--plasma-codeinput-caption-font-size',\n captionFontWeight: '--plasma-codeinput-caption-font-weight',\n captionLetterSpacing: '--plasma-codeinput-caption-letter-spacing',\n captionLineHeight: '--plasma-codeinput-caption-line-height',\n\n borderRadius: '--plasma-codeinput-code-item-border-radius',\n borderRadiusSegmented: '--plasma-codeinput-code-item-border-radius-segmented',\n segmentedSideBorderRadius: '--plasma-codeinput-code-item-segmented-side-border-radius',\n\n captionColor: '--plasma-codeinput-caption-color',\n captionColorError: '--plasma-codeinput-caption-color-error',\n\n codeColor: '--plasma-codeinput-code-color',\n codeColorError: '--plasma-codeinput-code-color-error',\n\n backgroundColor: '--plasma-codeinput-background-color',\n backgroundColorHover: '--plasma-codeinput-background-color-hover',\n backgroundColorFocus: '--plasma-codeinput-background-color-focus',\n backgroundErrorColor: '--plasma-codeinput-background-error-color',\n\n borderWidth: '--plasma-codeinput-border-width',\n borderColor: '--plasma-codeinput-border-color',\n borderColorHover: '--plasma-codeinput-border-color-hover',\n borderColorFocus: '--plasma-codeinput-border-color-focus',\n borderErrorColor: '--plasma-codeinput-border-error-color',\n\n disabledOpacity: '--plasma-codeinput-disabled-opacity',\n};\n\nexport type TokensType = keyof typeof tokens;\n"],"names":["classes","itemError","itemErrorAnimation","itemErrorFade","itemCircle","itemCirlceFilled","itemCircleError","itemCircleErrorAnimation","captionError","codeError","codeErrorAnimation","codeErrorFade","captionAlignLeft","hoverEnabled","segmented","disabled","tokens","captionGap","codeItemsGap","separatorWidth","largeCodeItemWidth","largeCodeItemHeight","mediumCodeItemWidth","mediumCodeItemHeight","smallCodeItemWidth","smallCodeItemHeight","codeItemCircleSize","codeItemCircleBorderWidth","fontStyle","fontFamily","fontWeight","letterSpacing","largeFontSize","largeLineHeight","mediumFontSize","mediumLineHeight","smallFontSize","smallLineHeight","captionFontFamily","captionFontSize","captionFontStyle","captionFontWeight","captionLetterSpacing","captionLineHeight","borderRadius","borderRadiusSegmented","segmentedSideBorderRadius","captionColor","captionColorError","codeColor","codeColorError","backgroundColor","backgroundColorHover","backgroundColorFocus","backgroundErrorColor","borderWidth","borderColor","borderColorHover","borderColorFocus","borderErrorColor","disabledOpacity"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,SAAS,EAAE,sBAAsB;AACjCC,EAAAA,kBAAkB,EAAE,gCAAgC;AACpDC,EAAAA,aAAa,EAAE,2BAA2B;AAC1CC,EAAAA,UAAU,EAAE,uBAAuB;AACnCC,EAAAA,gBAAgB,EAAE,8BAA8B;AAChDC,EAAAA,eAAe,EAAE,6BAA6B;AAC9CC,EAAAA,wBAAwB,EAAE,uCAAuC;AACjEC,EAAAA,YAAY,EAAE,yBAAyB;AACvCC,EAAAA,SAAS,EAAE,sBAAsB;AACjCC,EAAAA,kBAAkB,EAAE,gCAAgC;AACpDC,EAAAA,aAAa,EAAE,2BAA2B;AAE1CC,EAAAA,gBAAgB,EAAE,8BAA8B;AAEhDC,EAAAA,YAAY,EAAE,8BAA8B;AAE5CC,EAAAA,SAAS,EAAE,2BAA2B;AACtC,EAAA,SAAA,EAAS,yBAAyB;AAElCC,EAAAA,QAAQ,EAAE,oBAAA;AACd,EAAC;AASM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,gCAAgC;AAC5CC,EAAAA,YAAY,EAAE,kCAAkC;AAEhDC,EAAAA,cAAc,EAAE,oCAAoC;AAEpDC,EAAAA,kBAAkB,EAAE,qCAAqC;AACzDC,EAAAA,mBAAmB,EAAE,sCAAsC;AAE3DC,EAAAA,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AiC;AAC9CC,EAAAA,WAAW,EAAE,iCAAiC;AAC9CC,EAAAA,gBAAgB,EAAE,uCAAuC;AACzDC,EAAAA,gBAAgB,EAAE,uCAAuC;AACzDC,EAAAA,gBAAgB,EAAE,uCAAuC;AAEzDC,EAAAA,eAAe,EAAE,qCAAA;AACrB;;;;;"}
|
@@ -1,55 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
var _rollupPluginBabelHelpers = require('../../../_virtual/_rollupPluginBabelHelpers.js');
|
6
|
-
var CodeInput_tokens = require('../CodeInput.tokens.js');
|
7
|
-
var constants = require('../../../utils/constants.js');
|
8
|
-
var initialValuesHelper = require('../../../utils/initialValuesHelper.js');
|
9
|
-
|
10
|
-
var handleCodeError = function handleCodeError(_ref) {
|
11
|
-
var _captionRef$current, _captionRef$current2;
|
12
|
-
var codeLength = _ref.codeLength,
|
13
|
-
codeErrorBehavior = _ref.codeErrorBehavior,
|
14
|
-
currentCode = _ref.currentCode,
|
15
|
-
inputRefs = _ref.inputRefs,
|
16
|
-
inputContainerRef = _ref.inputContainerRef,
|
17
|
-
captionRef = _ref.captionRef,
|
18
|
-
setCode = _ref.setCode,
|
19
|
-
codeSetter = _ref.codeSetter;
|
20
|
-
if (!inputContainerRef.current) {
|
21
|
-
return;
|
22
|
-
}
|
23
|
-
switch (codeErrorBehavior) {
|
24
|
-
case 'keep':
|
25
|
-
inputContainerRef.current.classList.add(CodeInput_tokens.classes.codeError, CodeInput_tokens.classes.codeErrorAnimation);
|
26
|
-
(_captionRef$current = captionRef.current) === null || _captionRef$current === void 0 || _captionRef$current.classList.add(CodeInput_tokens.classes.captionError);
|
27
|
-
setTimeout(function () {
|
28
|
-
var _inputContainerRef$cu;
|
29
|
-
var newCode = _rollupPluginBabelHelpers.toConsumableArray(currentCode);
|
30
|
-
newCode.pop();
|
31
|
-
codeSetter(newCode);
|
32
|
-
setCode(currentCode);
|
33
|
-
(_inputContainerRef$cu = inputContainerRef.current) === null || _inputContainerRef$cu === void 0 || _inputContainerRef$cu.classList.remove(CodeInput_tokens.classes.codeErrorAnimation);
|
34
|
-
setTimeout(function () {
|
35
|
-
var _inputRefs$current, _inputRefs$current2;
|
36
|
-
(_inputRefs$current = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current === void 0 || _inputRefs$current.setSelectionRange(0, 1);
|
37
|
-
(_inputRefs$current2 = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current2 === void 0 || _inputRefs$current2.focus();
|
38
|
-
}, 0);
|
39
|
-
}, constants.ANIMATION_TIMEOUT);
|
40
|
-
break;
|
41
|
-
case 'remove-code':
|
42
|
-
default:
|
43
|
-
inputContainerRef.current.classList.add(CodeInput_tokens.classes.codeError, CodeInput_tokens.classes.codeErrorAnimation, CodeInput_tokens.classes.codeErrorFade);
|
44
|
-
(_captionRef$current2 = captionRef.current) === null || _captionRef$current2 === void 0 || _captionRef$current2.classList.add(CodeInput_tokens.classes.captionError);
|
45
|
-
setTimeout(function () {
|
46
|
-
var _inputRefs$current$, _inputContainerRef$cu2;
|
47
|
-
codeSetter(initialValuesHelper.getCodeValue(codeLength, ''));
|
48
|
-
(_inputRefs$current$ = inputRefs.current[0]) === null || _inputRefs$current$ === void 0 || _inputRefs$current$.focus();
|
49
|
-
(_inputContainerRef$cu2 = inputContainerRef.current) === null || _inputContainerRef$cu2 === void 0 || _inputContainerRef$cu2.classList.remove(CodeInput_tokens.classes.codeError, CodeInput_tokens.classes.codeErrorAnimation, CodeInput_tokens.classes.codeErrorFade);
|
50
|
-
}, constants.ANIMATION_TIMEOUT);
|
51
|
-
}
|
52
|
-
};
|
53
|
-
|
54
|
-
exports.handleCodeError = handleCodeError;
|
55
|
-
//# sourceMappingURL=handleCodeError.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"handleCodeError.js","sources":["../../../../src/components/CodeInput/utils/handleCodeError.ts"],"sourcesContent":["import { Dispatch, MutableRefObject, SetStateAction } from 'react';\n\nimport type { CodeErrorBehavior } from '../CodeInput.types';\nimport { classes } from '../CodeInput.tokens';\nimport { getCodeValue } from '../../../utils';\nimport { ANIMATION_TIMEOUT } from '../../../utils/constants';\n\ntype ValidateSymbolsArgs = {\n codeLength: number;\n codeErrorBehavior: CodeErrorBehavior;\n currentCode: Array<string>;\n inputContainerRef: MutableRefObject<HTMLDivElement | null>;\n inputRefs: MutableRefObject<Array<HTMLInputElement | null>>;\n captionRef: MutableRefObject<HTMLDivElement | null>;\n setCode: Dispatch<SetStateAction<Array<string>>>;\n codeSetter: (newCode: Array<string>) => void;\n};\n\nexport const handleCodeError = ({\n codeLength,\n codeErrorBehavior,\n currentCode,\n inputRefs,\n inputContainerRef,\n captionRef,\n setCode,\n codeSetter,\n}: ValidateSymbolsArgs) => {\n if (!inputContainerRef.current) {\n return;\n }\n\n switch (codeErrorBehavior) {\n case 'keep':\n inputContainerRef.current.classList.add(classes.codeError, classes.codeErrorAnimation);\n captionRef.current?.classList.add(classes.captionError);\n\n setTimeout(() => {\n const newCode = [...currentCode];\n\n newCode.pop();\n codeSetter(newCode);\n setCode(currentCode);\n\n inputContainerRef.current?.classList.remove(classes.codeErrorAnimation);\n\n setTimeout(() => {\n inputRefs.current[inputRefs.current.length - 1]?.setSelectionRange(0, 1);\n inputRefs.current[inputRefs.current.length - 1]?.focus();\n }, 0);\n }, ANIMATION_TIMEOUT);\n\n break;\n case 'remove-code':\n default:\n inputContainerRef.current.classList.add(\n classes.codeError,\n classes.codeErrorAnimation,\n classes.codeErrorFade,\n );\n captionRef.current?.classList.add(classes.captionError);\n\n setTimeout(() => {\n codeSetter(getCodeValue(codeLength, ''));\n\n inputRefs.current[0]?.focus();\n inputContainerRef.current?.classList.remove(\n classes.codeError,\n classes.codeErrorAnimation,\n classes.codeErrorFade,\n );\n }, ANIMATION_TIMEOUT);\n }\n};\n"],"names":["handleCodeError","_ref","_captionRef$current","_captionRef$current2","codeLength","codeErrorBehavior","currentCode","inputRefs","inputContainerRef","captionRef","setCode","codeSetter","current","classList","add","classes","codeError","codeErrorAnimation","captionError","setTimeout","_inputContainerRef$cu","newCode","_toConsumableArray","pop","remove","_inputRefs$current","_inputRefs$current2","length","setSelectionRange","focus","ANIMATION_TIMEOUT","codeErrorFade","_inputRefs$current$","_inputContainerRef$cu2","getCodeValue"],"mappings":";;;;;;;;;IAkBaA,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EASD;EAAA,IAAAC,mBAAA,EAAAC,oBAAA,CAAA;AAAA,EAAA,IARvBC,UAAU,GAAAH,IAAA,CAAVG,UAAU;IACVC,iBAAiB,GAAAJ,IAAA,CAAjBI,iBAAiB;IACjBC,WAAW,GAAAL,IAAA,CAAXK,WAAW;IACXC,SAAS,GAAAN,IAAA,CAATM,SAAS;IACTC,iBAAiB,GAAAP,IAAA,CAAjBO,iBAAiB;IACjBC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IACVC,OAAO,GAAAT,IAAA,CAAPS,OAAO;IACPC,UAAU,GAAAV,IAAA,CAAVU,UAAU,CAAA;AAEV,EAAA,IAAI,CAACH,iBAAiB,CAACI,OAAO,EAAE;AAC5B,IAAA,OAAA;AACJ,GAAA;AAEA,EAAA,QAAQP,iBAAiB;AACrB,IAAA,KAAK,MAAM;AACPG,MAAAA,iBAAiB,CAACI,OAAO,CAACC,SAAS,CAACC,GAAG,CAACC,wBAAO,CAACC,SAAS,EAAED,wBAAO,CAACE,kBAAkB,CAAC,CAAA;AACtF,MAAA,CAAAf,mBAAA,GAAAO,UAAU,CAACG,OAAO,cAAAV,mBAAA,KAAA,KAAA,CAAA,IAAlBA,mBAAA,CAAoBW,SAAS,CAACC,GAAG,CAACC,wBAAO,CAACG,YAAY,CAAC,CAAA;AAEvDC,MAAAA,UAAU,CAAC,YAAM;AAAA,QAAA,IAAAC,qBAAA,CAAA;AACb,QAAA,IAAMC,OAAO,GAAAC,2CAAA,CAAOhB,WAAW,CAA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