@descope/web-components-ui 1.0.321 → 1.0.323

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. package/dist/cjs/index.cjs.js +555 -25
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +634 -86
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/4392.js +1 -1
  6. package/dist/umd/DescopeDev.js +1 -1
  7. package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
  8. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  9. package/dist/umd/button-selection-group-fields-descope-button-multi-selection-group-index-js.js +1 -1
  10. package/dist/umd/button-selection-group-fields-descope-button-selection-group-index-js.js +1 -1
  11. package/dist/umd/descope-combo-box-index-js.js +7 -7
  12. package/dist/umd/descope-email-field-index-js.js +4 -4
  13. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  14. package/dist/umd/descope-grid-index-js.js +1 -1
  15. package/dist/umd/descope-multi-select-combo-box-index-js.js +1 -1
  16. package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
  17. package/dist/umd/descope-new-password-index-js.js +1 -1
  18. package/dist/umd/descope-number-field-index-js.js +1 -1
  19. package/dist/umd/descope-passcode-index-js.js +1 -1
  20. package/dist/umd/descope-password-index-js.js +1 -1
  21. package/dist/umd/descope-radio-group-index-js.js +1 -1
  22. package/dist/umd/descope-text-area-index-js.js +1 -1
  23. package/dist/umd/descope-text-field-index-js.js +2 -2
  24. package/dist/umd/index.js +1 -1
  25. package/dist/umd/mapping-fields-descope-mappings-field-index-js.js +1 -1
  26. package/dist/umd/mapping-fields-descope-saml-group-mappings-index-js.js +1 -1
  27. package/dist/umd/phone-fields-descope-phone-field-descope-phone-field-internal-index-js.js +1 -1
  28. package/dist/umd/phone-fields-descope-phone-field-index-js.js +1 -1
  29. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -1
  30. package/dist/umd/phone-fields-descope-phone-input-box-field-index-js.js +1 -1
  31. package/package.json +1 -1
  32. package/src/components/descope-combo-box/ComboBoxClass.js +57 -0
  33. package/src/components/descope-email-field/EmailFieldClass.js +74 -1
  34. package/src/components/descope-multi-select-combo-box/MultiSelectComboBoxClass.js +31 -0
  35. package/src/components/descope-new-password/NewPasswordClass.js +7 -0
  36. package/src/components/descope-new-password/descope-new-password-internal/NewPasswordInternal.js +1 -0
  37. package/src/components/descope-number-field/NumberFieldClass.js +9 -0
  38. package/src/components/descope-password/PasswordClass.js +43 -3
  39. package/src/components/descope-text-field/TextFieldClass.js +24 -1
  40. package/src/components/descope-text-field/textFieldMappings.js +40 -6
  41. package/src/components/phone-fields/descope-phone-field/PhoneFieldClass.js +36 -4
  42. package/src/components/phone-fields/descope-phone-field/descope-phone-field-internal/PhoneFieldInternal.js +19 -3
  43. package/src/components/phone-fields/descope-phone-input-box-field/PhoneFieldInputBoxClass.js +45 -1
  44. package/src/components/phone-fields/descope-phone-input-box-field/descope-phone-input-box-internal/PhoneFieldInternalInputBox.js +1 -0
  45. package/src/{components/descope-password/helpers.js → helpers/externalInputs.js} +5 -5
  46. package/src/helpers/themeHelpers/resetHelpers.js +15 -0
  47. package/src/theme/components/comboBox.js +17 -0
  48. package/src/theme/components/emailField.js +17 -0
  49. package/src/theme/components/inputWrapper.js +35 -0
  50. package/src/theme/components/multiSelectComboBox.js +22 -0
  51. package/src/theme/components/newPassword.js +10 -0
  52. package/src/theme/components/numberField.js +17 -0
  53. package/src/theme/components/password.js +17 -0
  54. package/src/theme/components/phoneField.js +8 -0
  55. package/src/theme/components/phoneInputBoxField.js +17 -0
  56. package/src/theme/components/textField.js +17 -0
