@max-ts/kit 0.14.0 → 0.15.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/lib/index.mjs +89 -19
- package/lib/src/components/Card/Card.d.ts +11 -9
- package/lib/src/components/Card/Card.d.ts.map +1 -1
- package/lib/src/components/Card/card.css.d.ts +6 -6
- package/lib/src/components/Card/card.css.d.ts.map +1 -1
- package/lib/src/components/Notification/Notification.d.ts +20 -0
- package/lib/src/components/Notification/Notification.d.ts.map +1 -0
- package/lib/src/components/Notification/NotificationContainer/NotificationContainer.d.ts +9 -0
- package/lib/src/components/Notification/NotificationContainer/NotificationContainer.d.ts.map +1 -0
- package/lib/src/components/Notification/NotificationContainer/index.d.ts +2 -0
- package/lib/src/components/Notification/NotificationContainer/index.d.ts.map +1 -0
- package/lib/src/components/Notification/constants.d.ts +16 -0
- package/lib/src/components/Notification/constants.d.ts.map +1 -0
- package/lib/src/components/Notification/index.d.ts +4 -0
- package/lib/src/components/Notification/index.d.ts.map +1 -0
- package/lib/src/components/index.d.ts +1 -0
- package/lib/src/components/index.d.ts.map +1 -1
- package/lib/stories/Card.stories.d.ts +10 -3
- package/lib/stories/Card.stories.d.ts.map +1 -1
- package/lib/stories/Carousel.stories.d.ts.map +1 -1
- package/package.json +2 -1
package/lib/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Accordion, Checkbox } from "@base-ui/react";
|
|
3
3
|
import clsx_0, { clsx } from "clsx";
|
|
4
|
-
import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Circle, CircleIcon, Copy, Ellipsis, EllipsisVertical, PanelLeftClose, PanelLeftOpen, X } from "lucide-react";
|
|
4
|
+
import { ArrowDownNarrowWide, ArrowDownUp, ArrowDownWideNarrow, Calendar1, Check, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Circle, CircleCheck, CircleIcon, Copy, Ellipsis, EllipsisVertical, Info, OctagonAlert, PanelLeftClose, PanelLeftOpen, TriangleAlert, X } from "lucide-react";
|
|
5
5
|
import { AlertDialog } from "@base-ui/react/alert-dialog";
|
|
6
6
|
import { Slot } from "@radix-ui/react-slot";
|
|
7
7
|
import { Root } from "@radix-ui/react-label";
|
|
@@ -16,6 +16,7 @@ import { useMask } from "@react-input/mask";
|
|
|
16
16
|
import { Close, Content as react_dialog_Content, Description as react_dialog_Description, Overlay as react_dialog_Overlay, Portal as react_dialog_Portal, Root as react_dialog_Root, Title as react_dialog_Title, Trigger as react_dialog_Trigger } from "@radix-ui/react-dialog";
|
|
17
17
|
import { Drawer, Root as external_vaul_Root } from "vaul";
|
|
18
18
|
import { OTPInput } from "input-otp";
|
|
19
|
+
import { Toaster, toast } from "sonner";
|
|
19
20
|
import { Indicator, Item as react_radio_group_Item, Root as react_radio_group_Root } from "@radix-ui/react-radio-group";
|
|
20
21
|
import { Range, Root as react_slider_Root, Thumb, Track } from "@radix-ui/react-slider";
|
|
21
22
|
import { Content as react_select_Content, Group, Icon, Item as react_select_Item, ItemIndicator, ItemText, Label as react_select_Label, Portal as react_select_Portal, Root as react_select_Root, ScrollDownButton, ScrollUpButton, Separator as react_select_Separator, Trigger as react_select_Trigger, Value as react_select_Value, Viewport } from "@radix-ui/react-select";
|
|
@@ -601,39 +602,44 @@ var theme = {
|
|
|
601
602
|
lg: 'var(--borderRadius-lg)'
|
|
602
603
|
}
|
|
603
604
|
};
|
|
604
|
-
var
|
|
605
|
-
var
|
|
606
|
-
var
|
|
607
|
-
var
|
|
608
|
-
var
|
|
609
|
-
var
|
|
605
|
+
var card_css_content = 'style__oyalw04';
|
|
606
|
+
var card_css_description = 'style__oyalw03';
|
|
607
|
+
var card_css_footer = 'style__oyalw05';
|
|
608
|
+
var card_css_header = 'style__oyalw01';
|
|
609
|
+
var card_css_root = 'style__oyalw00';
|
|
610
|
+
var card_css_title = 'style__oyalw02';
|
|
610
611
|
const Card = ({ className, elevation = 2, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
611
612
|
style: {
|
|
612
613
|
boxShadow: theme.elevation[elevation]
|
|
613
614
|
},
|
|
614
|
-
className: clsx(
|
|
615
|
+
className: clsx(card_css_root, className),
|
|
615
616
|
...props
|
|
616
617
|
});
|
|
617
|
-
const
|
|
618
|
-
className: clsx(
|
|
618
|
+
const Card_Header = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
619
|
+
className: clsx(card_css_header, className),
|
|
619
620
|
...props
|
|
620
621
|
});
|
|
621
|
-
const
|
|
622
|
-
className: clsx(
|
|
622
|
+
const Card_Title = ({ className, ...props })=>/*#__PURE__*/ jsx("h3", {
|
|
623
|
+
className: clsx(card_css_title, className),
|
|
623
624
|
...props
|
|
624
625
|
});
|
|
625
|
-
const
|
|
626
|
-
className: clsx(
|
|
626
|
+
const Card_Description = ({ className, ...props })=>/*#__PURE__*/ jsx("p", {
|
|
627
|
+
className: clsx(card_css_description, className),
|
|
627
628
|
...props
|
|
628
629
|
});
|
|
629
|
-
const
|
|
630
|
-
className: clsx(
|
|
630
|
+
const Card_Content = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
631
|
+
className: clsx(card_css_content, className),
|
|
631
632
|
...props
|
|
632
633
|
});
|
|
633
|
-
const
|
|
634
|
-
className: clsx(
|
|
634
|
+
const Card_Footer = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
|
|
635
|
+
className: clsx(card_css_footer, className),
|
|
635
636
|
...props
|
|
636
637
|
});
|
|
638
|
+
Card.Footer = Card_Footer;
|
|
639
|
+
Card.Header = Card_Header;
|
|
640
|
+
Card.Title = Card_Title;
|
|
641
|
+
Card.Description = Card_Description;
|
|
642
|
+
Card.Content = Card_Content;
|
|
637
643
|
const CarouselContext = react.createContext(null);
|
|
638
644
|
function useCarousel() {
|
|
639
645
|
const context = react.useContext(CarouselContext);
|
|
@@ -2486,6 +2492,69 @@ const InputOTP = ({ className, containerClassName, disabled, ...props })=>/*#__P
|
|
|
2486
2492
|
},
|
|
2487
2493
|
...props
|
|
2488
2494
|
});
|
|
2495
|
+
var constants_NotificationVariantTypes = /*#__PURE__*/ function(NotificationVariantTypes) {
|
|
2496
|
+
NotificationVariantTypes["info"] = "info";
|
|
2497
|
+
NotificationVariantTypes["success"] = "success";
|
|
2498
|
+
NotificationVariantTypes["warning"] = "warning";
|
|
2499
|
+
NotificationVariantTypes["error"] = "error";
|
|
2500
|
+
return NotificationVariantTypes;
|
|
2501
|
+
}({});
|
|
2502
|
+
const NOTIFICATION_POSITIONS = {
|
|
2503
|
+
topRight: 'top-right',
|
|
2504
|
+
topLeft: 'top-left',
|
|
2505
|
+
bottomRight: 'bottom-right',
|
|
2506
|
+
bottomLeft: 'bottom-left',
|
|
2507
|
+
topCenter: 'top-center',
|
|
2508
|
+
bottomCenter: 'bottom-center'
|
|
2509
|
+
};
|
|
2510
|
+
class Notification {
|
|
2511
|
+
service;
|
|
2512
|
+
constructor(sonner){
|
|
2513
|
+
this.service = sonner;
|
|
2514
|
+
}
|
|
2515
|
+
message(title, message) {
|
|
2516
|
+
return this.service.message(title, {
|
|
2517
|
+
description: message
|
|
2518
|
+
});
|
|
2519
|
+
}
|
|
2520
|
+
success = (title)=>this.service.success(title);
|
|
2521
|
+
error = (title)=>this.service.error(title);
|
|
2522
|
+
info = (title)=>this.service.info(title);
|
|
2523
|
+
warning = (title)=>this.service.warning(title);
|
|
2524
|
+
loading = (title)=>this.service.loading(title);
|
|
2525
|
+
dismiss = (id)=>this.service.dismiss(id);
|
|
2526
|
+
custom = (node)=>this.service(node);
|
|
2527
|
+
action = ({ title, buttonLabel, onClick })=>this.service(title, {
|
|
2528
|
+
action: {
|
|
2529
|
+
label: buttonLabel,
|
|
2530
|
+
onClick
|
|
2531
|
+
}
|
|
2532
|
+
});
|
|
2533
|
+
}
|
|
2534
|
+
const notification = new Notification(toast);
|
|
2535
|
+
const NotificationContainer = ({ position = 'bottomRight', ...props })=>/*#__PURE__*/ jsx(Toaster, {
|
|
2536
|
+
duration: 3000,
|
|
2537
|
+
icons: {
|
|
2538
|
+
error: /*#__PURE__*/ jsx(OctagonAlert, {
|
|
2539
|
+
size: 20,
|
|
2540
|
+
color: theme.colors.error
|
|
2541
|
+
}),
|
|
2542
|
+
success: /*#__PURE__*/ jsx(CircleCheck, {
|
|
2543
|
+
size: 20,
|
|
2544
|
+
color: theme.colors.success
|
|
2545
|
+
}),
|
|
2546
|
+
warning: /*#__PURE__*/ jsx(TriangleAlert, {
|
|
2547
|
+
size: 20,
|
|
2548
|
+
color: theme.colors.warning
|
|
2549
|
+
}),
|
|
2550
|
+
info: /*#__PURE__*/ jsx(Info, {
|
|
2551
|
+
size: 20,
|
|
2552
|
+
color: theme.colors.info
|
|
2553
|
+
})
|
|
2554
|
+
},
|
|
2555
|
+
position: NOTIFICATION_POSITIONS[position],
|
|
2556
|
+
...props
|
|
2557
|
+
});
|
|
2489
2558
|
const PAGE_CONTENT_CLASSNAME = 'page-content';
|
|
2490
2559
|
const PAGE_HEADER_CLASSNAME = 'page_header';
|
|
2491
2560
|
const PAGE_ASIDE_CLASSNAME = 'page_aside';
|
|
@@ -3229,4 +3298,5 @@ function FormTextField({ name, control, gridArea, ...props }) {
|
|
|
3229
3298
|
}
|
|
3230
3299
|
var src_DEFAULT_SEPARATOR = ":";
|
|
3231
3300
|
var src_DEFAULT_SYMBOL = "—";
|
|
3232
|
-
|
|
3301
|
+
var src_NOTIFY_CLASSNAME = "notify";
|
|
3302
|
+
export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Badge, Button, ButtonGroup, Calendar, Card, Carousel, Checkbox_Checkbox as Checkbox, CircularProgress, ConfirmAction, ContentState, Controller as FormController, CopyTypography, DESCRIPTION_ROOT_CLASSNAME, DashboardLayout, DataGrid, DataGridActionCell, DataGridSortHeader, DataList, DatePicker, Description_Description as Description, Dialog, Drawer_Drawer as Drawer, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormMaskField, FormProvider, FormSubmitButton, FormTextField, Image, ImageCarousel, Input, InputOTP, Label, MaskField, NOTIFICATION_POSITIONS, Notification, NotificationContainer, PageLayout, Pagination, PeriodPicker, Placeholder, Popover, PopoverContent, PopoverTrigger, RadioGroup, RadioGroupItem, RangeInput, ScrollTopButton, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Slider, Tabs_Tabs as Tabs, TextField, Tooltip, Typography, alignments, badgeVariants, buttonSizes, buttonVariants, colors, constants_NotificationVariantTypes as NotificationVariantTypes, displays, notification, src_DEFAULT_SEPARATOR as DEFAULT_SEPARATOR, src_DEFAULT_SYMBOL as DEFAULT_SYMBOL, src_NOTIFY_CLASSNAME as NOTIFY_CLASSNAME, theme, transforms, useController as useFormController, useDashboard, useFieldArray as useFormFieldArray, useFormContext, useForm_useForm as useForm, useWatch as useFormWatch, variants, weights };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import { theme } from '../../theme/index.ts';
|
|
3
|
-
declare const Card:
|
|
4
|
-
elevation
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
declare const Card: {
|
|
4
|
+
({ className, elevation, ...props }: HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
elevation?: keyof typeof theme.elevation;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Footer: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Header: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Title: ({ className, ...props }: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Description: ({ className, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Content: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export { Card };
|
|
12
14
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,QAAA,MAAM,IAAI;yCAIP,cAAc,CAAC,cAAc,CAAC,GAAG;QACnC,SAAS,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC,SAAS,CAAC;KACzC;sCA2BwC,cAAc,CAAC,cAAc,CAAC;sCAnB9B,cAAc,CAAC,cAAc,CAAC;qCAI/B,cAAc,CAAC,kBAAkB,CAAC;2CAOvE,cAAc,CAAC,oBAAoB,CAAC;uCAIG,cAAc,CAAC,cAAc,CAAC;CAjBvE,CAAC;AA+BF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
1
|
+
export declare const root: string;
|
|
2
|
+
export declare const header: string;
|
|
3
|
+
export declare const title: string;
|
|
4
|
+
export declare const description: string;
|
|
5
|
+
export declare const content: string;
|
|
6
|
+
export declare const footer: string;
|
|
7
7
|
//# sourceMappingURL=card.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/card.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,QAGf,CAAC;AAEH,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"card.css.d.ts","sourceRoot":"","sources":["../../../../src/components/Card/card.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI,QAGf,CAAC;AAEH,eAAO,MAAM,MAAM,QAMjB,CAAC;AAEH,eAAO,MAAM,KAAK,QAKhB,CAAC;AAEH,eAAO,MAAM,WAAW,QAGtB,CAAC;AAEH,eAAO,MAAM,OAAO,QAGlB,CAAC;AAEH,eAAO,MAAM,MAAM,QAKjB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { toast } from 'sonner';
|
|
2
|
+
export declare class Notification {
|
|
3
|
+
private readonly service;
|
|
4
|
+
constructor(sonner: typeof toast);
|
|
5
|
+
message(title: string, message?: string): string | number;
|
|
6
|
+
success: (title: string) => string | number;
|
|
7
|
+
error: (title: string) => string | number;
|
|
8
|
+
info: (title: string) => string | number;
|
|
9
|
+
warning: (title: string) => string | number;
|
|
10
|
+
loading: (title: string) => string | number;
|
|
11
|
+
dismiss: (id?: string | number | undefined) => string | number;
|
|
12
|
+
custom: (node: React.ReactNode) => string | number;
|
|
13
|
+
action: ({ title, buttonLabel, onClick, }: {
|
|
14
|
+
title: string;
|
|
15
|
+
buttonLabel: string;
|
|
16
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
17
|
+
}) => string | number;
|
|
18
|
+
}
|
|
19
|
+
export declare const notification: Notification;
|
|
20
|
+
//# sourceMappingURL=Notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAE/B,qBAAa,YAAY;IACxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACb,MAAM,EAAE,OAAO,KAAK;IAIzB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IAMvC,OAAO,GAAI,OAAO,MAAM,qBAAiC;IAEzD,KAAK,GAAI,OAAO,MAAM,qBAA+B;IAErD,IAAI,GAAI,OAAO,MAAM,qBAA8B;IAEnD,OAAO,GAAI,OAAO,MAAM,qBAAiC;IAEzD,OAAO,GAAI,OAAO,MAAM,qBAAiC;IAEzD,OAAO,GAAI,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS,qBACxB;IAEnB,MAAM,GAAI,MAAM,KAAK,CAAC,SAAS,qBAAwB;IAEvD,MAAM,GAAI,kCAId;QACF,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;KAC1E,qBAMG;CACJ;AAED,eAAO,MAAM,YAAY,cAA0B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NOTIFICATION_POSITIONS } from '../constants';
|
|
2
|
+
type NotificationsProps = {
|
|
3
|
+
position?: keyof typeof NOTIFICATION_POSITIONS;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: React.CSSProperties;
|
|
6
|
+
};
|
|
7
|
+
export declare const NotificationContainer: ({ position, ...props }: NotificationsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=NotificationContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationContainer.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notification/NotificationContainer/NotificationContainer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,KAAK,kBAAkB,GAAG;IACzB,QAAQ,CAAC,EAAE,MAAM,OAAO,sBAAsB,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,wBAGnC,kBAAkB,4CAapB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Notification/NotificationContainer/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum NotificationVariantTypes {
|
|
2
|
+
info = "info",
|
|
3
|
+
success = "success",
|
|
4
|
+
warning = "warning",
|
|
5
|
+
error = "error"
|
|
6
|
+
}
|
|
7
|
+
export declare const NOTIFICATION_POSITIONS: {
|
|
8
|
+
readonly topRight: "top-right";
|
|
9
|
+
readonly topLeft: "top-left";
|
|
10
|
+
readonly bottomRight: "bottom-right";
|
|
11
|
+
readonly bottomLeft: "bottom-left";
|
|
12
|
+
readonly topCenter: "top-center";
|
|
13
|
+
readonly bottomCenter: "bottom-center";
|
|
14
|
+
};
|
|
15
|
+
export declare const NOTIFY_CLASSNAME = "notify";
|
|
16
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/constants.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IACnC,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;CACf;AAED,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AAEX,eAAO,MAAM,gBAAgB,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component:
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
component: {
|
|
4
|
+
({ className, elevation, ...props }: import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
elevation?: 1 | 2 | 3 | 4 | 6;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Footer: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
Header: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Title: ({ className, ...props }: import("react").HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
Description: ({ className, ...props }: import("react").HTMLAttributes<HTMLParagraphElement>) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Content: ({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
};
|
|
6
13
|
parameters: {
|
|
7
14
|
layout: string;
|
|
8
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../stories/Card.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.stories.d.ts","sourceRoot":"","sources":["../../stories/Card.stories.tsx"],"names":[],"mappings":";;;;qBAOQ,CAAC;;;;;;;;;;;;;AAHT,wBAO8B;AAG9B,eAAO,MAAM,OAAO,+CAsBnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.stories.d.ts","sourceRoot":"","sources":["../../stories/Carousel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"Carousel.stories.d.ts","sourceRoot":"","sources":["../../stories/Carousel.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,QAAQ,EAAE,MAAM,cAAc,CAAC;;;;;;;;;AAE9C,wBAOkC;AAElC,wBAAgB,IAAI,4CAiDnB;AAED,wBAAgB,QAAQ,4CAqDvB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-ts/kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./lib/index.mjs",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"react-dom": "19.2.6",
|
|
37
37
|
"react-hook-form": "^7.76.1",
|
|
38
38
|
"react-virtuoso": "^4.18.7",
|
|
39
|
+
"sonner": "^2.0.7",
|
|
39
40
|
"vaul": "^1.1.2"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|