@thecb/components 10.12.3-beta.0 → 10.12.3-beta.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.
- package/README.md +0 -4
- package/dist/index.cjs.js +2526 -1617
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.esm.js +2527 -1617
- package/dist/index.esm.js.map +1 -1
- package/package.json +13 -25
- package/src/components/atoms/alert/Alert.stories.js +26 -148
- package/src/components/atoms/badge/Badge.js +2 -2
- package/src/components/atoms/badge/Badge.stories.js +29 -143
- package/src/components/atoms/breadcrumb/Breadcrumb.stories.js +29 -38
- package/src/components/atoms/button-with-action/ButtonWithAction.stories.js +55 -108
- package/src/components/atoms/button-with-link/ButtonWithLink.stories.js +31 -160
- package/src/components/atoms/checkbox/Checkbox.stories.js +29 -148
- package/src/components/atoms/country-dropdown/CountryDropdown.stories.js +27 -61
- package/src/components/atoms/detail/Detail.js +26 -0
- package/src/components/atoms/display-box/DisplayBox.stories.js +21 -65
- package/src/components/atoms/display-card/DisplayCard.stories.js +22 -163
- package/src/components/atoms/dropdown/Dropdown.stories.js +10 -91
- package/src/components/atoms/form-layouts/FormInput.stories.js +26 -212
- package/src/components/atoms/form-select/FormSelect.stories.js +29 -55
- package/src/components/atoms/formatted-address/FormattedAddress.stories.js +27 -133
- package/src/components/atoms/icons/icons.stories.js +116 -0
- package/src/components/atoms/labeled-amount/LabeledAmount.stories.js +34 -110
- package/src/components/atoms/line-item/LineItem.stories.js +22 -89
- package/src/components/atoms/link/Link.stories.js +49 -155
- package/src/components/atoms/loading-line/LoadingLine.js +10 -14
- package/src/components/atoms/loading-line/LoadingLine.stories.js +28 -132
- package/src/components/atoms/nav-footer/NavFooter.stories.js +22 -235
- package/src/components/atoms/nav-header/NavHeader.stories.js +21 -122
- package/src/components/atoms/password-requirements/PasswordRequirements.stories.js +44 -108
- package/src/components/atoms/placeholder/Placeholder.stories.js +36 -164
- package/src/components/atoms/searchable-select/SearchableSelect.stories.js +28 -103
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.stories.js +40 -65
- package/src/components/atoms/table/Table.stories.js +75 -59
- package/src/components/atoms/table/TableRow.js +0 -1
- package/src/components/atoms/title/Title.js +23 -0
- package/src/components/atoms/toggle-switch/ToggleSwitch.stories.js +20 -103
- package/src/components/atoms/toggle-switch/ToggleSwitch.theme.js +5 -8
- package/src/components/molecules/address-form/AddressForm.stories.js +20 -223
- package/src/components/molecules/banner/Banner.stories.js +26 -122
- package/src/components/molecules/change-password-form/ChangePasswordForm.stories.js +19 -203
- package/src/components/molecules/collapsible-section/CollapsibleSection.stories.js +61 -210
- package/src/components/molecules/edit-name-form/EdidNameForm.stories.js +24 -0
- package/src/components/molecules/index.js +0 -1
- package/src/components/molecules/link-card/LinkCard.stories.js +72 -287
- package/src/components/molecules/login-form/LoginForm.stories.js +21 -117
- package/src/components/molecules/modal/Modal.stories.js +128 -342
- package/src/components/molecules/module/Module.stories.js +25 -267
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.js +61 -295
- package/src/components/molecules/multiple-select-filter/{MultipleSelectFilter.oldstories.js → MultipleSelectFilter.stories.js} +1 -1
- package/src/components/molecules/multiple-select-filter/MultipleSelectFilter.styled.js +4 -4
- package/src/components/molecules/multiple-select-filter/__private__/ActionLinkButton.js +24 -0
- package/src/components/molecules/multiple-select-filter/__private__/FilterButton.js +85 -0
- package/src/components/molecules/multiple-select-filter/__private__/FilterDropdown.js +23 -0
- package/src/components/molecules/multiple-select-filter/__private__/FilterableList.js +144 -0
- package/src/components/molecules/multiple-select-filter/__private__/FilterableListItem.js +67 -0
- package/src/components/molecules/multiple-select-filter/__private__/SearchBox.js +38 -0
- package/src/components/molecules/multiple-select-filter/__private__/useKeyboardNavigation.js +84 -0
- package/src/components/molecules/multiple-select-filter/__private__/util.js +31 -0
- package/src/components/molecules/obligation/icons/PropertyPersonalIcon.js +1 -1
- package/src/components/molecules/pagination/Pagination.stories.js +28 -177
- package/src/components/molecules/tabs/Tabs.stories.js +227 -135
- package/src/components/molecules/toast-notification/ToastNotification.stories.js +105 -0
- package/src/hooks/use-outside-click/index.js +4 -5
- package/src/util/index.js +1 -3
- package/src/components/atoms/alert/Alert.mdx +0 -19
- package/src/components/atoms/badge/Badge.mdx +0 -27
- package/src/components/atoms/breadcrumb/Breadcrumb.mdx +0 -21
- package/src/components/atoms/button-with-link/ButtonWithLink.mdx +0 -21
- package/src/components/atoms/card/Card.mdx +0 -41
- package/src/components/atoms/card/Card.stories.js +0 -360
- package/src/components/atoms/checkbox/Checkbox.mdx +0 -15
- package/src/components/atoms/checkbox/Checkbox.oldstories.js +0 -30
- package/src/components/atoms/country-dropdown/CountryDropdown.mdx +0 -36
- package/src/components/atoms/detail/Detail.mdx +0 -32
- package/src/components/atoms/detail/Detail.stories.js +0 -156
- package/src/components/atoms/display-box/DisplayBox.mdx +0 -11
- package/src/components/atoms/display-card/DisplayCard.mdx +0 -13
- package/src/components/atoms/dropdown/Dropdown.mdx +0 -65
- package/src/components/atoms/form-layouts/FormInput.mdx +0 -38
- package/src/components/atoms/form-select/FormSelect.mdx +0 -42
- package/src/components/atoms/formatted-address/FormattedAddress.mdx +0 -13
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.mdx +0 -17
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.stories.js +0 -57
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.mdx +0 -40
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.stories.js +0 -74
- package/src/components/atoms/icons/Icons.mdx +0 -40
- package/src/components/atoms/icons/Icons.stories.js +0 -325
- package/src/components/atoms/labeled-amount/LabeledAmount.mdx +0 -23
- package/src/components/atoms/line-item/LineItem.mdx +0 -28
- package/src/components/atoms/link/Link.mdx +0 -19
- package/src/components/atoms/loading/Loading.mdx +0 -13
- package/src/components/atoms/loading/Loading.stories.js +0 -22
- package/src/components/atoms/loading-line/LoadingLine.mdx +0 -15
- package/src/components/atoms/nav-footer/NavFooter.mdx +0 -15
- package/src/components/atoms/nav-header/NavHeader.mdx +0 -13
- package/src/components/atoms/nav-tabs/NavTabs.mdx +0 -30
- package/src/components/atoms/nav-tabs/NavTabs.stories.js +0 -49
- package/src/components/atoms/password-requirements/PasswordRequirements.mdx +0 -39
- package/src/components/atoms/placeholder/Placeholder.mdx +0 -19
- package/src/components/atoms/searchable-select/SearchableSelect.mdx +0 -44
- package/src/components/atoms/state-province-dropdown/StateProvinceDropdown.mdx +0 -36
- package/src/components/atoms/table/Table.mdx +0 -71
- package/src/components/atoms/table/Table.oldstories.js +0 -84
- package/src/components/atoms/title/Title.mdx +0 -26
- package/src/components/atoms/title/Title.stories.js +0 -144
- package/src/components/atoms/toggle-switch/ToggleSwitch.mdx +0 -17
- package/src/components/atoms/typeahead-input/TypeaheadInput.mdx +0 -13
- package/src/components/atoms/typeahead-input/TypeaheadInput.stories.js +0 -63
- package/src/components/molecules/address-form/AddressForm.mdx +0 -18
- package/src/components/molecules/banner/Banner.mdx +0 -23
- package/src/components/molecules/change-password-form/ChangePasswordForm.mdx +0 -15
- package/src/components/molecules/collapsible-section/CollapsibleSection.mdx +0 -15
- package/src/components/molecules/edit-name-form/EditNameForm.mdx +0 -13
- package/src/components/molecules/edit-name-form/EditNameForm.stories.js +0 -117
- package/src/components/molecules/idle-modal/IdleModal.js +0 -101
- package/src/components/molecules/idle-modal/IdleModal.mdx +0 -17
- package/src/components/molecules/idle-modal/IdleModal.stories.js +0 -180
- package/src/components/molecules/idle-modal/index.d.ts +0 -16
- package/src/components/molecules/idle-modal/index.js +0 -3
- package/src/components/molecules/link-card/LinkCard.mdx +0 -17
- package/src/components/molecules/login-form/LoginForm.mdx +0 -16
- package/src/components/molecules/modal/Modal.mdx +0 -17
- package/src/components/molecules/module/Module.mdx +0 -17
- package/src/components/molecules/obligation/Obligation.mdx +0 -23
- package/src/components/molecules/obligation/Obligation.stories.js +0 -460
- package/src/components/molecules/pagination/Pagination.mdx +0 -15
- package/src/components/molecules/popover/Popover.mdx +0 -15
- package/src/components/molecules/popover/Popover.stories.js +0 -220
- package/src/components/molecules/tabs/Tabs.mdx +0 -17
- package/src/components/molecules/toast-notification/Toast.mdx +0 -15
- package/src/components/molecules/toast-notification/Toast.stories.js +0 -183
- package/src/stories/Button.stories.ts +0 -53
- package/src/stories/Button.tsx +0 -48
- package/src/stories/Configure.mdx +0 -364
- package/src/stories/Header.stories.ts +0 -33
- package/src/stories/Header.tsx +0 -56
- package/src/stories/Page.stories.ts +0 -32
- package/src/stories/Page.tsx +0 -73
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +0 -5
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +0 -15
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +0 -3
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +0 -12
- package/src/stories/assets/youtube.svg +0 -4
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/src/stories/page.css +0 -69
- package/src/util/idleTimerUtils.js +0 -36
- /package/src/components/atoms/add-obligation/{AddObligation.oldstories.js → AddObligation.stories.js} +0 -0
- /package/src/components/atoms/amount-callout/{AmountCallout.oldstories.js → AmountCallout.stories.js} +0 -0
- /package/src/components/atoms/checkbox-list/{CheckboxList.oldstories.js → CheckboxList.stories.js} +0 -0
- /package/src/components/atoms/form-layouts/{FormLayouts.oldstories.js → FormLayouts.stories.js} +0 -0
- /package/src/components/atoms/hamburger-button/{HamburgerButton.oldstories.js → HamburgerButton.stories.js} +0 -0
- /package/src/components/atoms/heading/{Heading.oldstories.js → Heading.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/box-example/{BoxExample.oldstories.js → BoxExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/center-example/{CenterExample.oldstories.js → CenterExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/cluster-example/{ClusterExample.oldstories.js → ClusterExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/cover-example/{CoverExample.oldstories.js → CoverExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/frame-example/{FrameExample.oldstories.js → FrameExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/grid-example/{GridExample.oldstories.js → GridExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/imposter-example/{ImposterExample.oldstories.js → ImposterExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/motion-example/{MotionExample.oldstories.js → MotionExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/reel-example/{ReelExample.oldstories.js → ReelExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/sidebar-example/{SidebarExample.oldstories.js → SidebarExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/stack-example/{StackExample.oldstories.js → StackExample.stories.js} +0 -0
- /package/src/components/atoms/layouts/examples/switcher-example/{SwitcherExample.oldstories.js → SwitcherExample.stories.js} +0 -0
- /package/src/components/atoms/paragraph/{Paragraph.oldstories.js → Paragraph.stories.js} +0 -0
- /package/src/components/atoms/processing-fee/{ProcessingFee.oldstories.js → ProcessingFee.stories.js} +0 -0
- /package/src/components/atoms/search/{Search.oldstories.js → Search.stories.js} +0 -0
- /package/src/components/atoms/solid-divider/{SolidDivider.oldstories.js → SolidDivider.stories.js} +0 -0
- /package/src/components/atoms/sortable-table-heading/{SortableTableHeading.oldstories.js → SortableTableHeading.stories.js} +0 -0
- /package/src/components/atoms/spinner/{Spinner.oldstories.js → Spinner.stories.js} +0 -0
- /package/src/components/atoms/tab/{Tab.oldstories.js → Tab.stories.js} +0 -0
- /package/src/components/atoms/text/{Text.oldstories.js → Text.stories.js} +0 -0
- /package/src/components/atoms/typeahead-input/{TypeaheadIinput.oldstories.js → TypeaheadIinput.stories.js} +0 -0
- /package/src/components/atoms/wallet-name/{WalletName.oldstories.js → WalletName.stories.js} +0 -0
- /package/src/components/molecules/account-and-routing-modal/{AccountAndRoutingModal.oldstories.js → AccountAndRoutingModal.stories.js} +0 -0
- /package/src/components/molecules/editable-list/{EditableList.oldstories.js → EditableList.stories.js} +0 -0
- /package/src/components/molecules/email-form/{EmailForm.oldstories.js → EmailForm.stories.js} +0 -0
- /package/src/components/molecules/forgot-password-form/{ForgotPasswordForm.oldstories.js → ForgotPasswordForm.stories.js} +0 -0
- /package/src/components/molecules/highlight-tab-row/{HighlightTabRow.oldstories.js → HighlightTabRow.stories.js} +0 -0
- /package/src/components/molecules/obligation/modules/{AmountModule.oldstories.js → AmountModule.stories.js} +0 -0
- /package/src/components/molecules/payment-button-bar/{PaymentButtonBar.oldstories.js → PaymentButtonBar.stories.js} +0 -0
- /package/src/components/molecules/payment-details/{PaymentDetails.oldstories.js → PaymentDetails.stories.js} +0 -0
- /package/src/components/molecules/payment-form-ach/{PaymentFormACH.oldstories.js → PaymentFormACH.stories.js} +0 -0
- /package/src/components/molecules/payment-form-card/{PaymentFormCard.oldstories.js → PaymentFormCard.stories.js} +0 -0
- /package/src/components/molecules/periscope-dashboard-iframe/{PeriscopeDashBoardIframe.oldstories.js → PeriscopeDashBoardIframe.stories.js} +0 -0
- /package/src/components/molecules/phone-form/{PhoneForm.oldstories.js → PhoneForm.stories.js} +0 -0
- /package/src/components/molecules/popup-menu/{PopupMenu.oldstories.js → PopupMenu.stories.js} +0 -0
- /package/src/components/molecules/radio-group/{RadioGroup.oldstories.js → RadioGroup.stories.js} +0 -0
- /package/src/components/molecules/radio-section/{RadioSection.oldstories.js → RadioSection.stories.js} +0 -0
- /package/src/components/molecules/registration-form/{RegistrationForm.oldstories.js → RegistrationForm.stories.js} +0 -0
- /package/src/components/molecules/reset-confirmation-form/{ResetConfirmationForm.oldstories.js → ResetConfirmationForm.stories.js} +0 -0
- /package/src/components/molecules/reset-password-form/{ResetPasswordForm.oldstories.js → ResetPasswordForm.stories.js} +0 -0
- /package/src/components/molecules/reset-password-success/{ResetPasswordSuccess.oldstories.js → ResetPasswordSuccess.stories.js} +0 -0
- /package/src/components/molecules/tab-sidebar/{TabSidebar.oldstories.js → TabSidebar.stories.js} +0 -0
- /package/src/components/molecules/terms-and-conditions/{TermsAndConditions.oldstories.js → TermsAndConditions.stories.js} +0 -0
- /package/src/components/molecules/terms-and-conditions-modal/{TermsAndConditionsModal.oldstories.js → TermsAndConditionsModal.stories.js} +0 -0
- /package/src/components/molecules/workflow-tile/{WorkflowTile.oldstories.js → WorkflowTile.stories.js} +0 -0
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Obligation from "./Obligation";
|
|
3
|
-
import { fn } from "@storybook/test";
|
|
4
|
-
import { Box } from "../../atoms/layouts";
|
|
5
|
-
|
|
6
|
-
const meta = {
|
|
7
|
-
title: "Molecules/Obligation",
|
|
8
|
-
component: Obligation,
|
|
9
|
-
parameters: {
|
|
10
|
-
layout: "centered"
|
|
11
|
-
},
|
|
12
|
-
tags: ["!autodocs"],
|
|
13
|
-
args: {
|
|
14
|
-
config: undefined,
|
|
15
|
-
obligations: undefined,
|
|
16
|
-
actions: undefined,
|
|
17
|
-
autoPayEnabled: false,
|
|
18
|
-
autoPayAvailable: false,
|
|
19
|
-
handleAutopayAction: fn(),
|
|
20
|
-
deactivatePaymentSchedule: fn(),
|
|
21
|
-
autoPaySchedule: undefined,
|
|
22
|
-
paymentPlanSchedule: undefined,
|
|
23
|
-
navigateToSettings: fn(),
|
|
24
|
-
isPaymentPlan: false,
|
|
25
|
-
nextAutopayDate: undefined,
|
|
26
|
-
obligationAssocID: undefined,
|
|
27
|
-
dueDate: undefined,
|
|
28
|
-
agencyName: undefined,
|
|
29
|
-
inactive: false,
|
|
30
|
-
inactiveLookupTitle: "",
|
|
31
|
-
inactiveLookupInput: "Account",
|
|
32
|
-
inactiveLookupValue: "",
|
|
33
|
-
isInCustomerManagement: false
|
|
34
|
-
},
|
|
35
|
-
argTypes: {
|
|
36
|
-
config: {
|
|
37
|
-
description:
|
|
38
|
-
"Config object that helps set icons and description/subdescription for obligation. Retrieved from FCS.",
|
|
39
|
-
table: {
|
|
40
|
-
type: { summary: "object" },
|
|
41
|
-
defaultValue: { summary: undefined }
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
obligations: {
|
|
45
|
-
description: "Array of obligation objects",
|
|
46
|
-
table: {
|
|
47
|
-
type: { summary: "array" },
|
|
48
|
-
defaultValue: { summary: undefined }
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
actions: {
|
|
52
|
-
description:
|
|
53
|
-
"Collection of profile-specific Redux actions that are used by the PaymentDetails submodule",
|
|
54
|
-
table: {
|
|
55
|
-
type: { summary: "object" },
|
|
56
|
-
defaultValue: { summary: undefined }
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
autoPayEnabled: {
|
|
60
|
-
description: "Whether the obligation is currently set up for autopay",
|
|
61
|
-
table: {
|
|
62
|
-
type: { summary: "boolean" },
|
|
63
|
-
defaultValue: { summary: false }
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
autoPayAvailable: {
|
|
67
|
-
description: "Whether the obligation supports autopay",
|
|
68
|
-
table: {
|
|
69
|
-
type: { summary: "boolean" },
|
|
70
|
-
defaultValue: { summary: false }
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
handleAutopayAction: {
|
|
74
|
-
description: "Function run when user toggles autoapy button",
|
|
75
|
-
table: {
|
|
76
|
-
type: { summary: "function" },
|
|
77
|
-
defaultValue: { summary: undefined }
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
deactivatePaymentSchedule: {
|
|
81
|
-
description: "Function run when user disabled autopay",
|
|
82
|
-
table: {
|
|
83
|
-
type: { summary: "function" },
|
|
84
|
-
defaultValue: { summary: undefined }
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
autoPaySchedule: {
|
|
88
|
-
description: "Schedule object for autopay",
|
|
89
|
-
table: {
|
|
90
|
-
type: { summary: "object" },
|
|
91
|
-
defaultValue: { summary: undefined }
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
paymentPlanSchedule: {
|
|
95
|
-
description: "Schedule object for payment plan. Currently unused.",
|
|
96
|
-
table: {
|
|
97
|
-
type: { summary: "object" },
|
|
98
|
-
defaultValue: { summary: undefined }
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
navigateToSettings: {
|
|
102
|
-
description:
|
|
103
|
-
"Function that navigates a user to the settings page on the profile",
|
|
104
|
-
table: {
|
|
105
|
-
type: { summary: "function" },
|
|
106
|
-
defaultValue: { summary: undefined }
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
isPaymentPlan: {
|
|
110
|
-
description:
|
|
111
|
-
"Whether the obligation is a payment plan type. Currently unused.",
|
|
112
|
-
table: {
|
|
113
|
-
type: { summary: "boolean" },
|
|
114
|
-
defaultValue: { summary: false }
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
nextAutopayDate: {
|
|
118
|
-
description: "The date the next autopay will run",
|
|
119
|
-
table: {
|
|
120
|
-
type: { summary: "string" },
|
|
121
|
-
defaultValue: { summary: undefined }
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
obligationAssocID: {
|
|
125
|
-
description:
|
|
126
|
-
"The ID of the payment schedule associated with this obligation",
|
|
127
|
-
table: {
|
|
128
|
-
type: { summary: "string" },
|
|
129
|
-
defaultValue: { summary: undefined }
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
agencyName: {
|
|
133
|
-
description:
|
|
134
|
-
"The name of the agency for this obligation. Used to populate inactive obligation descriptions.",
|
|
135
|
-
table: {
|
|
136
|
-
type: { summary: "string" },
|
|
137
|
-
defaultValue: { summary: undefined }
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
inactive: {
|
|
141
|
-
description: "Whether the obligation is in an inactive state.",
|
|
142
|
-
table: {
|
|
143
|
-
type: { summary: "boolean" },
|
|
144
|
-
defaultValue: { summary: false }
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
inactiveLookupTitle: {
|
|
148
|
-
description: "String used in the description of an inactive obligation",
|
|
149
|
-
table: {
|
|
150
|
-
type: { summary: "string" },
|
|
151
|
-
defaultValue: { summary: "" }
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
inactiveLookupInput: {
|
|
155
|
-
description: "Type of obligation, used for inactive obligations",
|
|
156
|
-
table: {
|
|
157
|
-
type: { summary: "string" },
|
|
158
|
-
defaultValue: { summary: "Account" }
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
inactiveLookupValue: {
|
|
162
|
-
description:
|
|
163
|
-
"Account number or other information returned from lookup for inactive obligations",
|
|
164
|
-
table: {
|
|
165
|
-
type: { summary: "string" },
|
|
166
|
-
defaultValue: { summary: undefined }
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
isInCustomerManagement: {
|
|
170
|
-
description:
|
|
171
|
-
"Whether the user is a customer management user impersonating a profile. If true, certain controls are disabled.",
|
|
172
|
-
table: {
|
|
173
|
-
type: { summary: "boolean" },
|
|
174
|
-
defaultValue: { summary: false }
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
export default meta;
|
|
181
|
-
|
|
182
|
-
const obligationConfig = {
|
|
183
|
-
amountValue: "amountDue",
|
|
184
|
-
collection: true,
|
|
185
|
-
description: "Cityville Water Management",
|
|
186
|
-
details: {
|
|
187
|
-
collectionDetails: {
|
|
188
|
-
City: "city",
|
|
189
|
-
State: "state",
|
|
190
|
-
"Street Address": "street_address_line_1",
|
|
191
|
-
"Zip Code": "zip_code"
|
|
192
|
-
},
|
|
193
|
-
collectionDetailsList: [
|
|
194
|
-
{
|
|
195
|
-
attribute: "name",
|
|
196
|
-
label: "Name"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
attribute: "street_address_line_1",
|
|
200
|
-
label: "Street Address"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
attribute: "city",
|
|
204
|
-
label: "City"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
attribute: "state",
|
|
208
|
-
label: "State"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
attribute: "zip_code",
|
|
212
|
-
label: "Zip Code"
|
|
213
|
-
}
|
|
214
|
-
],
|
|
215
|
-
description: "Cityville Water Management",
|
|
216
|
-
obligationDetails: {
|
|
217
|
-
Account: "account_number",
|
|
218
|
-
Owner: "account_owner",
|
|
219
|
-
Status: "status",
|
|
220
|
-
"Utility Type": "utility_type"
|
|
221
|
-
},
|
|
222
|
-
subDescription: ["Account", "%account_number%"]
|
|
223
|
-
},
|
|
224
|
-
displayName: "Office of Water Management",
|
|
225
|
-
hasPaperlessBilling: true,
|
|
226
|
-
icon: [
|
|
227
|
-
"ACCOUNTS_UTILITY_ELECTRIC",
|
|
228
|
-
"ACCOUNTS_UTILITY_GAS",
|
|
229
|
-
"ACCOUNTS_UTILITY_GARBAGE",
|
|
230
|
-
"ACCOUNTS_UTILITY_WATER"
|
|
231
|
-
],
|
|
232
|
-
iconDefault: "ACCOUNTS_UTILITY_WATER",
|
|
233
|
-
iconMap: {
|
|
234
|
-
Water: "ACCOUNTS_UTILITY_WATER"
|
|
235
|
-
},
|
|
236
|
-
iconValue: "utility_type",
|
|
237
|
-
obligationSlug: "cityville-water",
|
|
238
|
-
paperlessBilling: {
|
|
239
|
-
confirmationContent: "",
|
|
240
|
-
infoContent: ""
|
|
241
|
-
},
|
|
242
|
-
paymentAttributes: {
|
|
243
|
-
accountId: "account_number",
|
|
244
|
-
amount: "amountDue",
|
|
245
|
-
customAttributes: {
|
|
246
|
-
account_city: "account_city",
|
|
247
|
-
account_number: "account_number",
|
|
248
|
-
account_owner: "account_owner",
|
|
249
|
-
account_street_address: "account_street_address",
|
|
250
|
-
account_zip_code: "account_zip_code",
|
|
251
|
-
utility_type: "utility_type"
|
|
252
|
-
},
|
|
253
|
-
description: ["Account", "%account_number%"],
|
|
254
|
-
subDescription: ["%account_owner%"]
|
|
255
|
-
},
|
|
256
|
-
subDescription: ["Account", "%account_number%"],
|
|
257
|
-
type: "ACCOUNT"
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
export const ActiveObligation = {
|
|
261
|
-
args: {
|
|
262
|
-
config: obligationConfig,
|
|
263
|
-
obligations: [
|
|
264
|
-
{
|
|
265
|
-
allowedPaymentInstruments: ["CASH", "CREDIT_CARD", "BANK_ACCOUNT"],
|
|
266
|
-
amountDue: 5438,
|
|
267
|
-
customAttributes: {
|
|
268
|
-
account_number: "1006",
|
|
269
|
-
city: "Cityville",
|
|
270
|
-
client_slug: "Cityville",
|
|
271
|
-
customer_name: "Shadout Mapes",
|
|
272
|
-
due_date: "2024-09-01T12:00:00",
|
|
273
|
-
invoice_number: "101006.0",
|
|
274
|
-
line_item_description: "Shadout Mapes",
|
|
275
|
-
line_item_sub_description: "1006",
|
|
276
|
-
name: "Shadout Mapes",
|
|
277
|
-
service_type: "water",
|
|
278
|
-
state: "North Carolina",
|
|
279
|
-
street_address_line_1: "23145 O'Hara Wells",
|
|
280
|
-
sub_client_slug: "cityville-water",
|
|
281
|
-
total_due_amount: "5438.0",
|
|
282
|
-
utility_type: "water",
|
|
283
|
-
zip_code: "79221"
|
|
284
|
-
},
|
|
285
|
-
id: "1006",
|
|
286
|
-
kind: "FEE",
|
|
287
|
-
description: "Cityville Water Management",
|
|
288
|
-
subDescription: "Account: 1006",
|
|
289
|
-
amountValue: 5438,
|
|
290
|
-
details: {
|
|
291
|
-
description: "Cityville Water Management",
|
|
292
|
-
subDescription: "Account: 1006"
|
|
293
|
-
},
|
|
294
|
-
paymentAttributes: {
|
|
295
|
-
description: "Account: 1006",
|
|
296
|
-
subDescription: "",
|
|
297
|
-
amount: 5438
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
],
|
|
301
|
-
actions: {
|
|
302
|
-
createPaymentFromProfile: fn(),
|
|
303
|
-
setDetailedObligation: fn(),
|
|
304
|
-
navigateToDetailedObligation: fn(),
|
|
305
|
-
deleteObligationAssoc: fn()
|
|
306
|
-
},
|
|
307
|
-
autoPayEnabled: true,
|
|
308
|
-
autoPayAvailable: true,
|
|
309
|
-
handleAutopayAction: fn(),
|
|
310
|
-
navigateToSettings: fn(),
|
|
311
|
-
deactivatePaymentSchedule: fn(),
|
|
312
|
-
isMobile: false,
|
|
313
|
-
nextAutopayDate: "On",
|
|
314
|
-
obligationAssocID: "046d66b9-5cea-4ccf-895a-97f21f314b72",
|
|
315
|
-
dueDate: "2024-09-01",
|
|
316
|
-
agencyName: "Water",
|
|
317
|
-
isInCustomerManagement: false
|
|
318
|
-
},
|
|
319
|
-
render: args => (
|
|
320
|
-
<Box minWidth="800px">
|
|
321
|
-
<Obligation {...args} />
|
|
322
|
-
</Box>
|
|
323
|
-
)
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
export const InactiveObligation = {
|
|
327
|
-
args: {
|
|
328
|
-
config: { ...obligationConfig, icon: "ACCOUNTS_HEALTH" },
|
|
329
|
-
obligations: [
|
|
330
|
-
{
|
|
331
|
-
allowedPaymentInstruments: ["CASH", "CREDIT_CARD", "BANK_ACCOUNT"],
|
|
332
|
-
amountDue: 5438,
|
|
333
|
-
customAttributes: {
|
|
334
|
-
account_number: "1006",
|
|
335
|
-
city: "Cityville",
|
|
336
|
-
client_slug: "Cityville",
|
|
337
|
-
customer_name: "Shadout Mapes",
|
|
338
|
-
due_date: "2024-09-01T12:00:00",
|
|
339
|
-
invoice_number: "101006.0",
|
|
340
|
-
line_item_description: "Shadout Mapes",
|
|
341
|
-
line_item_sub_description: "1006",
|
|
342
|
-
name: "Shadout Mapes",
|
|
343
|
-
service_type: "water",
|
|
344
|
-
state: "North Carolina",
|
|
345
|
-
street_address_line_1: "23145 O'Hara Wells",
|
|
346
|
-
sub_client_slug: "cityville-water",
|
|
347
|
-
total_due_amount: "5438.0",
|
|
348
|
-
utility_type: "water",
|
|
349
|
-
zip_code: "79221"
|
|
350
|
-
},
|
|
351
|
-
id: "1006",
|
|
352
|
-
kind: "FEE",
|
|
353
|
-
description: "Cityville Water Management",
|
|
354
|
-
subDescription: "Account: 1006",
|
|
355
|
-
amountValue: 5438,
|
|
356
|
-
details: {
|
|
357
|
-
description: "Cityville Water Management",
|
|
358
|
-
subDescription: "Account: 1006"
|
|
359
|
-
},
|
|
360
|
-
paymentAttributes: {
|
|
361
|
-
description: "Account: 1006",
|
|
362
|
-
subDescription: "",
|
|
363
|
-
amount: 5438
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
],
|
|
367
|
-
actions: {
|
|
368
|
-
createPaymentFromProfile: fn(),
|
|
369
|
-
setDetailedObligation: fn(),
|
|
370
|
-
navigateToDetailedObligation: fn(),
|
|
371
|
-
deleteObligationAssoc: fn()
|
|
372
|
-
},
|
|
373
|
-
autoPayEnabled: false,
|
|
374
|
-
autoPayAvailable: true,
|
|
375
|
-
handleAutopayAction: fn(),
|
|
376
|
-
navigateToSettings: fn(),
|
|
377
|
-
deactivatePaymentSchedule: fn(),
|
|
378
|
-
isMobile: false,
|
|
379
|
-
nextAutopayDate: "",
|
|
380
|
-
obligationAssocID: "046d66b9-5cea-4ccf-895a-97f21f314b72",
|
|
381
|
-
dueDate: "2024-09-01",
|
|
382
|
-
agencyName: "Health Service System",
|
|
383
|
-
isInCustomerManagement: false,
|
|
384
|
-
inactive: true,
|
|
385
|
-
inactiveLookupInput: undefined,
|
|
386
|
-
inactiveLookupTitle: "Health Service System",
|
|
387
|
-
inactiveLookupValue: "012856"
|
|
388
|
-
},
|
|
389
|
-
render: args => (
|
|
390
|
-
<Box minWidth="800px">
|
|
391
|
-
<Obligation {...args} />
|
|
392
|
-
</Box>
|
|
393
|
-
)
|
|
394
|
-
};
|
|
395
|
-
|
|
396
|
-
export const CustomerManagementObligation = {
|
|
397
|
-
args: {
|
|
398
|
-
config: obligationConfig,
|
|
399
|
-
obligations: [
|
|
400
|
-
{
|
|
401
|
-
allowedPaymentInstruments: ["CASH", "CREDIT_CARD", "BANK_ACCOUNT"],
|
|
402
|
-
amountDue: 5438,
|
|
403
|
-
customAttributes: {
|
|
404
|
-
account_number: "1006",
|
|
405
|
-
city: "Cityville",
|
|
406
|
-
client_slug: "Cityville",
|
|
407
|
-
customer_name: "Shadout Mapes",
|
|
408
|
-
due_date: "2024-09-01T12:00:00",
|
|
409
|
-
invoice_number: "101006.0",
|
|
410
|
-
line_item_description: "Shadout Mapes",
|
|
411
|
-
line_item_sub_description: "1006",
|
|
412
|
-
name: "Shadout Mapes",
|
|
413
|
-
service_type: "water",
|
|
414
|
-
state: "North Carolina",
|
|
415
|
-
street_address_line_1: "23145 O'Hara Wells",
|
|
416
|
-
sub_client_slug: "cityville-water",
|
|
417
|
-
total_due_amount: "5438.0",
|
|
418
|
-
utility_type: "water",
|
|
419
|
-
zip_code: "79221"
|
|
420
|
-
},
|
|
421
|
-
id: "1006",
|
|
422
|
-
kind: "FEE",
|
|
423
|
-
description: "Cityville Water Management",
|
|
424
|
-
subDescription: "Account: 1006",
|
|
425
|
-
amountValue: 5438,
|
|
426
|
-
details: {
|
|
427
|
-
description: "Cityville Water Management",
|
|
428
|
-
subDescription: "Account: 1006"
|
|
429
|
-
},
|
|
430
|
-
paymentAttributes: {
|
|
431
|
-
description: "Account: 1006",
|
|
432
|
-
subDescription: "",
|
|
433
|
-
amount: 5438
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
actions: {
|
|
438
|
-
createPaymentFromProfile: fn(),
|
|
439
|
-
setDetailedObligation: fn(),
|
|
440
|
-
navigateToDetailedObligation: fn(),
|
|
441
|
-
deleteObligationAssoc: fn()
|
|
442
|
-
},
|
|
443
|
-
autoPayEnabled: false,
|
|
444
|
-
autoPayAvailable: true,
|
|
445
|
-
handleAutopayAction: fn(),
|
|
446
|
-
navigateToSettings: fn(),
|
|
447
|
-
deactivatePaymentSchedule: fn(),
|
|
448
|
-
isMobile: false,
|
|
449
|
-
nextAutopayDate: "",
|
|
450
|
-
obligationAssocID: "046d66b9-5cea-4ccf-895a-97f21f314b72",
|
|
451
|
-
dueDate: "2024-09-01",
|
|
452
|
-
agencyName: "Water",
|
|
453
|
-
isInCustomerManagement: true
|
|
454
|
-
},
|
|
455
|
-
render: args => (
|
|
456
|
-
<Box minWidth="800px">
|
|
457
|
-
<Obligation {...args} />
|
|
458
|
-
</Box>
|
|
459
|
-
)
|
|
460
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Canvas, Meta, Title, Story, Controls } from '@storybook/blocks';
|
|
2
|
-
|
|
3
|
-
import * as PaginationStories from './Pagination.stories.js';
|
|
4
|
-
|
|
5
|
-
<Meta of={PaginationStories} />
|
|
6
|
-
|
|
7
|
-
<Title />
|
|
8
|
-
|
|
9
|
-
Pagination renders a control panel that can be used to interact with paginated tables of data. The component takes some props to customize the look of the controls, as well as callback functions to run when a user interacts with the previous, next, and numerical page buttons. The Pagination component should also be supplied with a number to indicate the current page the user is on as well as the total number of pages.
|
|
10
|
-
|
|
11
|
-
<Controls />
|
|
12
|
-
|
|
13
|
-
<div style={{ marginBottom: "2em"}}>
|
|
14
|
-
<Story />
|
|
15
|
-
</div>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Canvas, Meta, Title, Story, Controls } from '@storybook/blocks';
|
|
2
|
-
|
|
3
|
-
import * as PopoverStories from './Popover.stories.js';
|
|
4
|
-
|
|
5
|
-
<Meta of={PopoverStories} />
|
|
6
|
-
|
|
7
|
-
<Title />
|
|
8
|
-
|
|
9
|
-
The Popover is a fully accessible widget to display additional information when a user hovers over a specified trigger element. The trigger can either be text supplied using the `triggerText` prop, or a custom Icon component supplied using the `icon` prop.
|
|
10
|
-
|
|
11
|
-
The Popover can be positioned to appear anywhere around the trigger element using the position props. Content and style of the Popover are customizable.
|
|
12
|
-
|
|
13
|
-
<Controls />
|
|
14
|
-
|
|
15
|
-
<Story />
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import Popover from "./Popover";
|
|
2
|
-
import AccountsAddIcon from "../../atoms/icons/AccountsAddIcon";
|
|
3
|
-
import {
|
|
4
|
-
ATHENS_GREY,
|
|
5
|
-
CHARADE_GREY,
|
|
6
|
-
CURIOUS_BLUE,
|
|
7
|
-
ONAHAU_BLUE
|
|
8
|
-
} from "../../../constants/colors";
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
title: "Molecules/Popover",
|
|
12
|
-
component: Popover,
|
|
13
|
-
tags: ["!autodocs"],
|
|
14
|
-
parameters: {
|
|
15
|
-
layout: "centered",
|
|
16
|
-
controls: { expanded: true }
|
|
17
|
-
},
|
|
18
|
-
args: {
|
|
19
|
-
triggerText: "",
|
|
20
|
-
content: "",
|
|
21
|
-
hasIcon: false,
|
|
22
|
-
icon: undefined,
|
|
23
|
-
iconHelpText: "",
|
|
24
|
-
popoverID: 0,
|
|
25
|
-
popoverFocus: false,
|
|
26
|
-
extraStyles: undefined,
|
|
27
|
-
textExtraStyles: undefined,
|
|
28
|
-
minWidth: "250px",
|
|
29
|
-
maxWidth: "300px",
|
|
30
|
-
height: "auto",
|
|
31
|
-
position: undefined,
|
|
32
|
-
arrowPosition: undefined,
|
|
33
|
-
arrowDirection: "down",
|
|
34
|
-
transform: "none",
|
|
35
|
-
buttonExtraStyles: undefined,
|
|
36
|
-
backgroundColor: "white",
|
|
37
|
-
borderColor: "rgba(255, 255, 255, 0.85)",
|
|
38
|
-
popoverExtraStyles: undefined
|
|
39
|
-
},
|
|
40
|
-
argTypes: {
|
|
41
|
-
triggerText: {
|
|
42
|
-
description:
|
|
43
|
-
"Text element that popover is anchored to. Only used if hasIcon is false.",
|
|
44
|
-
table: {
|
|
45
|
-
type: { summary: "string" },
|
|
46
|
-
defaultValue: { summary: "" }
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
content: {
|
|
50
|
-
description: "Content of the popover",
|
|
51
|
-
table: {
|
|
52
|
-
type: { summary: "string" },
|
|
53
|
-
defaultValue: { summary: "" }
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
hasIcon: {
|
|
57
|
-
description:
|
|
58
|
-
"Whether an icon is the trigger for the popover, instead of text",
|
|
59
|
-
table: {
|
|
60
|
-
type: { summary: "boolean" },
|
|
61
|
-
defaultValue: { summary: false }
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
icon: {
|
|
65
|
-
description:
|
|
66
|
-
"The icon component to display. Requires hasIcon to be true.",
|
|
67
|
-
table: {
|
|
68
|
-
type: { summary: "React Component" },
|
|
69
|
-
defaultValue: { summary: undefined }
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
iconHelpText: {
|
|
73
|
-
description: "Accessible description of the icon",
|
|
74
|
-
table: {
|
|
75
|
-
type: { summary: "string" },
|
|
76
|
-
defaultValue: { summary: undefined }
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
popoverID: {
|
|
80
|
-
description:
|
|
81
|
-
"ID value for popover. Use if displaying multiple popovers on the same page.",
|
|
82
|
-
table: {
|
|
83
|
-
type: { summary: "number" },
|
|
84
|
-
defaultValue: { summary: 0 }
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
popoverFocus: {
|
|
88
|
-
description: "Whether focus should transfer to popover when it opens",
|
|
89
|
-
table: {
|
|
90
|
-
type: { summary: "boolean" },
|
|
91
|
-
defaultValue: { summary: false }
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
extraStyles: {
|
|
95
|
-
description:
|
|
96
|
-
"Extra CSS styles to apply to the wrapper component around the trigger and popover",
|
|
97
|
-
table: {
|
|
98
|
-
type: { summary: "CSS string" },
|
|
99
|
-
defaultValue: { summary: undefined }
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
textExtraStyles: {
|
|
103
|
-
description: "Extra styles to apply to the text trigger of the popover",
|
|
104
|
-
table: {
|
|
105
|
-
type: { summary: "CSS string" },
|
|
106
|
-
defaultValue: { summary: undefined }
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
minWidth: {
|
|
110
|
-
description: "Minimum width of the popover component",
|
|
111
|
-
table: {
|
|
112
|
-
type: { summary: "string" },
|
|
113
|
-
defaultValue: { summary: "250px" }
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
maxWidth: {
|
|
117
|
-
description: "Maximum width of the popover component",
|
|
118
|
-
table: {
|
|
119
|
-
type: { summary: "string" },
|
|
120
|
-
defaultValue: { summary: "300px" }
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
height: {
|
|
124
|
-
description: "Height of the popover component. Default sizes to content.",
|
|
125
|
-
table: {
|
|
126
|
-
type: { summary: "string" },
|
|
127
|
-
defaultValue: { summary: "auto" }
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
position: {
|
|
131
|
-
description:
|
|
132
|
-
"Object containing values for top/right/bottom/left position of popover relative to trigger",
|
|
133
|
-
table: {
|
|
134
|
-
type: { summary: "Object" },
|
|
135
|
-
defaultValue: { summary: undefined }
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
arrowPosition: {
|
|
139
|
-
description:
|
|
140
|
-
"Object containing values for arrowTop/arrowRight/arrowBottom/arrowLeft position of arrow on popover",
|
|
141
|
-
table: {
|
|
142
|
-
type: { summary: "Object" },
|
|
143
|
-
defaultValue: { summary: undefined }
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
arrowDirection: {
|
|
147
|
-
description: "Direction the popover arrow points",
|
|
148
|
-
table: {
|
|
149
|
-
type: { summary: "string" },
|
|
150
|
-
defaultValue: { summary: "down" }
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
transform: {
|
|
154
|
-
description: "CSS transform to apply to popover",
|
|
155
|
-
table: {
|
|
156
|
-
type: { summary: "string" },
|
|
157
|
-
defaultValue: { summary: undefined }
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
buttonExtraStyles: {
|
|
161
|
-
description:
|
|
162
|
-
"Extra styles to apply to the button that wraps popover trigger",
|
|
163
|
-
table: {
|
|
164
|
-
type: { summary: "string" },
|
|
165
|
-
defaultValue: { summary: undefined }
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
backgroundColor: {
|
|
169
|
-
description: "Background color of the popover",
|
|
170
|
-
table: {
|
|
171
|
-
type: { summary: "string" },
|
|
172
|
-
defaultValue: { summary: "white" }
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
borderColor: {
|
|
176
|
-
description: "Color of the popover arrow",
|
|
177
|
-
table: {
|
|
178
|
-
type: { summary: "string" },
|
|
179
|
-
defaultValue: { summary: "rgba(255, 255, 255, 0.85)" }
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
popoverExtraStyles: {
|
|
183
|
-
description: "Extra styles to apply to the popover",
|
|
184
|
-
table: {
|
|
185
|
-
type: { summary: "string" },
|
|
186
|
-
defaultValue: { summary: undefined }
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
export const BasicPopover = {
|
|
193
|
-
args: {
|
|
194
|
-
triggerText: "Help",
|
|
195
|
-
content:
|
|
196
|
-
"Contact support at 1-800-CTY-VILL for help with your account balance."
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
export const IconPopover = {
|
|
201
|
-
args: {
|
|
202
|
-
hasIcon: true,
|
|
203
|
-
icon: AccountsAddIcon,
|
|
204
|
-
content: "Search for and add a new account to your profile",
|
|
205
|
-
transform: "skew(15deg, 15deg);"
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
export const UnderneathPopover = {
|
|
210
|
-
args: {
|
|
211
|
-
triggerText: "What's this?",
|
|
212
|
-
content: "Popovers can be positioned anywhere around the trigger",
|
|
213
|
-
position: { top: "50px", right: "50%", left: "50%" },
|
|
214
|
-
arrowPosition: { arrowRight: "85%", arrowBottom: "100%" },
|
|
215
|
-
height: "75px",
|
|
216
|
-
arrowDirection: "up",
|
|
217
|
-
backgroundColor: `${ONAHAU_BLUE}`,
|
|
218
|
-
borderColor: `${CURIOUS_BLUE}`
|
|
219
|
-
}
|
|
220
|
-
};
|