@vite-mf-monorepo/ui 0.0.2 → 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.
- package/LICENSE +21 -0
- package/dist/Button/index.d.ts +3 -2
- package/dist/Button/index.js +2 -2
- package/dist/Card/index.d.ts +3 -2
- package/dist/Card/index.js +1 -1
- package/dist/Icon/index.d.ts +3 -2
- package/dist/Icon/index.js +1 -1
- package/dist/{chunk-IXEILQNO.js → chunk-GNBS5RLB.js} +5 -5
- package/dist/chunk-GNBS5RLB.js.map +1 -0
- package/dist/{chunk-Z3E2P4JR.js → chunk-JHRISQQJ.js} +4 -4
- package/dist/chunk-JHRISQQJ.js.map +1 -0
- package/dist/{chunk-YKNVY2QQ.js → chunk-JI3OVXCK.js} +5 -5
- package/dist/chunk-JI3OVXCK.js.map +1 -0
- package/dist/index.d.ts +31 -28
- package/dist/index.js +80 -80
- package/dist/index.js.map +1 -1
- package/package.json +32 -32
- package/CHANGELOG.md +0 -262
- package/dist/chunk-IXEILQNO.js.map +0 -1
- package/dist/chunk-YKNVY2QQ.js.map +0 -1
- package/dist/chunk-Z3E2P4JR.js.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Fubaritico
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/Button/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
1
2
|
import { IconName } from '../Icon/index.js';
|
|
2
|
-
import { ButtonHTMLAttributes
|
|
3
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
3
4
|
import { LinkProps } from 'react-router-dom';
|
|
4
5
|
|
|
5
6
|
interface ButtonVisualProps {
|
|
@@ -20,6 +21,6 @@ type ButtonAsLink = ButtonVisualProps & LinkProps & {
|
|
|
20
21
|
};
|
|
21
22
|
type ButtonProps = ButtonAsButton | ButtonAsLink;
|
|
22
23
|
|
|
23
|
-
declare
|
|
24
|
+
declare function Button(props: Readonly<ButtonProps>): react_jsx_runtime.JSX.Element;
|
|
24
25
|
|
|
25
26
|
export { Button, type ButtonAsButton, type ButtonAsLink, type ButtonProps };
|
package/dist/Button/index.js
CHANGED
package/dist/Card/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
2
3
|
|
|
3
4
|
type CardVariant = 'default' | 'outline' | 'elevated' | 'ghost';
|
|
4
5
|
interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
/** Visual variant of the card */
|
|
6
7
|
variant?: CardVariant;
|
|
7
8
|
}
|
|
8
|
-
declare
|
|
9
|
+
declare function Card({ className, variant, children, ...rest }: Readonly<CardProps>): react_jsx_runtime.JSX.Element;
|
|
9
10
|
|
|
10
11
|
export { Card, type CardProps, type CardVariant };
|
package/dist/Card/index.js
CHANGED
package/dist/Icon/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { SVGProps } from 'react';
|
|
2
3
|
|
|
3
4
|
type IconName = 'ArrowLeft' | 'ArrowRight' | 'ArrowTopRightOnSquare' | 'Bars3' | 'Bookmark' | 'Check' | 'Calendar' | 'ChevronDown' | 'ChevronLeft' | 'ChevronRight' | 'ChevronUp' | 'EllipsisVertical' | 'ExclamationCircle' | 'ExclamationTriangle' | 'Film' | 'Photo' | 'Heart' | 'InformationCircle' | 'Link' | 'MagnifyingGlass' | 'Minus' | 'Play' | 'PlayCircle' | 'Plus' | 'Share' | 'Star' | 'Tv' | 'User' | 'Users' | 'XMark';
|
|
4
5
|
type IconSize = 16 | 20 | 24 | 32 | 48 | 64;
|
|
@@ -8,6 +9,6 @@ interface IconProps extends SVGProps<SVGSVGElement> {
|
|
|
8
9
|
/** Icon size in pixels (16, 20, 24, 32, 48, 64) */
|
|
9
10
|
size?: IconSize;
|
|
10
11
|
}
|
|
11
|
-
declare
|
|
12
|
+
declare function Icon({ name, size, className, ...rest }: Readonly<IconProps>): react_jsx_runtime.JSX.Element;
|
|
12
13
|
|
|
13
14
|
export { Icon, type IconName, type IconProps, type IconSize };
|
package/dist/Icon/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Icon_default } from './chunk-
|
|
1
|
+
import { Icon_default } from './chunk-JHRISQQJ.js';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
4
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -8,7 +8,7 @@ var iconSizeMap = {
|
|
|
8
8
|
md: 20,
|
|
9
9
|
lg: 24
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
function Button(props) {
|
|
12
12
|
const {
|
|
13
13
|
variant = "primary",
|
|
14
14
|
size = "md",
|
|
@@ -77,9 +77,9 @@ var Button = (props) => {
|
|
|
77
77
|
children: content
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
}
|
|
80
|
+
}
|
|
81
81
|
var Button_default = Button;
|
|
82
82
|
|
|
83
83
|
export { Button_default };
|
|
84
|
-
//# sourceMappingURL=chunk-
|
|
85
|
-
//# sourceMappingURL=chunk-
|
|
84
|
+
//# sourceMappingURL=chunk-GNBS5RLB.js.map
|
|
85
|
+
//# sourceMappingURL=chunk-GNBS5RLB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Button/Button.tsx"],"names":["_","_v","_s","_i","_ip","_c","_ch"],"mappings":";;;;;AAOA,IAAM,WAAA,GAAc;AAAA,EAClB,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI,EAAA;AAAA,EACJ,EAAA,EAAI;AACN,CAAA;AAEA,SAAS,OAAO,KAAA,EAA8B;AAC5C,EAAA,MAAM;AAAA,IACJ,OAAA,GAAU,SAAA;AAAA,IACV,IAAA,GAAO,IAAA;AAAA,IACP,IAAA;AAAA,IACA,YAAA,GAAe,MAAA;AAAA,IACf,SAAA;AAAA,IACA;AAAA,GACF,GAAI,KAAA;AAEJ,EAAA,MAAM,OAAA,GAAU,IAAA;AAAA,IACd,gIAAA;AAAA,IACA,4CAAA;AAAA,IACA,iFAAA;AAAA,IACA;AAAA,MACE,eAAe,YAAA,KAAiB,MAAA;AAAA,MAChC,uBAAuB,YAAA,KAAiB;AAAA,KAC1C;AAAA,IACA;AAAA,MACE,mEACE,OAAA,KAAY,SAAA;AAAA,MACd,yEACE,OAAA,KAAY,WAAA;AAA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A;AAAA,MACC,SAAA,EAAW,IAAA;AAAA,QACT,OAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG,WAAA;AAAA,MAEH,QAAA,EAAA;AAAA;AAAA,GACH;AAEJ;AAEA,IAAO,cAAA,GAAQ","file":"chunk-GNBS5RLB.js","sourcesContent":["import clsx from 'clsx'\nimport { Link } from 'react-router-dom'\n\nimport { Icon } from '../Icon'\n\nimport type { ButtonProps } from './Button.types'\n\nconst iconSizeMap = {\n sm: 16,\n md: 20,\n lg: 24,\n} as const\n\nfunction Button(props: Readonly<ButtonProps>) {\n const {\n variant = 'primary',\n size = 'md',\n icon,\n iconPosition = 'left',\n className,\n children,\n } = props\n\n const classes = clsx(\n 'ui:inline-flex ui:items-center ui:justify-center ui:cursor-pointer ui:gap-2 ui:font-roboto ui:font-medium ui:transition-colors',\n 'ui:rounded ui:border ui:border-transparent',\n 'ui:focus:outline-none ui:focus:ring-2 ui:focus:ring-ring ui:focus:ring-offset-2',\n {\n 'ui:flex-row': iconPosition === 'left',\n 'ui:flex-row-reverse': iconPosition === 'right',\n },\n {\n 'ui:bg-primary ui:text-primary-foreground ui:hover:bg-primary/90':\n variant === 'primary',\n 'ui:bg-secondary ui:text-secondary-foreground ui:hover:bg-secondary/80':\n variant === 'secondary',\n 'ui:bg-destructive ui:text-destructive-foreground ui:hover:bg-destructive/90':\n variant === 'destructive',\n 'ui:border-input ui:bg-background ui:hover:bg-accent ui:hover:text-accent-foreground':\n variant === 'outline',\n 'ui:hover:bg-accent ui:hover:text-accent-foreground': variant === 'ghost',\n },\n {\n 'ui:h-8 ui:px-3 ui:text-sm': size === 'sm',\n 'ui:h-10 ui:px-4 ui:text-base': size === 'md',\n 'ui:h-12 ui:px-6 ui:text-lg': size === 'lg',\n },\n className\n )\n\n const content = (\n <>\n {icon && <Icon name={icon} size={iconSizeMap[size]} />}\n {children}\n </>\n )\n\n if (props.as === 'link') {\n const {\n as: _,\n variant: _v,\n size: _s,\n icon: _i,\n iconPosition: _ip,\n className: _c,\n children: _ch,\n ...linkProps\n } = props\n\n return (\n <Link className={classes} {...linkProps}>\n {content}\n </Link>\n )\n }\n\n const {\n as: _,\n variant: _v,\n size: _s,\n icon: _i,\n iconPosition: _ip,\n className: _c,\n children: _ch,\n ...buttonProps\n } = props\n\n return (\n <button\n className={clsx(\n classes,\n 'ui:disabled:pointer-events-none ui:disabled:opacity-50'\n )}\n {...buttonProps}\n >\n {content}\n </button>\n )\n}\n\nexport default Button\n"]}
|
|
@@ -93,7 +93,7 @@ var iconMap16 = {
|
|
|
93
93
|
User: UserIcon,
|
|
94
94
|
XMark: XMarkIcon
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
function Icon({ name, size = 24, className, ...rest }) {
|
|
97
97
|
let IconComponent;
|
|
98
98
|
if (size <= 16) {
|
|
99
99
|
IconComponent = iconMap16[name] ?? iconMap20[name];
|
|
@@ -112,9 +112,9 @@ var Icon = ({ name, size = 24, className, ...rest }) => {
|
|
|
112
112
|
"aria-hidden": true
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
|
-
}
|
|
115
|
+
}
|
|
116
116
|
var Icon_default = Icon;
|
|
117
117
|
|
|
118
118
|
export { Icon_default };
|
|
119
|
-
//# sourceMappingURL=chunk-
|
|
120
|
-
//# sourceMappingURL=chunk-
|
|
119
|
+
//# sourceMappingURL=chunk-JHRISQQJ.js.map
|
|
120
|
+
//# sourceMappingURL=chunk-JHRISQQJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Icon/Icon.tsx"],"names":["ArrowLeftIcon24","ArrowRightIcon24","ArrowTopRightOnSquareIcon24","Bars3Icon24","BookmarkIcon24","CalendarIcon24","CheckIcon24","ChevronDownIcon24","ChevronLeftIcon24","ChevronRightIcon24","ChevronUpIcon24","EllipsisVerticalIcon24","ExclamationCircleIcon24","ExclamationTriangleIcon24","FilmIcon24","PhotoIcon24","HeartIcon24","InformationCircleIcon24","LinkIcon24","MagnifyingGlassIcon24","MinusIcon24","PlayIcon24","PlayCircleIcon24","PlusIcon24","ShareIcon24","StarIcon24","TvIcon24","UserIcon24","UsersIcon24","XMarkIcon24","ArrowLeftIcon20","ArrowRightIcon20","ArrowTopRightOnSquareIcon20","Bars3Icon20","BookmarkIcon20","CalendarIcon20","CheckIcon20","ChevronDownIcon20","ChevronLeftIcon20","ChevronRightIcon20","ChevronUpIcon20","EllipsisVerticalIcon20","ExclamationCircleIcon20","ExclamationTriangleIcon20","FilmIcon20","PhotoIcon20","HeartIcon20","InformationCircleIcon20","LinkIcon20","MagnifyingGlassIcon20","MinusIcon20","PlayIcon20","PlayCircleIcon20","PlusIcon20","ShareIcon20","StarIcon20","TvIcon20","UserIcon20","UsersIcon20","XMarkIcon20","ArrowLeftIcon16","ArrowRightIcon16","Bars3Icon16","BookmarkIcon16","CalendarIcon16","CheckIcon16","ChevronDownIcon16","ChevronLeftIcon16","ChevronRightIcon16","ChevronUpIcon16","EllipsisVerticalIcon16","ExclamationCircleIcon16","ExclamationTriangleIcon16","HeartIcon16","InformationCircleIcon16","LinkIcon16","MagnifyingGlassIcon16","MinusIcon16","PlayIcon16","PlusIcon16","StarIcon16","UserIcon16","XMarkIcon16"],"mappings":";;;;;;AA8FA,IAAM,SAAA,GAAsC;AAAA,EAC1C,SAAA,EAAWA,eAAA;AAAA,EACX,UAAA,EAAYC,gBAAA;AAAA,EACZ,qBAAA,EAAuBC,2BAAA;AAAA,EACvB,KAAA,EAAOC,WAAA;AAAA,EACP,QAAA,EAAUC,cAAA;AAAA,EACV,QAAA,EAAUC,cAAA;AAAA,EACV,KAAA,EAAOC,WAAA;AAAA,EACP,WAAA,EAAaC,iBAAA;AAAA,EACb,WAAA,EAAaC,iBAAA;AAAA,EACb,YAAA,EAAcC,kBAAA;AAAA,EACd,SAAA,EAAWC,eAAA;AAAA,EACX,gBAAA,EAAkBC,sBAAA;AAAA,EAClB,iBAAA,EAAmBC,uBAAA;AAAA,EACnB,mBAAA,EAAqBC,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AA,EACnD,CAAA,MAAA,IAAW,QAAQ,EAAA,EAAI;AACrB,IAAA,aAAA,GAAgB,UAAU,IAAI,CAAA;AAAA,EAChC,CAAA,MAAO;AACL,IAAA,aAAA,GAAgB,UAAU,IAAI,CAAA;AAAA,EAChC;AAEA,EAAA,uBACE,GAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,SAAA;AAAA,MACA,KAAA,EAAO,IAAA;AAAA,MACP,MAAA,EAAQ,IAAA;AAAA,MACP,GAAG,IAAA;AAAA,MACJ,aAAA,EAAW;AAAA;AAAA,GACb;AAEJ;AAEA,IAAO,YAAA,GAAQ","file":"chunk-JHRISQQJ.js","sourcesContent":["import {\n ArrowLeftIcon as ArrowLeftIcon16,\n ArrowRightIcon as ArrowRightIcon16,\n Bars3Icon as Bars3Icon16,\n BookmarkIcon as BookmarkIcon16,\n CalendarIcon as CalendarIcon16,\n CheckIcon as CheckIcon16,\n ChevronDownIcon as ChevronDownIcon16,\n ChevronLeftIcon as ChevronLeftIcon16,\n ChevronRightIcon as ChevronRightIcon16,\n ChevronUpIcon as ChevronUpIcon16,\n EllipsisVerticalIcon as EllipsisVerticalIcon16,\n ExclamationCircleIcon as ExclamationCircleIcon16,\n ExclamationTriangleIcon as ExclamationTriangleIcon16,\n HeartIcon as HeartIcon16,\n InformationCircleIcon as InformationCircleIcon16,\n LinkIcon as LinkIcon16,\n MagnifyingGlassIcon as MagnifyingGlassIcon16,\n MinusIcon as MinusIcon16,\n PlayIcon as PlayIcon16,\n PlusIcon as PlusIcon16,\n StarIcon as StarIcon16,\n UserIcon as UserIcon16,\n XMarkIcon as XMarkIcon16,\n} from '@heroicons/react/16/solid'\nimport {\n ArrowLeftIcon as ArrowLeftIcon20,\n ArrowRightIcon as ArrowRightIcon20,\n ArrowTopRightOnSquareIcon as ArrowTopRightOnSquareIcon20,\n Bars3Icon as Bars3Icon20,\n BookmarkIcon as BookmarkIcon20,\n CalendarIcon as CalendarIcon20,\n CheckIcon as CheckIcon20,\n ChevronDownIcon as ChevronDownIcon20,\n ChevronLeftIcon as ChevronLeftIcon20,\n ChevronRightIcon as ChevronRightIcon20,\n ChevronUpIcon as ChevronUpIcon20,\n EllipsisVerticalIcon as EllipsisVerticalIcon20,\n ExclamationCircleIcon as ExclamationCircleIcon20,\n ExclamationTriangleIcon as ExclamationTriangleIcon20,\n FilmIcon as FilmIcon20,\n HeartIcon as HeartIcon20,\n InformationCircleIcon as InformationCircleIcon20,\n LinkIcon as LinkIcon20,\n MagnifyingGlassIcon as MagnifyingGlassIcon20,\n MinusIcon as MinusIcon20,\n PhotoIcon as PhotoIcon20,\n PlayCircleIcon as PlayCircleIcon20,\n PlayIcon as PlayIcon20,\n PlusIcon as PlusIcon20,\n ShareIcon as ShareIcon20,\n StarIcon as StarIcon20,\n TvIcon as TvIcon20,\n UserIcon as UserIcon20,\n UsersIcon as UsersIcon20,\n XMarkIcon as XMarkIcon20,\n} from '@heroicons/react/20/solid'\nimport {\n ArrowLeftIcon as ArrowLeftIcon24,\n ArrowRightIcon as ArrowRightIcon24,\n ArrowTopRightOnSquareIcon as ArrowTopRightOnSquareIcon24,\n Bars3Icon as Bars3Icon24,\n BookmarkIcon as BookmarkIcon24,\n CalendarIcon as CalendarIcon24,\n CheckIcon as CheckIcon24,\n ChevronDownIcon as ChevronDownIcon24,\n ChevronLeftIcon as ChevronLeftIcon24,\n ChevronRightIcon as ChevronRightIcon24,\n ChevronUpIcon as ChevronUpIcon24,\n EllipsisVerticalIcon as EllipsisVerticalIcon24,\n ExclamationCircleIcon as ExclamationCircleIcon24,\n ExclamationTriangleIcon as ExclamationTriangleIcon24,\n FilmIcon as FilmIcon24,\n HeartIcon as HeartIcon24,\n InformationCircleIcon as InformationCircleIcon24,\n LinkIcon as LinkIcon24,\n MagnifyingGlassIcon as MagnifyingGlassIcon24,\n MinusIcon as MinusIcon24,\n PhotoIcon as PhotoIcon24,\n PlayCircleIcon as PlayCircleIcon24,\n PlayIcon as PlayIcon24,\n PlusIcon as PlusIcon24,\n ShareIcon as ShareIcon24,\n StarIcon as StarIcon24,\n TvIcon as TvIcon24,\n UserIcon as UserIcon24,\n UsersIcon as UsersIcon24,\n XMarkIcon as XMarkIcon24,\n} from '@heroicons/react/24/outline'\n\nimport type { ComponentType, SVGProps } from 'react'\n\ntype HeroIcon = ComponentType<SVGProps<SVGSVGElement>>\n\nconst iconMap24: Record<string, HeroIcon> = {\n ArrowLeft: ArrowLeftIcon24,\n ArrowRight: ArrowRightIcon24,\n ArrowTopRightOnSquare: ArrowTopRightOnSquareIcon24,\n Bars3: Bars3Icon24,\n Bookmark: BookmarkIcon24,\n Calendar: CalendarIcon24,\n Check: CheckIcon24,\n ChevronDown: ChevronDownIcon24,\n ChevronLeft: ChevronLeftIcon24,\n ChevronRight: ChevronRightIcon24,\n ChevronUp: ChevronUpIcon24,\n EllipsisVertical: EllipsisVerticalIcon24,\n ExclamationCircle: ExclamationCircleIcon24,\n ExclamationTriangle: ExclamationTriangleIcon24,\n Film: FilmIcon24,\n Photo: PhotoIcon24,\n Heart: HeartIcon24,\n InformationCircle: InformationCircleIcon24,\n Link: LinkIcon24,\n MagnifyingGlass: MagnifyingGlassIcon24,\n Minus: MinusIcon24,\n Play: PlayIcon24,\n PlayCircle: PlayCircleIcon24,\n Plus: PlusIcon24,\n Share: ShareIcon24,\n Star: StarIcon24,\n Tv: TvIcon24,\n User: UserIcon24,\n Users: UsersIcon24,\n XMark: XMarkIcon24,\n}\n\nconst iconMap20: Record<string, HeroIcon> = {\n ArrowLeft: ArrowLeftIcon20,\n ArrowRight: ArrowRightIcon20,\n ArrowTopRightOnSquare: ArrowTopRightOnSquareIcon20,\n Bars3: Bars3Icon20,\n Bookmark: BookmarkIcon20,\n Calendar: CalendarIcon20,\n Check: CheckIcon20,\n ChevronDown: ChevronDownIcon20,\n ChevronLeft: ChevronLeftIcon20,\n ChevronRight: ChevronRightIcon20,\n ChevronUp: ChevronUpIcon20,\n EllipsisVertical: EllipsisVerticalIcon20,\n ExclamationCircle: ExclamationCircleIcon20,\n ExclamationTriangle: ExclamationTriangleIcon20,\n Film: FilmIcon20,\n Photo: PhotoIcon20,\n Heart: HeartIcon20,\n InformationCircle: InformationCircleIcon20,\n Link: LinkIcon20,\n MagnifyingGlass: MagnifyingGlassIcon20,\n Minus: MinusIcon20,\n Play: PlayIcon20,\n PlayCircle: PlayCircleIcon20,\n Plus: PlusIcon20,\n Share: ShareIcon20,\n Star: StarIcon20,\n Tv: TvIcon20,\n User: UserIcon20,\n Users: UsersIcon20,\n XMark: XMarkIcon20,\n}\n\nconst iconMap16: Record<string, HeroIcon> = {\n ArrowLeft: ArrowLeftIcon16,\n ArrowRight: ArrowRightIcon16,\n Bars3: Bars3Icon16,\n Bookmark: BookmarkIcon16,\n Calendar: CalendarIcon16,\n Check: CheckIcon16,\n ChevronDown: ChevronDownIcon16,\n ChevronLeft: ChevronLeftIcon16,\n ChevronRight: ChevronRightIcon16,\n ChevronUp: ChevronUpIcon16,\n EllipsisVertical: EllipsisVerticalIcon16,\n ExclamationCircle: ExclamationCircleIcon16,\n ExclamationTriangle: ExclamationTriangleIcon16,\n Heart: HeartIcon16,\n InformationCircle: InformationCircleIcon16,\n Link: LinkIcon16,\n MagnifyingGlass: MagnifyingGlassIcon16,\n Minus: MinusIcon16,\n Play: PlayIcon16,\n Plus: PlusIcon16,\n Star: StarIcon16,\n User: UserIcon16,\n XMark: XMarkIcon16,\n}\n\nexport type IconName =\n | 'ArrowLeft'\n | 'ArrowRight'\n | 'ArrowTopRightOnSquare'\n | 'Bars3'\n | 'Bookmark'\n | 'Check'\n | 'Calendar'\n | 'ChevronDown'\n | 'ChevronLeft'\n | 'ChevronRight'\n | 'ChevronUp'\n | 'EllipsisVertical'\n | 'ExclamationCircle'\n | 'ExclamationTriangle'\n | 'Film'\n | 'Photo'\n | 'Heart'\n | 'InformationCircle'\n | 'Link'\n | 'MagnifyingGlass'\n | 'Minus'\n | 'Play'\n | 'PlayCircle'\n | 'Plus'\n | 'Share'\n | 'Star'\n | 'Tv'\n | 'User'\n | 'Users'\n | 'XMark'\n\nexport type IconSize = 16 | 20 | 24 | 32 | 48 | 64\n\nexport interface IconProps extends SVGProps<SVGSVGElement> {\n /** Icon name from the available subset */\n name: IconName\n /** Icon size in pixels (16, 20, 24, 32, 48, 64) */\n size?: IconSize\n}\n\nfunction Icon({ name, size = 24, className, ...rest }: Readonly<IconProps>) {\n let IconComponent: HeroIcon\n\n if (size <= 16) {\n IconComponent = iconMap16[name] ?? iconMap20[name]\n } else if (size <= 20) {\n IconComponent = iconMap20[name]\n } else {\n IconComponent = iconMap24[name]\n }\n\n return (\n <IconComponent\n className={className}\n width={size}\n height={size}\n {...rest}\n aria-hidden\n />\n )\n}\n\nexport default Icon\n"]}
|
|
@@ -8,16 +8,16 @@ var variantStyles = {
|
|
|
8
8
|
elevated: "ui:rounded-lg ui:p-6 ui:bg-card ui:text-card-foreground ui:shadow-lg",
|
|
9
9
|
ghost: "ui:rounded-md"
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
function Card({
|
|
12
12
|
className,
|
|
13
13
|
variant = "default",
|
|
14
14
|
children,
|
|
15
15
|
...rest
|
|
16
|
-
})
|
|
16
|
+
}) {
|
|
17
17
|
return /* @__PURE__ */ jsx("div", { className: clsx(variantStyles[variant], className), ...rest, children });
|
|
18
|
-
}
|
|
18
|
+
}
|
|
19
19
|
var Card_default = Card;
|
|
20
20
|
|
|
21
21
|
export { Card_default };
|
|
22
|
-
//# sourceMappingURL=chunk-
|
|
23
|
-
//# sourceMappingURL=chunk-
|
|
22
|
+
//# sourceMappingURL=chunk-JI3OVXCK.js.map
|
|
23
|
+
//# sourceMappingURL=chunk-JI3OVXCK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Card/Card.tsx"],"names":[],"mappings":";;;;AAWA,IAAM,aAAA,GAA6C;AAAA,EACjD,OAAA,EACE,sEAAA;AAAA,EACF,OAAA,EAAS,mEAAA;AAAA,EACT,QAAA,EACE,sEAAA;AAAA,EACF,KAAA,EAAO;AACT,CAAA;AAEA,SAAS,IAAA,CAAK;AAAA,EACZ,SAAA;AAAA,EACA,OAAA,GAAU,SAAA;AAAA,EACV,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAAwB;AACtB,EAAA,uBACE,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,IAAA,CAAK,aAAA,CAAc,OAAO,CAAA,EAAG,SAAS,CAAA,EAAI,GAAG,IAAA,EAC1D,QAAA,EACH,CAAA;AAEJ;AAEA,IAAO,YAAA,GAAQ","file":"chunk-JI3OVXCK.js","sourcesContent":["import clsx from 'clsx'\n\nimport type { HTMLAttributes } from 'react'\n\nexport type CardVariant = 'default' | 'outline' | 'elevated' | 'ghost'\n\nexport interface CardProps extends HTMLAttributes<HTMLDivElement> {\n /** Visual variant of the card */\n variant?: CardVariant\n}\n\nconst variantStyles: Record<CardVariant, string> = {\n default:\n 'ui:rounded-md ui:p-4 ui:bg-card ui:text-card-foreground ui:shadow-md',\n outline: 'ui:rounded-md ui:p-4 ui:border ui:border-border ui:bg-transparent',\n elevated:\n 'ui:rounded-lg ui:p-6 ui:bg-card ui:text-card-foreground ui:shadow-lg',\n ghost: 'ui:rounded-md',\n}\n\nfunction Card({\n className,\n variant = 'default',\n children,\n ...rest\n}: Readonly<CardProps>) {\n return (\n <div className={clsx(variantStyles[variant], className)} {...rest}>\n {children}\n </div>\n )\n}\n\nexport default Card\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import { ComponentProps, ReactNode, ButtonHTMLAttributes, ImgHTMLAttributes, HTMLAttributes, ElementType } from 'react';
|
|
2
4
|
import { IconName } from './Icon/index.js';
|
|
3
5
|
export { Icon, IconProps, IconSize } from './Icon/index.js';
|
|
4
6
|
export { Button, ButtonProps } from './Button/index.js';
|
|
@@ -18,7 +20,7 @@ interface AvatarProps extends Omit<ComponentProps<'img'>, 'src'> {
|
|
|
18
20
|
/** For testing purposes */
|
|
19
21
|
testId?: string;
|
|
20
22
|
}
|
|
21
|
-
declare
|
|
23
|
+
declare function Avatar({ className, src, alt, size, initials, testId, ...rest }: Readonly<AvatarProps>): react_jsx_runtime.JSX.Element;
|
|
22
24
|
|
|
23
25
|
type BadgeVariant = 'default' | 'secondary' | 'outline' | 'destructive';
|
|
24
26
|
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
@@ -36,7 +38,7 @@ interface BadgeProps {
|
|
|
36
38
|
/** Additional class name */
|
|
37
39
|
className?: string;
|
|
38
40
|
}
|
|
39
|
-
declare
|
|
41
|
+
declare function Badge({ children, variant, size, icon, textClassName, className, }: Readonly<BadgeProps>): react_jsx_runtime.JSX.Element;
|
|
40
42
|
|
|
41
43
|
interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
42
44
|
/** Icon name to display */
|
|
@@ -48,7 +50,7 @@ interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
48
50
|
/** Accessible label for screen readers */
|
|
49
51
|
'aria-label': string;
|
|
50
52
|
}
|
|
51
|
-
declare
|
|
53
|
+
declare function IconButton({ className, icon, variant, size, disabled, ...rest }: Readonly<IconButtonProps>): react_jsx_runtime.JSX.Element;
|
|
52
54
|
|
|
53
55
|
type ImageState = 'loading' | 'loaded' | 'error';
|
|
54
56
|
type AspectRatio = '2/3' | '16/9' | '1/1' | '4/3' | '3/2';
|
|
@@ -77,7 +79,7 @@ interface ImageProps extends Omit<ImgHTMLAttributes<HTMLImageElement>, 'placehol
|
|
|
77
79
|
/** Load strategy: 'lazy' waits for viewport visibility, 'eager' loads immediately. Default: 'eager' */
|
|
78
80
|
loading?: ImageLoading;
|
|
79
81
|
}
|
|
80
|
-
declare
|
|
82
|
+
declare function Image({ src, alt, blurDataUrl, autoBlur, blurSize, blurQuality, aspectRatio, fallback, className, onLoad, onError, loading, ...rest }: Readonly<ImageProps>): react_jsx_runtime.JSX.Element;
|
|
81
83
|
|
|
82
84
|
interface HeroImageProps {
|
|
83
85
|
/** Backdrop path from TMDB API */
|
|
@@ -89,7 +91,7 @@ interface HeroImageProps {
|
|
|
89
91
|
* HeroImage component for displaying optimized backdrop images with responsive sources
|
|
90
92
|
* and gradient overlay. Used in hero sections across the application.
|
|
91
93
|
*/
|
|
92
|
-
declare
|
|
94
|
+
declare function HeroImage({ backdropPath, title }: Readonly<HeroImageProps>): react_jsx_runtime.JSX.Element;
|
|
93
95
|
|
|
94
96
|
interface ModalProps {
|
|
95
97
|
/** Whether the modal is open */
|
|
@@ -105,7 +107,7 @@ interface ModalProps {
|
|
|
105
107
|
/** Optional callback for backdrop click. Falls back to onClose if not provided. */
|
|
106
108
|
onOverlayClick?: () => void;
|
|
107
109
|
}
|
|
108
|
-
declare
|
|
110
|
+
declare function Modal({ isOpen, onClose, children, 'aria-label': ariaLabel, className, onOverlayClick, }: Readonly<ModalProps>): react_jsx_runtime.JSX.Element;
|
|
109
111
|
|
|
110
112
|
type RatingVariant = 'circle' | 'stars';
|
|
111
113
|
type RatingSize = 'sm' | 'md' | 'lg';
|
|
@@ -125,7 +127,7 @@ interface RatingProps {
|
|
|
125
127
|
/** Additional class name */
|
|
126
128
|
className?: string;
|
|
127
129
|
}
|
|
128
|
-
declare
|
|
130
|
+
declare function Rating({ value, max, variant, size, showValue, trackClassName, className, }: Readonly<RatingProps>): react_jsx_runtime.JSX.Element;
|
|
129
131
|
|
|
130
132
|
/**
|
|
131
133
|
* MovieCard component types with discriminated union for type-safe variants
|
|
@@ -200,7 +202,7 @@ interface MovieCardAsButton extends MovieCardBaseProps {
|
|
|
200
202
|
*/
|
|
201
203
|
type MovieCardProps = MovieCardAsCard | MovieCardAsLink | MovieCardAsButton;
|
|
202
204
|
|
|
203
|
-
declare
|
|
205
|
+
declare function MovieCard({ id, title, posterUrl, voteAverage, year, className, imageLoading, as, ...rest }: Readonly<MovieCardProps>): react_jsx_runtime.JSX.Element;
|
|
204
206
|
|
|
205
207
|
interface TrailerCardProps {
|
|
206
208
|
/** YouTube video ID */
|
|
@@ -212,7 +214,7 @@ interface TrailerCardProps {
|
|
|
212
214
|
/** Additional className for the card */
|
|
213
215
|
className?: string;
|
|
214
216
|
}
|
|
215
|
-
declare
|
|
217
|
+
declare function TrailerCard({ videoKey, title, type, className, }: Readonly<TrailerCardProps>): react_jsx_runtime.JSX.Element;
|
|
216
218
|
|
|
217
219
|
/** Carousel visual variant */
|
|
218
220
|
type CarouselVariant = 'standard' | 'hero' | 'lightbox';
|
|
@@ -273,7 +275,7 @@ interface CarouselProps {
|
|
|
273
275
|
* - hero: single panoramic item with snap
|
|
274
276
|
* - lightbox: single item per view, ghost arrows, counter (for PhotoViewer)
|
|
275
277
|
*/
|
|
276
|
-
declare
|
|
278
|
+
declare function Carousel({ children, variant, showPagination, showArrows, arrowPosition, gap, className, heroControlsClassName, errorMessage, rounded, initialIndex, onPrev, onNext, disableAnimation, disableScroll, }: Readonly<CarouselProps>): react_jsx_runtime.JSX.Element;
|
|
277
279
|
|
|
278
280
|
interface CarouselItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
279
281
|
/** Whether this is a hero item (full width with snap) */
|
|
@@ -285,7 +287,7 @@ interface CarouselItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
285
287
|
* Wrapper for individual carousel items.
|
|
286
288
|
* For hero and lightbox variants, items take full width and snap to center.
|
|
287
289
|
*/
|
|
288
|
-
declare
|
|
290
|
+
declare function CarouselItem({ children, isHero, isLightbox, className, ...rest }: Readonly<CarouselItemProps>): react_jsx_runtime.JSX.Element;
|
|
289
291
|
|
|
290
292
|
/** Position mode for navigation buttons */
|
|
291
293
|
type CarouselNavigationPosition = 'inline' | 'sides' | 'sides-inset';
|
|
@@ -313,7 +315,7 @@ interface CarouselNavigationProps {
|
|
|
313
315
|
* - sides: absolute, centered on the carousel edges (overhangs container — standard carousel)
|
|
314
316
|
* - sides-inset: absolute, inside the container with padding (lightbox, fullscreen contexts)
|
|
315
317
|
*/
|
|
316
|
-
declare
|
|
318
|
+
declare function CarouselNavigation({ onPrev, onNext, canPrev, canNext, size, position, iconVariant, className, }: Readonly<CarouselNavigationProps>): react_jsx_runtime.JSX.Element;
|
|
317
319
|
|
|
318
320
|
interface CarouselPaginationProps {
|
|
319
321
|
/** Total number of items */
|
|
@@ -330,7 +332,7 @@ interface CarouselPaginationProps {
|
|
|
330
332
|
* Active dot is displayed as a capsule (wider), inactive dots are circles.
|
|
331
333
|
* Supports light mode for dark backgrounds (white dots).
|
|
332
334
|
*/
|
|
333
|
-
declare
|
|
335
|
+
declare function CarouselPagination({ total, current, light, className, }: Readonly<CarouselPaginationProps>): react_jsx_runtime.JSX.Element | null;
|
|
334
336
|
|
|
335
337
|
interface CarouselCounterProps {
|
|
336
338
|
/** Current index (0-based) — displayed as 1-based */
|
|
@@ -344,7 +346,7 @@ interface CarouselCounterProps {
|
|
|
344
346
|
* Counter for Carousel lightbox variant.
|
|
345
347
|
* Displays current position as "3 / 20" (1-indexed).
|
|
346
348
|
*/
|
|
347
|
-
declare
|
|
349
|
+
declare function CarouselCounter({ current, total, className, }: Readonly<CarouselCounterProps>): react_jsx_runtime.JSX.Element;
|
|
348
350
|
|
|
349
351
|
interface CarouselLoadingProps {
|
|
350
352
|
/** Number of skeleton cards to display */
|
|
@@ -366,10 +368,10 @@ interface CarouselLoadingProps {
|
|
|
366
368
|
* Displays a horizontal scrollable list of skeleton placeholders
|
|
367
369
|
* matching the structure of MovieCard components.
|
|
368
370
|
*/
|
|
369
|
-
declare
|
|
371
|
+
declare function CarouselLoading({ count, cardWidth, cardHeight, showTitle, showSubtitle, rounded, }: Readonly<CarouselLoadingProps>): react_jsx_runtime.JSX.Element;
|
|
370
372
|
|
|
371
373
|
type TabsListProps = HTMLAttributes<HTMLDivElement>;
|
|
372
|
-
declare
|
|
374
|
+
declare function TabsList({ className, children, ...rest }: Readonly<TabsListProps>): react_jsx_runtime.JSX.Element;
|
|
373
375
|
|
|
374
376
|
interface TabsPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
375
377
|
/** Value that identifies this panel (must match a Tabs.Trigger value) */
|
|
@@ -382,7 +384,7 @@ interface TabsPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
382
384
|
* Automatically hidden/shown based on active tab value.
|
|
383
385
|
* Provides proper ARIA attributes for accessibility.
|
|
384
386
|
*/
|
|
385
|
-
declare
|
|
387
|
+
declare function TabsPanel({ value, children, ...rest }: Readonly<TabsPanelProps>): react_jsx_runtime.JSX.Element;
|
|
386
388
|
|
|
387
389
|
interface TabsTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
388
390
|
/** Value that identifies this tab */
|
|
@@ -390,7 +392,7 @@ interface TabsTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
390
392
|
/** Optional icon component */
|
|
391
393
|
icon?: ReactNode;
|
|
392
394
|
}
|
|
393
|
-
declare
|
|
395
|
+
declare function TabsTrigger({ value, icon, disabled, className, children, ...rest }: Readonly<TabsTriggerProps>): react_jsx_runtime.JSX.Element;
|
|
394
396
|
|
|
395
397
|
/** Tabs visual variant */
|
|
396
398
|
type TabsVariant = 'underline' | 'pills';
|
|
@@ -412,11 +414,12 @@ interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
412
414
|
* Supports underline and pills variants.
|
|
413
415
|
* Uses Compound Component pattern.
|
|
414
416
|
*/
|
|
415
|
-
declare
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
declare function Tabs({ defaultValue, value, onValueChange, variant, prefix, className, children, ...rest }: Readonly<TabsProps>): react_jsx_runtime.JSX.Element;
|
|
418
|
+
declare namespace Tabs {
|
|
419
|
+
var List: typeof TabsList;
|
|
420
|
+
var Trigger: typeof TabsTrigger;
|
|
421
|
+
var Panel: typeof TabsPanel;
|
|
422
|
+
}
|
|
420
423
|
|
|
421
424
|
interface SkeletonProps extends ComponentProps<'div'> {
|
|
422
425
|
/** Shape variant */
|
|
@@ -435,7 +438,7 @@ interface SkeletonProps extends ComponentProps<'div'> {
|
|
|
435
438
|
*
|
|
436
439
|
* Composable primitive for building loading states with shimmer effect.
|
|
437
440
|
*/
|
|
438
|
-
declare
|
|
441
|
+
declare function Skeleton({ variant, width, height, aspectRatio, rounded, className, ...rest }: Readonly<SkeletonProps>): react_jsx_runtime.JSX.Element;
|
|
439
442
|
|
|
440
443
|
interface TalentProps extends HTMLAttributes<HTMLDivElement> {
|
|
441
444
|
/** Full name of the talent (actor, director, writer, etc.) */
|
|
@@ -449,7 +452,7 @@ interface TalentProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
449
452
|
/** Avatar size */
|
|
450
453
|
size?: AvatarSize;
|
|
451
454
|
}
|
|
452
|
-
declare
|
|
455
|
+
declare function Talent({ name, role, imageSrc, variant, size, className, ...rest }: Readonly<TalentProps>): react_jsx_runtime.JSX.Element;
|
|
453
456
|
|
|
454
457
|
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-lg' | 'lead' | 'caption' | 'caption-xs' | 'label' | 'muted' | 'blockquote';
|
|
455
458
|
interface TypographyProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -462,11 +465,11 @@ interface TypographyProps extends HTMLAttributes<HTMLElement> {
|
|
|
462
465
|
/** Content */
|
|
463
466
|
children: ReactNode;
|
|
464
467
|
}
|
|
465
|
-
declare
|
|
468
|
+
declare function Typography({ variant, as, className, children, ...rest }: Readonly<TypographyProps>): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
466
469
|
|
|
467
470
|
interface SpinnerProps {
|
|
468
471
|
className?: string;
|
|
469
472
|
}
|
|
470
|
-
declare
|
|
473
|
+
declare function Spinner({ className }: Readonly<SpinnerProps>): react_jsx_runtime.JSX.Element;
|
|
471
474
|
|
|
472
475
|
export { type AspectRatio, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Carousel, type CarouselArrowPosition, CarouselCounter, type CarouselCounterProps, CarouselItem, type CarouselItemProps, CarouselLoading, type CarouselLoadingProps, CarouselNavigation, type CarouselNavigationPosition, type CarouselNavigationProps, CarouselPagination, type CarouselPaginationProps, type CarouselProps, type CarouselVariant, HeroImage, type HeroImageProps, IconButton, type IconButtonProps, IconName, Image, type ImageProps, type ImageState, Modal, type ModalProps, MovieCard, type MovieCardProps, Rating, type RatingProps, type RatingSize, type RatingVariant, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Tabs, type TabsProps, type TabsVariant, Talent, type TalentProps, TrailerCard, type TrailerCardProps, Typography, type TypographyProps, type TypographyVariant };
|