@companix/uikit 0.0.44 → 0.0.45
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/Spinner/Spinner.scss +6 -1
- package/dist/Spinner/index.d.ts +1 -3
- package/dist/bundle.es4.js +17 -17
- package/dist/bundle.es6.js +5 -5
- package/package.json +1 -1
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
@use '../mixins.scss';
|
|
2
|
+
|
|
1
3
|
@keyframes spinner-border {
|
|
2
4
|
to {
|
|
3
5
|
transform: rotate(360deg);
|
|
4
6
|
}
|
|
5
7
|
}
|
|
6
8
|
|
|
7
|
-
.spinner
|
|
9
|
+
.spinner {
|
|
8
10
|
display: inline-block;
|
|
9
11
|
border-style: solid;
|
|
10
12
|
border-color: currentColor;
|
|
13
|
+
border-width: 2px;
|
|
11
14
|
border-right-color: transparent;
|
|
12
15
|
border-radius: 50%;
|
|
13
16
|
animation: 0.75s linear infinite spinner-border;
|
|
17
|
+
|
|
18
|
+
@include mixins.use-styles(spinner);
|
|
14
19
|
}
|
package/dist/Spinner/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export interface SpinnerProps {
|
|
2
2
|
size?: number;
|
|
3
|
-
width?: number;
|
|
4
|
-
color?: string;
|
|
5
3
|
className?: string;
|
|
6
4
|
}
|
|
7
|
-
export declare const Spinner: ({ size, className
|
|
5
|
+
export declare const Spinner: ({ size, className }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/bundle.es4.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { jsx as e, jsxs as x, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { Spinner as
|
|
4
|
-
import { forwardRef as
|
|
1
|
+
import { jsx as e, jsxs as x, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import k from "classnames";
|
|
3
|
+
import { Spinner as z } from "./bundle.es6.js";
|
|
4
|
+
import { forwardRef as N } from "react";
|
|
5
5
|
import { attr as r } from "@companix/utils-browser";
|
|
6
|
-
const F =
|
|
6
|
+
const F = N(
|
|
7
7
|
({
|
|
8
8
|
children: d,
|
|
9
9
|
fill: l,
|
|
10
|
-
text:
|
|
10
|
+
text: m,
|
|
11
11
|
active: c,
|
|
12
12
|
mode: f = "default",
|
|
13
13
|
appearance: s = "neutral",
|
|
14
14
|
size: p = "md",
|
|
15
15
|
align: u,
|
|
16
|
-
icon:
|
|
16
|
+
icon: n,
|
|
17
17
|
loading: t,
|
|
18
18
|
className: b,
|
|
19
|
-
iconRight:
|
|
20
|
-
Component:
|
|
19
|
+
iconRight: o,
|
|
20
|
+
Component: i = "button",
|
|
21
21
|
...a
|
|
22
22
|
}, v) => /* @__PURE__ */ e(
|
|
23
|
-
|
|
23
|
+
i,
|
|
24
24
|
{
|
|
25
25
|
ref: v,
|
|
26
|
-
className:
|
|
26
|
+
className: k("button", b),
|
|
27
27
|
"data-size": p,
|
|
28
28
|
"data-loading": r(t),
|
|
29
|
-
"data-align": t ? "center" : u ?? (
|
|
29
|
+
"data-align": t ? "center" : u ?? (n && o ? "left" : "center"),
|
|
30
30
|
"data-appearance": s,
|
|
31
31
|
"data-mode": f,
|
|
32
32
|
"data-fill": r(l),
|
|
33
33
|
"data-active": r(c),
|
|
34
|
-
type:
|
|
34
|
+
type: i === "button" ? "button" : void 0,
|
|
35
35
|
...a,
|
|
36
36
|
onClick: t ?? a.disabled ? void 0 : a.onClick,
|
|
37
|
-
children: t ? /* @__PURE__ */ e(
|
|
38
|
-
|
|
39
|
-
(d ??
|
|
40
|
-
|
|
37
|
+
children: t ? /* @__PURE__ */ e(z, { size: 14 }) : /* @__PURE__ */ x(j, { children: [
|
|
38
|
+
n,
|
|
39
|
+
(d ?? m) && /* @__PURE__ */ e("span", { className: "button-text", children: m ?? d }),
|
|
40
|
+
o
|
|
41
41
|
] })
|
|
42
42
|
}
|
|
43
43
|
)
|
package/dist/bundle.es6.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import n from "classnames";
|
|
3
|
-
const
|
|
3
|
+
const s = ({ size: r = 40, className: t }) => /* @__PURE__ */ e(
|
|
4
4
|
"div",
|
|
5
5
|
{
|
|
6
|
-
style: { width: `${r}px`, height: `${r}px
|
|
7
|
-
className: n("spinner
|
|
6
|
+
style: { width: `${r}px`, height: `${r}px` },
|
|
7
|
+
className: n("spinner", t),
|
|
8
8
|
role: "status"
|
|
9
9
|
}
|
|
10
10
|
);
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
s as Spinner
|
|
13
13
|
};
|