@northlight/ui 2.27.2 → 2.27.4

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.
@@ -1069,7 +1069,7 @@ interface IntentButtonProps extends CenterProps {
1069
1069
  */
1070
1070
  declare const IntentButton: ({ icon, timeout, ringColor, onTimeout, tooltipText, "aria-label": ariaLabel, ...rest }: IntentButtonProps) => JSX.Element;
1071
1071
 
1072
- interface ToolboxProps extends Omit<FlexProps, 'direction'> {
1072
+ interface ToolboxProps extends Omit<FlexProps, 'direction' | 'zIndex'> {
1073
1073
  isResizable?: boolean;
1074
1074
  isOpen: boolean;
1075
1075
  /** where the toolbox pops in from */
@@ -1084,6 +1084,7 @@ interface ToolboxProps extends Omit<FlexProps, 'direction'> {
1084
1084
  autoFocus?: boolean;
1085
1085
  /** limit the sizing of the toolbox */
1086
1086
  resizeLimit?: 'half' | 'full';
1087
+ zIndex?: number;
1087
1088
  }
1088
1089
  interface ToolboxHeaderProps extends FlexProps {
1089
1090
  onClose?: () => void;
@@ -1133,9 +1134,7 @@ interface ToolboxFooterProps extends FlexProps {
1133
1134
  }
1134
1135
  * ?)
1135
1136
  */
1136
- declare const Toolbox: ({ isResizable, isOpen, children, direction, shouldPush, size, onClose, autoFocus, resizeLimit, zIndex, ...rest }: Omit<ToolboxProps, "zIndex"> & {
1137
- zIndex: number;
1138
- }) => JSX.Element;
1137
+ declare const Toolbox: ({ isResizable, isOpen, children, direction, shouldPush, size, onClose, autoFocus, resizeLimit, zIndex, ...rest }: ToolboxProps) => JSX.Element;
1139
1138
 
1140
1139
  /**
1141
1140
  * @see Toolbox
@@ -6473,7 +6473,7 @@ const getWeekNumberAtStartOfMonth = (year, month, weekDay) => {
6473
6473
  30,
6474
6474
  31
6475
6475
  ];
6476
- const totalDaysUntilMonth = daysInMonths.slice(1, month).reduce(add, 0);
6476
+ const totalDaysUntilMonth = daysInMonths.slice(1, month).reduce(add, 1);
6477
6477
  const weekNumber = Math.ceil(totalDaysUntilMonth / 7);
6478
6478
  return weekNumber;
6479
6479
  };