@descope/web-components-ui 1.0.319 → 1.0.321

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/cjs/index.cjs.js +1390 -1010
  2. package/dist/cjs/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +1433 -1051
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/umd/1438.js +1 -1
  6. package/dist/umd/2362.js +1 -1
  7. package/dist/umd/3830.js +1 -1
  8. package/dist/umd/4028.js +1 -1
  9. package/dist/umd/5135.js +1 -1
  10. package/dist/umd/5806.js +1 -1
  11. package/dist/umd/602.js +170 -0
  12. package/dist/umd/{1621.js.LICENSE.txt → 602.js.LICENSE.txt} +0 -6
  13. package/dist/umd/6770.js +1 -1
  14. package/dist/umd/7056.js +2 -2
  15. package/dist/umd/7284.js +303 -0
  16. package/dist/umd/7284.js.LICENSE.txt +11 -0
  17. package/dist/umd/8137.js +452 -0
  18. package/dist/umd/8137.js.LICENSE.txt +17 -0
  19. package/dist/umd/8191.js +4 -4
  20. package/dist/umd/9092.js +2 -2
  21. package/dist/umd/DescopeDev.js +1 -1
  22. package/dist/umd/boolean-fields-descope-checkbox-index-js.js +1 -1
  23. package/dist/umd/boolean-fields-descope-switch-toggle-index-js.js +1 -1
  24. package/dist/umd/descope-email-field-index-js.js +1 -1
  25. package/dist/umd/descope-grid-descope-grid-selection-column-index-js.js +1 -1
  26. package/dist/umd/descope-new-password-descope-new-password-internal-index-js.js +1 -1
  27. package/dist/umd/descope-new-password-index-js.js +1 -1
  28. package/dist/umd/descope-passcode-index-js.js +1 -1
  29. package/dist/umd/descope-password-index-js.js +1 -1
  30. package/dist/umd/descope-radio-group-index-js.js +1 -0
  31. package/dist/umd/descope-text-field-index-js.js +1 -1
  32. package/dist/umd/index.js +1 -1
  33. package/dist/umd/phone-fields-descope-phone-input-box-field-descope-phone-input-box-internal-index-js.js +1 -1
  34. package/package.json +2 -1
  35. package/src/components/descope-password/PasswordClass.js +56 -0
  36. package/src/components/descope-radio-group/RadioButtonClass.js +74 -0
  37. package/src/components/descope-radio-group/RadioGroupClass.js +192 -0
  38. package/src/components/descope-radio-group/index.js +8 -0
  39. package/src/index.cjs.js +2 -0
  40. package/src/index.js +1 -0
  41. package/src/theme/components/index.js +4 -0
  42. package/src/theme/components/radioGroup/radioButton.js +42 -0
  43. package/src/theme/components/radioGroup/radioGroup.js +37 -0
  44. package/dist/umd/1621.js +0 -620
@@ -0,0 +1,42 @@
1
+ import { RadioButtonClass } from '../../../components/descope-radio-group/RadioButtonClass';
2
+ import { getThemeRefs } from '../../../helpers/themeHelpers';
3
+ import globals from '../../globals';
4
+ import { refs } from '../inputWrapper';
5
+
6
+ const vars = RadioButtonClass.cssVarList;
7
+ const globalRefs = getThemeRefs(globals);
8
+
9
+ export const radioButton = {
10
+ [vars.fontFamily]: refs.fontFamily,
11
+ [vars.radioSize]: 'calc(1em + 6px)',
12
+ [vars.radioMargin]: 'auto 4px',
13
+ [vars.radioCheckedSize]: `calc(var(${vars.radioSize})/5)`,
14
+ [vars.radioCheckedColor]: globalRefs.colors.surface.light,
15
+ [vars.radioBackgroundColor]: globalRefs.colors.surface.light,
16
+
17
+ _checked: {
18
+ [vars.radioBackgroundColor]: globalRefs.colors.surface.contrast,
19
+ },
20
+
21
+ _hover: {
22
+ cursor: 'pointer',
23
+ },
24
+
25
+ size: {
26
+ xs: {
27
+ [vars.fontSize]: '12px',
28
+ },
29
+ sm: {
30
+ [vars.fontSize]: '14px',
31
+ },
32
+ md: {
33
+ [vars.fontSize]: '16px',
34
+ },
35
+ lg: {
36
+ [vars.fontSize]: '18px',
37
+ },
38
+ },
39
+ };
40
+
41
+ export default radioButton;
42
+ export { vars };
@@ -0,0 +1,37 @@
1
+ import { RadioGroupClass } from '../../../components/descope-radio-group/RadioGroupClass';
2
+ import { getThemeRefs } from '../../../helpers/themeHelpers';
3
+ import globals from '../../globals';
4
+ import { refs } from '../inputWrapper';
5
+
6
+ const vars = RadioGroupClass.cssVarList;
7
+ const globalRefs = getThemeRefs(globals);
8
+
9
+ export const radioGroup = {
10
+ [vars.buttonsRowGap]: '9px',
11
+ [vars.hostWidth]: refs.width,
12
+ [vars.hostDirection]: refs.direction,
13
+ [vars.fontSize]: refs.fontSize,
14
+ [vars.fontFamily]: refs.fontFamily,
15
+ [vars.labelTextColor]: refs.labelTextColor,
16
+ [vars.labelRequiredIndicator]: refs.requiredIndicator,
17
+ [vars.errorMessageTextColor]: refs.errorMessageTextColor,
18
+ [vars.helperTextColor]: refs.helperTextColor,
19
+ [vars.itemsLabelColor]: globalRefs.colors.surface.contrast,
20
+
21
+ textAlign: {
22
+ right: { [vars.inputTextAlign]: 'right' },
23
+ left: { [vars.inputTextAlign]: 'left' },
24
+ center: { [vars.inputTextAlign]: 'center' },
25
+ },
26
+
27
+ _fullWidth: {
28
+ [vars.buttonsSpacing]: 'space-between',
29
+ },
30
+
31
+ _disabled: {
32
+ [vars.itemsLabelColor]: globalRefs.colors.surface.light,
33
+ },
34
+ };
35
+
36
+ export default radioGroup;
37
+ export { vars };