@companix/uikit 0.0.46 → 0.0.48
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/Button/Button.scss +12 -2
- package/dist/Spinner/index.d.ts +2 -1
- package/dist/bundle.es4.js +1 -1
- package/dist/bundle.es6.js +6 -6
- package/package.json +1 -1
package/dist/Button/Button.scss
CHANGED
|
@@ -20,11 +20,14 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&[data-loading] {
|
|
23
|
-
|
|
23
|
+
&:hover,
|
|
24
|
+
&[data-active],
|
|
25
|
+
&:active {
|
|
26
|
+
@include mixins.use-styles(button, $appearance, $mode, enabled);
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
&[disabled] {
|
|
27
|
-
cursor: not-allowed;
|
|
28
31
|
@include mixins.use-styles(button, $appearance, $mode, disabled);
|
|
29
32
|
}
|
|
30
33
|
}
|
|
@@ -71,6 +74,12 @@
|
|
|
71
74
|
width: 100%;
|
|
72
75
|
}
|
|
73
76
|
|
|
77
|
+
// disabled
|
|
78
|
+
|
|
79
|
+
&[disabled] {
|
|
80
|
+
cursor: not-allowed;
|
|
81
|
+
}
|
|
82
|
+
|
|
74
83
|
// align
|
|
75
84
|
|
|
76
85
|
&[data-align='center'] {
|
|
@@ -127,6 +136,7 @@
|
|
|
127
136
|
@include use-appearance(positive);
|
|
128
137
|
|
|
129
138
|
&[data-loading] {
|
|
139
|
+
cursor: progress;
|
|
130
140
|
position: relative;
|
|
131
141
|
|
|
132
142
|
.button-text {
|
package/dist/Spinner/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export interface SpinnerProps {
|
|
2
2
|
size?: number;
|
|
3
3
|
className?: string;
|
|
4
|
+
color?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare const Spinner: ({ size, className }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const Spinner: ({ size, className, color }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/bundle.es4.js
CHANGED
|
@@ -35,7 +35,7 @@ const F = k(
|
|
|
35
35
|
...n,
|
|
36
36
|
onClick: t ?? n.disabled ? void 0 : n.onClick,
|
|
37
37
|
children: t ? /* @__PURE__ */ i(l, { children: [
|
|
38
|
-
/* @__PURE__ */ a(j, { size:
|
|
38
|
+
/* @__PURE__ */ a(j, { size: 16, className: "button-spinner" }),
|
|
39
39
|
/* @__PURE__ */ a("span", { className: "button-text", children: r ?? e })
|
|
40
40
|
] }) : /* @__PURE__ */ i(l, { children: [
|
|
41
41
|
m,
|
package/dist/bundle.es6.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import o from "classnames";
|
|
3
|
+
const i = ({ size: r = 40, className: t, color: e }) => /* @__PURE__ */ n(
|
|
4
4
|
"div",
|
|
5
5
|
{
|
|
6
|
-
style: { width: `${r}px`, height: `${r}px
|
|
7
|
-
className:
|
|
6
|
+
style: { width: `${r}px`, height: `${r}px`, color: e },
|
|
7
|
+
className: o("spinner", t),
|
|
8
8
|
role: "status"
|
|
9
9
|
}
|
|
10
10
|
);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
i as Spinner
|
|
13
13
|
};
|