@descope/flow-components 2.0.39 → 2.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/package.json +6 -3
  2. package/.eslintrc +0 -119
  3. package/.github/actions/setup/action.yml +0 -42
  4. package/.github/workflows/ci.yml +0 -105
  5. package/.github/workflows/publish.yml +0 -40
  6. package/.github/workflows/release.yml +0 -44
  7. package/.husky/pre-commit +0 -1
  8. package/.prettierrc +0 -8
  9. package/.storybook/main.js +0 -23
  10. package/.storybook/manager.js +0 -10
  11. package/.storybook/preview-head.html +0 -29
  12. package/.storybook/preview.js +0 -44
  13. package/LICENSE +0 -21
  14. package/babel.config.js +0 -7
  15. package/jest.config.js +0 -33
  16. package/jest.setup.js +0 -2
  17. package/renovate.json +0 -4
  18. package/rollup.config.mjs +0 -47
  19. package/src/Boolean/Boolean.tsx +0 -24
  20. package/src/Boolean/index.ts +0 -1
  21. package/src/Button/Button.tsx +0 -49
  22. package/src/Button/index.ts +0 -1
  23. package/src/Checkbox/Checkbox.tsx +0 -16
  24. package/src/Checkbox/index.ts +0 -1
  25. package/src/Code/Code.tsx +0 -21
  26. package/src/Code/index.ts +0 -1
  27. package/src/Container/Container.tsx +0 -111
  28. package/src/Container/index.ts +0 -1
  29. package/src/CssVarImage/CssVarImage.tsx +0 -38
  30. package/src/CssVarImage/index.ts +0 -1
  31. package/src/Divider/Divider.tsx +0 -33
  32. package/src/Divider/index.ts +0 -1
  33. package/src/EmailField/EmailField.tsx +0 -20
  34. package/src/EmailField/index.ts +0 -1
  35. package/src/Image/Image.tsx +0 -32
  36. package/src/Image/index.ts +0 -1
  37. package/src/Input/Input.tsx +0 -27
  38. package/src/Input/index.ts +0 -1
  39. package/src/Link/Link.tsx +0 -33
  40. package/src/Link/index.ts +0 -1
  41. package/src/Loader/Loader.tsx +0 -40
  42. package/src/Loader/index.ts +0 -1
  43. package/src/Logo/Logo.tsx +0 -27
  44. package/src/Logo/index.ts +0 -1
  45. package/src/NewPassword/NewPassword.tsx +0 -25
  46. package/src/NewPassword/index.ts +0 -1
  47. package/src/NumberField/NumberField.tsx +0 -20
  48. package/src/NumberField/index.ts +0 -1
  49. package/src/Password/Password.tsx +0 -20
  50. package/src/Password/index.ts +0 -1
  51. package/src/Phone/Phone.tsx +0 -22
  52. package/src/Phone/index.ts +0 -1
  53. package/src/Select/Select.tsx +0 -29
  54. package/src/Select/index.ts +0 -1
  55. package/src/Switch/Switch.tsx +0 -21
  56. package/src/Switch/index.ts +0 -1
  57. package/src/TOTPImage/TOTPImage.tsx +0 -18
  58. package/src/TOTPImage/index.ts +0 -1
  59. package/src/TOTPLink/TOTPLink.tsx +0 -16
  60. package/src/TOTPLink/index.ts +0 -1
  61. package/src/Text/Text.tsx +0 -36
  62. package/src/Text/index.ts +0 -1
  63. package/src/TextField/TextField.tsx +0 -20
  64. package/src/TextField/index.ts +0 -1
  65. package/src/Textarea/Textarea.tsx +0 -20
  66. package/src/Textarea/index.ts +0 -1
  67. package/src/icons/apple.tsx +0 -14
  68. package/src/icons/discord.tsx +0 -14
  69. package/src/icons/facebook.tsx +0 -14
  70. package/src/icons/fingerprint.tsx +0 -14
  71. package/src/icons/github.tsx +0 -14
  72. package/src/icons/gitlab.tsx +0 -41
  73. package/src/icons/google.tsx +0 -29
  74. package/src/icons/index.ts +0 -11
  75. package/src/icons/input-hidden.tsx +0 -17
  76. package/src/icons/input-visible.tsx +0 -17
  77. package/src/icons/linkedin.tsx +0 -18
  78. package/src/icons/microsoft.tsx +0 -41
  79. package/src/icons/passkey.tsx +0 -16
  80. package/src/icons/sso.tsx +0 -14
  81. package/src/index.ts +0 -25
  82. package/src/inputHelpers.ts +0 -41
  83. package/src/types.ts +0 -52
  84. package/src/utils.tsx +0 -69
  85. package/stories/Boolean.stories.jsx +0 -37
  86. package/stories/Button.stories.jsx +0 -71
  87. package/stories/Checkbox.stories.jsx +0 -29
  88. package/stories/Code.stories.jsx +0 -60
  89. package/stories/Container.stories.jsx +0 -53
  90. package/stories/Divider.stories.jsx +0 -23
  91. package/stories/EmailField.stories.jsx +0 -36
  92. package/stories/Image.stories.jsx +0 -16
  93. package/stories/Input.stories.jsx +0 -63
  94. package/stories/Link.stories.jsx +0 -21
  95. package/stories/Loader.stories.jsx +0 -34
  96. package/stories/Logo.stories.jsx +0 -14
  97. package/stories/NewPassword.stories.jsx +0 -52
  98. package/stories/NumberField.stories.jsx +0 -35
  99. package/stories/Password.stories.jsx +0 -37
  100. package/stories/Phone.stories.jsx +0 -61
  101. package/stories/Switch.stories.jsx +0 -29
  102. package/stories/TOTPImage.stories.jsx +0 -22
  103. package/stories/TOTPLink.stories.jsx +0 -20
  104. package/stories/Text.stories.jsx +0 -35
  105. package/stories/TextField.stories.jsx +0 -39
  106. package/stories/Textarea.stories.jsx +0 -25
  107. package/storybook-static/favicon.ico +0 -0
  108. package/test/__snapshots__/boolean.test.tsx.snap +0 -47
  109. package/test/__snapshots__/buttons.test.tsx.snap +0 -843
  110. package/test/__snapshots__/checkbox.test.tsx.snap +0 -51
  111. package/test/__snapshots__/code.test.tsx.snap +0 -1184
  112. package/test/__snapshots__/container.test.tsx.snap +0 -218
  113. package/test/__snapshots__/divider.test.tsx.snap +0 -73
  114. package/test/__snapshots__/image.test.tsx.snap +0 -62
  115. package/test/__snapshots__/input.test.tsx.snap +0 -80
  116. package/test/__snapshots__/link.test.tsx.snap +0 -120
  117. package/test/__snapshots__/loader.test.tsx.snap +0 -53
  118. package/test/__snapshots__/logo.test.tsx.snap +0 -10
  119. package/test/__snapshots__/newPassword.test.tsx.snap +0 -69
  120. package/test/__snapshots__/numeric-input.test.tsx.snap +0 -21
  121. package/test/__snapshots__/password.test.tsx.snap +0 -26
  122. package/test/__snapshots__/phone.test.tsx.snap +0 -504
  123. package/test/__snapshots__/switch.test.tsx.snap +0 -51
  124. package/test/__snapshots__/text.test.tsx.snap +0 -89
  125. package/test/__snapshots__/textarea.test.tsx.snap +0 -73
  126. package/test/__snapshots__/themeToCssVars.test.ts.snap +0 -45
  127. package/test/__snapshots__/totpImage.test.tsx.snap +0 -10
  128. package/test/__snapshots__/totpLink.test.tsx.snap +0 -13
  129. package/test/boolean.test.tsx +0 -28
  130. package/test/buttons.test.tsx +0 -66
  131. package/test/checkbox.test.tsx +0 -67
  132. package/test/code.test.tsx +0 -182
  133. package/test/container.test.tsx +0 -91
  134. package/test/divider.test.tsx +0 -50
  135. package/test/image.test.tsx +0 -40
  136. package/test/input.test.tsx +0 -82
  137. package/test/inputHelpers.test.tsx +0 -58
  138. package/test/link.test.tsx +0 -71
  139. package/test/loader.test.tsx +0 -25
  140. package/test/logo.test.tsx +0 -10
  141. package/test/newPassword.test.tsx +0 -132
  142. package/test/numeric-input.test.tsx +0 -114
  143. package/test/password.test.tsx +0 -55
  144. package/test/phone.test.tsx +0 -158
  145. package/test/switch.test.tsx +0 -67
  146. package/test/text.test.tsx +0 -60
  147. package/test/textarea.test.tsx +0 -64
  148. package/test/themeToCssVars.test.ts +0 -82
  149. package/test/totpImage.test.tsx +0 -10
  150. package/test/totpLink.test.tsx +0 -10
  151. package/tsconfig.json +0 -20
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { TOTPLink } from '../src';
3
-
4
- export default {
5
- title: 'WCUI/TOTP Link',
6
- component: TOTPLink,
7
- parameters: {
8
- controls: { expanded: true }
9
- }
10
- };
11
-
12
- const StandardTemplate = (args) => <TOTPLink {...args} />;
13
- export const Standard = StandardTemplate.bind({});
14
- Standard.args = {
15
- children: 'Hello World',
16
- italic: false,
17
- variant: 'h3',
18
- align: 'left',
19
- 'full-width': false
20
- };
@@ -1,35 +0,0 @@
1
- import React from 'react';
2
- import { Text } from '../src';
3
-
4
- export default {
5
- title: 'WCUI/Text',
6
- component: Text,
7
- parameters: {
8
- controls: { expanded: true }
9
- },
10
- argTypes: {
11
- variant: {
12
- options: ['h1', 'h2', 'h3', 'subtitle1', 'subtitle2', 'body1', 'body2'],
13
- control: { type: 'radio' }
14
- },
15
- mode: {
16
- options: ['primary', 'secondary'],
17
- control: { type: 'radio' }
18
- },
19
- 'text-align': {
20
- options: ['left', 'center', 'right'],
21
- control: { type: 'radio' }
22
- }
23
- }
24
- };
25
-
26
- const StandardTemplate = (args) => <Text {...args} />;
27
- export const Standard = StandardTemplate.bind({});
28
- Standard.args = {
29
- variant: 'h1',
30
- mode: 'primary',
31
- children: 'Hello World',
32
- italic: true,
33
- 'text-align': 'right',
34
- 'full-width': true
35
- };
@@ -1,39 +0,0 @@
1
- import React from 'react';
2
- import { TextField } from '../src/TextField';
3
-
4
- export default {
5
- title: 'WCUI/TextField',
6
- component: TextField,
7
- parameters: {
8
- controls: { expanded: true }
9
- },
10
- argTypes: {}
11
- };
12
-
13
- const defaults = {
14
- placeholder: 'Placeholder',
15
- label: 'Label',
16
- disabled: false,
17
- bordered: true,
18
- size: 'md',
19
- 'full-width': false,
20
- required: false,
21
- 'helper-text': 'Enter text and then click submit.',
22
- pattern: '',
23
- 'error-message': 'Please revise and submit again.'
24
- };
25
-
26
- const StandardTemplate = (args) => (
27
- <form
28
- onSubmit={(e) => {
29
- e.preventDefault();
30
- }}
31
- >
32
- <TextField {...args} />
33
- <button type="submit">Submit</button>
34
- </form>
35
- );
36
- export const Standard = StandardTemplate.bind({});
37
- Standard.args = {
38
- ...defaults
39
- };
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { Textarea } from '../src';
3
-
4
- export default {
5
- title: 'WCUI/Textarea',
6
- component: Textarea,
7
- parameters: {
8
- controls: { expanded: true }
9
- }
10
- };
11
-
12
- const defaults = {
13
- placeholder: 'Placeholder',
14
- label: 'Label',
15
- disabled: false,
16
- bordered: true,
17
- 'full-width': false,
18
- required: false
19
- };
20
-
21
- const StandardTemplate = (args) => <Textarea {...args} />;
22
- export const Standard = StandardTemplate.bind({});
23
- Standard.args = {
24
- ...defaults
25
- };
Binary file
@@ -1,47 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Boolean should render checkbox 1`] = `
4
- <div>
5
- <div
6
- class="descope-input-wrapper p-0 form-control w-full"
7
- >
8
- <label
9
- class="flex"
10
- >
11
- <input
12
- class="checkbox flex items-center rounded-sm"
13
- name="bool1"
14
- type="checkbox"
15
- />
16
- <span
17
- class="text-undefined ml-4 flex items-center label-text cursor-pointer"
18
- >
19
- some label
20
- </span>
21
- </label>
22
- </div>
23
- </div>
24
- `;
25
-
26
- exports[`Boolean should render switch 1`] = `
27
- <div>
28
- <div
29
- class="descope-input-wrapper p-0 form-control w-full"
30
- >
31
- <label
32
- class="flex"
33
- >
34
- <input
35
- class="toggle flex items-center"
36
- name="bool2"
37
- type="checkbox"
38
- />
39
- <span
40
- class="text-undefined ml-4 flex items-center label-text cursor-pointer"
41
- >
42
- some label
43
- </span>
44
- </label>
45
- </div>
46
- </div>
47
- `;