@bccampus/ui-components 0.1.0 → 0.2.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 +20 -14
- package/dist/caption.js +9 -8
- package/dist/card.d.ts +15 -9
- package/dist/card.js +62 -84
- package/dist/createLucideIcon-CzehbSja.js +94 -0
- package/dist/horizontal-list.d.ts +9 -2
- package/dist/horizontal-list.js +47 -115
- package/dist/icon-generator.d.ts +2 -1
- package/dist/icon-generator.js +180 -147
- package/dist/index-CQhYMnjT.js +34 -0
- package/dist/index-DlfV3JTY.js +70 -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/overlay.d.ts +13 -0
- package/dist/overlay.js +27 -0
- package/dist/page-header.d.ts +5 -0
- package/dist/page-header.js +943 -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 +10 -9
- package/dist/ui-components.d.ts +84 -29
- package/dist/ui-components.js +42 -27
- package/package.json +44 -15
- package/src/assets/images/image_06.jpg +0 -0
- package/src/components/ui/banner.tsx +48 -0
- package/src/components/ui/button.tsx +52 -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 +11 -4
- package/src/components/ui/input.tsx +17 -0
- package/src/components/ui/overlay.tsx +29 -0
- package/src/components/ui/page-header.tsx +16 -0
- package/src/components/ui/page-section.tsx +33 -0
- package/src/components/ui/page.tsx +9 -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 +56 -2
- package/src/styles/typography.css +480 -479
- package/tsconfig.app.json +37 -37
- package/vite.config.ts +51 -44
- package/dist/@bccampus-ui-components-0.1.0.tgz +0 -0
- package/dist/index-DcqAdr0d.js +0 -102
- 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 { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { c as m } from "./index-CQhYMnjT.js";
|
|
3
|
+
import { c as l } from "./utils-CRiPKpXj.js";
|
|
4
|
+
import { useState as d } from "react";
|
|
5
|
+
import { Button as f } from "./button.js";
|
|
6
|
+
import { c as x } 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 p = [
|
|
14
|
+
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
15
|
+
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
16
|
+
], u = x("x", p), v = m("flex flex-row items-center justify-between px-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 w({ className: e, size: s, variant: i, dismissible: a, children: n, ...r }) {
|
|
34
|
+
const [o, c] = d(!1);
|
|
35
|
+
return o ? null : /* @__PURE__ */ t.jsxs("div", { className: l(v({ variant: i, size: s }), e), ...r, children: [
|
|
36
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex-auto text-center", children: n }),
|
|
37
|
+
a && /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(f, { variant: "ghost", size: "icon", className: "size-6 text-white", onClick: () => c(!0), children: /* @__PURE__ */ t.jsx(u, {}) }) })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
w 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" | "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 { j as
|
|
2
|
-
import {
|
|
1
|
+
import { j as s } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { S as d } from "./index-DlfV3JTY.js";
|
|
3
|
+
import { c } from "./index-CQhYMnjT.js";
|
|
3
4
|
import { c as u } from "./utils-CRiPKpXj.js";
|
|
4
|
-
const
|
|
5
|
-
"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 [&_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
|
|
5
|
+
const v = c(
|
|
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 [&_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
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
13
|
+
ghost: "text-primary hover:text-secondary dark:text-foreground dark:hover:bg-complement-1-800",
|
|
14
14
|
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
15
|
},
|
|
16
|
+
block: {
|
|
17
|
+
false: "w-fit",
|
|
18
|
+
true: "w-full"
|
|
19
|
+
},
|
|
16
20
|
size: {
|
|
17
21
|
default: "h-9 px-6 py-2 has-[>svg]:px-3",
|
|
18
22
|
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
19
23
|
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
20
|
-
icon: "size-9"
|
|
24
|
+
icon: "size-9",
|
|
25
|
+
text: "py-2"
|
|
21
26
|
}
|
|
22
27
|
},
|
|
23
28
|
defaultVariants: {
|
|
24
29
|
variant: "default",
|
|
25
|
-
size: "default"
|
|
30
|
+
size: "default",
|
|
31
|
+
block: !1
|
|
26
32
|
}
|
|
27
33
|
}
|
|
28
34
|
);
|
|
29
|
-
function
|
|
30
|
-
const
|
|
31
|
-
return /* @__PURE__ */
|
|
35
|
+
function m({ className: e, variant: r, size: t, block: o, asChild: i = !1, ...a }) {
|
|
36
|
+
const n = i ? d : "button";
|
|
37
|
+
return /* @__PURE__ */ s.jsx(n, { "data-slot": "button", className: u(v({ variant: r, size: t, block: o }), e), ...a });
|
|
32
38
|
}
|
|
33
39
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
m as Button,
|
|
41
|
+
v as buttonVariants
|
|
36
42
|
};
|
package/dist/caption.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import {
|
|
3
|
-
import { c as
|
|
4
|
-
|
|
2
|
+
import { S as i } from "./index-DlfV3JTY.js";
|
|
3
|
+
import { c as e } from "./index-CQhYMnjT.js";
|
|
4
|
+
import { c as m } from "./utils-CRiPKpXj.js";
|
|
5
|
+
const l = 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",
|
|
@@ -12,16 +13,16 @@ const c = i("tracking-tight text-balance", {
|
|
|
12
13
|
variant: "default"
|
|
13
14
|
}
|
|
14
15
|
});
|
|
15
|
-
function
|
|
16
|
+
function d({
|
|
16
17
|
className: t,
|
|
17
18
|
variant: a,
|
|
18
19
|
asChild: r = !1,
|
|
19
20
|
...o
|
|
20
21
|
}) {
|
|
21
|
-
const n = r ?
|
|
22
|
-
return /* @__PURE__ */ s.jsx(n, {
|
|
22
|
+
const n = r ? i : "div";
|
|
23
|
+
return /* @__PURE__ */ s.jsx(n, { className: m(l({ variant: a, className: t })), ...o });
|
|
23
24
|
}
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
d as Caption,
|
|
27
|
+
l as captionVariants
|
|
27
28
|
};
|
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 { j as
|
|
2
|
-
import { c as
|
|
1
|
+
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
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 s } from "./index-CQhYMnjT.js";
|
|
5
|
+
const u = s("group @container/card w-full max-w-full bg-card text-card-foreground grid gap-card", {
|
|
6
6
|
variants: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
bordered: {
|
|
8
|
+
true: "p-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 j({ className: r, asLink: a, bordered: n, rounded: o, ...l }) {
|
|
22
|
+
const i = a ? "a" : "div", c = 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.jsx(i, { "data-slot": "card", className: t(u({ bordered: n, rounded: o }), c, r), ...l })
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return /* @__PURE__ */
|
|
28
|
+
function v({ name: r, className: a, ...n }) {
|
|
29
|
+
return /* @__PURE__ */ e.jsx(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
|
-
|
|
33
|
-
className:
|
|
34
|
-
...
|
|
32
|
+
style: { gridArea: r },
|
|
33
|
+
className: t("relative flex flex-col gap-(--card-area-gap)", a),
|
|
34
|
+
...n
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return /* @__PURE__ */
|
|
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 C({ className: r, ...a }) {
|
|
39
|
+
return /* @__PURE__ */ e.jsx("div", { className: t("flex flex-col gap-(--card-item-group-gap)", r), ...a });
|
|
47
40
|
}
|
|
48
|
-
function
|
|
49
|
-
return /* @__PURE__ */
|
|
41
|
+
function b({ size: r = "md", className: a, ...n }) {
|
|
42
|
+
return /* @__PURE__ */ e.jsx(
|
|
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 h({ size:
|
|
66
|
-
return /* @__PURE__ */
|
|
57
|
+
function h({ size: r = "md", className: a, ...n }) {
|
|
58
|
+
return /* @__PURE__ */ e.jsx(
|
|
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 N(
|
|
84
|
-
return /* @__PURE__ */
|
|
74
|
+
function N(r) {
|
|
75
|
+
return /* @__PURE__ */ e.jsx(d, { ...r });
|
|
85
76
|
}
|
|
86
|
-
function w(
|
|
87
|
-
return /* @__PURE__ */
|
|
77
|
+
function w(r) {
|
|
78
|
+
return /* @__PURE__ */ e.jsx(d, { variant: "light", ...r });
|
|
88
79
|
}
|
|
89
|
-
function
|
|
90
|
-
return /* @__PURE__ */
|
|
80
|
+
function y(r) {
|
|
81
|
+
return /* @__PURE__ */ e.jsx(d, { variant: "light", ...r });
|
|
91
82
|
}
|
|
92
|
-
function
|
|
93
|
-
return /* @__PURE__ */
|
|
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.jsx("div", { ...r });
|
|
101
85
|
}
|
|
102
|
-
function
|
|
103
|
-
return /* @__PURE__ */
|
|
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.jsx("div", { className: t("flex flex-wrap items-center gap-(--card-item-group-gap)", r), ...a });
|
|
88
|
+
}
|
|
89
|
+
function m({ className: r, ...a }) {
|
|
90
|
+
return /* @__PURE__ */ e.jsx("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.jsx(m, { children: /* @__PURE__ */ e.jsx("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
|
-
|
|
96
|
+
j as Card,
|
|
97
|
+
v as CardArea,
|
|
121
98
|
N as CardCaption,
|
|
122
99
|
k as CardContent,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
w as
|
|
100
|
+
I as CardImage,
|
|
101
|
+
C as CardItemGroup,
|
|
102
|
+
m as CardMedia,
|
|
103
|
+
y as CardMeta,
|
|
104
|
+
w as CardSubcaption,
|
|
128
105
|
h as CardSubtitle,
|
|
129
|
-
|
|
106
|
+
b 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 { }
|