@trackunit/react-components 0.0.46 → 0.0.47
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/index.js +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -85,7 +85,7 @@ const Spinner = ({
|
|
|
85
85
|
"$centered": centered,
|
|
86
86
|
className: containerClassName
|
|
87
87
|
}, {
|
|
88
|
-
children: jsx(StyledSpinner, {
|
|
88
|
+
children: jsx(StyledSpinner$1, {
|
|
89
89
|
"$size": size,
|
|
90
90
|
"$mode": mode,
|
|
91
91
|
role: "spinbutton",
|
|
@@ -111,7 +111,7 @@ const getSpinnerStyles = () => ({
|
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
const StyledSpinner = tw.span`
|
|
114
|
+
const StyledSpinner$1 = tw.span`
|
|
115
115
|
spinner
|
|
116
116
|
${p => p.$mode === "dark" ? tws`spinner--dark` : null}
|
|
117
117
|
${getSpinnerStyles()}
|
|
@@ -199,7 +199,7 @@ const Button = React.forwardRef((_a, ref) => {
|
|
|
199
199
|
"data-testid": dataTestId,
|
|
200
200
|
ref: ref
|
|
201
201
|
}, rest, {
|
|
202
|
-
children: [loading && jsx(
|
|
202
|
+
children: [loading && jsx(StyledSpinner, {
|
|
203
203
|
centered: true
|
|
204
204
|
}), prefix, children, suffix]
|
|
205
205
|
}));
|
|
@@ -211,6 +211,9 @@ const StyledButton$1 = tw.button`
|
|
|
211
211
|
${getStyles()}
|
|
212
212
|
${getPadding()}
|
|
213
213
|
`;
|
|
214
|
+
const StyledSpinner = tw(Spinner)`
|
|
215
|
+
button__spinner
|
|
216
|
+
`;
|
|
214
217
|
Button.displayName = "Button";
|
|
215
218
|
|
|
216
219
|
const IconButton = React.forwardRef((_a, ref) => {
|