@thecb/components 10.6.1-beta.0 → 10.6.1

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 (51) hide show
  1. package/dist/index.cjs.js +1052 -302
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +42 -18
  4. package/dist/index.esm.js +1048 -302
  5. package/dist/index.esm.js.map +1 -1
  6. package/package.json +2 -2
  7. package/src/.DS_Store +0 -0
  8. package/src/components/.DS_Store +0 -0
  9. package/src/components/atoms/.DS_Store +0 -0
  10. package/src/components/atoms/icons/DisabledAccountsAddIcon.js +200 -0
  11. package/src/components/atoms/icons/DisabledPaymentMethodsAddIcon.js +62 -0
  12. package/src/components/atoms/icons/DisabledPropertiesAddIcon.js +54 -0
  13. package/src/components/atoms/icons/PropertiesAddIcon.js +1 -0
  14. package/src/components/atoms/icons/WalletIconSmall.js +3 -7
  15. package/src/components/atoms/icons/icons.stories.js +9 -1
  16. package/src/components/atoms/icons/index.js +7 -1
  17. package/src/components/atoms/index.js +1 -0
  18. package/src/components/atoms/placeholder/Placeholder.js +85 -26
  19. package/src/components/atoms/placeholder/Placeholder.stories.js +2 -0
  20. package/src/components/atoms/placeholder/Placeholder.theme.js +8 -2
  21. package/src/components/atoms/spinner/Spinner.js +13 -5
  22. package/src/components/atoms/spinner/index.d.ts +4 -0
  23. package/src/components/atoms/toggle-switch/ToggleSwitch.js +33 -61
  24. package/src/components/atoms/toggle-switch/ToggleSwitch.stories.js +2 -3
  25. package/src/components/atoms/toggle-switch/ToggleSwitch.theme.js +5 -5
  26. package/src/components/atoms/wallet-name/WalletName.js +102 -0
  27. package/src/components/atoms/wallet-name/WalletName.stories.js +24 -0
  28. package/src/components/atoms/wallet-name/index.d.ts +15 -0
  29. package/src/components/atoms/wallet-name/index.js +3 -0
  30. package/src/components/molecules/editable-list/EditableList.js +3 -1
  31. package/src/components/molecules/editable-list/EditableList.stories.js +1 -3
  32. package/src/components/molecules/link-card/LinkCard.theme.js +7 -21
  33. package/src/components/molecules/modal/Modal.js +6 -217
  34. package/src/components/molecules/modal/Modal.stories.js +57 -13
  35. package/src/components/molecules/modal/ModalControlV1.js +234 -0
  36. package/src/components/molecules/modal/ModalControlV2.js +218 -0
  37. package/src/components/molecules/modal/__private__/ButtonLayoutWrapper.js +24 -0
  38. package/src/components/molecules/modal/__private__/CancelButton.js +36 -0
  39. package/src/components/molecules/modal/__private__/CloseButton.js +34 -0
  40. package/src/components/molecules/modal/__private__/CloseIconButton.js +39 -0
  41. package/src/components/molecules/modal/__private__/ContinueButton.js +45 -0
  42. package/src/components/molecules/modal/__private__/index.d.ts +59 -0
  43. package/src/components/molecules/modal/__private__/index.js +5 -0
  44. package/src/components/molecules/partial-amount-form/PartialAmountField.js +49 -0
  45. package/src/components/molecules/partial-amount-form/PartialAmountForm.js +8 -22
  46. package/src/components/molecules/radio-section/InnerRadioSection.js +7 -2
  47. package/src/components/molecules/registration-form/RegistrationForm.js +6 -3
  48. package/src/components/molecules/registration-form/RegistrationForm.state.js +4 -3
  49. package/src/constants/style_constants.d.ts +18 -6
  50. package/src/constants/style_constants.js +23 -20
  51. package/src/components/atoms/icons/.DS_Store +0 -0
@@ -1,23 +1,26 @@
1
1
  /* These are constants used by nav frontend components */
2
2
 
3
- const HEADER_HEIGHT = "104px";
4
- const FOOTER_HEIGHT = "100px";
5
- const SPACER_HEIGHT = "65px";
6
- const JUMBO_HEIGHT = "300px";
7
- const COMPACT_JUMBO_HEIGHT = "65px";
8
- const FONT_WEIGHT_REGULAR = "400";
9
- const FONT_WEIGHT_BOLD = "700";
10
- const FONT_WEIGHT_SEMIBOLD = "600";
11
- const LINK_TEXT_DECORATION = "underline solid 1px";
12
-
13
- export {
14
- HEADER_HEIGHT,
15
- FOOTER_HEIGHT,
16
- SPACER_HEIGHT,
17
- JUMBO_HEIGHT,
18
- COMPACT_JUMBO_HEIGHT,
19
- FONT_WEIGHT_REGULAR,
20
- FONT_WEIGHT_BOLD,
21
- FONT_WEIGHT_SEMIBOLD,
22
- LINK_TEXT_DECORATION
3
+ export const BORDER_RADIUS = {
4
+ MD: "4px" // Figma: Corners/Standard Corner
5
+ };
6
+ export const BORDER_THIN = "1px";
7
+ export const FONT_SIZE = {
8
+ XS: "0.750rem", // 12px
9
+ SM: "0.875rem", // 14px
10
+ MD: "1.000rem", // 16px
11
+ LG: "1.125rem", // 18px
12
+ XL: "1.250rem" //20px
13
+ };
14
+ export const FONT_WEIGHT_REGULAR = "400";
15
+ export const FONT_WEIGHT_SEMIBOLD = "600";
16
+ export const FONT_WEIGHT_BOLD = "700";
17
+ export const FOOTER_HEIGHT = "100px";
18
+ export const HEADER_HEIGHT = "104px";
19
+ export const COMPACT_JUMBO_HEIGHT = "65px";
20
+ export const JUMBO_HEIGHT = "300px";
21
+ export const SPACER_HEIGHT = "65px";
22
+ export const LINK_TEXT_DECORATION = "underline solid 1px";
23
+ export const SPACING = {
24
+ XS: "1.0rem", // Figma: Spacing/XS
25
+ MD: "1.5rem" // Figma: Spacing/Normal
23
26
  };