impact-nova 0.1.13 → 1.0.0
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/components/layout/dashboard-layout.d.ts +21 -6
- package/dist/components/ui/accordion-nested-list/accordion-nested-list.js +32 -33
- package/dist/components/ui/accordion.js +25 -23
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +5 -0
- package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +50 -52
- package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.d.ts +1 -1
- package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +34 -34
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +8 -11
- package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +17 -17
- package/dist/components/ui/ag-grid-react/headers/header-search-input.js +3 -3
- package/dist/components/ui/alert-dialog.js +45 -40
- package/dist/components/ui/alert.d.ts +21 -4
- package/dist/components/ui/alert.js +45 -25
- package/dist/components/ui/avatar.js +19 -16
- package/dist/components/ui/badge.js +8 -1
- package/dist/components/ui/breadcrumb.js +1 -0
- package/dist/components/ui/button-group.d.ts +1 -1
- package/dist/components/ui/button-group.js +27 -32
- package/dist/components/ui/button-variants.d.ts +1 -1
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.js +11 -9
- package/dist/components/ui/calendar.d.ts +14 -2
- package/dist/components/ui/calendar.js +443 -376
- package/dist/components/ui/card.js +7 -6
- package/dist/components/ui/checkbox.js +64 -48
- package/dist/components/ui/chips.d.ts +1 -0
- package/dist/components/ui/chips.js +27 -19
- package/dist/components/ui/data-table/data-table-column-list.d.ts +4 -1
- package/dist/components/ui/data-table/data-table-column-list.js +58 -54
- package/dist/components/ui/data-table/data-table-sheet.d.ts +1 -1
- package/dist/components/ui/data-table/data-table-sheet.js +43 -40
- package/dist/components/ui/data-table/data-table-view-options.js +17 -17
- package/dist/components/ui/data-table/data-table.js +21 -20
- package/dist/components/ui/date-picker/date-picker.js +83 -87
- package/dist/components/ui/date-picker/date-range-picker.js +129 -125
- package/dist/components/ui/date-picker/month-picker.js +90 -93
- package/dist/components/ui/date-picker/month-range-picker.js +132 -129
- package/dist/components/ui/date-picker/multi-date-picker.js +37 -38
- package/dist/components/ui/date-picker/multi-month-picker.js +29 -30
- package/dist/components/ui/date-picker/multi-week-picker.js +49 -38
- package/dist/components/ui/date-picker/week-picker.js +116 -112
- package/dist/components/ui/date-picker/week-range-picker.js +153 -142
- package/dist/components/ui/dialog.js +15 -6
- package/dist/components/ui/drawer.js +16 -13
- package/dist/components/ui/dropdown-menu.js +4 -2
- package/dist/components/ui/dynamic-layout.d.ts +2 -2
- package/dist/components/ui/dynamic-layout.js +18 -15
- package/dist/components/ui/empty-container.js +69 -64
- package/dist/components/ui/file-upload.js +113 -106
- package/dist/components/ui/filter-panel/filter-panel.js +49 -46
- package/dist/components/ui/filter-strip/filter-strip.js +41 -37
- package/dist/components/ui/header.js +26 -25
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +43 -40
- package/dist/components/ui/hover-card.js +6 -5
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.js +79 -68
- package/dist/components/ui/loader.d.ts +1 -0
- package/dist/components/ui/loader.js +23 -13
- package/dist/components/ui/nested-list/components/NestedListContent.d.ts +1 -3
- package/dist/components/ui/nested-list/components/NestedListContent.js +16 -15
- package/dist/components/ui/nested-list/components/SortableItem.js +116 -80
- package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.d.ts +13 -1
- package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.js +162 -112
- package/dist/components/ui/nested-list/nested-list.js +182 -189
- package/dist/components/ui/notification-panel/notification-item.js +19 -17
- package/dist/components/ui/notification-panel/notification-list.js +21 -21
- package/dist/components/ui/notification-panel/notification-panel.js +25 -25
- package/dist/components/ui/popover.js +37 -34
- package/dist/components/ui/progress.js +12 -10
- package/dist/components/ui/prompt.js +29 -27
- package/dist/components/ui/radio-group.js +55 -46
- package/dist/components/ui/select/components/Submenu.d.ts +1 -2
- package/dist/components/ui/select/components/Submenu.js +52 -48
- package/dist/components/ui/select/select.js +321 -324
- package/dist/components/ui/sheet.js +18 -15
- package/dist/components/ui/sidebar.d.ts +2 -2
- package/dist/components/ui/sidebar.js +3 -3
- package/dist/components/ui/skeleton.d.ts +2 -1
- package/dist/components/ui/skeleton.js +12 -11
- package/dist/components/ui/slider.js +39 -12
- package/dist/components/ui/smart-input.js +44 -39
- package/dist/components/ui/stepper.js +33 -29
- package/dist/components/ui/switch.js +6 -4
- package/dist/components/ui/tabs.js +50 -45
- package/dist/components/ui/tag-group.d.ts +2 -1
- package/dist/components/ui/tag-group.js +29 -25
- package/dist/components/ui/tag.d.ts +1 -0
- package/dist/components/ui/tag.js +26 -20
- package/dist/components/ui/textarea.js +18 -17
- package/dist/components/ui/toast.d.ts +1 -1
- package/dist/components/ui/toast.js +47 -41
- package/dist/components/ui/toaster.js +42 -42
- package/dist/components/ui/tooltip.js +18 -16
- package/dist/components/ui/types/date-picker.types.d.ts +33 -0
- package/dist/components/ui/types/empty-container.types.d.ts +5 -0
- package/dist/components/ui/types/nested-list.types.d.ts +1 -0
- package/dist/components/ui/types/select.types.d.ts +0 -1
- package/dist/icons/assets/bookmark.svg.js +4 -0
- package/dist/icons/assets/bookmark.svg2.js +5 -0
- package/dist/icons/assets/bookmarkFilled.svg.js +4 -0
- package/dist/icons/assets/bookmarkFilled.svg2.js +5 -0
- package/dist/icons/assets/download.svg.js +4 -0
- package/dist/icons/assets/download.svg2.js +5 -0
- package/dist/icons/index.d.ts +20 -6
- package/dist/icons/index.js +398 -370
- package/dist/impact-nova.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +318 -314
- package/dist/lib/fiscal-calendar.d.ts +62 -0
- package/dist/lib/fiscal-calendar.js +99 -0
- package/package.json +5 -5
- package/dist/components/ui/select/hooks/useClickOutside.d.ts +0 -15
- package/dist/components/ui/select/hooks/useClickOutside.js +0 -43
- package/dist/components/ui/select/hooks/useMenuPosition.d.ts +0 -2
- package/dist/components/ui/select/hooks/useMenuPosition.js +0 -89
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { Slot as
|
|
3
|
+
import { Slot as u } from "@radix-ui/react-slot";
|
|
4
4
|
import "class-variance-authority";
|
|
5
|
-
import { cn as
|
|
5
|
+
import { cn as p } from "../../lib/utils.js";
|
|
6
6
|
import { Tooltip as b, TooltipTrigger as h, TooltipContent as T } from "./tooltip.js";
|
|
7
7
|
import { buttonVariants as x } from "./button-variants.js";
|
|
8
8
|
const C = f.forwardRef(
|
|
9
|
-
({ className: r, variant:
|
|
10
|
-
const c = e ?
|
|
9
|
+
({ className: r, variant: n, size: a, asChild: e = !1, tooltipSide: l = "top", ...t }, s) => {
|
|
10
|
+
const c = e ? u : "button", m = a === "icon" && t["aria-label"], i = /* @__PURE__ */ o(
|
|
11
11
|
c,
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
13
|
+
className: p(x({ variant: n, size: a, className: r })),
|
|
14
|
+
"data-variant": n ?? "default",
|
|
15
|
+
"data-size": a ?? "default",
|
|
14
16
|
ref: s,
|
|
15
|
-
...
|
|
17
|
+
...t
|
|
16
18
|
}
|
|
17
19
|
);
|
|
18
20
|
return m ? /* @__PURE__ */ d(b, { children: [
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ o(h, { asChild: !0, children: t.disabled ? /* @__PURE__ */ o("span", { tabIndex: -1, className: "inline-block outline-none", children: i }) : i }),
|
|
22
|
+
/* @__PURE__ */ o(T, { variant: "tertiary", side: l, children: t["aria-label"] })
|
|
21
23
|
] }) : i;
|
|
22
24
|
}
|
|
23
25
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DayButton, DayPicker, DateRange } from 'react-day-picker';
|
|
2
2
|
import { Button } from './button';
|
|
3
|
+
import { CalendarType, FiscalMode, SelectionMode, FiscalMonthPattern } from '../../lib/fiscal-calendar';
|
|
3
4
|
import * as React from "react";
|
|
4
5
|
export interface WeekSelection {
|
|
5
6
|
year: number;
|
|
@@ -26,7 +27,6 @@ export interface CalendarProps extends Omit<React.ComponentProps<typeof DayPicke
|
|
|
26
27
|
onApply?: (date: Date | Date[] | DateRange | undefined) => void;
|
|
27
28
|
onCancel?: () => void;
|
|
28
29
|
onClear?: () => void;
|
|
29
|
-
onPendingChange?: (date: Date | Date[] | DateRange | WeekSelection | WeekSelection[] | WeekRange | MonthSelection | MonthSelection[] | MonthRange | undefined) => void;
|
|
30
30
|
fromYear?: number;
|
|
31
31
|
toYear?: number;
|
|
32
32
|
mode?: "single" | "multiple" | "range";
|
|
@@ -36,11 +36,23 @@ export interface CalendarProps extends Omit<React.ComponentProps<typeof DayPicke
|
|
|
36
36
|
weekMode?: "single" | "multiple" | "range";
|
|
37
37
|
selectedWeeks?: WeekSelection | WeekSelection[] | WeekRange;
|
|
38
38
|
onWeekSelect?: (weeks: WeekSelection | WeekSelection[] | WeekRange | undefined) => void;
|
|
39
|
+
/** Whether to use standard calendar weeks or fiscal weeks. Default: "calendar" */
|
|
40
|
+
calendarType?: CalendarType;
|
|
41
|
+
/** Only relevant when calendarType="fiscal". Default: "basic" */
|
|
42
|
+
fiscalMode?: FiscalMode;
|
|
43
|
+
/** What a click selects. "fiscalMonth" only applies with fiscalMode="advanced"|"custom". Default: "week" */
|
|
44
|
+
selectionMode?: SelectionMode;
|
|
45
|
+
/** Array of 12 week-counts per fiscal month. Required for fiscalMode="custom", optional for "advanced" (defaults to 4-4-5). */
|
|
46
|
+
fiscalMonthPattern?: FiscalMonthPattern;
|
|
47
|
+
/** 1-based month where the fiscal year starts. Default: 1 (January) */
|
|
48
|
+
fiscalYearStartMonth?: number;
|
|
49
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
39
50
|
monthMode?: "single" | "multiple" | "range";
|
|
40
51
|
selectedMonths?: MonthSelection | MonthSelection[] | MonthRange;
|
|
41
52
|
onMonthSelect?: (months: MonthSelection | MonthSelection[] | MonthRange | undefined) => void;
|
|
42
53
|
}
|
|
43
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, showFooter, onApply, onCancel, onClear,
|
|
54
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, showFooter, onApply, onCancel, onClear, fromYear, toYear, mode, selected, onSelect, fromDate, toDate, fromMonth, toMonth, pickerType, weekMode, selectedWeeks, onWeekSelect, calendarType, fiscalMode, selectionMode, fiscalMonthPattern, fiscalYearStartMonth, weekStartsOn, // Default Monday
|
|
55
|
+
monthMode, selectedMonths, onMonthSelect, month, defaultMonth, onMonthChange, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
44
56
|
declare function CalendarDayButton({ className, day, modifiers, pickerType, ...props }: React.ComponentProps<typeof DayButton> & {
|
|
45
57
|
pickerType?: "date" | "week" | "month";
|
|
46
58
|
}): import("react/jsx-runtime").JSX.Element;
|