@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.
@@ -20,11 +20,14 @@
20
20
  }
21
21
 
22
22
  &[data-loading] {
23
- @include mixins.use-styles(button, $appearance, $mode, loading);
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 {
@@ -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;
@@ -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: 14, className: "button-spinner" }),
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,
@@ -1,13 +1,13 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import n from "classnames";
3
- const s = ({ size: r = 40, className: t }) => /* @__PURE__ */ e(
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: n("spinner", t),
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
- s as Spinner
12
+ i as Spinner
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companix/uikit",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "main": "./dist/bundle.es.js",
5
5
  "module": "./dist/bundle.es.js",
6
6
  "types": "./dist/index.d.ts",