@@ -12,11 +12,21 @@ const newPassword = {
12
12
  [vars.hostDirection]: refs.direction,
13
13
  [vars.fontSize]: refs.fontSize,
14
14
  [vars.fontFamily]: refs.fontFamily,
15
+ [vars.labelFontSize]: refs.labelFontSize,
16
+ [vars.labelFontWeight]: refs.labelFontWeight,
17
+ [vars.labelTextColor]: refs.labelTextColor,
15
18
  [vars.spaceBetweenInputs]: '1em',
16
19
  [vars.errorMessageTextColor]: refs.errorMessageTextColor,
17
20
  [vars.policyPreviewBackgroundColor]: 'none',
18
21
  [vars.policyPreviewPadding]: globalRefs.spacing.lg,
19
22
 
23
+ labelType: {
24
+ floating: {
25
+ [vars.inputHeight]: refs.inputHeight,
26
+ [vars.valueInputHeight]: refs.valueInputHeight,
27
+ },
28
+ },
29
+
20
30
  _required: {
21
31
  // NewPassword doesn't pass `required` attribute to its Password components.
22
32
  // That's why we fake the required indicator on each input.
@@ -9,6 +9,8 @@ const numberField = {
9
9
  [vars.hostDirection]: refs.direction,
10
10
  [vars.fontSize]: refs.fontSize,
11
11
  [vars.fontFamily]: refs.fontFamily,
12
+ [vars.labelFontSize]: refs.labelFontSize,
13
+ [vars.labelFontWeight]: refs.labelFontWeight,
12
14
  [vars.labelTextColor]: refs.labelTextColor,
13
15
  [vars.errorMessageTextColor]: refs.errorMessageTextColor,
14
16
  [vars.inputValueTextColor]: refs.valueTextColor,
@@ -25,6 +27,21 @@ const numberField = {
25
27
  [vars.labelRequiredIndicator]: refs.requiredIndicator,
26
28
  [vars.inputHorizontalPadding]: refs.horizontalPadding,
27
29
  [vars.inputHeight]: refs.inputHeight,
30
+
31
+ labelType: {
32
+ floating: {
33
+ [vars.labelPosition]: refs.labelPosition,
34
+ [vars.labelTopPosition]: refs.labelTopPosition,
35
+ [vars.labelHorizontalPosition]: refs.labelHorizontalPosition,
36
+ [vars.inputTransformY]: refs.inputTransformY,
37
+ [vars.inputTransition]: refs.inputTransition,
38
+ [vars.marginInlineStart]: refs.marginInlineStart,
39
+ [vars.placeholderOpacity]: refs.placeholderOpacity,
40
+ [vars.inputVerticalAlignment]: refs.inputVerticalAlignment,
41
+ [vars.valueInputHeight]: refs.valueInputHeight,
42
+ [vars.valueInputMarginBottom]: refs.valueInputMarginBottom,
43
+ },
44
+ },
28
45
  };
29
46
 
30
47
  export default numberField;
@@ -8,9 +8,12 @@ const vars = PasswordClass.cssVarList;
8
8
 
9
9
  const password = {
10
10
  [vars.hostWidth]: refs.width,
11
+ [vars.hostMinWidth]: refs.minWidth,
11
12
  [vars.hostDirection]: refs.direction,
12
13
  [vars.fontSize]: refs.fontSize,
13
14
  [vars.fontFamily]: refs.fontFamily,
15
+ [vars.labelFontSize]: refs.labelFontSize,
16
+ [vars.labelFontWeight]: refs.labelFontWeight,
14
17
  [vars.labelTextColor]: refs.labelTextColor,
15
18
  [vars.errorMessageTextColor]: refs.errorMessageTextColor,
16
19
  [vars.inputHorizontalPadding]: refs.horizontalPadding,
@@ -30,6 +33,20 @@ const password = {
30
33
  [vars.revealButtonOffset]: globalRefs.spacing.md,
31
34
  [vars.revealButtonSize]: refs.toggleButtonSize,
32
35
  [vars.revealButtonColor]: refs.placeholderTextColor,
36
+
37
+ labelType: {
38
+ floating: {
39
+ [vars.labelPosition]: refs.labelPosition,
40
+ [vars.labelTopPosition]: refs.labelTopPosition,
41
+ [vars.labelHorizontalPosition]: refs.labelHorizontalPosition,
42
+ [vars.inputTransformY]: refs.inputTransformY,
43
+ [vars.inputTransition]: refs.inputTransition,
44
+ [vars.marginInlineStart]: refs.marginInlineStart,
45
+ [vars.placeholderOpacity]: refs.placeholderOpacity,
46
+ [vars.inputVerticalAlignment]: refs.inputVerticalAlignment,
47
+ [vars.valueInputHeight]: refs.valueInputHeight,
48
+ },
49
+ },
33
50
  };
34
51
 
35
52
  export default password;
@@ -25,6 +25,14 @@ const phoneField = {
25
25
  [vars.countryCodeInputWidth]: '5em',
26
26
  [vars.countryCodeDropdownWidth]: '20em',
27
27
 
28
+ labelType: {
29
+ floating: {
30
+ [vars.marginInlineStart]: '-0.25em',
31
+ [vars.valueInputHeight]: '1.65em',
32
+ [vars.valueInputMarginBottom]: '0.25em',
33
+ },
34
+ },
35
+
28
36
  // '@overlay': {
29
37
  // overlayItemBackgroundColor: 'red'
30
38
  // }
@@ -9,6 +9,8 @@ const phoneInputBoxField = {
9
9
  [vars.hostDirection]: refs.direction,
10
10
  [vars.fontSize]: refs.fontSize,
11
11
  [vars.fontFamily]: refs.fontFamily,
12
+ [vars.labelFontSize]: refs.labelFontSize,
13
+ [vars.labelFontWeight]: refs.labelFontWeight,
12
14
  [vars.labelTextColor]: refs.labelTextColor,
13
15
  [vars.labelRequiredIndicator]: refs.requiredIndicator,
14
16
  [vars.errorMessageTextColor]: refs.errorMessageTextColor,
@@ -22,6 +24,21 @@ const phoneInputBoxField = {
22
24
  [vars.inputOutlineWidth]: refs.outlineWidth,
23
25
  [vars.inputOutlineColor]: refs.outlineColor,
24
26
  [vars.inputOutlineOffset]: refs.outlineOffset,
27
+
28
+ labelType: {
29
+ floating: {
30
+ [vars.labelPosition]: refs.labelPosition,
31
+ [vars.labelTopPosition]: refs.labelTopPosition,
32
+ [vars.labelHorizontalPosition]: refs.labelHorizontalPosition,
33
+ [vars.inputTransformY]: refs.inputTransformY,
34
+ [vars.inputTransition]: refs.inputTransition,
35
+ [vars.marginInlineStart]: refs.marginInlineStart,
36
+ [vars.valueInputHeight]: refs.valueInputHeight,
37
+ [vars.valueInputMarginBottom]: '0.25em',
38
+ [vars.inputHorizontalPadding]: '0',
39
+ },
40
+ },
41
+
25
42
  _fullWidth: {
26
43
  [vars.hostWidth]: refs.width,
27
44
  },
@@ -9,6 +9,8 @@ export const textField = {
9
9
  [vars.hostDirection]: refs.direction,
10
10
  [vars.fontSize]: refs.fontSize,
11
11
  [vars.fontFamily]: refs.fontFamily,
12
+ [vars.labelFontSize]: refs.labelFontSize,
13
+ [vars.labelFontWeight]: refs.labelFontWeight,
12
14
  [vars.labelTextColor]: refs.labelTextColor,
13
15
  [vars.labelRequiredIndicator]: refs.requiredIndicator,
14
16
  [vars.errorMessageTextColor]: refs.errorMessageTextColor,
@@ -31,6 +33,21 @@ export const textField = {
31
33
  left: { [vars.inputTextAlign]: 'left' },
32
34
  center: { [vars.inputTextAlign]: 'center' },
33
35
  },
36
+
37
+ labelType: {
38
+ floating: {
39
+ [vars.labelPosition]: refs.labelPosition,
40
+ [vars.labelTopPosition]: refs.labelTopPosition,
41
+ [vars.labelHorizontalPosition]: refs.labelHorizontalPosition,
42
+ [vars.inputTransformY]: refs.inputTransformY,
43
+ [vars.inputTransition]: refs.inputTransition,
44
+ [vars.marginInlineStart]: refs.marginInlineStart,
45
+ [vars.placeholderOpacity]: refs.placeholderOpacity,
46
+ [vars.inputVerticalAlignment]: refs.inputVerticalAlignment,
47
+ [vars.valueInputHeight]: refs.valueInputHeight,
48
+ [vars.valueInputMarginBottom]: refs.valueInputMarginBottom,
49
+ },
50
+ },
34
51
  };
35
52
 
36
53
  export default textField;