@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.
@@ -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 {
@@ -7,7 +7,7 @@ const CardContainer = styled.div.withConfig({
7
7
  flex-direction: column;
8
8
  align-items: flex-start;
9
9
  border: 1px solid #eaeaea;
10
- border-radius: 1px;
10
+ border-radius: 8px;
11
11
  background: #fff;
12
12
  padding: 32px 32px 32px 32px;
13
13
  min-width: 320px;
@@ -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: 10px;
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: 10px;
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: 9px 9px 0 0;
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
- outlineBlack: true,
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: 6px;
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 6px;
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
- align-items: center;
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)
@@ -6,7 +6,7 @@ const CardWrapper = styled.div.withConfig({
6
6
  })`
7
7
  background: ${theme.cWhite};
8
8
  border: 1px solid ${theme.cLightGrey};
9
- border-radius: 6px;
9
+ border-radius: 8px;
10
10
  overflow: hidden;
11
11
  transition:
12
12
  border-color 0.2s,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "3.0.73",
3
+ "version": "3.0.75",
4
4
  "description": "STOKR - Components Library",
5
5
  "author": "Bilal Hodzic <bilal@stokr.io>",
6
6
  "license": "MIT",