@mlw-packages/react-components 1.10.28 → 1.10.30

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.css CHANGED
@@ -6002,9 +6002,6 @@ body {
6002
6002
  .group:hover .group-hover\:text-destructive {
6003
6003
  color: hsl(var(--destructive));
6004
6004
  }
6005
- .group:hover .group-hover\:text-foreground {
6006
- color: hsl(var(--foreground));
6007
- }
6008
6005
  .group:hover .group-hover\:text-primary {
6009
6006
  color: hsl(var(--primary));
6010
6007
  }
@@ -7787,10 +7784,18 @@ body {
7787
7784
  padding-left: 0.75rem;
7788
7785
  padding-right: 0.75rem;
7789
7786
  }
7787
+ .sm\:px-4 {
7788
+ padding-left: 1rem;
7789
+ padding-right: 1rem;
7790
+ }
7790
7791
  .sm\:px-6 {
7791
7792
  padding-left: 1.5rem;
7792
7793
  padding-right: 1.5rem;
7793
7794
  }
7795
+ .sm\:py-4 {
7796
+ padding-top: 1rem;
7797
+ padding-bottom: 1rem;
7798
+ }
7794
7799
  .sm\:pe-4 {
7795
7800
  padding-inline-end: 1rem;
7796
7801
  }
@@ -8032,6 +8037,10 @@ body {
8032
8037
  padding-left: 2rem;
8033
8038
  padding-right: 2rem;
8034
8039
  }
8040
+ .lg\:text-2xl {
8041
+ font-size: 1.5rem;
8042
+ line-height: 2rem;
8043
+ }
8035
8044
  .lg\:text-xl {
8036
8045
  font-size: 1.25rem;
8037
8046
  line-height: 1.75rem;
@@ -8050,10 +8059,6 @@ body {
8050
8059
  .xl\:grid-cols-4 {
8051
8060
  grid-template-columns: repeat(4, minmax(0, 1fr));
8052
8061
  }
8053
- .xl\:text-2xl {
8054
- font-size: 1.5rem;
8055
- line-height: 2rem;
8056
- }
8057
8062
  }
8058
8063
  .\[\&\:\:-webkit-scrollbar-thumb\]\:rounded-full::-webkit-scrollbar-thumb {
8059
8064
  border-radius: 9999px;
package/dist/index.d.mts CHANGED
@@ -28,7 +28,6 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
28
28
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
29
29
  import { UniqueIdentifier, DraggableAttributes } from '@dnd-kit/core';
30
30
  import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
31
- import * as _phosphor_icons_react from '@phosphor-icons/react';
32
31
  import { IconProps as IconProps$1 } from '@phosphor-icons/react';
33
32
 
34
33
  type ErrorMessageProps = {
@@ -1006,9 +1005,10 @@ interface DayViewProps$1 {
1006
1005
  showUndatedEvents?: boolean;
1007
1006
  /** When true, hides event times */
1008
1007
  noTime?: boolean;
1008
+ allDayCell?: boolean;
1009
1009
  onEventCreate?: (startTime: Date) => void;
1010
1010
  }
1011
- declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, onEventCreate, }: DayViewProps$1): react_jsx_runtime.JSX.Element;
1011
+ declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, onEventCreate, allDayCell, }: DayViewProps$1): react_jsx_runtime.JSX.Element;
1012
1012
 
