@salutejs/plasma-new-hope 0.325.0-canary.1941.15208820474.0 → 0.325.0-canary.1954.15208821137.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/List/List.css +1 -0
- package/cjs/components/List/List.js +63 -0
- package/cjs/components/List/List.js.map +1 -0
- package/cjs/components/List/List.styles.js +9 -0
- package/cjs/components/List/List.styles.js.map +1 -0
- package/cjs/components/List/List.styles_9yg2yl.css +1 -0
- package/cjs/components/List/List.tokens.js +41 -0
- package/cjs/components/List/List.tokens.js.map +1 -0
- package/cjs/components/List/ui/ListItem.css +18 -0
- package/cjs/components/List/ui/ListItem.js +27 -0
- package/cjs/components/List/ui/ListItem.js.map +1 -0
- package/cjs/components/List/ui/ListItem.styles.js +28 -0
- package/cjs/components/List/ui/ListItem.styles.js.map +1 -0
- package/cjs/components/List/ui/ListItem.styles_1eo5k14.css +2 -0
- package/cjs/components/{CodeField/variations/_size → List/variations/_disabled}/base.js +2 -2
- package/cjs/components/List/variations/_disabled/base.js.map +1 -0
- package/cjs/components/List/variations/_disabled/base_x642ct.css +1 -0
- package/cjs/components/{CodeField/variations/_view → List/variations/_size}/base.js +2 -2
- package/cjs/components/List/variations/_size/base.js.map +1 -0
- package/cjs/components/List/variations/_size/base_x642ct.css +1 -0
- package/cjs/components/{CodeField/variations/_shape → List/variations/_variant}/base.js +2 -2
- package/cjs/components/List/variations/_variant/base.js.map +1 -0
- package/cjs/components/List/variations/_variant/base_x642ct.css +1 -0
- package/cjs/components/{CodeField/variations/_disabled → List/variations/_view}/base.js +2 -2
- package/cjs/components/List/variations/_view/base.js.map +1 -0
- package/cjs/components/List/variations/_view/base_x642ct.css +1 -0
- package/cjs/components/NumberInput/ui/Input/Input.js +3 -0
- package/cjs/components/NumberInput/ui/Input/Input.js.map +1 -1
- package/cjs/index.css +5 -15
- package/cjs/index.js +8 -10
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/List/List.js +59 -0
- package/emotion/cjs/components/List/List.styles.js +9 -0
- package/emotion/cjs/components/List/List.tokens.js +39 -0
- package/emotion/cjs/components/List/index.js +38 -0
- package/emotion/cjs/components/List/ui/ListItem.js +24 -0
- package/emotion/cjs/components/List/ui/ListItem.styles.js +21 -0
- package/emotion/cjs/components/List/variations/_disabled/base.js +8 -0
- package/emotion/cjs/components/List/variations/_disabled/tokens.json +1 -0
- package/emotion/cjs/components/List/variations/_size/base.js +8 -0
- package/emotion/cjs/components/List/variations/_size/tokens.json +1 -0
- package/emotion/cjs/components/List/variations/_variant/base.js +8 -0
- package/emotion/cjs/components/List/variations/_variant/tokens.json +1 -0
- package/emotion/cjs/components/List/variations/_view/base.js +8 -0
- package/emotion/cjs/components/List/variations/_view/tokens.json +1 -0
- package/emotion/cjs/components/NumberInput/ui/Input/Input.js +3 -0
- package/emotion/cjs/examples/plasma_b2c/components/List/List.config.js +34 -0
- package/emotion/cjs/examples/plasma_b2c/components/List/List.js +12 -0
- package/emotion/cjs/examples/plasma_b2c/components/List/List.stories.tsx +60 -0
- package/emotion/cjs/examples/plasma_web/components/List/List.config.js +34 -0
- package/emotion/cjs/examples/plasma_web/components/List/List.js +12 -0
- package/emotion/cjs/examples/plasma_web/components/List/List.stories.tsx +60 -0
- package/emotion/cjs/index.js +11 -11
- package/emotion/es/components/List/List.js +50 -0
- package/emotion/es/components/List/List.styles.js +3 -0
- package/emotion/es/components/List/List.tokens.js +33 -0
- package/emotion/es/components/List/index.js +3 -0
- package/emotion/es/components/List/ui/ListItem.js +17 -0
- package/emotion/es/components/List/ui/ListItem.styles.js +14 -0
- package/emotion/es/components/List/variations/_disabled/base.js +2 -0
- package/emotion/es/components/List/variations/_disabled/tokens.json +1 -0
- package/emotion/es/components/List/variations/_size/base.js +2 -0
- package/emotion/es/components/List/variations/_size/tokens.json +1 -0
- package/emotion/es/components/List/variations/_variant/base.js +2 -0
- package/emotion/es/components/List/variations/_variant/tokens.json +1 -0
- package/emotion/es/components/List/variations/_view/base.js +2 -0
- package/emotion/es/components/List/variations/_view/tokens.json +1 -0
- package/emotion/es/components/NumberInput/ui/Input/Input.js +3 -0
- package/emotion/es/examples/plasma_b2c/components/List/List.config.js +28 -0
- package/emotion/es/examples/plasma_b2c/components/List/List.js +6 -0
- package/emotion/es/examples/plasma_b2c/components/List/List.stories.tsx +60 -0
- package/emotion/es/examples/plasma_web/components/List/List.config.js +28 -0
- package/emotion/es/examples/plasma_web/components/List/List.js +6 -0
- package/emotion/es/examples/plasma_web/components/List/List.stories.tsx +60 -0
- package/emotion/es/index.js +2 -1
- package/es/components/List/List.css +1 -0
- package/es/components/List/List.js +54 -0
- package/es/components/List/List.js.map +1 -0
- package/es/components/List/List.styles.js +5 -0
- package/es/components/List/List.styles.js.map +1 -0
- package/es/components/List/List.styles_9yg2yl.css +1 -0
- package/es/components/List/List.tokens.js +36 -0
- package/es/components/List/List.tokens.js.map +1 -0
- package/es/components/List/ui/ListItem.css +18 -0
- package/es/components/List/ui/ListItem.js +19 -0
- package/es/components/List/ui/ListItem.js.map +1 -0
- package/es/components/List/ui/ListItem.styles.js +23 -0
- package/es/components/List/ui/ListItem.styles.js.map +1 -0
- package/es/components/List/ui/ListItem.styles_1eo5k14.css +2 -0
- package/es/components/{CodeField/variations/_view → List/variations/_disabled}/base.js +2 -2
- package/es/components/List/variations/_disabled/base.js.map +1 -0
- package/es/components/List/variations/_disabled/base_x642ct.css +1 -0
- package/es/components/{CodeField → List}/variations/_size/base.js +2 -2
- package/es/components/List/variations/_size/base.js.map +1 -0
- package/es/components/List/variations/_size/base_x642ct.css +1 -0
- package/es/components/List/variations/_variant/base.js +5 -0
- package/es/components/List/variations/_variant/base.js.map +1 -0
- package/es/components/List/variations/_variant/base_x642ct.css +1 -0
- package/es/components/{CodeField/variations/_disabled → List/variations/_view}/base.js +2 -2
- package/es/components/List/variations/_view/base.js.map +1 -0
- package/es/components/List/variations/_view/base_x642ct.css +1 -0
- package/es/components/NumberInput/ui/Input/Input.js +3 -0
- package/es/components/NumberInput/ui/Input/Input.js.map +1 -1
- package/es/index.css +5 -15
- package/es/index.js +3 -3
- package/package.json +2 -2
- package/styled-components/cjs/components/List/List.js +59 -0
- package/styled-components/cjs/components/List/List.styles.js +9 -0
- package/styled-components/cjs/components/List/List.tokens.js +39 -0
- package/styled-components/cjs/components/List/List.types.js +5 -0
- package/styled-components/cjs/components/List/index.js +38 -0
- package/styled-components/cjs/components/List/ui/ListItem.js +24 -0
- package/styled-components/cjs/components/List/ui/ListItem.styles.js +19 -0
- package/styled-components/cjs/components/List/ui/ListItem.types.js +5 -0
- package/styled-components/cjs/components/{CodeField → List}/variations/_disabled/base.js +1 -2
- package/styled-components/cjs/components/List/variations/_disabled/tokens.json +1 -0
- package/styled-components/cjs/components/List/variations/_size/base.js +8 -0
- package/styled-components/cjs/components/List/variations/_size/tokens.json +1 -0
- package/styled-components/cjs/components/List/variations/_variant/base.js +8 -0
- package/styled-components/cjs/components/List/variations/_variant/tokens.json +1 -0
- package/styled-components/cjs/components/List/variations/_view/base.js +8 -0
- package/styled-components/cjs/components/List/variations/_view/tokens.json +1 -0
- package/styled-components/cjs/components/NumberInput/ui/Input/Input.js +3 -0
- package/styled-components/cjs/examples/plasma_b2c/components/List/List.config.js +34 -0
- package/styled-components/cjs/examples/plasma_b2c/components/List/List.js +12 -0
- package/styled-components/cjs/examples/plasma_b2c/components/List/List.stories.tsx +60 -0
- package/styled-components/cjs/examples/plasma_web/components/List/List.config.js +34 -0
- package/styled-components/cjs/examples/plasma_web/components/List/List.js +12 -0
- package/styled-components/cjs/examples/plasma_web/components/List/List.stories.tsx +60 -0
- package/styled-components/cjs/index.js +11 -11
- package/styled-components/es/components/List/List.js +50 -0
- package/styled-components/es/components/List/List.styles.js +3 -0
- package/styled-components/es/components/List/List.tokens.js +33 -0
- package/styled-components/es/components/List/List.types.js +1 -0
- package/styled-components/es/components/List/index.js +3 -0
- package/styled-components/es/components/List/ui/ListItem.js +17 -0
- package/styled-components/es/components/List/ui/ListItem.styles.js +12 -0
- package/styled-components/es/components/List/ui/ListItem.types.js +1 -0
- package/styled-components/es/components/List/variations/_disabled/base.js +2 -0
- package/styled-components/es/components/List/variations/_disabled/tokens.json +1 -0
- package/styled-components/es/components/List/variations/_size/base.js +2 -0
- package/styled-components/es/components/List/variations/_size/tokens.json +1 -0
- package/styled-components/es/components/List/variations/_variant/base.js +2 -0
- package/styled-components/es/components/List/variations/_variant/tokens.json +1 -0
- package/styled-components/es/components/List/variations/_view/base.js +2 -0
- package/styled-components/es/components/List/variations/_view/tokens.json +1 -0
- package/styled-components/es/components/NumberInput/ui/Input/Input.js +3 -0
- package/styled-components/es/examples/plasma_b2c/components/List/List.config.js +28 -0
- package/styled-components/es/examples/plasma_b2c/components/List/List.js +6 -0
- package/styled-components/es/examples/plasma_b2c/components/List/List.stories.tsx +60 -0
- package/styled-components/es/examples/plasma_web/components/List/List.config.js +28 -0
- package/styled-components/es/examples/plasma_web/components/List/List.js +6 -0
- package/styled-components/es/examples/plasma_web/components/List/List.stories.tsx +60 -0
- package/styled-components/es/index.js +2 -1
- package/types/components/List/List.d.ts +43 -0
- package/types/components/List/List.d.ts.map +1 -0
- package/types/components/List/List.styles.d.ts +2 -0
- package/types/components/List/List.styles.d.ts.map +1 -0
- package/types/components/List/List.tokens.d.ts +34 -0
- package/types/components/List/List.tokens.d.ts.map +1 -0
- package/types/components/List/List.types.d.ts +24 -0
- package/types/components/List/List.types.d.ts.map +1 -0
- package/types/components/List/index.d.ts +5 -0
- package/types/components/List/index.d.ts.map +1 -0
- package/types/components/List/ui/ListItem.d.ts +4 -0
- package/types/components/List/ui/ListItem.d.ts.map +1 -0
- package/types/components/List/ui/ListItem.styles.d.ts +36 -0
- package/types/components/List/ui/ListItem.styles.d.ts.map +1 -0
- package/types/components/List/ui/ListItem.types.d.ts +15 -0
- package/types/components/List/ui/ListItem.types.d.ts.map +1 -0
- package/types/components/List/variations/_disabled/base.d.ts.map +1 -0
- package/types/components/List/variations/_size/base.d.ts.map +1 -0
- package/types/components/List/variations/_variant/base.d.ts.map +1 -0
- package/types/components/List/variations/_view/base.d.ts.map +1 -0
- package/types/components/NumberInput/ui/Input/Input.d.ts.map +1 -1
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/cjs/components/CodeField/CodeField.css +0 -14
- package/cjs/components/CodeField/CodeField.js +0 -290
- package/cjs/components/CodeField/CodeField.js.map +0 -1
- package/cjs/components/CodeField/CodeField.styles.js +0 -57
- package/cjs/components/CodeField/CodeField.styles.js.map +0 -1
- package/cjs/components/CodeField/CodeField.styles_7zxgpc.css +0 -6
- package/cjs/components/CodeField/CodeField.tokens.js +0 -59
- package/cjs/components/CodeField/CodeField.tokens.js.map +0 -1
- package/cjs/components/CodeField/utils/constants.js +0 -18
- package/cjs/components/CodeField/utils/constants.js.map +0 -1
- package/cjs/components/CodeField/utils/handleCodeError.js +0 -55
- package/cjs/components/CodeField/utils/handleCodeError.js.map +0 -1
- package/cjs/components/CodeField/utils/handleItemError.js +0 -53
- package/cjs/components/CodeField/utils/handleItemError.js.map +0 -1
- package/cjs/components/CodeField/utils/initialValuesHelper.js +0 -33
- package/cjs/components/CodeField/utils/initialValuesHelper.js.map +0 -1
- package/cjs/components/CodeField/variations/_disabled/base.js.map +0 -1
- package/cjs/components/CodeField/variations/_disabled/base_obsae2.css +0 -1
- package/cjs/components/CodeField/variations/_shape/base.js.map +0 -1
- package/cjs/components/CodeField/variations/_shape/base_1scsyya.css +0 -1
- package/cjs/components/CodeField/variations/_size/base.js.map +0 -1
- package/cjs/components/CodeField/variations/_size/base_1wrvbr5.css +0 -1
- package/cjs/components/CodeField/variations/_view/base.js.map +0 -1
- package/cjs/components/CodeField/variations/_view/base_9a5yza.css +0 -1
- package/emotion/cjs/components/CodeField/CodeField.js +0 -299
- package/emotion/cjs/components/CodeField/CodeField.styles.js +0 -65
- package/emotion/cjs/components/CodeField/CodeField.template-doc.mdx +0 -150
- package/emotion/cjs/components/CodeField/CodeField.tokens.js +0 -57
- package/emotion/cjs/components/CodeField/index.js +0 -50
- package/emotion/cjs/components/CodeField/utils/constants.js +0 -12
- package/emotion/cjs/components/CodeField/utils/handleCodeError.js +0 -58
- package/emotion/cjs/components/CodeField/utils/handleItemError.js +0 -56
- package/emotion/cjs/components/CodeField/utils/index.js +0 -38
- package/emotion/cjs/components/CodeField/utils/initialValuesHelper.js +0 -30
- package/emotion/cjs/components/CodeField/variations/_disabled/base.js +0 -9
- package/emotion/cjs/components/CodeField/variations/_disabled/tokens.json +0 -4
- package/emotion/cjs/components/CodeField/variations/_shape/base.js +0 -10
- package/emotion/cjs/components/CodeField/variations/_shape/tokens.json +0 -1
- package/emotion/cjs/components/CodeField/variations/_size/base.js +0 -10
- package/emotion/cjs/components/CodeField/variations/_size/tokens.json +0 -19
- package/emotion/cjs/components/CodeField/variations/_view/base.js +0 -10
- package/emotion/cjs/components/CodeField/variations/_view/tokens.json +0 -0
- package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.config.js +0 -31
- package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.js +0 -11
- package/emotion/cjs/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +0 -107
- package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.config.js +0 -31
- package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.js +0 -11
- package/emotion/cjs/examples/plasma_web/components/CodeField/CodeField.stories.tsx +0 -107
- package/emotion/es/components/CodeField/CodeField.js +0 -290
- package/emotion/es/components/CodeField/CodeField.styles.js +0 -58
- package/emotion/es/components/CodeField/CodeField.template-doc.mdx +0 -150
- package/emotion/es/components/CodeField/CodeField.tokens.js +0 -51
- package/emotion/es/components/CodeField/index.js +0 -3
- package/emotion/es/components/CodeField/utils/constants.js +0 -6
- package/emotion/es/components/CodeField/utils/handleCodeError.js +0 -52
- package/emotion/es/components/CodeField/utils/handleItemError.js +0 -50
- package/emotion/es/components/CodeField/utils/index.js +0 -3
- package/emotion/es/components/CodeField/utils/initialValuesHelper.js +0 -24
- package/emotion/es/components/CodeField/variations/_disabled/base.js +0 -3
- package/emotion/es/components/CodeField/variations/_disabled/tokens.json +0 -4
- package/emotion/es/components/CodeField/variations/_shape/base.js +0 -4
- package/emotion/es/components/CodeField/variations/_shape/tokens.json +0 -1
- package/emotion/es/components/CodeField/variations/_size/base.js +0 -4
- package/emotion/es/components/CodeField/variations/_size/tokens.json +0 -19
- package/emotion/es/components/CodeField/variations/_view/base.js +0 -4
- package/emotion/es/components/CodeField/variations/_view/tokens.json +0 -0
- package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.config.js +0 -25
- package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.js +0 -5
- package/emotion/es/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +0 -107
- package/emotion/es/examples/plasma_web/components/CodeField/CodeField.config.js +0 -25
- package/emotion/es/examples/plasma_web/components/CodeField/CodeField.js +0 -5
- package/emotion/es/examples/plasma_web/components/CodeField/CodeField.stories.tsx +0 -107
- package/es/components/CodeField/CodeField.css +0 -14
- package/es/components/CodeField/CodeField.js +0 -280
- package/es/components/CodeField/CodeField.js.map +0 -1
- package/es/components/CodeField/CodeField.styles.js +0 -48
- package/es/components/CodeField/CodeField.styles.js.map +0 -1
- package/es/components/CodeField/CodeField.styles_7zxgpc.css +0 -6
- package/es/components/CodeField/CodeField.tokens.js +0 -54
- package/es/components/CodeField/CodeField.tokens.js.map +0 -1
- package/es/components/CodeField/utils/constants.js +0 -9
- package/es/components/CodeField/utils/constants.js.map +0 -1
- package/es/components/CodeField/utils/handleCodeError.js +0 -51
- package/es/components/CodeField/utils/handleCodeError.js.map +0 -1
- package/es/components/CodeField/utils/handleItemError.js +0 -49
- package/es/components/CodeField/utils/handleItemError.js.map +0 -1
- package/es/components/CodeField/utils/initialValuesHelper.js +0 -27
- package/es/components/CodeField/utils/initialValuesHelper.js.map +0 -1
- package/es/components/CodeField/variations/_disabled/base.js.map +0 -1
- package/es/components/CodeField/variations/_disabled/base_obsae2.css +0 -1
- package/es/components/CodeField/variations/_shape/base.js +0 -5
- package/es/components/CodeField/variations/_shape/base.js.map +0 -1
- package/es/components/CodeField/variations/_shape/base_1scsyya.css +0 -1
- package/es/components/CodeField/variations/_size/base.js.map +0 -1
- package/es/components/CodeField/variations/_size/base_1wrvbr5.css +0 -1
- package/es/components/CodeField/variations/_view/base.js.map +0 -1
- package/es/components/CodeField/variations/_view/base_9a5yza.css +0 -1
- package/styled-components/cjs/components/CodeField/CodeField.js +0 -299
- package/styled-components/cjs/components/CodeField/CodeField.styles.js +0 -38
- package/styled-components/cjs/components/CodeField/CodeField.template-doc.mdx +0 -150
- package/styled-components/cjs/components/CodeField/CodeField.tokens.js +0 -57
- package/styled-components/cjs/components/CodeField/index.js +0 -50
- package/styled-components/cjs/components/CodeField/utils/constants.js +0 -12
- package/styled-components/cjs/components/CodeField/utils/handleCodeError.js +0 -58
- package/styled-components/cjs/components/CodeField/utils/handleItemError.js +0 -56
- package/styled-components/cjs/components/CodeField/utils/index.js +0 -38
- package/styled-components/cjs/components/CodeField/utils/initialValuesHelper.js +0 -30
- package/styled-components/cjs/components/CodeField/variations/_disabled/tokens.json +0 -4
- package/styled-components/cjs/components/CodeField/variations/_shape/base.js +0 -10
- package/styled-components/cjs/components/CodeField/variations/_shape/tokens.json +0 -1
- package/styled-components/cjs/components/CodeField/variations/_size/base.js +0 -10
- package/styled-components/cjs/components/CodeField/variations/_size/tokens.json +0 -19
- package/styled-components/cjs/components/CodeField/variations/_view/base.js +0 -10
- package/styled-components/cjs/components/CodeField/variations/_view/tokens.json +0 -0
- package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.config.js +0 -31
- package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.js +0 -11
- package/styled-components/cjs/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +0 -107
- package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.config.js +0 -31
- package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.js +0 -11
- package/styled-components/cjs/examples/plasma_web/components/CodeField/CodeField.stories.tsx +0 -107
- package/styled-components/es/components/CodeField/CodeField.js +0 -290
- package/styled-components/es/components/CodeField/CodeField.styles.js +0 -30
- package/styled-components/es/components/CodeField/CodeField.template-doc.mdx +0 -150
- package/styled-components/es/components/CodeField/CodeField.tokens.js +0 -51
- package/styled-components/es/components/CodeField/index.js +0 -3
- package/styled-components/es/components/CodeField/utils/constants.js +0 -6
- package/styled-components/es/components/CodeField/utils/handleCodeError.js +0 -52
- package/styled-components/es/components/CodeField/utils/handleItemError.js +0 -50
- package/styled-components/es/components/CodeField/utils/index.js +0 -3
- package/styled-components/es/components/CodeField/utils/initialValuesHelper.js +0 -24
- package/styled-components/es/components/CodeField/variations/_disabled/base.js +0 -3
- package/styled-components/es/components/CodeField/variations/_disabled/tokens.json +0 -4
- package/styled-components/es/components/CodeField/variations/_shape/base.js +0 -4
- package/styled-components/es/components/CodeField/variations/_shape/tokens.json +0 -1
- package/styled-components/es/components/CodeField/variations/_size/base.js +0 -4
- package/styled-components/es/components/CodeField/variations/_size/tokens.json +0 -19
- package/styled-components/es/components/CodeField/variations/_view/base.js +0 -4
- package/styled-components/es/components/CodeField/variations/_view/tokens.json +0 -0
- package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.config.js +0 -25
- package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.js +0 -5
- package/styled-components/es/examples/plasma_b2c/components/CodeField/CodeField.stories.tsx +0 -107
- package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.config.js +0 -25
- package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.js +0 -5
- package/styled-components/es/examples/plasma_web/components/CodeField/CodeField.stories.tsx +0 -107
- package/types/components/CodeField/CodeField.d.ts +0 -69
- package/types/components/CodeField/CodeField.d.ts.map +0 -1
- package/types/components/CodeField/CodeField.styles.d.ts +0 -11
- package/types/components/CodeField/CodeField.styles.d.ts.map +0 -1
- package/types/components/CodeField/CodeField.tokens.d.ts +0 -52
- package/types/components/CodeField/CodeField.tokens.d.ts.map +0 -1
- package/types/components/CodeField/CodeField.types.d.ts +0 -93
- package/types/components/CodeField/CodeField.types.d.ts.map +0 -1
- package/types/components/CodeField/index.d.ts +0 -4
- package/types/components/CodeField/index.d.ts.map +0 -1
- package/types/components/CodeField/utils/constants.d.ts +0 -7
- package/types/components/CodeField/utils/constants.d.ts.map +0 -1
- package/types/components/CodeField/utils/handleCodeError.d.ts +0 -15
- package/types/components/CodeField/utils/handleCodeError.d.ts.map +0 -1
- package/types/components/CodeField/utils/handleItemError.d.ts +0 -14
- package/types/components/CodeField/utils/handleItemError.d.ts.map +0 -1
- package/types/components/CodeField/utils/index.d.ts +0 -4
- package/types/components/CodeField/utils/index.d.ts.map +0 -1
- package/types/components/CodeField/utils/initialValuesHelper.d.ts +0 -4
- package/types/components/CodeField/utils/initialValuesHelper.d.ts.map +0 -1
- package/types/components/CodeField/variations/_disabled/base.d.ts.map +0 -1
- package/types/components/CodeField/variations/_shape/base.d.ts.map +0 -1
- package/types/components/CodeField/variations/_size/base.d.ts.map +0 -1
- package/types/components/CodeField/variations/_view/base.d.ts.map +0 -1
- /package/emotion/cjs/components/{CodeField/CodeField.types.js → List/List.types.js} +0 -0
- /package/{styled-components/cjs/components/CodeField/CodeField.types.js → emotion/cjs/components/List/ui/ListItem.types.js} +0 -0
- /package/emotion/es/components/{CodeField/CodeField.types.js → List/List.types.js} +0 -0
- /package/{styled-components/es/components/CodeField/CodeField.types.js → emotion/es/components/List/ui/ListItem.types.js} +0 -0
- /package/types/components/{CodeField → List}/variations/_disabled/base.d.ts +0 -0
- /package/types/components/{CodeField/variations/_shape → List/variations/_size}/base.d.ts +0 -0
- /package/types/components/{CodeField/variations/_size → List/variations/_variant}/base.d.ts +0 -0
- /package/types/components/{CodeField → List}/variations/_view/base.d.ts +0 -0
@@ -1,150 +0,0 @@
|
|
1
|
-
---
|
2
|
-
id: codefield
|
3
|
-
title: CodeField
|
4
|
-
---
|
5
|
-
|
6
|
-
import { PropsTable, Description } from '@site/src/components';
|
7
|
-
|
8
|
-
# CodeField
|
9
|
-
Компонент `CodeField` используется для ввода OTP-кодов.
|
10
|
-
|
11
|
-
<Description name="CodeField" />
|
12
|
-
<PropsTable name="CodeField" />
|
13
|
-
|
14
|
-
## Примеры
|
15
|
-
|
16
|
-
### Размер
|
17
|
-
Размер задается с помощью свойства `size`.
|
18
|
-
Ширина компонента так же может регулироваться при помощи свойства `width`:
|
19
|
-
|
20
|
-
```tsx live
|
21
|
-
import React from 'react';
|
22
|
-
import { CodeField } from '@salutejs/{{ package }}';
|
23
|
-
|
24
|
-
export function App() {
|
25
|
-
return (
|
26
|
-
<div style=\{{ flexDirection: 'column', gap: '2rem' }}>
|
27
|
-
<CodeField
|
28
|
-
size="l"
|
29
|
-
caption="Осталось попыток: 4"
|
30
|
-
captionAlign="center"
|
31
|
-
/>
|
32
|
-
<CodeField
|
33
|
-
size="m"
|
34
|
-
caption="Чтобы выслать вам код повторно подождите: 20 секунд"
|
35
|
-
captionAlign="left"
|
36
|
-
/>
|
37
|
-
<CodeField
|
38
|
-
width="25"
|
39
|
-
caption="Не передавайте никому код из СМС. Иначе ваш аккаунт могут взломать"
|
40
|
-
captionAlign="center"
|
41
|
-
/>
|
42
|
-
</div>
|
43
|
-
);
|
44
|
-
}
|
45
|
-
```
|
46
|
-
|
47
|
-
### Форма компонента и длина кода
|
48
|
-
Форма компонента задается с помощью свойства `shape`, а длина кода с помощью `codeLength`:
|
49
|
-
|
50
|
-
```tsx live
|
51
|
-
import React from 'react';
|
52
|
-
import { CodeField } from '@salutejs/{{ package }}';
|
53
|
-
|
54
|
-
export function App() {
|
55
|
-
return (
|
56
|
-
<div style=\{{ flexDirection: 'column', gap: '2rem' }}>
|
57
|
-
<div style=\{{ display: 'flex', gap: '2rem' }}>
|
58
|
-
<CodeField shape="default" codeLength={4} />
|
59
|
-
<CodeField shape="segmented" codeLength={4} />
|
60
|
-
</div>
|
61
|
-
<div style=\{{ display: 'flex', gap: '2rem' }}>
|
62
|
-
<CodeField shape="default" codeLength={5} />
|
63
|
-
<CodeField shape="segmented" codeLength={5} />
|
64
|
-
</div>
|
65
|
-
<div style=\{{ display: 'flex', gap: '2rem' }}>
|
66
|
-
<CodeField shape="default" codeLength={6} />
|
67
|
-
<CodeField shape="segmented" codeLength={6} />
|
68
|
-
</div>
|
69
|
-
</div>
|
70
|
-
);
|
71
|
-
}
|
72
|
-
```
|
73
|
-
|
74
|
-
### Допустимые символы и поведение ячейки при вводе некорректного символа
|
75
|
-
За допустимые символы для ввода отвечает свойство `allowedSymbols`. Задается строкой или регулярным выражением.
|
76
|
-
Библиотека экспортирует наиболее используемые вариации допустимых символов:
|
77
|
-
`import { ONLY_DIGITS_PATTERN, ONLY_CHARS_PATTERN, ONLY_DIGITS_AND_CHARS_PATTERN } from '@salutejs/{{ package }}';`
|
78
|
-
|
79
|
-
Поведение ячейки при вводе некорректного символа регулируется свойством `itemErrorBehavior`:
|
80
|
-
|
81
|
-
```tsx live
|
82
|
-
import React from 'react';
|
83
|
-
import { CodeField } from '@salutejs/{{ package }}';
|
84
|
-
|
85
|
-
export function App() {
|
86
|
-
return (
|
87
|
-
<div>
|
88
|
-
<CodeField value="123" itemErrorBehavior="remove-symbol" />
|
89
|
-
<CodeField value="123" itemErrorBehavior="keep" />
|
90
|
-
<CodeField value="123" itemErrorBehavior="forbid-enter" />
|
91
|
-
</div>
|
92
|
-
);
|
93
|
-
}
|
94
|
-
```
|
95
|
-
|
96
|
-
### Поведение компонента при вводе некорректного кода и индикация ошибки
|
97
|
-
При заполнении всех полей ввода срабатывает колбэк `onFullCodeEnter`.
|
98
|
-
При неверном вводе кода, поведние компонента управляется с помощью свойства `codeErrorBehavior`.
|
99
|
-
Индикация ошибки происходит с помощью флага `isError` и колбека `setIsError`:
|
100
|
-
|
101
|
-
```tsx live
|
102
|
-
import React, { useState, useRef, Dispatch, SetStateAction } from 'react';
|
103
|
-
import { CodeField } from '@salutejs/{{ package }}';
|
104
|
-
|
105
|
-
export function App() {
|
106
|
-
const [disabledFirst, setDisabledFirst] = useState(false);
|
107
|
-
const [isErrorFirst, setIsErrorFirst] = useState(false);
|
108
|
-
|
109
|
-
const [disabledSecond, setDisabledSecond] = useState(false);
|
110
|
-
const [isErrorSecond, setIsErrorSecond] = useState(false);
|
111
|
-
|
112
|
-
const onFullCodeEnter = (
|
113
|
-
code: string,
|
114
|
-
errorSetter: Dispatch<SetStateAction<boolean>>,
|
115
|
-
disableSetter: Dispatch<SetStateAction<boolean>>
|
116
|
-
) => {
|
117
|
-
disableSetter(true);
|
118
|
-
|
119
|
-
// имитация запроса на сервер
|
120
|
-
setTimeout(() => {
|
121
|
-
disableSetter(false);
|
122
|
-
|
123
|
-
if (code !== '123456') {
|
124
|
-
errorSetter(true);
|
125
|
-
}
|
126
|
-
}, 3000)
|
127
|
-
}
|
128
|
-
|
129
|
-
return (
|
130
|
-
<div style=\{{ flexDirection: 'column', gap: '2rem' }}>
|
131
|
-
<CodeField
|
132
|
-
itemErrorBehavior="remove-symbol"
|
133
|
-
codeErrorBehavior="remove-code"
|
134
|
-
disabled={disabledFirst}
|
135
|
-
isError={isErrorFirst}
|
136
|
-
setIsError={setIsErrorFirst}
|
137
|
-
onFullCodeEnter={(code) => onFullCodeEnter(code, setIsErrorFirst, setDisabledFirst)}
|
138
|
-
/>
|
139
|
-
<CodeField
|
140
|
-
itemErrorBehavior="remove-symbol"
|
141
|
-
codeErrorBehavior="keep"
|
142
|
-
disabled={disabledSecond}
|
143
|
-
isError={isErrorSecond}
|
144
|
-
setIsError={setIsErrorSecond}
|
145
|
-
onFullCodeEnter={(code) => onFullCodeEnter(code, setIsErrorSecond, setDisabledSecond)}
|
146
|
-
/>
|
147
|
-
</div>
|
148
|
-
);
|
149
|
-
}
|
150
|
-
```
|
@@ -1,57 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.tokens = exports.classes = void 0;
|
7
|
-
var classes = exports.classes = {
|
8
|
-
itemError: 'codefield-item-error',
|
9
|
-
itemErrorAnimation: 'codefield-item-error-animation',
|
10
|
-
itemErrorFade: 'codefield-item-error-fade',
|
11
|
-
captionError: 'codefield-caption-error',
|
12
|
-
codeError: 'codefield-code-error',
|
13
|
-
codeErrorAnimation: 'codefield-code-error-animation',
|
14
|
-
codeErrorFade: 'codefield-code-error-fade',
|
15
|
-
captionAlignLeft: 'codefield-caption-align-left',
|
16
|
-
hoverEnabled: 'codefield-item-hover-enabled',
|
17
|
-
segmented: 'codefield-shape-segmented',
|
18
|
-
"default": 'codefield-shape-default',
|
19
|
-
disabled: 'codefield-disabled'
|
20
|
-
};
|
21
|
-
var tokens = exports.tokens = {
|
22
|
-
captionGap: '--plasma-codefield-caption-gap',
|
23
|
-
codeItemsGap: '--plasma-codefield-code-item-gap',
|
24
|
-
separatorWidth: '--plasma-codefield-separator-width',
|
25
|
-
codeItemWidth: '--plasma-codefield-item-width',
|
26
|
-
codeItemHeight: '--plasma-codefield-item-height',
|
27
|
-
fontFamily: '--plasma-codefield-font-family',
|
28
|
-
fontStyle: '--plasma-codefield-font-style',
|
29
|
-
fontSize: '--plasma-codefield-font-size',
|
30
|
-
fontWeight: '--plasma-codefield-font-weight',
|
31
|
-
letterSpacing: '--plasma-codefield-letter-spacing',
|
32
|
-
lineHeight: '--plasma-codefield-line-height',
|
33
|
-
captionFontFamily: '--plasma-codefield-caption-font-family',
|
34
|
-
captionFontSize: '--plasma-codefield-caption-font-style',
|
35
|
-
captionFontStyle: '--plasma-codefield-caption-font-size',
|
36
|
-
captionFontWeight: '--plasma-codefield-caption-font-weight',
|
37
|
-
captionLetterSpacing: '--plasma-codefield-caption-letter-spacing',
|
38
|
-
captionLineHeight: '--plasma-codefield-caption-line-height',
|
39
|
-
borderRadius: '--plasma-codefield-code-item-border-radius',
|
40
|
-
borderRadiusSegmented: '--plasma-codefield-code-item-border-radius-segmented',
|
41
|
-
segmentedSideBorderRadius: '--plasma-codefield-code-item-segmented-side-border-radius',
|
42
|
-
captionColor: '--plasma-codefield-caption-color',
|
43
|
-
captionColorError: '--plasma-codefield-caption-color-error',
|
44
|
-
codeColor: '--plasma-codefield-code-color',
|
45
|
-
codeColorError: '--plasma-codefield-code-color-error',
|
46
|
-
backgroundColor: '--plasma-codefield-background-color',
|
47
|
-
backgroundColorHover: '--plasma-codefield-background-color-hover',
|
48
|
-
backgroundColorFocus: '--plasma-codefield-background-color-focus',
|
49
|
-
backgroundErrorColor: '--plasma-codefield-background-error-color',
|
50
|
-
borderWidth: '--plasma-codefield-border-width',
|
51
|
-
borderColor: '--plasma-codefield-border-color',
|
52
|
-
borderColorHover: '--plasma-codefield-border-color-hover',
|
53
|
-
borderColorFocus: '--plasma-codefield-border-color-focus',
|
54
|
-
borderErrorColor: '--plasma-codefield-border-error-color',
|
55
|
-
caretColor: '--plasma-codefield-caret-color',
|
56
|
-
disabledOpacity: '--plasma-codefield-disabled-opacity'
|
57
|
-
};
|
@@ -1,50 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "ONLY_CHARS_PATTERN", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _constants.ONLY_CHARS_PATTERN;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "ONLY_DIGITS_AND_CHARS_PATTERN", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function get() {
|
15
|
-
return _constants.ONLY_DIGITS_AND_CHARS_PATTERN;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
Object.defineProperty(exports, "ONLY_DIGITS_PATTERN", {
|
19
|
-
enumerable: true,
|
20
|
-
get: function get() {
|
21
|
-
return _constants.ONLY_DIGITS_PATTERN;
|
22
|
-
}
|
23
|
-
});
|
24
|
-
Object.defineProperty(exports, "codeFieldClasses", {
|
25
|
-
enumerable: true,
|
26
|
-
get: function get() {
|
27
|
-
return _CodeField2.classes;
|
28
|
-
}
|
29
|
-
});
|
30
|
-
Object.defineProperty(exports, "codeFieldConfig", {
|
31
|
-
enumerable: true,
|
32
|
-
get: function get() {
|
33
|
-
return _CodeField.codeFieldConfig;
|
34
|
-
}
|
35
|
-
});
|
36
|
-
Object.defineProperty(exports, "codeFieldRoot", {
|
37
|
-
enumerable: true,
|
38
|
-
get: function get() {
|
39
|
-
return _CodeField.codeFieldRoot;
|
40
|
-
}
|
41
|
-
});
|
42
|
-
Object.defineProperty(exports, "codeFieldTokens", {
|
43
|
-
enumerable: true,
|
44
|
-
get: function get() {
|
45
|
-
return _CodeField2.tokens;
|
46
|
-
}
|
47
|
-
});
|
48
|
-
var _CodeField = /*#__PURE__*/require("./CodeField");
|
49
|
-
var _CodeField2 = /*#__PURE__*/require("./CodeField.tokens");
|
50
|
-
var _constants = /*#__PURE__*/require("./utils/constants");
|
@@ -1,12 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.ONLY_DIGITS_PATTERN = exports.ONLY_DIGITS_AND_CHARS_PATTERN = exports.ONLY_CHARS_PATTERN = exports.FORBIDDEN_KEYS = exports.BACKSPACE_KEY = exports.ANIMATION_TIMEOUT = void 0;
|
7
|
-
var ONLY_DIGITS_PATTERN = exports.ONLY_DIGITS_PATTERN = '^\\d+$';
|
8
|
-
var ONLY_CHARS_PATTERN = exports.ONLY_CHARS_PATTERN = '^[a-zA-Z]+$';
|
9
|
-
var ONLY_DIGITS_AND_CHARS_PATTERN = exports.ONLY_DIGITS_AND_CHARS_PATTERN = '^[a-zA-Z0-9]+$';
|
10
|
-
var FORBIDDEN_KEYS = exports.FORBIDDEN_KEYS = ['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Delete'];
|
11
|
-
var BACKSPACE_KEY = exports.BACKSPACE_KEY = 'Backspace';
|
12
|
-
var ANIMATION_TIMEOUT = exports.ANIMATION_TIMEOUT = 300;
|
@@ -1,58 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.handleCodeError = void 0;
|
7
|
-
var _CodeField = /*#__PURE__*/require("../CodeField.tokens");
|
8
|
-
var _constants = /*#__PURE__*/require("./constants");
|
9
|
-
var _initialValuesHelper = /*#__PURE__*/require("./initialValuesHelper");
|
10
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
11
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
12
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
13
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
14
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
15
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
16
|
-
var handleCodeError = exports.handleCodeError = function handleCodeError(_ref) {
|
17
|
-
var _captionRef$current, _captionRef$current2;
|
18
|
-
var codeLength = _ref.codeLength,
|
19
|
-
codeErrorBehavior = _ref.codeErrorBehavior,
|
20
|
-
currentCode = _ref.currentCode,
|
21
|
-
inputRefs = _ref.inputRefs,
|
22
|
-
inputContainerRef = _ref.inputContainerRef,
|
23
|
-
captionRef = _ref.captionRef,
|
24
|
-
setCode = _ref.setCode,
|
25
|
-
codeSetter = _ref.codeSetter;
|
26
|
-
if (!inputContainerRef.current) {
|
27
|
-
return;
|
28
|
-
}
|
29
|
-
switch (codeErrorBehavior) {
|
30
|
-
case 'keep':
|
31
|
-
inputContainerRef.current.classList.add(_CodeField.classes.codeError, _CodeField.classes.codeErrorAnimation);
|
32
|
-
(_captionRef$current = captionRef.current) === null || _captionRef$current === void 0 || _captionRef$current.classList.add(_CodeField.classes.captionError);
|
33
|
-
setTimeout(function () {
|
34
|
-
var _inputContainerRef$cu;
|
35
|
-
var newCode = _toConsumableArray(currentCode);
|
36
|
-
newCode.pop();
|
37
|
-
codeSetter(newCode);
|
38
|
-
setCode(currentCode);
|
39
|
-
(_inputContainerRef$cu = inputContainerRef.current) === null || _inputContainerRef$cu === void 0 || _inputContainerRef$cu.classList.remove(_CodeField.classes.codeErrorAnimation);
|
40
|
-
setTimeout(function () {
|
41
|
-
var _inputRefs$current, _inputRefs$current2;
|
42
|
-
(_inputRefs$current = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current === void 0 || _inputRefs$current.setSelectionRange(0, 1);
|
43
|
-
(_inputRefs$current2 = inputRefs.current[inputRefs.current.length - 1]) === null || _inputRefs$current2 === void 0 || _inputRefs$current2.focus();
|
44
|
-
}, 0);
|
45
|
-
}, _constants.ANIMATION_TIMEOUT);
|
46
|
-
break;
|
47
|
-
case 'remove-code':
|
48
|
-
default:
|
49
|
-
inputContainerRef.current.classList.add(_CodeField.classes.codeError, _CodeField.classes.codeErrorAnimation, _CodeField.classes.codeErrorFade);
|
50
|
-
(_captionRef$current2 = captionRef.current) === null || _captionRef$current2 === void 0 || _captionRef$current2.classList.add(_CodeField.classes.captionError);
|
51
|
-
setTimeout(function () {
|
52
|
-
var _inputRefs$current$, _inputContainerRef$cu2;
|
53
|
-
codeSetter((0, _initialValuesHelper.getCodeValue)(codeLength, ''));
|
54
|
-
(_inputRefs$current$ = inputRefs.current[0]) === null || _inputRefs$current$ === void 0 || _inputRefs$current$.focus();
|
55
|
-
(_inputContainerRef$cu2 = inputContainerRef.current) === null || _inputContainerRef$cu2 === void 0 || _inputContainerRef$cu2.classList.remove(_CodeField.classes.codeError, _CodeField.classes.codeErrorAnimation, _CodeField.classes.codeErrorFade);
|
56
|
-
}, _constants.ANIMATION_TIMEOUT);
|
57
|
-
}
|
58
|
-
};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.handleItemError = void 0;
|
7
|
-
var _CodeField = /*#__PURE__*/require("../CodeField.tokens");
|
8
|
-
var _constants = /*#__PURE__*/require("./constants");
|
9
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
10
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
11
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
12
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
13
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
14
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
15
|
-
var handleItemError = exports.handleItemError = function handleItemError(_ref) {
|
16
|
-
var _inputRefs$current$in, _inputRefs$current$in4;
|
17
|
-
var currentSymbol = _ref.currentSymbol,
|
18
|
-
itemErrorBehavior = _ref.itemErrorBehavior,
|
19
|
-
index = _ref.index,
|
20
|
-
newCode = _ref.newCode,
|
21
|
-
inputRefs = _ref.inputRefs,
|
22
|
-
setCode = _ref.setCode,
|
23
|
-
codeSetter = _ref.codeSetter;
|
24
|
-
if (!inputRefs.current[index] || currentSymbol === ' ') {
|
25
|
-
return;
|
26
|
-
}
|
27
|
-
switch (itemErrorBehavior) {
|
28
|
-
case 'keep':
|
29
|
-
setCode(newCode);
|
30
|
-
(_inputRefs$current$in = inputRefs.current[index]) === null || _inputRefs$current$in === void 0 || _inputRefs$current$in.classList.add(_CodeField.classes.itemError, _CodeField.classes.itemErrorAnimation);
|
31
|
-
setTimeout(function () {
|
32
|
-
var _inputRefs$current$in2;
|
33
|
-
(_inputRefs$current$in2 = inputRefs.current[index]) === null || _inputRefs$current$in2 === void 0 || _inputRefs$current$in2.classList.remove(_CodeField.classes.itemErrorAnimation);
|
34
|
-
setTimeout(function () {
|
35
|
-
var _inputRefs$current$in3;
|
36
|
-
return (_inputRefs$current$in3 = inputRefs.current[index]) === null || _inputRefs$current$in3 === void 0 ? void 0 : _inputRefs$current$in3.setSelectionRange(0, 1);
|
37
|
-
}, 0);
|
38
|
-
}, _constants.ANIMATION_TIMEOUT);
|
39
|
-
break;
|
40
|
-
case 'forbid-enter':
|
41
|
-
newCode[index] = '';
|
42
|
-
codeSetter(newCode);
|
43
|
-
break;
|
44
|
-
case 'remove-symbol':
|
45
|
-
default:
|
46
|
-
setCode(newCode);
|
47
|
-
(_inputRefs$current$in4 = inputRefs.current[index]) === null || _inputRefs$current$in4 === void 0 || _inputRefs$current$in4.classList.add(_CodeField.classes.itemError, _CodeField.classes.itemErrorFade, _CodeField.classes.itemErrorAnimation);
|
48
|
-
setTimeout(function () {
|
49
|
-
var _inputRefs$current$in5;
|
50
|
-
var updatedCode = _toConsumableArray(newCode);
|
51
|
-
updatedCode[index] = '';
|
52
|
-
codeSetter(updatedCode);
|
53
|
-
(_inputRefs$current$in5 = inputRefs.current[index]) === null || _inputRefs$current$in5 === void 0 || _inputRefs$current$in5.classList.remove(_CodeField.classes.itemError, _CodeField.classes.itemErrorFade, _CodeField.classes.itemErrorAnimation);
|
54
|
-
}, _constants.ANIMATION_TIMEOUT);
|
55
|
-
}
|
56
|
-
};
|
@@ -1,38 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
Object.defineProperty(exports, "getCodeValue", {
|
7
|
-
enumerable: true,
|
8
|
-
get: function get() {
|
9
|
-
return _initialValuesHelper.getCodeValue;
|
10
|
-
}
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "getFieldPattern", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function get() {
|
15
|
-
return _initialValuesHelper.getFieldPattern;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
Object.defineProperty(exports, "getPlaceholderValue", {
|
19
|
-
enumerable: true,
|
20
|
-
get: function get() {
|
21
|
-
return _initialValuesHelper.getPlaceholderValue;
|
22
|
-
}
|
23
|
-
});
|
24
|
-
Object.defineProperty(exports, "handleCodeError", {
|
25
|
-
enumerable: true,
|
26
|
-
get: function get() {
|
27
|
-
return _handleCodeError.handleCodeError;
|
28
|
-
}
|
29
|
-
});
|
30
|
-
Object.defineProperty(exports, "handleItemError", {
|
31
|
-
enumerable: true,
|
32
|
-
get: function get() {
|
33
|
-
return _handleItemError.handleItemError;
|
34
|
-
}
|
35
|
-
});
|
36
|
-
var _initialValuesHelper = /*#__PURE__*/require("./initialValuesHelper");
|
37
|
-
var _handleItemError = /*#__PURE__*/require("./handleItemError");
|
38
|
-
var _handleCodeError = /*#__PURE__*/require("./handleCodeError");
|
@@ -1,30 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.getPlaceholderValue = exports.getFieldPattern = exports.getCodeValue = void 0;
|
7
|
-
var getFieldPattern = exports.getFieldPattern = function getFieldPattern(allowedSymbols) {
|
8
|
-
if (!allowedSymbols) {
|
9
|
-
return null;
|
10
|
-
}
|
11
|
-
if (typeof allowedSymbols === 'string') {
|
12
|
-
return new RegExp(allowedSymbols, 'g');
|
13
|
-
}
|
14
|
-
return allowedSymbols;
|
15
|
-
};
|
16
|
-
var getCodeValue = exports.getCodeValue = function getCodeValue(codeLength, value) {
|
17
|
-
if (!value.length) {
|
18
|
-
return new Array(codeLength).fill('');
|
19
|
-
}
|
20
|
-
return value.slice(0, codeLength).split('');
|
21
|
-
};
|
22
|
-
var getPlaceholderValue = exports.getPlaceholderValue = function getPlaceholderValue(codeLength, placeholder) {
|
23
|
-
if (!placeholder || typeof placeholder !== 'string') {
|
24
|
-
return null;
|
25
|
-
}
|
26
|
-
if (placeholder.length === 1) {
|
27
|
-
return Array(codeLength).fill(placeholder);
|
28
|
-
}
|
29
|
-
return placeholder.slice(0, codeLength).split('');
|
30
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.base = void 0;
|
7
|
-
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
-
var _CodeField = /*#__PURE__*/require("../../CodeField.tokens");
|
9
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)("&&[disabled]{opacity:var(", _CodeField.tokens.disabledOpacity, ");cursor:not-allowed;&>*{pointer-events:none;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX2Rpc2FibGVkL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSXVCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX2Rpc2FibGVkL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucyB9IGZyb20gJy4uLy4uL0NvZGVGaWVsZC50b2tlbnMnO1xuXG5leHBvcnQgY29uc3QgYmFzZSA9IGNzc2BcbiAgICAmJltkaXNhYmxlZF0ge1xuICAgICAgICBvcGFjaXR5OiB2YXIoJHt0b2tlbnMuZGlzYWJsZWRPcGFjaXR5fSk7XG4gICAgICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG5cbiAgICAgICAgJiA+ICoge1xuICAgICAgICAgICAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
@@ -1,10 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.base = void 0;
|
7
|
-
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
-
var _CodeField = /*#__PURE__*/require("../../CodeField.tokens");
|
9
|
-
var _CodeField2 = /*#__PURE__*/require("../../CodeField.styles");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)(_CodeField2.ItemInput, "{border-radius:var(", _CodeField.tokens.borderRadius, ");&.", _CodeField.classes.segmented, "{border-radius:var(", _CodeField.tokens.borderRadiusSegmented, ");&:first-child{border-top-left-radius:var(", _CodeField.tokens.segmentedSideBorderRadius, ");border-bottom-left-radius:var(", _CodeField.tokens.segmentedSideBorderRadius, ");}&:last-child{border-top-right-radius:var(", _CodeField.tokens.segmentedSideBorderRadius, ");border-bottom-right-radius:var(", _CodeField.tokens.segmentedSideBorderRadius, ");}}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NoYXBlL2Jhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS3VCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NoYXBlL2Jhc2UudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRva2VucywgY2xhc3NlcyB9IGZyb20gJy4uLy4uL0NvZGVGaWVsZC50b2tlbnMnO1xuaW1wb3J0IHsgSXRlbUlucHV0IH0gZnJvbSAnLi4vLi4vQ29kZUZpZWxkLnN0eWxlcyc7XG5cbmV4cG9ydCBjb25zdCBiYXNlID0gY3NzYFxuICAgICR7SXRlbUlucHV0fSB7XG4gICAgICAgIGJvcmRlci1yYWRpdXM6IHZhcigke3Rva2Vucy5ib3JkZXJSYWRpdXN9KTtcblxuICAgICAgICAmLiR7Y2xhc3Nlcy5zZWdtZW50ZWR9IHtcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IHZhcigke3Rva2Vucy5ib3JkZXJSYWRpdXNTZWdtZW50ZWR9KTtcblxuICAgICAgICAgICAgJjpmaXJzdC1jaGlsZCB7XG4gICAgICAgICAgICAgICAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogdmFyKCR7dG9rZW5zLnNlZ21lbnRlZFNpZGVCb3JkZXJSYWRpdXN9KTtcbiAgICAgICAgICAgICAgICBib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOiB2YXIoJHt0b2tlbnMuc2VnbWVudGVkU2lkZUJvcmRlclJhZGl1c30pO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAmOmxhc3QtY2hpbGQge1xuICAgICAgICAgICAgICAgIGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiB2YXIoJHt0b2tlbnMuc2VnbWVudGVkU2lkZUJvcmRlclJhZGl1c30pO1xuICAgICAgICAgICAgICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiB2YXIoJHt0b2tlbnMuc2VnbWVudGVkU2lkZUJvcmRlclJhZGl1c30pO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuYDtcbiJdfQ== */"));
|
@@ -1 +0,0 @@
|
|
1
|
-
["--plasma-codefield-code-item-border-radius", "--plasma-codefield-code-item-segmented-side-border-radius"]
|
@@ -1,10 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.base = void 0;
|
7
|
-
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
-
var _CodeField = /*#__PURE__*/require("../../CodeField.styles");
|
9
|
-
var _CodeField2 = /*#__PURE__*/require("../../CodeField.tokens");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)("gap:var(", _CodeField2.tokens.captionGap, ");", _CodeField.CodeWrapper, ",", _CodeField.CodeGroup, "{gap:var(", _CodeField2.tokens.codeItemsGap, ");}", _CodeField.ItemInput, "{width:var(", _CodeField2.tokens.codeItemWidth, ");height:var(", _CodeField2.tokens.codeItemHeight, ");font-family:var(", _CodeField2.tokens.fontFamily, ");font-size:var(", _CodeField2.tokens.fontSize, ");font-style:var(", _CodeField2.tokens.fontStyle, ");font-weight:var(", _CodeField2.tokens.fontWeight, ");letter-spacing:var(", _CodeField2.tokens.letterSpacing, ");line-height:var(", _CodeField2.tokens.lineHeight, ");}", _CodeField.CaptionWrapper, "{font-family:var(", _CodeField2.tokens.captionFontFamily, ");font-size:var(", _CodeField2.tokens.captionFontSize, ");font-style:var(", _CodeField2.tokens.captionFontStyle, ");font-weight:var(", _CodeField2.tokens.captionFontWeight, ");letter-spacing:var(", _CodeField2.tokens.captionLetterSpacing, ");line-height:var(", _CodeField2.tokens.captionLineHeight, ");};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3NpemUvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db2RlRmllbGQvdmFyaWF0aW9ucy9fc2l6ZS9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBDYXB0aW9uV3JhcHBlciwgQ29kZUdyb3VwLCBDb2RlV3JhcHBlciwgSXRlbUlucHV0IH0gZnJvbSAnLi4vLi4vQ29kZUZpZWxkLnN0eWxlcyc7XG5pbXBvcnQgeyB0b2tlbnMgfSBmcm9tICcuLi8uLi9Db2RlRmllbGQudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgZ2FwOiB2YXIoJHt0b2tlbnMuY2FwdGlvbkdhcH0pO1xuXG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6IHZhcigke3Rva2Vucy5jYXB0aW9uTGluZUhlaWdodH0pO1xuICAgIH1cbmA7XG4iXX0= */"));
|
@@ -1,19 +0,0 @@
|
|
1
|
-
[
|
2
|
-
"--plasma-codefield-caption-gap",
|
3
|
-
"--plasma-codefield-code-item-gap",
|
4
|
-
"--plasma-codefield-separator-width",
|
5
|
-
"--plasma-codefield-item-width",
|
6
|
-
"--plasma-codefield-item-height",
|
7
|
-
"--plasma-codefield-font-family",
|
8
|
-
"--plasma-codefield-font-style",
|
9
|
-
"--plasma-codefield-font-size",
|
10
|
-
"--plasma-codefield-font-weight",
|
11
|
-
"--plasma-codefield-letter-spacing",
|
12
|
-
"--plasma-codefield-line-height",
|
13
|
-
"--plasma-codefield-caption-font-family",
|
14
|
-
"--plasma-codefield-caption-font-style",
|
15
|
-
"--plasma-codefield-caption-font-size",
|
16
|
-
"--plasma-codefield-caption-font-weight",
|
17
|
-
"--plasma-codefield-caption-letter-spacing",
|
18
|
-
"--plasma-codefield-caption-line-height"
|
19
|
-
]
|
@@ -1,10 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.base = void 0;
|
7
|
-
var _react = /*#__PURE__*/require("@emotion/react");
|
8
|
-
var _CodeField = /*#__PURE__*/require("../../CodeField.styles");
|
9
|
-
var _CodeField2 = /*#__PURE__*/require("../../CodeField.tokens");
|
10
|
-
var base = exports.base = /*#__PURE__*/(0, _react.css)(_CodeField.CaptionWrapper, "{color:var(", _CodeField2.tokens.captionColor, ");&.", _CodeField2.classes.captionError, "{color:var(", _CodeField2.tokens.captionColorError, ");}}", _CodeField.ItemInput, "{color:var(", _CodeField2.tokens.codeColor, ");caret-color:var(", _CodeField2.tokens.caretColor, ");background-color:var(", _CodeField2.tokens.backgroundColor, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderColor, ");}&:hover{.", _CodeField2.classes.hoverEnabled, "{background-color:var(", _CodeField2.tokens.backgroundColorHover, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderColorHover, ");}}&:focus-within{", _CodeField.ItemInput, ":focus-within{background-color:var(", _CodeField2.tokens.backgroundColorFocus, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderColorFocus, ");}}&& .", _CodeField2.classes.codeErrorAnimation, "{animation:shakingError 0.3s forwards;}&& .", _CodeField2.classes.codeError, "{", _CodeField.ItemInput, "{color:var(", _CodeField2.tokens.codeColorError, ");background-color:var(", _CodeField2.tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderErrorColor, ");}&:focus-within{", _CodeField.ItemInput, "{background-color:var(", _CodeField2.tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderErrorColor, ");}}&.", _CodeField2.classes.codeErrorFade, "{", _CodeField.ItemInput, "{animation:fadeError 0.3s forwards;}}}&& .", _CodeField2.classes.itemErrorAnimation, "{animation:shakingError 0.3s forwards;}&& .", _CodeField2.classes.itemError, ",&& .", _CodeField2.classes.itemError, ":focus-within{color:var(", _CodeField2.tokens.codeColorError, ");background-color:var(", _CodeField2.tokens.backgroundErrorColor, ");box-shadow:inset 0 0 0 var(", _CodeField2.tokens.borderWidth, ") var(", _CodeField2.tokens.borderErrorColor, ");&.", _CodeField2.classes.codeErrorFade, "{animation:shakingError 0.3s forwards fadeError 0.3s forwards;}}@keyframes shakingError{14%{transform:translateX(-0.125rem);}28%{transform:translateX(0.125rem);}42%{transform:translateX(-0.125rem);}57%{transform:translateX(0.125rem);}71%{transform:translateX(-0.125rem);}85%{transform:translateX(0.125rem);}100%{transform:translateX(-0.125rem);}}@keyframes fadeError{50%{color:var(", _CodeField2.tokens.codeColorError, ");}100%{color:transparent;}};label:plasma-new-hope__base;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvQ29kZUZpZWxkL3ZhcmlhdGlvbnMvX3ZpZXcvYmFzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLdUIiLCJmaWxlIjoiLi4vLi4vLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Db2RlRmllbGQvdmFyaWF0aW9ucy9fdmlldy9iYXNlLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQgeyBDYXB0aW9uV3JhcHBlciwgSXRlbUlucHV0IH0gZnJvbSAnLi4vLi4vQ29kZUZpZWxkLnN0eWxlcyc7XG5pbXBvcnQgeyBjbGFzc2VzLCB0b2tlbnMgfSBmcm9tICcuLi8uLi9Db2RlRmllbGQudG9rZW5zJztcblxuZXhwb3J0IGNvbnN0IGJhc2UgPSBjc3NgXG4gICAgJHtDYXB0aW9uV3JhcHBlcn0ge1xuICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmNhcHRpb25Db2xvcn0pO1xuXG4gICAgICAgICYuJHtjbGFzc2VzLmNhcHRpb25FcnJvcn0ge1xuICAgICAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5jYXB0aW9uQ29sb3JFcnJvcn0pO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgJHtJdGVtSW5wdXR9IHtcbiAgICAgICAgY29sb3I6IHZhcigke3Rva2Vucy5jb2RlQ29sb3J9KTtcbiAgICAgICAgY2FyZXQtY29sb3I6IHZhcigke3Rva2Vucy5jYXJldENvbG9yfSk7XG4gICAgICAgIGJhY2tncm91bm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ICAgICAgIDUwJSB7XG4gICAgICAgICAgICBjb2xvcjogdmFyKCR7dG9rZW5zLmNvZGVDb2xvckVycm9yfSk7XG4gICAgICAgIH1cbiAgICAgICAgMTAwJSB7XG4gICAgICAgICAgICBjb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgICAgIH1cbiAgICB9XG5gO1xuIl19 */"));
|
File without changes
|