UNPKG

@syncfusion/ej2-inputs

Version:

A package of Essential JS 2 input components such as Textbox, Color-picker, Masked-textbox, Numeric-textbox, Slider, Upload, and Form-validator that is used to get input from the users.

336 lines (330 loc) 12.4 kB
:root { --color-sf-black: 0, 0, 0; --color-sf-white: 255, 255, 255; --color-sf-primary: 103, 80, 164; --color-sf-primary-container: 234, 221, 255; --color-sf-secondary: 98, 91, 113; --color-sf-secondary-container: 232, 222, 248; --color-sf-tertiary: 125, 82, 96; --color-sf-tertiary-container: 255, 216, 228; --color-sf-surface: 255, 255, 255; --color-sf-surface-variant: 231, 224, 236; --color-sf-background: var(--color-sf-surface); --color-sf-on-primary: 255, 255, 255; --color-sf-on-primary-container: 33, 0, 94; --color-sf-on-secondary: 255, 255, 255; --color-sf-on-secondary-container: 30, 25, 43; --color-sf-on-tertiary: 255, 255, 255; --color-sf-on-tertiary-containe: 55, 11, 30; --color-sf-on-surface: 28, 27, 31; --color-sf-on-surface-variant: 73, 69, 78; --color-sf-on-background: 28, 27, 31; --color-sf-outline: 121, 116, 126; --color-sf-outline-variant: 196, 199, 197; --color-sf-shadow: 0, 0, 0; --color-sf-surface-tint-color: 103, 80, 164; --color-sf-inverse-surface: 49, 48, 51; --color-sf-inverse-on-surface: 244, 239, 244; --color-sf-inverse-primary: 208, 188, 255; --color-sf-scrim: 0, 0, 0; --color-sf-error: 179, 38, 30; --color-sf-error-container: 249, 222, 220; --color-sf-on-error: 255, 250, 250; --color-sf-on-error-container: 65, 14, 11; --color-sf-success: 32, 81, 7; --color-sf-success-container: 209, 255, 186; --color-sf-on-success: 244, 255, 239; --color-sf-on-success-container: 13, 39, 0; --color-sf-info: 1, 87, 155; --color-sf-info-container: 233, 245, 255; --color-sf-on-info: 250, 253, 255; --color-sf-on-info-container: 0, 51, 91; --color-sf-warning: 145, 76, 0; --color-sf-warning-container: 254, 236, 222; --color-sf-on-warning: 255, 255, 255; --color-sf-on-warning-container: 47, 21, 0; --color-sf-spreadsheet-gridline: var(--color-sf-surface-variant); --color-sf-shadow-focus-ring1: 0 0 0 1px rgb(255, 255, 255), 0 0 0 3px rgb(0, 0, 0); --color-sf-diagram-palette-background: --color-sf-white; --color-sf-success-text: 255, 255, 255; --color-sf-warning-text: 255, 255, 255; --color-sf-danger-text: 255, 255, 255; --color-sf-info-text: 255, 255, 255; --color-sf-content-text-color-alt2: var(--color-sf-on-secondary-container); --color-sf-secondary-bg-color: var(--color-sf-surface); } .e-dark-mode { --color-sf-black: 0, 0, 0; --color-sf-white: 255, 255, 255; --color-sf-primary: 208, 188, 255; --color-sf-primary-container: 79, 55, 139; --color-sf-secondary: 204, 194, 220; --color-sf-secondary-container: 74, 68, 88; --color-sf-tertiary: 239, 184, 200; --color-sf-tertiary-container: 99, 59, 72; --color-sf-surface: 28, 27, 31; --color-sf-surface-variant: 28, 27, 31; --color-sf-background: var(--color-sf-surface); --color-sf-on-primary: 55, 30, 115; --color-sf-on-primary-container: 234, 221, 255; --color-sf-on-secondary: 51, 45, 65; --color-sf-on-secondary-container: 232, 222, 248; --color-sf-on-tertiary: 73, 37, 50; --color-sf-on-tertiary-containe: 255, 216, 228; --color-sf-on-surface: 230, 225, 229; --color-sf-on-surface-variant: 202, 196, 208; --color-sf-on-background: 230, 225, 229; --color-sf-outline: 147, 143, 153; --color-sf-outline-variant: 68, 71, 70; --color-sf-shadow: 0, 0, 0; --color-sf-surface-tint-color: 208, 188, 255; --color-sf-inverse-surface: 230, 225, 229; --color-sf-inverse-on-surface: 49, 48, 51; --color-sf-inverse-primary: 103, 80, 164; --color-sf-scrim: 0, 0, 0; --color-sf-error: 242, 184, 181; --color-sf-error-container: 140, 29, 24; --color-sf-on-error: 96, 20, 16; --color-sf-on-error-container: 249, 222, 220; --color-sf-success: 83, 202, 23; --color-sf-success-container: 22, 62, 2; --color-sf-on-success: 13, 39, 0; --color-sf-on-success-container: 183, 250, 150; --color-sf-info: 71, 172, 251; --color-sf-info-container: 0, 67, 120; --color-sf-on-info: 0, 51, 91; --color-sf-on-info-container: 173, 219, 255; --color-sf-warning: 245, 180, 130; --color-sf-warning-container: 123, 65, 0; --color-sf-on-warning: 99, 52, 0; --color-sf-on-warning-container: 255, 220, 193; --color-sf-spreadsheet-gridline: 231, 224, 236; --color-sf-shadow-focus-ring1: 0 0 0 1px #000, 0 0 0 3px #fff; --color-sf-success-text: 0, 0, 0; --color-sf-warning-text: 0, 0, 0; --color-sf-info-text: 0, 0, 0; --color-sf-danger-text: 0, 0, 0; --color-sf-diagram-palette-background: var(--color-sf-inverse-surface); --color-sf-content-text-color-alt2: var(--color-sf-on-secondary); } .e-otpinput { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; gap: 14px; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; } .e-otpinput:has(.e-otp-separator):not(:empty) { gap: 6px; } .e-otpinput .e-otp-input-field { min-width: 32px; min-height: 32px; text-align: center; padding: 0; font-size: 14px; font-weight: 400; line-height: 20px; border: none; } .e-otpinput .e-otp-input-fieldinput[type=password], .e-otpinput .e-otp-input-field[type=password] { font-size: 18px; } .e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus { padding-bottom: 0; } .e-otpinput.e-outline .e-otp-input-field { border-radius: 4px; } .e-otpinput.e-underlined .e-otp-input-field { border-radius: 0; } .e-otpinput.e-filled .e-otp-input-field { border-radius: 4px 4px 0 0; padding: 0; } .e-otpinput .e-otp-separator { font-size: 16px; font-weight: 400; line-height: 24px; } .e-otpinput input[type=number]::-webkit-inner-spin-button, .e-otpinput [type=number]::-webkit-outer-spin-button { /* stylelint-disable property-no-vendor-prefix */ -webkit-appearance: none; /* stylelint-enable property-no-vendor-prefix */ margin: 0; } .e-otpinput input[type=number] { /* stylelint-disable property-no-vendor-prefix */ -moz-appearance: textfield; /* stylelint-enable property-no-vendor-prefix */ } .e-small.e-otpinput, .e-small .e-otpinput { gap: 8px; } .e-small.e-otpinput:has(.e-otp-separator):not(:empty), .e-small .e-otpinput:has(.e-otp-separator):not(:empty) { gap: 4px; } .e-small.e-otpinput .e-otp-input-field, .e-small .e-otpinput .e-otp-input-field { min-width: 24px; min-height: 24px; font-size: 12px; line-height: 16px; padding: 0; } .e-small.e-otpinput .e-otp-input-fieldinput[type=password], .e-small.e-otpinput .e-otp-input-field[type=password], .e-small .e-otpinput .e-otp-input-fieldinput[type=password], .e-small .e-otpinput .e-otp-input-field[type=password] { font-size: 18px; } .e-small.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus, .e-small .e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus { padding-bottom: 0; } .e-small.e-otpinput .e-otp-separator, .e-small .e-otpinput .e-otp-separator { font-size: 16px; line-height: 24px; } .e-small.e-otpinput.e-filled .e-otp-input-field, .e-small .e-otpinput.e-filled .e-otp-input-field { padding: 0; } .e-bigger.e-otpinput, .e-bigger .e-otpinput { gap: 16px; } .e-bigger.e-otpinput:has(.e-otp-separator):not(:empty), .e-bigger .e-otpinput:has(.e-otp-separator):not(:empty) { gap: 8px; } .e-bigger.e-otpinput .e-otp-input-field, .e-bigger .e-otpinput .e-otp-input-field { min-width: 40px; min-height: 40px; font-size: 16px; line-height: 24px; padding: 0; } .e-bigger.e-otpinput .e-otp-input-fieldinput[type=password], .e-bigger.e-otpinput .e-otp-input-field[type=password], .e-bigger .e-otpinput .e-otp-input-fieldinput[type=password], .e-bigger .e-otpinput .e-otp-input-field[type=password] { font-size: 20px; } .e-bigger.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus, .e-bigger .e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus { padding-bottom: 0; } .e-bigger.e-otpinput .e-otp-separator, .e-bigger .e-otpinput .e-otp-separator { font-size: 16px; line-height: 24px; } .e-bigger.e-otpinput.e-filled .e-otp-input-field, .e-bigger .e-otpinput.e-filled .e-otp-input-field { padding: 0; } .e-bigger.e-small.e-otpinput, .e-bigger.e-small .e-otpinput, .e-bigger .e-small.e-otpinput, .e-small .e-bigger.e-otpinput { gap: 16px; } .e-bigger.e-small.e-otpinput:has(.e-otp-separator):not(:empty), .e-bigger.e-small .e-otpinput:has(.e-otp-separator):not(:empty), .e-bigger .e-small.e-otpinput:has(.e-otp-separator):not(:empty), .e-small .e-bigger.e-otpinput:has(.e-otp-separator):not(:empty) { gap: 6px; } .e-bigger.e-small.e-otpinput .e-otp-input-field, .e-bigger.e-small .e-otpinput .e-otp-input-field, .e-bigger .e-small.e-otpinput .e-otp-input-field, .e-small .e-bigger.e-otpinput .e-otp-input-field { min-width: 36px; min-height: 36px; font-size: 14px; line-height: 20px; padding: 0; } .e-bigger.e-small.e-otpinput .e-otp-input-fieldinput[type=password], .e-bigger.e-small.e-otpinput .e-otp-input-field[type=password], .e-bigger.e-small .e-otpinput .e-otp-input-fieldinput[type=password], .e-bigger.e-small .e-otpinput .e-otp-input-field[type=password], .e-bigger .e-small.e-otpinput .e-otp-input-fieldinput[type=password], .e-bigger .e-small.e-otpinput .e-otp-input-field[type=password], .e-small .e-bigger.e-otpinput .e-otp-input-fieldinput[type=password], .e-small .e-bigger.e-otpinput .e-otp-input-field[type=password] { font-size: 20px; } .e-bigger.e-small.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus, .e-bigger.e-small .e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus, .e-bigger .e-small.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus, .e-small .e-bigger.e-otpinput .e-otp-input-field.e-input.e-otp-input-focus:focus { padding-bottom: 0; } .e-bigger.e-small.e-otpinput .e-otp-separator, .e-bigger.e-small .e-otpinput .e-otp-separator, .e-bigger .e-small.e-otpinput .e-otp-separator, .e-small .e-bigger.e-otpinput .e-otp-separator { font-size: 16px; line-height: 24px; } .e-bigger.e-small.e-otpinput.e-filled .e-otp-input-field, .e-bigger.e-small .e-otpinput.e-filled .e-otp-input-field, .e-bigger .e-small.e-otpinput.e-filled .e-otp-input-field, .e-small .e-bigger.e-otpinput.e-filled .e-otp-input-field { padding: 0; } .e-otpinput .e-otp-input-field { color: rgba(var(--color-sf-on-surface)); background: transparent; } .e-otpinput .e-otp-separator { color: var(--color-sf-outline); } .e-otpinput.e-outline .e-otp-input-field { border: 1px solid rgba(var(--color-sf-outline)); } .e-otpinput.e-outline .e-otp-input-field, .e-otpinput.e-underlined .e-otp-input-field, .e-otpinput.e-filled .e-otp-input-field { border-bottom: 2px solid rgba(var(--color-sf-outline)); } .e-otpinput.e-outline .e-otp-input-field:disabled, .e-otpinput.e-underlined .e-otp-input-field:disabled, .e-otpinput.e-filled .e-otp-input-field:disabled { border-color: rgba(var(--color-sf-outline)); color: rgba(var(--color-sf-on-surface)); } .e-otpinput.e-filled .e-otp-input-field { background: rgba(var(--color-sf-surface-variant)); } .e-otpinput.e-underlined .e-otp-input-field { background: transparent; } .e-otpinput.e-error.e-outline .e-otp-input-field, .e-otpinput.e-error.e-outline .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-error.e-underlined .e-otp-input-field, .e-otpinput.e-error.e-underlined .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-error.e-filled .e-otp-input-field, .e-otpinput.e-error.e-filled .e-otp-input-field.e-otp-input-focus { border-color: rgba(var(--color-sf-error)); } .e-otpinput.e-success.e-outline .e-otp-input-field, .e-otpinput.e-success.e-outline .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-success.e-underlined .e-otp-input-field, .e-otpinput.e-success.e-underlined .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-success.e-filled .e-otp-input-field, .e-otpinput.e-success.e-filled .e-otp-input-field.e-otp-input-focus { border-color: rgba(var(--color-sf-success)); } .e-otpinput.e-warning.e-outline .e-otp-input-field, .e-otpinput.e-warning.e-outline .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-warning.e-underlined .e-otp-input-field, .e-otpinput.e-warning.e-underlined .e-otp-input-field.e-otp-input-focus, .e-otpinput.e-warning.e-filled .e-otp-input-field, .e-otpinput.e-warning.e-filled .e-otp-input-field.e-otp-input-focus { border-color: rgba(var(--color-sf-warning)); }