@bccampus/ui-components 0.1.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.
Files changed (68) hide show
  1. package/README.md +69 -0
  2. package/components.json +22 -0
  3. package/dist/@bccampus-ui-components-0.1.0.tgz +0 -0
  4. package/dist/button.d.ts +16 -0
  5. package/dist/button.js +36 -0
  6. package/dist/caption.d.ts +13 -0
  7. package/dist/caption.js +27 -0
  8. package/dist/card.d.ts +40 -0
  9. package/dist/card.js +130 -0
  10. package/dist/horizontal-list.d.ts +9 -0
  11. package/dist/horizontal-list.js +145 -0
  12. package/dist/icon-generator.d.ts +50 -0
  13. package/dist/icon-generator.js +270 -0
  14. package/dist/index-DcqAdr0d.js +102 -0
  15. package/dist/jsx-runtime-BzflLqGi.js +282 -0
  16. package/dist/masked-image-generator.d.ts +57 -0
  17. package/dist/masked-image-generator.js +29 -0
  18. package/dist/mockServiceWorker.js +348 -0
  19. package/dist/tag.d.ts +16 -0
  20. package/dist/tag.js +32 -0
  21. package/dist/ui-components.d.ts +132 -0
  22. package/dist/ui-components.js +29 -0
  23. package/dist/utils-CRiPKpXj.js +2743 -0
  24. package/dist/utils.d.ts +5 -0
  25. package/dist/utils.js +4 -0
  26. package/eslint.config.js +31 -0
  27. package/index.html +13 -0
  28. package/package.json +85 -0
  29. package/public/mockServiceWorker.js +348 -0
  30. package/src/App.tsx +14 -0
  31. package/src/assets/icons/icon_01.svg +6 -0
  32. package/src/assets/icons/icon_02.svg +6 -0
  33. package/src/assets/icons/icon_03.svg +6 -0
  34. package/src/assets/icons/icon_04.svg +6 -0
  35. package/src/assets/icons/icon_05.svg +4 -0
  36. package/src/assets/icons/icon_06.svg +4 -0
  37. package/src/assets/images/bg_pattern_01.png +0 -0
  38. package/src/assets/images/bg_pattern_02.png +0 -0
  39. package/src/assets/images/bg_pattern_03.png +0 -0
  40. package/src/assets/images/bg_pattern_04.png +0 -0
  41. package/src/assets/images/image_01.jpg +0 -0
  42. package/src/assets/images/image_02.jpg +0 -0
  43. package/src/assets/images/image_03.webp +0 -0
  44. package/src/assets/images/image_04.png +0 -0
  45. package/src/assets/images/image_05.jpg +0 -0
  46. package/src/components/ui/button.tsx +47 -0
  47. package/src/components/ui/card.tsx +147 -0
  48. package/src/components/ui/horizontal-list.tsx +50 -0
  49. package/src/components/ui/icon-generator/generate-tiles.tsx +243 -0
  50. package/src/components/ui/icon-generator/icon-generator.tsx +51 -0
  51. package/src/components/ui/icon-generator/masked-image-generator.tsx +38 -0
  52. package/src/components/ui/icon-generator/types.ts +53 -0
  53. package/src/components/ui/index.ts +7 -0
  54. package/src/components/ui/tag.tsx +39 -0
  55. package/src/components/ui/typography/caption.tsx +32 -0
  56. package/src/lib/utils.ts +6 -0
  57. package/src/main.tsx +12 -0
  58. package/src/styles/all.css +4 -0
  59. package/src/styles/colors.css +106 -0
  60. package/src/styles/fonts.css +9 -0
  61. package/src/styles/index.css +7 -0
  62. package/src/styles/theme.css +126 -0
  63. package/src/styles/typography.css +479 -0
  64. package/src/vite-env.d.ts +1 -0
  65. package/tsconfig.app.json +38 -0
  66. package/tsconfig.json +19 -0
  67. package/tsconfig.node.json +25 -0
  68. package/vite.config.ts +44 -0
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
13
+
14
+ ```js
15
+ export default defineConfig([
16
+ globalIgnores(['dist']),
17
+ {
18
+ files: ['**/*.{ts,tsx}'],
19
+ extends: [
20
+ // Other configs...
21
+
22
+ // Remove tseslint.configs.recommended and replace with this
23
+ tseslint.configs.recommendedTypeChecked,
24
+ // Alternatively, use this for stricter rules
25
+ tseslint.configs.strictTypeChecked,
26
+ // Optionally, add this for stylistic rules
27
+ tseslint.configs.stylisticTypeChecked,
28
+
29
+ // Other configs...
30
+ ],
31
+ languageOptions: {
32
+ parserOptions: {
33
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
34
+ tsconfigRootDir: import.meta.dirname,
35
+ },
36
+ // other options...
37
+ },
38
+ },
39
+ ])
40
+ ```
41
+
42
+ You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
43
+
44
+ ```js
45
+ // eslint.config.js
46
+ import reactX from 'eslint-plugin-react-x'
47
+ import reactDom from 'eslint-plugin-react-dom'
48
+
49
+ export default defineConfig([
50
+ globalIgnores(['dist']),
51
+ {
52
+ files: ['**/*.{ts,tsx}'],
53
+ extends: [
54
+ // Other configs...
55
+ // Enable lint rules for React
56
+ reactX.configs['recommended-typescript'],
57
+ // Enable lint rules for React DOM
58
+ reactDom.configs.recommended,
59
+ ],
60
+ languageOptions: {
61
+ parserOptions: {
62
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
63
+ tsconfigRootDir: import.meta.dirname,
64
+ },
65
+ // other options...
66
+ },
67
+ },
68
+ ])
69
+ ```
@@ -0,0 +1,22 @@
1
+ {
2
+ "$schema": "https://ui.shadcn.com/schema.json",
3
+ "style": "new-york",
4
+ "rsc": false,
5
+ "tsx": true,
6
+ "tailwind": {
7
+ "config": "",
8
+ "css": "src/index.css",
9
+ "baseColor": "zinc",
10
+ "cssVariables": true,
11
+ "prefix": ""
12
+ },
13
+ "iconLibrary": "lucide",
14
+ "aliases": {
15
+ "components": "@/components",
16
+ "utils": "@/lib/utils",
17
+ "ui": "@/components/ui",
18
+ "lib": "@/lib",
19
+ "hooks": "@/hooks"
20
+ },
21
+ "registries": {}
22
+ }
@@ -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 Button({ className, variant, size, asChild, ...props }: ButtonProps): JSX.Element;
6
+
7
+ declare type ButtonProps = React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
+ asChild?: boolean;
9
+ };
10
+
11
+ export declare const buttonVariants: (props?: ({
12
+ variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive" | null | undefined;
13
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
14
+ } & ClassProp) | undefined) => string;
15
+
16
+ export { }
package/dist/button.js ADDED
@@ -0,0 +1,36 @@
1
+ import { j as a } from "./jsx-runtime-BzflLqGi.js";
2
+ import { c as s, S as d } from "./index-DcqAdr0d.js";
3
+ import { c as u } from "./utils-CRiPKpXj.js";
4
+ const c = s(
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/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
6
+ {
7
+ variants: {
8
+ variant: {
9
+ default: "bg-primary text-primary-foreground hover:bg-secondary dark:bg-complement-1-50 dark:text-brand-1 dark:hover:bg-complement-1-100",
10
+ 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
+ outline: "border border-primary bg-transparent hover:border-secondary hover:bg-secondary/10 dark:border-input dark:hover:bg-input/50",
12
+ ghost: "text-secondary hover:bg-primary/10 dark:text-foreground dark:hover:bg-complement-1-800",
13
+ link: "text-primary underline-offset-4 hover:underline",
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
+ },
16
+ size: {
17
+ default: "h-9 px-6 py-2 has-[>svg]:px-3",
18
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
19
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
20
+ icon: "size-9"
21
+ }
22
+ },
23
+ defaultVariants: {
24
+ variant: "default",
25
+ size: "default"
26
+ }
27
+ }
28
+ );
29
+ function p({ className: e, variant: r, size: t, asChild: i = !1, ...n }) {
30
+ const o = i ? d : "button";
31
+ return /* @__PURE__ */ a.jsx(o, { "data-slot": "button", className: u(c({ variant: r, size: t }), e), ...n });
32
+ }
33
+ export {
34
+ p as Button,
35
+ c as buttonVariants
36
+ };
@@ -0,0 +1,13 @@
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 Caption({ className, variant, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof captionVariants> & {
6
+ asChild?: boolean;
7
+ }): JSX.Element;
8
+
9
+ export declare const captionVariants: (props?: ({
10
+ variant?: "default" | "light" | null | undefined;
11
+ } & ClassProp) | undefined) => string;
12
+
13
+ export { }
@@ -0,0 +1,27 @@
1
+ import { j as s } from "./jsx-runtime-BzflLqGi.js";
2
+ import { c as i, S as e } from "./index-DcqAdr0d.js";
3
+ import { c as l } from "./utils-CRiPKpXj.js";
4
+ const c = i("tracking-tight text-balance", {
5
+ variants: {
6
+ variant: {
7
+ default: "scroll-mr-5 text-lg/5 font-bold text-secondary dark:text-foreground",
8
+ light: "scroll-mr-4 text-sm/4 font-normal text-primary"
9
+ }
10
+ },
11
+ defaultVariants: {
12
+ variant: "default"
13
+ }
14
+ });
15
+ function x({
16
+ className: t,
17
+ variant: a,
18
+ asChild: r = !1,
19
+ ...o
20
+ }) {
21
+ const n = r ? e : "div";
22
+ return /* @__PURE__ */ s.jsx(n, { "data-slot": "caption", className: l(c({ variant: a, className: t })), ...o });
23
+ }
24
+ export {
25
+ x as Caption,
26
+ c as captionVariants
27
+ };
package/dist/card.d.ts ADDED
@@ -0,0 +1,40 @@
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 Card<T extends boolean = false>({ className, asLink, variant, noBorder, ...props }: CardProps<T>): JSX.Element;
6
+
7
+ export declare function CardBody({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
8
+
9
+ export declare function CardCaption(props: React.ComponentProps<"div">): JSX.Element;
10
+
11
+ export declare function CardContent(props: React.ComponentProps<"div">): JSX.Element;
12
+
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
+ export declare function CardImage({ className, ...props }: React.ComponentProps<"img">): JSX.Element;
18
+
19
+ export declare function CardMedia({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
20
+
21
+ export declare function CardMeta(props: React.ComponentProps<"div">): JSX.Element;
22
+
23
+ declare type CardProps<T extends boolean> = (T extends true ? React.ComponentProps<"a"> : React.ComponentProps<"div">) & VariantProps<typeof cardVariants> & {
24
+ asLink?: T;
25
+ };
26
+
27
+ export declare function CardSubtitle({ size, className, ...props }: CardTitleProps): JSX.Element;
28
+
29
+ export declare function CardTitle({ size, className, ...props }: CardTitleProps): JSX.Element;
30
+
31
+ declare type CardTitleProps = React.ComponentProps<"div"> & {
32
+ size?: "sm" | "md" | "lg";
33
+ };
34
+
35
+ declare const cardVariants: (props?: ({
36
+ variant?: "default" | "dark" | null | undefined;
37
+ noBorder?: boolean | null | undefined;
38
+ } & ClassProp) | undefined) => string;
39
+
40
+ export { }
package/dist/card.js ADDED
@@ -0,0 +1,130 @@
1
+ import { j as r } from "./jsx-runtime-BzflLqGi.js";
2
+ import { c as e } from "./utils-CRiPKpXj.js";
3
+ import { Caption as d } from "./caption.js";
4
+ import { c as i } from "./index-DcqAdr0d.js";
5
+ const f = i("group @container/card flex flex-col rounded-2xl gap-3", {
6
+ variants: {
7
+ variant: {
8
+ default: "bg-card text-card-foreground",
9
+ dark: "bg-card-foreground text-card"
10
+ },
11
+ noBorder: {
12
+ true: "",
13
+ false: "border border-complement-1-100 dark:border-complement-1-900"
14
+ }
15
+ },
16
+ defaultVariants: {
17
+ variant: "default",
18
+ noBorder: !1
19
+ }
20
+ });
21
+ function v({ className: a, asLink: t, variant: o, noBorder: n, ...l }) {
22
+ const s = t ? "a" : "div", c = t ? "transition-all hover:bg-complement-1-50 dark:hover:border-complement-1-950" : "";
23
+ return (
24
+ //@ts-expect-error: props type will be correct
25
+ /* @__PURE__ */ r.jsx(s, { "data-slot": "card", className: e(f({ variant: o, noBorder: n }), c, a), ...l })
26
+ );
27
+ }
28
+ function b({ className: a, ...t }) {
29
+ return /* @__PURE__ */ r.jsx(
30
+ "div",
31
+ {
32
+ "data-slot": "card-header",
33
+ className: e("flex flex-col items-start gap-3 px-6 first:pt-6 last:pb-6", a),
34
+ ...t
35
+ }
36
+ );
37
+ }
38
+ function j({ className: a, ...t }) {
39
+ return /* @__PURE__ */ r.jsx(
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
+ );
47
+ }
48
+ function C({ size: a = "md", className: t, ...o }) {
49
+ return /* @__PURE__ */ r.jsx(
50
+ "div",
51
+ {
52
+ "data-slot": "card-title",
53
+ className: e(
54
+ {
55
+ "heading-1": a === "lg",
56
+ "heading-2": a === "md",
57
+ "heading-3": a === "sm"
58
+ },
59
+ t
60
+ ),
61
+ ...o
62
+ }
63
+ );
64
+ }
65
+ function h({ size: a = "md", className: t, ...o }) {
66
+ return /* @__PURE__ */ r.jsx(
67
+ "div",
68
+ {
69
+ "data-slot": "card-title",
70
+ className: e(
71
+ "text-secondary",
72
+ {
73
+ "heading-1": a === "lg",
74
+ "heading-2": a === "md",
75
+ "heading-3": a === "sm"
76
+ },
77
+ t
78
+ ),
79
+ ...o
80
+ }
81
+ );
82
+ }
83
+ function N(a) {
84
+ return /* @__PURE__ */ r.jsx(d, { "data-slot": "card-caption", ...a });
85
+ }
86
+ function w(a) {
87
+ return /* @__PURE__ */ r.jsx(d, { "data-slot": "card-meta", variant: "light", ...a });
88
+ }
89
+ function k(a) {
90
+ return /* @__PURE__ */ r.jsx("div", { "data-slot": "card-content", ...a });
91
+ }
92
+ function y({ className: a, ...t }) {
93
+ return /* @__PURE__ */ r.jsx(
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
+ );
101
+ }
102
+ function p({ className: a, ...t }) {
103
+ return /* @__PURE__ */ r.jsx(
104
+ "div",
105
+ {
106
+ "data-slot": "card-media",
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
+ );
114
+ }
115
+ function B({ className: a, ...t }) {
116
+ return /* @__PURE__ */ r.jsx(p, { children: /* @__PURE__ */ r.jsx("img", { className: e("w-full h-full rounded-lg aspect-9/5 object-cover object-top", a), ...t }) });
117
+ }
118
+ export {
119
+ v as Card,
120
+ j as CardBody,
121
+ N as CardCaption,
122
+ k as CardContent,
123
+ y as CardFooter,
124
+ b as CardHeader,
125
+ B as CardImage,
126
+ p as CardMedia,
127
+ w as CardMeta,
128
+ h as CardSubtitle,
129
+ C as CardTitle
130
+ };
@@ -0,0 +1,9 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ export declare function HorizontalList({ className, children, toolbarLocation, ...props }: HorizontalListProps): JSX.Element;
4
+
5
+ declare interface HorizontalListProps extends React.ComponentProps<"div"> {
6
+ toolbarLocation?: "bottom" | "top";
7
+ }
8
+
9
+ export { }
@@ -0,0 +1,145 @@
1
+ import { j as a } from "./jsx-runtime-BzflLqGi.js";
2
+ import { c as m } from "./utils-CRiPKpXj.js";
3
+ import { Button as u } from "./button.js";
4
+ import { forwardRef as d, createElement as l, useRef as v, useCallback as f } from "react";
5
+ /**
6
+ * @license lucide-react v0.544.0 - ISC
7
+ *
8
+ * This source code is licensed under the ISC license.
9
+ * See the LICENSE file in the root directory of this source tree.
10
+ */
11
+ const j = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), y = (t) => t.replace(
12
+ /^([A-Z])|[\s-_]+(\w)/g,
13
+ (e, o, r) => r ? r.toUpperCase() : o.toLowerCase()
14
+ ), p = (t) => {
15
+ const e = y(t);
16
+ return e.charAt(0).toUpperCase() + e.slice(1);
17
+ }, h = (...t) => t.filter((e, o, r) => !!e && e.trim() !== "" && r.indexOf(e) === o).join(" ").trim(), k = (t) => {
18
+ for (const e in t)
19
+ if (e.startsWith("aria-") || e === "role" || e === "title")
20
+ return !0;
21
+ };
22
+ /**
23
+ * @license lucide-react v0.544.0 - ISC
24
+ *
25
+ * This source code is licensed under the ISC license.
26
+ * See the LICENSE file in the root directory of this source tree.
27
+ */
28
+ var N = {
29
+ xmlns: "http://www.w3.org/2000/svg",
30
+ width: 24,
31
+ height: 24,
32
+ viewBox: "0 0 24 24",
33
+ fill: "none",
34
+ stroke: "currentColor",
35
+ strokeWidth: 2,
36
+ strokeLinecap: "round",
37
+ strokeLinejoin: "round"
38
+ };
39
+ /**
40
+ * @license lucide-react v0.544.0 - ISC
41
+ *
42
+ * This source code is licensed under the ISC license.
43
+ * See the LICENSE file in the root directory of this source tree.
44
+ */
45
+ const b = d(
46
+ ({
47
+ color: t = "currentColor",
48
+ size: e = 24,
49
+ strokeWidth: o = 2,
50
+ absoluteStrokeWidth: r,
51
+ className: n = "",
52
+ children: s,
53
+ iconNode: c,
54
+ ...i
55
+ }, C) => l(
56
+ "svg",
57
+ {
58
+ ref: C,
59
+ ...N,
60
+ width: e,
61
+ height: e,
62
+ stroke: t,
63
+ strokeWidth: r ? Number(o) * 24 / Number(e) : o,
64
+ className: h("lucide", n),
65
+ ...!s && !k(i) && { "aria-hidden": "true" },
66
+ ...i
67
+ },
68
+ [
69
+ ...c.map(([g, w]) => l(g, w)),
70
+ ...Array.isArray(s) ? s : [s]
71
+ ]
72
+ )
73
+ );
74
+ /**
75
+ * @license lucide-react v0.544.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */
80
+ const x = (t, e) => {
81
+ const o = d(
82
+ ({ className: r, ...n }, s) => l(b, {
83
+ ref: s,
84
+ iconNode: e,
85
+ className: h(
86
+ `lucide-${j(p(t))}`,
87
+ `lucide-${t}`,
88
+ r
89
+ ),
90
+ ...n
91
+ })
92
+ );
93
+ return o.displayName = p(t), o;
94
+ };
95
+ /**
96
+ * @license lucide-react v0.544.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */
101
+ const A = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], L = x("chevron-left", A);
102
+ /**
103
+ * @license lucide-react v0.544.0 - ISC
104
+ *
105
+ * This source code is licensed under the ISC license.
106
+ * See the LICENSE file in the root directory of this source tree.
107
+ */
108
+ const R = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], B = x("chevron-right", R);
109
+ function I({ className: t, children: e, toolbarLocation: o = "bottom", ...r }) {
110
+ const n = v(null), s = f(() => {
111
+ n.current?.scrollBy({ left: -320 });
112
+ }, []), c = f(() => {
113
+ n.current?.scrollBy({ left: 320 });
114
+ }, []);
115
+ return /* @__PURE__ */ a.jsxs(
116
+ "div",
117
+ {
118
+ className: m("flex gap-4", {
119
+ "flex-col": o === "bottom",
120
+ "flex-col-reverse": o === "top"
121
+ }),
122
+ children: [
123
+ /* @__PURE__ */ a.jsx(
124
+ "div",
125
+ {
126
+ ref: n,
127
+ className: m(
128
+ "scrollbar-hidden overscroll-contain -ms-4 py-1 px-4 gap-4 sm:-ms-8 sm:px-8 sm:gap-8 flex flex-row flex-nowrap overflow-x-auto w-screen snap-x snap-mandatory touch-pan-x scroll-smooth",
129
+ t
130
+ ),
131
+ ...r,
132
+ children: e
133
+ }
134
+ ),
135
+ /* @__PURE__ */ a.jsxs("div", { className: "flex justify-center sm:justify-start", children: [
136
+ /* @__PURE__ */ a.jsx(u, { size: "icon", variant: "ghost", className: "rounded-full", onClick: s, children: /* @__PURE__ */ a.jsx(L, { className: "size-9" }) }),
137
+ /* @__PURE__ */ a.jsx(u, { size: "icon", variant: "ghost", className: "rounded-full", onClick: c, children: /* @__PURE__ */ a.jsx(B, { className: "size-9" }) })
138
+ ] })
139
+ ]
140
+ }
141
+ );
142
+ }
143
+ export {
144
+ I as HorizontalList
145
+ };
@@ -0,0 +1,50 @@
1
+ import { JSX } from 'react';
2
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
3
+
4
+ export declare function IconGenerator({ pattern, tileSize, tileClassName, tileBgClassName, renderChildren, ...props }: IconGeneratorProps): JSX_2.Element;
5
+
6
+ declare interface IconGeneratorProps extends Omit<React.ComponentProps<"svg">, "children" | "width" | "height" | "overflow"> {
7
+ pattern?: (TileShape | TileConfig)[][];
8
+ tileSize?: number;
9
+ tileClassName?: string;
10
+ tileBgClassName?: string;
11
+ renderChildren?: (paths: (JSX.Element | null)[], width: number, height: number) => React.ReactNode;
12
+ }
13
+
14
+ declare interface TileConfig {
15
+ shape: TileShape;
16
+ scale?: number;
17
+ className?: string;
18
+ }
19
+
20
+ declare const TileShape: {
21
+ readonly Blank: 0;
22
+ readonly Rand: 1;
23
+ readonly Mosaic: 2;
24
+ readonly MosaicCircle: 3;
25
+ readonly MosaicDiamond: 4;
26
+ readonly Square: 6;
27
+ readonly Circle: 7;
28
+ readonly Diamond: 8;
29
+ readonly Hexagon: 9;
30
+ readonly RandBasic: 10;
31
+ readonly TriangleSE: 11;
32
+ readonly TriangleSW: 12;
33
+ readonly TriangleNW: 13;
34
+ readonly TriangleNE: 14;
35
+ readonly TriangleRand: 15;
36
+ readonly CaretN: 16;
37
+ readonly CaretE: 17;
38
+ readonly CaretS: 18;
39
+ readonly CaretW: 19;
40
+ readonly CaretRand: 20;
41
+ readonly PieSE: 21;
42
+ readonly PieSW: 22;
43
+ readonly PieNW: 23;
44
+ readonly PieNE: 24;
45
+ readonly PieRand: 25;
46
+ };
47
+
48
+ declare type TileShape = (typeof TileShape)[keyof typeof TileShape];
49
+
50
+ export { }