linkedunion-design-kit 1.9.9 → 1.10.2
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 +34 -33
- package/dist/index.js +34 -33
- package/dist/src/components/Accordion/Accordion.stories.js +1 -1
- package/dist/src/components/Accordion/accordion.js +1 -1
- package/dist/src/components/Alerts/Alert/alert.js +1 -1
- package/dist/src/components/Alerts/AlertDialog/alert-dialog.js +1 -1
- package/dist/src/components/Avatar/Avatar/Avatar.js +1 -1
- package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/src/components/Badge/Badge.d.ts +1 -1
- package/dist/src/components/Badge/Badge.js +1 -1
- package/dist/src/components/Badge/Badge.stories.d.ts +1 -1
- package/dist/src/components/Badge/Badge.stories.js +1 -1
- package/dist/src/components/Button/Button/Button.d.ts +1 -1
- package/dist/src/components/Button/Button/Button.js +1 -1
- package/dist/src/components/Button/Button/Button.test.js +1 -1
- package/dist/src/components/Button/IconButton/IconButton.d.ts +1 -1
- package/dist/src/components/Button/IconButton/IconButton.js +1 -1
- package/dist/src/components/Button/IconButton/IconButton.stories.d.ts +1 -1
- package/dist/src/components/Button/IconButton/IconButton.stories.js +1 -1
- package/dist/src/components/Card/MultipleNews/MultiNews.stories.js +3 -3
- package/dist/src/components/Card/PostByCategory/PostByCategory.d.ts +4 -1
- package/dist/src/components/Card/PostByCategory/PostByCategory.js +2 -3
- package/dist/src/components/Card/PostByCategory/PostByCategory.stories.js +3 -3
- package/dist/src/components/Card/SinglePost/SinglePost.stories.js +1 -1
- package/dist/src/components/Card/card.d.ts +5 -2
- package/dist/src/components/Card/card.js +1 -1
- package/dist/src/components/Card/contactProfile/ContactProfile.stories.js +2 -2
- package/dist/src/components/Card/photoAlbum/PhotoAlbum.js +3 -3
- package/dist/src/components/Card/photoAlbum/PhotoAlbum.stories.js +1 -1
- package/dist/src/components/Card/photoGallery/PhotoGallery.js +3 -3
- package/dist/src/components/Card/photoGallery/PhotoGallery.stories.js +1 -1
- package/dist/src/components/Checkbox/checkbox.js +1 -1
- package/dist/src/components/ColorPicker/ColorPicker.stories.js +1 -1
- package/dist/src/components/ColorPicker/index.d.ts +1 -1
- package/dist/src/components/Colors/color.d.ts +1 -1
- package/dist/src/components/Colors/color.js +1 -1
- package/dist/src/components/Colors/color.stories.d.ts +1 -1
- package/dist/src/components/Colors/color.stories.js +1 -1
- package/dist/src/components/Colors/color.test.js +1 -1
- package/dist/src/components/Dropdown/Combobox/Combobox.js +11 -11
- package/dist/src/components/Dropdown/Combobox/Combobox.stories.js +7 -7
- package/dist/src/components/Dropdown/Combobox/type.d.ts +1 -1
- package/dist/src/components/Dropdown/Combobox/utils/getLabelVariant.d.ts +1 -1
- package/dist/src/components/Dropdown/Combobox/utils/renderBadge.js +1 -1
- package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.js +2 -2
- package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.stories.js +8 -8
- package/dist/src/components/Dropdown/DropdownMenu/SelectAllSection.js +3 -3
- package/dist/src/components/Dropdown/select.js +1 -1
- package/dist/src/components/Icons/LUIcon.js +2 -2
- package/dist/src/components/Icons/LUIcon.test.js +1 -1
- package/dist/src/components/Icons/stories/IconDropdown.js +1 -1
- package/dist/src/components/Icons/stories/IconGallery.js +4 -4
- package/dist/src/components/Icons/stories/InteractiveIconSelector.js +4 -4
- package/dist/src/components/Icons/stories/LUIcon.stories.js +1 -1
- package/dist/src/components/Icons/type.d.ts +1 -1
- package/dist/src/components/ImageUploader/ImageUploader.stories.js +1 -1
- package/dist/src/components/ImageUploader/imageUploader.js +1 -1
- package/dist/src/components/Input/DatePicker.d.ts +3 -0
- package/dist/src/components/Input/DatePicker.js +255 -0
- package/dist/src/components/Input/DatePicker.stories.d.ts +15 -0
- package/dist/src/components/Input/DatePicker.stories.js +253 -0
- package/dist/src/components/Input/Input.stories.d.ts +2 -1
- package/dist/src/components/Input/Input.stories.js +7 -2
- package/dist/src/components/Input/index.d.ts +90 -17
- package/dist/src/components/Input/index.js +83 -8
- package/dist/src/components/Input/input.d.ts +9 -28
- package/dist/src/components/Input/input.js +8 -30
- package/dist/src/components/Input/type.d.ts +19 -11
- package/dist/src/components/Label/Label.d.ts +1 -1
- package/dist/src/components/Label/Label.js +1 -1
- package/dist/src/components/Pagination/pagination.js +3 -3
- package/dist/src/components/RadioGroup/radio-group.js +1 -1
- package/dist/src/components/Skeleton/skeleton.js +1 -1
- package/dist/src/components/Slider/slider.js +1 -1
- package/dist/src/components/SweetAlert/SweetAlert.js +1 -1
- package/dist/src/components/SweetAlert/SweetAlert.stories.d.ts +1 -1
- package/dist/src/components/Switch/switch.js +1 -1
- package/dist/src/components/Table/Table.js +1 -1
- package/dist/src/components/Tabs/tabs.js +1 -1
- package/dist/src/components/Title/Title.js +1 -1
- package/dist/src/components/Title/Title.stories.js +1 -1
- package/dist/src/components/Title/Title.test.js +1 -1
- package/dist/src/components/ToolTip/Tooltip.js +1 -1
- package/dist/src/components/Typography/Body/Body.stories.js +2 -2
- package/dist/src/components/Typography/Body/body.js +1 -1
- package/dist/src/components/Typography/Caption/Caption.stories.js +2 -2
- package/dist/src/components/Typography/Caption/caption.js +1 -1
- package/dist/src/components/Typography/Display/Display.stories.js +2 -2
- package/dist/src/components/Typography/Display/display.js +1 -1
- package/dist/src/components/Typography/Heading/Heading.stories.d.ts +24 -0
- package/dist/src/components/Typography/Heading/Heading.stories.js +20 -2
- package/dist/src/components/Typography/Heading/heading.js +1 -1
- package/dist/src/components/Typography/Heading/heading.module.css +120 -24
- package/dist/src/components/VerticalTabs/VerticalTabs.js +1 -1
- package/dist/src/components/ui/command.d.ts +1 -1
- package/dist/src/components/ui/command.js +2 -2
- package/dist/src/components/ui/dialog.js +1 -1
- package/dist/src/components/ui/popover.js +1 -1
- package/dist/src/components/ui/tooltip.js +1 -1
- package/dist/src/components/ui/typography.js +1 -1
- package/dist/styles/global.css +48 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
export { default as LUIcon } from "
|
|
2
|
-
export { default as Card } from "
|
|
3
|
-
export { default as LuImage } from "
|
|
4
|
-
export { default as Title } from "
|
|
5
|
-
export { IconButton } from "
|
|
6
|
-
export { default as ColorPicker } from "
|
|
7
|
-
export { Input } from "
|
|
8
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "
|
|
9
|
-
export { default as ImageUploader } from "
|
|
10
|
-
export { Checkbox } from "
|
|
11
|
-
export { Switch } from "
|
|
12
|
-
export { Typography } from "
|
|
13
|
-
export { Heading } from "
|
|
14
|
-
export { Body } from "
|
|
15
|
-
export { Display } from "
|
|
16
|
-
export { Caption } from "
|
|
17
|
-
export { default as Tooltip } from "
|
|
18
|
-
export { Button } from "
|
|
19
|
-
export { Label } from "
|
|
20
|
-
export { Slider } from "
|
|
21
|
-
export { RadioGroup, RadioGroupItem, } from "
|
|
22
|
-
export { AppIcon } from "
|
|
23
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent, } from "
|
|
24
|
-
export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "
|
|
25
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "
|
|
26
|
-
export { Avatar, AvatarImage, AvatarFallback, } from "
|
|
27
|
-
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, } from "
|
|
28
|
-
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "
|
|
29
|
-
export { Badge } from "
|
|
30
|
-
export { default as Combobox } from "
|
|
31
|
-
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "
|
|
32
|
-
export { Skeleton } from "
|
|
33
|
-
export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "
|
|
1
|
+
export { default as LUIcon } from "@/components/Icons/LUIcon";
|
|
2
|
+
export { default as Card } from "@/components/Card/card";
|
|
3
|
+
export { default as LuImage } from "@/components/Images/LuImage";
|
|
4
|
+
export { default as Title } from "@/components/Title/Title";
|
|
5
|
+
export { IconButton } from "@/components/Button/IconButton/IconButton";
|
|
6
|
+
export { default as ColorPicker } from "@/components/ColorPicker/ColorPicker";
|
|
7
|
+
export { Input } from "@/components/Input/input";
|
|
8
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "@/components/Accordion/accordion";
|
|
9
|
+
export { default as ImageUploader } from "@/components/ImageUploader/imageUploader";
|
|
10
|
+
export { Checkbox } from "@/components/Checkbox/checkbox";
|
|
11
|
+
export { Switch } from "@/components/Switch/switch";
|
|
12
|
+
export { Typography } from "@/ui/typography";
|
|
13
|
+
export { Heading } from "@/components/Typography/Heading/heading";
|
|
14
|
+
export { Body } from "@/components/Typography/Body/body";
|
|
15
|
+
export { Display } from "@/components/Typography/Display/display";
|
|
16
|
+
export { Caption } from "@/components/Typography/Caption/caption";
|
|
17
|
+
export { default as Tooltip } from "@/components/ToolTip/Tooltip";
|
|
18
|
+
export { Button } from "@/components/Button/Button/Button";
|
|
19
|
+
export { Label } from "@/components/Label/Label";
|
|
20
|
+
export { Slider } from "@/components/Slider/slider";
|
|
21
|
+
export { RadioGroup, RadioGroupItem, } from "@/components/RadioGroup/radio-group";
|
|
22
|
+
export { AppIcon } from "@/components/AppIcons";
|
|
23
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, } from "@/components/Tabs/tabs";
|
|
24
|
+
export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "@/components/Dropdown/select";
|
|
25
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "@/components/Alerts/AlertDialog";
|
|
26
|
+
export { Avatar, AvatarImage, AvatarFallback, } from "@/components/Avatar/Avatar/Avatar";
|
|
27
|
+
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, } from "@/components/Table/Table";
|
|
28
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "@/components/Dropdown/DropdownMenu/DropdownMenu";
|
|
29
|
+
export { Badge } from "@/components/Badge/Badge";
|
|
30
|
+
export { default as Combobox } from "@/components/Dropdown/Combobox/Combobox";
|
|
31
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "@/components/Pagination/pagination";
|
|
32
|
+
export { Skeleton } from "@/components/Skeleton/skeleton";
|
|
33
|
+
export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "@/components/VerticalTabs/VerticalTabs";
|
|
34
|
+
export { DatePicker } from "@/components/Input/DatePicker";
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
export { default as LUIcon } from "
|
|
2
|
-
export { default as Card } from "
|
|
3
|
-
export { default as LuImage } from "
|
|
4
|
-
export { default as Title } from "
|
|
5
|
-
export { IconButton } from "
|
|
6
|
-
export { default as ColorPicker } from "
|
|
7
|
-
export { Input } from "
|
|
8
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "
|
|
9
|
-
export { default as ImageUploader } from "
|
|
10
|
-
export { Checkbox } from "
|
|
11
|
-
export { Switch } from "
|
|
12
|
-
export { Typography } from "
|
|
13
|
-
export { Heading } from "
|
|
14
|
-
export { Body } from "
|
|
15
|
-
export { Display } from "
|
|
16
|
-
export { Caption } from "
|
|
17
|
-
export { default as Tooltip } from "
|
|
18
|
-
export { Button } from "
|
|
19
|
-
export { Label } from "
|
|
20
|
-
export { Slider } from "
|
|
21
|
-
export { RadioGroup, RadioGroupItem, } from "
|
|
22
|
-
export { AppIcon } from "
|
|
23
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent, } from "
|
|
24
|
-
export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "
|
|
25
|
-
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "
|
|
26
|
-
export { Avatar, AvatarImage, AvatarFallback, } from "
|
|
27
|
-
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, } from "
|
|
28
|
-
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "
|
|
29
|
-
export { Badge } from "
|
|
30
|
-
export { default as Combobox } from "
|
|
31
|
-
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "
|
|
32
|
-
export { Skeleton } from "
|
|
33
|
-
export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "
|
|
1
|
+
export { default as LUIcon } from "@/components/Icons/LUIcon";
|
|
2
|
+
export { default as Card } from "@/components/Card/card";
|
|
3
|
+
export { default as LuImage } from "@/components/Images/LuImage";
|
|
4
|
+
export { default as Title } from "@/components/Title/Title";
|
|
5
|
+
export { IconButton } from "@/components/Button/IconButton/IconButton";
|
|
6
|
+
export { default as ColorPicker } from "@/components/ColorPicker/ColorPicker";
|
|
7
|
+
export { Input } from "@/components/Input/input";
|
|
8
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "@/components/Accordion/accordion";
|
|
9
|
+
export { default as ImageUploader } from "@/components/ImageUploader/imageUploader";
|
|
10
|
+
export { Checkbox } from "@/components/Checkbox/checkbox";
|
|
11
|
+
export { Switch } from "@/components/Switch/switch";
|
|
12
|
+
export { Typography } from "@/ui/typography";
|
|
13
|
+
export { Heading } from "@/components/Typography/Heading/heading";
|
|
14
|
+
export { Body } from "@/components/Typography/Body/body";
|
|
15
|
+
export { Display } from "@/components/Typography/Display/display";
|
|
16
|
+
export { Caption } from "@/components/Typography/Caption/caption";
|
|
17
|
+
export { default as Tooltip } from "@/components/ToolTip/Tooltip";
|
|
18
|
+
export { Button } from "@/components/Button/Button/Button";
|
|
19
|
+
export { Label } from "@/components/Label/Label";
|
|
20
|
+
export { Slider } from "@/components/Slider/slider";
|
|
21
|
+
export { RadioGroup, RadioGroupItem, } from "@/components/RadioGroup/radio-group";
|
|
22
|
+
export { AppIcon } from "@/components/AppIcons";
|
|
23
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, } from "@/components/Tabs/tabs";
|
|
24
|
+
export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "@/components/Dropdown/select";
|
|
25
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "@/components/Alerts/AlertDialog";
|
|
26
|
+
export { Avatar, AvatarImage, AvatarFallback, } from "@/components/Avatar/Avatar/Avatar";
|
|
27
|
+
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, } from "@/components/Table/Table";
|
|
28
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "@/components/Dropdown/DropdownMenu/DropdownMenu";
|
|
29
|
+
export { Badge } from "@/components/Badge/Badge";
|
|
30
|
+
export { default as Combobox } from "@/components/Dropdown/Combobox/Combobox";
|
|
31
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "@/components/Pagination/pagination";
|
|
32
|
+
export { Skeleton } from "@/components/Skeleton/skeleton";
|
|
33
|
+
export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "@/components/VerticalTabs/VerticalTabs";
|
|
34
|
+
export { DatePicker } from "@/components/Input/DatePicker";
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "
|
|
13
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/Accordion/accordion";
|
|
14
14
|
import ColorPicker from "../ColorPicker/ColorPicker";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Accordion",
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import * as React from "react";
|
|
25
25
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
26
|
-
import { cn } from "
|
|
26
|
+
import { cn } from "@/lib/utils";
|
|
27
27
|
import LUIcon from "../Icons/LUIcon";
|
|
28
28
|
function Accordion(_a) {
|
|
29
29
|
var props = __rest(_a, []);
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import { createContext, useContext, Children, isValidElement, cloneElement, } from "react";
|
|
25
25
|
import { cva } from "class-variance-authority";
|
|
26
|
-
import { cn } from "
|
|
26
|
+
import { cn } from "@/lib/utils";
|
|
27
27
|
import LUIcon from "../../Icons/LUIcon";
|
|
28
28
|
import { Button } from "../../Button/Button/Button";
|
|
29
29
|
var alertVariants = cva("grid w-full gap-4 rounded-lg border-l-4 p-4", {
|
|
@@ -24,7 +24,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
24
24
|
import * as React from "react";
|
|
25
25
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
26
26
|
import { cva } from "class-variance-authority";
|
|
27
|
-
import { cn } from "
|
|
27
|
+
import { cn } from "@/lib/utils";
|
|
28
28
|
import { Button } from "../../Button/Button/Button";
|
|
29
29
|
import LUIcon from "../../Icons/LUIcon";
|
|
30
30
|
// Create context for AlertDialog color
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import * as React from "react";
|
|
25
25
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
26
|
-
import { cn } from "
|
|
26
|
+
import { cn } from "@/lib/utils";
|
|
27
27
|
import { avatarSize, avatarShape, statusIndicatorSize, statusIndicatorOffset, roundedStatusIndicatorOffset, } from ".";
|
|
28
28
|
import { StatusIndicator } from "../StatusIndicator/StatusIndicator";
|
|
29
29
|
var AvatarContext = React.createContext({ size: "md", shape: "rounded" });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AvatarProps } from "
|
|
1
|
+
import { AvatarProps } from "@/components/Avatar/AvatarGroup/type";
|
|
2
2
|
export declare const AvatarGroup: ({ images }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "
|
|
2
|
+
import { cn } from "@/lib/utils";
|
|
3
3
|
import { statusIndicatorOuterSize, awayIndicatorInnerSize, statusIndicatorBorder, } from ".";
|
|
4
4
|
export var StatusIndicator = function (_a) {
|
|
5
5
|
var status = _a.status, _b = _a.size, size = _b === void 0 ? "md" : _b, className = _a.className;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
import { badgeStyles } from ".";
|
|
4
|
-
import { iconList } from "
|
|
4
|
+
import { iconList } from "@/utils/iconList";
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
6
|
color?: "blue" | "light-blue" | "green" | "light-green" | "yellow" | "light-yellow" | "red" | "light-red" | "indigo" | "light-indigo" | "gray" | "light-gray" | null | undefined;
|
|
7
7
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -24,7 +24,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
24
24
|
import LUIcon from "../Icons/LUIcon";
|
|
25
25
|
import { Slot } from "@radix-ui/react-slot";
|
|
26
26
|
import { cva } from "class-variance-authority";
|
|
27
|
-
import { cn } from "
|
|
27
|
+
import { cn } from "@/lib/utils";
|
|
28
28
|
import { badgeStyles, badgeLeftIconSize, badgeRightIconSize } from ".";
|
|
29
29
|
var badgeVariants = cva("inline-flex items-center justify-center font-normal w-fit whitespace-nowrap shrink-0 gap-2 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
30
30
|
variants: {
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { StoryObj } from "@storybook/react";
|
|
3
3
|
import { Badge } from "./Badge";
|
|
4
4
|
import { badgeStyles } from ".";
|
|
5
|
-
import { iconList } from "
|
|
5
|
+
import { iconList } from "@/utils/iconList";
|
|
6
6
|
declare const meta: {
|
|
7
7
|
title: string;
|
|
8
8
|
component: typeof Badge;
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Badge } from "./Badge";
|
|
14
14
|
import { badgeStyles } from ".";
|
|
15
|
-
import { iconList } from "
|
|
15
|
+
import { iconList } from "@/utils/iconList";
|
|
16
16
|
var meta = {
|
|
17
17
|
title: "Components/Badge",
|
|
18
18
|
component: Badge,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import { iconList } from "
|
|
3
|
+
import { iconList } from "@/utils/iconList";
|
|
4
4
|
export type ButtonProps = React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
startIcon?: keyof typeof iconList;
|
|
@@ -32,7 +32,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
32
32
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
33
33
|
import { Slot } from "@radix-ui/react-slot";
|
|
34
34
|
import { cva } from "class-variance-authority";
|
|
35
|
-
import { cn } from "
|
|
35
|
+
import { cn } from "@/lib/utils";
|
|
36
36
|
import LUIcon from "../../Icons/LUIcon";
|
|
37
37
|
import { buttonStyles } from "..";
|
|
38
38
|
export var variant = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { render, screen } from "@testing-library/react";
|
|
3
|
-
import { Dummy_label } from "
|
|
3
|
+
import { Dummy_label } from "@/utils/constants";
|
|
4
4
|
import { Button } from "./Button";
|
|
5
5
|
describe("Button Component", function () {
|
|
6
6
|
it("renders default button component", function () {
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { Slot } from "@radix-ui/react-slot";
|
|
25
25
|
import { cva } from "class-variance-authority";
|
|
26
|
-
import { cn } from "
|
|
26
|
+
import { cn } from "@/lib/utils";
|
|
27
27
|
import LUIcon from "../../Icons/LUIcon";
|
|
28
28
|
import { buttonStyles } from "..";
|
|
29
29
|
export var variant = {
|
|
@@ -10,7 +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 { iconList } from "
|
|
13
|
+
import { iconList } from "@/utils/iconList";
|
|
14
14
|
import { IconButton, variant } from "./IconButton";
|
|
15
15
|
import { buttonStyles } from "..";
|
|
16
16
|
var meta = {
|
|
@@ -10,8 +10,8 @@ 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 { Dummy_Image, Dummy_Para, Dummy_Subtitle, Dummy_Title, } from "
|
|
14
|
-
import { OrientationEnum } from "
|
|
13
|
+
import { Dummy_Image, Dummy_Para, Dummy_Subtitle, Dummy_Title, } from "@/utils/constants";
|
|
14
|
+
import { OrientationEnum } from "@/utils/enums";
|
|
15
15
|
import Card from "../card";
|
|
16
16
|
var meta = {
|
|
17
17
|
title: "Components/Cards/MultiNews",
|
|
@@ -74,7 +74,7 @@ var baseCardArgs = {
|
|
|
74
74
|
short_description: Dummy_Subtitle,
|
|
75
75
|
},
|
|
76
76
|
image: Dummy_Image,
|
|
77
|
-
onButtonClick: function () { return
|
|
77
|
+
onButtonClick: function () { return alert("Button clicked"); },
|
|
78
78
|
btnLabel: "View More",
|
|
79
79
|
editor: {
|
|
80
80
|
card: "",
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import { CardInterface } from "../type";
|
|
2
|
-
export
|
|
2
|
+
export interface PostByCategoryProps extends Omit<CardInterface, "href" | "type"> {
|
|
3
|
+
onButtonClick?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const PostByCategory: ({ item, image, btnLabel, onButtonClick, editor, mediaPosition, orientation, }: PostByCategoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import LuImage from "../../Images/LuImage";
|
|
3
|
-
import Link from "next/link";
|
|
4
3
|
import { Heading } from "../../Typography/Heading/heading";
|
|
5
4
|
import { Body } from "../../Typography/Body/body";
|
|
6
5
|
import { Button } from "../../Button/Button/Button";
|
|
7
6
|
export var PostByCategory = function (_a) {
|
|
8
|
-
var item = _a.item, image = _a.image,
|
|
7
|
+
var item = _a.item, image = _a.image, btnLabel = _a.btnLabel, onButtonClick = _a.onButtonClick, editor = _a.editor, mediaPosition = _a.mediaPosition, orientation = _a.orientation;
|
|
9
8
|
// Normalize mediaPosition based on orientation
|
|
10
9
|
var safeMediaPosition = orientation === "horizontal"
|
|
11
10
|
? mediaPosition === "left" || mediaPosition === "right"
|
|
@@ -27,7 +26,7 @@ export var PostByCategory = function (_a) {
|
|
|
27
26
|
// Common button component
|
|
28
27
|
var CardButton = function (_a) {
|
|
29
28
|
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
30
|
-
return (_jsx(
|
|
29
|
+
return (_jsx(Button, { endIcon: "angle-right", size: "sm", className: "w-fit ".concat(className, " ").concat(editor === null || editor === void 0 ? void 0 : editor.cardBtn), onClick: onButtonClick, children: btnLabel }));
|
|
31
30
|
};
|
|
32
31
|
// Horizontal layout
|
|
33
32
|
if (orientation === "horizontal") {
|
|
@@ -10,8 +10,8 @@ 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 { Dummy_Image, Dummy_Para, Dummy_Subtitle, Dummy_Title,
|
|
14
|
-
import { OrientationEnum } from "
|
|
13
|
+
import { Dummy_Image, Dummy_Para, Dummy_Subtitle, Dummy_Title, } from "@/utils/constants";
|
|
14
|
+
import { OrientationEnum } from "@/utils/enums";
|
|
15
15
|
import Card from "../card";
|
|
16
16
|
var meta = {
|
|
17
17
|
title: "Components/Cards/PostByCategory",
|
|
@@ -75,7 +75,7 @@ var baseCardArgs = {
|
|
|
75
75
|
short_description: Dummy_Subtitle,
|
|
76
76
|
},
|
|
77
77
|
image: Dummy_Image,
|
|
78
|
-
|
|
78
|
+
onButtonClick: function () { return alert("Button clicked"); },
|
|
79
79
|
btnLabel: "View More",
|
|
80
80
|
editor: {
|
|
81
81
|
card: "",
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import Card from "../card";
|
|
13
|
-
import { Dummy_Image, Dummy_Para, Dummy_Subtitle, Dummy_Title, Dummy_Url, } from "
|
|
13
|
+
import { Dummy_Image, Dummy_Para, Dummy_Subtitle, Dummy_Title, Dummy_Url, } from "@/utils/constants";
|
|
14
14
|
var meta = {
|
|
15
15
|
title: "Components/Cards/SinglePost",
|
|
16
16
|
component: Card,
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import type { MultiNewsProps } from "./MultipleNews/MultiNews";
|
|
2
2
|
import type { CardInterface } from "./type";
|
|
3
|
+
import { PostByCategoryProps } from "./PostByCategory/PostByCategory";
|
|
3
4
|
import { PhotoGalleryProps } from "./photoGallery/PhotoGallery";
|
|
4
5
|
import { PhotoAlbumProps } from "./photoAlbum/PhotoAlbum";
|
|
5
|
-
type CardTypesWithCardInterface = "
|
|
6
|
+
type CardTypesWithCardInterface = "contactProfile" | "singlePost";
|
|
6
7
|
export type CardProps = ({
|
|
7
8
|
type: "multipleNews";
|
|
8
9
|
} & MultiNewsProps) | ({
|
|
9
10
|
type: "photoGallery";
|
|
10
11
|
} & PhotoGalleryProps) | ({
|
|
11
12
|
type: "photoAlbum";
|
|
12
|
-
} & PhotoAlbumProps) | {
|
|
13
|
+
} & PhotoAlbumProps) | ({
|
|
14
|
+
type: "postByCategory";
|
|
15
|
+
} & PostByCategoryProps) | {
|
|
13
16
|
[K in CardTypesWithCardInterface]: {
|
|
14
17
|
type: K;
|
|
15
18
|
} & CardInterface;
|
|
@@ -10,7 +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 { PostByCategory } from "./PostByCategory/PostByCategory";
|
|
13
|
+
import { PostByCategory, } from "./PostByCategory/PostByCategory";
|
|
14
14
|
import { MultipleNewsCard } from "./MultipleNews/MultiNews";
|
|
15
15
|
import { SinglePost } from "./SinglePost/SinglePost";
|
|
16
16
|
import { ContactProfile } from "./contactProfile/ContactProfile";
|
|
@@ -10,8 +10,8 @@ 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 { Dummy_Image, Dummy_Para, Dummy_Title, Dummy_Url, } from "
|
|
14
|
-
import { OrientationEnum } from "
|
|
13
|
+
import { Dummy_Image, Dummy_Para, Dummy_Title, Dummy_Url, } from "@/utils/constants";
|
|
14
|
+
import { OrientationEnum } from "@/utils/enums";
|
|
15
15
|
import Card from "../card";
|
|
16
16
|
var meta = {
|
|
17
17
|
title: "Components/Cards/ContactProfile",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import LuImage from "
|
|
3
|
-
import { Heading } from "
|
|
4
|
-
import LUIcon from "
|
|
2
|
+
import LuImage from "@/components/Images/LuImage";
|
|
3
|
+
import { Heading } from "@/components/Typography/Heading/heading";
|
|
4
|
+
import LUIcon from "@/components/Icons/LUIcon";
|
|
5
5
|
import { AvatarGroup } from "../../Avatar/AvatarGroup/AvatarGroup";
|
|
6
6
|
export var PhotoAlbum = function (_a) {
|
|
7
7
|
var image = _a.image, item = _a.item, _b = _a.altText, altText = _b === void 0 ? "Photo Album" : _b, editor = _a.editor, _c = _a.theme, theme = _c === void 0 ? "theme1" : _c;
|
|
@@ -10,7 +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 { Dummy_Image, Dummy_Title } from "
|
|
13
|
+
import { Dummy_Image, Dummy_Title } from "@/utils/constants";
|
|
14
14
|
import Card from "../card";
|
|
15
15
|
export var Themes = ["theme1", "theme2"];
|
|
16
16
|
export default {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import LuImage from "
|
|
3
|
-
import { Heading } from "
|
|
4
|
-
import LUIcon from "
|
|
2
|
+
import LuImage from "@/components/Images/LuImage";
|
|
3
|
+
import { Heading } from "@/components/Typography/Heading/heading";
|
|
4
|
+
import LUIcon from "@/components/Icons/LUIcon";
|
|
5
5
|
export var PhotoGallery = function (_a) {
|
|
6
6
|
var image = _a.image, item = _a.item, _b = _a.altText, altText = _b === void 0 ? "Photo Gallery" : _b, editor = _a.editor;
|
|
7
7
|
return (_jsxs("div", { className: "group relative max-w-md cursor-pointer ".concat(editor === null || editor === void 0 ? void 0 : editor.card, " ").concat(editor === null || editor === void 0 ? void 0 : editor.cardImage), children: [_jsx(LuImage, { src: image, width: 448, height: 448, alt: altText, className: "aspect-square object-cover transition-transform" }), _jsx("div", { className: "absolute ".concat(editor === null || editor === void 0 ? void 0 : editor.cardOverlay, " inset-0 bg-linear-to-t from-black to-transparent") }), _jsx(Heading, { variant: "h4-700", className: "absolute line-clamp-1 text-white bottom-4 uppercase !px-5 ".concat(editor === null || editor === void 0 ? void 0 : editor.cardText), children: item === null || item === void 0 ? void 0 : item.title }), _jsx("div", { className: "absolute inset-0 flex items-center justify-center bg-black/30 opacity-0 group-hover:!opacity-100 transition-opacity duration-300 ease-out", children: _jsx(LUIcon, { icon: "magnifying-glass", size: "4xl", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardText, " text-gray-100") }) })] }));
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
// import { CardInterface } from "../type";
|
|
14
|
-
import { Dummy_Image, Dummy_Title } from "
|
|
14
|
+
import { Dummy_Image, Dummy_Title } from "@/utils/constants";
|
|
15
15
|
import Card from "../card";
|
|
16
16
|
export default {
|
|
17
17
|
title: "Components/Cards/PhotoGallery",
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
25
25
|
import { CheckIcon } from "lucide-react";
|
|
26
|
-
import { cn } from "
|
|
26
|
+
import { cn } from "@/lib/utils";
|
|
27
27
|
import { cva } from "class-variance-authority";
|
|
28
28
|
export var checkboxSize = {
|
|
29
29
|
sm: "size-3.5", // ~14px
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import ColorPicker from "./ColorPicker";
|
|
14
14
|
import { Label } from "../Label/Label";
|
|
15
|
-
import { inputVariantConfig } from "../Input
|
|
15
|
+
import { inputVariantConfig } from "../Input";
|
|
16
16
|
export default {
|
|
17
17
|
title: "Components/ColorPicker",
|
|
18
18
|
component: ColorPicker,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { colors } from "
|
|
2
|
+
import { colors } from "@/utils/colors";
|
|
3
3
|
export var Color = function (_a) {
|
|
4
4
|
var _b = _a.color, color = _b === void 0 ? "black" : _b;
|
|
5
5
|
return _jsx("div", { style: { color: colors[color] || colors.black }, children: color });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta } from "@storybook/react";
|
|
2
|
-
import { colors } from "
|
|
2
|
+
import { colors } from "@/utils/colors";
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const _Color: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, {
|
|
@@ -10,7 +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 { colors } from "
|
|
13
|
+
import { colors } from "@/utils/colors";
|
|
14
14
|
import { Color } from "./color";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Color",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { render, screen } from "@testing-library/react";
|
|
3
|
-
import { colors } from "
|
|
3
|
+
import { colors } from "@/utils/colors";
|
|
4
4
|
import { Color } from "./color";
|
|
5
5
|
describe("TextColor Component", function () {
|
|
6
6
|
it("renders with default color (black)", function () {
|