1013
1013
  interface DroppableCellProps$1 {
1014
1014
  id: string;
@@ -1036,13 +1036,14 @@ interface EventCalendarProps$1 {
1036
1036
  onlyAgenda?: boolean;
1037
1037
  onlyYear?: boolean;
1038
1038
  allowCellClick?: boolean;
1039
+ allDayCell?: boolean;
1039
1040
  }
1040
1041
  interface ModalLikeProps {
1041
1042
  event?: CalendarEventAgenda;
1042
1043
  onClose?: () => void;
1043
1044
  [key: string]: unknown;
1044
1045
  }
1045
- declare function EventAgenda({ events, optionsViewEvents, onEventUpdate, className, initialView, initialDate, onClick, showYearView, noTime, onlyDay, onlyMonth, onlyWeek, onlyAgenda, onlyYear, allowCellClick, }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
1046
+ declare function EventAgenda({ events, optionsViewEvents, onEventUpdate, className, initialView, initialDate, onClick, showYearView, noTime, onlyDay, onlyMonth, onlyWeek, onlyAgenda, onlyYear, allowCellClick, allDayCell, }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
1046
1047
 
1047
1048
  interface EventItemProps$1 {
1048
1049
  event: CalendarEventAgenda;
@@ -1155,10 +1156,11 @@ interface WeekViewProps$1 {
1155
1156
  onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
1156
1157
  onEventCreate?: (startTime: Date) => void;
1157
1158
  showUndatedEvents?: boolean;
1159
+ allDayCell?: boolean;
1158
1160
  /** When true, hides event times */
1159
1161
  noTime?: boolean;
1160
1162
  }
1161
- declare function WeekViewAgenda({ currentDate, events, onEventSelect, onEventCreate, showUndatedEvents, noTime, }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
1163
+ declare function WeekViewAgenda({ currentDate, events, onEventSelect, allDayCell, onEventCreate, showUndatedEvents, noTime, }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
1162
1164
 
1163
1165
  interface YearViewProps {
1164
1166
  currentDate: Date;
@@ -2649,6 +2651,7 @@ interface CommandPaletteProps {
2649
2651
  multiSelect?: boolean;
2650
2652
  onSelectMultiple?: (items: CommandItem[]) => void;
2651
2653
  multiSearch?: boolean;
2654
+ onMultiSearchSubmit?: (terms: string[]) => void;
2652
2655
  debounceDelay?: number;
2653
2656
  footer?: React$1.ReactNode;
2654
2657
  onSelect?: (item: CommandItem) => void;
@@ -2692,7 +2695,7 @@ declare function CommandItemRow({ item, isActive, isSelected, multiSelect, onSel
2692
2695
 
2693
2696
  declare function CommandPalette(props: CommandPaletteProps): react_jsx_runtime.JSX.Element;
2694
2697
 
2695
- declare function useCommandPalette({ items, groups, open, onOpenChange, recentItems, onRecentItemsChange, maxRecentItems, multiSearch, multiSelect, onSelectMultiple, }: Partial<CommandPaletteProps>): {
2698
+ declare function useCommandPalette({ items, groups, open, onOpenChange, recentItems, onRecentItemsChange, maxRecentItems, multiSearch, multiSelect, onSelectMultiple, onMultiSearchSubmit, }: Partial<CommandPaletteProps>): {
2696
2699
  query: string;
2697
2700
  setQuery: React$1.Dispatch<React$1.SetStateAction<string>>;
2698
2701
  activeIndex: number;
@@ -2700,13 +2703,7 @@ declare function useCommandPalette({ items, groups, open, onOpenChange, recentIt
2700
2703
  page: number;
2701
2704
  setPage: React$1.Dispatch<React$1.SetStateAction<number>>;
2702
2705
  searchTerms: string[];
2703
- allMatchedGroups: (CommandGroup | {
2704
- id: string;
2705
- label: string;
2706
- icon: React$1.FunctionComponentElement<_phosphor_icons_react.IconProps>;
2707
- items: CommandItem[];
2708
- priority: number;
2709
- })[];
2706
+ allMatchedGroups: CommandGroup[];
2710
2707
  allFlatItems: CommandItem[];
2711
2708
  displayedGroups: CommandGroup[];
2712
2709
  flatItems: CommandItem[];
package/dist/index.d.ts CHANGED
@@ -28,7 +28,6 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
28
28
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
29
29
  import { UniqueIdentifier, DraggableAttributes } from '@dnd-kit/core';
30
30
  import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
31
- import * as _phosphor_icons_react from '@phosphor-icons/react';
32
31
  import { IconProps as IconProps$1 } from '@phosphor-icons/react';
33
32
 
34
33
  type ErrorMessageProps = {
@@ -1006,9 +1005,10 @@ interface DayViewProps$1 {
1006
1005
  showUndatedEvents?: boolean;
1007
1006
  /** When true, hides event times */
1008
1007
  noTime?: boolean;
1008
+ allDayCell?: boolean;
1009
1009
  onEventCreate?: (startTime: Date) => void;
1010
1010
  }
1011
- declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, onEventCreate, }: DayViewProps$1): react_jsx_runtime.JSX.Element;
1011
+ declare function DayViewAgenda({ currentDate, events, onEventSelect, showUndatedEvents, noTime, onEventCreate, allDayCell, }: DayViewProps$1): react_jsx_runtime.JSX.Element;
1012
1012
 
1013
1013
  interface DroppableCellProps$1 {
1014
1014
  id: string;
@@ -1036,13 +1036,14 @@ interface EventCalendarProps$1 {
1036
1036
  onlyAgenda?: boolean;
1037
1037
  onlyYear?: boolean;
1038
1038
  allowCellClick?: boolean;
1039
+ allDayCell?: boolean;
1039
1040
  }
1040
1041
  interface ModalLikeProps {
1041
1042
  event?: CalendarEventAgenda;
1042
1043
  onClose?: () => void;
1043
1044
  [key: string]: unknown;
1044
1045
  }
1045
- declare function EventAgenda({ events, optionsViewEvents, onEventUpdate, className, initialView, initialDate, onClick, showYearView, noTime, onlyDay, onlyMonth, onlyWeek, onlyAgenda, onlyYear, allowCellClick, }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
1046
+ declare function EventAgenda({ events, optionsViewEvents, onEventUpdate, className, initialView, initialDate, onClick, showYearView, noTime, onlyDay, onlyMonth, onlyWeek, onlyAgenda, onlyYear, allowCellClick, allDayCell, }: EventCalendarProps$1): react_jsx_runtime.JSX.Element;
1046
1047
 
1047
1048
  interface EventItemProps$1 {
1048
1049
  event: CalendarEventAgenda;
@@ -1155,10 +1156,11 @@ interface WeekViewProps$1 {
1155
1156
  onEventSelect: (event: CalendarEventAgenda, e?: React__default.MouseEvent) => void;
1156
1157
  onEventCreate?: (startTime: Date) => void;
1157
1158
  showUndatedEvents?: boolean;
1159
+ allDayCell?: boolean;
1158
1160
  /** When true, hides event times */
1159
1161
  noTime?: boolean;
1160
1162
  }
1161
- declare function WeekViewAgenda({ currentDate, events, onEventSelect, onEventCreate, showUndatedEvents, noTime, }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
1163
+ declare function WeekViewAgenda({ currentDate, events, onEventSelect, allDayCell, onEventCreate, showUndatedEvents, noTime, }: WeekViewProps$1): react_jsx_runtime.JSX.Element;
1162
1164
 
1163
1165
  interface YearViewProps {
1164
1166
  currentDate: Date;
@@ -2649,6 +2651,7 @@ interface CommandPaletteProps {
2649
2651
  multiSelect?: boolean;
2650
2652
  onSelectMultiple?: (items: CommandItem[]) => void;
2651
2653
  multiSearch?: boolean;
2654
+ onMultiSearchSubmit?: (terms: string[]) => void;
2652
2655
  debounceDelay?: number;
2653
2656
  footer?: React$1.ReactNode;
2654
2657
  onSelect?: (item: CommandItem) => void;
@@ -2692,7 +2695,7 @@ declare function CommandItemRow({ item, isActive, isSelected, multiSelect, onSel
2692
2695
 
2693
2696
  declare function CommandPalette(props: CommandPaletteProps): react_jsx_runtime.JSX.Element;
2694
2697
 
2695
- declare function useCommandPalette({ items, groups, open, onOpenChange, recentItems, onRecentItemsChange, maxRecentItems, multiSearch, multiSelect, onSelectMultiple, }: Partial<CommandPaletteProps>): {
2698
+ declare function useCommandPalette({ items, groups, open, onOpenChange, recentItems, onRecentItemsChange, maxRecentItems, multiSearch, multiSelect, onSelectMultiple, onMultiSearchSubmit, }: Partial<CommandPaletteProps>): {
2696
2699
  query: string;
2697
2700
  setQuery: React$1.Dispatch<React$1.SetStateAction<string>>;
2698
2701
  activeIndex: number;
@@ -2700,13 +2703,7 @@ declare function useCommandPalette({ items, groups, open, onOpenChange, recentIt
2700
2703
  page: number;
2701
2704
  setPage: React$1.Dispatch<React$1.SetStateAction<number>>;
2702
2705
  searchTerms: string[];
2703
- allMatchedGroups: (CommandGroup | {
2704
- id: string;
2705
- label: string;
2706
- icon: React$1.FunctionComponentElement<_phosphor_icons_react.IconProps>;
2707
- items: CommandItem[];
2708
- priority: number;
2709
- })[];
2706
+ allMatchedGroups: CommandGroup[];
2710
2707
  allFlatItems: CommandItem[];
2711
2708
  displayedGroups: CommandGroup[];
2712
2709
  flatItems: CommandItem[];