kiban-design-system 3.11.0 → 3.13.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/table-search-filters.d.ts +34 -0
- package/dist/components/table-search-filters.d.ts.map +1 -0
- package/dist/components/table-search-filters.js +222 -0
- package/dist/components/totalizer.d.ts +7 -0
- package/dist/components/totalizer.d.ts.map +1 -0
- package/dist/components/totalizer.js +22 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +56 -0
- package/dist/components/ui/popover.d.ts +11 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +81 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +104 -90
- package/dist/node_modules/@date-fns/tz/date/index.js +61 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js +69 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +22 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +240 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +548 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +58 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +49 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/date-fns/addDays.js +9 -0
- package/dist/node_modules/date-fns/addMonths.js +19 -0
- package/dist/node_modules/date-fns/addWeeks.js +7 -0
- package/dist/node_modules/date-fns/addYears.js +7 -0
- package/dist/node_modules/date-fns/constants.js +8 -0
- package/dist/node_modules/date-fns/constructFrom.js +7 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +15 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +12 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +16 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js +16 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/endOfMonth.js +8 -0
- package/dist/node_modules/date-fns/endOfWeek.js +9 -0
- package/dist/node_modules/date-fns/endOfYear.js +8 -0
- package/dist/node_modules/date-fns/format.js +57 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +10 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +9 -0
- package/dist/node_modules/date-fns/getISOWeek.js +11 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +14 -0
- package/dist/node_modules/date-fns/getMonth.js +7 -0
- package/dist/node_modules/date-fns/getWeek.js +11 -0
- package/dist/node_modules/date-fns/getWeekYear.js +15 -0
- package/dist/node_modules/date-fns/getYear.js +7 -0
- package/dist/node_modules/date-fns/isAfter.js +7 -0
- package/dist/node_modules/date-fns/isBefore.js +7 -0
- package/dist/node_modules/date-fns/isDate.js +6 -0
- package/dist/node_modules/date-fns/isSameDay.js +13 -0
- package/dist/node_modules/date-fns/isSameMonth.js +12 -0
- package/dist/node_modules/date-fns/isSameYear.js +12 -0
- package/dist/node_modules/date-fns/isValid.js +8 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +110 -0
- package/dist/node_modules/date-fns/locale/en-US.js +20 -0
- package/dist/node_modules/date-fns/max.js +13 -0
- package/dist/node_modules/date-fns/min.js +13 -0
- package/dist/node_modules/date-fns/parseISO.js +121 -0
- package/dist/node_modules/date-fns/setMonth.js +12 -0
- package/dist/node_modules/date-fns/setYear.js +9 -0
- package/dist/node_modules/date-fns/startOfDay.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +10 -0
- package/dist/node_modules/date-fns/startOfMonth.js +8 -0
- package/dist/node_modules/date-fns/startOfWeek.js +9 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +11 -0
- package/dist/node_modules/date-fns/startOfYear.js +8 -0
- package/dist/node_modules/date-fns/toDate.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +234 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +148 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +27 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +24 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +37 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +104 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +56 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +75 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
- package/dist/style.css +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type FilterValueType = "text" | "select" | "date";
|
|
2
|
+
export interface TableSearchFilterDefinition {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
type: FilterValueType;
|
|
6
|
+
options?: {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
}
|
|
11
|
+
export interface AppliedFilter {
|
|
12
|
+
filterId: string;
|
|
13
|
+
label: string;
|
|
14
|
+
value: string;
|
|
15
|
+
displayValue?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TableSearchFiltersProps {
|
|
18
|
+
entityLabel?: string;
|
|
19
|
+
showSearch?: boolean;
|
|
20
|
+
searchValue?: string;
|
|
21
|
+
onSearchChange?: (value: string) => void;
|
|
22
|
+
availableFilters: TableSearchFilterDefinition[];
|
|
23
|
+
appliedFilters: AppliedFilter[];
|
|
24
|
+
onFilterAdd: (filterId: string, value: string, displayValue?: string) => void;
|
|
25
|
+
onFilterEdit: (filterId: string, value: string, displayValue?: string) => void;
|
|
26
|
+
onFilterRemove: (filterId: string) => void;
|
|
27
|
+
onClearAll: () => void;
|
|
28
|
+
searchPlaceholder?: string;
|
|
29
|
+
filterSearchPlaceholder?: string;
|
|
30
|
+
addFilterLabel?: string;
|
|
31
|
+
clearFiltersLabel?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare function TableSearchFilters({ entityLabel, showSearch, searchValue, onSearchChange, availableFilters, appliedFilters, onFilterAdd, onFilterEdit, onFilterRemove, onClearAll, searchPlaceholder, filterSearchPlaceholder, addFilterLabel, clearFiltersLabel, }: TableSearchFiltersProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=table-search-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-search-filters.d.ts","sourceRoot":"","sources":["../../src/components/table-search-filters.tsx"],"names":[],"mappings":"AAWA,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEzD,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,eAAe,CAAC;IACtB,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC9C;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gBAAgB,EAAE,2BAA2B,EAAE,CAAC;IAChD,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9E,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/E,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAUD,wBAAgB,kBAAkB,CAAC,EACjC,WAAW,EACX,UAAiB,EACjB,WAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,uBAA4C,EAC5C,cAAiC,EACjC,iBAAqC,GACtC,EAAE,uBAAuB,2CAwQzB"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { jsxs as l, jsx as t, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { SearchIcon as F, ChevronDownIcon as U, XIcon as W, CheckIcon as Y } from "lucide-react";
|
|
4
|
+
import { Popover as Z, PopoverTrigger as ee, PopoverContent as te } from "./ui/popover.js";
|
|
5
|
+
import { Button as re } from "./ui/button.js";
|
|
6
|
+
import { Input as N } from "./ui/input.js";
|
|
7
|
+
import { Calendar as le } from "./ui/calendar.js";
|
|
8
|
+
import { cn as ne } from "../lib/utils.js";
|
|
9
|
+
import { parseISO as ae } from "../node_modules/date-fns/parseISO.js";
|
|
10
|
+
import { format as T } from "../node_modules/date-fns/format.js";
|
|
11
|
+
const V = "yyyy-MM-dd";
|
|
12
|
+
function oe(o) {
|
|
13
|
+
if (!o) return;
|
|
14
|
+
const d = ae(o);
|
|
15
|
+
return Number.isNaN(d.getTime()) ? void 0 : d;
|
|
16
|
+
}
|
|
17
|
+
function be({
|
|
18
|
+
entityLabel: o,
|
|
19
|
+
showSearch: d = !0,
|
|
20
|
+
searchValue: z = "",
|
|
21
|
+
onSearchChange: A,
|
|
22
|
+
availableFilters: S,
|
|
23
|
+
appliedFilters: f,
|
|
24
|
+
onFilterAdd: O,
|
|
25
|
+
onFilterEdit: E,
|
|
26
|
+
onFilterRemove: L,
|
|
27
|
+
onClearAll: B,
|
|
28
|
+
searchPlaceholder: P,
|
|
29
|
+
filterSearchPlaceholder: $ = "Buscar filtro...",
|
|
30
|
+
addFilterLabel: j = "Agregar filtro",
|
|
31
|
+
clearFiltersLabel: M = "Limpiar filtros"
|
|
32
|
+
}) {
|
|
33
|
+
const [R, u] = a.useState(!1), [w, h] = a.useState("filter"), [r, p] = a.useState(null), [b, C] = a.useState(""), [s, m] = a.useState(""), [i, c] = a.useState(void 0), [_, v] = a.useState(
|
|
34
|
+
null
|
|
35
|
+
), K = new Set(f.map((e) => e.filterId)), I = S.filter((e) => !K.has(e.id)), k = b ? I.filter(
|
|
36
|
+
(e) => e.label.toLowerCase().includes(b.toLowerCase())
|
|
37
|
+
) : I, D = P ?? (o ? `Buscar ${o}...` : ""), x = () => {
|
|
38
|
+
h("filter"), p(null), C(""), m(""), c(void 0), v(null);
|
|
39
|
+
}, Q = (e) => {
|
|
40
|
+
p(e), h("value"), m(""), c(void 0), v(null), e.type === "date" && c(void 0);
|
|
41
|
+
}, X = (e) => {
|
|
42
|
+
const n = S.find((y) => y.id === e.filterId);
|
|
43
|
+
n && (p(n), h("value"), v(e.filterId), m((n.type === "select", e.value)), c(
|
|
44
|
+
n.type === "date" ? oe(e.value) : void 0
|
|
45
|
+
));
|
|
46
|
+
}, q = () => {
|
|
47
|
+
u(!1), x();
|
|
48
|
+
}, g = (e, n) => {
|
|
49
|
+
!r || e === "" || (_ ? E(r.id, e, n) : O(r.id, e, n), q());
|
|
50
|
+
}, G = () => {
|
|
51
|
+
if (!r || r.type === "text" && !s.trim()) return;
|
|
52
|
+
const e = r.type === "date" ? i ? T(i, V) : "" : s, n = r.type === "select" && r.options ? r.options.find((y) => y.value === e)?.label ?? e : r.type === "date" && i ? i.toLocaleDateString() : void 0;
|
|
53
|
+
g(e, n);
|
|
54
|
+
}, H = r?.type === "text" && s.trim() !== "";
|
|
55
|
+
return /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2 w-full", children: [
|
|
56
|
+
d && /* @__PURE__ */ l("div", { className: "relative flex-1 min-w-[200px] max-w-md", children: [
|
|
57
|
+
/* @__PURE__ */ t(F, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground" }),
|
|
58
|
+
/* @__PURE__ */ t(
|
|
59
|
+
N,
|
|
60
|
+
{
|
|
61
|
+
type: "search",
|
|
62
|
+
placeholder: D,
|
|
63
|
+
value: z,
|
|
64
|
+
onChange: (e) => A?.(e.target.value),
|
|
65
|
+
className: "h-7 pl-9 rounded-lg",
|
|
66
|
+
"aria-label": D || "Buscar"
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] }),
|
|
70
|
+
f.map((e) => /* @__PURE__ */ l(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
className: "inline-flex h-7 items-center rounded-lg border bg-background overflow-hidden",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ l(
|
|
76
|
+
"button",
|
|
77
|
+
{
|
|
78
|
+
type: "button",
|
|
79
|
+
onClick: () => {
|
|
80
|
+
u(!0), X(e);
|
|
81
|
+
},
|
|
82
|
+
className: "inline-flex items-center gap-1.5 pl-2.5 pr-1 h-full text-left hover:bg-accent/50 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-l-md",
|
|
83
|
+
"aria-label": `Editar filtro ${e.label}: ${e.displayValue ?? e.value}`,
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ l("span", { className: "text-xs text-text-light", children: [
|
|
86
|
+
e.label,
|
|
87
|
+
":"
|
|
88
|
+
] }),
|
|
89
|
+
/* @__PURE__ */ t("span", { className: "text-xs font-semibold text-foreground", children: e.displayValue ?? e.value }),
|
|
90
|
+
/* @__PURE__ */ t(U, { className: "size-3.5 text-text-light shrink-0" })
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
/* @__PURE__ */ t(
|
|
95
|
+
"button",
|
|
96
|
+
{
|
|
97
|
+
type: "button",
|
|
98
|
+
onClick: () => L(e.filterId),
|
|
99
|
+
className: "h-full px-1.5 border-l border-border hover:bg-accent focus-visible:ring-2 focus-visible:ring-ring rounded-r-md flex items-center",
|
|
100
|
+
"aria-label": `Quitar filtro ${e.label}`,
|
|
101
|
+
children: /* @__PURE__ */ t(W, { className: "size-3.5 text-text-light" })
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
e.filterId
|
|
107
|
+
)),
|
|
108
|
+
/* @__PURE__ */ l("div", { className: "flex items-center gap-3", children: [
|
|
109
|
+
/* @__PURE__ */ l(Z, { open: R, onOpenChange: (e) => {
|
|
110
|
+
u(e), e || x();
|
|
111
|
+
}, children: [
|
|
112
|
+
/* @__PURE__ */ t(ee, { asChild: !0, children: /* @__PURE__ */ l(
|
|
113
|
+
re,
|
|
114
|
+
{
|
|
115
|
+
type: "button",
|
|
116
|
+
variant: "ghost",
|
|
117
|
+
size: "sm",
|
|
118
|
+
className: "h-7 text-xs font-semibold",
|
|
119
|
+
onClick: () => {
|
|
120
|
+
u(!0), x();
|
|
121
|
+
},
|
|
122
|
+
children: [
|
|
123
|
+
"+ ",
|
|
124
|
+
j
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
) }),
|
|
128
|
+
/* @__PURE__ */ l(te, { className: "w-auto p-0 min-w-[220px]", align: "start", children: [
|
|
129
|
+
w === "filter" && /* @__PURE__ */ l("div", { className: "w-full", children: [
|
|
130
|
+
/* @__PURE__ */ l("div", { className: "relative w-full mb-2", children: [
|
|
131
|
+
/* @__PURE__ */ t(F, { className: "absolute left-2.5 top-1/2 -translate-y-1/2 size-4 text-muted-foreground pointer-events-none" }),
|
|
132
|
+
/* @__PURE__ */ t(
|
|
133
|
+
N,
|
|
134
|
+
{
|
|
135
|
+
placeholder: $,
|
|
136
|
+
value: b,
|
|
137
|
+
onChange: (e) => C(e.target.value),
|
|
138
|
+
className: "w-full h-10 pl-8 text-sm border-0 rounded-none border-b border-border bg-transparent shadow-none focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-border hover:border-border"
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
] }),
|
|
142
|
+
/* @__PURE__ */ t("div", { className: "max-h-[240px] overflow-y-auto", children: k.length === 0 ? /* @__PURE__ */ t("p", { className: "py-4 text-center text-sm text-muted-foreground", children: "No hay filtros disponibles" }) : /* @__PURE__ */ t("ul", { className: "space-y-0.5", children: k.map((e) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(
|
|
143
|
+
"button",
|
|
144
|
+
{
|
|
145
|
+
type: "button",
|
|
146
|
+
className: "w-full text-left px-2 py-1.5 text-sm rounded-md hover:bg-accent",
|
|
147
|
+
onClick: () => Q(e),
|
|
148
|
+
children: e.label
|
|
149
|
+
}
|
|
150
|
+
) }, e.id)) }) })
|
|
151
|
+
] }),
|
|
152
|
+
w === "value" && r && /* @__PURE__ */ l("div", { className: "p-1 min-w-[260px]", children: [
|
|
153
|
+
/* @__PURE__ */ t("p", { className: "text-sm font-medium mb-2 p-2", children: r.label }),
|
|
154
|
+
r.type === "text" && /* @__PURE__ */ t(
|
|
155
|
+
N,
|
|
156
|
+
{
|
|
157
|
+
value: s,
|
|
158
|
+
onChange: (e) => m(e.target.value),
|
|
159
|
+
placeholder: "Valor...",
|
|
160
|
+
className: "h-9",
|
|
161
|
+
onKeyDown: (e) => {
|
|
162
|
+
e.key === "Enter" && H && G();
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
r.type === "select" && r.options && /* @__PURE__ */ t("div", { className: "space-y-1 max-h-[200px] overflow-y-auto", children: r.options.map((e) => {
|
|
167
|
+
const n = s === e.value;
|
|
168
|
+
return /* @__PURE__ */ l(
|
|
169
|
+
"button",
|
|
170
|
+
{
|
|
171
|
+
type: "button",
|
|
172
|
+
className: ne(
|
|
173
|
+
"w-full flex items-center justify-between gap-2 px-2 py-1.5 text-sm rounded-md",
|
|
174
|
+
n ? "bg-surface-selected text-foreground" : "hover:bg-accent text-foreground"
|
|
175
|
+
),
|
|
176
|
+
onClick: () => g(e.value, e.label),
|
|
177
|
+
children: [
|
|
178
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: e.label }),
|
|
179
|
+
n && /* @__PURE__ */ t(Y, { className: "size-4 shrink-0 text-primary", "aria-hidden": !0 })
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
e.value
|
|
183
|
+
);
|
|
184
|
+
}) }),
|
|
185
|
+
r.type === "date" && /* @__PURE__ */ t(
|
|
186
|
+
le,
|
|
187
|
+
{
|
|
188
|
+
mode: "single",
|
|
189
|
+
selected: i,
|
|
190
|
+
onSelect: (e) => {
|
|
191
|
+
c(e), e && g(T(e, V), e.toLocaleDateString());
|
|
192
|
+
},
|
|
193
|
+
className: "rounded-md border"
|
|
194
|
+
}
|
|
195
|
+
)
|
|
196
|
+
] })
|
|
197
|
+
] })
|
|
198
|
+
] }),
|
|
199
|
+
f.length > 0 && /* @__PURE__ */ l(J, { children: [
|
|
200
|
+
/* @__PURE__ */ t(
|
|
201
|
+
"div",
|
|
202
|
+
{
|
|
203
|
+
className: "h-4 w-px shrink-0 bg-border",
|
|
204
|
+
"aria-hidden": !0
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
/* @__PURE__ */ t(
|
|
208
|
+
"button",
|
|
209
|
+
{
|
|
210
|
+
type: "button",
|
|
211
|
+
onClick: B,
|
|
212
|
+
className: "text-xs text-primary hover:underline",
|
|
213
|
+
children: M
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
] })
|
|
217
|
+
] })
|
|
218
|
+
] });
|
|
219
|
+
}
|
|
220
|
+
export {
|
|
221
|
+
be as TableSearchFilters
|
|
222
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TotalizerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
title: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
}
|
|
6
|
+
export declare function Totalizer({ title, value, className, ...props }: TotalizerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=totalizer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"totalizer.d.ts","sourceRoot":"","sources":["../../src/components/totalizer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,2CAiB9E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as n } from "../lib/utils.js";
|
|
4
|
+
function c({ title: e, value: o, className: t, ...d }) {
|
|
5
|
+
return /* @__PURE__ */ i(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
className: n(
|
|
9
|
+
"w-full rounded-lg border border-border bg-card p-6",
|
|
10
|
+
t
|
|
11
|
+
),
|
|
12
|
+
...d,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ r("div", { className: "text-sm font-semibold leading-5 tracking-[-0.04em] text-foreground", children: e }),
|
|
15
|
+
/* @__PURE__ */ r("div", { className: "mt-2 text-3xl font-bold leading-9 tracking-[-0.04em] text-foreground", children: o })
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
c as Totalizer
|
|
22
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { DayPicker } from "react-day-picker";
|
|
3
|
+
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare namespace Calendar {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
|
8
|
+
export { Calendar };
|
|
9
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnE,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,aAAa,2CAkDf;kBAvDQ,QAAQ;;;AA0DjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { cn as t } from "../../lib/utils.js";
|
|
4
|
+
import { Button as c } from "./button.js";
|
|
5
|
+
import { ChevronLeftIcon as d, ChevronRightIcon as l } from "lucide-react";
|
|
6
|
+
import { DayPicker as s } from "../../node_modules/react-day-picker/dist/esm/DayPicker.js";
|
|
7
|
+
function m({
|
|
8
|
+
className: r,
|
|
9
|
+
classNames: o,
|
|
10
|
+
showOutsideDays: n = !0,
|
|
11
|
+
...a
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e(
|
|
14
|
+
s,
|
|
15
|
+
{
|
|
16
|
+
showOutsideDays: n,
|
|
17
|
+
className: t("p-3", r),
|
|
18
|
+
classNames: {
|
|
19
|
+
months: "flex flex-col sm:flex-row gap-2",
|
|
20
|
+
month: "flex flex-col gap-4",
|
|
21
|
+
month_caption: "flex justify-center pt-1 relative items-center w-full",
|
|
22
|
+
caption_label: "text-sm font-medium",
|
|
23
|
+
nav: "flex items-center gap-1",
|
|
24
|
+
button_previous: "absolute left-1",
|
|
25
|
+
button_next: "absolute right-1",
|
|
26
|
+
month_grid: "w-full border-collapse space-y-1",
|
|
27
|
+
weekdays: "flex",
|
|
28
|
+
weekday: "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",
|
|
29
|
+
week: "flex w-full mt-2",
|
|
30
|
+
day: "h-8 w-8 text-center text-sm p-0 relative focus-within:relative focus-within:z-20",
|
|
31
|
+
day_button: t(
|
|
32
|
+
"h-8 w-8 p-0 font-normal aria-selected:opacity-100 rounded-md",
|
|
33
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
34
|
+
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
35
|
+
),
|
|
36
|
+
range_start: "rounded-s-md",
|
|
37
|
+
range_end: "rounded-e-md",
|
|
38
|
+
selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
39
|
+
today: "bg-accent text-accent-foreground",
|
|
40
|
+
outside: "text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
41
|
+
disabled: "text-muted-foreground opacity-50",
|
|
42
|
+
range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
43
|
+
hidden: "invisible",
|
|
44
|
+
...o
|
|
45
|
+
},
|
|
46
|
+
components: {
|
|
47
|
+
Chevron: ({ orientation: i }) => /* @__PURE__ */ e(c, { type: "button", variant: "ghost", size: "icon", className: "h-7 w-7", children: /* @__PURE__ */ e(i === "left" ? d : l, { className: "h-4 w-4" }) })
|
|
48
|
+
},
|
|
49
|
+
...a
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
m.displayName = "Calendar";
|
|
54
|
+
export {
|
|
55
|
+
m as Calendar
|
|
56
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverHeader, PopoverTitle, PopoverDescription, };
|
|
11
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAA;AAI3D,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAEpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAevD;AAED,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,2CAEtD;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAQxE;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAQ3B;AAED,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,GACnB,CAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Root as i, Anchor as d, Portal as p, Content as s, Trigger as l } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
|
+
import { cn as r } from "../../lib/utils.js";
|
|
5
|
+
function v({
|
|
6
|
+
...o
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t(i, { "data-slot": "popover", ...o });
|
|
9
|
+
}
|
|
10
|
+
function g({
|
|
11
|
+
...o
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ t(l, { "data-slot": "popover-trigger", ...o });
|
|
14
|
+
}
|
|
15
|
+
function h({
|
|
16
|
+
className: o,
|
|
17
|
+
align: e = "center",
|
|
18
|
+
sideOffset: a = 4,
|
|
19
|
+
...n
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ t(p, { children: /* @__PURE__ */ t(
|
|
22
|
+
s,
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "popover-content",
|
|
25
|
+
align: e,
|
|
26
|
+
sideOffset: a,
|
|
27
|
+
className: r(
|
|
28
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-[var(--radix-popover-content-transform-origin)] rounded-md border p-4 shadow-md outline-none",
|
|
29
|
+
o
|
|
30
|
+
),
|
|
31
|
+
...n
|
|
32
|
+
}
|
|
33
|
+
) });
|
|
34
|
+
}
|
|
35
|
+
function x({
|
|
36
|
+
...o
|
|
37
|
+
}) {
|
|
38
|
+
return /* @__PURE__ */ t(d, { "data-slot": "popover-anchor", ...o });
|
|
39
|
+
}
|
|
40
|
+
function P({ className: o, ...e }) {
|
|
41
|
+
return /* @__PURE__ */ t(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "popover-header",
|
|
45
|
+
className: r("flex flex-col gap-1 text-sm", o),
|
|
46
|
+
...e
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function b({ className: o, ...e }) {
|
|
51
|
+
return /* @__PURE__ */ t(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
"data-slot": "popover-title",
|
|
55
|
+
className: r("font-medium", o),
|
|
56
|
+
...e
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
function N({
|
|
61
|
+
className: o,
|
|
62
|
+
...e
|
|
63
|
+
}) {
|
|
64
|
+
return /* @__PURE__ */ t(
|
|
65
|
+
"p",
|
|
66
|
+
{
|
|
67
|
+
"data-slot": "popover-description",
|
|
68
|
+
className: r("text-muted-foreground", o),
|
|
69
|
+
...e
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
v as Popover,
|
|
75
|
+
x as PopoverAnchor,
|
|
76
|
+
h as PopoverContent,
|
|
77
|
+
N as PopoverDescription,
|
|
78
|
+
P as PopoverHeader,
|
|
79
|
+
b as PopoverTitle,
|
|
80
|
+
g as PopoverTrigger
|
|
81
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { AuthCard, AuthCardFooter } from "./components/auth-card";
|
|
2
2
|
export { DataTable } from "./components/data-table";
|
|
3
|
+
export { TableSearchFilters, type TableSearchFiltersProps, type TableSearchFilterDefinition, type AppliedFilter, type FilterValueType, } from "./components/table-search-filters";
|
|
3
4
|
export { ForgotPasswordForm } from "./components/forgot-password-form";
|
|
4
5
|
export { Header, type HeaderAction, type HeaderUserMenuItem, } from "./components/header";
|
|
5
6
|
export { Labelled } from "./components/labelled";
|
|
@@ -9,6 +10,7 @@ export { ResetPasswordForm } from "./components/reset-password-form";
|
|
|
9
10
|
export { OTPField } from "./components/otp-field";
|
|
10
11
|
export { OTPForm } from "./components/otp-form";
|
|
11
12
|
export { TextField } from "./components/text-field";
|
|
13
|
+
export { Totalizer, type TotalizerProps } from "./components/totalizer";
|
|
12
14
|
export { Avatar, AvatarImage, AvatarFallback, AvatarBadge, AvatarGroup, AvatarGroupCount, } from "./components/ui/avatar";
|
|
13
15
|
export { Alert, AlertTitle, AlertDescription } from "./components/ui/alert";
|
|
14
16
|
export { Button, buttonVariants } from "./components/ui/button";
|
|
@@ -25,4 +27,6 @@ export { Checkbox } from "./components/ui/checkbox";
|
|
|
25
27
|
export { Badge, badgeVariants, type BadgeVariant, } from "./components/ui/badge";
|
|
26
28
|
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./components/ui/table";
|
|
27
29
|
export { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider, } from "./components/ui/tooltip";
|
|
30
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, PopoverHeader, PopoverTitle, PopoverDescription, } from "./components/ui/popover";
|
|
31
|
+
export { Calendar } from "./components/ui/calendar";
|
|
28
32
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EACL,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,kBAAkB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EACL,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,kBAAkB,GACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAGxE,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,UAAU,GACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EACL,KAAK,EACL,aAAa,EACb,KAAK,YAAY,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,EACZ,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC"}
|