trepur_components 2.3.30 → 2.3.31
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/Link/index.js +50 -0
- package/lib/components/index.d.ts +2 -1
- package/lib/index.js +44 -42
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as a } from "react";
|
|
3
|
+
import { Icon as p } from "../Icon/index.js";
|
|
4
|
+
import s from "clsx";
|
|
5
|
+
const c = a(
|
|
6
|
+
({
|
|
7
|
+
className: e,
|
|
8
|
+
children: o,
|
|
9
|
+
loading: t = !1,
|
|
10
|
+
variant: r = "primary",
|
|
11
|
+
size: n,
|
|
12
|
+
href: g,
|
|
13
|
+
target: m,
|
|
14
|
+
...u
|
|
15
|
+
}) => /* @__PURE__ */ b("div", { className: "inline-block", children: /* @__PURE__ */ b(
|
|
16
|
+
"a",
|
|
17
|
+
{
|
|
18
|
+
href: g,
|
|
19
|
+
target: m,
|
|
20
|
+
className: s(
|
|
21
|
+
"flex px-12 py-3 items-center gap-3 rounded border text-center leading-8",
|
|
22
|
+
{
|
|
23
|
+
"duration-200": !t,
|
|
24
|
+
"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,
|
|
25
|
+
"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,
|
|
26
|
+
"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,
|
|
27
|
+
"border-button-bordered-border text-button-ghost-text hover:bg-button-ghost-hover active:bg-button-ghost-active": r === "bordered" && !t,
|
|
28
|
+
"border-button-basic-border bg-button-basic-bg text-button-basic-text hover:bg-button-basic-hover active:bg-button-basic-active": r === "basic" && !t,
|
|
29
|
+
"w-40 animate-pulse border-loading bg-loading": t,
|
|
30
|
+
"px-12 py-3 text-base font-normal leading-4": n === "sm",
|
|
31
|
+
"px-12 py-3 text-lg font-normal leading-8": n === "md",
|
|
32
|
+
"px-12 py-4 text-xl font-normal leading-8": n === "lg"
|
|
33
|
+
},
|
|
34
|
+
e
|
|
35
|
+
),
|
|
36
|
+
...u,
|
|
37
|
+
children: !t && o
|
|
38
|
+
}
|
|
39
|
+
) })
|
|
40
|
+
), i = a(({ className: e, ...o }, t) => /* @__PURE__ */ b("p", { className: s("text-md", e), ref: t, ...o })), d = a(({ icon: e }, o) => /* @__PURE__ */ b(p, { size: "md", ref: o, icon: e }));
|
|
41
|
+
c.displayName = "Link";
|
|
42
|
+
d.displayName = "Link.Icon";
|
|
43
|
+
i.displayName = "Link.Label";
|
|
44
|
+
const v = Object.assign(c, {
|
|
45
|
+
Icon: d,
|
|
46
|
+
Label: i
|
|
47
|
+
});
|
|
48
|
+
export {
|
|
49
|
+
v as Link
|
|
50
|
+
};
|
|
@@ -12,6 +12,7 @@ import { NavItem } from './NavItem';
|
|
|
12
12
|
import { Nav } from './Nav';
|
|
13
13
|
import { Modal } from './Modal';
|
|
14
14
|
import { MenuButton } from './MenuButton';
|
|
15
|
+
import { Link } from './Link';
|
|
15
16
|
import { Input } from './Input';
|
|
16
17
|
import { ImageCard } from './ImageCard';
|
|
17
18
|
import { Image } from './Image';
|
|
@@ -35,4 +36,4 @@ import { Breadcrumbs } from './Breadcrumbs';
|
|
|
35
36
|
import { AlertBar } from './AlertBar';
|
|
36
37
|
import { Accordion } from './Accordion';
|
|
37
38
|
|
|
38
|
-
export { Accordion, AlertBar, Breadcrumbs, Button, CalendarComponent, Card, Checkbox, Carousel, CarouselThumbnail, Collapsible, Counter, DetailUpdater, Dialog, Dropdown, Form, Footer, FooterNav, Greeting, Icon, Image, ImageCard, Input, MenuButton, Modal, Nav, NavItem, Pill, Search, Select, SplitCard, Stars, Testimonial, TextArea, Timeline, Tubestops, Video };
|
|
39
|
+
export { Accordion, AlertBar, Breadcrumbs, Button, CalendarComponent, Card, Checkbox, Carousel, CarouselThumbnail, Collapsible, Counter, DetailUpdater, Dialog, Dropdown, Form, Footer, FooterNav, Greeting, Icon, Image, ImageCard, Input, Link, MenuButton, Modal, Nav, NavItem, Pill, Search, Select, SplitCard, Stars, Testimonial, TextArea, Timeline, Tubestops, Video };
|
package/lib/index.js
CHANGED
|
@@ -12,28 +12,29 @@ import { Counter as S } from "./components/Counter/index.js";
|
|
|
12
12
|
import { DetailUpdater as v } from "./components/DetailUpdater/index.js";
|
|
13
13
|
import { Dialog as D } from "./components/Dialog/index.js";
|
|
14
14
|
import { Dropdown as N } from "./components/Dropdown/index.js";
|
|
15
|
-
import { Form as
|
|
15
|
+
import { Form as M } from "./components/Form/index.js";
|
|
16
16
|
import { Footer as G } from "./components/Footer/index.js";
|
|
17
|
-
import { FooterNav as
|
|
18
|
-
import { Greeting as
|
|
19
|
-
import { Icon as
|
|
20
|
-
import { Image as
|
|
21
|
-
import { ImageCard as
|
|
22
|
-
import { Input as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
17
|
+
import { FooterNav as P } from "./components/FooterNav/index.js";
|
|
18
|
+
import { Greeting as V } from "./components/Greeting/index.js";
|
|
19
|
+
import { Icon as q } from "./components/Icon/index.js";
|
|
20
|
+
import { Image as z } from "./components/Image/index.js";
|
|
21
|
+
import { ImageCard as H } from "./components/ImageCard/index.js";
|
|
22
|
+
import { Input as K } from "./components/Input/index.js";
|
|
23
|
+
import { Link as Q } from "./components/Link/index.js";
|
|
24
|
+
import { MenuButton as W } from "./components/MenuButton/index.js";
|
|
25
|
+
import { Modal as Y } from "./components/Modal/index.js";
|
|
26
|
+
import { Nav as _ } from "./components/Nav/index.js";
|
|
27
|
+
import { NavItem as oo } from "./components/NavItem/index.js";
|
|
28
|
+
import { Pill as eo } from "./components/Pill/index.js";
|
|
29
|
+
import { Search as mo } from "./components/Search/index.js";
|
|
30
|
+
import { Select as xo } from "./components/Select/index.js";
|
|
31
|
+
import { SplitCard as ao } from "./components/SplitCard/index.js";
|
|
32
|
+
import { Stars as no } from "./components/Stars/index.js";
|
|
33
|
+
import { Testimonial as uo } from "./components/Testimonial/index.js";
|
|
34
|
+
import { TextArea as so } from "./components/TextArea/index.js";
|
|
35
|
+
import { Timeline as bo } from "./components/Timeline/index.js";
|
|
36
|
+
import { Tubestops as To } from "./components/Tubestops/index.js";
|
|
37
|
+
import { Video as Bo } from "./components/Video/index.js";
|
|
37
38
|
export {
|
|
38
39
|
e as Accordion,
|
|
39
40
|
m as AlertBar,
|
|
@@ -50,25 +51,26 @@ export {
|
|
|
50
51
|
D as Dialog,
|
|
51
52
|
N as Dropdown,
|
|
52
53
|
G as Footer,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Q as
|
|
61
|
-
W as
|
|
62
|
-
Y as
|
|
63
|
-
_ as
|
|
64
|
-
oo as
|
|
65
|
-
eo as
|
|
66
|
-
mo as
|
|
67
|
-
xo as
|
|
68
|
-
ao as
|
|
69
|
-
no as
|
|
70
|
-
uo as
|
|
71
|
-
so as
|
|
72
|
-
bo as
|
|
73
|
-
To as
|
|
54
|
+
P as FooterNav,
|
|
55
|
+
M as Form,
|
|
56
|
+
V as Greeting,
|
|
57
|
+
q as Icon,
|
|
58
|
+
z as Image,
|
|
59
|
+
H as ImageCard,
|
|
60
|
+
K as Input,
|
|
61
|
+
Q as Link,
|
|
62
|
+
W as MenuButton,
|
|
63
|
+
Y as Modal,
|
|
64
|
+
_ as Nav,
|
|
65
|
+
oo as NavItem,
|
|
66
|
+
eo as Pill,
|
|
67
|
+
mo as Search,
|
|
68
|
+
xo as Select,
|
|
69
|
+
ao as SplitCard,
|
|
70
|
+
no as Stars,
|
|
71
|
+
uo as Testimonial,
|
|
72
|
+
so as TextArea,
|
|
73
|
+
bo as Timeline,
|
|
74
|
+
To as Tubestops,
|
|
75
|
+
Bo as Video
|
|
74
76
|
};
|