@korsolutions/ui 0.0.21 → 0.0.23

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.
Files changed (29) hide show
  1. package/dist/components/index.d.mts +20 -2
  2. package/dist/components/index.mjs +152 -7
  3. package/dist/{index-pCM7YTs1.d.mts → index-CCYJiglk.d.mts} +104 -9
  4. package/dist/index.mjs +2 -2
  5. package/dist/primitives/index.d.mts +2 -2
  6. package/dist/primitives/index.mjs +2 -2
  7. package/dist/{primitives-DNeYBN-3.mjs → primitives-ApsPS0vU.mjs} +333 -14
  8. package/dist/{toast-manager-BfoJ-_dB.mjs → toast-manager-Cdhl1ep0.mjs} +1 -1
  9. package/package.json +1 -1
  10. package/src/components/calendar/calendar.tsx +31 -0
  11. package/src/components/calendar/index.ts +1 -0
  12. package/src/components/calendar/variants/default.tsx +127 -0
  13. package/src/components/calendar/variants/index.ts +5 -0
  14. package/src/components/index.ts +1 -0
  15. package/src/components/popover/variants/default.tsx +0 -3
  16. package/src/components/popover/variants/index.ts +2 -0
  17. package/src/components/popover/variants/unstyled.tsx +13 -0
  18. package/src/primitives/calendar/calendar-day.tsx +64 -0
  19. package/src/primitives/calendar/calendar-header.tsx +21 -0
  20. package/src/primitives/calendar/calendar-nav-button.tsx +60 -0
  21. package/src/primitives/calendar/calendar-root.tsx +41 -0
  22. package/src/primitives/calendar/calendar-title.tsx +23 -0
  23. package/src/primitives/calendar/calendar-week-labels.tsx +45 -0
  24. package/src/primitives/calendar/calendar-weeks.tsx +47 -0
  25. package/src/primitives/calendar/context.ts +23 -0
  26. package/src/primitives/calendar/index.ts +26 -0
  27. package/src/primitives/calendar/types.ts +39 -0
  28. package/src/primitives/index.ts +1 -0
  29. package/src/utils/date-utils.ts +113 -0
@@ -1,4 +1,4 @@
1
- import { D as BadgeStyles, I as AvatarStyles, S as TextareaPrimitiveBaseProps, V as EmptyStyles, d as PopoverTriggerRef, dt as ButtonStyles, et as SelectRootBaseProps, gt as InputStyles, h as DropdownMenuStyles, j as ToastStyles, lt as ButtonPrimitiveRootProps, mt as InputPrimitiveBaseProps, nt as SelectStyles, q as CardStyles, s as PopoverStyles, w as TextareaStyles, yt as FieldStyles } from "../index-pCM7YTs1.mjs";
1
+ import { Et as InputStyles, K as AvatarStyles, L as BadgeStyles, M as TextareaPrimitiveBaseProps, P as TextareaStyles, T as DropdownMenuStyles, V as ToastStyles, Z as EmptyStyles, _ as PopoverStyles, a as CalendarStyles, ft as SelectStyles, kt as FieldStyles, rt as CardStyles, ut as SelectRootBaseProps, wt as InputPrimitiveBaseProps, x as PopoverTriggerRef, xt as ButtonStyles, yt as ButtonPrimitiveRootProps } from "../index-CCYJiglk.mjs";
2
2
  import "../use-relative-position-DBzhrBU7.mjs";
3
3
  import { t as NumericMaskFormat } from "../use-numeric-mask-B9WZG25o.mjs";
4
4
  import React from "react";
@@ -279,6 +279,7 @@ declare function DropdownMenu(props: DropdownMenuProps): React.JSX.Element;
279
279
  //#region src/components/popover/variants/index.d.ts
280
280
  declare const PopoverVariants: {
281
281
  default: () => PopoverStyles;
282
+ unstyled: () => PopoverStyles;
282
283
  };
283
284
  //#endregion
284
285
  //#region src/components/popover/popover.d.ts
@@ -293,4 +294,21 @@ interface PopoverProps {
293
294
  }
294
295
  declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<PopoverTriggerRef>>;
295
296
  //#endregion
