@thecb/components 3.1.4-beta.0 → 3.1.10

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 (76) hide show
  1. package/.storybook/page.js +5 -4
  2. package/.tool-versions +1 -0
  3. package/dist/index.cjs.js +113 -100
  4. package/package.json +5 -5
  5. package/src/components/atoms/alert/Alert.stories.js +28 -0
  6. package/src/components/atoms/amount-callout/AmountCallout.stories.js +41 -0
  7. package/src/components/atoms/amount-callout/AmountCallout.theme.js +4 -4
  8. package/src/components/atoms/breadcrumb/Breadcrumb.stories.js +38 -0
  9. package/src/components/atoms/button-with-link/ButtonWithLink.stories.js +32 -0
  10. package/src/components/atoms/checkbox/Checkbox.stories.js +29 -0
  11. package/src/components/atoms/checkbox-list/CheckboxList.stories.js +50 -0
  12. package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +42 -0
  13. package/src/components/atoms/display-box/DisplayBox.stories.js +25 -0
  14. package/src/components/atoms/display-card/DisplayCard.js +2 -0
  15. package/src/components/atoms/display-card/DisplayCard.stories.js +24 -0
  16. package/src/components/atoms/form-layouts/FormLayouts.stories.js +72 -0
  17. package/src/components/atoms/form-select/FormSelect.stories.js +44 -0
  18. package/src/components/atoms/formatted-address/FormattedAddress.js +1 -3
  19. package/src/components/atoms/formatted-address/FormattedAddress.stories.js +32 -0
  20. package/src/components/atoms/hamburger-button/HamburgerButton.js +7 -1
  21. package/src/components/atoms/hamburger-button/HamburgerButton.stories.js +21 -0
  22. package/src/components/atoms/heading/Heading.stories.js +20 -0
  23. package/src/components/atoms/icons/icons.stories.js +50 -0
  24. package/src/components/atoms/labeled-amount/LabeledAmount.js +1 -1
  25. package/src/components/atoms/labeled-amount/LabeledAmount.stories.js +29 -0
  26. package/src/components/atoms/layouts/Cluster.js +2 -0
  27. package/src/components/atoms/layouts/Cluster.styled.js +1 -1
  28. package/src/components/atoms/layouts/examples/ResizingContainer.js +3 -1
  29. package/src/components/atoms/layouts/examples/ResizingContainer.styled.js +1 -1
  30. package/src/components/atoms/layouts/examples/box-example/BoxExample.stories.js +58 -0
  31. package/src/components/atoms/layouts/examples/center-example/CenterExample.stories.js +28 -0
  32. package/src/components/atoms/layouts/examples/cover-example/CoverExample.stories.js +53 -0
  33. package/src/components/atoms/layouts/examples/frame-example/FrameExample.stories.js +22 -0
  34. package/src/components/atoms/layouts/examples/imposter-example/ImposterExample.stories.js +35 -0
  35. package/src/components/atoms/layouts/examples/motion-example/MotionExample.stories.js +62 -0
  36. package/src/components/atoms/layouts/examples/reel-example/ReelExample.stories.js +57 -0
  37. package/src/components/atoms/line-item/LineItem.js +2 -2
  38. package/src/components/atoms/line-item/LineItem.stories.js +19 -0
  39. package/src/components/atoms/link/ExternalLink.js +1 -3
  40. package/src/components/atoms/link/InternalLink.styled.js +0 -2
  41. package/src/components/atoms/link/Link.stories.js +57 -0
  42. package/src/components/atoms/link/Link.theme.js +3 -2
  43. package/src/components/atoms/nav-footer/NavFooter.stories.js +31 -0
  44. package/src/components/atoms/nav-header/NavHeader.stories.js +29 -0
  45. package/src/components/atoms/paragraph/Paragraph.stories.js +34 -0
  46. package/src/components/atoms/paragraph/Paragraph.theme.js +6 -2
  47. package/src/components/atoms/password-requirements/PasswordRequirements.stories.js +75 -0
  48. package/src/components/atoms/placeholder/Placeholder.js +16 -16
  49. package/src/components/atoms/placeholder/Placeholder.stories.js +38 -0
  50. package/src/components/atoms/processing-fee/ProcessingFee.stories.js +28 -0
  51. package/src/components/atoms/solid-divider/SolidDivider.stories.js +11 -0
  52. package/src/components/atoms/spinner/Spinner.stories.js +17 -0
  53. package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +52 -0
  54. package/src/components/atoms/text/Text.stories.js +34 -0
  55. package/src/components/atoms/text/Text.theme.js +6 -2
  56. package/src/components/molecules/collapsible-section/CollapsibleSection.js +2 -1
  57. package/src/components/molecules/collapsible-section/CollapsibleSection.stories.js +68 -0
  58. package/src/components/molecules/highlight-tab-row/HighlightTabRow.js +8 -3
  59. package/src/components/molecules/highlight-tab-row/HighlightTabRow.stories.js +30 -0
  60. package/src/components/molecules/highlight-tab-row/index.js +1 -6
  61. package/src/components/molecules/modal/Modal.stories.js +44 -0
  62. package/src/components/molecules/module/Module.js +6 -2
  63. package/src/components/molecules/module/Module.stories.js +31 -0
  64. package/src/components/molecules/module/index.js +1 -6
  65. package/src/components/molecules/obligation/Obligation.js +1 -1
  66. package/src/components/molecules/obligation/modules/AmountModule.js +6 -2
  67. package/src/components/molecules/payment-button-bar/PaymentButtonBar.stories.js +20 -0
  68. package/src/components/molecules/payment-details/PaymentDetails.stories.js +71 -0
  69. package/src/components/molecules/radio-section/RadioSection.stories.js +31 -0
  70. package/src/components/molecules/tab-sidebar/TabSidebar.stories.js +59 -0
  71. package/src/components/molecules/terms-and-conditions/TermsAndConditions.stories.js +24 -0
  72. package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.stories.js +31 -0
  73. package/src/components/molecules/workflow-tile/WorkflowTile.stories.js +25 -0
  74. package/dist/cb-components.esm.js +0 -23576
  75. package/dist/cb-components.js +0 -94714
  76. package/dist/index.esm.js +0 -36084
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { text, boolean } from "@storybook/addon-knobs";
3
+
4
+ import TermsAndConditions from "./TermsAndConditions";
5
+ import page from "../../../../.storybook/page";
6
+ import { noop } from "../../../util/general";
7
+
8
+ const groupId = "props";
9
+
10
+ export const termsAndConditions = () => (
11
+ <TermsAndConditions
12
+ onCheck={noop}
13
+ isChecked={boolean("isChecked", false, groupId)}
14
+ html={text("html", "terms and conditions summary", groupId)}
15
+ terms={text("terms", "terms and conditions modal text", groupId)}
16
+ error={boolean("error", false, groupId)}
17
+ />
18
+ );
19
+
20
+ const story = page({
21
+ title: "Components|Molecules/TermsAndConditions",
22
+ Component: TermsAndConditions
23
+ });
24
+ export default story;
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import { text, select, boolean } from "@storybook/addon-knobs";
3
+
4
+ import TermsAndConditionsModal from "./TermsAndConditionsModal";
5
+ import page from "../../../../.storybook/page";
6
+
7
+ const variants = {
8
+ default: "default",
9
+ footer: "footer",
10
+ None: undefined
11
+ };
12
+ const groupId = "props";
13
+
14
+ export const termsAndConditionsModal = () => (
15
+ <TermsAndConditionsModal
16
+ link={text("text", "Show modal", groupId)}
17
+ title={text("title", "Title", groupId)}
18
+ isOpen={boolean("isOpen", false, groupId)}
19
+ // toggleOpen={setShowTerms}
20
+ // toggleAccepted={toggleTermsAccepted}
21
+ acceptText={text("acceptText", "Accept", groupId)}
22
+ terms={text("terms", "terms and conditions", groupId)}
23
+ variant={select("variants", variants, "default", groupId)}
24
+ />
25
+ );
26
+
27
+ const story = page({
28
+ title: "Components|Molecules/TermsAndConditionsModal",
29
+ Component: TermsAndConditionsModal
30
+ });
31
+ export default story;
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { text } from "@storybook/addon-knobs";
3
+
4
+ import WorkflowTile from "./WorkflowTile";
5
+ import page from "../../../../.storybook/page";
6
+
7
+ const groupId = "props";
8
+
9
+ export const workflowTile = () => (
10
+ <WorkflowTile
11
+ workflowName={text("workflowName", "Test Workflow", groupId)}
12
+ workflowDescription={text(
13
+ "workflowDescription",
14
+ "Workflow Description",
15
+ groupId
16
+ )}
17
+ slug={text("slug", "slug", groupId)}
18
+ />
19
+ );
20
+
21
+ const story = page({
22
+ title: "Components|Molecules/WorkflowTile",
23
+ Component: WorkflowTile
24
+ });
25
+ export default story;