@descope/web-components-ui 1.0.135 → 1.0.148
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +77 -56
- package/src/baseClasses/createBaseClass.js +18 -16
- package/src/baseClasses/createBaseInputClass.js +14 -8
- package/src/baseClasses/createCssVarImageClass.js +27 -23
- package/src/components/boolean-fields/booleanFieldMixin.js +18 -29
- package/src/components/boolean-fields/commonStyles.js +1 -1
- package/src/components/boolean-fields/descope-boolean-field-internal/BooleanFieldInternal.js +46 -51
- package/src/components/boolean-fields/descope-boolean-field-internal/index.js +1 -1
- package/src/components/boolean-fields/descope-checkbox/CheckboxClass.js +80 -85
- package/src/components/boolean-fields/descope-checkbox/index.js +2 -2
- package/src/components/boolean-fields/descope-switch-toggle/SwitchToggleClass.js +88 -95
- package/src/components/boolean-fields/descope-switch-toggle/index.js +2 -2
- package/src/components/descope-button/ButtonClass.js +57 -47
- package/src/components/descope-button/clickableMixin.js +10 -0
- package/src/components/descope-combo-box/ComboBoxClass.js +156 -160
- package/src/components/descope-container/ContainerClass.js +32 -42
- package/src/components/descope-date-picker/index.js +9 -14
- package/src/components/descope-divider/DividerClass.js +52 -62
- package/src/components/descope-email-field/EmailFieldClass.js +25 -20
- package/src/components/descope-image/ImageClass.js +21 -24
- package/src/components/descope-link/LinkClass.js +31 -35
- package/src/components/descope-loader-linear/LoaderLinearClass.js +31 -36
- package/src/components/descope-loader-radial/LoaderRadialClass.js +23 -30
- package/src/components/descope-logo/LogoClass.js +5 -1
- package/src/components/descope-new-password/NewPasswordClass.js +63 -81
- package/src/components/descope-new-password/descope-new-password-internal/NewPasswordInternal.js +157 -162
- package/src/components/descope-new-password/descope-new-password-internal/componentName.js +1 -1
- package/src/components/descope-new-password/descope-new-password-internal/index.js +3 -3
- package/src/components/descope-new-password/index.js +3 -3
- package/src/components/descope-number-field/NumberFieldClass.js +25 -20
- package/src/components/descope-passcode/PasscodeClass.js +95 -95
- package/src/components/descope-passcode/descope-passcode-internal/PasscodeInternal.js +151 -157
- package/src/components/descope-passcode/descope-passcode-internal/helpers.js +7 -8
- package/src/components/descope-passcode/descope-passcode-internal/index.js +2 -2
- package/src/components/descope-passcode/index.js +2 -2
- package/src/components/descope-password/PasswordClass.js +75 -83
- package/src/components/descope-password/passwordDraggableMixin.js +28 -27
- package/src/components/descope-phone-field/CountryCodes.js +1210 -1210
- package/src/components/descope-phone-field/PhoneFieldClass.js +139 -141
- package/src/components/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +157 -173
- package/src/components/descope-phone-field/helpers.js +3 -3
- package/src/components/descope-text/TextClass.js +25 -29
- package/src/components/descope-text-area/TextAreaClass.js +68 -67
- package/src/components/descope-text-field/TextFieldClass.js +42 -37
- package/src/components/descope-text-field/textFieldMappings.js +40 -55
- package/src/components/descope-totp-image/TotpImageClass.js +5 -1
- package/src/components/descope-upload-file/UploadFileClass.js +202 -0
- package/src/components/descope-upload-file/helpers.js +11 -0
- package/src/components/descope-upload-file/index.js +6 -0
- package/src/constants.js +3 -3
- package/src/helpers/componentHelpers.js +68 -74
- package/src/helpers/index.js +17 -16
- package/src/helpers/mixinsHelpers.js +21 -10
- package/src/helpers/themeHelpers/colorsHelpers.js +18 -18
- package/src/helpers/themeHelpers/componentsThemeManager.js +7 -6
- package/src/helpers/themeHelpers/index.js +114 -124
- package/src/helpers/themeHelpers/resetHelpers.js +16 -16
- package/src/index.cjs.js +3 -3
- package/src/index.d.ts +22 -21
- package/src/index.js +5 -4
- package/src/index.umd.js +14 -13
- package/src/mixins/changeMixin.js +18 -17
- package/src/mixins/componentNameValidationMixin.js +19 -19
- package/src/mixins/createProxy.js +33 -33
- package/src/mixins/createStyleMixin/helpers.js +54 -64
- package/src/mixins/createStyleMixin/index.js +155 -141
- package/src/mixins/draggableMixin.js +61 -61
- package/src/mixins/hoverableMixin.js +11 -13
- package/src/mixins/index.js +6 -6
- package/src/mixins/inputEventsDispatchingMixin.js +61 -60
- package/src/mixins/inputValidationMixin.js +153 -148
- package/src/mixins/lifecycleEventsMixin.js +17 -15
- package/src/mixins/normalizeBooleanAttributesMixin.js +31 -23
- package/src/mixins/portalMixin.js +58 -52
- package/src/mixins/proxyInputMixin.js +138 -132
- package/src/theme/components/button.js +86 -81
- package/src/theme/components/checkbox.js +26 -28
- package/src/theme/components/comboBox.js +32 -31
- package/src/theme/components/container.js +99 -89
- package/src/theme/components/divider.js +30 -31
- package/src/theme/components/emailField.js +20 -19
- package/src/theme/components/image.js +3 -3
- package/src/theme/components/index.js +33 -25
- package/src/theme/components/inputWrapper.js +28 -25
- package/src/theme/components/link.js +29 -36
- package/src/theme/components/loader/index.js +3 -3
- package/src/theme/components/loader/loaderLinear.js +34 -34
- package/src/theme/components/loader/loaderRadial.js +40 -34
- package/src/theme/components/logo.js +4 -4
- package/src/theme/components/newPassword.js +14 -13
- package/src/theme/components/numberField.js +20 -19
- package/src/theme/components/passcode.js +20 -22
- package/src/theme/components/password.js +22 -21
- package/src/theme/components/phoneField.js +23 -23
- package/src/theme/components/switchToggle.js +47 -46
- package/src/theme/components/text.js +72 -72
- package/src/theme/components/textArea.js +27 -25
- package/src/theme/components/textField.js +23 -22
- package/src/theme/components/totpImage.js +4 -4
- package/src/theme/components/uploadFile.js +60 -0
- package/src/theme/globals.js +123 -124
- package/src/theme/index.js +1 -1
- package/dist/cjs/index.cjs.js +0 -5924
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/package.json +0 -1
- package/dist/index.d.ts +0 -51
- package/dist/index.esm.js +0 -6606
- package/dist/index.esm.js.map +0 -1
- package/dist/umd/1018.js +0 -577
- package/dist/umd/1018.js.LICENSE.txt +0 -23
- package/dist/umd/2481.js +0 -1
- package/dist/umd/3208.js +0 -2
- package/dist/umd/3208.js.LICENSE.txt +0 -5
- package/dist/umd/3585.js +0 -1
- package/dist/umd/3878.js +0 -1
- package/dist/umd/4201.js +0 -1
- package/dist/umd/422.js +0 -2
- package/dist/umd/422.js.LICENSE.txt +0 -5
- package/dist/umd/4447.js +0 -1
- package/dist/umd/4513.js +0 -1
- package/dist/umd/4803.js +0 -1
- package/dist/umd/541.js +0 -744
- package/dist/umd/541.js.LICENSE.txt +0 -21
- package/dist/umd/5767.js +0 -2
- package/dist/umd/5767.js.LICENSE.txt +0 -15
- package/dist/umd/5806.js +0 -109
- package/dist/umd/5806.js.LICENSE.txt +0 -5
- package/dist/umd/7056.js +0 -48
- package/dist/umd/7056.js.LICENSE.txt +0 -5
- package/dist/umd/7101.js +0 -148
- package/dist/umd/7101.js.LICENSE.txt +0 -11
- package/dist/umd/729.js +0 -1
- package/dist/umd/7824.js +0 -229
- package/dist/umd/7824.js.LICENSE.txt +0 -27
- package/dist/umd/7840.js +0 -356
- package/dist/umd/7840.js.LICENSE.txt +0 -61
- package/dist/umd/8725.js +0 -37
- package/dist/umd/8725.js.LICENSE.txt +0 -11
- package/dist/umd/9211.js +0 -312
- package/dist/umd/9211.js.LICENSE.txt +0 -5
- package/dist/umd/9241.js +0 -1
- package/dist/umd/9314.js +0 -283
- package/dist/umd/9314.js.LICENSE.txt +0 -27
- package/dist/umd/9437.js +0 -19
- package/dist/umd/9437.js.LICENSE.txt +0 -5
- package/dist/umd/9515.js +0 -202
- package/dist/umd/9515.js.LICENSE.txt +0 -11
- package/dist/umd/9789.js +0 -1
- package/dist/umd/boolean-fields-descope-boolean-field-internal-index-js.js +0 -1
- package/dist/umd/boolean-fields-descope-checkbox-index-js.js +0 -1
- package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +0 -1
- package/dist/umd/descope-button-index-js.js +0 -1
- package/dist/umd/descope-combo-box-index-js.js +0 -1
- package/dist/umd/descope-container-index-js.js +0 -1
- package/dist/umd/descope-date-picker-index-js.js +0 -1
- package/dist/umd/descope-divider-index-js.js +0 -1
- package/dist/umd/descope-email-field-index-js.js +0 -1
- package/dist/umd/descope-image-index-js.js +0 -1
- package/dist/umd/descope-link-index-js.js +0 -1
- package/dist/umd/descope-loader-linear-index-js.js +0 -1
- package/dist/umd/descope-loader-radial-index-js.js +0 -1
- package/dist/umd/descope-logo-index-js.js +0 -1
- package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +0 -1
- package/dist/umd/descope-new-password-index-js.js +0 -1
- package/dist/umd/descope-number-field-index-js.js +0 -1
- package/dist/umd/descope-passcode-descope-passcode-internal-index-js.js +0 -1
- package/dist/umd/descope-passcode-index-js.js +0 -1
- package/dist/umd/descope-password-index-js.js +0 -1
- package/dist/umd/descope-phone-field-descope-phone-field-internal-index-js.js +0 -1
- package/dist/umd/descope-phone-field-index-js.js +0 -1
- package/dist/umd/descope-text-area-index-js.js +0 -1
- package/dist/umd/descope-text-field-index-js.js +0 -1
- package/dist/umd/descope-text-index-js.js +0 -1
- package/dist/umd/descope-totp-image-index-js.js +0 -1
- package/dist/umd/index.js +0 -1
@@ -6,42 +6,35 @@ const globalRefs = getThemeRefs(globals);
|
|
6
6
|
const vars = LinkClass.cssVarList;
|
7
7
|
|
8
8
|
const link = {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
error: {
|
38
|
-
[vars.textColor]: globalRefs.colors.error.main,
|
39
|
-
},
|
40
|
-
success: {
|
41
|
-
[vars.textColor]: globalRefs.colors.success.main,
|
42
|
-
}
|
43
|
-
}
|
9
|
+
[vars.cursor]: 'pointer',
|
10
|
+
|
11
|
+
[vars.textColor]: globalRefs.colors.primary.main,
|
12
|
+
|
13
|
+
textAlign: {
|
14
|
+
right: { [vars.textAlign]: 'right' },
|
15
|
+
left: { [vars.textAlign]: 'left' },
|
16
|
+
center: { [vars.textAlign]: 'center' },
|
17
|
+
},
|
18
|
+
|
19
|
+
_fullWidth: {
|
20
|
+
[vars.hostWidth]: '100%',
|
21
|
+
},
|
22
|
+
|
23
|
+
mode: {
|
24
|
+
primary: {
|
25
|
+
[vars.textColor]: globalRefs.colors.primary.main,
|
26
|
+
},
|
27
|
+
secondary: {
|
28
|
+
[vars.textColor]: globalRefs.colors.secondary.main,
|
29
|
+
},
|
30
|
+
error: {
|
31
|
+
[vars.textColor]: globalRefs.colors.error.main,
|
32
|
+
},
|
33
|
+
success: {
|
34
|
+
[vars.textColor]: globalRefs.colors.success.main,
|
35
|
+
},
|
36
|
+
},
|
44
37
|
};
|
45
38
|
|
46
39
|
export default link;
|
47
|
-
export { vars }
|
40
|
+
export { vars };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import * as loaderLinear from './loaderLinear'
|
2
|
-
import * as loaderRadial from './loaderRadial'
|
1
|
+
import * as loaderLinear from './loaderLinear';
|
2
|
+
import * as loaderRadial from './loaderRadial';
|
3
3
|
|
4
|
-
export { loaderLinear, loaderRadial };
|
4
|
+
export { loaderLinear, loaderRadial };
|
@@ -6,40 +6,40 @@ const globalRefs = getThemeRefs(globals);
|
|
6
6
|
const vars = LoaderLinearClass.cssVarList;
|
7
7
|
|
8
8
|
const loaderLinear = {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
9
|
+
[vars.hostDisplay]: 'inline-block',
|
10
|
+
[vars.hostWidth]: '100%',
|
11
|
+
|
12
|
+
[vars.barColor]: globalRefs.colors.surface.contrast,
|
13
|
+
[vars.barWidth]: '20%',
|
14
|
+
|
15
|
+
[vars.barBackgroundColor]: globalRefs.colors.surface.main,
|
16
|
+
[vars.barBorderRadius]: '4px',
|
17
|
+
|
18
|
+
[vars.animationDuration]: '2s',
|
19
|
+
[vars.animationTimingFunction]: 'linear',
|
20
|
+
[vars.animationIterationCount]: 'infinite',
|
21
|
+
[vars.verticalPadding]: '0.25em',
|
22
|
+
|
23
|
+
size: {
|
24
|
+
xs: { [vars.barHeight]: '2px' },
|
25
|
+
sm: { [vars.barHeight]: '4px' },
|
26
|
+
md: { [vars.barHeight]: '6px' },
|
27
|
+
lg: { [vars.barHeight]: '8px' },
|
28
|
+
},
|
29
|
+
|
30
|
+
mode: {
|
31
|
+
primary: {
|
32
|
+
[vars.barColor]: globalRefs.colors.primary.main,
|
33
|
+
},
|
34
|
+
secondary: {
|
35
|
+
[vars.barColor]: globalRefs.colors.secondary.main,
|
36
|
+
},
|
37
|
+
},
|
38
|
+
|
39
|
+
_hidden: {
|
40
|
+
[vars.hostDisplay]: 'none',
|
41
|
+
},
|
42
42
|
};
|
43
43
|
|
44
44
|
export default loaderLinear;
|
45
|
-
export { vars }
|
45
|
+
export { vars };
|
@@ -1,48 +1,54 @@
|
|
1
1
|
import globals from '../../globals';
|
2
|
-
import {
|
2
|
+
import {
|
3
|
+
LoaderRadialClass,
|
4
|
+
componentName,
|
5
|
+
} from '../../../components/descope-loader-radial/LoaderRadialClass';
|
3
6
|
import { createHelperVars, getThemeRefs } from '../../../helpers/themeHelpers';
|
4
7
|
|
5
8
|
const globalRefs = getThemeRefs(globals);
|
6
9
|
const vars = LoaderRadialClass.cssVarList;
|
7
10
|
|
8
|
-
const [helperTheme, helperRefs] = createHelperVars(
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
},
|
11
|
+
const [helperTheme, helperRefs] = createHelperVars(
|
12
|
+
{
|
13
|
+
spinnerColor: globalRefs.colors.surface.contrast,
|
14
|
+
mode: {
|
15
|
+
primary: {
|
16
|
+
spinnerColor: globalRefs.colors.primary.main,
|
17
|
+
},
|
18
|
+
secondary: {
|
19
|
+
spinnerColor: globalRefs.colors.secondary.main,
|
20
|
+
},
|
21
|
+
},
|
22
|
+
},
|
23
|
+
componentName
|
24
|
+
);
|
19
25
|
|
20
26
|
const loaderRadial = {
|
21
|
-
|
27
|
+
...helperTheme,
|
22
28
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
[vars.animationDuration]: '2s',
|
30
|
+
[vars.animationTimingFunction]: 'linear',
|
31
|
+
[vars.animationIterationCount]: 'infinite',
|
32
|
+
[vars.spinnerBorderStyle]: 'solid',
|
33
|
+
[vars.spinnerBorderWidth]: '0.2em',
|
34
|
+
[vars.spinnerBorderRadius]: '50%',
|
35
|
+
[vars.spinnerQuadrant1Color]: helperRefs.spinnerColor,
|
36
|
+
[vars.spinnerQuadrant2Color]: 'transparent',
|
37
|
+
[vars.spinnerQuadrant3Color]: helperRefs.spinnerColor,
|
38
|
+
[vars.spinnerQuadrant4Color]: 'transparent',
|
33
39
|
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
40
|
+
size: {
|
41
|
+
xs: { [vars.spinnerSize]: '20px' },
|
42
|
+
sm: { [vars.spinnerSize]: '30px' },
|
43
|
+
md: { [vars.spinnerSize]: '40px' },
|
44
|
+
lg: { [vars.spinnerSize]: '60px' },
|
45
|
+
xl: { [vars.spinnerSize]: '80px' },
|
46
|
+
},
|
41
47
|
|
42
|
-
|
43
|
-
|
44
|
-
|
48
|
+
_hidden: {
|
49
|
+
[vars.hostDisplay]: 'none',
|
50
|
+
},
|
45
51
|
};
|
46
52
|
|
47
53
|
export default loaderRadial;
|
48
|
-
export { vars }
|
54
|
+
export { vars };
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { LogoClass } from
|
1
|
+
import { LogoClass } from '../../components/descope-logo/LogoClass';
|
2
2
|
|
3
|
-
const vars = LogoClass.cssVarList
|
3
|
+
const vars = LogoClass.cssVarList;
|
4
4
|
|
5
5
|
const logo = {
|
6
|
-
|
6
|
+
[vars.fallbackUrl]: 'url(https://imgs.descope.com/components/no-logo-placeholder.svg)',
|
7
7
|
};
|
8
8
|
|
9
9
|
export default logo;
|
10
|
-
export { vars }
|
10
|
+
export { vars };
|
@@ -1,22 +1,23 @@
|
|
1
1
|
import { NewPasswordClass } from '../../components/descope-new-password/NewPasswordClass';
|
2
|
-
import { refs } from
|
2
|
+
import { refs } from './inputWrapper';
|
3
3
|
|
4
4
|
const vars = NewPasswordClass.cssVarList;
|
5
5
|
|
6
6
|
const newPassword = {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
[vars.hostWidth]: refs.width,
|
8
|
+
[vars.hostMinWidth]: refs.minWidth,
|
9
|
+
[vars.fontSize]: refs.fontSize,
|
10
|
+
[vars.fontFamily]: refs.fontFamily,
|
11
|
+
[vars.spaceBetweenInputs]: '1em',
|
12
|
+
[vars.errorMessageTextColor]: refs.errorMessageTextColor,
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
14
|
+
_required: {
|
15
|
+
// NewPassword doesn't pass `required` attribute to its Password components.
|
16
|
+
// That's why we fake the required indicator on each input.
|
17
|
+
// We do that by injecting `::after` element, and populating it with requiredIndicator content.
|
18
|
+
[vars.inputsRequiredIndicator]: refs.requiredIndicator, // used to populate required content for NewPassword input fields outside the theme
|
19
|
+
},
|
19
20
|
};
|
20
21
|
|
21
22
|
export default newPassword;
|
22
|
-
export { vars }
|
23
|
+
export { vars };
|
@@ -4,25 +4,26 @@ import { refs } from './inputWrapper';
|
|
4
4
|
const vars = NumberFieldClass.cssVarList;
|
5
5
|
|
6
6
|
const numberField = {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
7
|
+
[vars.hostWidth]: refs.width,
|
8
|
+
[vars.hostMinWidth]: refs.minWidth,
|
9
|
+
[vars.fontSize]: refs.fontSize,
|
10
|
+
[vars.fontFamily]: refs.fontFamily,
|
11
|
+
[vars.labelTextColor]: refs.labelTextColor,
|
12
|
+
[vars.errorMessageTextColor]: refs.errorMessageTextColor,
|
13
|
+
[vars.inputValueTextColor]: refs.valueTextColor,
|
14
|
+
[vars.inputPlaceholderColor]: refs.placeholderTextColor,
|
15
|
+
[vars.inputBorderWidth]: refs.borderWidth,
|
16
|
+
[vars.inputBorderStyle]: refs.borderStyle,
|
17
|
+
[vars.inputBorderColor]: refs.borderColor,
|
18
|
+
[vars.inputBorderRadius]: refs.borderRadius,
|
19
|
+
[vars.inputOutlineWidth]: refs.outlineWidth,
|
20
|
+
[vars.inputOutlineStyle]: refs.outlineStyle,
|
21
|
+
[vars.inputOutlineColor]: refs.outlineColor,
|
22
|
+
[vars.inputOutlineOffset]: refs.outlineOffset,
|
23
|
+
[vars.inputBackgroundColor]: refs.backgroundColor,
|
24
|
+
[vars.labelRequiredIndicator]: refs.requiredIndicator,
|
25
|
+
[vars.inputHorizontalPadding]: refs.horizontalPadding,
|
26
|
+
[vars.inputHeight]: refs.inputHeight,
|
26
27
|
};
|
27
28
|
|
28
29
|
export default numberField;
|
@@ -1,30 +1,28 @@
|
|
1
|
-
import globals from '../globals';
|
2
|
-
import { getThemeRefs } from '../../helpers/themeHelpers';
|
3
1
|
import { PasscodeClass } from '../../components/descope-passcode/PasscodeClass';
|
4
2
|
import { refs } from './inputWrapper';
|
5
3
|
|
6
|
-
const
|
7
|
-
const vars = PasscodeClass.cssVarList
|
4
|
+
const vars = PasscodeClass.cssVarList;
|
8
5
|
|
9
6
|
const passcode = {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
7
|
+
[vars.fontFamily]: refs.fontFamily,
|
8
|
+
[vars.fontSize]: refs.fontSize,
|
9
|
+
[vars.labelTextColor]: refs.labelTextColor,
|
10
|
+
[vars.labelRequiredIndicator]: refs.requiredIndicator,
|
11
|
+
[vars.errorMessageTextColor]: refs.errorMessageTextColor,
|
12
|
+
[vars.digitValueTextColor]: refs.valueTextColor,
|
13
|
+
[vars.digitPadding]: '0',
|
14
|
+
[vars.digitTextAlign]: 'center',
|
15
|
+
[vars.digitSpacing]: '4px',
|
16
|
+
[vars.hostWidth]: refs.width,
|
17
|
+
[vars.digitOutlineColor]: 'transparent',
|
18
|
+
[vars.digitOutlineWidth]: refs.outlineWidth,
|
19
|
+
[vars.focusedDigitFieldOutlineColor]: refs.outlineColor,
|
20
|
+
[vars.digitSize]: refs.inputHeight,
|
23
21
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
}
|
22
|
+
_hideCursor: {
|
23
|
+
[vars.digitCaretTextColor]: 'transparent',
|
24
|
+
},
|
25
|
+
};
|
28
26
|
|
29
27
|
export default passcode;
|
30
|
-
export { vars }
|
28
|
+
export { vars };
|
@@ -7,27 +7,28 @@ const globalRefs = getThemeRefs(globals);
|
|
7
7
|
const vars = PasswordClass.cssVarList;
|
8
8
|
|
9
9
|
const password = {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
10
|
+
[vars.hostWidth]: refs.width,
|
11
|
+
[vars.fontSize]: refs.fontSize,
|
12
|
+
[vars.fontFamily]: refs.fontFamily,
|
13
|
+
[vars.labelTextColor]: refs.labelTextColor,
|
14
|
+
[vars.errorMessageTextColor]: refs.errorMessageTextColor,
|
15
|
+
[vars.inputHorizontalPadding]: refs.horizontalPadding,
|
16
|
+
[vars.inputHeight]: refs.inputHeight,
|
17
|
+
[vars.inputBackgroundColor]: refs.backgroundColor,
|
18
|
+
[vars.labelRequiredIndicator]: refs.requiredIndicator,
|
19
|
+
[vars.inputValueTextColor]: refs.valueTextColor,
|
20
|
+
[vars.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
21
|
+
[vars.inputBorderWidth]: refs.borderWidth,
|
22
|
+
[vars.inputBorderStyle]: refs.borderStyle,
|
23
|
+
[vars.inputBorderColor]: refs.borderColor,
|
24
|
+
[vars.inputBorderRadius]: refs.borderRadius,
|
25
|
+
[vars.inputOutlineWidth]: refs.outlineWidth,
|
26
|
+
[vars.inputOutlineStyle]: refs.outlineStyle,
|
27
|
+
[vars.inputOutlineColor]: refs.outlineColor,
|
28
|
+
[vars.inputOutlineOffset]: refs.outlineOffset,
|
29
|
+
[vars.revealButtonOffset]: globalRefs.spacing.md,
|
30
|
+
[vars.revealButtonSize]: refs.toggleButtonSize,
|
30
31
|
};
|
31
32
|
|
32
33
|
export default password;
|
33
|
-
export { vars }
|
34
|
+
export { vars };
|
@@ -4,30 +4,30 @@ import { refs } from './inputWrapper';
|
|
4
4
|
const vars = PhoneFieldClass.cssVarList;
|
5
5
|
|
6
6
|
const phoneField = {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
7
|
+
[vars.hostWidth]: refs.width,
|
8
|
+
[vars.fontSize]: refs.fontSize,
|
9
|
+
[vars.fontFamily]: refs.fontFamily,
|
10
|
+
[vars.labelTextColor]: refs.labelTextColor,
|
11
|
+
[vars.labelRequiredIndicator]: refs.requiredIndicator,
|
12
|
+
[vars.errorMessageTextColor]: refs.errorMessageTextColor,
|
13
|
+
[vars.inputValueTextColor]: refs.valueTextColor,
|
14
|
+
[vars.inputPlaceholderTextColor]: refs.placeholderTextColor,
|
15
|
+
[vars.inputBorderStyle]: refs.borderStyle,
|
16
|
+
[vars.inputBorderWidth]: refs.borderWidth,
|
17
|
+
[vars.inputBorderColor]: refs.borderColor,
|
18
|
+
[vars.inputBorderRadius]: refs.borderRadius,
|
19
|
+
[vars.inputOutlineStyle]: refs.outlineStyle,
|
20
|
+
[vars.inputOutlineWidth]: refs.outlineWidth,
|
21
|
+
[vars.inputOutlineColor]: refs.outlineColor,
|
22
|
+
[vars.inputOutlineOffset]: refs.outlineOffset,
|
23
|
+
[vars.phoneInputWidth]: refs.minWidth,
|
24
|
+
[vars.countryCodeInputWidth]: '5em',
|
25
|
+
[vars.countryCodeDropdownWidth]: '20em',
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
// '@overlay': {
|
28
|
+
// overlayItemBackgroundColor: 'red'
|
29
|
+
// }
|
30
30
|
};
|
31
31
|
|
32
32
|
export default phoneField;
|
33
|
-
export { vars }
|
33
|
+
export { vars };
|
@@ -10,61 +10,62 @@ const globalRefs = getThemeRefs(globals);
|
|
10
10
|
const vars = SwitchToggleClass.cssVarList;
|
11
11
|
|
12
12
|
const switchToggle = {
|
13
|
-
|
14
|
-
|
13
|
+
[vars.fontSize]: refs.fontSize,
|
14
|
+
[vars.fontFamily]: refs.fontFamily,
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
[vars.inputOutlineWidth]: refs.outlineWidth,
|
17
|
+
[vars.inputOutlineOffset]: refs.outlineOffset,
|
18
|
+
[vars.inputOutlineColor]: refs.outlineColor,
|
19
|
+
[vars.inputOutlineStyle]: refs.outlineStyle,
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
[vars.trackBorderStyle]: refs.borderStyle,
|
22
|
+
[vars.trackBorderWidth]: refs.borderWidth, // var `trackBorderWidth` used outside the theme for `left` margin calculation
|
23
|
+
[vars.trackBorderColor]: refs.borderColor,
|
24
|
+
[vars.trackBackgroundColor]: 'none',
|
25
|
+
[vars.trackBorderRadius]: globalRefs.radius.md,
|
26
|
+
[vars.trackWidth]: '2.5em', // var `trackWidth` used outside the theme for `left` margin calculation
|
27
|
+
[vars.trackHeight]: checkboxHeight,
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
29
|
+
[vars.knobSize]: `calc(1em - ${knobMargin})`,
|
30
|
+
[vars.knobRadius]: '50%',
|
31
|
+
[vars.knobTopOffset]: '1px',
|
32
|
+
[vars.knobLeftOffset]: knobMargin,
|
33
|
+
[vars.knobColor]: refs.valueTextColor,
|
34
|
+
[vars.knobTransitionDuration]: '0.3s',
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
[vars.labelTextColor]: refs.labelTextColor,
|
37
|
+
[vars.labelFontWeight]: '400',
|
38
|
+
[vars.labelLineHeight]: `calc(${checkboxHeight} + 0.25em)`,
|
39
|
+
[vars.labelSpacing]: '0.25em',
|
40
|
+
[vars.labelRequiredIndicator]: refs.requiredIndicator,
|
41
|
+
[vars.errorMessageTextColor]: refs.errorMessageTextColor,
|
41
42
|
|
42
|
-
|
43
|
+
[vars.hostWidth]: refs.width,
|
43
44
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
45
|
+
_checked: {
|
46
|
+
[vars.trackBorderColor]: refs.borderColor,
|
47
|
+
[vars.trackBackgroundColor]: refs.backgroundColor,
|
48
|
+
[vars.knobLeftOffset]: `calc(100% - var(${vars.knobSize}) - ${knobMargin})`,
|
49
|
+
[vars.knobColor]: refs.valueTextColor,
|
50
|
+
[vars.knobTextColor]: refs.valueTextColor,
|
51
|
+
},
|
51
52
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
}
|
53
|
+
_disabled: {
|
54
|
+
[vars.knobColor]: globalRefs.colors.surface.light,
|
55
|
+
[vars.trackBorderColor]: globalRefs.colors.surface.main,
|
56
|
+
[vars.trackBackgroundColor]: globalRefs.colors.surface.main,
|
57
|
+
[vars.labelTextColor]: refs.labelTextColor,
|
58
|
+
_checked: {
|
59
|
+
[vars.knobColor]: globalRefs.colors.surface.light,
|
60
|
+
[vars.trackBackgroundColor]: globalRefs.colors.surface.main,
|
61
61
|
},
|
62
|
+
},
|
62
63
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
64
|
+
_invalid: {
|
65
|
+
[vars.trackBorderColor]: globalRefs.colors.error.main,
|
66
|
+
[vars.knobColor]: globalRefs.colors.error.main,
|
67
|
+
},
|
67
68
|
};
|
68
69
|
|
69
70
|
export default switchToggle;
|
70
|
-
export { vars }
|
71
|
+
export { vars };
|