highsoft-ui 1.0.62 → 1.0.63

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.
@@ -1,16 +1,16 @@
1
- import { jsx as t, jsxs as u } from "react/jsx-runtime";
2
- import { forwardRef as y } from "react";
1
+ import { jsx as n, jsxs as d } from "react/jsx-runtime";
2
+ import { forwardRef as u } from "react";
3
3
  import { c as p } from "../../clsx-OuTLNxxd.js";
4
- import { _ as m } from "../../extends-hS2Bh-Yp.js";
5
- var h = function(s) {
6
- return /* @__PURE__ */ t("svg", m({
4
+ import { _ as h } from "../../extends-hS2Bh-Yp.js";
5
+ var f = function(t) {
6
+ return /* @__PURE__ */ n("svg", h({
7
7
  xmlns: "http://www.w3.org/2000/svg",
8
8
  width: 24,
9
9
  height: 24,
10
10
  fill: "none",
11
11
  viewBox: "0 0 24 24"
12
- }, s, {
13
- children: /* @__PURE__ */ t("path", {
12
+ }, t, {
13
+ children: /* @__PURE__ */ n("path", {
14
14
  stroke: "currentColor",
15
15
  strokeLinecap: "round",
16
16
  strokeLinejoin: "round",
@@ -19,58 +19,58 @@ var h = function(s) {
19
19
  })
20
20
  }));
21
21
  };
22
- const f = "_button_6y1d6_300", z = "_content_6y1d6_342", g = "_neutral_6y1d6_348", b = "_loading_6y1d6_366", w = "_white_6y1d6_372", x = "_transparent_6y1d6_396", v = "_plain_6y1d6_420", L = "_brand_6y1d6_444", k = "_success_6y1d6_468", M = "_attention_6y1d6_492", j = "_danger_6y1d6_516", N = "_full_6y1d6_654", B = "_loader_6y1d6_662", C = "_spin_6y1d6_1", n = {
23
- button: f,
24
- content: z,
25
- neutral: g,
26
- loading: b,
27
- white: w,
28
- transparent: x,
29
- plain: v,
30
- brand: L,
31
- success: k,
32
- attention: M,
33
- danger: j,
34
- "size-50": "_size-50_6y1d6_540",
35
- "size-100": "_size-100_6y1d6_559",
36
- "size-200": "_size-200_6y1d6_578",
37
- "size-300": "_size-300_6y1d6_597",
38
- "size-400": "_size-400_6y1d6_616",
39
- "size-500": "_size-500_6y1d6_635",
40
- full: N,
41
- loader: B,
22
+ const z = "_button_ss3mr_300", g = "_content_ss3mr_342", b = "_neutral_ss3mr_348", w = "_loading_ss3mr_366", x = "_white_ss3mr_372", v = "_transparent_ss3mr_396", L = "_plain_ss3mr_420", k = "_brand_ss3mr_447", M = "_success_ss3mr_471", j = "_attention_ss3mr_495", N = "_danger_ss3mr_519", B = "_full_ss3mr_657", y = "_loader_ss3mr_665", C = "_spin_ss3mr_1", s = {
23
+ button: z,
24
+ content: g,
25
+ neutral: b,
26
+ loading: w,
27
+ white: x,
28
+ transparent: v,
29
+ plain: L,
30
+ brand: k,
31
+ success: M,
32
+ attention: j,
33
+ danger: N,
34
+ "size-50": "_size-50_ss3mr_543",
35
+ "size-100": "_size-100_ss3mr_562",
36
+ "size-200": "_size-200_ss3mr_581",
37
+ "size-300": "_size-300_ss3mr_600",
38
+ "size-400": "_size-400_ss3mr_619",
39
+ "size-500": "_size-500_ss3mr_638",
40
+ full: B,
41
+ loader: y,
42
42
  spin: C
43
- }, q = y(
43
+ }, q = u(
44
44
  ({
45
- children: _,
46
- variant: s = "neutral",
47
- size: o = 200,
48
- fullWidth: a = !1,
49
- loading: e,
50
- as: i = "button",
51
- disabled: r,
52
- className: d,
53
- ...c
54
- }, l) => /* @__PURE__ */ u(
55
- i,
45
+ children: e,
46
+ variant: t = "neutral",
47
+ size: _ = 200,
48
+ fullWidth: o = !1,
49
+ loading: r,
50
+ as: a = "button",
51
+ disabled: i,
52
+ className: c,
53
+ ...m
54
+ }, l) => /* @__PURE__ */ d(
55
+ a,
56
56
  {
57
57
  className: p(
58
58
  "hsui-button",
59
- d,
60
- n.button,
61
- n[s],
62
- n[`size-${o}`],
59
+ c,
60
+ s.button,
61
+ s[t],
62
+ s[`size-${_}`],
63
63
  {
64
- [n.full]: a,
65
- [n.loading]: e
64
+ [s.full]: o,
65
+ [s.loading]: r
66
66
  }
67
67
  ),
68
- disabled: r || e,
68
+ disabled: i || r,
69
69
  ref: l,
70
- ...c,
70
+ ...m,
71
71
  children: [
72
- e && /* @__PURE__ */ t("span", { className: n.loader, children: /* @__PURE__ */ t(h, {}) }),
73
- /* @__PURE__ */ t("span", { className: n.content, children: _ })
72
+ r && /* @__PURE__ */ n("span", { className: s.loader, children: /* @__PURE__ */ n(f, {}) }),
73
+ /* @__PURE__ */ n("span", { className: s.content, children: e })
74
74
  ]
75
75
  }
76
76
  )