@bccampus/ui-components 0.1.0 → 0.3.0
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/dist/banner.d.ts +16 -0
- package/dist/banner.js +42 -0
- package/dist/button.d.ts +5 -4
- package/dist/button.js +24 -18
- package/dist/caption.js +7 -7
- package/dist/card.d.ts +15 -9
- package/dist/card.js +64 -86
- package/dist/createLucideIcon-CzehbSja.js +94 -0
- package/dist/horizontal-list.d.ts +9 -2
- package/dist/horizontal-list.js +46 -114
- package/dist/icon-generator.d.ts +2 -1
- package/dist/icon-generator.js +183 -150
- package/dist/index-CQhYMnjT.js +34 -0
- package/dist/index-U7DVCmS_.js +76 -0
- package/dist/input.d.ts +7 -0
- package/dist/input.js +18 -0
- package/dist/masked-image-generator.d.ts +1 -0
- package/dist/masked-image-generator.js +18 -18
- package/dist/navigation-menu.d.ts +27 -0
- package/dist/navigation-menu.js +1139 -0
- package/dist/overlay.d.ts +13 -0
- package/dist/overlay.js +27 -0
- package/dist/page-header.d.ts +9 -0
- package/dist/page-header.js +944 -0
- package/dist/page-section.d.ts +14 -0
- package/dist/page-section.js +31 -0
- package/dist/page.d.ts +7 -0
- package/dist/page.js +8 -0
- package/dist/search-input.d.ts +7 -0
- package/dist/search-input.js +23 -0
- package/dist/tag.d.ts +2 -2
- package/dist/tag.js +7 -7
- package/dist/ui-components.d.ts +112 -29
- package/dist/ui-components.js +51 -26
- package/package.json +49 -15
- package/src/assets/images/image_06.jpg +0 -0
- package/src/components/ui/banner.tsx +48 -0
- package/src/components/ui/button.tsx +53 -47
- package/src/components/ui/card.tsx +131 -147
- package/src/components/ui/horizontal-list.tsx +75 -50
- package/src/components/ui/icon-generator/generate-tiles.tsx +243 -243
- package/src/components/ui/icon-generator/icon-generator.tsx +84 -51
- package/src/components/ui/icon-generator/masked-image-generator.tsx +38 -38
- package/src/components/ui/icon-generator/types.ts +53 -52
- package/src/components/ui/index.ts +12 -4
- package/src/components/ui/input.tsx +17 -0
- package/src/components/ui/navigation-menu.tsx +165 -0
- package/src/components/ui/overlay.tsx +29 -0
- package/src/components/ui/page-header.tsx +24 -0
- package/src/components/ui/page-section.tsx +33 -0
- package/src/components/ui/page.tsx +11 -0
- package/src/components/ui/search-input.tsx +16 -0
- package/src/components/ui/tag.tsx +39 -39
- package/src/components/ui/typography/caption.tsx +32 -32
- package/src/styles/all.css +4 -4
- package/src/styles/colors.css +9 -10
- package/src/styles/index.css +7 -7
- package/src/styles/theme.css +57 -3
- package/src/styles/typography.css +473 -479
- package/tsconfig.app.json +37 -37
- package/vite.config.ts +53 -44
- package/vite.ladle.config.ts +17 -0
- package/dist/@bccampus-ui-components-0.1.0.tgz +0 -0
- package/dist/index-DcqAdr0d.js +0 -102
- package/dist/jsx-runtime-BzflLqGi.js +0 -282
- package/dist/mockServiceWorker.js +0 -348
- package/public/mockServiceWorker.js +0 -348
- package/src/assets/images/bg_pattern_01.png +0 -0
- package/src/assets/images/bg_pattern_02.png +0 -0
- package/src/assets/images/bg_pattern_03.png +0 -0
- package/src/assets/images/bg_pattern_04.png +0 -0
package/dist/banner.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
export declare function Banner({ className, size, variant, dismissible, children, ...props }: BannerProps): JSX.Element | null;
|
|
6
|
+
|
|
7
|
+
export declare interface BannerProps extends VariantProps<typeof bannerVariants>, React.ComponentProps<"div"> {
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const bannerVariants: (props?: ({
|
|
12
|
+
variant?: "default" | "alert" | null | undefined;
|
|
13
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
14
|
+
} & ClassProp) | undefined) => string;
|
|
15
|
+
|
|
16
|
+
export { }
|
package/dist/banner.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as l } from "./index-CQhYMnjT.js";
|
|
3
|
+
import { c as d } from "./utils-CRiPKpXj.js";
|
|
4
|
+
import { useState as f } from "react";
|
|
5
|
+
import { Button as p } from "./button.js";
|
|
6
|
+
import { c as u } from "./createLucideIcon-CzehbSja.js";
|
|
7
|
+
/**
|
|
8
|
+
* @license lucide-react v0.544.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const x = [
|
|
14
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
15
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
16
|
+
], b = u("x", x), v = l("flex flex-row items-center justify-between px-(--spacing-section) text-sm", {
|
|
17
|
+
variants: {
|
|
18
|
+
variant: {
|
|
19
|
+
default: "bg-complement-3 text-white",
|
|
20
|
+
alert: "bg-complement-2-200 text-black"
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
default: "py-2",
|
|
24
|
+
sm: "py-1",
|
|
25
|
+
lg: "py-3 text-md font-semibold"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
defaultVariants: {
|
|
29
|
+
variant: "default",
|
|
30
|
+
size: "default"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
function N({ className: e, size: a, variant: s, dismissible: i, children: n, ...r }) {
|
|
34
|
+
const [o, c] = f(!1);
|
|
35
|
+
return o ? null : /* @__PURE__ */ m("div", { "data-slot": "banner", className: d(v({ variant: s, size: a }), e), ...r, children: [
|
|
36
|
+
/* @__PURE__ */ t("div", { className: "flex-auto text-center", children: n }),
|
|
37
|
+
i && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(p, { variant: "ghost", size: "icon", className: "size-6 text-white", onClick: () => c(!0), children: /* @__PURE__ */ t(b, {}) }) })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
N as Banner
|
|
42
|
+
};
|
package/dist/button.d.ts
CHANGED
|
@@ -2,15 +2,16 @@ import { ClassProp } from 'class-variance-authority/types';
|
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
|
-
export declare function Button({ className, variant, size, asChild, ...props }: ButtonProps): JSX.Element;
|
|
5
|
+
export declare function Button({ className, variant, size, block, asChild, ...props }: ButtonProps): JSX.Element;
|
|
6
6
|
|
|
7
|
-
declare type ButtonProps = React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
7
|
+
export declare type ButtonProps = React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export declare const buttonVariants: (props?: ({
|
|
12
|
-
variant?: "default" | "secondary" | "outline" | "ghost" | "
|
|
13
|
-
|
|
12
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "item" | "destructive" | null | undefined;
|
|
13
|
+
block?: boolean | null | undefined;
|
|
14
|
+
size?: "text" | "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
14
15
|
} & ClassProp) | undefined) => string;
|
|
15
16
|
|
|
16
17
|
export { }
|
package/dist/button.js
CHANGED
|
@@ -1,36 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { S as s } from "./index-U7DVCmS_.js";
|
|
3
|
+
import { c as d } from "./index-CQhYMnjT.js";
|
|
4
|
+
import { c } from "./utils-CRiPKpXj.js";
|
|
5
|
+
const u = d(
|
|
6
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 px-6 has-[>svg]:px-4 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring focus-visible:ring-2 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
6
7
|
{
|
|
7
8
|
variants: {
|
|
8
9
|
variant: {
|
|
9
|
-
default: "bg-primary text-primary-foreground hover:bg-secondary dark:bg-complement-1-
|
|
10
|
+
default: "bg-primary text-primary-foreground hover:bg-secondary dark:bg-complement-1-100 dark:text-brand-1 dark:hover:bg-complement-1-50",
|
|
10
11
|
secondary: "bg-secondary text-secondary-foreground hover:bg-background hover:text-primary dark:bg-complement-1-500 dark:text-foreground dark:hover:bg-complement-1-600",
|
|
11
12
|
outline: "border border-primary bg-transparent hover:border-secondary hover:bg-secondary/10 dark:border-input dark:hover:bg-input/50",
|
|
12
|
-
ghost: "text-
|
|
13
|
-
|
|
13
|
+
ghost: "text-primary hover:text-secondary dark:text-foreground dark:hover:bg-complement-1-800",
|
|
14
|
+
item: "justify-between px-2 has-[>svg]:px-2 text-primary hover:bg-complement-1-50 dark:text-foreground dark:hover:bg-complement-1-800",
|
|
14
15
|
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60"
|
|
15
16
|
},
|
|
17
|
+
block: {
|
|
18
|
+
false: "w-fit",
|
|
19
|
+
true: "w-full"
|
|
20
|
+
},
|
|
16
21
|
size: {
|
|
17
|
-
default: "h-9
|
|
18
|
-
sm: "h-8
|
|
19
|
-
lg: "h-10
|
|
20
|
-
icon: "size-9"
|
|
22
|
+
default: "h-9",
|
|
23
|
+
sm: "h-8 gap-1.5",
|
|
24
|
+
lg: "h-10 text-base",
|
|
25
|
+
icon: "size-9",
|
|
26
|
+
text: "h-9 text-base"
|
|
21
27
|
}
|
|
22
28
|
},
|
|
23
29
|
defaultVariants: {
|
|
24
|
-
|
|
25
|
-
|
|
30
|
+
size: "default",
|
|
31
|
+
block: !1,
|
|
32
|
+
variant: "default"
|
|
26
33
|
}
|
|
27
34
|
}
|
|
28
35
|
);
|
|
29
|
-
function p({ className: e, variant: r, size: t, asChild:
|
|
30
|
-
|
|
31
|
-
return /* @__PURE__ */ a.jsx(o, { "data-slot": "button", className: u(c({ variant: r, size: t }), e), ...n });
|
|
36
|
+
function p({ className: e, variant: r, size: t, block: o, asChild: a = !1, ...i }) {
|
|
37
|
+
return /* @__PURE__ */ n(a ? s : "button", { "data-slot": "button", className: c(u({ size: t, block: o, variant: r }), e), ...i });
|
|
32
38
|
}
|
|
33
39
|
export {
|
|
34
40
|
p as Button,
|
|
35
|
-
|
|
41
|
+
u as buttonVariants
|
|
36
42
|
};
|
package/dist/caption.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { S as i } from "./index-U7DVCmS_.js";
|
|
3
|
+
import { c as e } from "./index-CQhYMnjT.js";
|
|
4
|
+
import { c as m } from "./utils-CRiPKpXj.js";
|
|
5
|
+
const s = e("tracking-tight text-balance", {
|
|
5
6
|
variants: {
|
|
6
7
|
variant: {
|
|
7
8
|
default: "scroll-mr-5 text-lg/5 font-bold text-secondary dark:text-foreground",
|
|
@@ -18,10 +19,9 @@ function x({
|
|
|
18
19
|
asChild: r = !1,
|
|
19
20
|
...o
|
|
20
21
|
}) {
|
|
21
|
-
|
|
22
|
-
return /* @__PURE__ */ s.jsx(n, { "data-slot": "caption", className: l(c({ variant: a, className: t })), ...o });
|
|
22
|
+
return /* @__PURE__ */ n(r ? i : "div", { className: m(s({ variant: a, className: t })), ...o });
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
25
|
x as Caption,
|
|
26
|
-
|
|
26
|
+
s as captionVariants
|
|
27
27
|
};
|
package/dist/card.d.ts
CHANGED
|
@@ -2,28 +2,32 @@ import { ClassProp } from 'class-variance-authority/types';
|
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
|
-
export declare function Card<T extends boolean = false>({ className, asLink,
|
|
5
|
+
export declare function Card<T extends boolean = false>({ className, asLink, bordered, rounded, ...props }: CardProps<T>): JSX.Element;
|
|
6
6
|
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function CardArea({ name, className, ...props }: CardAreaProps): JSX.Element;
|
|
8
|
+
|
|
9
|
+
declare type CardAreaProps = React.ComponentProps<"div"> & {
|
|
10
|
+
name: string;
|
|
11
|
+
};
|
|
8
12
|
|
|
9
13
|
export declare function CardCaption(props: React.ComponentProps<"div">): JSX.Element;
|
|
10
14
|
|
|
11
15
|
export declare function CardContent(props: React.ComponentProps<"div">): JSX.Element;
|
|
12
16
|
|
|
13
|
-
export declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
14
|
-
|
|
15
|
-
export declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
16
|
-
|
|
17
17
|
export declare function CardImage({ className, ...props }: React.ComponentProps<"img">): JSX.Element;
|
|
18
18
|
|
|
19
|
+
export declare function CardItemGroup({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
20
|
+
|
|
19
21
|
export declare function CardMedia({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
20
22
|
|
|
21
23
|
export declare function CardMeta(props: React.ComponentProps<"div">): JSX.Element;
|
|
22
24
|
|
|
23
|
-
declare type CardProps<T extends boolean> = (T extends true ? React.ComponentProps<"a"> : React.ComponentProps<"div">) & VariantProps<typeof cardVariants> & {
|
|
25
|
+
export declare type CardProps<T extends boolean> = (T extends true ? React.ComponentProps<"a"> : React.ComponentProps<"div">) & VariantProps<typeof cardVariants> & {
|
|
24
26
|
asLink?: T;
|
|
25
27
|
};
|
|
26
28
|
|
|
29
|
+
export declare function CardSubcaption(props: React.ComponentProps<"div">): JSX.Element;
|
|
30
|
+
|
|
27
31
|
export declare function CardSubtitle({ size, className, ...props }: CardTitleProps): JSX.Element;
|
|
28
32
|
|
|
29
33
|
export declare function CardTitle({ size, className, ...props }: CardTitleProps): JSX.Element;
|
|
@@ -32,9 +36,11 @@ declare type CardTitleProps = React.ComponentProps<"div"> & {
|
|
|
32
36
|
size?: "sm" | "md" | "lg";
|
|
33
37
|
};
|
|
34
38
|
|
|
39
|
+
export declare function CardToolbar({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
40
|
+
|
|
35
41
|
declare const cardVariants: (props?: ({
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
bordered?: boolean | null | undefined;
|
|
43
|
+
rounded?: boolean | null | undefined;
|
|
38
44
|
} & ClassProp) | undefined) => string;
|
|
39
45
|
|
|
40
46
|
export { }
|
package/dist/card.js
CHANGED
|
@@ -1,130 +1,108 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as t } from "./utils-CRiPKpXj.js";
|
|
3
3
|
import { Caption as d } from "./caption.js";
|
|
4
|
-
import { c as
|
|
5
|
-
const
|
|
4
|
+
import { c as u } from "./index-CQhYMnjT.js";
|
|
5
|
+
const m = u("group @container/card w-full max-w-full bg-card text-card-foreground grid gap-(--gap-card)", {
|
|
6
6
|
variants: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
bordered: {
|
|
8
|
+
true: "p-(--spacing-card) border border-complement-1-100 dark:border-brand-1-900 ",
|
|
9
|
+
false: ""
|
|
10
10
|
},
|
|
11
|
-
|
|
12
|
-
true: "",
|
|
13
|
-
false: "
|
|
11
|
+
rounded: {
|
|
12
|
+
true: "rounded-2xl",
|
|
13
|
+
false: ""
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
defaultVariants: {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
bordered: !1,
|
|
18
|
+
rounded: !1
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
function
|
|
22
|
-
const
|
|
21
|
+
function C({ className: r, asLink: a, bordered: n, rounded: o, ...c }) {
|
|
22
|
+
const i = a ? "a" : "div", l = a ? "transition-all hover:bg-complement-1-50 dark:hover:bg-gray-900" : "";
|
|
23
23
|
return (
|
|
24
24
|
//@ts-expect-error: props type will be correct
|
|
25
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ e(i, { "data-slot": "card", className: t(m({ bordered: n, rounded: o }), l, r), ...c })
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
|
-
function b({ className: a, ...
|
|
29
|
-
return /* @__PURE__ */
|
|
28
|
+
function b({ name: r, className: a, ...n }) {
|
|
29
|
+
return /* @__PURE__ */ e(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
|
-
|
|
33
|
-
className:
|
|
34
|
-
...
|
|
32
|
+
style: { gridArea: r },
|
|
33
|
+
className: t("@container/card-area relative flex flex-col gap-(--gap-card-area)", a),
|
|
34
|
+
...n
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return /* @__PURE__ */ r
|
|
40
|
-
"div",
|
|
41
|
-
{
|
|
42
|
-
"data-slot": "card-body",
|
|
43
|
-
className: e("flex flex-col items-start gap-3 px-6 first:pt-6 last:pb-6", a),
|
|
44
|
-
...t
|
|
45
|
-
}
|
|
46
|
-
);
|
|
38
|
+
function h({ className: r, ...a }) {
|
|
39
|
+
return /* @__PURE__ */ e("div", { className: t("flex flex-col gap-(--gap-card-item-group)", r), ...a });
|
|
47
40
|
}
|
|
48
|
-
function
|
|
49
|
-
return /* @__PURE__ */
|
|
41
|
+
function x({ size: r = "md", className: a, ...n }) {
|
|
42
|
+
return /* @__PURE__ */ e(
|
|
50
43
|
"div",
|
|
51
44
|
{
|
|
52
|
-
|
|
53
|
-
className: e(
|
|
45
|
+
className: t(
|
|
54
46
|
{
|
|
55
|
-
"heading-1":
|
|
56
|
-
"heading-2":
|
|
57
|
-
"heading-3":
|
|
47
|
+
"heading-1": r === "lg",
|
|
48
|
+
"heading-2": r === "md",
|
|
49
|
+
"heading-3": r === "sm"
|
|
58
50
|
},
|
|
59
|
-
|
|
51
|
+
a
|
|
60
52
|
),
|
|
61
|
-
...
|
|
53
|
+
...n
|
|
62
54
|
}
|
|
63
55
|
);
|
|
64
56
|
}
|
|
65
|
-
function
|
|
66
|
-
return /* @__PURE__ */
|
|
57
|
+
function N({ size: r = "md", className: a, ...n }) {
|
|
58
|
+
return /* @__PURE__ */ e(
|
|
67
59
|
"div",
|
|
68
60
|
{
|
|
69
|
-
|
|
70
|
-
className: e(
|
|
61
|
+
className: t(
|
|
71
62
|
"text-secondary",
|
|
72
63
|
{
|
|
73
|
-
"heading-1":
|
|
74
|
-
"heading-2":
|
|
75
|
-
"heading-3":
|
|
64
|
+
"heading-1": r === "lg",
|
|
65
|
+
"heading-2": r === "md",
|
|
66
|
+
"heading-3": r === "sm"
|
|
76
67
|
},
|
|
77
|
-
|
|
68
|
+
a
|
|
78
69
|
),
|
|
79
|
-
...
|
|
70
|
+
...n
|
|
80
71
|
}
|
|
81
72
|
);
|
|
82
73
|
}
|
|
83
|
-
function
|
|
84
|
-
return /* @__PURE__ */
|
|
74
|
+
function w(r) {
|
|
75
|
+
return /* @__PURE__ */ e(d, { ...r });
|
|
85
76
|
}
|
|
86
|
-
function
|
|
87
|
-
return /* @__PURE__ */
|
|
77
|
+
function j(r) {
|
|
78
|
+
return /* @__PURE__ */ e(d, { variant: "light", ...r });
|
|
88
79
|
}
|
|
89
|
-
function
|
|
90
|
-
return /* @__PURE__ */
|
|
80
|
+
function y(r) {
|
|
81
|
+
return /* @__PURE__ */ e(d, { variant: "light", ...r });
|
|
91
82
|
}
|
|
92
|
-
function
|
|
93
|
-
return /* @__PURE__ */ r
|
|
94
|
-
"div",
|
|
95
|
-
{
|
|
96
|
-
"data-slot": "card-footer",
|
|
97
|
-
className: e("flex flex-wrap items-center gap-2 px-6 pt-3 last:pb-6", a),
|
|
98
|
-
...t
|
|
99
|
-
}
|
|
100
|
-
);
|
|
83
|
+
function k(r) {
|
|
84
|
+
return /* @__PURE__ */ e("div", { ...r });
|
|
101
85
|
}
|
|
102
|
-
function
|
|
103
|
-
return /* @__PURE__ */ r
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
className: e(
|
|
108
|
-
"relative flex-1 p-6 first:pb-3 last:pt-3 group-[.flex-row]:first:pr-0 group-[.flex-row]:first:pb-6 group-[.flex-row]:last:pl-0 group-[.flex-row]:last:pt-6",
|
|
109
|
-
a
|
|
110
|
-
),
|
|
111
|
-
...t
|
|
112
|
-
}
|
|
113
|
-
);
|
|
86
|
+
function A({ className: r, ...a }) {
|
|
87
|
+
return /* @__PURE__ */ e("div", { className: t("flex flex-wrap items-center gap-(--gap-card-item-group)", r), ...a });
|
|
88
|
+
}
|
|
89
|
+
function s({ className: r, ...a }) {
|
|
90
|
+
return /* @__PURE__ */ e("div", { className: t("relative w-full h-full", r), ...a });
|
|
114
91
|
}
|
|
115
|
-
function
|
|
116
|
-
return /* @__PURE__ */
|
|
92
|
+
function I({ className: r, ...a }) {
|
|
93
|
+
return /* @__PURE__ */ e(s, { children: /* @__PURE__ */ e("img", { className: t("w-full h-full rounded-lg aspect-9/5 object-cover object-top", r), ...a }) });
|
|
117
94
|
}
|
|
118
95
|
export {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
96
|
+
C as Card,
|
|
97
|
+
b as CardArea,
|
|
98
|
+
w as CardCaption,
|
|
122
99
|
k as CardContent,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
100
|
+
I as CardImage,
|
|
101
|
+
h as CardItemGroup,
|
|
102
|
+
s as CardMedia,
|
|
103
|
+
y as CardMeta,
|
|
104
|
+
j as CardSubcaption,
|
|
105
|
+
N as CardSubtitle,
|
|
106
|
+
x as CardTitle,
|
|
107
|
+
A as CardToolbar
|
|
130
108
|
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { forwardRef as l, createElement as n } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* @license lucide-react v0.544.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
const w = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), h = (t) => t.replace(
|
|
9
|
+
/^([A-Z])|[\s-_]+(\w)/g,
|
|
10
|
+
(e, r, o) => o ? o.toUpperCase() : r.toLowerCase()
|
|
11
|
+
), i = (t) => {
|
|
12
|
+
const e = h(t);
|
|
13
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
|
+
}, u = (...t) => t.filter((e, r, o) => !!e && e.trim() !== "" && o.indexOf(e) === r).join(" ").trim(), f = (t) => {
|
|
15
|
+
for (const e in t)
|
|
16
|
+
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
17
|
+
return !0;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @license lucide-react v0.544.0 - ISC
|
|
21
|
+
*
|
|
22
|
+
* This source code is licensed under the ISC license.
|
|
23
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
24
|
+
*/
|
|
25
|
+
var g = {
|
|
26
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
27
|
+
width: 24,
|
|
28
|
+
height: 24,
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
fill: "none",
|
|
31
|
+
stroke: "currentColor",
|
|
32
|
+
strokeWidth: 2,
|
|
33
|
+
strokeLinecap: "round",
|
|
34
|
+
strokeLinejoin: "round"
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @license lucide-react v0.544.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/
|
|
42
|
+
const A = l(
|
|
43
|
+
({
|
|
44
|
+
color: t = "currentColor",
|
|
45
|
+
size: e = 24,
|
|
46
|
+
strokeWidth: r = 2,
|
|
47
|
+
absoluteStrokeWidth: o,
|
|
48
|
+
className: s = "",
|
|
49
|
+
children: a,
|
|
50
|
+
iconNode: p,
|
|
51
|
+
...c
|
|
52
|
+
}, m) => n(
|
|
53
|
+
"svg",
|
|
54
|
+
{
|
|
55
|
+
ref: m,
|
|
56
|
+
...g,
|
|
57
|
+
width: e,
|
|
58
|
+
height: e,
|
|
59
|
+
stroke: t,
|
|
60
|
+
strokeWidth: o ? Number(r) * 24 / Number(e) : r,
|
|
61
|
+
className: u("lucide", s),
|
|
62
|
+
...!a && !f(c) && { "aria-hidden": "true" },
|
|
63
|
+
...c
|
|
64
|
+
},
|
|
65
|
+
[
|
|
66
|
+
...p.map(([C, d]) => n(C, d)),
|
|
67
|
+
...Array.isArray(a) ? a : [a]
|
|
68
|
+
]
|
|
69
|
+
)
|
|
70
|
+
);
|
|
71
|
+
/**
|
|
72
|
+
* @license lucide-react v0.544.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/
|
|
77
|
+
const k = (t, e) => {
|
|
78
|
+
const r = l(
|
|
79
|
+
({ className: o, ...s }, a) => n(A, {
|
|
80
|
+
ref: a,
|
|
81
|
+
iconNode: e,
|
|
82
|
+
className: u(
|
|
83
|
+
`lucide-${w(i(t))}`,
|
|
84
|
+
`lucide-${t}`,
|
|
85
|
+
o
|
|
86
|
+
),
|
|
87
|
+
...s
|
|
88
|
+
})
|
|
89
|
+
);
|
|
90
|
+
return r.displayName = i(t), r;
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
k as c
|
|
94
|
+
};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
1
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
4
|
|
|
3
|
-
export declare function HorizontalList({ className, children, toolbarLocation, ...props }: HorizontalListProps): JSX.Element;
|
|
5
|
+
export declare function HorizontalList({ variant, className, children, toolbarLocation, scrollBy, ...props }: HorizontalListProps): JSX.Element;
|
|
4
6
|
|
|
5
|
-
declare interface HorizontalListProps extends React.ComponentProps<"div"> {
|
|
7
|
+
export declare interface HorizontalListProps extends VariantProps<typeof horizontalListVariants>, React.ComponentProps<"div"> {
|
|
6
8
|
toolbarLocation?: "bottom" | "top";
|
|
9
|
+
scrollBy?: number;
|
|
7
10
|
}
|
|
8
11
|
|
|
12
|
+
declare const horizontalListVariants: (props?: ({
|
|
13
|
+
variant?: "overflow" | "contain" | null | undefined;
|
|
14
|
+
} & ClassProp) | undefined) => string;
|
|
15
|
+
|
|
9
16
|
export { }
|