trepur_components 2.4.5 → 2.4.8

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/README.md CHANGED
@@ -17,3 +17,11 @@ You will need to log into npm if you have not done so already
17
17
  ### `npm publish`
18
18
 
19
19
  Publishes the new version of the package to npm - new version number to be updated in package.json before the publish is executed
20
+
21
+ ## Adding a new theme
22
+
23
+ To add a new theme:
24
+
25
+ 1. create a new css file in the src/styles/themes folder
26
+ 2. ensure that line 1 of the css file contains the new themes name
27
+ 3. add the file import for the new css file in the src/styles/globals.css files
@@ -4,15 +4,18 @@ import { Input } from '.';
4
4
  declare const meta: {
5
5
  title: string;
6
6
  component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
- Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
7
+ Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLabelElement> & {
8
8
  required?: boolean;
9
- } & import('react').RefAttributes<HTMLDivElement>>;
9
+ } & import('react').RefAttributes<HTMLLabelElement>>;
10
10
  Validation: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
11
11
  Actions: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
12
- Wrapper: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLInputElement> & import('.').InputContextProps & import('react').RefAttributes<HTMLInputElement>>;
12
+ Wrapper: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLInputElement> & {
13
+ handleChange?: (e: any) => void;
14
+ } & import('react').RefAttributes<HTMLInputElement>>;
13
15
  };
14
16
  args: {
15
17
  placeholder: string;
18
+ id: string;
16
19
  children: import("react/jsx-runtime").JSX.Element[];
17
20
  };
18
21
  };
@@ -1,6 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
 
3
3
  export interface InputContextProps {
4
+ id: string;
4
5
  autoComplete?: string;
5
6
  disabled?: boolean;
6
7
  formId?: string;
@@ -23,11 +24,13 @@ export interface InputContextProps {
23
24
  value?: string;
24
25
  }
25
26
  declare const Input: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & InputContextProps & import('react').RefAttributes<HTMLDivElement>> & {
26
- Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
27
+ Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLabelElement> & {
27
28
  required?: boolean;
28
- } & import('react').RefAttributes<HTMLDivElement>>;
29
+ } & import('react').RefAttributes<HTMLLabelElement>>;
29
30
  Validation: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
30
31
  Actions: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
31
- Wrapper: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & InputContextProps & import('react').RefAttributes<HTMLInputElement>>;
32
+ Wrapper: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & {
33
+ handleChange?: (e: any) => void;
34
+ } & import('react').RefAttributes<HTMLInputElement>>;
32
35
  };
33
36
  export { Input };
