@oatfi/ui 0.5.0 → 0.6.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.
- package/dist/index.cjs.js +19 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +40 -5
- package/dist/index.esm.js +20 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2102,6 +2102,17 @@ const MethodCard = styled.div`
|
|
|
2102
2102
|
transition:
|
|
2103
2103
|
border-color 0.15s ease,
|
|
2104
2104
|
background 0.15s ease;
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* The unsaved-edit bar. It thickens the left border rather than adding one, so
|
|
2108
|
+
* the padding gives back the 2px it takes and the card's contents do not shift
|
|
2109
|
+
* when it appears mid-keystroke. Declared last so it wins over the shorthand
|
|
2110
|
+
* above, including on a $default card that already has an accent border.
|
|
2111
|
+
*/
|
|
2112
|
+
${({ theme, $edited }) => $edited && styled.css`
|
|
2113
|
+
border-left: 3px solid ${theme.colors.accent};
|
|
2114
|
+
padding-left: 14px;
|
|
2115
|
+
`}
|
|
2105
2116
|
`;
|
|
2106
2117
|
const MethodBody = styled.div`
|
|
2107
2118
|
flex: 1;
|
|
@@ -2166,6 +2177,10 @@ const FooterActions = styled.div`
|
|
|
2166
2177
|
button {
|
|
2167
2178
|
margin-top: 0;
|
|
2168
2179
|
}
|
|
2180
|
+
|
|
2181
|
+
> :only-child {
|
|
2182
|
+
margin-left: auto;
|
|
2183
|
+
}
|
|
2169
2184
|
`;
|
|
2170
2185
|
const FooterRight = styled.div`
|
|
2171
2186
|
display: flex;
|
|
@@ -2216,6 +2231,7 @@ function ManualMethodCard({
|
|
|
2216
2231
|
index,
|
|
2217
2232
|
value,
|
|
2218
2233
|
isDefault = false,
|
|
2234
|
+
status,
|
|
2219
2235
|
trashDisabled = false,
|
|
2220
2236
|
disabled = false,
|
|
2221
2237
|
accountError,
|
|
@@ -2227,7 +2243,7 @@ function ManualMethodCard({
|
|
|
2227
2243
|
name = "default-method"
|
|
2228
2244
|
}) {
|
|
2229
2245
|
const radioId = `default-${value.id}`;
|
|
2230
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(MethodCard, { $default: isDefault, children: [
|
|
2246
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(MethodCard, { $default: isDefault, $edited: status === "edited", children: [
|
|
2231
2247
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2232
2248
|
RadioInput,
|
|
2233
2249
|
{
|
|
@@ -2246,7 +2262,8 @@ function ManualMethodCard({
|
|
|
2246
2262
|
"Account ",
|
|
2247
2263
|
index + 1
|
|
2248
2264
|
] }),
|
|
2249
|
-
isDefault && /* @__PURE__ */ jsxRuntime.jsx(Badge, { $variant: "filled", children: "Default" })
|
|
2265
|
+
isDefault && /* @__PURE__ */ jsxRuntime.jsx(Badge, { $variant: "filled", children: "Default" }),
|
|
2266
|
+
status === "edited" && /* @__PURE__ */ jsxRuntime.jsx(Badge, { $variant: "info", children: "Unsaved" })
|
|
2250
2267
|
] }),
|
|
2251
2268
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2252
2269
|
IconButton,
|