296
- export { Avatar, AvatarProps, Badge, Button, Card, DropdownMenu, Empty, EmptyProps, Field, FieldProps, Input, Link, LinkProps, NumericInput, NumericInputProps, Popover, PopoverProps, Select, SelectOption, SelectProps, Textarea, Toast, Typography, TypographyProps };
297
+ //#region src/components/calendar/variants/index.d.ts
298
+ declare const CalendarVariants: {
299
+ default: () => CalendarStyles;
300
+ };
301
+ //#endregion
302
+ //#region src/components/calendar/calendar.d.ts
303
+ interface CalendarProps {
304
+ value?: Date;
305
+ onChange?: (date: Date | undefined) => void;
306
+ defaultMonth?: Date;
307
+ minDate?: Date;
308
+ maxDate?: Date;
309
+ variant?: keyof typeof CalendarVariants;
310
+ weekDays?: string[];
311
+ }
312
+ declare function Calendar(props: CalendarProps): React.JSX.Element;
313
+ //#endregion
314
+ export { Avatar, AvatarProps, Badge, Button, Calendar, CalendarProps, Card, DropdownMenu, Empty, EmptyProps, Field, FieldProps, Input, Link, LinkProps, NumericInput, NumericInputProps, Popover, PopoverProps, Select, SelectOption, SelectProps, Textarea, Toast, Typography, TypographyProps };
@@ -1,5 +1,5 @@
1
- import { i as useThemedStyles, r as ToastComponent, t as ToastAPI } from "../toast-manager-BfoJ-_dB.mjs";
2
- import { a as BadgePrimitive, c as EmptyPrimitive, d as ButtonPrimitive, f as InputPrimitive, i as TextareaPrimitive, l as CardPrimitive, n as usePopover, p as FieldPrimitive, r as DropdownMenuPrimitive, s as AvatarPrimitive, t as PopoverPrimitive, u as SelectPrimitive } from "../primitives-DNeYBN-3.mjs";
1
+ import { i as useThemedStyles, r as ToastComponent, t as ToastAPI } from "../toast-manager-Cdhl1ep0.mjs";
2
+ import { a as TextareaPrimitive, c as AvatarPrimitive, d as SelectPrimitive, f as ButtonPrimitive, i as DropdownMenuPrimitive, l as EmptyPrimitive, m as FieldPrimitive, n as PopoverPrimitive, o as BadgePrimitive, p as InputPrimitive, r as usePopover, t as CalendarPrimitive, u as CardPrimitive } from "../primitives-ApsPS0vU.mjs";
3
3
  import "../use-relative-position-BTKEyT1F.mjs";
4
4
  import { t as useNumericMask } from "../use-numeric-mask-BQlz1Pus.mjs";
5
5
  import React, { forwardRef, useEffect, useState } from "react";
@@ -783,9 +783,6 @@ const usePopoverVariantDefault = () => {
783
783
  borderRadius: radius,
784
784
  borderWidth: 1,
785
785
  borderColor: colors.border,
786
- padding: 16,
787
- minWidth: 280,
788
- maxWidth: 320,
789
786
  shadowColor: "#000",
790
787
  shadowOffset: {
791
788
  width: 0,
@@ -798,9 +795,21 @@ const usePopoverVariantDefault = () => {
798
795
  }));
799
796
  };
800
797
 
798
+ //#endregion
799
+ //#region src/components/popover/variants/unstyled.tsx
800
+ const usePopoverVariantUnstyled = () => {
801
+ return useThemedStyles(() => ({
802
+ overlay: { backgroundColor: "rgba(0, 0, 0, 0.5)" },
803
+ content: {}
804
+ }));
805
+ };
806
+
801
807
  //#endregion
802
808
  //#region src/components/popover/variants/index.ts
803
- const PopoverVariants = { default: usePopoverVariantDefault };
809
+ const PopoverVariants = {
810
+ default: usePopoverVariantDefault,
811
+ unstyled: usePopoverVariantUnstyled
812
+ };
804
813
 
805
814
  //#endregion
806
815
  //#region src/components/popover/popover.tsx
@@ -827,4 +836,140 @@ PopoverComponent.displayName = "Popover";
827
836
  const Popover = PopoverComponent;
828
837
 
829
838
  //#endregion
