trepur_components 2.4.8 → 2.4.9

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,30 +1,30 @@
1
- import { jsx as e, jsxs as b } from "react/jsx-runtime";
2
- import { forwardRef as p, useState as u } from "react";
3
- import r from "clsx";
4
- const s = p(({ className: i, onClick: a, variant: t = "primary" }, l) => {
5
- const [o, g] = u(!1), m = (n) => {
6
- g(!o), a == null || a(n);
1
+ import { jsx as r, jsxs as m } from "react/jsx-runtime";
2
+ import { forwardRef as h, useState as u } from "react";
3
+ import e from "clsx";
4
+ const s = h(({ className: i, onClick: a, variant: t = "primary" }, g) => {
5
+ const [o, l] = u(!1), b = (n) => {
6
+ l(!o), a == null || a(n);
7
7
  };
8
- return /* @__PURE__ */ e(
8
+ return /* @__PURE__ */ r(
9
9
  "button",
10
10
  {
11
- className: r(
11
+ className: e(
12
12
  "h-13 w-13 rounded-xl stroke-white transition-all duration-300 ease-in-out",
13
13
  {
14
14
  "bg-button-primary-bg hover:bg-button-primary-hover": t === "primary",
15
15
  "bg-button-secondary-bg hover:bg-button-secondary-hover": t === "secondary",
16
- "bg-button-ghost-bg hover:bg-button-ghost-hover": t === "ghost"
16
+ "bg-button-ghost-bg text-button-ghost-text hover:text-button-ghost-text-hover hover:bg-button-ghost-bg-hover": t === "ghost"
17
17
  },
18
18
  i
19
19
  ),
20
- ref: l,
20
+ ref: g,
21
21
  onClick: (n) => {
22
- m(n);
22
+ b(n);
23
23
  },
24
- children: /* @__PURE__ */ b(
24
+ children: /* @__PURE__ */ m(
25
25
  "svg",
26
26
  {
27
- className: r(
27
+ className: e(
28
28
  "transition-backgroundColor mx-auto transform overflow-visible duration-500",
29
29
  {
30
30
  "fill-button-primary-text": t === "primary",
@@ -37,10 +37,10 @@ const s = p(({ className: i, onClick: a, variant: t = "primary" }, l) => {
37
37
  viewBox: "0 0 24 15",
38
38
  xmlns: "http://www.w3.org/2000/svg",
39
39
  children: [
40
- /* @__PURE__ */ e(
40
+ /* @__PURE__ */ r(
41
41
  "path",
42
42
  {
43
- className: r(
43
+ className: e(
44
44
  "origin-top-left transition-transform duration-200 ease-linear",
45
45
  {
46
46
  "origin-top-left -translate-y-0.5 translate-x-1 rotate-45": o
@@ -49,20 +49,20 @@ const s = p(({ className: i, onClick: a, variant: t = "primary" }, l) => {
49
49
  d: "M0 1.5C0 0.947715 0.447715 0.5 1 0.5H21C21.5523 0.5 22 0.947715 22 1.5C22 2.05228 21.5523 2.5 21 2.5H1C0.447716 2.5 0 2.05228 0 1.5Z"
50
50
  }
51
51
  ),
52
- /* @__PURE__ */ e(
52
+ /* @__PURE__ */ r(
53
53
  "path",
54
54
  {
55
- className: r("transition-opacity duration-200 ease-linear", {
55
+ className: e("transition-opacity duration-200 ease-linear", {
56
56
  "opacity-0": o,
57
57
  "opacity-100": !o
58
58
  }),
59
59
  d: "M0 7.5C0 6.94772 0.447715 6.5 1 6.5H21C21.5523 6.5 22 6.94772 22 7.5C22 8.05228 21.5523 8.5 21 8.5H1C0.447716 8.5 0 8.05228 0 7.5Z"
60
60
  }
61
61
  ),
62
- /* @__PURE__ */ e(
62
+ /* @__PURE__ */ r(
63
63
  "path",
64
64
  {
65
- className: r(
65
+ className: e(
66
66
  "origin-bottom-left transition-transform duration-200 ease-linear",
67
67
  {
68
68
  "origin-bottom-left translate-x-1 translate-y-px -rotate-45": o
@@ -78,7 +78,7 @@ const s = p(({ className: i, onClick: a, variant: t = "primary" }, l) => {
78
78
  );
79
79
  });
80
80
  s.displayName = "HamburgerIcon";
81
- const f = Object.assign(s);
81
+ const x = Object.assign(s);
82
82
  export {
83
- f as HamburgerIcon
83
+ x as HamburgerIcon
84
84
  };
@@ -31,9 +31,10 @@ body.theme-paa {
31
31
 
32
32
  --color-button-ghost-active: #242424;
33
33
  --color-button-ghost-border: #ffffff00;
34
- --color-button-ghost-bg: #cbcbcb00;
35
- --color-button-ghost-text: #3c2f71;
36
- --color-button-ghost-hover: #c8c7c7;
34
+ --color-button-ghost-bg: #68a97b;
35
+ --color-button-ghost-text: #1d341e;
36
+ --color-button-ghost-bg-hover: #1d341e;
37
+ --color-button-ghost-text-hover: #68a97b;
37
38
 
38
39
  --color-button-bordered-active: #242424;
39
40
  --color-button-bordered-border: #9d9d9d;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trepur_components",
3
- "version": "2.4.8",
3
+ "version": "2.4.9",
4
4
  "description": "component lib",
5
5
  "author": "trepur_ttenneb",
6
6
  "private": false,