trepur_components 2.3.10 → 2.3.11
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/lib/components/AlertBar/AlertBar.stories.d.ts +2 -1
- package/lib/components/AlertBar/index.d.ts +4 -5
- package/lib/components/AlertBar/index.js +61 -31
- package/lib/components/Breadcrumbs/Breadcrumbs.stories.d.ts +3 -3
- package/lib/components/Breadcrumbs/index.d.ts +8 -10
- package/lib/components/Breadcrumbs/index.js +46 -13
- package/lib/components/Button/Button.stories.d.ts +6 -2
- package/lib/components/Button/index.d.ts +2 -1
- package/lib/components/Button/index.js +35 -22
- package/lib/components/Collapsible/index.js +1 -1
- package/lib/components/HamburgerIcon/index.js +6 -6
- package/lib/components/Nav/Nav.stories.d.ts +1 -2
- package/lib/components/Nav/index.d.ts +1 -2
- package/lib/components/Nav/index.js +47 -48
- package/lib/components/NavItem/NavItem.stories.d.ts +0 -1
- package/lib/components/NavItem/index.js +21 -14
- package/lib/components/Pill/index.d.ts +1 -1
- package/lib/components/Pill/index.js +14 -15
- package/lib/styles/global.css +1 -57
- package/lib/styles/themes/local.css +9 -1
- package/lib/styles/themes/penrithmrt.css +101 -0
- package/lib/tailwind/colors.ts +12 -1
- package/package.json +1 -1
- package/lib/styles/themes/test.css +0 -28
|
@@ -3,7 +3,7 @@ import { AlertBar } from './';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('./').
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('./').AlertbarContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
7
|
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
8
8
|
Icon: import('react').ForwardRefExoticComponent<{
|
|
9
9
|
icon: any;
|
|
@@ -22,3 +22,4 @@ export declare const Success: Story;
|
|
|
22
22
|
export declare const Warning: Story;
|
|
23
23
|
export declare const Info: Story;
|
|
24
24
|
export declare const Dismiss: Story;
|
|
25
|
+
export declare const Loading: Story;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface
|
|
4
|
-
|
|
5
|
-
className?: string;
|
|
6
|
-
variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
3
|
+
export interface AlertbarContextProps {
|
|
4
|
+
variant?: 'success' | 'warning' | 'error' | 'info';
|
|
7
5
|
loading?: boolean;
|
|
6
|
+
dismiss?: boolean;
|
|
8
7
|
}
|
|
9
|
-
declare const AlertBar: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> &
|
|
8
|
+
declare const AlertBar: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & AlertbarContextProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
10
9
|
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
10
|
Icon: import('react').ForwardRefExoticComponent<{
|
|
12
11
|
icon: any;
|
|
@@ -1,36 +1,66 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as l } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { Button as
|
|
6
|
-
import { Icon as
|
|
7
|
-
const
|
|
8
|
-
({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as b, forwardRef as s, useMemo as h, useContext as l } from "react";
|
|
3
|
+
import { faCrosshairs as A } from "@fortawesome/fontawesome-free-solid";
|
|
4
|
+
import B from "clsx";
|
|
5
|
+
import { Button as N } from "../Button/index.js";
|
|
6
|
+
import { Icon as c } from "../Icon/index.js";
|
|
7
|
+
const o = b(null), f = s(
|
|
8
|
+
({
|
|
9
|
+
className: a,
|
|
10
|
+
children: t,
|
|
11
|
+
variant: e = "info",
|
|
12
|
+
dismiss: n = !1,
|
|
13
|
+
loading: i = !1,
|
|
14
|
+
...g
|
|
15
|
+
}, p) => {
|
|
16
|
+
const x = h(
|
|
17
|
+
() => ({
|
|
18
|
+
dismiss: n,
|
|
19
|
+
loading: i
|
|
18
20
|
}),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
[n, i]
|
|
22
|
+
);
|
|
23
|
+
return /* @__PURE__ */ r(o.Provider, { value: x, children: /* @__PURE__ */ r(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: B("flex w-full items-center gap-x-2 px-8 py-2", {
|
|
27
|
+
"border-error-default bg-error-light text-error-default": e === "error",
|
|
28
|
+
"border-info-default bg-info-light text-info-default": e === "info",
|
|
29
|
+
"border-success-default bg-success-light text-success-default": e === "success",
|
|
30
|
+
"border-warning-default bg-warning-light text-warning-default": e === "warning"
|
|
31
|
+
}),
|
|
32
|
+
ref: p,
|
|
33
|
+
...g,
|
|
34
|
+
children: t
|
|
35
|
+
}
|
|
36
|
+
) });
|
|
37
|
+
}
|
|
38
|
+
), d = s(({ ...a }, t) => {
|
|
39
|
+
const { loading: e } = l(o) || {};
|
|
40
|
+
return e ? /* @__PURE__ */ r("p", { className: "bg-loading h-6 w-40 animate-pulse rounded-lg" }) : /* @__PURE__ */ r(
|
|
41
|
+
"p",
|
|
42
|
+
{
|
|
43
|
+
className: "text-md text-light-grey flex-1 truncate",
|
|
44
|
+
ref: t,
|
|
45
|
+
...a
|
|
22
46
|
}
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
47
|
+
);
|
|
48
|
+
}), m = s(({ icon: a }, t) => {
|
|
49
|
+
const { loading: e } = l(o) || {};
|
|
50
|
+
return e ? /* @__PURE__ */ r("span", { className: "bg-loading h-6 w-6 animate-pulse rounded-lg" }) : /* @__PURE__ */ r(c, { ref: t, icon: a });
|
|
51
|
+
}), u = s(({ ...a }) => {
|
|
52
|
+
const { loading: t = !1 } = l(o) || {};
|
|
53
|
+
return /* @__PURE__ */ r(N, { loading: t, variant: "ghost", ...a, children: /* @__PURE__ */ r(c, { icon: A }) });
|
|
54
|
+
});
|
|
55
|
+
f.displayName = "AlertBar";
|
|
56
|
+
d.displayName = "AlertBar.Label";
|
|
57
|
+
m.displayName = "AlertBar.Icon";
|
|
58
|
+
u.displayName = "AlertBar.Dismiss";
|
|
59
|
+
const j = Object.assign(f, {
|
|
60
|
+
Label: d,
|
|
61
|
+
Icon: m,
|
|
62
|
+
Dismiss: u
|
|
33
63
|
});
|
|
34
64
|
export {
|
|
35
|
-
|
|
65
|
+
j as AlertBar
|
|
36
66
|
};
|
|
@@ -3,11 +3,11 @@ import { StoryObj } from '@storybook/react';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLUListElement> & import('.').
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLUListElement> & import('.').BreadcrumbsContextProps & import('react').RefAttributes<HTMLUListElement>> & {
|
|
7
7
|
Item: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
|
|
8
|
-
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<
|
|
8
|
+
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLAnchorElement> & {
|
|
9
9
|
href: string;
|
|
10
|
-
} & import('react').RefAttributes<
|
|
10
|
+
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
11
11
|
};
|
|
12
12
|
args: {
|
|
13
13
|
children: import("react/jsx-runtime").JSX.Element[];
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
href: string;
|
|
9
|
-
}>;
|
|
3
|
+
export interface BreadcrumbsContextProps {
|
|
4
|
+
allLinks?: any;
|
|
5
|
+
}
|
|
6
|
+
export interface BreadcrumbsItemContextProps {
|
|
7
|
+
isLast?: boolean;
|
|
10
8
|
}
|
|
11
|
-
declare const Breadcrumbs: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> &
|
|
9
|
+
declare const Breadcrumbs: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & BreadcrumbsContextProps & import('react').RefAttributes<HTMLUListElement>> & {
|
|
12
10
|
Item: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
|
|
13
|
-
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<
|
|
11
|
+
Label: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLAnchorElement> & {
|
|
14
12
|
href: string;
|
|
15
|
-
} & import('react').RefAttributes<
|
|
13
|
+
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
16
14
|
};
|
|
17
15
|
export { Breadcrumbs };
|
|
@@ -1,16 +1,49 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as s, jsxs as v } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as i, forwardRef as m, useMemo as b, useContext as x, Children as I } from "react";
|
|
3
|
+
const f = i(null), B = i(null), N = m(({ children: e, ...r }, t) => {
|
|
4
|
+
const a = b(
|
|
5
|
+
() => ({
|
|
6
|
+
allLinks: e
|
|
7
|
+
}),
|
|
8
|
+
[e]
|
|
9
|
+
);
|
|
10
|
+
return /* @__PURE__ */ s(f.Provider, { value: a, children: /* @__PURE__ */ s("ul", { ref: t, className: "flex gap-2", ...r, children: e }) });
|
|
11
|
+
}), L = m(({ children: e, ...r }, t) => {
|
|
12
|
+
const { allLinks: a } = x(f) || {}, n = I.toArray(a), c = n.findIndex(
|
|
13
|
+
(o) => {
|
|
14
|
+
var l, u, p, d;
|
|
15
|
+
return ((p = (u = (l = o == null ? void 0 : o.props) == null ? void 0 : l.children) == null ? void 0 : u.props) == null ? void 0 : p.children) === ((d = e == null ? void 0 : e.props) == null ? void 0 : d.children);
|
|
16
|
+
}
|
|
17
|
+
) === n.length - 1, C = b(
|
|
18
|
+
() => ({
|
|
19
|
+
isLast: c
|
|
20
|
+
}),
|
|
21
|
+
[e]
|
|
22
|
+
);
|
|
23
|
+
return /* @__PURE__ */ s(B.Provider, { value: C, children: /* @__PURE__ */ v("li", { ref: t, className: "flex items-center gap-2", ...r, children: [
|
|
24
|
+
e,
|
|
25
|
+
!c && /* @__PURE__ */ s("p", { children: "/" })
|
|
26
|
+
] }) });
|
|
27
|
+
}), y = m(({ children: e, href: r, ...t }, a) => {
|
|
28
|
+
const { isLast: n } = x(B) || {};
|
|
29
|
+
return n ? /* @__PURE__ */ s("p", { className: "px-1 py-1 font-bold underline underline-offset-4", children: e }) : /* @__PURE__ */ s("p", { className: "px-1 py-1", children: /* @__PURE__ */ s(
|
|
30
|
+
"a",
|
|
31
|
+
{
|
|
32
|
+
ref: a,
|
|
33
|
+
className: "text-facebook hover:underline",
|
|
34
|
+
href: r,
|
|
35
|
+
...t,
|
|
36
|
+
children: e
|
|
37
|
+
}
|
|
38
|
+
) });
|
|
39
|
+
});
|
|
40
|
+
N.displayName = "Breadcrumbs";
|
|
41
|
+
L.displayName = "Breadcrumbs.Item";
|
|
42
|
+
y.displayName = "Breadcrumbs.Label";
|
|
43
|
+
const P = Object.assign(N, {
|
|
44
|
+
Item: L,
|
|
45
|
+
Label: y
|
|
13
46
|
});
|
|
14
47
|
export {
|
|
15
|
-
|
|
48
|
+
P as Breadcrumbs
|
|
16
49
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Button } from '.';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { Button } from './';
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & import('./').ButtonProps & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
7
7
|
Icon: import('react').ForwardRefExoticComponent<{
|
|
8
8
|
icon: any;
|
|
9
9
|
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -18,3 +18,7 @@ declare const meta: {
|
|
|
18
18
|
export default meta;
|
|
19
19
|
type Story = StoryObj<typeof Button>;
|
|
20
20
|
export declare const Default: Story;
|
|
21
|
+
export declare const Secondary: Story;
|
|
22
|
+
export declare const Bordered: Story;
|
|
23
|
+
export declare const Ghost: Story;
|
|
24
|
+
export declare const Loading: Story;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface ButtonProps {
|
|
4
|
-
variant?: 'primary' | 'secondary' | 'ghost';
|
|
4
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'bordered';
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
loading?: boolean;
|
|
6
7
|
}
|
|
7
8
|
declare const Button: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & ButtonProps & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
8
9
|
Icon: import('react').ForwardRefExoticComponent<{
|
|
@@ -1,30 +1,43 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as n } from "react";
|
|
3
3
|
import { Icon as m } from "../Icon/index.js";
|
|
4
|
-
import
|
|
5
|
-
const a = n(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
4
|
+
import s from "clsx";
|
|
5
|
+
const a = n(
|
|
6
|
+
({
|
|
7
|
+
className: o,
|
|
8
|
+
children: e,
|
|
9
|
+
loading: t = !1,
|
|
10
|
+
variant: r = "primary",
|
|
11
|
+
disabled: g,
|
|
12
|
+
...d
|
|
13
|
+
}) => /* @__PURE__ */ b(
|
|
14
|
+
"button",
|
|
15
|
+
{
|
|
16
|
+
disabled: t,
|
|
17
|
+
className: s(
|
|
18
|
+
"flex h-[38px] items-center gap-2 rounded-lg border px-4 py-2 text-center text-sm",
|
|
19
|
+
{
|
|
20
|
+
"duration-200": !t,
|
|
21
|
+
"border-button-primary-border bg-button-primary-bg text-button-primary-text hover:bg-button-primary-hover active:bg-button-primary-active": r === "primary" && !t,
|
|
22
|
+
"border-button-secondary-border bg-button-secondary-bg text-button-secondary-text hover:bg-button-secondary-hover active:bg-button-secondary-active": r === "secondary" && !t,
|
|
23
|
+
"border-button-ghost-border bg-button-ghost-bg text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": r === "ghost" && !t,
|
|
24
|
+
"border-button-bordered-border text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": r === "bordered" && !t,
|
|
25
|
+
"w-40 animate-pulse border-loading bg-loading": t
|
|
26
|
+
},
|
|
27
|
+
o
|
|
28
|
+
),
|
|
29
|
+
...d,
|
|
30
|
+
children: !t && e
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
), u = n(({ className: o, ...e }, t) => /* @__PURE__ */ b("p", { className: s("text-md", o), ref: t, ...e })), c = n(({ icon: o }, e) => /* @__PURE__ */ b(m, { size: "md", ref: e, icon: o }));
|
|
21
34
|
a.displayName = "Button";
|
|
22
35
|
c.displayName = "Button.Icon";
|
|
23
|
-
|
|
24
|
-
const
|
|
36
|
+
u.displayName = "Button.Label";
|
|
37
|
+
const y = Object.assign(a, {
|
|
25
38
|
Icon: c,
|
|
26
|
-
Label:
|
|
39
|
+
Label: u
|
|
27
40
|
});
|
|
28
41
|
export {
|
|
29
|
-
|
|
42
|
+
y as Button
|
|
30
43
|
};
|
|
@@ -59,7 +59,7 @@ const n = w(null), c = o(({ id: e, className: l, children: t, loading: s, ...i }
|
|
|
59
59
|
),
|
|
60
60
|
ref: t,
|
|
61
61
|
...l,
|
|
62
|
-
children:
|
|
62
|
+
children: e
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
65
|
}), h = o(({ ...e }, l) => /* @__PURE__ */ a("p", { className: "text-xs md:text-sm", ref: l, ...e }));
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Button as
|
|
2
|
+
import { forwardRef as g, useState as d } from "react";
|
|
3
|
+
import { Button as f } from "../Button/index.js";
|
|
4
4
|
import o from "clsx";
|
|
5
|
-
const n =
|
|
6
|
-
const [t, m] =
|
|
5
|
+
const n = g(({ className: i, onClick: a, variant: e = "ghost" }, l) => {
|
|
6
|
+
const [t, m] = d(!1), p = (s) => {
|
|
7
7
|
m(!t), a == null || a(s);
|
|
8
8
|
};
|
|
9
9
|
return /* @__PURE__ */ r(
|
|
10
|
-
|
|
10
|
+
f,
|
|
11
11
|
{
|
|
12
12
|
className: o("stroke-white", i),
|
|
13
13
|
ref: l,
|
|
@@ -23,7 +23,7 @@ const n = d(({ className: i, onClick: a, variant: e = "ghost" }, l) => {
|
|
|
23
23
|
{
|
|
24
24
|
"fill-button-primary-text": e === "primary",
|
|
25
25
|
"fill-button-secondary-text": e === "secondary",
|
|
26
|
-
"fill-button-ghost-text": e === "ghost"
|
|
26
|
+
"fill-button-ghost-text stroke-button-ghost-text": e === "ghost"
|
|
27
27
|
}
|
|
28
28
|
),
|
|
29
29
|
width: "24",
|
|
@@ -8,8 +8,7 @@ declare const meta: {
|
|
|
8
8
|
logo: string;
|
|
9
9
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
10
|
DesktopHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
-
|
|
12
|
-
RightSection: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Section: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
12
|
Logo: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLImageElement> & import('../Image').ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
14
13
|
Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
14
|
Folder: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
@@ -10,8 +10,7 @@ declare const Nav: import('react').ForwardRefExoticComponent<HTMLAttributes<HTML
|
|
|
10
10
|
logo: string;
|
|
11
11
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
12
|
DesktopHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
-
|
|
14
|
-
RightSection: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Section: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
14
|
Logo: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLImageElement> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
16
15
|
Body: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
16
|
Folder: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
@@ -1,81 +1,80 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { createContext as
|
|
1
|
+
import { jsx as e, jsxs as n, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as y, forwardRef as d, useState as c, useMemo as b, useContext as m, useRef as C } from "react";
|
|
3
3
|
import { HamburgerIcon as H } from "../HamburgerIcon/index.js";
|
|
4
|
-
import { faChevronDown as
|
|
4
|
+
import { faChevronDown as k } from "@fortawesome/fontawesome-free-solid";
|
|
5
5
|
import p from "clsx";
|
|
6
|
-
import { Icon as
|
|
7
|
-
const
|
|
8
|
-
const [
|
|
6
|
+
import { Icon as w } from "../Icon/index.js";
|
|
7
|
+
const l = y(null), v = d(({ children: a }, r) => {
|
|
8
|
+
const [t, s] = c(!1), o = b(
|
|
9
9
|
() => ({
|
|
10
|
-
expanded:
|
|
11
|
-
setExpanded:
|
|
10
|
+
expanded: t,
|
|
11
|
+
setExpanded: s
|
|
12
12
|
}),
|
|
13
|
-
[
|
|
13
|
+
[t, s]
|
|
14
14
|
);
|
|
15
|
-
return /* @__PURE__ */ e(
|
|
16
|
-
}), N =
|
|
17
|
-
const { setExpanded:
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ e(l.Provider, { value: o, children: /* @__PURE__ */ e("div", { children: a }) });
|
|
16
|
+
}), N = d(({ children: a, logo: r }, t) => {
|
|
17
|
+
const { setExpanded: s, expanded: o } = m(l) || {};
|
|
18
|
+
return /* @__PURE__ */ n("div", { ref: t, className: p("bg-nav-bg relative h-20 w-full px-2 py-2"), children: [
|
|
19
|
+
/* @__PURE__ */ n("div", { className: "flex h-full md:hidden", children: [
|
|
20
20
|
/* @__PURE__ */ e("div", { className: "my-auto", children: /* @__PURE__ */ e(
|
|
21
21
|
H,
|
|
22
22
|
{
|
|
23
|
-
onClick: () =>
|
|
23
|
+
onClick: () => s == null ? void 0 : s(!o),
|
|
24
24
|
className: "aspect-square"
|
|
25
25
|
}
|
|
26
26
|
) }),
|
|
27
|
-
/* @__PURE__ */ e("div", { className: "absolute left-1/2 top-
|
|
27
|
+
/* @__PURE__ */ e("div", { className: "absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 transform", children: /* @__PURE__ */ e(i, { src: r }) })
|
|
28
28
|
] }),
|
|
29
29
|
a
|
|
30
30
|
] });
|
|
31
|
-
}), f =
|
|
32
|
-
({ children: a },
|
|
33
|
-
const { expanded:
|
|
34
|
-
return
|
|
31
|
+
}), f = d(
|
|
32
|
+
({ children: a }, r) => {
|
|
33
|
+
const { expanded: t } = m(l) || {};
|
|
34
|
+
return t ? /* @__PURE__ */ e("div", { className: "bg-nav-bg h-screen px-8 pb-12 pt-2 md:hidden", children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 md:hidden", children: a }) }) : /* @__PURE__ */ e(h, {});
|
|
35
35
|
}
|
|
36
|
-
),
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
), g = d(({ children: a }, r) => /* @__PURE__ */ e(
|
|
37
|
+
"div",
|
|
38
|
+
{
|
|
39
|
+
ref: r,
|
|
40
|
+
className: "hidden justify-between md:flex md:gap-4 md:px-4 lg:gap-8 lg:px-20",
|
|
41
|
+
children: a
|
|
42
|
+
}
|
|
43
|
+
)), x = d(
|
|
44
|
+
({ children: a }, r) => /* @__PURE__ */ e("div", { className: "my-4 md:flex md:gap-4 lg:gap-8", children: a })
|
|
45
|
+
), u = d(({ label: a, children: r }) => {
|
|
46
|
+
const [t, s] = c(!1), o = C(null);
|
|
47
|
+
return /* @__PURE__ */ n(
|
|
39
48
|
"div",
|
|
40
49
|
{
|
|
41
50
|
ref: o,
|
|
42
|
-
onClick: () =>
|
|
43
|
-
onMouseLeave: () =>
|
|
44
|
-
className: "mx-auto text-xl font-normal tracking-wider
|
|
51
|
+
onClick: () => s(!0),
|
|
52
|
+
onMouseLeave: () => s(!1),
|
|
53
|
+
className: "text-nav-text mx-auto text-xl font-normal tracking-wider hover:cursor-pointer",
|
|
45
54
|
children: [
|
|
46
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ n("div", { className: "flex items-center gap-px", children: [
|
|
47
56
|
/* @__PURE__ */ e("p", { children: a }),
|
|
48
|
-
/* @__PURE__ */ e(
|
|
57
|
+
/* @__PURE__ */ e(w, { icon: k })
|
|
49
58
|
] }),
|
|
50
|
-
|
|
59
|
+
t && /* @__PURE__ */ e("div", { className: "mb:pb-2 bg-nav-bg grid grid-cols-1 md:gap-5 md:pt-8", children: r })
|
|
51
60
|
]
|
|
52
61
|
}
|
|
53
62
|
);
|
|
54
|
-
}),
|
|
55
|
-
"img",
|
|
56
|
-
{
|
|
57
|
-
className: p("rounded-full", a),
|
|
58
|
-
ref: t,
|
|
59
|
-
src: s,
|
|
60
|
-
...r
|
|
61
|
-
}
|
|
62
|
-
) })), h = n(({ children: a }, s) => /* @__PURE__ */ e("div", { className: "col-span-3 my-4 justify-between text-center md:flex", children: a }));
|
|
63
|
+
}), i = d(({ className: a, src: r, ...t }, s) => /* @__PURE__ */ e("img", { className: p("h-16", a), ref: s, src: r, ...t }));
|
|
63
64
|
v.displayName = "Nav";
|
|
64
65
|
N.displayName = "Nav.Header";
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
x.displayName = "Nav.
|
|
68
|
-
h.displayName = "Nav.RightSection";
|
|
66
|
+
g.displayName = "Nav.DesktopHeader";
|
|
67
|
+
i.displayName = "Nav.Logo";
|
|
68
|
+
x.displayName = "Nav.Section";
|
|
69
69
|
f.displayName = "Nav.Body";
|
|
70
|
-
|
|
70
|
+
u.displayName = "Nav.Folder";
|
|
71
71
|
const I = Object.assign(v, {
|
|
72
72
|
Header: N,
|
|
73
|
-
DesktopHeader:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
Logo: l,
|
|
73
|
+
DesktopHeader: g,
|
|
74
|
+
Section: x,
|
|
75
|
+
Logo: i,
|
|
77
76
|
Body: f,
|
|
78
|
-
Folder:
|
|
77
|
+
Folder: u
|
|
79
78
|
});
|
|
80
79
|
export {
|
|
81
80
|
I as Nav
|
|
@@ -9,7 +9,6 @@ declare const meta: {
|
|
|
9
9
|
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
10
10
|
};
|
|
11
11
|
args: {
|
|
12
|
-
className: string;
|
|
13
12
|
children: import("react/jsx-runtime").JSX.Element[];
|
|
14
13
|
};
|
|
15
14
|
};
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as o } from "react";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import f from "clsx";
|
|
4
|
+
const n = o(({ children: t, className: e, href: a, ...m }, l) => /* @__PURE__ */ r(
|
|
5
5
|
"a",
|
|
6
6
|
{
|
|
7
|
-
href:
|
|
8
|
-
ref:
|
|
9
|
-
className:
|
|
10
|
-
"mx-auto h-8 py-0
|
|
11
|
-
|
|
7
|
+
href: a,
|
|
8
|
+
ref: l,
|
|
9
|
+
className: f(
|
|
10
|
+
"text-nav-text after:border-nav-text mx-auto h-8 py-0 after:block after:scale-x-0 after:border-b-4 after:transition-all after:duration-300 after:ease-in-out hover:cursor-pointer hover:after:scale-x-100",
|
|
11
|
+
e
|
|
12
12
|
),
|
|
13
|
-
...
|
|
13
|
+
...m,
|
|
14
14
|
children: t
|
|
15
15
|
}
|
|
16
|
-
)),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
)), s = o(({ className: t, ...e }, a) => /* @__PURE__ */ r(
|
|
17
|
+
"p",
|
|
18
|
+
{
|
|
19
|
+
className: "flex-none text-nowrap text-xl font-normal tracking-wider",
|
|
20
|
+
ref: a,
|
|
21
|
+
...e
|
|
22
|
+
}
|
|
23
|
+
));
|
|
24
|
+
n.displayName = "NavItem";
|
|
25
|
+
s.displayName = "NavItem.Label";
|
|
26
|
+
const p = Object.assign(n, {
|
|
27
|
+
Label: s
|
|
21
28
|
});
|
|
22
29
|
export {
|
|
23
|
-
|
|
30
|
+
p as NavItem
|
|
24
31
|
};
|
|
@@ -3,7 +3,7 @@ import { HTMLAttributes } from 'react';
|
|
|
3
3
|
export type PickU<T, K extends keyof T> = T extends any ? {
|
|
4
4
|
[P in K]: T[P];
|
|
5
5
|
} : never;
|
|
6
|
-
export type PillVariant = '
|
|
6
|
+
export type PillVariant = 'warning' | 'error' | 'info' | 'success';
|
|
7
7
|
export interface PillProps {
|
|
8
8
|
variant?: PillVariant;
|
|
9
9
|
loading?: boolean;
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import
|
|
4
|
-
import { Icon as
|
|
5
|
-
const
|
|
3
|
+
import i from "clsx";
|
|
4
|
+
import { Icon as c } from "../Icon/index.js";
|
|
5
|
+
const s = t(({ children: r, variant: e = "info" }, l) => /* @__PURE__ */ o(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
|
-
ref:
|
|
9
|
-
className:
|
|
8
|
+
ref: l,
|
|
9
|
+
className: i(
|
|
10
10
|
"inline-grid grid-flow-col items-center gap-1 rounded-full border px-2 py-0.5",
|
|
11
11
|
{
|
|
12
|
-
"": e === "default",
|
|
13
12
|
"border-error-default bg-error-light text-error-default": e === "error",
|
|
14
13
|
"border-info-default bg-info-light text-info-default": e === "info",
|
|
15
14
|
"border-success-default bg-success-light text-success-default": e === "success",
|
|
16
15
|
"border-warning-default bg-warning-light text-warning-default": e === "warning"
|
|
17
16
|
}
|
|
18
17
|
),
|
|
19
|
-
children:
|
|
18
|
+
children: r
|
|
20
19
|
}
|
|
21
|
-
)),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
Icon:
|
|
27
|
-
Label:
|
|
20
|
+
)), n = t(({ className: r, ...e }, l) => /* @__PURE__ */ o("p", { className: i("text-xs", r), ref: l, ...e })), a = t(({ icon: r }, e) => /* @__PURE__ */ o(c, { size: "xs", ref: e, icon: r }));
|
|
21
|
+
s.displayName = "Pill";
|
|
22
|
+
a.displayName = "Pill.Icon";
|
|
23
|
+
n.displayName = "Chip.Label";
|
|
24
|
+
const u = Object.assign(s, {
|
|
25
|
+
Icon: a,
|
|
26
|
+
Label: n
|
|
28
27
|
});
|
|
29
28
|
export {
|
|
30
|
-
|
|
29
|
+
u as Pill
|
|
31
30
|
};
|
package/lib/styles/global.css
CHANGED
|
@@ -1,66 +1,10 @@
|
|
|
1
1
|
@import './themes/local.css';
|
|
2
|
-
@import './themes/
|
|
2
|
+
@import './themes/penrithmrt.css';
|
|
3
3
|
|
|
4
4
|
@tailwind base;
|
|
5
5
|
@tailwind components;
|
|
6
6
|
@tailwind utilities;
|
|
7
7
|
|
|
8
|
-
@font-face {
|
|
9
|
-
font-family: 'Sora';
|
|
10
|
-
src: url('../fonts/Sora/static/Sora-Thin.ttf') format('truetype');
|
|
11
|
-
font-weight: 100;
|
|
12
|
-
font-style: normal;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@font-face {
|
|
16
|
-
font-family: 'Sora';
|
|
17
|
-
src: url('../fonts/Sora/static/Sora-ExtraLight.ttf') format('truetype');
|
|
18
|
-
font-weight: 200;
|
|
19
|
-
font-style: normal;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@font-face {
|
|
23
|
-
font-family: 'Sora';
|
|
24
|
-
src: url('../fonts/Sora/static/Sora-Light.ttf') format('truetype');
|
|
25
|
-
font-weight: 300;
|
|
26
|
-
font-style: normal;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@font-face {
|
|
30
|
-
font-family: 'Sora';
|
|
31
|
-
src: url('../fonts/Sora/static/Sora-Regular.ttf') format('truetype');
|
|
32
|
-
font-weight: 400;
|
|
33
|
-
font-style: normal;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@font-face {
|
|
37
|
-
font-family: 'Sora';
|
|
38
|
-
src: url('../fonts/Sora/static/Sora-Medium.ttf') format('truetype');
|
|
39
|
-
font-weight: 500;
|
|
40
|
-
font-style: normal;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@font-face {
|
|
44
|
-
font-family: 'Sora';
|
|
45
|
-
src: url('../fonts/Sora/static/Sora-SemiBold.ttf') format('truetype');
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
font-style: normal;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@font-face {
|
|
51
|
-
font-family: 'Sora';
|
|
52
|
-
src: url('../fonts/Sora/static/Sora-Bold.ttf') format('truetype');
|
|
53
|
-
font-weight: 700;
|
|
54
|
-
font-style: normal;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@font-face {
|
|
58
|
-
font-family: 'Sora';
|
|
59
|
-
src: url('../fonts/Sora/static/Sora-ExtraBold.ttf') format('truetype');
|
|
60
|
-
font-weight: 800;
|
|
61
|
-
font-style: normal;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
8
|
.slick-track {
|
|
65
9
|
display: flex !important;
|
|
66
10
|
}
|
|
@@ -33,6 +33,8 @@ body {
|
|
|
33
33
|
--color-secondary: #e2e2e2;
|
|
34
34
|
--color-tertiary: #921457;
|
|
35
35
|
|
|
36
|
+
--color-loading: #a3a3a3;
|
|
37
|
+
|
|
36
38
|
/* pill */
|
|
37
39
|
--color-error-default: #b91c1c;
|
|
38
40
|
--color-warning-default: #a16207;
|
|
@@ -61,7 +63,13 @@ body {
|
|
|
61
63
|
--color-button-ghost-border: #ffffff00;
|
|
62
64
|
--color-button-ghost-bg: #0055ff00;
|
|
63
65
|
--color-button-ghost-text: #000000;
|
|
64
|
-
--color-button-ghost-hover: #
|
|
66
|
+
--color-button-ghost-hover: #bdbdbd;
|
|
67
|
+
|
|
68
|
+
--color-button-bordered-active: #242424;
|
|
69
|
+
--color-button-bordered-border: #9d9d9d;
|
|
70
|
+
--color-button-bordered-bg: #0055ff00;
|
|
71
|
+
--color-button-bordered-text: #000000;
|
|
72
|
+
--color-button-bordered-hover: #5f5f5f;
|
|
65
73
|
|
|
66
74
|
/* Footer */
|
|
67
75
|
--color-footer-bg: #1b54c6;
|
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
--color-primary: #3C2F71;
|
|
33
|
+
--color-secondary: #c71f1f;
|
|
34
|
+
--color-tertiary: #921457;
|
|
35
|
+
|
|
36
|
+
--color-loading: #a3a3a3;
|
|
37
|
+
|
|
38
|
+
/* pill */
|
|
39
|
+
--color-error-default: #b91c1c;
|
|
40
|
+
--color-warning-default: #a16207;
|
|
41
|
+
--color-success-default: #047857;
|
|
42
|
+
--color-info-default: #0369a1;
|
|
43
|
+
|
|
44
|
+
--color-error-light: #fca5a5;
|
|
45
|
+
--color-warning-light: #fde047;
|
|
46
|
+
--color-success-light: #6ee7b7;
|
|
47
|
+
--color-info-light: #7dd3fc;
|
|
48
|
+
|
|
49
|
+
/* Button */
|
|
50
|
+
--color-button-primary-active: #3C2F71;
|
|
51
|
+
--color-button-primary-border: #3C2F71;
|
|
52
|
+
--color-button-primary-bg: #3C2F71;
|
|
53
|
+
--color-button-primary-text: #ffffff;
|
|
54
|
+
--color-button-primary-hover: #3C2F71;
|
|
55
|
+
|
|
56
|
+
--color-button-secondary-active: #c71f1f;
|
|
57
|
+
--color-button-secondary-border: #c71f1f;
|
|
58
|
+
--color-button-secondary-bg: #c71f1f;
|
|
59
|
+
--color-button-secondary-text: #ffffff;
|
|
60
|
+
--color-button-secondary-hover: #c71f1f;
|
|
61
|
+
|
|
62
|
+
--color-button-ghost-active: #242424;
|
|
63
|
+
--color-button-ghost-border: #ffffff00;
|
|
64
|
+
--color-button-ghost-bg: #0055ff00;
|
|
65
|
+
--color-button-ghost-text: #3C2F71;
|
|
66
|
+
--color-button-ghost-hover: #bdbdbd;
|
|
67
|
+
|
|
68
|
+
--color-button-bordered-active: #242424;
|
|
69
|
+
--color-button-bordered-border: #9d9d9d;
|
|
70
|
+
--color-button-bordered-bg: #0055ff00;
|
|
71
|
+
--color-button-bordered-text: #000000;
|
|
72
|
+
--color-button-bordered-hover: #5f5f5f;
|
|
73
|
+
|
|
74
|
+
/* Footer */
|
|
75
|
+
--color-footer-bg: #1b54c6;
|
|
76
|
+
--color-footer-text: #ffffff;
|
|
77
|
+
|
|
78
|
+
/* Star */
|
|
79
|
+
--color-star: #f5bf1f;
|
|
80
|
+
|
|
81
|
+
/* Tubestops */
|
|
82
|
+
--color-tubestop-station-active: #57e31b;
|
|
83
|
+
--color-tubestop-station-complete: #c9c8c8;
|
|
84
|
+
--color-tubestop-station-future: #5a4f45;
|
|
85
|
+
--color-tubestop-line-complete: #c9c8c8;
|
|
86
|
+
--color-tubestop-line-future: #707070;
|
|
87
|
+
--color-tubestop-text-active: #000000;
|
|
88
|
+
--color-tubestop-text-complete: #c9c8c8;
|
|
89
|
+
--color-tubestop-text-future: #5b5b5b;
|
|
90
|
+
|
|
91
|
+
/* Carousel */
|
|
92
|
+
--color-carousel-dots-active: #1a1dd9;
|
|
93
|
+
--color-carousel-dots-default: #2c2525;
|
|
94
|
+
--color-carousel-dots-hover: #1a1dd9;
|
|
95
|
+
--color-carousel-arrow-default: #31a3dd;
|
|
96
|
+
--color-carousel-arrow-hover: #ae127a;
|
|
97
|
+
|
|
98
|
+
/* Nav */
|
|
99
|
+
--color-nav-bg: #c8c6c6;
|
|
100
|
+
--color-nav-text: #3C2F71;
|
|
101
|
+
}
|
package/lib/tailwind/colors.ts
CHANGED
|
@@ -4,7 +4,11 @@ export default {
|
|
|
4
4
|
secondary: 'var(--color-secondary)',
|
|
5
5
|
tertiary: 'var(--color-tertiary)',
|
|
6
6
|
star: 'var(--color-star)',
|
|
7
|
-
nav:
|
|
7
|
+
nav: {
|
|
8
|
+
bg: 'var(--color-nav-bg)',
|
|
9
|
+
text: 'var(--color-nav-text)',
|
|
10
|
+
},
|
|
11
|
+
loading: 'var(--color-loading)',
|
|
8
12
|
footer: {
|
|
9
13
|
bg: 'var(--color-footer-bg)',
|
|
10
14
|
text: 'var(--color-footer-text)',
|
|
@@ -47,6 +51,13 @@ export default {
|
|
|
47
51
|
text: 'var(--color-button-ghost-text)',
|
|
48
52
|
hover: 'var(--color-button-ghost-hover)',
|
|
49
53
|
},
|
|
54
|
+
bordered: {
|
|
55
|
+
active: 'var(--color-button-bordered-active)',
|
|
56
|
+
border: 'var(--color-button-bordered-border)',
|
|
57
|
+
bg: 'var(--color-button-bordered-bg)',
|
|
58
|
+
text: 'var(--color-button-bordered-text)',
|
|
59
|
+
hover: 'var(--color-button-bordered-hover)',
|
|
60
|
+
},
|
|
50
61
|
},
|
|
51
62
|
tubestop: {
|
|
52
63
|
station: {
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
body.theme-test {
|
|
2
|
-
--color-primary: #0036a0;
|
|
3
|
-
--color-secondary: #0036a0;
|
|
4
|
-
--color-tertiary: #0036a0;
|
|
5
|
-
--color-ink: #0036a0;
|
|
6
|
-
--color-transparent: #0036a0;
|
|
7
|
-
--color-white: #0036a0;
|
|
8
|
-
--color-black: #0036a0;
|
|
9
|
-
--color-red: #0036a0;
|
|
10
|
-
--color-grey: #0036a0;
|
|
11
|
-
--color-light-grey: #0036a0;
|
|
12
|
-
--color-lightest-grey: #0036a0;
|
|
13
|
-
--color-primary-strict: #0036a0;
|
|
14
|
-
--color-border: #0036a0;
|
|
15
|
-
--color-border-lightest: #0036a0;
|
|
16
|
-
--color-border-light: #0036a0;
|
|
17
|
-
--color-border-dark: #0036a0;
|
|
18
|
-
|
|
19
|
-
--color-error-default: #0036a0;
|
|
20
|
-
--color-warning-default: #0036a0;
|
|
21
|
-
--color-success-default: #0036a0;
|
|
22
|
-
--color-info-default: #0036a0;
|
|
23
|
-
|
|
24
|
-
--color-error-light: #0036a0;
|
|
25
|
-
--color-warning-light: #0036a0;
|
|
26
|
-
--color-success-light: #0036a0;
|
|
27
|
-
--color-info-light: #0036a0;
|
|
28
|
-
}
|