@@ -1,102 +1,107 @@
1
- import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
- import { forwardRef as o, useMemo as v, createContext as h, useContext as p } from "react";
3
- import d from "clsx";
4
- const s = h(null), x = o(({ children: r, className: a, errors: t, placeholder: l, ...e }, i) => {
5
- const m = v(
1
+ import { jsx as l, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as n, useMemo as w, createContext as j, useContext as x } from "react";
3
+ import s from "clsx";
4
+ import { Icon as A } from "../Icon/index.js";
5
+ import { faCircleExclamation as L } from "@fortawesome/free-solid-svg-icons";
6
+ const u = j(null), f = n(({ id: e, children: r, className: t, errors: a, placeholder: i, ...o }, d) => {
7
+ const p = w(
6
8
  () => ({
7
- errors: t,
8
- placeholder: l,
9
- ...e
9
+ id: e,
10
+ errors: a,
11
+ placeholder: i,
12
+ ...o
10
13
  }),
11
- [t, e]
14
+ [a, o]
12
15
  );
13
- return /* @__PURE__ */ n(s.Provider, { value: m, children: /* @__PURE__ */ n(
16
+ return /* @__PURE__ */ l(u.Provider, { value: p, children: /* @__PURE__ */ l(
14
17
  "div",
15
18
  {
16
- ref: i,
17
- className: d("grid grid-cols-1 gap-2 w-full rounded-md", a),
18
- ...e,
19
+ ref: d,
20
+ className: s("grid grid-cols-1 gap-1 w-full rounded-md", t),
21
+ ...o,
19
22
  children: r
20
23
  }
21
24
  ) });
22
- }), f = o(({ children: r, handleChange: a, onClick: t, onBlur: l, ...e }, i) => {
23
- const { placeholder: m, value: g, errors: u } = p(s) || {};
24
- return /* @__PURE__ */ c("div", { ref: i, className: "group/input relative isolate flex w-full", children: [
25
- /* @__PURE__ */ n(
25
+ }), b = n(({ className: e, children: r, handleChange: t, onClick: a, onBlur: i, ...o }, d) => {
26
+ const { id: p, placeholder: y, value: g, errors: m } = x(u) || {};
27
+ return /* @__PURE__ */ c("div", { ref: d, className: "group/input relative isolate flex w-full", children: [
28
+ /* @__PURE__ */ l(
26
29
  "input",
27
30
  {
28
- placeholder: m,
29
- className: d(
31
+ id: p,
32
+ placeholder: y,
33
+ className: s(
30
34
  "h-10 border border-black rounded-md flex w-full bg-card px-3 py-1.5 text-sm placeholder:text-gray-500",
31
35
  {
32
- "border-border border": !u,
33
- "border-red-600 border-2": u
34
- }
36
+ "border-border border": !m,
37
+ "border-red-600 border-2": m
38
+ },
39
+ e
35
40
  ),
36
41
  value: g,
37
- readOnly: e.readOnly,
38
- disabled: e.disabled,
39
- autoComplete: e.autoComplete,
40
- form: e.formId,
41
- maxLength: e.maxLength,
42
- minLength: e.minLength,
43
- pattern: e.pattern,
44
- required: e.required,
45
- type: e.type,
46
- name: e.name,
47
- onChange: (N) => a == null ? void 0 : a(N.target.value),
48
- onClick: t,
49
- onBlur: l,
50
- onFocus: e.onFocus
42
+ onChange: (h) => t == null ? void 0 : t(h.target.value),
43
+ onClick: a,
44
+ onBlur: i,
45
+ ...o
51
46
  }
52
47
  ),
53
48
  r
54
49
  ] });
55
- }), b = o(
56
- ({ className: r, children: a }, t) => /* @__PURE__ */ n(
50
+ }), I = n(
51
+ ({ className: e, children: r }, t) => /* @__PURE__ */ l(
57
52
  "div",
58
53
  {
59
54
  ref: t,
60
- className: d(
55
+ className: s(
61
56
  "absolute right-1 top-1/2 my-auto -translate-y-1/2",
62
- r
57
+ e
63
58
  ),
64
- children: a
59
+ children: r
65
60
  }
66
61
  )
67
- ), y = o(({ className: r, children: a, required: t = !1 }, l) => /* @__PURE__ */ c(
68
- "div",
62
+ ), N = n(({ id: e, className: r, children: t, required: a }) => /* @__PURE__ */ c(
63
+ "label",
69
64
  {
70
- ref: l,
71
- className: d("flex px-1 text-sm font-normal leading-5", r),
65
+ htmlFor: e,
66
+ className: s("flex px-1 text-md font-normal leading-5", r),
72
67
  children: [
73
- /* @__PURE__ */ n("p", { children: a }),
74
- t && /* @__PURE__ */ n("p", { className: "text-sm font-normal", children: "*" })
68
+ t,
69
+ a && /* @__PURE__ */ l("span", { children: "*" })
75
70
  ]
76
71
  }
77
- )), I = o(({ ...r }, a) => {
78
- const { errors: t } = p(s) || {};
79
- return /* @__PURE__ */ n(
72
+ )), v = n(({ ...e }, r) => {
73
+ const { errors: t } = x(u) || {};
74
+ return t ? /* @__PURE__ */ l(
80
75
  "div",
81
76
  {
82
- ref: a,
77
+ ref: r,
83
78
  className: "text-sm pl-1 font-medium text-error-default",
84
- ...r,
85
- children: t == null ? void 0 : t.map((l, e) => /* @__PURE__ */ n("p", { children: l }, `error-msg-${e + 1}`))
79
+ ...e,
80
+ children: t == null ? void 0 : t.map((a) => /* @__PURE__ */ c("div", { className: "text-xs gap-1 flex", children: [
81
+ /* @__PURE__ */ l(
82
+ A,
83
+ {
84
+ size: "xs",
85
+ className: "my-auto text-error-default",
86
+ icon: L
87
+ }
88
+ ),
89
+ /* @__PURE__ */ l("span", { children: a }, `error-msg:${a.replace(" ", "_")}`)
90
+ ] }))
86
91
  }
87
- );
92
+ ) : null;
88
93
  });
89
- x.displayName = "Input";
90
- b.displayName = "Input.Actions";
91
- y.displayName = "Input.Label";
92
- I.displayName = "Input.Validation";
93
- f.displayName = "Input.Wrapper";
94
- const A = Object.assign(x, {
95
- Label: y,
96
- Validation: I,
97
- Actions: b,
98
- Wrapper: f
94
+ f.displayName = "Input";
95
+ I.displayName = "Input.Actions";
96
+ N.displayName = "Input.Label";
97
+ v.displayName = "Input.Validation";
98
+ b.displayName = "Input.Wrapper";
99
+ const E = Object.assign(f, {
100
+ Label: N,
101
+ Validation: v,
102
+ Actions: I,
103
+ Wrapper: b
99
104
  });
100
105
  export {
101
- A as Input
106
+ E as Input
102
107
  };
@@ -3,17 +3,17 @@ import { Select } from '.';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
6
- component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('.').SelectContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
- Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLIElement> & {
8
- value: string;
9
- } & import('react').RefAttributes<HTMLLIElement>>;
10
- Label: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement> & {
6
+ component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & Omit<import('react').HTMLAttributes<HTMLDivElement> & import('../Input').InputContextProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('.').SelectContextProps & import('react').RefAttributes<HTMLDivElement>> & {
7
+ Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
8
+ Label: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLLabelElement> & {
11
9
  required?: boolean;
12
- } & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
10
+ } & import('react').RefAttributes<HTMLLabelElement>, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
13
11
  };
14
12
  parameters: {};
15
13
  args: {
14
+ id: string;
16
15
  label: string;
16
+ placeholder: string;
17
17
  children: import("react/jsx-runtime").JSX.Element[];
18
18
  };
19
19
  };
@@ -10,14 +10,13 @@ export interface SelectContextProps {
10
10
  internalValue?: string;
11
11
  setInternalValue?: (val: string) => void;
12
12
  label?: string;
13
+ placeholder?: string;
13
14
  handleChange?: (e: any) => void;
14
15
  }
15
- declare const Select: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & SelectContextProps & import('react').RefAttributes<HTMLDivElement>> & {
16
- Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & {
17
- value: string;
18
- } & import('react').RefAttributes<HTMLLIElement>>;
19
- Label: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement> & {
16
+ declare const Select: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & Omit<HTMLAttributes<HTMLDivElement> & import('../Input').InputContextProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & SelectContextProps & import('react').RefAttributes<HTMLDivElement>> & {
17
+ Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
18
+ Label: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLLabelElement> & {
20
19
  required?: boolean;
21
- } & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
20
+ } & import('react').RefAttributes<HTMLLabelElement>, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
22
21
  };
23
22
  export { Select };
@@ -1,154 +1,160 @@
1
- import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
- import { forwardRef as i, useState as x, useCallback as y, useEffect as A, createContext as E, useContext as p } from "react";
3
- import u from "clsx";
4
- import { Input as m } from "../Input/index.js";
5
- import { Card as H } from "../Card/index.js";
6
- import { Button as v } from "../Button/index.js";
1
+ import { jsx as l, jsxs as L } from "react/jsx-runtime";
2
+ import { forwardRef as s, useState as I, useCallback as v, useEffect as A, createContext as H, useContext as p } from "react";
3
+ import d from "clsx";
4
+ import { Input as i } from "../Input/index.js";
5
+ import { Card as K } from "../Card/index.js";
6
+ import { Button as w } from "../Button/index.js";
7
7
  import { faCaretDown as P } from "@fortawesome/fontawesome-free-solid";
8
- const d = E(null), w = i(
8
+ const m = H(null), k = s(
9
9
  ({
10
- id: l,
11
- open: a,
10
+ id: n,
11
+ open: t,
12
12
  defaultOpen: r,
13
- onOpenChange: t,
13
+ onOpenChange: a,
14
14
  onChange: e,
15
- className: c,
16
- children: s,
15
+ className: o,
16
+ children: u,
17
17
  loading: f,
18
- label: T,
18
+ label: b,
19
+ placeholder: S,
19
20
  ...B
20
21
  }) => {
21
- const [D, M] = x(a ?? r), [S, b] = x(""), N = y(
22
- (n) => {
23
- M(n), t == null || t(n);
22
+ const [E, M] = I(t ?? r), [y, x] = I(""), N = v(
23
+ (c) => {
24
+ M(c), a == null || a(c);
24
25
  },
25
- [t]
26
+ [a]
26
27
  ), V = {
27
28
  loading: f,
28
- label: T,
29
- open: D,
29
+ label: b,
30
+ placeholder: S,
31
+ open: E,
30
32
  setOpen: N,
31
- internalValue: S,
32
- setInternalValue: b
33
+ internalValue: y,
34
+ setInternalValue: x
33
35
  };
34
36
  A(
35
- () => N(a ?? r ?? !1),
36
- [a, r, N]
37
+ () => N(t ?? r ?? !1),
38
+ [t, r, N]
37
39
  );
38
- const z = y(
39
- (n) => {
40
- S.includes(n) ? (b(""), e == null || e("")) : (b(n), e == null || e(n));
40
+ const h = v(
41
+ (c) => {
42
+ alert(c), y.includes(c) ? (x(""), e == null || e("")) : (x(c), e == null || e(c));
41
43
  },
42
- [S, e]
44
+ [y, e]
43
45
  );
44
- return /* @__PURE__ */ o(d.Provider, { value: V, children: /* @__PURE__ */ I("div", { className: "grid gap-1", children: [
45
- /* @__PURE__ */ o(
46
- g,
46
+ return /* @__PURE__ */ l(m.Provider, { value: V, children: /* @__PURE__ */ L("div", { className: "relative", children: [
47
+ /* @__PURE__ */ l(
48
+ D,
47
49
  {
48
- id: l,
49
- className: c,
50
- onChange: () => z,
50
+ id: n,
51
+ className: o,
52
+ onChange: () => h,
51
53
  ...B,
52
- children: s
54
+ children: u
53
55
  }
54
56
  ),
55
- /* @__PURE__ */ o(j, { children: s })
57
+ /* @__PURE__ */ l(T, { children: u })
56
58
  ] }) });
57
59
  }
58
- ), R = i(({ className: l, ...a }, r) => {
59
- const { open: t, setOpen: e } = p(d) || {};
60
- return /* @__PURE__ */ o(
61
- v,
60
+ ), R = s(({ className: n, ...t }, r) => {
61
+ const { open: a, setOpen: e } = p(m) || {};
62
+ return /* @__PURE__ */ l(
63
+ w,
62
64
  {
65
+ tabIndex: -1,
63
66
  ref: r,
64
- className: l,
67
+ className: n,
65
68
  "aria-label": "toggle open",
66
- onClick: () => e == null ? void 0 : e(!t),
69
+ onClick: () => e == null ? void 0 : e(!a),
67
70
  variant: "ghost",
68
71
  size: "sm",
69
- ...a,
70
- children: /* @__PURE__ */ o(
71
- v.Icon,
72
+ ...t,
73
+ children: /* @__PURE__ */ l(
74
+ w.Icon,
72
75
  {
73
- className: u("transition-transform duration-300 ease-in-out", {
74
- "rotate-180 transform": t
76
+ className: d("transition-transform duration-300 ease-in-out", {
77
+ "rotate-180 transform": a
75
78
  }),
76
79
  icon: P
77
80
  }
78
81
  )
79
82
  }
80
83
  );
81
- }), L = i(({ className: l, children: a }, r) => /* @__PURE__ */ o(m.Label, { className: l, ref: r, children: a })), g = i(({ className: l }, a) => {
82
- const { open: r, setOpen: t, internalValue: e, label: c, handleChange: s } = p(d) || {};
83
- return /* @__PURE__ */ I(
84
- m,
84
+ }), j = s(({ className: n, children: t }, r) => /* @__PURE__ */ l(i.Label, { className: n, ref: r, children: t })), D = s(({ id: n, className: t, ...r }, a) => {
85
+ const { open: e, setOpen: o, internalValue: u, label: f, placeholder: b } = p(m) || {};
86
+ return /* @__PURE__ */ L(
87
+ i,
85
88
  {
86
- className: u(
87
- "w-full rounded-md bg-white caret-transparent ",
88
- l
89
- ),
89
+ id: n,
90
+ className: d("w-full rounded-md caret-transparent ", t),
90
91
  ref: a,
91
- "data-open": r,
92
- placeholder: "boo",
93
- value: e ?? "",
94
- onChange: (f) => s == null ? void 0 : s(f.target.value),
92
+ "data-open": e,
93
+ placeholder: b,
94
+ value: u ?? "",
95
+ ...r,
95
96
  children: [
96
- /* @__PURE__ */ o(m.Label, { children: c }),
97
- /* @__PURE__ */ o(
98
- m.Wrapper,
97
+ /* @__PURE__ */ l(i.Label, { children: f }),
98
+ /* @__PURE__ */ l(
99
+ i.Wrapper,
99
100
  {
100
- onClick: () => t == null ? void 0 : t(!r),
101
- onBlur: () => t == null ? void 0 : t(!1),
102
- className: u(
101
+ onClick: () => o == null ? void 0 : o(!e),
102
+ onBlur: () => o == null ? void 0 : o(!1),
103
+ className: d(
103
104
  "caret-transparent rounded hover:cursor-pointer data-[open=true]:border-primary data-[open=true]:ring-1 data-[open=true]:ring-primary",
104
- l
105
+ t
105
106
  ),
106
- children: /* @__PURE__ */ o(m.Actions, { children: /* @__PURE__ */ o(R, {}) })
107
+ onKeyDown: (S) => {
108
+ S.key === "Enter" && (o == null || o(!e));
109
+ },
110
+ children: /* @__PURE__ */ l(i.Actions, { children: /* @__PURE__ */ l(R, {}) })
107
111
  }
108
112
  )
109
113
  ]
110
114
  }
111
115
  );
112
- }), j = i(({ children: l, className: a, ...r }, t) => {
113
- const { open: e } = p(d) || {};
114
- return e ? /* @__PURE__ */ o(
115
- H,
116
+ }), T = s(({ children: n, className: t, ...r }, a) => {
117
+ const { open: e } = p(m) || {};
118
+ return e ? /* @__PURE__ */ l(
119
+ K,
116
120
  {
117
- ref: t,
118
- className: u(
119
- "!px-0 data-[state=open]:animate-in w-full data-[state=open]:fade-in-0",
120
- a
121
+ ref: a,
122
+ className: d(
123
+ "!rounded-md z-10 mt-0.5 absolute overflow-hidden !p-0 data-[state=open]:animate-in w-full data-[state=open]:fade-in-0",
124
+ t
121
125
  ),
122
126
  ...r,
123
- children: /* @__PURE__ */ o("ul", { children: l })
127
+ children: /* @__PURE__ */ l("ul", { children: n })
124
128
  }
125
129
  ) : null;
126
- }), k = i(({ children: l, value: a, className: r, ...t }, e) => {
127
- const { setInternalValue: c } = p(d) || {};
128
- return /* @__PURE__ */ o(
129
- "li",
130
- {
131
- ref: e,
132
- className: u(
133
- "hover:cursor-pointer hover:bg-gray-100 w-full py-2 px-4",
134
- r
135
- ),
136
- value: a,
137
- onMouseDown: (s) => c == null ? void 0 : c(s.target.innerHTML),
138
- ...t,
139
- children: l
140
- }
141
- );
142
- });
143
- w.displayName = "Select";
144
- j.displayName = "Select.Content";
145
- g.displayName = "Select.Trigger";
146
- k.displayName = "Select.Item";
147
- L.displayName = "Select.Label";
148
- const Q = Object.assign(w, {
149
- Item: k,
150
- Label: L
130
+ }), z = s(
131
+ ({ children: n, className: t, ...r }, a) => {
132
+ const { setInternalValue: e } = p(m) || {};
133
+ return /* @__PURE__ */ l(
134
+ "li",
135
+ {
136
+ tabIndex: 1,
137
+ ref: a,
138
+ className: d(
139
+ "hover:cursor-pointer hover:bg-gray-100 w-full py-2 px-4",
140
+ t
141
+ ),
142
+ onMouseDown: (o) => e == null ? void 0 : e(o.target.innerHTML),
143
+ ...r,
144
+ children: n
145
+ }
146
+ );
147
+ }
148
+ );
149
+ k.displayName = "Select";
150
+ T.displayName = "Select.Content";
151
+ D.displayName = "Select.Trigger";
152
+ z.displayName = "Select.Item";
153
+ j.displayName = "Select.Label";
154
+ const U = Object.assign(k, {
155
+ Item: z,
156
+ Label: j
151
157
  });
152
158
  export {
153
- Q as Select
159
+ U as Select
154
160
  };
@@ -6,7 +6,7 @@ body.theme-paa {
6
6
  --color-loading: #a3a3a3;
7
7
 
8
8
  /* pill */
9
- --color-error-default: #ffffff;
9
+ --color-error-default: #b91c1c;
10
10
  --color-warning-default: #a16207;
11
11
  --color-success-default: #047857;
12
12
  --color-info-default: #0369a1;
@@ -20,13 +20,13 @@ body.theme-paa {
20
20
  --color-button-primary-active: #68a97b;
21
21
  --color-button-primary-border: #68a97b;
22
22
  --color-button-primary-bg: #68a97b;
23
- --color-button-primary-text: #68a97b;
23
+ --color-button-primary-text: #1d341e;
24
24
  --color-button-primary-hover: #68a97b;
25
25
 
26
26
  --color-button-secondary-active: #1d341e;
27
27
  --color-button-secondary-border: #1d341e;
28
28
  --color-button-secondary-bg: #1d341e;
29
- --color-button-secondary-text: #1d341e;
29
+ --color-button-secondary-text: #ede9d3;
30
30
  --color-button-secondary-hover: #1d341e;
31
31
 
32
32
  --color-button-ghost-active: #242424;
@@ -6,7 +6,7 @@ body.theme-penrithmrt {
6
6
  --color-loading: #a3a3a3;
7
7
 
8
8
  /* pill */
9
- --color-error-default: #ffffff;
9
+ --color-error-default: #b91c1c;
10
10
  --color-warning-default: #a16207;
11
11
  --color-success-default: #047857;
12
12
  --color-info-default: #0369a1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trepur_components",
3
- "version": "2.4.5",
3
+ "version": "2.4.8",
4
4
  "description": "component lib",
5
5
  "author": "trepur_ttenneb",
6
6
  "private": false,