@stokr/components-library 3.0.73 → 3.0.75
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/dist/components/Button/Button.styles.js +17 -1
- package/dist/components/Checklist/ChecklistCard.styles.js +1 -1
- package/dist/components/Modal/Modal.styles.js +1 -1
- package/dist/components/Payment/PaymentDetailsCard.js +2 -2
- package/dist/components/Payment/PaymentSuccessCard.js +1 -1
- package/dist/components/Snackbar/Snackbar.styles.js +2 -2
- package/dist/components/StatusDot/StatusDot.styles.js +8 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +1 -1
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ const Button = styled.button.withConfig({
|
|
|
16
16
|
"negative",
|
|
17
17
|
"outline",
|
|
18
18
|
"outlineBlack",
|
|
19
|
+
"black",
|
|
19
20
|
"marginTop",
|
|
20
21
|
"marginRight",
|
|
21
22
|
"isLoginMobile"
|
|
@@ -181,6 +182,20 @@ const Button = styled.button.withConfig({
|
|
|
181
182
|
}
|
|
182
183
|
`}
|
|
183
184
|
|
|
185
|
+
${(props) => props.black && css`
|
|
186
|
+
border-color: ${theme.grey4};
|
|
187
|
+
background-color: transparent;
|
|
188
|
+
color: ${theme.cBlack};
|
|
189
|
+
|
|
190
|
+
&:hover,
|
|
191
|
+
&:focus,
|
|
192
|
+
&:active {
|
|
193
|
+
background-color: ${theme.cBlack};
|
|
194
|
+
border-color: ${theme.cBlack};
|
|
195
|
+
color: ${theme.cWhite};
|
|
196
|
+
}
|
|
197
|
+
`}
|
|
198
|
+
|
|
184
199
|
//next 2 props added from SUF
|
|
185
200
|
|
|
186
201
|
${(props) => props.marginTop && css`
|
|
@@ -202,7 +217,8 @@ Button.propTypes = {
|
|
|
202
217
|
negative: PropTypes.bool,
|
|
203
218
|
center: PropTypes.bool,
|
|
204
219
|
outline: PropTypes.bool,
|
|
205
|
-
outlineBlack: PropTypes.bool
|
|
220
|
+
outlineBlack: PropTypes.bool,
|
|
221
|
+
black: PropTypes.bool
|
|
206
222
|
};
|
|
207
223
|
var stdin_default = Button;
|
|
208
224
|
export {
|
|
@@ -107,7 +107,7 @@ const ModalInnerSmartContractAddress = styled.input`
|
|
|
107
107
|
const ModalInnerWithBorder = styled.div.withConfig({
|
|
108
108
|
shouldForwardProp: (props) => !["bottomRadius0", "topRadius0", "marginTop0", "borderTopNone", "textAlignRight", "paddingSmall"].includes(props)
|
|
109
109
|
})`
|
|
110
|
-
border-radius:
|
|
110
|
+
border-radius: 8px;
|
|
111
111
|
border: 1px solid ${colors.lightGrey};
|
|
112
112
|
padding: 25px 35px;
|
|
113
113
|
margin-top: 39px;
|
|
@@ -8,7 +8,7 @@ import { getCurrencyConfig, getCurrencyIcon, formatAmountForDisplay } from "../.
|
|
|
8
8
|
import externalLinkIcon from "../../static/images/external-link-icon.svg.js";
|
|
9
9
|
const CardContainer = styled.div`
|
|
10
10
|
background: ${colors.white};
|
|
11
|
-
border-radius:
|
|
11
|
+
border-radius: 8px;
|
|
12
12
|
border: 1px solid ${colors.lightGrey};
|
|
13
13
|
padding: 20px 32px;
|
|
14
14
|
`;
|
|
@@ -20,7 +20,7 @@ const CardTitle = styled.div`
|
|
|
20
20
|
background: ${colors.futureBlack};
|
|
21
21
|
padding: 12px 24px;
|
|
22
22
|
margin: -20px -32px 20px -32px;
|
|
23
|
-
border-radius:
|
|
23
|
+
border-radius: 8px 8px 0 0;
|
|
24
24
|
// border-bottom: 1px solid ${colors.lightGrey};
|
|
25
25
|
text-align: start;
|
|
26
26
|
text-transform: uppercase;
|
|
@@ -119,7 +119,7 @@ const PaymentSuccessCard = ({
|
|
|
119
119
|
target: secondaryActionHref ? "_blank" : void 0,
|
|
120
120
|
rel: secondaryActionHref ? "noopener noreferrer" : void 0,
|
|
121
121
|
onClick: onSecondaryActionClick,
|
|
122
|
-
|
|
122
|
+
black: true,
|
|
123
123
|
children: [
|
|
124
124
|
secondaryActionLabel,
|
|
125
125
|
secondaryActionHref && /* @__PURE__ */ jsx(ButtonIcon, { src: externalLinkIcon, alt: "" })
|
|
@@ -134,7 +134,7 @@ const SnackbarWrapper = styled.div.withConfig({
|
|
|
134
134
|
padding: 12px 16px;
|
|
135
135
|
background-color: ${colors.white};
|
|
136
136
|
box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.12);
|
|
137
|
-
border-radius:
|
|
137
|
+
border-radius: 8px;
|
|
138
138
|
border: 1px solid ${colors.grey};
|
|
139
139
|
//border-bottom: 3px solid ${colors.grey};
|
|
140
140
|
pointer-events: auto;
|
|
@@ -149,7 +149,7 @@ const SnackbarWrapper = styled.div.withConfig({
|
|
|
149
149
|
left: 0;
|
|
150
150
|
height: 3px;
|
|
151
151
|
background-color: ${({ $variant }) => variantStyles[$variant]?.borderColor || colors.blue};
|
|
152
|
-
border-radius: 0 0 0
|
|
152
|
+
border-radius: 0 0 0 8px;
|
|
153
153
|
${({ $duration, $isPermanent }) => $isPermanent ? css`
|
|
154
154
|
width: 100%;
|
|
155
155
|
` : css`
|
|
@@ -7,7 +7,11 @@ const Root = styled.div.withConfig({
|
|
|
7
7
|
shouldForwardProp: (prop) => !["$subtle", "$backgroundColor", "$hasClick"].includes(prop)
|
|
8
8
|
})`
|
|
9
9
|
display: inline-flex;
|
|
10
|
-
|
|
10
|
+
/* flex-start, not center: a label long enough to wrap (e.g. PaymentDisplay's
|
|
11
|
+
statusMessage) must keep the dot level with its FIRST line, not drift to the
|
|
12
|
+
middle of the whole wrapped block. Dot below compensates so a single-line
|
|
13
|
+
label still looks identical to the old centered version. */
|
|
14
|
+
align-items: flex-start;
|
|
11
15
|
gap: 8px;
|
|
12
16
|
box-sizing: border-box;
|
|
13
17
|
padding: ${(p) => p.$subtle ? "2px 8px" : "0"};
|
|
@@ -32,6 +36,9 @@ const Dot = styled.span.withConfig({
|
|
|
32
36
|
background-color: ${(p) => p.$color};
|
|
33
37
|
flex-shrink: 0;
|
|
34
38
|
animation: ${(p) => p.$pulse ? pulse : "none"} 1.6s ease-in-out infinite;
|
|
39
|
+
/* Centers the dot within the Label's first line (20px line-height) now that
|
|
40
|
+
Root no longer centers it across the whole (possibly wrapped) block. */
|
|
41
|
+
margin-top: ${(p) => Math.max(0, (20 - p.$size) / 2)}px;
|
|
35
42
|
`;
|
|
36
43
|
const Label = styled.span.withConfig({
|
|
37
44
|
shouldForwardProp: (prop) => !["$color", "$uppercase"].includes(prop)
|