diff --git a/apps/pink/src/pages/elements/input-field.mdx b/apps/pink/src/pages/elements/input-field.mdx index b593014c4c..dc75f66543 100644 --- a/apps/pink/src/pages/elements/input-field.mdx +++ b/apps/pink/src/pages/elements/input-field.mdx @@ -436,6 +436,55 @@ Dropdown is made with ```drop-list```. To hide items use the ```u-hide``` class. + +## Verification code input + +| Input Type | Type | | +| ----------------------------- | --------- | ----------------------------------------------------------------------------------------------------- | +| `verification-code-input` | character | Usualy used for code with numbers, but can use with amy type of input, limited for one char per textbox | + + +
+ +
+
+ +State large for verification code input: + +| Class | Type | | +| ----------------- | -------- | ------------------------------------------------------------------------------------------------------------------------ | +| is-large | size | inrease size to 60px width & height | + + +
+ +
+
+ ## States States can be applied to all inputs fields: diff --git a/packages/ui/src/6-elements/form/_text-inputs.scss b/packages/ui/src/6-elements/form/_text-inputs.scss index 47be52de65..68dbd9e7f0 100644 --- a/packages/ui/src/6-elements/form/_text-inputs.scss +++ b/packages/ui/src/6-elements/form/_text-inputs.scss @@ -330,4 +330,16 @@ input[type="datetime-local" i]::-webkit-calendar-picker-indicator { --tag-bg-color: var(--color-neutral-80); --tag-text-color: var(--color-neutral-20); } +} +.verification-code-input { + --p-input-size: var(--input-size, #{pxToRem(40)}); + inline-size: var(--p-input-size); + block-size: var(--p-input-size); + font-size: pxToRem(20); + text-align: center; + + &.is-large { + --input-size: #{pxToRem(60)}; + font-size: pxToRem(30); + } } \ No newline at end of file