linkedunion-design-kit 1.7.3 → 1.7.4
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/src/components/Button/Button.js +4 -4
- package/dist/src/components/Card/MultipleNews/MultiNews.jsx +73 -0
- package/dist/src/components/Card/MultipleNews/MultiNews.stories.d.ts +7 -7
- package/dist/src/components/Card/MultipleNews/MultiNews.stories.js +6 -6
- package/dist/src/components/Card/{MultiNews.stories.jsx → MultipleNews/MultiNews.stories.jsx} +1 -1
- package/dist/src/components/Card/PhotoGallery.jsx +17 -0
- package/dist/src/components/Card/PhotoGallery.stories.jsx +34 -0
- package/dist/src/components/Card/PostByCategory/PostByCategory.jsx +10 -10
- package/dist/src/components/Card/SinglePost/SinglePost.d.ts +2 -0
- package/dist/src/components/Card/SinglePost/SinglePost.js +10 -0
- package/dist/src/components/Card/SinglePost/SinglePost.stories.d.ts +7 -0
- package/dist/src/components/Card/{MultiNews.stories.js → SinglePost/SinglePost.stories.js} +7 -13
- package/dist/src/components/Card/card.js +1 -1
- package/dist/src/components/Card/card.jsx +4 -2
- package/dist/src/components/Card/contactProfile/ContactProfile.jsx +60 -0
- package/dist/src/components/Card/{ContactProfile.stories.jsx → contactProfile/ContactProfile.stories.jsx} +1 -1
- package/dist/src/components/Icons/LUIcon.jsx +1 -1
- package/dist/src/components/ImageUploader/imageUploader.js +1 -1
- package/dist/src/components/ImageUploader/imageUploader.jsx +4 -2
- package/dist/src/components/Label/Label.jsx +1 -1
- package/dist/src/components/RadioButton/radio-button.jsx +0 -1
- package/dist/src/components/Slider/Slider.stories.jsx +159 -0
- package/dist/src/components/Slider/slider.jsx +31 -0
- package/dist/src/components/Typography/Heading/heading.jsx +1 -1
- package/dist/src/components/ui/accordion.js +1 -1
- package/dist/src/components/ui/accordion.jsx +4 -4
- package/dist/src/components/ui/switch.js +4 -4
- package/dist/src/components/ui/tabs.js +2 -2
- package/dist/src/components/ui/tabs.jsx +2 -3
- package/dist/src/utils/iconList.js +1 -1
- package/dist/styles/global.css +46 -26
- package/package.json +1 -1
- package/dist/src/components/Card/ContactProfile.d.ts +0 -2
- package/dist/src/components/Card/ContactProfile.js +0 -35
- package/dist/src/components/Card/ContactProfile.jsx +0 -57
- package/dist/src/components/Card/ContactProfile.stories.d.ts +0 -9
- package/dist/src/components/Card/ContactProfile.stories.js +0 -52
- package/dist/src/components/Card/MultiNews.d.ts +0 -2
- package/dist/src/components/Card/MultiNews.js +0 -43
- package/dist/src/components/Card/MultiNews.jsx +0 -59
- package/dist/src/components/Card/MultiNews.stories.d.ts +0 -9
- package/dist/src/components/Card/PostByCategory.d.ts +0 -2
- package/dist/src/components/Card/PostByCategory.js +0 -38
- package/dist/src/components/Card/PostByCategory.stories.d.ts +0 -9
- package/dist/src/components/Card/PostByCategory.stories.js +0 -54
- package/dist/src/components/EditorTooltip/EditorTooltip.d.ts +0 -5
- package/dist/src/components/EditorTooltip/EditorTooltip.js +0 -8
- package/dist/src/components/EditorTooltip/EditorTooltip.stories.d.ts +0 -6
- package/dist/src/components/EditorTooltip/EditorTooltip.stories.js +0 -24
- package/dist/src/components/Label/type.d.ts +0 -9
- package/dist/src/components/Label/type.js +0 -1
- package/dist/src/components/ui/body.d.ts +0 -0
- package/dist/src/components/ui/body.js +0 -1
- package/dist/src/components/ui/label.d.ts +0 -12
- package/dist/src/components/ui/label.js +0 -41
- package/dist/src/components/ui/radio-button.d.ts +0 -3
- package/dist/src/components/ui/radio-button.js +0 -42
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import LuImage from "../Images/LuImage";
|
|
14
|
-
import Link from "next/link";
|
|
15
|
-
import { Button } from "../Button/Button";
|
|
16
|
-
import { Body } from "../Typography/Body/body";
|
|
17
|
-
import { Heading } from "../Typography/Heading/heading";
|
|
18
|
-
export var MultiNews = function (_a) {
|
|
19
|
-
var item = _a.item, image = _a.image, _b = _a.href, href = _b === void 0 ? "https://www.google.com/" : _b, _c = _a.btnLabel, btnLabel = _c === void 0 ? "View More" : _c, editor = _a.editor, _d = _a.mediaPosition, mediaPosition = _d === void 0 ? "right" : _d, orientation = _a.orientation;
|
|
20
|
-
// Common card media component
|
|
21
|
-
var CardMedia = function (_a) {
|
|
22
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
23
|
-
return (_jsx(LuImage, { src: image, width: 240, height: 240, className: "".concat(className, " ").concat(editor === null || editor === void 0 ? void 0 : editor.cardImage), alt: "Image" }));
|
|
24
|
-
};
|
|
25
|
-
// Common content section
|
|
26
|
-
var CardContent = function (_a) {
|
|
27
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
28
|
-
return (_jsxs("div", { className: "flex flex-col gap-1 ".concat(className), children: [_jsx(Heading, { variant: "h5-700", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardTitle), children: item === null || item === void 0 ? void 0 : item.title }), _jsx(Body, { variant: "body-xl", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardText), children: item === null || item === void 0 ? void 0 : item.description })] }));
|
|
29
|
-
};
|
|
30
|
-
// Common button component with conditional shape
|
|
31
|
-
var ActionButton = function (_a) {
|
|
32
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
33
|
-
return (_jsx(Link, { href: href, passHref: true, className: className, children: _jsx(Button, __assign({ endIcon: "angle-right", size: mediaPosition === "middle" ? "xl" : "lg" }, (mediaPosition === "middle" && { shape: "rounded-full" }), { className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardBtn), children: btnLabel })) }));
|
|
34
|
-
};
|
|
35
|
-
// Optional subtitle component
|
|
36
|
-
var Subtitle = function () { return (_jsx(_Fragment, { children: mediaPosition === "middle" && (_jsx(Body, { variant: "body-xl", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardSubtitle), children: item === null || item === void 0 ? void 0 : item.subtitle })) })); };
|
|
37
|
-
// Horizontal layout
|
|
38
|
-
if (orientation === "horizontal") {
|
|
39
|
-
return (_jsxs("div", { className: "p-8 bg-white rounded-2xl inline-flex ".concat(mediaPosition === "right" ? "flex-row-reverse" : "", " gap-5 items-center shadow-lg ").concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsx(CardMedia, { className: "w-full h-full max-w-[240px] aspect-square rounded-lg object-cover" }), _jsxs("div", { className: "flex flex-col gap-1 w-full", children: [_jsx(CardContent, {}), _jsx(ActionButton, { className: "mt-5" })] })] }));
|
|
40
|
-
}
|
|
41
|
-
// Vertical layout
|
|
42
|
-
return (_jsxs("div", { className: "p-8 bg-white rounded-2xl inline-flex flex-col gap-5 max-w-[480px] shadow-lg ".concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsxs("div", { className: "flex ".concat(mediaPosition === "top" ? "flex-col" : "flex-col-reverse", " gap-5"), children: [_jsx(Subtitle, {}), _jsx(CardMedia, { className: "w-full h-full aspect-16/10 object-cover" }), _jsx(CardContent, {})] }), _jsx(ActionButton, {})] }));
|
|
43
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import LuImage from "../Images/LuImage";
|
|
2
|
-
import Link from "next/link";
|
|
3
|
-
import { Button } from "../Button/Button";
|
|
4
|
-
import { Body } from "../Typography/Body/body";
|
|
5
|
-
import { Heading } from "../Typography/Heading/heading";
|
|
6
|
-
export var MultiNews = function (_a) {
|
|
7
|
-
var item = _a.item, image = _a.image, _b = _a.href, href = _b === void 0 ? "https://www.google.com/" : _b, _c = _a.btnLabel, btnLabel = _c === void 0 ? "View More" : _c, editor = _a.editor, _d = _a.mediaPosition, mediaPosition = _d === void 0 ? "right" : _d, orientation = _a.orientation;
|
|
8
|
-
// Common card media component
|
|
9
|
-
var CardMedia = function (_a) {
|
|
10
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
11
|
-
return (<LuImage src={image} width={240} height={240} className={"".concat(className, " ").concat(editor === null || editor === void 0 ? void 0 : editor.cardImage)} alt="Image"/>);
|
|
12
|
-
};
|
|
13
|
-
// Common content section
|
|
14
|
-
var CardContent = function (_a) {
|
|
15
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
16
|
-
return (<div className={"flex flex-col gap-1 ".concat(className)}>
|
|
17
|
-
<Heading variant="h5-700" className={"".concat(editor === null || editor === void 0 ? void 0 : editor.cardTitle)}>
|
|
18
|
-
{item === null || item === void 0 ? void 0 : item.title}
|
|
19
|
-
</Heading>
|
|
20
|
-
<Body variant="body-xl" className={"".concat(editor === null || editor === void 0 ? void 0 : editor.cardText)}>
|
|
21
|
-
{item === null || item === void 0 ? void 0 : item.description}
|
|
22
|
-
</Body>
|
|
23
|
-
</div>);
|
|
24
|
-
};
|
|
25
|
-
// Common button component with conditional shape
|
|
26
|
-
var ActionButton = function (_a) {
|
|
27
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
28
|
-
return (<Link href={href} passHref className={className}>
|
|
29
|
-
<Button endIcon={"angle-right"} size={mediaPosition === "middle" ? "xl" : "lg"} {...(mediaPosition === "middle" && { shape: "rounded-full" })} className={"".concat(editor === null || editor === void 0 ? void 0 : editor.cardBtn)}>
|
|
30
|
-
{btnLabel}
|
|
31
|
-
</Button>
|
|
32
|
-
</Link>);
|
|
33
|
-
};
|
|
34
|
-
// Optional subtitle component
|
|
35
|
-
var Subtitle = function () { return (<>
|
|
36
|
-
{mediaPosition === "middle" && (<Body variant="body-xl" className={"".concat(editor === null || editor === void 0 ? void 0 : editor.cardSubtitle)}>
|
|
37
|
-
{item === null || item === void 0 ? void 0 : item.subtitle}
|
|
38
|
-
</Body>)}
|
|
39
|
-
</>); };
|
|
40
|
-
// Horizontal layout
|
|
41
|
-
if (orientation === "horizontal") {
|
|
42
|
-
return (<div className={"p-8 bg-white rounded-2xl inline-flex ".concat(mediaPosition === "right" ? "flex-row-reverse" : "", " gap-5 items-center shadow-lg ").concat(editor === null || editor === void 0 ? void 0 : editor.card)}>
|
|
43
|
-
<CardMedia className="w-full h-full max-w-[240px] aspect-square rounded-lg object-cover"/>
|
|
44
|
-
<div className="flex flex-col gap-1 w-full">
|
|
45
|
-
<CardContent />
|
|
46
|
-
<ActionButton className="mt-5"/>
|
|
47
|
-
</div>
|
|
48
|
-
</div>);
|
|
49
|
-
}
|
|
50
|
-
// Vertical layout
|
|
51
|
-
return (<div className={"p-8 bg-white rounded-2xl inline-flex flex-col gap-5 max-w-[480px] shadow-lg ".concat(editor === null || editor === void 0 ? void 0 : editor.card)}>
|
|
52
|
-
<div className={"flex ".concat(mediaPosition === "top" ? "flex-col" : "flex-col-reverse", " gap-5")}>
|
|
53
|
-
<Subtitle />
|
|
54
|
-
<CardMedia className="w-full h-full aspect-16/10 object-cover"/>
|
|
55
|
-
<CardContent />
|
|
56
|
-
</div>
|
|
57
|
-
<ActionButton />
|
|
58
|
-
</div>);
|
|
59
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { MultiNews } from "./MultiNews";
|
|
3
|
-
declare const meta: Meta<typeof MultiNews>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof MultiNews>;
|
|
6
|
-
export declare const MultiNewsHorizontalLeft: Story;
|
|
7
|
-
export declare const MultiNewsHorizontalRight: Story;
|
|
8
|
-
export declare const MultiNewsVerticalTop: Story;
|
|
9
|
-
export declare const MultiNewsVerticalBottom: Story;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import LuImage from "../Images/LuImage";
|
|
3
|
-
import Link from "next/link";
|
|
4
|
-
import { Heading } from "../Typography/Heading/heading";
|
|
5
|
-
import { Body } from "../Typography/Body/body";
|
|
6
|
-
import { Button } from "../Button/Button";
|
|
7
|
-
export var PostByCategory = function (_a) {
|
|
8
|
-
var item = _a.item, image = _a.image, href = _a.href, btnLabel = _a.btnLabel, editor = _a.editor, mediaPosition = _a.mediaPosition, orientation = _a.orientation;
|
|
9
|
-
// Normalize mediaPosition based on orientation
|
|
10
|
-
var safeMediaPosition = orientation === "horizontal"
|
|
11
|
-
? mediaPosition === "left" || mediaPosition === "right"
|
|
12
|
-
? mediaPosition
|
|
13
|
-
: "right"
|
|
14
|
-
: mediaPosition === "top" || mediaPosition === "bottom"
|
|
15
|
-
? mediaPosition
|
|
16
|
-
: "top";
|
|
17
|
-
// Common card media component to avoid duplication
|
|
18
|
-
var CardMedia = function (_a) {
|
|
19
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
20
|
-
return (_jsx(LuImage, { src: image, width: 240, height: 240, className: "".concat(className, " ").concat(editor === null || editor === void 0 ? void 0 : editor.cardImage), alt: "Image" }));
|
|
21
|
-
};
|
|
22
|
-
// Common content section component
|
|
23
|
-
var CardContent = function (_a) {
|
|
24
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
25
|
-
return (_jsxs("div", { className: "flex flex-col gap-1 ".concat(className), children: [_jsx(Heading, { variant: "h5-700", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardTitle), children: item === null || item === void 0 ? void 0 : item.title }), _jsx(Body, { variant: "body-base", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardText), children: item === null || item === void 0 ? void 0 : item.description })] }));
|
|
26
|
-
};
|
|
27
|
-
// Common button component
|
|
28
|
-
var CardButton = function (_a) {
|
|
29
|
-
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
30
|
-
return (_jsx(Link, { href: href || "#", passHref: true, className: className, children: _jsx(Button, { endIcon: "angle-right", size: "lg", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardBtn), children: btnLabel }) }));
|
|
31
|
-
};
|
|
32
|
-
// Horizontal layout
|
|
33
|
-
if (orientation === "horizontal") {
|
|
34
|
-
return (_jsxs("div", { className: "p-5 bg-white rounded-xl inline-flex ".concat(safeMediaPosition === "right" ? "flex-row-reverse" : "", " gap-5 items-center shadow-lg ").concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsx(CardMedia, { className: "max-w-[240px] aspect-square rounded-lg object-cover" }), _jsxs("div", { className: "flex flex-col gap-1 w-full", children: [_jsx(CardContent, {}), _jsx(CardButton, { className: "mt-5" })] })] }));
|
|
35
|
-
}
|
|
36
|
-
// Vertical layout
|
|
37
|
-
return (_jsxs("div", { className: "p-8 bg-white rounded-xl inline-flex flex-col gap-5 max-w-[480px] items-center shadow-lg ".concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsxs("div", { className: "flex ".concat(safeMediaPosition === "top" ? "flex-col" : "flex-col-reverse", " items-center gap-5 text-center"), children: [_jsx(CardMedia, { className: "w-full h-full aspect-5/4 object-cover" }), _jsx(CardContent, {})] }), _jsx(CardButton, {})] }));
|
|
38
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import Card from "./card";
|
|
3
|
-
declare const meta: Meta<typeof Card>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof Card>;
|
|
6
|
-
export declare const PostByCategoryHorizontalLeft: Story;
|
|
7
|
-
export declare const PostByCategoryHorizontalRight: Story;
|
|
8
|
-
export declare const PostByCategoryVerticalTop: Story;
|
|
9
|
-
export declare const PostByCategoryVerticalBottom: Story;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import Card from "./card";
|
|
13
|
-
import { Dummy_Image, Dummy_Para, Dummy_Subtitle, Dummy_Title, Dummy_Url, } from "../../utils/constants";
|
|
14
|
-
var meta = {
|
|
15
|
-
title: "Components/NewCard/PostByCategory",
|
|
16
|
-
component: Card,
|
|
17
|
-
parameters: {
|
|
18
|
-
layout: "centered",
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
export default meta;
|
|
22
|
-
// Base card args
|
|
23
|
-
var baseCardArgs = {
|
|
24
|
-
type: "postByCategory",
|
|
25
|
-
item: {
|
|
26
|
-
image: Dummy_Image,
|
|
27
|
-
title: Dummy_Title,
|
|
28
|
-
description: Dummy_Para,
|
|
29
|
-
subtitle: Dummy_Subtitle,
|
|
30
|
-
},
|
|
31
|
-
image: Dummy_Image,
|
|
32
|
-
href: Dummy_Url,
|
|
33
|
-
btnLabel: "View More",
|
|
34
|
-
editor: {
|
|
35
|
-
card: "",
|
|
36
|
-
cardImage: "",
|
|
37
|
-
cardTitle: "",
|
|
38
|
-
cardText: "",
|
|
39
|
-
cardBtn: "",
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
// PostByCategory Card Stories
|
|
43
|
-
export var PostByCategoryHorizontalLeft = {
|
|
44
|
-
args: __assign(__assign({}, baseCardArgs), { orientation: "horizontal", mediaPosition: "left" }),
|
|
45
|
-
};
|
|
46
|
-
export var PostByCategoryHorizontalRight = {
|
|
47
|
-
args: __assign(__assign({}, baseCardArgs), { orientation: "horizontal", mediaPosition: "right" }),
|
|
48
|
-
};
|
|
49
|
-
export var PostByCategoryVerticalTop = {
|
|
50
|
-
args: __assign(__assign({}, baseCardArgs), { orientation: "vertical", mediaPosition: "top" }),
|
|
51
|
-
};
|
|
52
|
-
export var PostByCategoryVerticalBottom = {
|
|
53
|
-
args: __assign(__assign({}, baseCardArgs), { orientation: "vertical", mediaPosition: "bottom" }),
|
|
54
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "../ui/tooltip";
|
|
3
|
-
import { IconButton } from "../Button/IconButton";
|
|
4
|
-
var EditorTooltip = function (_a) {
|
|
5
|
-
var title = _a.title, className = _a.className;
|
|
6
|
-
return (_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { className: className, children: _jsx(IconButton, { icon: "question", size: "sm", shape: "rounded-full", color: "blue-light" }) }), _jsx(TooltipContent, { children: _jsx("div", { className: "text-base w-48 text-center font-medium", children: title }) })] }) }));
|
|
7
|
-
};
|
|
8
|
-
export default EditorTooltip;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import EditorTooltip from "./EditorTooltip";
|
|
14
|
-
import { Dummy_Para } from "../../utils/constants";
|
|
15
|
-
export default {
|
|
16
|
-
title: "Components/EditorTooltip",
|
|
17
|
-
component: EditorTooltip,
|
|
18
|
-
tags: ["autodocs"],
|
|
19
|
-
};
|
|
20
|
-
var Template = function (args) { return (_jsx(EditorTooltip, __assign({}, args))); };
|
|
21
|
-
export var _EditorTooltip = Template.bind({});
|
|
22
|
-
_EditorTooltip.args = {
|
|
23
|
-
title: Dummy_Para,
|
|
24
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { VariantProps } from "class-variance-authority";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { labelVariants } from "../ui/label";
|
|
4
|
-
export interface LabelProps extends React.HTMLAttributes<HTMLLabelElement> {
|
|
5
|
-
htmlFor?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
variant?: VariantProps<typeof labelVariants>["variant"];
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
-
import { type VariantProps } from "class-variance-authority";
|
|
4
|
-
export declare const variant: {
|
|
5
|
-
default: string;
|
|
6
|
-
editorLabel: string;
|
|
7
|
-
};
|
|
8
|
-
declare const labelVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "editorLabel" | null | undefined;
|
|
10
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
-
declare function Label({ className, variant, ...props }: React.ComponentProps<typeof LabelPrimitive.Root> & VariantProps<typeof labelVariants>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export { Label, labelVariants };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
25
|
-
import { cva } from "class-variance-authority";
|
|
26
|
-
import { cn } from "../../lib/utils";
|
|
27
|
-
export var variant = {
|
|
28
|
-
default: "!text-base leading-none !font-medium",
|
|
29
|
-
editorLabel: "!text-lg !font-medium leading-[1.5] !mb-1",
|
|
30
|
-
};
|
|
31
|
-
var labelVariants = cva("flex items-center !gap-2 select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", {
|
|
32
|
-
variants: { variant: variant },
|
|
33
|
-
defaultVariants: {
|
|
34
|
-
variant: "default",
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
function Label(_a) {
|
|
38
|
-
var className = _a.className, variant = _a.variant, props = __rest(_a, ["className", "variant"]);
|
|
39
|
-
return (_jsx(LabelPrimitive.Root, __assign({ "data-slot": "label", className: cn(labelVariants({ variant: variant, className: className })) }, props)));
|
|
40
|
-
}
|
|
41
|
-
export { Label, labelVariants };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
// components/ui/radio-button.tsx
|
|
25
|
-
import * as React from "react";
|
|
26
|
-
import { cn } from "../../lib/utils";
|
|
27
|
-
var RadioButton = React.forwardRef(function (_a, ref) {
|
|
28
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
|
29
|
-
return (_jsx("input", __assign({ ref: ref, type: "radio", className: cn(
|
|
30
|
-
// Size and shape
|
|
31
|
-
"size-4 shrink-0 rounded-full border",
|
|
32
|
-
// Unchecked state
|
|
33
|
-
"border-gray-400",
|
|
34
|
-
// Checked state
|
|
35
|
-
"checked:border-blue-600 checked:bg-blue-600",
|
|
36
|
-
// Smooth transition
|
|
37
|
-
"transition-all duration-150 ease-in-out",
|
|
38
|
-
// Disabled state
|
|
39
|
-
"disabled:cursor-not-allowed disabled:opacity-50", className) }, props)));
|
|
40
|
-
});
|
|
41
|
-
RadioButton.displayName = "RadioButton";
|
|
42
|
-
export { RadioButton };
|