830
- export { Avatar, Badge, Button, Card, DropdownMenu, Empty, Field, Input, Link, NumericInput, Popover, Select, Textarea, Toast, Typography };
839
+ //#region src/components/calendar/variants/default.tsx
840
+ const useCalendarVariantDefault = () => {
841
+ return useThemedStyles(({ colors, radius, fontFamily, fontSize }) => ({
842
+ root: {
843
+ padding: 16,
844
+ backgroundColor: colors.background,
845
+ borderRadius: radius,
846
+ borderWidth: 1,
847
+ borderColor: colors.border,
848
+ width: 324
849
+ },
850
+ header: {
851
+ flexDirection: "row",
852
+ justifyContent: "space-between",
853
+ alignItems: "center",
854
+ marginBottom: 16,
855
+ paddingHorizontal: 8
856
+ },
857
+ headerTitle: {
858
+ fontSize: fontSize * 1.125,
859
+ fontWeight: "600",
860
+ fontFamily,
861
+ color: colors.foreground
862
+ },
863
+ navButton: {
864
+ default: {
865
+ width: 32,
866
+ height: 32,
867
+ borderRadius: radius * .5,
868
+ alignItems: "center",
869
+ justifyContent: "center",
870
+ backgroundColor: "transparent"
871
+ },
872
+ disabled: { opacity: .3 }
873
+ },
874
+ navButtonText: {
875
+ default: {
876
+ fontSize: fontSize * 1.5,
877
+ color: colors.foreground,
878
+ fontWeight: "500"
879
+ },
880
+ disabled: { color: colors.mutedForeground }
881
+ },
882
+ weekLabels: {
883
+ flexDirection: "row",
884
+ justifyContent: "space-between",
885
+ marginBottom: 8,
886
+ paddingVertical: 8,
887
+ gap: 2
888
+ },
889
+ weekLabel: {
890
+ fontSize: fontSize * .875,
891
+ fontWeight: "500",
892
+ fontFamily,
893
+ color: colors.mutedForeground,
894
+ width: 40,
895
+ textAlign: "center"
896
+ },
897
+ weeks: {
898
+ flexDirection: "column",
899
+ gap: 2
900
+ },
901
+ week: {
902
+ flexDirection: "row",
903
+ justifyContent: "space-between",
904
+ gap: 2
905
+ },
906
+ dayButton: {
907
+ default: {
908
+ width: 40,
909
+ height: 40,
910
+ borderRadius: radius * .5,
911
+ alignItems: "center",
912
+ justifyContent: "center",
913
+ backgroundColor: "transparent"
914
+ },
915
+ selected: { backgroundColor: colors.primary },
916
+ today: {
917
+ borderWidth: 1,
918
+ borderColor: colors.primary
919
+ },
920
+ disabled: { opacity: .3 },
921
+ deprioritized: { backgroundColor: "transparent" },
922
+ hovered: { backgroundColor: colors.muted }
923
+ },
924
+ dayText: {
925
+ default: {
926
+ fontSize,
927
+ fontFamily,
928
+ color: colors.foreground,
929
+ fontWeight: "400",
930
+ pointerEvents: "none"
931
+ },
932
+ selected: {
933
+ color: colors.primaryForeground,
934
+ fontWeight: "600"
935
+ },
936
+ today: {
937
+ color: colors.primary,
938
+ fontWeight: "600"
939
+ },
940
+ disabled: { color: colors.mutedForeground },
941
+ deprioritized: {
942
+ color: colors.mutedForeground,
943
+ opacity: .5
944
+ }
945
+ }
946
+ }));
947
+ };
948
+
949
+ //#endregion
950
+ //#region src/components/calendar/variants/index.ts
951
+ const CalendarVariants = { default: useCalendarVariantDefault };
952
+
953
+ //#endregion
954
+ //#region src/components/calendar/calendar.tsx
955
+ function Calendar(props) {
956
+ const { variant = "default", weekDays, ...rootProps } = props;
957
+ const useVariantStyles = CalendarVariants[variant];
958
+ const variantStyles = useVariantStyles();
959
+ return /* @__PURE__ */ jsxs(CalendarPrimitive.Root, {
960
+ ...rootProps,
961
+ styles: variantStyles,
962
+ children: [
963
+ /* @__PURE__ */ jsxs(CalendarPrimitive.Header, { children: [
964
+ /* @__PURE__ */ jsx(CalendarPrimitive.NavButton, { direction: "prev" }),
965
+ /* @__PURE__ */ jsx(CalendarPrimitive.Title, {}),
966
+ /* @__PURE__ */ jsx(CalendarPrimitive.NavButton, { direction: "next" })
967
+ ] }),
968
+ /* @__PURE__ */ jsx(CalendarPrimitive.CalendarWeekLabels, { weekDays }),
969
+ /* @__PURE__ */ jsx(CalendarPrimitive.Weeks, {})
970
+ ]
971
+ });
972
+ }
973
+
974
+ //#endregion
975
+ export { Avatar, Badge, Button, Calendar, Card, DropdownMenu, Empty, Field, Input, Link, NumericInput, Popover, Select, Textarea, Toast, Typography };
@@ -1,7 +1,7 @@
1
1
  import { r as LayoutPosition } from "./use-relative-position-DBzhrBU7.mjs";
2
- import * as react7 from "react";
2
+ import * as react8 from "react";
3
3
  import React$1, { Dispatch, RefAttributes } from "react";
4
- import { ImageSource, ImageStyle, LayoutRectangle, PressableProps, StyleProp, TextInputProps, TextProps, TextStyle, View, ViewStyle } from "react-native";
4
+ import { ImageSource, ImageStyle, LayoutRectangle, PressableProps, StyleProp, TextInputProps, TextProps, TextStyle, View, ViewProps, ViewStyle } from "react-native";
5
5
 
6
6
  //#region src/primitives/field/field-label.d.ts
