linkedunion-design-kit 1.5.3 → 1.5.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/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/src/components/Avatar/Avatar.js +1 -1
- package/dist/src/components/Button/IconButton.d.ts +1 -1
- package/dist/src/components/Button/IconButton.js +24 -2
- package/dist/src/components/Button/index.js +1 -1
- package/dist/src/components/Button/type.d.ts +1 -3
- package/dist/src/components/EditorTooltip/EditorTooltip.d.ts +2 -1
- package/dist/src/components/EditorTooltip/EditorTooltip.js +2 -2
- package/dist/src/components/Input/Input.stories.d.ts +2 -2
- package/dist/src/components/Input/Input.stories.js +27 -11
- package/dist/src/components/Switch/Switch.stories.d.ts +1 -2
- package/dist/src/components/Switch/Switch.stories.js +36 -2
- package/dist/src/components/ui/button.d.ts +2 -2
- package/dist/src/components/ui/input.js +1 -1
- package/dist/src/components/ui/switch.js +2 -2
- package/dist/src/components/ui/typography.d.ts +1 -1
- package/dist/src/components/ui/typography.js +5 -5
- package/dist/src/utils/iconList.js +5 -0
- package/dist/styles/global.css +12 -1
- package/package.json +1 -1
- package/dist/app/layout.jsx +0 -13
- package/dist/app/page.jsx +0 -71
- package/dist/build/types/app/layout.d.ts +0 -12
- package/dist/build/types/app/layout.js +0 -22
- package/dist/build/types/app/page.d.ts +0 -12
- package/dist/build/types/app/page.js +0 -22
- package/dist/src/components/Accordion/Accordion.d.ts +0 -5
- package/dist/src/components/Accordion/Accordion.js +0 -7
- package/dist/src/components/Accordion/EditorAccordion.d.ts +0 -5
- package/dist/src/components/Accordion/EditorAccordion.js +0 -7
- package/dist/src/components/Accordion/EditorAccordion.stories.d.ts +0 -6
- package/dist/src/components/Accordion/EditorAccordion.stories.js +0 -33
- package/dist/src/components/Accordion/type.d.ts +0 -5
- package/dist/src/components/Accordion/type.js +0 -1
- package/dist/src/components/Avatar/Avatar.jsx +0 -17
- package/dist/src/components/Avatar/Avatar.stories.jsx +0 -31
- package/dist/src/components/Avatar/Avatar.test.jsx +0 -51
- package/dist/src/components/Button/Button.jsx +0 -10
- package/dist/src/components/Button/Button.stories.jsx +0 -44
- package/dist/src/components/Button/Button.test.jsx +0 -65
- package/dist/src/components/Button/IconButton.jsx +0 -9
- package/dist/src/components/Button/IconButton.stories.jsx +0 -41
- package/dist/src/components/Button/IconButton.test.jsx +0 -29
- package/dist/src/components/ColorPicker/ColorPicker.jsx +0 -34
- package/dist/src/components/ColorPicker/ColorPicker.stories.jsx +0 -12
- package/dist/src/components/Colors/color.jsx +0 -5
- package/dist/src/components/Colors/color.stories.jsx +0 -20
- package/dist/src/components/Colors/color.test.jsx +0 -23
- package/dist/src/components/EditorTooltip/EditorTooltip.jsx +0 -18
- package/dist/src/components/EditorTooltip/EditorTooltip.stories.jsx +0 -12
- package/dist/src/components/EditorTooltip/type.d.ts +0 -3
- package/dist/src/components/EditorTooltip/type.js +0 -1
- package/dist/src/components/Icons/IconList.test.jsx +0 -57
- package/dist/src/components/Icons/IconView.jsx +0 -25
- package/dist/src/components/Icons/IconView.stories.jsx +0 -8
- package/dist/src/components/Icons/LUIcon.jsx +0 -31
- package/dist/src/components/Icons/LUIcon.stories.jsx +0 -32
- package/dist/src/components/Icons/SingleIcon.test.jsx +0 -55
- package/dist/src/components/Images/LuImage.jsx +0 -19
- package/dist/src/components/Images/LuImage.stories.jsx +0 -154
- package/dist/src/components/Images/LuImage.test.jsx +0 -44
- package/dist/src/components/Input/Input.jsx +0 -19
- package/dist/src/components/Input/Input.stories.jsx +0 -18
- package/dist/src/components/Label/Label.jsx +0 -19
- package/dist/src/components/Label/Label.stories.jsx +0 -24
- package/dist/src/components/Label/index.d.ts +0 -4
- package/dist/src/components/Label/index.js +0 -5
- package/dist/src/components/MediaCard/Card.jsx +0 -36
- package/dist/src/components/MediaCard/Card.stories.jsx +0 -56
- package/dist/src/components/MediaCard/Card.test.jsx +0 -27
- package/dist/src/components/MediaCard/ContactProfile/ContactProfile.jsx +0 -22
- package/dist/src/components/MediaCard/ContactProfile/ContactProfile.test.jsx +0 -60
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.jsx +0 -28
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.test.jsx +0 -87
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.jsx +0 -24
- package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.test.jsx +0 -87
- package/dist/src/components/MediaCard/PostByCategory/PostByCategory.jsx +0 -24
- package/dist/src/components/MediaCard/PostByCategory/PostByCategory.test.jsx +0 -61
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.jsx +0 -26
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.test.jsx +0 -87
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.jsx +0 -24
- package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.test.jsx +0 -87
- package/dist/src/components/Switch/Switch.jsx +0 -6
- package/dist/src/components/Switch/Switch.stories.jsx +0 -32
- package/dist/src/components/Title/Title.jsx +0 -8
- package/dist/src/components/Title/Title.stories.jsx +0 -37
- package/dist/src/components/Title/Title.test.jsx +0 -24
- package/dist/src/components/Typography/Typography.jsx +0 -19
- package/dist/src/components/Typography/Typography.stories.jsx +0 -25
- package/dist/src/components/ui/button.jsx +0 -43
- package/dist/src/components/ui/input.jsx +0 -18
- package/dist/src/components/ui/label.jsx +0 -30
- package/dist/src/components/ui/switch.jsx +0 -61
- package/dist/src/components/ui/tooltip.jsx +0 -38
- package/dist/src/components/ui/typography.jsx +0 -56
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export { default as Title } from "./src/components/Title/Title";
|
|
|
7
7
|
export { default as IconButton } from "./src/components/Button/IconButton";
|
|
8
8
|
export { default as ColorPicker } from "./src/components/ColorPicker/ColorPicker";
|
|
9
9
|
export { default as Label } from "./src/components/Label/Label";
|
|
10
|
-
export {
|
|
10
|
+
export { Input } from "./src/components/ui/input";
|
|
11
11
|
export { default as EditorTooltip } from "./src/components/EditorTooltip/EditorTooltip";
|
|
12
12
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "./src/components/ui/accordion";
|
|
13
13
|
export { default as ImageUploader } from "./src/components/ui/imageUploader";
|
|
14
|
+
export { Typography } from "./src/components/ui/typography";
|
|
15
|
+
export { Switch } from "./src/components/ui/switch";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,9 @@ export { default as Title } from "./src/components/Title/Title";
|
|
|
7
7
|
export { default as IconButton } from "./src/components/Button/IconButton";
|
|
8
8
|
export { default as ColorPicker } from "./src/components/ColorPicker/ColorPicker";
|
|
9
9
|
export { default as Label } from "./src/components/Label/Label";
|
|
10
|
-
export {
|
|
10
|
+
export { Input } from "./src/components/ui/input";
|
|
11
11
|
export { default as EditorTooltip } from "./src/components/EditorTooltip/EditorTooltip";
|
|
12
12
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "./src/components/ui/accordion";
|
|
13
13
|
export { default as ImageUploader } from "./src/components/ui/imageUploader";
|
|
14
|
+
export { Typography } from "./src/components/ui/typography";
|
|
15
|
+
export { Switch } from "./src/components/ui/switch";
|
|
@@ -7,6 +7,6 @@ var Avatar = function (_a) {
|
|
|
7
7
|
var sizeClasses = avatarSize[size];
|
|
8
8
|
var paddingClass = avatarPadding[size];
|
|
9
9
|
return (_jsx(_Fragment, { children: image ? (_jsx("div", { className: "relative overflow-hidden bg-primary-200 ".concat(avatarShape[shape], " ").concat(className, " ").concat(sizeClasses), "data-testid": "lu-avatar", children: _jsx(Image, { src: image, alt: "avatar", className: "object-cover w-full h-full", width: 0, height: 0, sizes: "100%" //Image takes 100% of the parent container
|
|
10
|
-
}) })) : (_jsx("div", { className: "bg-neutral-100 ".concat(paddingClass, " ").concat(shape, " ").concat(className, " ").concat(sizeClasses), "data-testid": "lu-icon", children: _jsx(LUIcon, { "data-testid": "lu-icon", size: size, icon: icon, className: "text-neutral-1000 w-full h-full" }) })) }));
|
|
10
|
+
}) })) : (_jsx("div", { className: "bg-neutral-100 ".concat(paddingClass, " ").concat(avatarShape[shape], " ").concat(className, " ").concat(sizeClasses), "data-testid": "lu-icon", children: _jsx(LUIcon, { "data-testid": "lu-icon", size: size, icon: icon, className: "text-neutral-1000 w-full h-full" }) })) }));
|
|
11
11
|
};
|
|
12
12
|
export default Avatar;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IconButtonProps } from "./type";
|
|
2
|
-
declare const IconButton: ({ color, onClick, shape, size, className, icon, }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const IconButton: ({ color, onClick, shape, size, className, icon, ...props }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default IconButton;
|
|
@@ -1,8 +1,30 @@
|
|
|
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
|
+
};
|
|
1
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
24
|
import { buttonColors, buttonShapes, iconButtonSize } from ".";
|
|
3
25
|
import LUIcon from "../Icons/LUIcon";
|
|
4
26
|
var IconButton = function (_a) {
|
|
5
|
-
var _b = _a.color, color = _b === void 0 ? "primary" : _b, onClick = _a.onClick, _c = _a.shape, shape = _c === void 0 ? "rounded-none" : _c, _d = _a.size, size = _d === void 0 ? "sm" : _d, className = _a.className, _e = _a.icon, icon = _e === void 0 ? _jsx(LUIcon, { icon: "chart-simple", size: "xs" }) : _e;
|
|
6
|
-
return (_jsx("button", { className: "flex items-center ".concat(buttonShapes[shape], " ").concat(buttonColors[color], " ").concat(className, " ").concat(iconButtonSize[size]), onClick: onClick, children: icon && icon }));
|
|
27
|
+
var _b = _a.color, color = _b === void 0 ? "primary" : _b, onClick = _a.onClick, _c = _a.shape, shape = _c === void 0 ? "rounded-none" : _c, _d = _a.size, size = _d === void 0 ? "sm" : _d, className = _a.className, _e = _a.icon, icon = _e === void 0 ? _jsx(LUIcon, { icon: "chart-simple", size: "xs" }) : _e, props = __rest(_a, ["color", "onClick", "shape", "size", "className", "icon"]);
|
|
28
|
+
return (_jsx("button", __assign({ className: "flex items-center ".concat(buttonShapes[shape], " ").concat(buttonColors[color], " ").concat(className, " ").concat(iconButtonSize[size]), onClick: onClick }, props, { children: icon && icon })));
|
|
7
29
|
};
|
|
8
30
|
export default IconButton;
|
|
@@ -14,12 +14,10 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
}
|
|
17
|
-
export interface IconButtonProps extends React.
|
|
17
|
+
export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
18
18
|
color?: colors;
|
|
19
|
-
onClick?: () => void;
|
|
20
19
|
size?: iconButtonSize;
|
|
21
20
|
shape?: buttonShapes;
|
|
22
|
-
className?: string;
|
|
23
21
|
icon: React.ReactNode;
|
|
24
22
|
}
|
|
25
23
|
export {};
|
|
@@ -3,7 +3,7 @@ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "../ui
|
|
|
3
3
|
import IconButton from "../Button/IconButton";
|
|
4
4
|
import LUIcon from "../Icons/LUIcon";
|
|
5
5
|
var EditorTooltip = function (_a) {
|
|
6
|
-
var title = _a.title;
|
|
7
|
-
return (_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { children: _jsx(IconButton, { icon: _jsx(LUIcon, { icon: "question", size: "
|
|
6
|
+
var title = _a.title, className = _a.className;
|
|
7
|
+
return (_jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { className: className, children: _jsx(IconButton, { icon: _jsx(LUIcon, { icon: "question", size: "xs" }), size: "xs", shape: "rounded-full", color: "primary-light" }) }), _jsx(TooltipContent, { children: _jsx("div", { className: "text-base w-48 text-center font-medium", children: title }) })] }) }));
|
|
8
8
|
};
|
|
9
9
|
export default EditorTooltip;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta } from "@storybook/react";
|
|
2
2
|
import { InputFieldProps } from "./type";
|
|
3
|
-
declare const _default: Meta
|
|
3
|
+
declare const _default: Meta<InputFieldProps>;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, InputFieldProps>;
|
|
@@ -10,21 +10,37 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import Input from "
|
|
14
|
-
import { inputType } from ".";
|
|
13
|
+
import { Input } from "../ui/input";
|
|
14
|
+
import { inputType } from "."; // Ensure this exports an object like { text: 'text', email: 'email', ... }
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Input",
|
|
17
17
|
component: Input,
|
|
18
18
|
tags: ["autodocs"],
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
argTypes: {
|
|
20
|
+
type: {
|
|
21
|
+
control: {
|
|
22
|
+
type: "select",
|
|
23
|
+
labels: Object.keys(inputType),
|
|
24
|
+
},
|
|
25
|
+
options: Object.keys(inputType),
|
|
26
|
+
defaultValue: "text",
|
|
27
|
+
},
|
|
28
|
+
placeholder: {
|
|
29
|
+
control: "text",
|
|
30
|
+
defaultValue: "Enter text",
|
|
31
|
+
},
|
|
32
|
+
disabled: {
|
|
33
|
+
control: "boolean",
|
|
34
|
+
defaultValue: false,
|
|
35
|
+
},
|
|
36
|
+
className: {
|
|
37
|
+
control: "text",
|
|
27
38
|
},
|
|
28
|
-
options: Object.keys(inputType),
|
|
29
39
|
},
|
|
30
40
|
};
|
|
41
|
+
var Template = function (args) { return _jsx(Input, __assign({}, args)); };
|
|
42
|
+
export var Default = Template.bind({});
|
|
43
|
+
Default.args = {
|
|
44
|
+
type: "text",
|
|
45
|
+
placeholder: "Enter your input",
|
|
46
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Meta } from "@storybook/react";
|
|
2
|
-
import { SwitchProps } from "./type";
|
|
3
2
|
declare const _default: Meta;
|
|
4
3
|
export default _default;
|
|
5
|
-
export declare const _Switch: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer,
|
|
4
|
+
export declare const _Switch: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/react").Args>;
|
|
@@ -10,8 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import Switch from "
|
|
14
|
-
import { size, variant } from "../ui/switch";
|
|
13
|
+
import { size, Switch, variant } from "../ui/switch";
|
|
15
14
|
export default {
|
|
16
15
|
title: "Components/Switch",
|
|
17
16
|
component: Switch,
|
|
@@ -21,6 +20,11 @@ var Template = function (args) { return _jsx(Switch, __assign({}, args)); };
|
|
|
21
20
|
export var _Switch = Template.bind({});
|
|
22
21
|
_Switch.args = {
|
|
23
22
|
size: "md",
|
|
23
|
+
variant: "default",
|
|
24
|
+
defaultChecked: false,
|
|
25
|
+
onCheckedChange: function (checked) {
|
|
26
|
+
return console.log("Switch is ".concat(checked ? "on" : "off"));
|
|
27
|
+
},
|
|
24
28
|
};
|
|
25
29
|
_Switch.argTypes = {
|
|
26
30
|
variant: {
|
|
@@ -41,4 +45,34 @@ _Switch.argTypes = {
|
|
|
41
45
|
type: { summary: "string" },
|
|
42
46
|
},
|
|
43
47
|
},
|
|
48
|
+
defaultChecked: {
|
|
49
|
+
control: { type: "boolean" },
|
|
50
|
+
description: "Initial checked state for uncontrolled switch",
|
|
51
|
+
table: {
|
|
52
|
+
defaultValue: { summary: "false" },
|
|
53
|
+
type: { summary: "boolean" },
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
checked: {
|
|
57
|
+
control: { type: "boolean" },
|
|
58
|
+
description: "Controlled checked state (e.g., checked={field.value} for form libraries)",
|
|
59
|
+
table: {
|
|
60
|
+
type: { summary: "boolean" },
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
onCheckedChange: {
|
|
64
|
+
action: "checked changed",
|
|
65
|
+
description: "Callback function when switch state changes",
|
|
66
|
+
table: {
|
|
67
|
+
type: { summary: "(checked: boolean) => void" },
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
disabled: {
|
|
71
|
+
control: { type: "boolean" },
|
|
72
|
+
description: "Disables the switch",
|
|
73
|
+
table: {
|
|
74
|
+
defaultValue: { summary: "false" },
|
|
75
|
+
type: { summary: "boolean" },
|
|
76
|
+
},
|
|
77
|
+
},
|
|
44
78
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
5
|
-
size?: "
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "icon" | "sm" | "lg" | "default" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -24,6 +24,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
24
24
|
import { cn } from "../../lib/utils";
|
|
25
25
|
function Input(_a) {
|
|
26
26
|
var className = _a.className, type = _a.type, props = __rest(_a, ["className", "type"]);
|
|
27
|
-
return (_jsx("input", __assign({ type: type, "data-slot": "input", className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-
|
|
27
|
+
return (_jsx("input", __assign({ type: type, "data-slot": "input", className: cn("file:text-foreground placeholder:text-muted-foreground rounded selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-11 w-full min-w-0 border bg-transparent !px-3 !py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:shadow-outline-primary focus-visible:outline-none", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className) }, props)));
|
|
28
28
|
}
|
|
29
29
|
export { Input };
|
|
@@ -35,7 +35,7 @@ export var variant = {
|
|
|
35
35
|
success: "data-[state=checked]:bg-success-500 data-[state=unchecked]:bg-input focus-visible:ring-green-500",
|
|
36
36
|
danger: "data-[state=checked]:bg-danger-500 data-[state=unchecked]:bg-input focus-visible:ring-red-500",
|
|
37
37
|
};
|
|
38
|
-
var switchVariants = cva("peer inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
|
|
38
|
+
var switchVariants = cva("peer inline-flex shrink-0 items-center !rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
|
|
39
39
|
variants: {
|
|
40
40
|
size: size,
|
|
41
41
|
variant: variant,
|
|
@@ -45,7 +45,7 @@ var switchVariants = cva("peer inline-flex shrink-0 items-center rounded-full bo
|
|
|
45
45
|
variant: "default",
|
|
46
46
|
},
|
|
47
47
|
});
|
|
48
|
-
var thumbVariants = cva("pointer-events-none block rounded-full ring-0 transition-transform", {
|
|
48
|
+
var thumbVariants = cva("pointer-events-none block !rounded-full ring-0 transition-transform", {
|
|
49
49
|
variants: {
|
|
50
50
|
size: {
|
|
51
51
|
sm: "size-3",
|
|
@@ -17,7 +17,7 @@ export declare const variant: {
|
|
|
17
17
|
b4: string;
|
|
18
18
|
};
|
|
19
19
|
declare const typographyVariants: (props?: ({
|
|
20
|
-
variant?: "h2" | "h1" | "h3" | "h4" | "h5" | "h6" | "
|
|
20
|
+
variant?: "h2" | "h1" | "h3" | "h4" | "h5" | "h6" | "b3" | "d1" | "d2" | "d3" | "d4" | "b1" | "b2" | "b4" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
type TypographyProps = React.HTMLProps<HTMLElement> & VariantProps<typeof typographyVariants> & {
|
|
23
23
|
variant?: keyof typeof variant;
|
|
@@ -34,10 +34,10 @@ export var variant = {
|
|
|
34
34
|
d2: "text-8xl font-bold",
|
|
35
35
|
d3: "text-7xl font-bold",
|
|
36
36
|
d4: "text-6xl font-bold",
|
|
37
|
-
b1: "text-xl font-normal",
|
|
38
|
-
b2: "text-lg font-normal",
|
|
39
|
-
b3: "text-base font-normal",
|
|
40
|
-
b4: "text-sm font-medium",
|
|
37
|
+
b1: "text-xl font-normal !m-0",
|
|
38
|
+
b2: "text-lg font-normal !m-0",
|
|
39
|
+
b3: "text-base font-normal !m-0",
|
|
40
|
+
b4: "text-sm font-medium !m-0",
|
|
41
41
|
};
|
|
42
42
|
var typographyVariants = cva("!leading-normal", // Default base class
|
|
43
43
|
{
|
|
@@ -45,7 +45,7 @@ var typographyVariants = cva("!leading-normal", // Default base class
|
|
|
45
45
|
variant: variant,
|
|
46
46
|
},
|
|
47
47
|
defaultVariants: {
|
|
48
|
-
variant: "
|
|
48
|
+
variant: "b3",
|
|
49
49
|
},
|
|
50
50
|
});
|
|
51
51
|
function Typography(_a) {
|
|
@@ -809,4 +809,9 @@ export var iconList = [
|
|
|
809
809
|
path: "M31.0679 15.0625H28.2554C27.7376 15.0625 27.3179 15.4822 27.3179 16C27.3179 16.5178 27.7376 16.9375 28.2554 16.9375H31.0679C31.5856 16.9375 32.0054 16.5178 32.0054 16C32.0054 15.4822 31.5856 15.0625 31.0679 15.0625ZM29.8558 20.9621L27.9808 19.0871C27.6147 18.7211 27.0211 18.7211 26.655 19.0871C26.2888 19.4532 26.2888 20.0468 26.655 20.4129L28.53 22.2879C28.8961 22.6541 29.4897 22.6541 29.8558 22.2879C30.2219 21.9218 30.2219 21.3283 29.8558 20.9621ZM29.8557 9.71212C29.4897 9.34606 28.8961 9.34606 28.5299 9.71212L26.6549 11.5871C26.2888 11.9532 26.2888 12.5468 26.6549 12.9129C27.0211 13.2791 27.6147 13.279 27.9807 12.9129L29.8557 11.0379C30.2219 10.6718 30.2219 10.0782 29.8557 9.71212ZM21.6929 3.8125C20.2847 3.8125 19.1151 4.85281 18.9118 6.20525L18.0566 7.06044C16.5682 8.54888 14.3762 9.4375 12.1929 9.4375H6.56787C5.34568 9.4375 4.30362 10.2213 3.91662 11.3125H3.75537C1.68762 11.3125 0.00537109 12.9948 0.00537109 15.0625C0.00537109 17.1302 1.68762 18.8125 3.75537 18.8125H3.91662C4.19956 19.6102 4.83262 20.2433 5.63037 20.5263V25.375C5.63037 26.9258 6.89212 28.1875 8.44293 28.1875C9.99368 28.1875 11.2554 26.9258 11.2554 25.375V20.6875H12.1929C14.3761 20.6875 16.5681 21.5761 18.0566 23.0646L18.9118 23.9198C19.1151 25.2721 20.2847 26.3125 21.6929 26.3125C23.2437 26.3125 24.5054 25.0508 24.5054 23.5V6.625C24.5054 5.07419 23.2437 3.8125 21.6929 3.8125ZM3.75537 16.9375C2.7215 16.9375 1.88037 16.0964 1.88037 15.0625C1.88037 14.0286 2.7215 13.1875 3.75537 13.1875V16.9375ZM18.8804 21.2716C17.2966 19.9009 15.2602 19.0492 13.1241 18.855L13.1242 11.2699C15.2602 11.0758 17.2966 10.2241 18.8804 8.85331V21.2716Z",
|
|
810
810
|
label: "megaPhone",
|
|
811
811
|
},
|
|
812
|
+
{
|
|
813
|
+
key: "flickr",
|
|
814
|
+
path: "M28.5714 0H3.42857C1.53571 0 0 1.53571 0 3.42857V28.5714C0 30.4643 1.53571 32 3.42857 32H28.5714C30.4643 32 32 30.4643 32 28.5714V3.42857C32 1.53571 30.4643 0 28.5714 0ZM10.3214 20.5C7.81429 20.5 5.78571 18.4714 5.78571 15.9643C5.78571 13.4571 7.81429 11.4286 10.3214 11.4286C12.8286 11.4286 14.8571 13.4571 14.8571 15.9643C14.8571 18.4714 12.8286 20.5 10.3214 20.5ZM21.6786 20.5C19.1714 20.5 17.1429 18.4714 17.1429 15.9643C17.1429 13.4571 19.1714 11.4286 21.6786 11.4286C24.1857 11.4286 26.2143 13.4571 26.2143 15.9643C26.2143 18.4714 24.1857 20.5 21.6786 20.5Z",
|
|
815
|
+
label: "flickr",
|
|
816
|
+
},
|
|
812
817
|
];
|
package/dist/styles/global.css
CHANGED
|
@@ -251,6 +251,9 @@
|
|
|
251
251
|
max-width: 96rem;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
+
.\!m-0 {
|
|
255
|
+
margin: calc(var(--spacing) * 0) !important;
|
|
256
|
+
}
|
|
254
257
|
.m-0 {
|
|
255
258
|
margin: calc(var(--spacing) * 0);
|
|
256
259
|
}
|
|
@@ -422,6 +425,9 @@
|
|
|
422
425
|
.h-10 {
|
|
423
426
|
height: calc(var(--spacing) * 10);
|
|
424
427
|
}
|
|
428
|
+
.h-11 {
|
|
429
|
+
height: calc(var(--spacing) * 11);
|
|
430
|
+
}
|
|
425
431
|
.h-12 {
|
|
426
432
|
height: calc(var(--spacing) * 12);
|
|
427
433
|
}
|
|
@@ -533,6 +539,9 @@
|
|
|
533
539
|
.w-40 {
|
|
534
540
|
width: calc(var(--spacing) * 40);
|
|
535
541
|
}
|
|
542
|
+
.w-48 {
|
|
543
|
+
width: calc(var(--spacing) * 48);
|
|
544
|
+
}
|
|
536
545
|
.w-64 {
|
|
537
546
|
width: calc(var(--spacing) * 64);
|
|
538
547
|
}
|
|
@@ -839,6 +848,9 @@
|
|
|
839
848
|
.\!p-2 {
|
|
840
849
|
padding: calc(var(--spacing) * 2) !important;
|
|
841
850
|
}
|
|
851
|
+
.\!p-3 {
|
|
852
|
+
padding: calc(var(--spacing) * 3) !important;
|
|
853
|
+
}
|
|
842
854
|
.p-2 {
|
|
843
855
|
padding: calc(var(--spacing) * 2);
|
|
844
856
|
}
|
|
@@ -2789,4 +2801,3 @@ body {
|
|
|
2789
2801
|
}
|
|
2790
2802
|
}
|
|
2791
2803
|
}
|
|
2792
|
-
|
package/package.json
CHANGED
package/dist/app/layout.jsx
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Inter } from "next/font/google";
|
|
2
|
-
import "@/styles/globals.css";
|
|
3
|
-
var inter = Inter({ subsets: ["latin"] });
|
|
4
|
-
export var metadata = {
|
|
5
|
-
title: "Create Next App",
|
|
6
|
-
description: "Generated by create next app",
|
|
7
|
-
};
|
|
8
|
-
export default function RootLayout(_a) {
|
|
9
|
-
var children = _a.children;
|
|
10
|
-
return (<html lang="en">
|
|
11
|
-
<body className={inter.className}>{children}</body>
|
|
12
|
-
</html>);
|
|
13
|
-
}
|
package/dist/app/page.jsx
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import Image from "next/image";
|
|
2
|
-
export default function Home() {
|
|
3
|
-
return (<main className="flex min-h-screen flex-col items-center justify-between p-24">
|
|
4
|
-
<div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex">
|
|
5
|
-
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
|
|
6
|
-
Get started by editing
|
|
7
|
-
<code className="font-mono font-bold">app/page.tsx</code>
|
|
8
|
-
</p>
|
|
9
|
-
<div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none">
|
|
10
|
-
<a className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0" href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" target="_blank" rel="noopener noreferrer">
|
|
11
|
-
By{" "}
|
|
12
|
-
<Image src="/vercel.svg" alt="Vercel Logo" className="dark:invert" width={100} height={24} priority/>
|
|
13
|
-
</a>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<div className="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 before:lg:h-[360px] z-[-1]">
|
|
18
|
-
<Image className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert" src="/next.svg" alt="Next.js Logo" width={180} height={37} priority/>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div className="mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left">
|
|
22
|
-
<a href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" target="_blank" rel="noopener noreferrer">
|
|
23
|
-
<h2 className={"mb-3 text-2xl font-semibold"}>
|
|
24
|
-
Docs{" "}
|
|
25
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
26
|
-
->
|
|
27
|
-
</span>
|
|
28
|
-
</h2>
|
|
29
|
-
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
|
|
30
|
-
Find in-depth information about Next.js features and API.
|
|
31
|
-
</p>
|
|
32
|
-
</a>
|
|
33
|
-
|
|
34
|
-
<a href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app" className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" target="_blank" rel="noopener noreferrer">
|
|
35
|
-
<h2 className={"mb-3 text-2xl font-semibold"}>
|
|
36
|
-
Learn{" "}
|
|
37
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
38
|
-
->
|
|
39
|
-
</span>
|
|
40
|
-
</h2>
|
|
41
|
-
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
|
|
42
|
-
Learn about Next.js in an interactive course with quizzes!
|
|
43
|
-
</p>
|
|
44
|
-
</a>
|
|
45
|
-
|
|
46
|
-
<a href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" target="_blank" rel="noopener noreferrer">
|
|
47
|
-
<h2 className={"mb-3 text-2xl font-semibold"}>
|
|
48
|
-
Templates{" "}
|
|
49
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
50
|
-
->
|
|
51
|
-
</span>
|
|
52
|
-
</h2>
|
|
53
|
-
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
|
|
54
|
-
Explore the Next.js 13 playground.
|
|
55
|
-
</p>
|
|
56
|
-
</a>
|
|
57
|
-
|
|
58
|
-
<a href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" target="_blank" rel="noopener noreferrer">
|
|
59
|
-
<h2 className={"mb-3 text-2xl font-semibold"}>
|
|
60
|
-
Deploy{" "}
|
|
61
|
-
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
|
|
62
|
-
->
|
|
63
|
-
</span>
|
|
64
|
-
</h2>
|
|
65
|
-
<p className={"m-0 max-w-[30ch] text-sm opacity-50"}>
|
|
66
|
-
Instantly deploy your Next.js site to a shareable URL with Vercel.
|
|
67
|
-
</p>
|
|
68
|
-
</a>
|
|
69
|
-
</div>
|
|
70
|
-
</main>);
|
|
71
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type SegmentParams<T extends Object = any> = T extends Record<string, any> ? {
|
|
2
|
-
[K in keyof T]: T[K] extends string ? string | string[] | undefined : never;
|
|
3
|
-
} : T;
|
|
4
|
-
export interface PageProps {
|
|
5
|
-
params?: Promise<SegmentParams>;
|
|
6
|
-
searchParams?: Promise<any>;
|
|
7
|
-
}
|
|
8
|
-
export interface LayoutProps {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
params?: Promise<SegmentParams>;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// File: /Users/avialdosolutions/linkedunion-design-kit/linkedunion-design-kit/app/layout.tsx
|
|
2
|
-
import * as entry from '../../../app/layout.js';
|
|
3
|
-
// Check that the entry is a valid entry
|
|
4
|
-
checkFields();
|
|
5
|
-
// Check the prop type of the entry function
|
|
6
|
-
checkFields();
|
|
7
|
-
// Check the arguments and return type of the generateMetadata function
|
|
8
|
-
if ('generateMetadata' in entry) {
|
|
9
|
-
checkFields();
|
|
10
|
-
checkFields();
|
|
11
|
-
}
|
|
12
|
-
// Check the arguments and return type of the generateViewport function
|
|
13
|
-
if ('generateViewport' in entry) {
|
|
14
|
-
checkFields();
|
|
15
|
-
checkFields();
|
|
16
|
-
}
|
|
17
|
-
// Check the arguments and return type of the generateStaticParams function
|
|
18
|
-
if ('generateStaticParams' in entry) {
|
|
19
|
-
checkFields();
|
|
20
|
-
checkFields();
|
|
21
|
-
}
|
|
22
|
-
function checkFields() { }
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
type SegmentParams<T extends Object = any> = T extends Record<string, any> ? {
|
|
2
|
-
[K in keyof T]: T[K] extends string ? string | string[] | undefined : never;
|
|
3
|
-
} : T;
|
|
4
|
-
export interface PageProps {
|
|
5
|
-
params?: Promise<SegmentParams>;
|
|
6
|
-
searchParams?: Promise<any>;
|
|
7
|
-
}
|
|
8
|
-
export interface LayoutProps {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
params?: Promise<SegmentParams>;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// File: /Users/avialdosolutions/linkedunion-design-kit/linkedunion-design-kit/app/page.tsx
|
|
2
|
-
import * as entry from '../../../app/page.js';
|
|
3
|
-
// Check that the entry is a valid entry
|
|
4
|
-
checkFields();
|
|
5
|
-
// Check the prop type of the entry function
|
|
6
|
-
checkFields();
|
|
7
|
-
// Check the arguments and return type of the generateMetadata function
|
|
8
|
-
if ('generateMetadata' in entry) {
|
|
9
|
-
checkFields();
|
|
10
|
-
checkFields();
|
|
11
|
-
}
|
|
12
|
-
// Check the arguments and return type of the generateViewport function
|
|
13
|
-
if ('generateViewport' in entry) {
|
|
14
|
-
checkFields();
|
|
15
|
-
checkFields();
|
|
16
|
-
}
|
|
17
|
-
// Check the arguments and return type of the generateStaticParams function
|
|
18
|
-
if ('generateStaticParams' in entry) {
|
|
19
|
-
checkFields();
|
|
20
|
-
checkFields();
|
|
21
|
-
}
|
|
22
|
-
function checkFields() { }
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AccordionItem, AccordionTrigger, AccordionContent } from "../ui/accordion";
|
|
2
|
-
declare const Accordion: ({ children }: {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Accordion as ShadAccordion, AccordionItem, AccordionTrigger, AccordionContent, } from "../ui/accordion";
|
|
3
|
-
var Accordion = function (_a) {
|
|
4
|
-
var children = _a.children;
|
|
5
|
-
return (_jsx(ShadAccordion, { type: "single", collapsible: true, children: children }));
|
|
6
|
-
};
|
|
7
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AccordionItem, AccordionTrigger, AccordionContent } from "../ui/accordion";
|
|
2
|
-
declare const EditorAccordion: ({ children }: {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export { EditorAccordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Accordion as ShadAccordion, AccordionItem, AccordionTrigger, AccordionContent, } from "../ui/accordion";
|
|
3
|
-
var EditorAccordion = function (_a) {
|
|
4
|
-
var children = _a.children;
|
|
5
|
-
return (_jsx(ShadAccordion, { type: "single", collapsible: true, children: children }));
|
|
6
|
-
};
|
|
7
|
-
export { EditorAccordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -1,33 +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 { AccordionContent, AccordionItem, AccordionTrigger, } from "../ui/accordion";
|
|
14
|
-
import ColorPicker from "../ColorPicker/ColorPicker";
|
|
15
|
-
import { Accordion } from "./Accordion";
|
|
16
|
-
export default {
|
|
17
|
-
title: "Components/Accordion",
|
|
18
|
-
component: Accordion,
|
|
19
|
-
tags: ["autodocs"],
|
|
20
|
-
};
|
|
21
|
-
var Template = function (args) { return (_jsx(Accordion, __assign({}, args))); };
|
|
22
|
-
export var _EditorAccordion = Template.bind({});
|
|
23
|
-
_EditorAccordion.args = {
|
|
24
|
-
children: (_jsxs(_Fragment, { children: [_jsxs(AccordionItem, { value: "menus", children: [_jsx(AccordionTrigger, { children: "Menus" }), _jsx(AccordionContent, { children: _jsx(ColorPicker, { value: "#000000", onChange: function () { return console.log("color"); } }) })] }), _jsxs(AccordionItem, { value: "styling", children: [_jsx(AccordionTrigger, { children: "Styling" }), _jsx(AccordionContent, { children: "Is it styled?" })] })] })),
|
|
25
|
-
};
|
|
26
|
-
_EditorAccordion.argTypes = {
|
|
27
|
-
children: {
|
|
28
|
-
description: "Pass `AccordionItem` components as children. Each item includes an `AccordionTrigger` (the clickable label) and `AccordionContent` (collapsible body). You can customize both with any valid React nodes \n\nFor more details and usage examples, refer to the [ShadCN Accordion documentation](https://ui.shadcn.com/docs/components/accordion).",
|
|
29
|
-
table: {
|
|
30
|
-
type: { summary: "React.ReactNode" },
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
};
|