@thecb/components 10.5.2-beta.0 → 10.6.0-beta.0

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 (31) hide show
  1. package/dist/index.cjs.js +288 -589
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +288 -587
  4. package/dist/index.esm.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/components/atoms/icons/.DS_Store +0 -0
  7. package/src/components/atoms/icons/PropertiesAddIcon.js +0 -1
  8. package/src/components/atoms/icons/icons.stories.js +1 -9
  9. package/src/components/atoms/icons/index.js +1 -7
  10. package/src/components/atoms/index.js +1 -0
  11. package/src/components/atoms/placeholder/Placeholder.js +26 -85
  12. package/src/components/atoms/placeholder/Placeholder.stories.js +0 -2
  13. package/src/components/atoms/placeholder/Placeholder.theme.js +2 -8
  14. package/src/components/atoms/wallet-name/WalletName.js +78 -0
  15. package/src/components/atoms/wallet-name/WalletName.stories.js +22 -0
  16. package/src/components/atoms/wallet-name/WalletName.theme.js +16 -0
  17. package/src/components/atoms/wallet-name/index.d.ts +12 -0
  18. package/src/components/atoms/wallet-name/index.js +3 -0
  19. package/src/components/molecules/editable-list/EditableList.js +2 -4
  20. package/src/components/molecules/editable-list/EditableList.stories.js +3 -1
  21. package/src/components/molecules/modal/Modal.stories.js +0 -1
  22. package/src/components/molecules/modal/ModalControlV2.js +2 -17
  23. package/src/components/molecules/modal/__private__/CancelButton.js +1 -2
  24. package/src/components/molecules/modal/__private__/ContinueButton.js +1 -2
  25. package/src/components/molecules/modal/__private__/index.d.ts +0 -13
  26. package/src/components/molecules/modal/__private__/index.js +0 -1
  27. package/src/constants/style_constants.js +1 -2
  28. package/src/components/atoms/icons/DisabledAccountsAddIcon.js +0 -200
  29. package/src/components/atoms/icons/DisabledPaymentMethodsAddIcon.js +0 -62
  30. package/src/components/atoms/icons/DisabledPropertiesAddIcon.js +0 -54
  31. package/src/components/molecules/modal/__private__/CloseIconButton.js +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "10.5.2-beta.0",
3
+ "version": "10.6.0-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
2
  import { fallbackValues } from "./Icons.theme";
3
3
  import { themeComponent } from "../../../util/themeUtils";