7
7
  interface FieldLabelProps {
@@ -66,7 +66,7 @@ interface InputPrimitiveProps extends InputPrimitiveBaseProps {
66
66
  render?: (props: InputPrimitiveProps) => React.ReactNode;
67
67
  styles?: InputStyles;
68
68
  }
69
- declare function InputPrimitive(props: InputPrimitiveProps): react7.JSX.Element;
69
+ declare function InputPrimitive(props: InputPrimitiveProps): react8.JSX.Element;
70
70
  //#endregion
71
71
  //#region src/primitives/button/button-label.d.ts
72
72
  interface ButtonPrimitiveLabelProps {
@@ -152,7 +152,7 @@ interface SelectOptionProps {
152
152
  render?: (props: SelectOptionProps) => React.ReactElement;
153
153
  style?: StyleProp<TextStyle>;
154
154
  }
155
- declare function SelectOption(props: SelectOptionProps): react7.JSX.Element;
155
+ declare function SelectOption(props: SelectOptionProps): react8.JSX.Element;
156
156
  //#endregion
157
157
  //#region src/primitives/select/types.d.ts
158
158
  type SelectState = "default" | "disabled";
@@ -433,7 +433,7 @@ interface TextareaPrimitiveProps extends TextareaPrimitiveBaseProps {
433
433
  render?: (props: TextareaPrimitiveProps) => React.ReactNode;
434
434
  styles?: TextareaStyles;
435
435
  }
436
- declare function TextareaPrimitive(props: TextareaPrimitiveProps): react7.JSX.Element;
436
+ declare function TextareaPrimitive(props: TextareaPrimitiveProps): react8.JSX.Element;
437
437
  //#endregion
438
438
  //#region src/primitives/dropdown-menu/dropdown-menu-trigger.d.ts
439
439
  interface DropdownMenuTriggerProps extends PressableProps {
@@ -504,7 +504,7 @@ declare function DropdownMenuPortal(props: DropdownMenuPortalProps): React$1.JSX
504
504
  //#region src/primitives/dropdown-menu/index.d.ts
505
505
  declare const DropdownMenuPrimitive: {
506
506
  Root: typeof DropdownMenuRoot;
507
- Trigger: react7.ForwardRefExoticComponent<DropdownMenuTriggerProps & react7.RefAttributes<DropdownMenuTriggerRef>>;
507
+ Trigger: react8.ForwardRefExoticComponent<DropdownMenuTriggerProps & react8.RefAttributes<DropdownMenuTriggerRef>>;
508
508
  Portal: typeof DropdownMenuPortal;
509
509
  Overlay: typeof DropdownMenuOverlay;
510
510
  Content: typeof DropdownMenuContent;
@@ -578,17 +578,112 @@ interface PopoverContext {
578
578
  setTriggerPosition: Dispatch<React.SetStateAction<LayoutPosition>>;
579
579
  styles?: PopoverStyles;
580
580
  }
581
- declare const PopoverContext: react7.Context<PopoverContext | undefined>;
581
+ declare const PopoverContext: react8.Context<PopoverContext | undefined>;
582
582
  declare const usePopover: () => PopoverContext;
583
583
  //#endregion
584
584
  //#region src/primitives/popover/index.d.ts
585
585
  declare const PopoverPrimitive: {
586
586
  Root: typeof PopoverRoot;
587
- Trigger: react7.ForwardRefExoticComponent<PopoverTriggerProps & react7.RefAttributes<PopoverTriggerRef>>;
587
+ Trigger: react8.ForwardRefExoticComponent<PopoverTriggerProps & react8.RefAttributes<PopoverTriggerRef>>;
588
588
  Portal: typeof PopoverPortal;
589
589
  Overlay: typeof PopoverOverlay;
590
590
  Content: typeof PopoverContent;
591
591
  Close: typeof PopoverClose;
592
592
  };
593
593
  //#endregion
594
- export { SelectPortalProps as $, ToastRootProps as A, EmptyRootProps as B, TextareaPrimitiveProps as C, BadgeStyles as D, BadgeRootProps as E, AvatarRootProps as F, CardPrimitive as G, EmptyTitleProps as H, AvatarStyles as I, CardFooterProps as J, CardRootProps as K, AvatarImageProps as L, ToastDescriptionProps as M, ToastTitleProps as N, BadgeLabelProps as O, AvatarPrimitive as P, SelectPrimitive as Q, AvatarFallbackProps as R, TextareaPrimitiveBaseProps as S, FieldLabelProps as St, BadgePrimitive as T, EmptyMediaProps as U, EmptyStyles as V, EmptyDescriptionProps as W, CardTitleProps as X, CardBodyProps as Y, CardHeaderProps as Z, DropdownMenuDividerProps as _, FieldPrimitive as _t, PopoverPortalProps as a, SelectOverlayProps as at, DropdownMenuTriggerProps as b, FieldErrorProps as bt, PopoverOverlayProps as c, ButtonPrimitive as ct, PopoverTriggerRef as d, ButtonStyles as dt, SelectRootBaseProps as et, DropdownMenuPrimitive as f, ButtonPrimitiveLabelProps as ft, DropdownMenuOverlayProps as g, InputStyles as gt, DropdownMenuStyles as h, InputPrimitiveProps as ht, PopoverCloseProps as i, SelectContentProps as it, ToastStyles as j, ToastPrimitive as k, PopoverContentProps as l, ButtonPrimitiveRootProps as lt, DropdownMenuRootProps as m, InputPrimitiveBaseProps as mt, PopoverContext as n, SelectStyles as nt, PopoverRootProps as o, SelectValueProps as ot, DropdownMenuPortalProps as p, InputPrimitive as pt, CardStyles as q, usePopover as r, SelectOptionProps as rt, PopoverStyles as s, SelectTriggerProps as st, PopoverPrimitive as t, SelectRootProps as tt, PopoverTriggerProps as u, ButtonState as ut, DropdownMenuButtonProps as v, FieldPrimitiveRootProps as vt, TextareaStyles as w, TextareaPrimitive as x, FieldDescriptionProps as xt, DropdownMenuContentProps as y, FieldStyles as yt, EmptyPrimitive as z };
594
+ //#region src/primitives/calendar/calendar-weeks.d.ts
595
+ interface CalendarWeekProps extends ViewProps {
596
+ index: number;
597
+ style?: StyleProp<ViewStyle>;
598
+ }
599
+ interface CalendarWeeksProps extends ViewProps {
600
+ style?: StyleProp<ViewStyle>;
601
+ }
602
+ declare function CalendarWeeks(props: CalendarWeeksProps): React$1.JSX.Element;
603
+ //#endregion
604
+ //#region src/primitives/calendar/calendar-week-labels.d.ts
605
+ interface CalendarWeekLabelProps {
606
+ children: string;
607
+ style?: StyleProp<TextStyle>;
608
+ }
609
+ interface CalendarWeekLabelsProps {
610
+ weekDays?: string[];
611
+ style?: StyleProp<ViewStyle>;
612
+ }
613
+ declare function CalendarWeekLabels(props: CalendarWeekLabelsProps): React$1.JSX.Element;
614
+ //#endregion
615
+ //#region src/primitives/calendar/calendar-day.d.ts
616
+ interface CalendarDayProps {
617
+ date: Date;
618
+ onPress?: () => void;
619
+ style?: StyleProp<ViewStyle>;
620
+ textStyle?: StyleProp<TextStyle>;
621
+ }
622
+ declare function CalendarDay(props: CalendarDayProps): React$1.JSX.Element;
623
+ //#endregion
624
+ //#region src/primitives/calendar/calendar-header.d.ts
625
+ interface CalendarHeaderProps extends ViewProps {
626
+ children?: React$1.ReactNode;
627
+ style?: StyleProp<ViewStyle>;
628
+ }
629
+ declare function CalendarHeader(props: CalendarHeaderProps): React$1.JSX.Element;
630
+ //#endregion
631
+ //#region src/primitives/calendar/calendar-title.d.ts
632
+ interface CalendarTitleProps extends TextProps {
633
+ children?: React$1.ReactNode;
634
+ style?: StyleProp<TextStyle>;
635
+ formatStr?: string;
636
+ }
637
+ declare function CalendarTitle(props: CalendarTitleProps): React$1.JSX.Element;
638
+ //#endregion
639
+ //#region src/primitives/calendar/types.d.ts
640
+ type CalendarDayState = "default" | "selected" | "today" | "disabled" | "deprioritized" | "hovered";
641
+ type CalendarNavButtonState = "default" | "disabled" | "hovered";
642
+ interface CalendarStyles {
643
+ root?: CalendarRootProps["style"];
644
+ header?: CalendarHeaderProps["style"];
645
+ headerTitle?: CalendarTitleProps["style"];
646
+ navButton?: Partial<Record<CalendarNavButtonState, ViewStyle>>;
647
+ navButtonText?: Partial<Record<CalendarNavButtonState, TextStyle>>;
648
+ weekLabels: CalendarWeekLabelsProps["style"];
649
+ weekLabel?: CalendarWeekLabelProps["style"];
650
+ weeks?: CalendarWeekProps["style"];
651
+ week?: CalendarWeeksProps["style"];
652
+ dayButton?: Partial<Record<CalendarDayState, CalendarDayProps["style"]>>;
653
+ dayText?: Partial<Record<CalendarDayState, CalendarDayProps["textStyle"]>>;
654
+ }
655
+ //#endregion
656
+ //#region src/primitives/calendar/calendar-root.d.ts
657
+ interface CalendarRootProps {
658
+ children?: React$1.ReactNode;
659
+ value?: Date | null;
660
+ onChange?: (date: Date | null) => void;
661
+ defaultMonth?: Date;
662
+ minDate?: Date;
663
+ maxDate?: Date;
664
+ style?: StyleProp<ViewStyle>;
665
+ styles?: CalendarStyles;
666
+ }
667
+ declare function CalendarRoot(props: CalendarRootProps): React$1.JSX.Element;
668
+ //#endregion
669
+ //#region src/primitives/calendar/calendar-nav-button.d.ts
670
+ interface CalendarNavButtonProps extends PressableProps {
671
+ children?: React$1.ReactNode;
672
+ direction: "prev" | "next";
673
+ style?: StyleProp<ViewStyle>;
674
+ textStyle?: StyleProp<TextStyle>;
675
+ }
676
+ declare function CalendarNavButton(props: CalendarNavButtonProps): React$1.JSX.Element;
677
+ //#endregion
678
+ //#region src/primitives/calendar/index.d.ts
679
+ declare const CalendarPrimitive: {
680
+ Root: typeof CalendarRoot;
681
+ Header: typeof CalendarHeader;
682
+ Title: typeof CalendarTitle;
683
+ NavButton: typeof CalendarNavButton;
684
+ CalendarWeekLabels: typeof CalendarWeekLabels;
685
+ Weeks: typeof CalendarWeeks;
686
+ Day: typeof CalendarDay;
687
+ };
688
+ //#endregion
689
+ export { EmptyMediaProps as $, DropdownMenuTriggerProps as A, FieldErrorProps as At, ToastRootProps as B, DropdownMenuPortalProps as C, InputPrimitive as Ct, DropdownMenuDividerProps as D, FieldPrimitive as Dt, DropdownMenuOverlayProps as E, InputStyles as Et, BadgePrimitive as F, AvatarRootProps as G, ToastDescriptionProps as H, BadgeRootProps as I, AvatarFallbackProps as J, AvatarStyles as K, BadgeStyles as L, TextareaPrimitiveBaseProps as M, FieldLabelProps as Mt, TextareaPrimitiveProps as N, DropdownMenuButtonProps as O, FieldPrimitiveRootProps as Ot, TextareaStyles as P, EmptyTitleProps as Q, BadgeLabelProps as R, DropdownMenuPrimitive as S, ButtonPrimitiveLabelProps as St, DropdownMenuStyles as T, InputPrimitiveProps as Tt, ToastTitleProps as U, ToastStyles as V, AvatarPrimitive as W, EmptyRootProps as X, EmptyPrimitive as Y, EmptyStyles as Z, PopoverStyles as _, SelectTriggerProps as _t, CalendarStyles as a, CardBodyProps as at, PopoverTriggerProps as b, ButtonState as bt, CalendarDayProps as c, SelectPrimitive as ct, PopoverPrimitive as d, SelectRootProps as dt, EmptyDescriptionProps as et, PopoverContext as f, SelectStyles as ft, PopoverRootProps as g, SelectValueProps as gt, PopoverPortalProps as h, SelectOverlayProps as ht, CalendarDayState as i, CardFooterProps as it, TextareaPrimitive as j, FieldDescriptionProps as jt, DropdownMenuContentProps as k, FieldStyles as kt, CalendarWeekLabelsProps as l, SelectPortalProps as lt, PopoverCloseProps as m, SelectContentProps as mt, CalendarNavButtonProps as n, CardRootProps as nt, CalendarTitleProps as o, CardTitleProps as ot, usePopover as p, SelectOptionProps as pt, AvatarImageProps as q, CalendarRootProps as r, CardStyles as rt, CalendarHeaderProps as s, CardHeaderProps as st, CalendarPrimitive as t, CardPrimitive as tt, CalendarWeeksProps as u, SelectRootBaseProps as ut, PopoverOverlayProps as v, ButtonPrimitive as vt, DropdownMenuRootProps as w, InputPrimitiveBaseProps as wt, PopoverTriggerRef as x, ButtonStyles as xt, PopoverContentProps as y, ButtonPrimitiveRootProps as yt, ToastPrimitive as z };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { a as ThemeProvider, n as ToastContainer, o as useTheme } from "./toast-manager-BfoJ-_dB.mjs";
2
- import { m as PortalHost } from "./primitives-DNeYBN-3.mjs";
1
+ import { a as ThemeProvider, n as ToastContainer, o as useTheme } from "./toast-manager-Cdhl1ep0.mjs";
2
+ import { h as PortalHost } from "./primitives-ApsPS0vU.mjs";
3
3
  import "./use-relative-position-BTKEyT1F.mjs";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
@@ -1,3 +1,3 @@
1
- import { $ as SelectPortalProps, A as ToastRootProps, B as EmptyRootProps, C as TextareaPrimitiveProps, D as BadgeStyles, E as BadgeRootProps, F as AvatarRootProps, G as CardPrimitive, H as EmptyTitleProps, I as AvatarStyles, J as CardFooterProps, K as CardRootProps, L as AvatarImageProps, M as ToastDescriptionProps, N as ToastTitleProps, O as BadgeLabelProps, P as AvatarPrimitive, Q as SelectPrimitive, R as AvatarFallbackProps, S as TextareaPrimitiveBaseProps, St as FieldLabelProps, T as BadgePrimitive, U as EmptyMediaProps, V as EmptyStyles, W as EmptyDescriptionProps, X as CardTitleProps, Y as CardBodyProps, Z as CardHeaderProps, _ as DropdownMenuDividerProps, _t as FieldPrimitive, a as PopoverPortalProps, at as SelectOverlayProps, b as DropdownMenuTriggerProps, bt as FieldErrorProps, c as PopoverOverlayProps, ct as ButtonPrimitive, d as PopoverTriggerRef, dt as ButtonStyles, et as SelectRootBaseProps, f as DropdownMenuPrimitive, ft as ButtonPrimitiveLabelProps, g as DropdownMenuOverlayProps, gt as InputStyles, h as DropdownMenuStyles, ht as InputPrimitiveProps, i as PopoverCloseProps, it as SelectContentProps, j as ToastStyles, k as ToastPrimitive, l as PopoverContentProps, lt as ButtonPrimitiveRootProps, m as DropdownMenuRootProps, mt as InputPrimitiveBaseProps, n as PopoverContext, nt as SelectStyles, o as PopoverRootProps, ot as SelectValueProps, p as DropdownMenuPortalProps, pt as InputPrimitive, q as CardStyles, r as usePopover, rt as SelectOptionProps, st as SelectTriggerProps, t as PopoverPrimitive, tt as SelectRootProps, u as PopoverTriggerProps, ut as ButtonState, v as DropdownMenuButtonProps, vt as FieldPrimitiveRootProps, w as TextareaStyles, x as TextareaPrimitive, xt as FieldDescriptionProps, y as DropdownMenuContentProps, yt as FieldStyles, z as EmptyPrimitive } from "../index-pCM7YTs1.mjs";
1
+ import { $ as EmptyMediaProps, A as DropdownMenuTriggerProps, At as FieldErrorProps, B as ToastRootProps, C as DropdownMenuPortalProps, Ct as InputPrimitive, D as DropdownMenuDividerProps, Dt as FieldPrimitive, E as DropdownMenuOverlayProps, Et as InputStyles, F as BadgePrimitive, G as AvatarRootProps, H as ToastDescriptionProps, I as BadgeRootProps, J as AvatarFallbackProps, K as AvatarStyles, L as BadgeStyles, M as TextareaPrimitiveBaseProps, Mt as FieldLabelProps, N as TextareaPrimitiveProps, O as DropdownMenuButtonProps, Ot as FieldPrimitiveRootProps, P as TextareaStyles, Q as EmptyTitleProps, R as BadgeLabelProps, S as DropdownMenuPrimitive, St as ButtonPrimitiveLabelProps, T as DropdownMenuStyles, Tt as InputPrimitiveProps, U as ToastTitleProps, V as ToastStyles, W as AvatarPrimitive, X as EmptyRootProps, Y as EmptyPrimitive, Z as EmptyStyles, _t as SelectTriggerProps, a as CalendarStyles, at as CardBodyProps, b as PopoverTriggerProps, bt as ButtonState, c as CalendarDayProps, ct as SelectPrimitive, d as PopoverPrimitive, dt as SelectRootProps, et as EmptyDescriptionProps, f as PopoverContext, ft as SelectStyles, g as PopoverRootProps, gt as SelectValueProps, h as PopoverPortalProps, ht as SelectOverlayProps, i as CalendarDayState, it as CardFooterProps, j as TextareaPrimitive, jt as FieldDescriptionProps, k as DropdownMenuContentProps, kt as FieldStyles, l as CalendarWeekLabelsProps, lt as SelectPortalProps, m as PopoverCloseProps, mt as SelectContentProps, n as CalendarNavButtonProps, nt as CardRootProps, o as CalendarTitleProps, ot as CardTitleProps, p as usePopover, pt as SelectOptionProps, q as AvatarImageProps, r as CalendarRootProps, rt as CardStyles, s as CalendarHeaderProps, st as CardHeaderProps, t as CalendarPrimitive, tt as CardPrimitive, u as CalendarWeeksProps, ut as SelectRootBaseProps, v as PopoverOverlayProps, vt as ButtonPrimitive, w as DropdownMenuRootProps, wt as InputPrimitiveBaseProps, x as PopoverTriggerRef, xt as ButtonStyles, y as PopoverContentProps, yt as ButtonPrimitiveRootProps, z as ToastPrimitive } from "../index-CCYJiglk.mjs";
2
2
  import "../use-relative-position-DBzhrBU7.mjs";
3
- export { AvatarFallbackProps, AvatarImageProps, AvatarPrimitive, AvatarRootProps, AvatarStyles, BadgeLabelProps, BadgePrimitive, BadgeRootProps, BadgeStyles, ButtonPrimitive, ButtonPrimitiveLabelProps, ButtonPrimitiveRootProps, ButtonState, ButtonStyles, CardBodyProps, CardFooterProps, CardHeaderProps, CardPrimitive, CardRootProps, CardStyles, CardTitleProps, DropdownMenuButtonProps, DropdownMenuContentProps, DropdownMenuDividerProps, DropdownMenuOverlayProps, DropdownMenuPortalProps, DropdownMenuPrimitive, DropdownMenuRootProps, DropdownMenuStyles, DropdownMenuTriggerProps, EmptyDescriptionProps, EmptyMediaProps, EmptyPrimitive, EmptyRootProps, EmptyStyles, EmptyTitleProps, FieldDescriptionProps, FieldErrorProps, FieldLabelProps, FieldPrimitive, FieldPrimitiveRootProps, FieldStyles, InputPrimitive, InputPrimitiveBaseProps, InputPrimitiveProps, InputStyles, PopoverCloseProps, PopoverContentProps, PopoverContext, PopoverOverlayProps, PopoverPortalProps, PopoverPrimitive, PopoverRootProps, PopoverTriggerProps, PopoverTriggerRef, SelectContentProps, SelectOptionProps, SelectOverlayProps, SelectPortalProps, SelectPrimitive, SelectRootBaseProps, SelectRootProps, SelectStyles, SelectTriggerProps, SelectValueProps, TextareaPrimitive, TextareaPrimitiveBaseProps, TextareaPrimitiveProps, TextareaStyles, ToastDescriptionProps, ToastPrimitive, ToastRootProps, ToastStyles, ToastTitleProps, usePopover };
3
+ export { AvatarFallbackProps, AvatarImageProps, AvatarPrimitive, AvatarRootProps, AvatarStyles, BadgeLabelProps, BadgePrimitive, BadgeRootProps, BadgeStyles, ButtonPrimitive, ButtonPrimitiveLabelProps, ButtonPrimitiveRootProps, ButtonState, ButtonStyles, CalendarDayProps, CalendarDayState, CalendarHeaderProps, CalendarNavButtonProps, CalendarPrimitive, CalendarRootProps, CalendarStyles, CalendarTitleProps, CalendarWeekLabelsProps, CalendarWeeksProps, CardBodyProps, CardFooterProps, CardHeaderProps, CardPrimitive, CardRootProps, CardStyles, CardTitleProps, DropdownMenuButtonProps, DropdownMenuContentProps, DropdownMenuDividerProps, DropdownMenuOverlayProps, DropdownMenuPortalProps, DropdownMenuPrimitive, DropdownMenuRootProps, DropdownMenuStyles, DropdownMenuTriggerProps, EmptyDescriptionProps, EmptyMediaProps, EmptyPrimitive, EmptyRootProps, EmptyStyles, EmptyTitleProps, FieldDescriptionProps, FieldErrorProps, FieldLabelProps, FieldPrimitive, FieldPrimitiveRootProps, FieldStyles, InputPrimitive, InputPrimitiveBaseProps, InputPrimitiveProps, InputStyles, PopoverCloseProps, PopoverContentProps, PopoverContext, PopoverOverlayProps, PopoverPortalProps, PopoverPrimitive, PopoverRootProps, PopoverTriggerProps, PopoverTriggerRef, SelectContentProps, SelectOptionProps, SelectOverlayProps, SelectPortalProps, SelectPrimitive, SelectRootBaseProps, SelectRootProps, SelectStyles, SelectTriggerProps, SelectValueProps, TextareaPrimitive, TextareaPrimitiveBaseProps, TextareaPrimitiveProps, TextareaStyles, ToastDescriptionProps, ToastPrimitive, ToastRootProps, ToastStyles, ToastTitleProps, usePopover };
@@ -1,4 +1,4 @@
1
- import { a as BadgePrimitive, c as EmptyPrimitive, d as ButtonPrimitive, f as InputPrimitive, i as TextareaPrimitive, l as CardPrimitive, n as usePopover, o as ToastPrimitive, p as FieldPrimitive, r as DropdownMenuPrimitive, s as AvatarPrimitive, t as PopoverPrimitive, u as SelectPrimitive } from "../primitives-DNeYBN-3.mjs";
1
+ import { a as TextareaPrimitive, c as AvatarPrimitive, d as SelectPrimitive, f as ButtonPrimitive, i as DropdownMenuPrimitive, l as EmptyPrimitive, m as FieldPrimitive, n as PopoverPrimitive, o as BadgePrimitive, p as InputPrimitive, r as usePopover, s as ToastPrimitive, t as CalendarPrimitive, u as CardPrimitive } from "../primitives-ApsPS0vU.mjs";
2
2
  import "../use-relative-position-BTKEyT1F.mjs";
3
3
 
4
- export { AvatarPrimitive, BadgePrimitive, ButtonPrimitive, CardPrimitive, DropdownMenuPrimitive, EmptyPrimitive, FieldPrimitive, InputPrimitive, PopoverPrimitive, SelectPrimitive, TextareaPrimitive, ToastPrimitive, usePopover };
4
+ export { AvatarPrimitive, BadgePrimitive, ButtonPrimitive, CalendarPrimitive, CardPrimitive, DropdownMenuPrimitive, EmptyPrimitive, FieldPrimitive, InputPrimitive, PopoverPrimitive, SelectPrimitive, TextareaPrimitive, ToastPrimitive, usePopover };