@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 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 card = 'style__oyalw00';
605
- var cardContent = 'style__oyalw04';
606
- var cardDescription = 'style__oyalw03';
607
- var cardFooter = 'style__oyalw05';
608
- var cardHeader = 'style__oyalw01';
609
- var cardTitle = 'style__oyalw02';
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(card, className),
615
+ className: clsx(card_css_root, className),
615
616
  ...props
616
617
  });
617
- const CardHeader = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
618
- className: clsx(cardHeader, className),
618
+ const Card_Header = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
619
+ className: clsx(card_css_header, className),
619
620
  ...props
620
621
  });
621
- const CardTitle = ({ className, ...props })=>/*#__PURE__*/ jsx("h3", {
622
- className: clsx(cardTitle, className),
622
+ const Card_Title = ({ className, ...props })=>/*#__PURE__*/ jsx("h3", {
623
+ className: clsx(card_css_title, className),
623
624
  ...props
624
625
  });
625
- const CardDescription = ({ className, ...props })=>/*#__PURE__*/ jsx("p", {
626
- className: clsx(cardDescription, className),
626
+ const Card_Description = ({ className, ...props })=>/*#__PURE__*/ jsx("p", {
627
+ className: clsx(card_css_description, className),
627
628
  ...props
628
629
  });
629
- const CardContent = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
630
- className: clsx(cardContent, className),
630
+ const Card_Content = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
631
+ className: clsx(card_css_content, className),
631
632
  ...props
632
633
  });
633
- const CardFooter = ({ className, ...props })=>/*#__PURE__*/ jsx("div", {
634
- className: clsx(cardFooter, className),
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
- export { Accordion_Accordion as Accordion, AlertDialog_AlertDialog as AlertDialog, Badge, Button, ButtonGroup, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, 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, 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, displays, src_DEFAULT_SEPARATOR as DEFAULT_SEPARATOR, src_DEFAULT_SYMBOL as DEFAULT_SYMBOL, theme, transforms, useController as useFormController, useDashboard, useFieldArray as useFormFieldArray, useFormContext, useForm_useForm as useForm, useWatch as useFormWatch, variants, weights };
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: ({ className, elevation, ...props }: HTMLAttributes<HTMLDivElement> & {
4
- elevation?: keyof typeof theme.elevation;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- declare const CardHeader: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
7
- declare const CardTitle: ({ className, ...props }: HTMLAttributes<HTMLHeadingElement>) => import("react/jsx-runtime").JSX.Element;
8
- declare const CardDescription: ({ className, ...props }: HTMLAttributes<HTMLParagraphElement>) => import("react/jsx-runtime").JSX.Element;
9
- declare const CardContent: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
10
- declare const CardFooter: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
11
- export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
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;AAUhC,QAAA,MAAM,IAAI,GAAI,oCAIX,cAAc,CAAC,cAAc,CAAC,GAAG;IACnC,SAAS,CAAC,EAAE,MAAM,OAAO,KAAK,CAAC,SAAS,CAAC;CACzC,4CAMA,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,yBAGjB,cAAc,CAAC,cAAc,CAAC,4CAEhC,CAAC;AAEF,QAAA,MAAM,SAAS,GAAI,yBAGhB,cAAc,CAAC,kBAAkB,CAAC,4CAEpC,CAAC;AAEF,QAAA,MAAM,eAAe,GAAI,yBAGtB,cAAc,CAAC,oBAAoB,CAAC,4CAEtC,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,yBAGlB,cAAc,CAAC,cAAc,CAAC,4CAEhC,CAAC;AAEF,QAAA,MAAM,UAAU,GAAI,yBAGjB,cAAc,CAAC,cAAc,CAAC,4CAEhC,CAAC;AAEF,OAAO,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,UAAU,EACV,SAAS,GACT,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 card: string;
2
- export declare const cardHeader: string;
3
- export declare const cardTitle: string;
4
- export declare const cardDescription: string;
5
- export declare const cardContent: string;
6
- export declare const cardFooter: string;
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,UAAU,QAMrB,CAAC;AAEH,eAAO,MAAM,SAAS,QAKpB,CAAC;AAEH,eAAO,MAAM,eAAe,QAG1B,CAAC;AAEH,eAAO,MAAM,WAAW,QAGtB,CAAC;AAEH,eAAO,MAAM,UAAU,QAKrB,CAAC"}
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,2 @@
1
+ export * from './NotificationContainer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ export * from './constants';
2
+ export * from './Notification';
3
+ export * from './NotificationContainer';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}
@@ -26,6 +26,7 @@ export * from './Input';
26
26
  export * from './InputOTP';
27
27
  export * from './Label';
28
28
  export * from './MaskField';
29
+ export * from './Notification';
29
30
  export * from './PageLayout';
30
31
  export * from './Pagination';
31
32
  export * from './PeriodPicker';
@@ -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: ({ className, elevation, ...props }: import("react").HTMLAttributes<HTMLDivElement> & {
4
- elevation?: 1 | 2 | 3 | 4 | 6;
5
- }) => import("react/jsx-runtime").JSX.Element;
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":";;;iBAcK,CAAC;;;;;;;AAHN,wBAO8B;AAG9B,eAAO,MAAM,OAAO,+CAoBnB,CAAC"}
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,EAAqB,QAAQ,EAAE,MAAM,cAAc,CAAC;;;;;;;;;AAE3D,wBAOkC;AAElC,wBAAgB,IAAI,4CAiDnB;AAED,wBAAgB,QAAQ,4CAqDvB"}
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.14.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": {