4
-
5
4
  const PropertiesAddIcon = ({ themeValues }) => {
6
5
  return (
7
6
  <svg width={100} height={100} viewBox="0 0 84 100">
@@ -42,10 +42,7 @@ import {
42
42
  KebabMenuIcon,
43
43
  MultiCartIcon,
44
44
  CloseIcon,
45
- TrashIconV2,
46
- DisabledPropertiesAddIcon,
47
- DisabledAccountsAddIcon,
48
- DisabledPaymentMethodsAddIcon
45
+ TrashIconV2
49
46
  } from "./index";
50
47
 
51
48
  const story = page({
@@ -95,8 +92,3 @@ export const kebabMenuIcon = () => <KebabMenuIcon />;
95
92
  export const multiCartIcon = () => <MultiCartIcon />;
96
93
  export const closeIcon = () => <CloseIcon />;
97
94
  export const trashIconV2 = () => <TrashIconV2 />;
98
- export const disabledPropertiesAddIcon = () => <DisabledPropertiesAddIcon />;
99
- export const disabledAccountsAddIcon = () => <DisabledAccountsAddIcon />;
100
- export const disabledPaymentMethodsAddIcon = () => (
101
- <DisabledPaymentMethodsAddIcon />
102
- );
@@ -90,9 +90,6 @@ import KebabMenuIcon from "./KebabMenuIcon";
90
90
  import MultiCartIcon from "./MultiCartIcon";
91
91
  import CloseIcon from "./CloseIcon";
92
92
  import TrashIconV2 from "./TrashIconV2";
93
- import DisabledAccountsAddIcon from "./DisabledAccountsAddIcon";
94
- import DisabledPropertiesAddIcon from "./DisabledPropertiesAddIcon";
95
- import DisabledPaymentMethodsAddIcon from "./DisabledPaymentMethodsAddIcon";
96
93
 
97
94
  export {
98
95
  AccountsIcon,
@@ -186,8 +183,5 @@ export {
186
183
  KebabMenuIcon,
187
184
  MultiCartIcon,
188
185
  CloseIcon,
189
- TrashIconV2,
190
- DisabledAccountsAddIcon,
191
- DisabledPropertiesAddIcon,
192
- DisabledPaymentMethodsAddIcon
186
+ TrashIconV2
193
187
  };
@@ -48,4 +48,5 @@ export { default as TypeaheadInput } from "./typeahead-input";
48
48
  export { default as Card } from "./card";
49
49
  export { default as NavTabs } from "./nav-tabs";
50
50
  export { default as LoadingLine } from "./loading-line";
51
+ export { default as WalletName } from "./wallet-name";
51
52
  export * from "./table";
@@ -8,55 +8,39 @@ import { themeComponent } from "../../../util/themeUtils";
8
8
  import {
9
9
  STORM_GREY,
10
10
  GRECIAN_GREY,
11
- CHARADE_GREY,
12
- WHITE,
13
- TRANSPARENT,
14
- MANATEE_GREY
11
+ CHARADE_GREY
15
12
  } from "../../../constants/colors";
16
13
  import {
17
14
  AccountsAddIcon,
18
15
  PropertiesAddIcon,
19
16
  IconAdd,
20
- PaymentMethodAddIcon,
21
- DisabledAccountsAddIcon,
22
- DisabledPropertiesAddIcon,
23
- DisabledPaymentMethodsAddIcon
17
+ PaymentMethodAddIcon
24
18
  } from "../icons";
25
19
  import { FONT_WEIGHT_SEMIBOLD } from "../../../constants/style_constants";
26
- import { noop } from "../../../util/general";
27
20
 
28
- const getLargeIcon = (iconName, isDisabled) => {
21
+ const getLargeIcon = iconName => {
29
22
  switch (iconName) {
30
23
  case "accounts":
31
- return isDisabled ? <DisabledAccountsAddIcon /> : <AccountsAddIcon />;
24
+ return <AccountsAddIcon />;
32
25
  case "properties":
33
- return isDisabled ? <DisabledPropertiesAddIcon /> : <PropertiesAddIcon />;
26
+ return <PropertiesAddIcon />;
34
27
  case "payments":
35
- return isDisabled ? (
36
- <DisabledPaymentMethodsAddIcon />
37
- ) : (
38
- <PaymentMethodAddIcon />
39
- );
28
+ return <PaymentMethodAddIcon />;
40
29
  default:
41
- return isDisabled ? <DisabledAccountsAddIcon /> : <AccountsAddIcon />;
30
+ return <AccountsAddIcon />;
42
31
  }
43
32
  };
44
33
 
45
- const renderDisabledContent = ({ children }) => (
46
- <Box
47
- padding="0"
48
- minHeight="100%"
49
- extraStyles="cursor: default;"
50
- aria-disabled={true}
51
- >
52
- {children}
53
- </Box>
54
- );
55
-
56
- const renderContent = ({ isLink, destination, dataQa, children, action }) =>
34
+ const PlaceholderContentWrapper = ({
35
+ isLink,
36
+ action,
37
+ destination,
38
+ children,
39
+ dataQa
40
+ }) =>
57
41
  isLink ? (
58
42
  <Link to={destination} data-qa={dataQa} style={{ textDecoration: "none" }}>
59
- <Box padding="0" minHeight="100%" extraStyles="cursor: pointer;">
43
+ <Box padding="0" minHeight="100%" extraStyles={`cursor: pointer;`}>
60
44
  {children}
61
45
  </Box>
62
46
  </Link>
@@ -65,31 +49,13 @@ const renderContent = ({ isLink, destination, dataQa, children, action }) =>
65
49
  onClick={action}
66
50
  padding="0"
67
51
  minHeight="100%"
68
- extraStyles="cursor: pointer;"
52
+ extraStyles={`cursor: pointer;`}
69
53
  dataQa={dataQa}
70
54
  >
71
55
  {children}
72
56
  </Box>
73
57
  );
74
58
 
75
- const PlaceholderContentWrapper = ({
76
- isLink,
77
- action,
78
- destination,
79
- children,
80
- isDisabled = false,
81
- dataQa
82
- }) =>
83
- isDisabled
84
- ? renderDisabledContent({ children })
85
- : renderContent({
86
- children,
87
- action,
88
- isLink,
89
- destination,
90
- dataQa
91
- });
92
-
93
59
  const Placeholder = ({
94
60
  text,
95
61
  action,
@@ -99,7 +65,6 @@ const Placeholder = ({
99
65
  variant,
100
66
  largeIcon,
101
67
  themeValues,
102
- isDisabled = false,
103
68
  dataQa
104
69
  }) => (
105
70
  <PlaceholderContentWrapper
@@ -107,7 +72,6 @@ const Placeholder = ({
107
72
  action={action}
108
73
  destination={destination}
109
74
  dataQa={dataQa}
110
- isDisabled={isDisabled}
111
75
  >
112
76
  <Box
113
77
  padding="0"
@@ -115,13 +79,7 @@ const Placeholder = ({
115
79
  border="none"
116
80
  minHeight={themeValues.height}
117
81
  hiddenStyles={!visible}
118
- extraStyles={
119
- isDisabled
120
- ? `border: 1px dashed ${MANATEE_GREY};
121
- display: flex;
122
- justify-content: center;
123
- align-items:center;`
124
- : `
82
+ extraStyles={`
125
83
  background: linear-gradient(
126
84
  to right,
127
85
  ${variant === "large" ? STORM_GREY : themeValues.color} 40%,
@@ -141,52 +99,38 @@ const Placeholder = ({
141
99
  background-size: 5px 1px, 1px 5px;
142
100
  display: flex;
143
101
  justify-content: center;
144
- align-items:center;`
145
- }
102
+ align-items:center;`}
146
103
  hoverStyles={`background-color: ${
147
- isDisabled
148
- ? TRANSPARENT
149
- : variant === "large"
150
- ? GRECIAN_GREY
151
- : tint(0.9, themeValues.color)
104
+ variant === "large" ? GRECIAN_GREY : tint(0.9, themeValues.color)
152
105
  };`}
153
106
  >
154
107
  <Center maxWidth="300px">
155
108
  <Box
156
109
  padding="0"
157
110
  tabIndex="0"
158
- onKeyPress={e => (isDisabled ? noop : e.key === "Enter" && action())}
111
+ onKeyPress={e => e.key === "Enter" && action()}
159
112
  >
160
113
  <Cluster justify="center" align="center" minHeight="100%">
161
114
  <Switcher maxChildren={2} childGap="0">
162
115
  {variant === "large" && <div></div>}
163
116
  <Box
164
117
  padding="0"
165
- aria-disabled={isDisabled}
166
118
  extraStyles={`.fill {
167
119
  fill: ${
168
- isDisabled
169
- ? MANATEE_GREY
170
- : variant === "large"
171
- ? CHARADE_GREY
172
- : themeValues.color
120
+ variant === "large" ? CHARADE_GREY : themeValues.color
173
121
  };
174
122
  } .stroke {
175
123
  stroke: ${
176
- isDisabled
177
- ? MANATEE_GREY
178
- : variant === "large"
179
- ? CHARADE_GREY
180
- : themeValues.color
124
+ variant === "large" ? CHARADE_GREY : themeValues.color
181
125
  };
182
126
  } `}
183
127
  >
184
128
  {variant === "large" ? (
185
129
  <Center intrinsic>
186
- {getLargeIcon(largeIcon, isDisabled)}
130
+ {getLargeIcon(largeIcon)}
187
131
  <Text
188
132
  variant="pS"
189
- color={isDisabled ? MANATEE_GREY : themeValues.color}
133
+ color={themeValues.color}
190
134
  weight={FONT_WEIGHT_SEMIBOLD}
191
135
  extraStyles={`text-align: center;`}
192
136
  >
@@ -196,14 +140,11 @@ const Placeholder = ({
196
140
  ) : (
197
141
  <Cover singleChild minHeight="100%">
198
142
  <Cluster justify="center" align="center">
199
- <IconAdd
200
- fill={isDisabled ? MANATEE_GREY : WHITE}
201
- strokeWidth="2"
202
- />
143
+ <IconAdd strokeWidth="2" />
203
144
  <Center intrinsic>
204
145
  <Text
205
146
  variant="pS"
206
- color={isDisabled ? MANATEE_GREY : themeValues.color}
147
+ color={themeValues.color}
207
148
  weight={FONT_WEIGHT_SEMIBOLD}
208
149
  extraStyles={`padding: 0 0 0 8px; text-align: center;`}
209
150
  >
@@ -29,7 +29,6 @@ export const placeholder = () => (
29
29
  text={text("text", "Add an Account", "props")}
30
30
  largeIcon={select(iconLabel, icons, defaultIcon, groupId)}
31
31
  key="placeholder"
32
- isDisabled={boolean("isDisabled", false, "props")}
33
32
  />
34
33
  );
35
34
 
@@ -37,5 +36,4 @@ const story = page({
37
36
  title: "Components|Atoms/Placeholder",
38
37
  Component: Placeholder
39
38
  });
40
-
41
39
  export default story;
@@ -1,13 +1,7 @@
1
1
  import { BRIGHT_GREY, CHARADE_GREY } from "../../../constants/colors";
2
2
 
3
- const color = {
4
- default: `${CHARADE_GREY}`,
5
- large: `${BRIGHT_GREY}`
6
- };
7
- const height = {
8
- default: "3rem",
9
- large: "192px"
10
- };
3
+ const color = { default: `${CHARADE_GREY}`, large: `${BRIGHT_GREY}` };
4
+ const height = { default: "3rem", large: "192px" };
11
5
 
12
6
  export const fallbackValues = {
13
7
  color,
@@ -0,0 +1,78 @@
1
+ import React, { Fragment, useContext } from "react";
2
+ import { Box } from "../layouts";
3
+ import { themeComponent } from "../../../util/themeUtils";
4
+ import ButtonWithAction from "../button-with-action";
5
+ import { noop } from "../../../util/general";
6
+ import Text from "../text/Text";
7
+ import { ThemeContext } from "styled-components";
8
+ import { fallbackValues } from "./WalletName.theme";
9
+ import Module from "../../molecules/module/Module";
10
+
11
+ const WalletName = ({
12
+ mainText = "",
13
+ action = noop,
14
+ text = "Not you?",
15
+ actionText = "Check out as a guest",
16
+ themeValues
17
+ }) => {
18
+ const themeContext = useContext(ThemeContext);
19
+ const { isMobile } = themeContext;
20
+
21
+ return (
22
+ <Fragment>
23
+ <Module spacingBottom={isMobile ? "0" : "1.5rem"}>
24
+ <Box
25
+ padding="24px"
26
+ boxShadow={themeValues.boxShadow}
27
+ spacingBottom="0"
28
+ margin="0 0 0 0"
29
+ extraStyles={
30
+ isMobile
31
+ ? `display: flex; flex-direction: column; flex-wrap: wrap; span {text - align: right;}`
32
+ : `display: flex; justify-content: space-between; align-items: center;`
33
+ }
34
+ >
35
+ <Box padding="0 0 0">
36
+ <Text>{mainText}</Text>
37
+ </Box>
38
+ {!isMobile && (
39
+ <Box padding="0">
40
+ <Text variant="pXS">{text}</Text>
41
+ &nbsp;
42
+ <ButtonWithAction
43
+ text={actionText}
44
+ action={action}
45
+ variant="smallGhost"
46
+ extraStyles="
47
+ margin-left: 0;
48
+ span {font-size: 0.75rem;}
49
+ "
50
+ />
51
+ </Box>
52
+ )}
53
+ </Box>
54
+ </Module>
55
+ {isMobile && (
56
+ <Box
57
+ padding="0 0 24px"
58
+ extraStyles="display: flex; align-items: center; justify-content: flex-end;"
59
+ >
60
+ <Text extraStyles="font-size: 12px">{text}</Text>
61
+ <ButtonWithAction
62
+ text={actionText}
63
+ action={action}
64
+ variant="smallGhost"
65
+ extraStyles="span {font-size: 12px;}"
66
+ />
67
+ </Box>
68
+ )}
69
+ </Fragment>
70
+ );
71
+ };
72
+
73
+ export default themeComponent(
74
+ WalletName,
75
+ "WalletName",
76
+ fallbackValues,
77
+ "primary"
78
+ );
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import WalletName from "./WalletName";
3
+ import { text, object } from "@storybook/addon-knobs";
4
+ import page from "../../../../.storybook/page";
5
+
6
+ export const walletName = () => {
7
+ return (
8
+ <WalletName
9
+ mainText={text("mainText", "Firstname Lastname", "props")}
10
+ action={object("action", () => window.alert("action fired!"), "props")}
11
+ actionText={text("actionText", "Check out as a guest", "props")}
12
+ text={text("text", "Not you?", "props")}
13
+ />
14
+ );
15
+ };
16
+
17
+ const story = page({
18
+ title: "Components|Atoms/WalletName",
19
+ component: WalletName
20
+ });
21
+
22
+ export default story;
@@ -0,0 +1,16 @@
1
+ import { CHARADE_GREY, WHITE } from "../../../constants/colors";
2
+
3
+ const backgroundColor = {
4
+ primary: WHITE
5
+ };
6
+
7
+ const boxShadow = {
8
+ primary: `box-shadow: 0px 1px 2px 0px rgba(${CHARADE_GREY}, 0.1);
9
+ box-shadow: 0px 2px 6px 0px rgba(${CHARADE_GREY}, 0.2);
10
+ box-shadow: 0px -1px 0px 0px rgba(${CHARADE_GREY}, 0.1) inset;`
11
+ };
12
+
13
+ export const fallbackValues = {
14
+ backgroundColor,
15
+ boxShadow
16
+ };
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import Expand from "../../../util/expand";
3
+
4
+ export interface WalletNameProps {
5
+ action?: () => void;
6
+ text?: string;
7
+ actionText?: string;
8
+ mainText?: string;
9
+ }
10
+
11
+ export const WalletName: React.FC<Expand<WalletNameProps> &
12
+ React.HTMLAttributes<HTMLElement>>;
@@ -0,0 +1,3 @@
1
+ import WalletName from "./WalletName";
2
+
3
+ export default WalletName;
@@ -40,8 +40,7 @@ const EditableList = ({
40
40
  listPadding = "0rem 0rem 1.5rem 0rem",
41
41
  qaPrefix,
42
42
  ariaLabel,
43
- editItemAriaRole = "",
44
- disablePlaceholder = false
43
+ editItemAriaRole = ""
45
44
  }) => {
46
45
  const addText = `Add a${
47
46
  itemName[0].match(/[aieouAIEOU]/) ? "n" : ""
@@ -162,14 +161,13 @@ const EditableList = ({
162
161
  );
163
162
  })}
164
163
  </Box>
165
- {canAdd && !(!maxItems || items.length < maxItems) && (
164
+ {canAdd && (!maxItems || items.length < maxItems) && (
166
165
  <Box padding={items.length === 0 ? "0" : "1rem 0 0"}>
167
166
  <Placeholder
168
167
  text={addText}
169
168
  action={addItem}
170
169
  dataQa={"Add " + qaPrefix}
171
170
  aria-label={addText}
172
- isDisabled={disablePlaceholder}
173
171
  />
174
172
  </Box>
175
173
  )}
@@ -1,4 +1,6 @@
1
- import React from "react";
1
+ import React, { useState } from "react";
2
+ import { boolean } from "@storybook/addon-knobs";
3
+
2
4
  import EditableList from "./EditableList";
3
5
  import page from "../../../../.storybook/page";
4
6
 
@@ -76,7 +76,6 @@ export const modalV2 = () => (
76
76
  noButtons={boolean("noButtons", false, groupId)}
77
77
  onlyCloseButton={boolean("onlyCloseButton", false, groupId)}
78
78
  onlyContinueButton={boolean("onlyContinueButton", false, groupId)}
79
- showCloseIconButton={boolean("showCloseIconButton", true, groupId)}
80
79
  useDangerButton={boolean("useDangerButton", false, groupId)}
81
80
  />
82
81
  );
@@ -18,7 +18,6 @@ import {
18
18
  ButtonLayoutWrapper,
19
19
  CancelButton,
20
20
  CloseButton,
21
- CloseIconButton,
22
21
  ContinueButton
23
22
  } from "./__private__";
24
23
 
@@ -39,12 +38,10 @@ const Modal = ({
39
38
  buttonExtraStyles = "",
40
39
  cancelAction = noop,
41
40
  cancelButtonText = "Cancel",
42
- cancelButtonVariant = "secondary",
43
41
  children = [],
44
42
  closeButtonText = "Close",
45
43
  continueAction = noop,
46
44
  continueButtonText = "Continue",
47
- continueButtonVariant = "primary",
48
45
  continueURL = "",
49
46
  customWidth = "",
50
47
  dataQa = null,
@@ -63,7 +60,6 @@ const Modal = ({
63
60
  onExit = hideModal,
64
61
  onlyCloseButton = false,
65
62
  onlyContinueButton = false,
66
- showCloseIconButton = false,
67
63
  underlayClickExits = true,
68
64
  useDangerButton = false
69
65
  }) => {
@@ -112,7 +108,7 @@ const Modal = ({
112
108
  borderRadius: BORDER_RADIUS.MD,
113
109
  margin: SPACING.XS,
114
110
  overflow: "auto",
115
- width: isMobile ? "" : customWidth || "576px"
111
+ width: isMobile ? "" : customWidth || "615px"
116
112
  }}
117
113
  underlayClickExits={underlayClickExits}
118
114
  aria-modal={true}
@@ -126,13 +122,7 @@ const Modal = ({
126
122
  borderWidthOverride={`0 0 ${BORDER_THIN} 0`}
127
123
  padding={`${SPACING.XS} ${SPACING.MD}`}
128
124
  >
129
- <Cluster
130
- justify={showCloseIconButton ? "space-between" : "flex-start"}
131
- align={
132
- showCloseIconButton && isMobile ? "flex-start" : "center"
133
- }
134
- nowrap
135
- >
125
+ <Cluster justify="flex-start" align="center">
136
126
  <Title
137
127
  as="h2"
138
128
  weight={FONT_WEIGHT_SEMIBOLD}
@@ -140,9 +130,6 @@ const Modal = ({
140
130
  >
141
131
  {modalHeaderText}
142
132
  </Title>
143
- {showCloseIconButton && (
144
- <CloseIconButton hideModal={hideModal} />
145
- )}
146
133
  </Cluster>
147
134
  </Box>
148
135
  <Box background={modalBodyBg || ATHENS_GREY} padding="0">
@@ -174,7 +161,6 @@ const Modal = ({
174
161
  buttonExtraStyles={buttonExtraStyles}
175
162
  cancelAction={cancelAction}
176
163
  cancelButtonText={cancelButtonText}
177
- cancelButtonVariant={cancelButtonVariant}
178
164
  hideModal={hideModal}
179
165
  isMobile={isMobile}
180
166
  key="cancel"
@@ -186,7 +172,6 @@ const Modal = ({
186
172
  continueAction={continueAction}
187
173
  continueButtonText={continueButtonText}
188
174
  continueURL={continueURL}
189
- continueButtonVariant={continueButtonVariant}
190
175
  isContinueActionDisabled={isContinueActionDisabled}
191
176
  isLoading={isLoading}
192
177
  isMobile={isMobile}
@@ -10,7 +10,6 @@ export const CancelButton = ({
10
10
  buttonExtraStyles = "",
11
11
  cancelAction = noop,
12
12
  cancelButtonText = "",
13
- cancelButtonVariant = "secondary",
14
13
  hideModal = noop,
15
14
  isMobile = false
16
15
  }) => {
@@ -28,7 +27,7 @@ export const CancelButton = ({
28
27
  role="button"
29
28
  text={cancelButtonText}
30
29
  textExtraStyles={`${fontSize}`}
31
- variant={cancelButtonVariant}
30
+ variant="secondary"
32
31
  />
33
32
  );
34
33
  };
@@ -12,7 +12,6 @@ export const ContinueButton = ({
12
12
  continueAction = noop,
13
13
  continueButtonText = "",
14
14
  continueURL = "",
15
- continueButtonVariant = "primary",
16
15
  isContinueActionDisabled = false,
17
16
  isLoading = false,
18
17
  isMobile = false,
@@ -37,7 +36,7 @@ export const ContinueButton = ({
37
36
  text={continueButtonText}
38
37
  textExtraStyles={`${fontSize}`}
39
38
  url={continueURL}
40
- variant={useDangerButton ? "danger" : continueButtonVariant}
39
+ variant={useDangerButton ? "danger" : "primary"}
41
40
  />
42
41
  );
43
42
  };
@@ -14,7 +14,6 @@ export interface CancelButtonProps {
14
14
  buttonExtraStyles?: string;
15
15
  cancelAction?: Function;
16
16
  cancelButtonText?: string;
17
- cancelButtonVariant?: string;
18
17
  hideModal?: Function;
19
18
  isMobile?: boolean;
20
19
  }
@@ -32,23 +31,11 @@ export interface CloseButtonProps {
32
31
  export declare const CloseButton: React.FC<Expand<CloseButtonProps> &
33
32
  React.HTMLAttributes<HTMLElement>>;
34
33
 
35
- export interface CloseIconButtonProps {
36
- buttonExtraStyles?: string;
37
- hideModal?: action;
38
- iconWidth?: string;
39
- iconHeight?: string;
40
- ariaLabel?: string;
41
- }
42
-
43
- export declare const CloseIconButton: React.FC<Expand<CloseIconButtonProps> &
44
- React.HTMLAttributes<HTMLElement>>;
45
-
46
34
  export interface ContinueButtonProps {
47
35
  buttonExtraStyles?: string;
48
36
  continueAction?: Function;
49
37
  continueButtonText?: string;
50
38
  continueURL?: string;
51
- continueButtonVariant?: string;
52
39
  isContinueActionDisabled?: boolean;
53
40
  isLoading?: boolean;
54
41
  isMobile?: boolean;
@@ -1,5 +1,4 @@
1
1
  export { default as ButtonLayoutWrapper } from "./ButtonLayoutWrapper";
2
2
  export { default as CancelButton } from "./CancelButton";
3
3
  export { default as CloseButton } from "./CloseButton";
4
- export { default as CloseIconButton } from "./CloseIconButton";
5
4
  export { default as ContinueButton } from "./ContinueButton";
@@ -8,8 +8,7 @@ export const FONT_SIZE = {
8
8
  XS: "0.750rem", // 12px
9
9
  SM: "0.875rem", // 14px
10
10
  MD: "1.000rem", // 16px
11
- LG: "1.125rem", // 18px
12
- XL: "1.250rem" //20px
11
+ LG: "1.125rem" // 18px
13
12
  };
14
13
  export const FONT_WEIGHT_REGULAR = "400";
15
14
  export const FONT_WEIGHT_SEMIBOLD = "600";