trepur_components 2.3.23 → 2.3.25

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.
@@ -24,3 +24,6 @@ export declare const Ghost: Story;
24
24
  export declare const Basic: Story;
25
25
  export declare const Loading: Story;
26
26
  export declare const Link: Story;
27
+ export declare const Small: Story;
28
+ export declare const Medium: Story;
29
+ export declare const Large: Story;
@@ -4,9 +4,10 @@ export interface ButtonProps {
4
4
  variant?: 'primary' | 'secondary' | 'ghost' | 'bordered' | 'basic';
5
5
  disabled?: boolean;
6
6
  loading?: boolean;
7
- type?: 'button' | 'link';
7
+ type?: 'button' | 'link' | 'submit';
8
8
  href?: string;
9
9
  target?: string;
10
+ size?: 'sm' | 'md' | 'lg';
10
11
  }
11
12
  declare const Button: import('react').ForwardRefExoticComponent<((HTMLAttributes<HTMLButtonElement> | HTMLAttributes<HTMLAnchorElement>) & ButtonProps) & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>> & {
12
13
  Icon: import('react').ForwardRefExoticComponent<{
@@ -1,26 +1,26 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as n } from "react";
3
- import { Icon as m } from "../Icon/index.js";
3
+ import { Icon as g } from "../Icon/index.js";
4
4
  import s from "clsx";
5
- const g = n(({ children: o, ...e }) => /* @__PURE__ */ r("button", { type: "button", ...e, children: o })), h = n(({ children: o, ...e }) => /* @__PURE__ */ r("div", { className: "inline-block", children: /* @__PURE__ */ r("a", { type: "button", className: "inline-grid", ...e, children: o }) })), a = n(
5
+ const l = n(({ children: o, ...e }) => /* @__PURE__ */ r("button", { type: "button", ...e, children: o })), x = n(({ children: o, ...e }) => /* @__PURE__ */ r("div", { className: "inline-block", children: /* @__PURE__ */ r("a", { type: "button", className: "inline-grid", ...e, children: o }) })), c = n(
6
6
  ({
7
7
  className: o,
8
8
  children: e,
9
9
  loading: t = !1,
10
10
  variant: b = "primary",
11
11
  type: i = "button",
12
- disabled: y,
13
- href: d,
12
+ disabled: h,
13
+ href: m,
14
14
  target: p,
15
- ...l
15
+ size: a = "md"
16
16
  }) => /* @__PURE__ */ r(
17
- i === "button" ? g : h,
17
+ i === "button" ? l : x,
18
18
  {
19
- href: d,
19
+ href: m,
20
20
  target: p,
21
21
  disabled: t,
22
22
  className: s(
23
- "font-regular flex items-center gap-2 rounded-lg border px-8 py-3 text-center text-lg",
23
+ "flex items-center gap-3 rounded border text-center",
24
24
  {
25
25
  "duration-200": !t,
26
26
  "border-button-primary-border bg-button-primary-bg text-button-primary-text hover:bg-button-primary-hover active:bg-button-primary-active": b === "primary" && !t,
@@ -28,20 +28,23 @@ const g = n(({ children: o, ...e }) => /* @__PURE__ */ r("button", { type: "butt
28
28
  "border-button-ghost-border bg-button-ghost-bg text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": b === "ghost" && !t,
29
29
  "border-button-bordered-border text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": b === "bordered" && !t,
30
30
  "border-button-basic-border bg-button-basic-bg text-button-basic-text hover:bg-button-basic-hover active:bg-button-basic-active": b === "basic" && !t,
31
- "w-40 animate-pulse border-loading bg-loading": t
31
+ "w-40 animate-pulse border-loading bg-loading": t,
32
+ "px-12 py-3 text-base font-normal leading-4": a === "sm",
33
+ "px-12 py-3 text-lg font-normal leading-8": a === "md",
34
+ "px-12 py-4 text-xl font-normal leading-8": a === "lg"
32
35
  },
33
36
  o
34
37
  ),
35
38
  children: !t && e
36
39
  }
37
40
  )
38
- ), c = n(({ className: o, ...e }, t) => /* @__PURE__ */ r("p", { className: s("text-md", o), ref: t, ...e })), u = n(({ icon: o }, e) => /* @__PURE__ */ r(m, { size: "md", ref: e, icon: o }));
39
- a.displayName = "Button";
40
- u.displayName = "Button.Icon";
41
- c.displayName = "Button.Label";
42
- const I = Object.assign(a, {
43
- Icon: u,
44
- Label: c
41
+ ), u = n(({ className: o, ...e }, t) => /* @__PURE__ */ r("p", { className: s("text-md", o), ref: t, ...e })), d = n(({ icon: o }, e) => /* @__PURE__ */ r(g, { size: "md", ref: e, icon: o }));
42
+ c.displayName = "Button";
43
+ d.displayName = "Button.Icon";
44
+ u.displayName = "Button.Label";
45
+ const I = Object.assign(c, {
46
+ Icon: d,
47
+ Label: u
45
48
  });
46
49
  export {
47
50
  I as Button
@@ -1,82 +1,82 @@
1
- import { jsx as o, jsxs as f } from "react/jsx-runtime";
2
- import { createContext as I, forwardRef as s, useMemo as b, useRef as N, useContext as i } from "react";
3
- import h from "clsx";
4
- const d = I(null), u = s(({ children: n, errors: t, placeholder: e, ...r }, l) => {
5
- const a = b(
1
+ import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
+ import { createContext as b, forwardRef as a, useMemo as N, useRef as h, useContext as i } from "react";
3
+ import m from "clsx";
4
+ const d = b(null), p = a(({ children: r, errors: t, placeholder: n, ...e }, l) => {
5
+ const s = N(
6
6
  () => ({
7
7
  errors: t,
8
- placeholder: e,
9
- ...r
8
+ placeholder: n,
9
+ ...e
10
10
  }),
11
- [t, r]
11
+ [t, e]
12
12
  );
13
- return /* @__PURE__ */ o(d.Provider, { value: a, children: /* @__PURE__ */ o("div", { ref: l, children: n }) });
14
- }), m = s(
15
- ({ children: n, ...t }, e) => {
16
- const r = N(null);
13
+ return /* @__PURE__ */ o(d.Provider, { value: s, children: /* @__PURE__ */ o("div", { ref: l, children: r }) });
14
+ }), u = a(
15
+ ({ children: r, ...t }, n) => {
16
+ const e = h(null);
17
17
  return /* @__PURE__ */ o(
18
18
  "div",
19
19
  {
20
20
  className: "mt-4 w-full",
21
21
  onClick: () => {
22
22
  var l;
23
- return (l = r.current) == null ? void 0 : l.focus();
23
+ return (l = e.current) == null ? void 0 : l.focus();
24
24
  },
25
- ref: e,
25
+ ref: n,
26
26
  ...t,
27
- children: n
27
+ children: r
28
28
  }
29
29
  );
30
30
  }
31
- ), p = s(({ children: n, required: t = !1 }, e) => /* @__PURE__ */ f(
31
+ ), c = a(({ className: r, children: t, required: n = !1 }, e) => /* @__PURE__ */ I(
32
32
  "div",
33
33
  {
34
34
  ref: e,
35
- className: "text-md flex items-center rounded-2xl px-1 font-semibold",
35
+ className: m("flex px-1 text-sm font-normal leading-5", r),
36
36
  children: [
37
- /* @__PURE__ */ o("p", { children: n }),
38
- t && /* @__PURE__ */ o("p", { className: "font-semiBold text-lg", children: " *" })
37
+ /* @__PURE__ */ o("p", { children: t }),
38
+ n && /* @__PURE__ */ o("p", { className: "text-sm font-normal", children: " *" })
39
39
  ]
40
40
  }
41
- )), c = s(
42
- ({ ...n }) => {
43
- const { errors: t, placeholder: e } = i(d) || {};
41
+ )), x = a(
42
+ ({ ...r }) => {
43
+ const { errors: t, placeholder: n } = i(d) || {};
44
44
  return /* @__PURE__ */ o(
45
45
  "input",
46
46
  {
47
- placeholder: e,
48
- className: h(
47
+ placeholder: n,
48
+ className: m(
49
49
  "text-ink text-md w-full rounded-md border border-gray-300 bg-white py-2 pl-4",
50
50
  {
51
51
  "border-error border-2": t != null
52
52
  }
53
53
  ),
54
- ...n
54
+ ...r
55
55
  }
56
56
  );
57
57
  }
58
- ), x = s(({ children: n, ...t }, e) => {
59
- const { errors: r } = i(d) || {};
58
+ ), f = a(({ children: r, ...t }, n) => {
59
+ const { errors: e } = i(d) || {};
60
60
  return /* @__PURE__ */ o(
61
61
  "div",
62
62
  {
63
- ref: e,
63
+ ref: n,
64
64
  className: "text-md gap-y-2 pl-1 pt-2 font-semibold text-error-default",
65
65
  ...t,
66
- children: r == null ? void 0 : r.map((l, a) => /* @__PURE__ */ o("p", { children: l }, `error-msg-${a + 1}`))
66
+ children: e == null ? void 0 : e.map((l, s) => /* @__PURE__ */ o("p", { children: l }, `error-msg-${s + 1}`))
67
67
  }
68
68
  );
69
69
  });
70
- u.displayName = "Input";
71
- m.displayName = "Input.Item";
72
- p.displayName = "Input.Label";
73
- c.displayName = "Input.Box";
74
- x.displayName = "Input.Validation";
75
- const C = Object.assign(u, {
76
- Item: m,
77
- Label: p,
78
- Box: c,
79
- Validation: x
70
+ p.displayName = "Input";
71
+ u.displayName = "Input.Item";
72
+ c.displayName = "Input.Label";
73
+ x.displayName = "Input.Box";
74
+ f.displayName = "Input.Validation";
75
+ const C = Object.assign(p, {
76
+ Item: u,
77
+ Label: c,
78
+ Box: x,
79
+ Validation: f
80
80
  });
81
81
  export {
82
82
  C as Input
@@ -29,3 +29,4 @@ declare const meta: {
29
29
  export default meta;
30
30
  type Story = StoryObj<typeof Nav>;
31
31
  export declare const Default: Story;
32
+ export declare const Loading: Story;
@@ -4,6 +4,7 @@ import { HTMLAttributes } from 'react';
4
4
  export interface NavContextProps {
5
5
  expanded?: boolean;
6
6
  setExpanded?: (val: boolean) => void;
7
+ loading?: boolean;
7
8
  }
8
9
  declare const Nav: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & NavContextProps & import('react').RefAttributes<HTMLDivElement>> & {
9
10
  Header: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,117 +1,136 @@
1
- import { jsx as e, jsxs as i, Fragment as H } from "react/jsx-runtime";
2
- import { createContext as C, forwardRef as r, useState as m, useMemo as k, useContext as p, useRef as w } from "react";
1
+ import { jsx as e, jsxs as c, Fragment as v } from "react/jsx-runtime";
2
+ import { createContext as C, forwardRef as n, useState as N, useMemo as k, useContext as m, useRef as w } from "react";
3
3
  import { HamburgerIcon as M } from "../HamburgerIcon/index.js";
4
4
  import { faChevronDown as j } from "@fortawesome/fontawesome-free-solid";
5
- import d from "clsx";
5
+ import l from "clsx";
6
6
  import { Icon as D } from "../Icon/index.js";
7
- const c = C(null), v = r(({ className: a, children: s }, t) => {
8
- const [o, n] = m(!1), l = k(
7
+ import { NavItem as F } from "../NavItem/index.js";
8
+ const i = C(null), f = n(({ className: a, children: t, loading: r }, o) => {
9
+ const [s, d] = N(!1), p = k(
9
10
  () => ({
10
- expanded: o,
11
- setExpanded: n
11
+ expanded: s,
12
+ setExpanded: d,
13
+ loading: r
12
14
  }),
13
- [o, n]
15
+ [s, d]
14
16
  );
15
- return /* @__PURE__ */ e(c.Provider, { value: l, children: /* @__PURE__ */ e("div", { className: a, ref: t, children: s }) });
16
- }), N = r(
17
- ({ className: a, children: s }, t) => /* @__PURE__ */ e(
17
+ return /* @__PURE__ */ e(i.Provider, { value: p, children: /* @__PURE__ */ e("div", { className: a, ref: o, children: t }) });
18
+ }), g = n(
19
+ ({ className: a, children: t }, r) => /* @__PURE__ */ e(
18
20
  "div",
19
21
  {
20
- ref: t,
21
- className: d("relative h-24 w-full bg-nav-bg px-2 py-2", a),
22
- children: s
22
+ ref: r,
23
+ className: l("relative h-24 w-full bg-nav-bg px-2 py-2", a),
24
+ children: t
23
25
  }
24
26
  )
25
- ), g = r(({ className: a, children: s }, t) => {
26
- const { setExpanded: o, expanded: n } = p(c) || {};
27
- return /* @__PURE__ */ i("div", { ref: t, className: d("flex h-full md:hidden", a), children: [
28
- /* @__PURE__ */ e("div", { className: "my-auto", children: /* @__PURE__ */ e(
27
+ ), u = n(({ className: a, children: t }, r) => {
28
+ const { loading: o, setExpanded: s, expanded: d } = m(i) || {};
29
+ return /* @__PURE__ */ c("div", { ref: r, className: l("flex h-full md:hidden", a), children: [
30
+ !o && /* @__PURE__ */ e("div", { className: "my-auto", children: /* @__PURE__ */ e(
29
31
  M,
30
32
  {
31
33
  variant: "ghost",
32
- onClick: () => o == null ? void 0 : o(!n),
34
+ onClick: () => s == null ? void 0 : s(!d),
33
35
  className: "aspect-square"
34
36
  }
35
37
  ) }),
36
- /* @__PURE__ */ e("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform", children: s })
38
+ /* @__PURE__ */ e("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform", children: t })
37
39
  ] });
38
- }), f = r(({ className: a, children: s }, t) => /* @__PURE__ */ e(
40
+ }), x = n(({ className: a, children: t }, r) => /* @__PURE__ */ e(
39
41
  "div",
40
42
  {
41
- ref: t,
42
- className: d(
43
+ ref: r,
44
+ className: l(
43
45
  "hidden justify-between md:flex md:gap-4 md:px-4 lg:gap-8 lg:px-20",
44
46
  a
45
47
  ),
46
- children: s
48
+ children: t
47
49
  }
48
- )), u = r(
49
- ({ className: a, children: s }, t) => {
50
- const { expanded: o } = p(c) || {};
50
+ )), h = n(
51
+ ({ className: a, children: t }, r) => {
52
+ const { expanded: o } = m(i) || {};
51
53
  return o ? /* @__PURE__ */ e(
52
54
  "div",
53
55
  {
54
- ref: t,
55
- className: d(
56
+ ref: r,
57
+ className: l(
56
58
  "h-screen bg-nav-bg px-8 pb-12 pt-2 md:hidden",
57
59
  a
58
60
  ),
59
- children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 md:hidden", children: s })
61
+ children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 md:hidden", children: t })
60
62
  }
61
- ) : /* @__PURE__ */ e(H, {});
63
+ ) : /* @__PURE__ */ e(v, {});
62
64
  }
63
- ), x = r(
64
- ({ className: a, children: s }, t) => /* @__PURE__ */ e(
65
- "div",
66
- {
67
- ref: t,
68
- className: d("my-4 md:flex md:gap-4 lg:gap-8", a),
69
- children: s
70
- }
71
- )
72
- ), h = r(({ className: a, label: s, children: t, active: o = !1 }) => {
73
- const [n, l] = m(!1), y = w(null);
74
- return /* @__PURE__ */ i(
65
+ ), b = n(
66
+ ({ className: a, children: t }, r) => {
67
+ const { loading: o } = m(i) || {};
68
+ return /* @__PURE__ */ e(
69
+ "div",
70
+ {
71
+ ref: r,
72
+ className: l("my-4 md:flex md:gap-4 lg:gap-6", a),
73
+ children: /* @__PURE__ */ c(v, { children: [
74
+ o && [...Array(5)].map((s) => /* @__PURE__ */ e(F, { loading: !0 })),
75
+ !o && t
76
+ ] })
77
+ }
78
+ );
79
+ }
80
+ ), y = n(({ className: a, label: t, children: r, active: o = !1 }) => {
81
+ const [s, d] = N(!1), p = w(null);
82
+ return /* @__PURE__ */ c(
75
83
  "div",
76
84
  {
77
- ref: y,
78
- onClick: () => l(!0),
79
- onMouseLeave: () => l(!1),
80
- className: d(
81
- "relative m-auto text-xl tracking-wider text-nav-text hover:cursor-pointer",
85
+ ref: p,
86
+ onClick: () => d(!0),
87
+ onMouseLeave: () => d(!1),
88
+ className: l(
89
+ "relative m-auto py-0 text-nav-text after:block after:scale-x-0 after:border-b-2 after:border-nav-text after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
82
90
  {
83
91
  "font-bold": o,
84
- "font-normal": !o
92
+ "font-light": !o
85
93
  },
86
94
  a
87
95
  ),
88
96
  children: [
89
- /* @__PURE__ */ i("div", { className: "flex items-center gap-px ", children: [
90
- /* @__PURE__ */ e("p", { children: s }),
91
- /* @__PURE__ */ e(D, { icon: j })
97
+ /* @__PURE__ */ c("div", { className: "flex items-center gap-1", children: [
98
+ /* @__PURE__ */ e("p", { className: "text-lg", children: t }),
99
+ /* @__PURE__ */ e(D, { size: "xs", icon: j })
92
100
  ] }),
93
- n && /* @__PURE__ */ e("div", { className: "absolute -left-5 top-7 z-50 w-40 bg-nav-bg", children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-y-2 bg-nav-bg px-4 py-4", children: t }) })
101
+ s && /* @__PURE__ */ e("div", { className: "absolute -left-5 top-7 z-50 w-40 bg-nav-bg", children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-y-2 bg-nav-bg px-4 py-4", children: r }) })
94
102
  ]
95
103
  }
96
104
  );
97
- }), b = r(({ className: a, src: s, ...t }, o) => /* @__PURE__ */ e("img", { className: d("h-20", a), ref: o, src: s, ...t }));
98
- v.displayName = "Nav";
99
- N.displayName = "Nav.Header";
100
- f.displayName = "Nav.DesktopHeader";
101
- g.displayName = "Nav.MobileHeader";
102
- b.displayName = "Nav.Logo";
103
- x.displayName = "Nav.Section";
104
- u.displayName = "Nav.Body";
105
- h.displayName = "Nav.Folder";
106
- const q = Object.assign(v, {
107
- Header: N,
108
- DesktopHeader: f,
109
- MobileHeader: g,
110
- Section: x,
111
- Logo: b,
112
- Body: u,
113
- Folder: h
105
+ }), H = n(({ className: a, src: t, ...r }, o) => {
106
+ const { loading: s } = m(i) || {};
107
+ return s ? /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "h-20 w-20 animate-pulse bg-gray-300" }) }) : /* @__PURE__ */ e(
108
+ "img",
109
+ {
110
+ className: l("h-20 flex-none", a),
111
+ ref: o,
112
+ src: t,
113
+ ...r
114
+ }
115
+ );
116
+ });
117
+ f.displayName = "Nav";
118
+ g.displayName = "Nav.Header";
119
+ x.displayName = "Nav.DesktopHeader";
120
+ u.displayName = "Nav.MobileHeader";
121
+ H.displayName = "Nav.Logo";
122
+ b.displayName = "Nav.Section";
123
+ h.displayName = "Nav.Body";
124
+ y.displayName = "Nav.Folder";
125
+ const A = Object.assign(f, {
126
+ Header: g,
127
+ DesktopHeader: x,
128
+ MobileHeader: u,
129
+ Section: b,
130
+ Logo: H,
131
+ Body: h,
132
+ Folder: y
114
133
  });
115
134
  export {
116
- q as Nav
135
+ A as Nav
117
136
  };
@@ -4,8 +4,9 @@ import { NavItem } from './';
4
4
  declare const meta: {
5
5
  title: string;
6
6
  component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLAnchorElement> & {
7
- href: string;
7
+ href?: string | undefined;
8
8
  active?: boolean | undefined;
9
+ loading?: boolean | undefined;
9
10
  } & import('react').RefAttributes<HTMLAnchorElement>> & {
10
11
  Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
11
12
  };
@@ -17,3 +18,4 @@ export default meta;
17
18
  type Story = StoryObj<typeof NavItem>;
18
19
  export declare const Default: Story;
19
20
  export declare const Active: Story;
21
+ export declare const Loading: Story;
@@ -1,8 +1,9 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
 
3
3
  declare const NavItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLAnchorElement> & {
4
- href: string;
4
+ href?: string | undefined;
5
5
  active?: boolean | undefined;
6
+ loading?: boolean | undefined;
6
7
  } & import('react').RefAttributes<HTMLAnchorElement>> & {
7
8
  Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
8
9
  };
@@ -1,35 +1,28 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as o } from "react";
3
3
  import c from "clsx";
4
- const n = o(({ active: e, children: t, className: a, href: m, ...l }, f) => /* @__PURE__ */ r(
4
+ const s = o(({ loading: r = !1, active: e, children: t, className: n, href: m, ...f }, i) => r ? /* @__PURE__ */ a("div", { className: "m-auto", children: /* @__PURE__ */ a("div", { className: "h-7 w-20 animate-pulse rounded-md bg-gray-300" }) }) : /* @__PURE__ */ a(
5
5
  "a",
6
6
  {
7
7
  href: m,
8
- ref: f,
8
+ ref: i,
9
9
  className: c(
10
- "m-auto h-8 py-0 text-nav-text after:block after:scale-x-0 after:border-b-4 after:border-nav-text after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
10
+ "m-auto inline-block py-0 text-nav-text after:block after:scale-x-0 after:border-b-2 after:border-nav-text after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
11
11
  {
12
12
  "font-bold": e,
13
- "font-normal": !e
13
+ "font-light": !e
14
14
  },
15
- a
15
+ n
16
16
  ),
17
- ...l,
17
+ ...f,
18
18
  children: t
19
19
  }
20
- )), s = o(({ className: e, ...t }, a) => /* @__PURE__ */ r(
21
- "p",
22
- {
23
- className: "flex-none text-nowrap text-xl tracking-wider",
24
- ref: a,
25
- ...t
26
- }
27
- ));
28
- n.displayName = "NavItem";
29
- s.displayName = "NavItem.Label";
30
- const N = Object.assign(n, {
31
- Label: s
20
+ )), l = o(({ className: r, ...e }, t) => /* @__PURE__ */ a("p", { className: "flex-none text-nowrap text-lg", ref: t, ...e }));
21
+ s.displayName = "NavItem";
22
+ l.displayName = "NavItem.Label";
23
+ const b = Object.assign(s, {
24
+ Label: l
32
25
  });
33
26
  export {
34
- N as NavItem
27
+ b as NavItem
35
28
  };
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- .keen-slider:not([data-keen-slider-disabled]){-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;align-content:flex-start;display:flex;overflow:hidden;position:relative;touch-action:pan-y;-webkit-user-select:none;user-select:none;-khtml-user-select:none;width:100%}.keen-slider:not([data-keen-slider-disabled]) .keen-slider__slide{min-height:100%;overflow:hidden;position:relative;width:100%}.keen-slider:not([data-keen-slider-disabled])[data-keen-slider-reverse]{flex-direction:row-reverse}.keen-slider:not([data-keen-slider-disabled])[data-keen-slider-v]{flex-wrap:wrap}.react-calendar{width:410px;background:#fff;border:none;border-radius:25px;border:1px solid #fff;box-shadow:0 12px 24px #0003;padding:8px;line-height:1.125em}.react-calendar--doubleView .react-calendar__viewContainer{display:flex;margin:-.5em}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{display:flex;height:50px;margin-bottom:1em}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font-size:.75em}.react-calendar--doubleView{width:800px}.react-calendar__month-view{padding-left:20px;padding-right:20px}.react-calendar__tile{height:50px;width:50px}.react-calendar__tile:disabled{background-color:#fff;color:#bebebe}.react-calendar__month-view__days__day--weekend,.react-calendar__month-view__days__day{color:#000}.react-calendar__month-view__days__day--neighboringMonth{visibility:hidden}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{border-radius:50%;border:1px solid;border-color:#000;background:#fff;color:#000}.react-calendar__tile--now{background:#fff;color:#000}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{border-radius:50%;border:1px solid;border-color:#000;background:#fff;color:#000}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#f8f8fa}.react-calendar__tile--active{background:#000;border-radius:50%;color:#fff}.react-calendar__tile--rangeEnd.react-calendar__tile--active:enabled:hover,.react-calendar__tile--rangeEnd.react-calendar__tile--active:enabled:focus,.react-calendar__tile--rangeEnd:enabled{border-radius:0 50% 50% 0;border:1px solid;border-color:#000;background:#000;color:#fff}.react-calendar__tile--rangeStart.react-calendar__tile--active:enabled:hover,.react-calendar__tile--rangeStart.react-calendar__tile--active:enabled:focus,.react-calendar__tile--rangeStart:enabled{border-radius:50% 0 0 50%;border:1px solid;border-color:#000;background:#000;color:#fff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#dfdfe1}.react-calendar--selectRange .react-calendar__tile--rangeStart{background-color:#000;color:#fff}.react-calendar__tile--range{background:#dfdfe1;color:#000;border-radius:0}.react-calendar__tile--rangeStart{border-radius:50% 0 0 50%;background:#000;color:#fff}.react-calendar__tile--rangeEnd{border-radius:0 50% 50% 0;background:#000;color:#fff}.react-calendar__navigation__prev-button,.react-calendar__navigation__next-button{background:#fff}.react-calendar__navigation__prev2-button,.react-calendar__navigation__next2-button{display:none}.react-calendar__navigation__label__labelText{color:#000}.react-calendar__navigation{height:50px}.react-calendar__navigation button{color:#000;width:50px;background:none;font-size:16px}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#bebebe;color:#000;border-radius:50%}.react-calendar__navigation button:disabled{background:#fff;color:#bebebe}abbr[title]{text-decoration:none}.react-calendar__navigation__label__divider{display:none}.react-calendar__navigation__label{padding-top:20px;display:flex;flex-grow:1;justify-content:space-between}.react-calendar__navigation__label__labelText--from{margin-left:80px}.react-calendar__navigation__label__labelText--to{margin-right:100px}button.react-calendar__tile.react-calendar__tile--active.react-calendar__tile--range.react-calendar__tile--rangeStart.react-calendar__tile--rangeEnd.react-calendar__tile--rangeBothEnds.react-calendar__tile--hover.react-calendar__tile--hoverStart.react-calendar__tile--hoverEnd.react-calendar__tile--hoverBothEnds.react-calendar__month-view__days__day.react-calendar__month-view__days__day--weekend{background-color:#000}
1
+ .react-calendar{width:410px;background:#fff;border:none;border-radius:25px;border:1px solid #fff;box-shadow:0 12px 24px #0003;padding:8px;line-height:1.125em}.react-calendar--doubleView .react-calendar__viewContainer{display:flex;margin:-.5em}.react-calendar--doubleView .react-calendar__viewContainer>*{width:50%;margin:.5em}.react-calendar button:enabled:hover{cursor:pointer}.react-calendar__navigation{display:flex;height:50px;margin-bottom:1em}.react-calendar__month-view__weekdays__weekday{padding:.5em}.react-calendar__month-view__weekdays{text-align:center;text-transform:uppercase;font-size:.75em}.react-calendar--doubleView{width:800px}.react-calendar__month-view{padding-left:20px;padding-right:20px}.react-calendar__tile{height:50px;width:50px}.react-calendar__tile:disabled{background-color:#fff;color:#bebebe}.react-calendar__month-view__days__day--weekend,.react-calendar__month-view__days__day{color:#000}.react-calendar__month-view__days__day--neighboringMonth{visibility:hidden}.react-calendar__tile:enabled:hover,.react-calendar__tile:enabled:focus{border-radius:50%;border:1px solid;border-color:#000;background:#fff;color:#000}.react-calendar__tile--now{background:#fff;color:#000}.react-calendar__tile--now:enabled:hover,.react-calendar__tile--now:enabled:focus{border-radius:50%;border:1px solid;border-color:#000;background:#fff;color:#000}.react-calendar__tile--hasActive:enabled:hover,.react-calendar__tile--hasActive:enabled:focus{background:#f8f8fa}.react-calendar__tile--active{background:#000;border-radius:50%;color:#fff}.react-calendar__tile--rangeEnd.react-calendar__tile--active:enabled:hover,.react-calendar__tile--rangeEnd.react-calendar__tile--active:enabled:focus,.react-calendar__tile--rangeEnd:enabled{border-radius:0 50% 50% 0;border:1px solid;border-color:#000;background:#000;color:#fff}.react-calendar__tile--rangeStart.react-calendar__tile--active:enabled:hover,.react-calendar__tile--rangeStart.react-calendar__tile--active:enabled:focus,.react-calendar__tile--rangeStart:enabled{border-radius:50% 0 0 50%;border:1px solid;border-color:#000;background:#000;color:#fff}.react-calendar--selectRange .react-calendar__tile--hover{background-color:#dfdfe1}.react-calendar--selectRange .react-calendar__tile--rangeStart{background-color:#000;color:#fff}.react-calendar__tile--range{background:#dfdfe1;color:#000;border-radius:0}.react-calendar__tile--rangeStart{border-radius:50% 0 0 50%;background:#000;color:#fff}.react-calendar__tile--rangeEnd{border-radius:0 50% 50% 0;background:#000;color:#fff}.react-calendar__navigation__prev-button,.react-calendar__navigation__next-button{background:#fff}.react-calendar__navigation__prev2-button,.react-calendar__navigation__next2-button{display:none}.react-calendar__navigation__label__labelText{color:#000}.react-calendar__navigation{height:50px}.react-calendar__navigation button{color:#000;width:50px;background:none;font-size:16px}.react-calendar__navigation button:enabled:hover,.react-calendar__navigation button:enabled:focus{background-color:#bebebe;color:#000;border-radius:50%}.react-calendar__navigation button:disabled{background:#fff;color:#bebebe}abbr[title]{text-decoration:none}.react-calendar__navigation__label__divider{display:none}.react-calendar__navigation__label{padding-top:20px;display:flex;flex-grow:1;justify-content:space-between}.react-calendar__navigation__label__labelText--from{margin-left:80px}.react-calendar__navigation__label__labelText--to{margin-right:100px}button.react-calendar__tile.react-calendar__tile--active.react-calendar__tile--range.react-calendar__tile--rangeStart.react-calendar__tile--rangeEnd.react-calendar__tile--rangeBothEnds.react-calendar__tile--hover.react-calendar__tile--hoverStart.react-calendar__tile--hoverEnd.react-calendar__tile--hoverBothEnds.react-calendar__month-view__days__day.react-calendar__month-view__days__day--weekend{background-color:#000}.keen-slider:not([data-keen-slider-disabled]){-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;align-content:flex-start;display:flex;overflow:hidden;position:relative;touch-action:pan-y;-webkit-user-select:none;user-select:none;-khtml-user-select:none;width:100%}.keen-slider:not([data-keen-slider-disabled]) .keen-slider__slide{min-height:100%;overflow:hidden;position:relative;width:100%}.keen-slider:not([data-keen-slider-disabled])[data-keen-slider-reverse]{flex-direction:row-reverse}.keen-slider:not([data-keen-slider-disabled])[data-keen-slider-v]{flex-wrap:wrap}
@@ -1,36 +1,6 @@
1
1
  body.theme-penrithmrt {
2
- --color-ink: #495863;
3
- --color-transparent: transparent;
4
- --color-white: #ffffff;
5
- --color-black: #000000;
6
- --color-red: #bb0a1e;
7
- --color-grey: #2c373b;
8
- --color-light-grey: #495c63;
9
- --color-lightest-grey: #f5f5f5;
10
- --color-primary-strict: #ff007d;
11
- --color-border: #d0d0d0;
12
- --color-border-lightest: #eeeeee;
13
- --color-border-light: #d8d8d8;
14
- --color-border-dark: #616161;
15
- --color-facebook: #3b5999;
16
- --color-whatsapp: #25d366;
17
- --color-twitter: #55acee;
18
- --color-linkedin: #0a66c2;
19
- --color-email: #c71610;
20
- --color-github: #171515;
21
- --color-instagram: #8a3ab9;
22
- --color-interactive-facebook: #2d4474;
23
- --color-interactive-whatsapp: #25d566;
24
- --color-interactive-twitter: #55acee;
25
- --color-interactive-linkedin: #0a66c2;
26
- --color-interactive-instagram: #6d2e92;
27
- --color-interactive-email: #9f110c;
28
- --color-interactive-github: #000000;
29
- --color-gold: #e2b13c;
30
- --color-linkedin: #0e76a8;
31
-
32
2
  --color-primary: #3C2F71;
33
- --color-secondary: #c71f1f;
3
+ --color-secondary: #E94439;
34
4
  --color-tertiary: #921457;
35
5
 
36
6
  --color-loading: #a3a3a3;
@@ -55,7 +25,7 @@ body.theme-penrithmrt {
55
25
 
56
26
  --color-button-secondary-active: #c71f1f;
57
27
  --color-button-secondary-border: #c71f1f;
58
- --color-button-secondary-bg: #c71f1f;
28
+ --color-button-secondary-bg: #E94439;
59
29
  --color-button-secondary-text: #ffffff;
60
30
  --color-button-secondary-hover: #c71f1f;
61
31
 
@@ -23,46 +23,7 @@ const presetConfig: Config = {
23
23
  colors,
24
24
 
25
25
  fontFamily: {
26
- noto: ['Noto Sans JP', 'DM Sans', ...defaultTheme.fontFamily.sans],
27
- sans: ['DM Sans', 'Noto Sans JP', ...defaultTheme.fontFamily.sans],
28
- },
29
- fontSize: {
30
- xs: [
31
- '0.75rem',
32
- {
33
- lineHeight: '1.1rem',
34
- },
35
- ],
36
- xl: [
37
- '1.25rem',
38
- {
39
- lineHeight: '1.875rem',
40
- },
41
- ],
42
- '2xl': [
43
- '1.5rem',
44
- {
45
- lineHeight: '2.25rem',
46
- },
47
- ],
48
- '3xl': [
49
- '1.875rem',
50
- {
51
- lineHeight: '2.75rem',
52
- },
53
- ],
54
- '4xl': [
55
- '2.25rem',
56
- {
57
- lineHeight: '3.25rem',
58
- },
59
- ],
60
- '5xl': [
61
- '3rem',
62
- {
63
- lineHeight: '4rem',
64
- },
65
- ],
26
+ sans: ['Poppins', 'sans-serif'],
66
27
  },
67
28
  keyframes: {
68
29
  'rest-bounce': {
@@ -10,5 +10,4 @@ export default {
10
10
  '8.5': '2.125rem' /* 34px */,
11
11
  '9.5': '2.375rem' /* 38px */,
12
12
  13: '3.25rem' /* 52px */,
13
- 'app-header-height': 'var(--app-header-height, 0)',
14
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trepur_components",
3
- "version": "2.3.23",
3
+ "version": "2.3.25",
4
4
  "description": "component lib",
5
5
  "author": "trepur_ttenneb",
6
6
  "private": false,
@@ -47,6 +47,7 @@
47
47
  "@fortawesome/fontawesome-free-regular": "^5.1.0-3",
48
48
  "@fortawesome/fontawesome-free-solid": "^5.1.0-3",
49
49
  "@fortawesome/fontawesome-svg-core": "^6.5.2",
50
+ "@fortawesome/free-solid-svg-icons": "^6.5.2",
50
51
  "@fortawesome/react-fontawesome": "^0.2.0",
51
52
  "class-variance-authority": "^0.7.0",
52
53
  "classnames": "^2.5.1",