linkedunion-design-kit 1.10.2 → 1.10.4-beta.1
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 +36 -34
- package/dist/index.js +36 -34
- 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 +2 -2
- package/dist/src/components/Button/Button/Button.js +1 -1
- package/dist/src/components/Button/Button/Button.module.css +1 -1
- package/dist/src/components/Button/Button/Button.stories.d.ts +2 -2
- package/dist/src/components/Button/Button/Button.test.js +1 -1
- package/dist/src/components/Button/IconButton/IconButton.d.ts +2 -2
- package/dist/src/components/Button/IconButton/IconButton.js +1 -1
- package/dist/src/components/Button/IconButton/IconButton.stories.d.ts +3 -3
- package/dist/src/components/Button/IconButton/IconButton.stories.js +1 -1
- package/dist/src/components/Button/index.d.ts +1 -0
- package/dist/src/components/Button/index.js +2 -1
- package/dist/src/components/Card/MultipleNews/MultiNews.stories.js +2 -2
- package/dist/src/components/Card/PostByCategory/PostByCategory.stories.js +2 -2
- package/dist/src/components/Card/SinglePost/SinglePost.stories.js +1 -1
- package/dist/src/components/Card/contactProfile/ContactProfile.js +4 -3
- package/dist/src/components/Card/contactProfile/ContactProfile.stories.d.ts +1 -0
- package/dist/src/components/Card/contactProfile/ContactProfile.stories.js +5 -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/Card/type.d.ts +3 -0
- 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/DatePicker/DatePicker.d.ts +2 -0
- package/dist/src/components/DatePicker/DatePicker.js +64 -0
- package/dist/src/components/DatePicker/DatePicker.stories.d.ts +14 -0
- package/dist/src/components/DatePicker/DatePicker.stories.js +171 -0
- package/dist/src/components/DatePicker/index.d.ts +14 -0
- package/dist/src/components/DatePicker/index.js +12 -0
- package/dist/src/components/DatePicker/types.d.ts +19 -0
- 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/{ui → Dropdown/Combobox}/dialog.js +1 -1
- 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/Input.stories.d.ts +1 -2
- package/dist/src/components/Input/Input.stories.js +2 -7
- package/dist/src/components/Input/index.d.ts +17 -90
- package/dist/src/components/Input/index.js +8 -83
- package/dist/src/components/Input/input.d.ts +28 -9
- package/dist/src/components/Input/input.js +30 -8
- package/dist/src/components/Input/type.d.ts +11 -19
- package/dist/src/components/Label/Label.d.ts +1 -1
- package/dist/src/components/Label/Label.js +1 -1
- package/dist/src/components/Modal/Modal.d.ts +31 -0
- package/dist/src/components/Modal/Modal.js +78 -0
- package/dist/src/components/Modal/Modal.stories.d.ts +32 -0
- package/dist/src/components/Modal/Modal.stories.js +44 -0
- package/dist/src/components/Pagination/pagination.js +1 -1
- 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.d.ts +7 -7
- package/dist/src/components/Table/Table.js +194 -29
- package/dist/src/components/Table/Table.stories.d.ts +5 -5
- package/dist/src/components/Table/Table.stories.js +55 -2
- package/dist/src/components/Table/index.d.ts +8 -0
- package/dist/src/components/Table/index.js +7 -0
- package/dist/src/components/Table/types.d.ts +8 -0
- package/dist/src/components/Table/types.js +1 -0
- package/dist/src/components/Tabs/tabs.js +1 -1
- package/dist/src/components/TimePicker/TimePicker.d.ts +2 -0
- package/dist/src/components/TimePicker/TimePicker.js +109 -0
- package/dist/src/components/TimePicker/TimePicker.stories.d.ts +15 -0
- package/dist/src/components/TimePicker/TimePicker.stories.js +169 -0
- package/dist/src/components/TimePicker/index.d.ts +24 -0
- package/dist/src/components/TimePicker/index.js +22 -0
- package/dist/src/components/TimePicker/types.d.ts +15 -0
- package/dist/src/components/TimePicker/types.js +1 -0
- package/dist/src/components/TimePicker/utils.d.ts +1 -0
- package/dist/src/components/TimePicker/utils.js +1 -0
- package/dist/src/components/Title/Title.js +1 -1
- package/dist/src/components/Title/Title.module.css +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.js +1 -1
- package/dist/src/components/Typography/Heading/heading.js +1 -1
- package/dist/src/components/Typography/Heading/heading.module.css +1 -1
- package/dist/src/components/VerticalTabs/VerticalTabs.js +1 -1
- package/dist/src/components/ui/calendar.d.ts +10 -0
- package/dist/src/components/ui/calendar.js +222 -0
- package/dist/src/components/ui/command.d.ts +1 -1
- package/dist/src/components/ui/command.js +2 -2
- 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/src/utils/constants.d.ts +4 -0
- package/dist/src/utils/constants.js +4 -0
- package/dist/src/utils/iconList.d.ts +1 -0
- package/dist/src/utils/iconList.js +1 -0
- package/dist/styles/global.css +556 -49
- package/package.json +3 -2
- 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/build/types/validator.js +0 -12
- package/dist/src/components/Input/DatePicker.d.ts +0 -3
- package/dist/src/components/Input/DatePicker.js +0 -255
- package/dist/src/components/Input/DatePicker.stories.d.ts +0 -15
- package/dist/src/components/Input/DatePicker.stories.js +0 -253
- /package/dist/{build/types/validator.d.ts → src/components/DatePicker/types.js} +0 -0
- /package/dist/src/components/{ui → Dropdown/Combobox}/dialog.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
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 "
|
|
34
|
-
export {
|
|
1
|
+
export { default as LUIcon } from "./src/components/Icons/LUIcon";
|
|
2
|
+
export { default as Card } from "./src/components/Card/card";
|
|
3
|
+
export { default as LuImage } from "./src/components/Images/LuImage";
|
|
4
|
+
export { default as Title } from "./src/components/Title/Title";
|
|
5
|
+
export { IconButton } from "./src/components/Button/IconButton/IconButton";
|
|
6
|
+
export { default as ColorPicker } from "./src/components/ColorPicker/ColorPicker";
|
|
7
|
+
export { Input } from "./src/components/Input/input";
|
|
8
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "./src/components/Accordion/accordion";
|
|
9
|
+
export { default as ImageUploader } from "./src/components/ImageUploader/imageUploader";
|
|
10
|
+
export { Checkbox } from "./src/components/Checkbox/checkbox";
|
|
11
|
+
export { Switch } from "./src/components/Switch/switch";
|
|
12
|
+
export { Typography } from "./src/components/ui/typography";
|
|
13
|
+
export { Heading } from "./src/components/Typography/Heading/heading";
|
|
14
|
+
export { Body } from "./src/components/Typography/Body/body";
|
|
15
|
+
export { Display } from "./src/components/Typography/Display/display";
|
|
16
|
+
export { Caption } from "./src/components/Typography/Caption/caption";
|
|
17
|
+
export { default as Tooltip } from "./src/components/ToolTip/Tooltip";
|
|
18
|
+
export { Button } from "./src/components/Button/Button/Button";
|
|
19
|
+
export { Label } from "./src/components/Label/Label";
|
|
20
|
+
export { Slider } from "./src/components/Slider/slider";
|
|
21
|
+
export { RadioGroup, RadioGroupItem, } from "./src/components/RadioGroup/radio-group";
|
|
22
|
+
export { AppIcon } from "./src/components/AppIcons";
|
|
23
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, } from "./src/components/Tabs/tabs";
|
|
24
|
+
export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "./src/components/Dropdown/select";
|
|
25
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./src/components/Alerts/AlertDialog";
|
|
26
|
+
export { Avatar, AvatarImage, AvatarFallback, } from "./src/components/Avatar/Avatar/Avatar";
|
|
27
|
+
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, TableButton, TableCellPadded, TableFooter, } from "./src/components/Table/Table";
|
|
28
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "./src/components/Dropdown/DropdownMenu/DropdownMenu";
|
|
29
|
+
export { Badge } from "./src/components/Badge/Badge";
|
|
30
|
+
export { default as Combobox } from "./src/components/Dropdown/Combobox/Combobox";
|
|
31
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./src/components/Pagination/pagination";
|
|
32
|
+
export { Skeleton } from "./src/components/Skeleton/skeleton";
|
|
33
|
+
export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "./src/components/VerticalTabs/VerticalTabs";
|
|
34
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, sizes, } from "./src/components/Modal/Modal";
|
|
35
|
+
export { DatePicker } from "./src/components/DatePicker/DatePicker";
|
|
36
|
+
export { TimePicker } from "./src/components/TimePicker/TimePicker";
|
package/dist/index.js
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
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 "
|
|
34
|
-
export {
|
|
1
|
+
export { default as LUIcon } from "./src/components/Icons/LUIcon";
|
|
2
|
+
export { default as Card } from "./src/components/Card/card";
|
|
3
|
+
export { default as LuImage } from "./src/components/Images/LuImage";
|
|
4
|
+
export { default as Title } from "./src/components/Title/Title";
|
|
5
|
+
export { IconButton } from "./src/components/Button/IconButton/IconButton";
|
|
6
|
+
export { default as ColorPicker } from "./src/components/ColorPicker/ColorPicker";
|
|
7
|
+
export { Input } from "./src/components/Input/input";
|
|
8
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "./src/components/Accordion/accordion";
|
|
9
|
+
export { default as ImageUploader } from "./src/components/ImageUploader/imageUploader";
|
|
10
|
+
export { Checkbox } from "./src/components/Checkbox/checkbox";
|
|
11
|
+
export { Switch } from "./src/components/Switch/switch";
|
|
12
|
+
export { Typography } from "./src/components/ui/typography";
|
|
13
|
+
export { Heading } from "./src/components/Typography/Heading/heading";
|
|
14
|
+
export { Body } from "./src/components/Typography/Body/body";
|
|
15
|
+
export { Display } from "./src/components/Typography/Display/display";
|
|
16
|
+
export { Caption } from "./src/components/Typography/Caption/caption";
|
|
17
|
+
export { default as Tooltip } from "./src/components/ToolTip/Tooltip";
|
|
18
|
+
export { Button } from "./src/components/Button/Button/Button";
|
|
19
|
+
export { Label } from "./src/components/Label/Label";
|
|
20
|
+
export { Slider } from "./src/components/Slider/slider";
|
|
21
|
+
export { RadioGroup, RadioGroupItem, } from "./src/components/RadioGroup/radio-group";
|
|
22
|
+
export { AppIcon } from "./src/components/AppIcons";
|
|
23
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, } from "./src/components/Tabs/tabs";
|
|
24
|
+
export { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator, SelectValue, } from "./src/components/Dropdown/select";
|
|
25
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./src/components/Alerts/AlertDialog";
|
|
26
|
+
export { Avatar, AvatarImage, AvatarFallback, } from "./src/components/Avatar/Avatar/Avatar";
|
|
27
|
+
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell, TableCaption, TableButton, TableCellPadded, TableFooter, } from "./src/components/Table/Table";
|
|
28
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSubTrigger, DropdownMenuSub, DropdownMenuSubContent, } from "./src/components/Dropdown/DropdownMenu/DropdownMenu";
|
|
29
|
+
export { Badge } from "./src/components/Badge/Badge";
|
|
30
|
+
export { default as Combobox } from "./src/components/Dropdown/Combobox/Combobox";
|
|
31
|
+
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, } from "./src/components/Pagination/pagination";
|
|
32
|
+
export { Skeleton } from "./src/components/Skeleton/skeleton";
|
|
33
|
+
export { Tabs as VerticalTabs, TabsContent as VerticalTabsContent, TabsList as VerticalTabsList, tabSizes as verticalTabsSize, TabsTrigger as VerticalTabsTrigger, TabsHeading as VerticalTabsHeading, } from "./src/components/VerticalTabs/VerticalTabs";
|
|
34
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogClose, sizes, } from "./src/components/Modal/Modal";
|
|
35
|
+
export { DatePicker } from "./src/components/DatePicker/DatePicker";
|
|
36
|
+
export { TimePicker } from "./src/components/TimePicker/TimePicker";
|
|
@@ -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;
|
|
@@ -16,7 +16,7 @@ export declare const variant: {
|
|
|
16
16
|
declare const buttonVariants: (props?: ({
|
|
17
17
|
color?: "blue" | "light-blue" | "green" | "light-green" | "yellow" | "light-yellow" | "red" | "light-red" | "indigo" | "light-indigo" | "gray" | "light-gray" | "disabled" | null | undefined;
|
|
18
18
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
19
|
-
shape?: "rounded-sm" | "rounded-full" | null | undefined;
|
|
19
|
+
shape?: "rounded-sm" | "rounded-full" | "rounded-none" | null | undefined;
|
|
20
20
|
variant?: "link" | "fill" | "outline" | "ghost" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
declare function Button({ className, color, size, shape, variant, asChild, startIcon, endIcon, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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 = {
|
|
@@ -393,7 +393,7 @@ declare const meta: {
|
|
|
393
393
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
394
394
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
395
395
|
variant?: "fill" | "link" | "outline" | "ghost" | undefined;
|
|
396
|
-
shape?: "rounded-sm" | "rounded-full" | null | undefined;
|
|
396
|
+
shape?: "rounded-sm" | "rounded-full" | "rounded-none" | null | undefined;
|
|
397
397
|
asChild?: boolean | undefined;
|
|
398
398
|
startIcon?: keyof typeof import("../../../utils/iconList").iconList | undefined;
|
|
399
399
|
endIcon?: keyof typeof import("../../../utils/iconList").iconList | undefined;
|
|
@@ -693,7 +693,7 @@ declare const meta: {
|
|
|
693
693
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
694
694
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
695
695
|
variant?: "fill" | "link" | "outline" | "ghost" | undefined;
|
|
696
|
-
shape?: "rounded-sm" | "rounded-full" | null | undefined;
|
|
696
|
+
shape?: "rounded-sm" | "rounded-full" | "rounded-none" | null | undefined;
|
|
697
697
|
asChild?: boolean | undefined;
|
|
698
698
|
startIcon?: keyof typeof import("../../../utils/iconList").iconList | undefined;
|
|
699
699
|
endIcon?: keyof typeof import("../../../utils/iconList").iconList | undefined;
|
|
@@ -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 () {
|
|
@@ -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 declare const variant: {
|
|
5
5
|
fill: string;
|
|
6
6
|
outline: string;
|
|
@@ -9,7 +9,7 @@ export declare const variant: {
|
|
|
9
9
|
declare const buttonVariants: (props?: ({
|
|
10
10
|
color?: "blue" | "light-blue" | "green" | "light-green" | "yellow" | "light-yellow" | "red" | "light-red" | "indigo" | "light-indigo" | "gray" | "light-gray" | "disabled" | null | undefined;
|
|
11
11
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
12
|
-
shape?: "rounded-sm" | "rounded-full" | null | undefined;
|
|
12
|
+
shape?: "rounded-sm" | "rounded-full" | "rounded-none" | null | undefined;
|
|
13
13
|
variant?: "fill" | "outline" | "ghost" | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
declare function IconButton({ className, color, size, shape, variant, asChild, icon, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -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 = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoryObj } from "@storybook/react";
|
|
2
|
-
import { iconList } from "
|
|
2
|
+
import { iconList } from "../../../utils/iconList";
|
|
3
3
|
import { IconButton } from "./IconButton";
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
@@ -404,7 +404,7 @@ declare const meta: {
|
|
|
404
404
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
405
405
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
406
406
|
variant?: "fill" | "outline" | "ghost" | undefined;
|
|
407
|
-
shape?: "rounded-sm" | "rounded-full" | null | undefined;
|
|
407
|
+
shape?: "rounded-sm" | "rounded-full" | "rounded-none" | null | undefined;
|
|
408
408
|
asChild?: boolean | undefined;
|
|
409
409
|
icon?: keyof typeof iconList | undefined;
|
|
410
410
|
}>, context: import("@storybook/core/csf").StoryContext<import("@storybook/react").ReactRenderer, {
|
|
@@ -703,7 +703,7 @@ declare const meta: {
|
|
|
703
703
|
onTransitionStartCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
704
704
|
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
705
705
|
variant?: "fill" | "outline" | "ghost" | undefined;
|
|
706
|
-
shape?: "rounded-sm" | "rounded-full" | null | undefined;
|
|
706
|
+
shape?: "rounded-sm" | "rounded-full" | "rounded-none" | null | undefined;
|
|
707
707
|
asChild?: boolean | undefined;
|
|
708
708
|
icon?: keyof typeof iconList | undefined;
|
|
709
709
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
@@ -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 = {
|
|
@@ -14,7 +14,7 @@ export var buttonStyles = {
|
|
|
14
14
|
"light-indigo": "bg-indigo-100 text-indigo-600 hover:bg-indigo-700 hover:text-indigo-50 active:bg-indigo-800 active:text-indigo-50",
|
|
15
15
|
gray: "bg-gray-900 text-gray-50 hover:bg-gray-100 hover:text-gray-950 active:bg-gray-300 active:text-gray-950",
|
|
16
16
|
"light-gray": "bg-gray-50 text-gray-950 hover:bg-gray-100 active:bg-gray-300",
|
|
17
|
-
disabled: "bg-gray-100 text-gray-300",
|
|
17
|
+
disabled: "bg-gray-100 text-gray-300 cursor-not-allowed",
|
|
18
18
|
},
|
|
19
19
|
size: {
|
|
20
20
|
xl: "h-13 !py-3.5 !px-6 !text-base !font-normal !leading-normal",
|
|
@@ -29,6 +29,7 @@ export var buttonStyles = {
|
|
|
29
29
|
sm: "size-9 !p-2.5",
|
|
30
30
|
},
|
|
31
31
|
shape: {
|
|
32
|
+
"rounded-none": styles["rounded-none"],
|
|
32
33
|
"rounded-sm": styles["rounded-sm"],
|
|
33
34
|
"rounded-full": styles["rounded-full"],
|
|
34
35
|
},
|
|
@@ -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",
|
|
@@ -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/PostByCategory",
|
|
@@ -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,
|
|
@@ -4,6 +4,7 @@ import LuImage from "../../Images/LuImage";
|
|
|
4
4
|
import { Heading } from "../../Typography/Heading/heading";
|
|
5
5
|
import { Body } from "../../Typography/Body/body";
|
|
6
6
|
import { Button } from "../../Button/Button/Button";
|
|
7
|
+
import LUIcon from "../../../components/Icons/LUIcon";
|
|
7
8
|
export var ContactProfile = function (_a) {
|
|
8
9
|
var item = _a.item, image = _a.image, href = _a.href, btnLabel = _a.btnLabel, editor = _a.editor, mediaPosition = _a.mediaPosition, orientation = _a.orientation;
|
|
9
10
|
// Normalize mediaPosition based on orientation
|
|
@@ -22,16 +23,16 @@ export var ContactProfile = function (_a) {
|
|
|
22
23
|
// Common content section component
|
|
23
24
|
var CardContent = function (_a) {
|
|
24
25
|
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-600", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardTitle, " capitalize
|
|
26
|
+
return (_jsxs("div", { className: "flex flex-col !gap-1 ".concat(className, " min-w-0"), children: [(item === null || item === void 0 ? void 0 : item.designation) && (_jsx(Body, { variant: "body-md", className: "text-gray-600 capitalize truncate min-w-0", children: item === null || item === void 0 ? void 0 : item.designation })), _jsx(Heading, { variant: "h5-600", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardTitle, " capitalize truncate min-w-0"), children: item === null || item === void 0 ? void 0 : item.title }), _jsx(Body, { variant: "body-md", className: " ".concat(orientation === "horizontal" ? "line-clamp-1" : "line-clamp-2", " ").concat(editor === null || editor === void 0 ? void 0 : editor.cardText), children: item === null || item === void 0 ? void 0 : item.description }), (item === null || item === void 0 ? void 0 : item.email) && (_jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [_jsx(LUIcon, { icon: "envelope", size: "lg" }), _jsx(Body, { variant: "body-md", className: "text-gray-600 truncate min-w-0", children: item === null || item === void 0 ? void 0 : item.email })] })), (item === null || item === void 0 ? void 0 : item.phone) && (_jsxs("div", { className: "flex items-center gap-2 min-w-0", children: [_jsx(LUIcon, { icon: "phone", size: "lg" }), _jsx(Body, { variant: "body-md", className: "text-gray-600 truncate min-w-0", children: item === null || item === void 0 ? void 0 : item.phone })] }))] }));
|
|
26
27
|
};
|
|
27
28
|
// Common button component
|
|
28
29
|
var CardButton = function (_a) {
|
|
29
30
|
var _b = _a.className, className = _b === void 0 ? "" : _b;
|
|
30
|
-
return (_jsx(Link, { href: href || "#", passHref: true, children: _jsx(Button, { endIcon: "angle-right", size: "sm", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardBtn, " ").concat(className), children: btnLabel }) }));
|
|
31
|
+
return btnLabel ? (_jsx(Link, { href: href || "#", passHref: true, children: _jsx(Button, { endIcon: "angle-right", size: "sm", className: "".concat(editor === null || editor === void 0 ? void 0 : editor.cardBtn, " ").concat(className), children: btnLabel }) })) : null;
|
|
31
32
|
};
|
|
32
33
|
// Horizontal layout
|
|
33
34
|
if (orientation === "horizontal") {
|
|
34
|
-
return (_jsxs("div", { className: "!p-5 bg-white rounded-xl flex ".concat(safeMediaPosition === "left" ? "sm:flex-row" : "sm:flex-row-reverse", " max-w-5xl !gap-5 items-center shadow-lg ").concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsx(CardMedia, { className: "".concat(safeMediaPosition === "right" ? "order-3" : "order-1", " w-full max-w-40 aspect-square object-cover") }), _jsxs("div", { className: "flex-1 flex flex-col !gap-1 md:!gap-2.5 text-center sm:!text-left h-full justify-center ".concat(safeMediaPosition === "right" ? "order-1" : "order-2"), children: [_jsx(CardContent, {}), _jsx(CardButton, {})] })] }));
|
|
35
|
+
return (_jsxs("div", { className: "!p-5 bg-white rounded-xl flex ".concat(safeMediaPosition === "left" ? "sm:flex-row" : "sm:flex-row-reverse", " max-w-5xl !gap-5 items-center shadow-lg ").concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsx(CardMedia, { className: "".concat(safeMediaPosition === "right" ? "order-3" : "order-1", " w-full max-w-40 aspect-square object-cover") }), _jsxs("div", { className: "flex-1 flex flex-col !gap-1 md:!gap-2.5 text-center sm:!text-left h-full justify-center min-w-0 ".concat(safeMediaPosition === "right" ? "order-1" : "order-2"), children: [_jsx(CardContent, {}), _jsx(CardButton, {})] })] }));
|
|
35
36
|
}
|
|
36
37
|
// Vertical layout
|
|
37
38
|
return (_jsxs("div", { className: "p-8 bg-white rounded-xl flex flex-col gap-6 max-w-md items-center shadow-lg ".concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsxs("div", { className: "flex w-full ".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, { className: "h-20" })] }), _jsx(CardButton, {})] }));
|
|
@@ -11,3 +11,4 @@ export declare const ContactProfileHorizontalRight: Story;
|
|
|
11
11
|
export declare const ContactProfileVerticalTop: Story;
|
|
12
12
|
export declare const ContactProfileVerticalMiddle: Story;
|
|
13
13
|
export declare const ContactProfileVerticalBottom: Story;
|
|
14
|
+
export declare const ContactProfileWithFullInfo: Story;
|
|
@@ -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_designation, DUMMY_email, Dummy_Image, Dummy_Para, DUMMY_phone, 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",
|
|
@@ -98,3 +98,6 @@ export var ContactProfileVerticalMiddle = {
|
|
|
98
98
|
export var ContactProfileVerticalBottom = {
|
|
99
99
|
args: __assign(__assign({ type: "contactProfile" }, baseCardArgs), { orientation: OrientationEnum.vertical, mediaPosition: "bottom" }),
|
|
100
100
|
};
|
|
101
|
+
export var ContactProfileWithFullInfo = {
|
|
102
|
+
args: __assign(__assign({ type: "contactProfile" }, baseCardArgs), { item: __assign(__assign({}, baseCardArgs.item), { designation: DUMMY_designation, email: DUMMY_email, phone: DUMMY_phone }), orientation: OrientationEnum.horizontal, mediaPosition: "left", btnLabel: undefined }),
|
|
103
|
+
};
|
|
@@ -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",
|
|
@@ -18,7 +18,10 @@ export interface CardDataProps {
|
|
|
18
18
|
title?: string;
|
|
19
19
|
short_description?: string;
|
|
20
20
|
description?: string;
|
|
21
|
+
designation?: string;
|
|
21
22
|
images?: AlbumGalleryDataProps[];
|
|
23
|
+
email?: string;
|
|
24
|
+
phone?: string;
|
|
22
25
|
}
|
|
23
26
|
export interface CardInterface {
|
|
24
27
|
mediaPosition?: "top" | "middle" | "bottom" | "left" | "right";
|
|
@@ -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/input";
|
|
16
16
|
export default {
|
|
17
17
|
title: "Components/ColorPicker",
|
|
18
18
|
component: ColorPicker,
|