@povio/ui 3.4.0-rc.8 → 3.4.0-rc.9
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/Breadcrumbs/Breadcrumbs.js +7 -16
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +3 -6
- package/dist/components/Menu/MenuMobile.js +4 -7
- package/dist/components/Menu/MenuPopover.js +1 -1
- package/dist/components/buttons/Button/Button.js +1 -1
- package/dist/components/buttons/IconButton/IconButton.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +2 -2
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -9
- package/dist/components/buttons/TextButton/TextButton.js +1 -1
- package/dist/components/buttons/ToggleButton/ToggleButton.js +1 -1
- package/dist/components/buttons/shared/ButtonContent.js +2 -2
- package/dist/components/inputs/Checkbox/Checkbox.js +1 -1
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +1 -1
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +1 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +1 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/Calendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +4 -11
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +8 -26
- package/dist/components/inputs/DateTime/shared/DateField.js +2 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +3 -3
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimeField.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +1 -1
- package/dist/components/inputs/DateTime/shared/YearPicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +1 -1
- package/dist/components/inputs/File/FileUpload.js +2 -2
- package/dist/components/inputs/File/FileUploadContainer.js +1 -1
- package/dist/components/inputs/File/InputUpload.js +1 -1
- package/dist/components/inputs/File/shared/FileCard.js +1 -1
- package/dist/components/inputs/File/shared/FileCardList.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -6
- package/dist/components/inputs/File/shared/FileUploadContentError.js +5 -14
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +5 -14
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -10
- package/dist/components/inputs/File/shared/InputUploadContent.js +7 -13
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -9
- package/dist/components/inputs/FormField/FormField.js +1 -1
- package/dist/components/inputs/FormField/FormFieldError.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +3 -4
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -6
- package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +1 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +2 -2
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +2 -2
- package/dist/components/inputs/Input/TextArea/TextArea.js +1 -1
- package/dist/components/inputs/Input/TextInput/TextInput.js +1 -1
- package/dist/components/inputs/Input/shared/InputContent.js +1 -1
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.js +1 -1
- package/dist/components/inputs/Inputs/Inputs.js +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectBase.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +3 -3
- package/dist/components/inputs/Selection/shared/SelectInput.js +4 -5
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +3 -6
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -6
- package/dist/components/inputs/Selection/shared/select.context.js +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.js +3 -3
- package/dist/components/inputs/Slider/Slider.js +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +3 -4
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +11 -17
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +4 -8
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +1 -1
- package/dist/components/inputs/Toggle/Toggle.js +1 -1
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +6 -15
- package/dist/components/inputs/shared/TooltipWrapper.js +1 -1
- package/dist/components/inputs/shared/form.binding.js +1 -1
- package/dist/components/navigation/Accordion/Accordion.js +1 -1
- package/dist/components/navigation/Accordion/AccordionItem.js +3 -6
- package/dist/components/navigation/Stepper/Stepper.js +2 -2
- package/dist/components/navigation/Stepper/StepperItem.js +3 -6
- package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
- package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +2 -2
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +3 -6
- package/dist/components/overlays/Drawer/Drawer.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +3 -6
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +6 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.js +3 -3
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/shared/pagination/Pagination.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +14 -38
- package/dist/components/status/Loader/Loader.js +1 -1
- package/dist/components/status/Toast/Toast.js +1 -1
- package/dist/components/status/Toast/useToast.js +1 -1
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/InfiniteTable.js +1 -1
- package/dist/components/table/PaginatedTable.js +1 -1
- package/dist/components/table/Table.js +39 -154
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +3 -6
- package/dist/components/text/Tag/Tag.js +3 -6
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +1 -1
- package/dist/config/router.context.js +1 -1
- package/dist/config/theme.context.js +1 -1
- package/dist/config/uiConfig.context.js +5 -14
- package/dist/config/uiOverrides.context.js +1 -1
- package/dist/rhf/Inputs.js +1 -1
- package/package.json +1 -1
- package/dist/node_modules/.pnpm/react-icons-sprite@1.2.0-rc.2_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js +0 -15
- package/dist/react-icons-sprite-dad1d156.svg +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use no memo";
|
|
2
2
|
import { UIOverrides } from "../../config/uiOverrides.context.js";
|
|
3
3
|
import { InlineIconButton } from "../buttons/InlineIconButton/InlineIconButton.js";
|
|
4
4
|
import { useIntersectionObserver } from "../../hooks/useIntersectionObserver.js";
|
|
@@ -6,10 +6,10 @@ import { tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, t
|
|
|
6
6
|
import { CellText } from "./CellText.js";
|
|
7
7
|
import { HeaderText } from "./HeaderText.js";
|
|
8
8
|
import { useTableNav } from "../../hooks/useTableNav.js";
|
|
9
|
-
import {
|
|
9
|
+
import { ChevronDown, ChevronUp, GripVertical } from "lucide-react";
|
|
10
10
|
import { clsx } from "clsx";
|
|
11
11
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
12
|
-
import {
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
|
|
14
14
|
import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
|
|
15
15
|
import { SortableContext, arrayMove, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
|
|
@@ -29,155 +29,48 @@ var renderCell = (Comp, props) => {
|
|
|
29
29
|
const rendered = flexRender(Comp, props);
|
|
30
30
|
return typeof rendered === "string" ? /* @__PURE__ */ jsx(CellText, { children: rendered }) : rendered;
|
|
31
31
|
};
|
|
32
|
-
var RowDragHandleCell = (
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
const { attributes, listeners } = useSortable(t1);
|
|
42
|
-
let t2;
|
|
43
|
-
if ($[2] !== attributes || $[3] !== listeners) {
|
|
44
|
-
t2 = /* @__PURE__ */ jsx(InlineIconButton, {
|
|
45
|
-
...attributes,
|
|
46
|
-
...listeners,
|
|
47
|
-
className: "cursor-move p-1",
|
|
48
|
-
label: "Drag handle",
|
|
49
|
-
icon: _temp
|
|
50
|
-
});
|
|
51
|
-
$[2] = attributes;
|
|
52
|
-
$[3] = listeners;
|
|
53
|
-
$[4] = t2;
|
|
54
|
-
} else t2 = $[4];
|
|
55
|
-
return t2;
|
|
56
|
-
};
|
|
57
|
-
var AutoDragHandleCell = (t0) => {
|
|
58
|
-
const $ = c(2);
|
|
59
|
-
const { row } = t0;
|
|
60
|
-
let t1;
|
|
61
|
-
if ($[0] !== row.id) {
|
|
62
|
-
t1 = /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
|
|
63
|
-
$[0] = row.id;
|
|
64
|
-
$[1] = t1;
|
|
65
|
-
} else t1 = $[1];
|
|
66
|
-
return t1;
|
|
32
|
+
var RowDragHandleCell = ({ rowId }) => {
|
|
33
|
+
const { attributes, listeners } = useSortable({ id: rowId });
|
|
34
|
+
return /* @__PURE__ */ jsx(InlineIconButton, {
|
|
35
|
+
...attributes,
|
|
36
|
+
...listeners,
|
|
37
|
+
className: "cursor-move p-1",
|
|
38
|
+
label: "Drag handle",
|
|
39
|
+
icon: GripVertical
|
|
40
|
+
});
|
|
67
41
|
};
|
|
68
|
-
var
|
|
69
|
-
|
|
70
|
-
const {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
$[1] = t1;
|
|
76
|
-
} else t1 = $[1];
|
|
77
|
-
const { transform, transition, setNodeRef, isDragging } = useSortable(t1);
|
|
78
|
-
let t2;
|
|
79
|
-
if ($[2] !== transform) {
|
|
80
|
-
t2 = CSS.Transform.toString(transform);
|
|
81
|
-
$[2] = transform;
|
|
82
|
-
$[3] = t2;
|
|
83
|
-
} else t2 = $[3];
|
|
84
|
-
const t3 = isDragging ? .8 : 1;
|
|
85
|
-
const t4 = isDragging ? 1 : 0;
|
|
86
|
-
let t5;
|
|
87
|
-
if ($[4] !== t2 || $[5] !== t3 || $[6] !== t4 || $[7] !== transition) {
|
|
88
|
-
t5 = {
|
|
89
|
-
transform: t2,
|
|
42
|
+
var AutoDragHandleCell = ({ row }) => /* @__PURE__ */ jsx(RowDragHandleCell, { rowId: row.id });
|
|
43
|
+
var DraggableRow = ({ row, showCellBorder, onRowClick, onDoubleClick, tableRowCva, tableDataCva, hasOnClick, ...props }) => {
|
|
44
|
+
const { transform, transition, setNodeRef, isDragging } = useSortable({ id: row.id });
|
|
45
|
+
return /* @__PURE__ */ jsx("tr", {
|
|
46
|
+
ref: setNodeRef,
|
|
47
|
+
style: {
|
|
48
|
+
transform: CSS.Transform.toString(transform),
|
|
90
49
|
transition,
|
|
91
|
-
opacity:
|
|
92
|
-
zIndex:
|
|
50
|
+
opacity: isDragging ? .8 : 1,
|
|
51
|
+
zIndex: isDragging ? 1 : 0,
|
|
93
52
|
position: "relative"
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
$[8] = t5;
|
|
100
|
-
} else t5 = $[8];
|
|
101
|
-
const style = t5;
|
|
102
|
-
let t6;
|
|
103
|
-
if ($[9] !== hasOnClick || $[10] !== row) {
|
|
104
|
-
t6 = hasOnClick || row.getCanSelect() || void 0;
|
|
105
|
-
$[9] = hasOnClick;
|
|
106
|
-
$[10] = row;
|
|
107
|
-
$[11] = t6;
|
|
108
|
-
} else t6 = $[11];
|
|
109
|
-
let t7;
|
|
110
|
-
if ($[12] !== row) {
|
|
111
|
-
t7 = row.getIsSelected() || void 0;
|
|
112
|
-
$[12] = row;
|
|
113
|
-
$[13] = t7;
|
|
114
|
-
} else t7 = $[13];
|
|
115
|
-
const t8 = clsx(tableRowCva(props));
|
|
116
|
-
let t9;
|
|
117
|
-
if ($[14] !== onRowClick || $[15] !== row) {
|
|
118
|
-
t9 = () => {
|
|
53
|
+
},
|
|
54
|
+
"data-clickable": hasOnClick || row.getCanSelect() || void 0,
|
|
55
|
+
"data-selected": row.getIsSelected() || void 0,
|
|
56
|
+
className: clsx(tableRowCva(props)),
|
|
57
|
+
onClick: () => {
|
|
119
58
|
if (onRowClick) {
|
|
120
59
|
onRowClick(row.original);
|
|
121
60
|
return;
|
|
122
61
|
}
|
|
123
62
|
if (row.getCanSelect()) row.toggleSelected();
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
} else t10 = $[19];
|
|
136
|
-
let t11;
|
|
137
|
-
if ($[20] !== row || $[21] !== showCellBorder || $[22] !== tableDataCva) {
|
|
138
|
-
let t12;
|
|
139
|
-
if ($[24] !== showCellBorder || $[25] !== tableDataCva) {
|
|
140
|
-
t12 = (cell, cellIndex) => {
|
|
141
|
-
const columnMeta = cell.column.columnDef.meta ?? {};
|
|
142
|
-
return /* @__PURE__ */ jsx("td", {
|
|
143
|
-
tabIndex: -1,
|
|
144
|
-
className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta.cellClass, columnMeta.width),
|
|
145
|
-
children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
|
|
146
|
-
}, cell.id);
|
|
147
|
-
};
|
|
148
|
-
$[24] = showCellBorder;
|
|
149
|
-
$[25] = tableDataCva;
|
|
150
|
-
$[26] = t12;
|
|
151
|
-
} else t12 = $[26];
|
|
152
|
-
t11 = row.getVisibleCells().map(t12);
|
|
153
|
-
$[20] = row;
|
|
154
|
-
$[21] = showCellBorder;
|
|
155
|
-
$[22] = tableDataCva;
|
|
156
|
-
$[23] = t11;
|
|
157
|
-
} else t11 = $[23];
|
|
158
|
-
let t12;
|
|
159
|
-
if ($[27] !== setNodeRef || $[28] !== style || $[29] !== t10 || $[30] !== t11 || $[31] !== t6 || $[32] !== t7 || $[33] !== t8 || $[34] !== t9) {
|
|
160
|
-
t12 = /* @__PURE__ */ jsx("tr", {
|
|
161
|
-
ref: setNodeRef,
|
|
162
|
-
style,
|
|
163
|
-
"data-clickable": t6,
|
|
164
|
-
"data-selected": t7,
|
|
165
|
-
className: t8,
|
|
166
|
-
onClick: t9,
|
|
167
|
-
onDoubleClick: t10,
|
|
168
|
-
children: t11
|
|
169
|
-
});
|
|
170
|
-
$[27] = setNodeRef;
|
|
171
|
-
$[28] = style;
|
|
172
|
-
$[29] = t10;
|
|
173
|
-
$[30] = t11;
|
|
174
|
-
$[31] = t6;
|
|
175
|
-
$[32] = t7;
|
|
176
|
-
$[33] = t8;
|
|
177
|
-
$[34] = t9;
|
|
178
|
-
$[35] = t12;
|
|
179
|
-
} else t12 = $[35];
|
|
180
|
-
return t12;
|
|
63
|
+
},
|
|
64
|
+
onDoubleClick: () => onDoubleClick?.(row.original),
|
|
65
|
+
children: row.getVisibleCells().map((cell, cellIndex) => {
|
|
66
|
+
const columnMeta = cell.column.columnDef.meta ?? {};
|
|
67
|
+
return /* @__PURE__ */ jsx("td", {
|
|
68
|
+
tabIndex: -1,
|
|
69
|
+
className: clsx(tableDataCva({ hasRightBorder: cellIndex > 0 && showCellBorder }), columnMeta.cellClass, columnMeta.width),
|
|
70
|
+
children: renderCell(cell.column.columnDef.cell, CustomCellContext(cell.getContext()))
|
|
71
|
+
}, cell.id);
|
|
72
|
+
})
|
|
73
|
+
});
|
|
181
74
|
};
|
|
182
75
|
var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, className, sorting, setSorting, columnOrder, setColumnOrder, columnVisibility, setColumnVisibility, bulkSelectionActions: ActionHeader, enableDragDrop = false, onDragEnd, onReorder, getRowId, enableRowSelection, enableMultiRowSelection = false, defaultSelectedRows, onRowSelectionChange, ...props }) => {
|
|
183
76
|
const tableRowCva = UIOverrides.useCva("table.rowCva", tableRowDefinition);
|
|
@@ -304,13 +197,11 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
|
|
|
304
197
|
className: clsx("flex select-none items-center gap-1 text-text-default-1", header_0.column.getCanSort() ? "h-6 cursor-pointer rounded-xs px-1 hover:bg-elevation-fill-default-2" : "cursor-default", columnMeta.sortClass),
|
|
305
198
|
onClick: header_0.column.getToggleSortingHandler(),
|
|
306
199
|
children: [typeof header_0.column.columnDef.header === "function" ? flexRender(header_0.column.columnDef.header, header_0.getContext()) : /* @__PURE__ */ jsx(HeaderText, { children: header_0.column.columnDef.header }), {
|
|
307
|
-
asc: /* @__PURE__ */ jsx(
|
|
308
|
-
iconId: "ri-lucide-react-ChevronUp",
|
|
200
|
+
asc: /* @__PURE__ */ jsx(ChevronUp, {
|
|
309
201
|
width: 18,
|
|
310
202
|
height: 18
|
|
311
203
|
}),
|
|
312
|
-
desc: /* @__PURE__ */ jsx(
|
|
313
|
-
iconId: "ri-lucide-react-ChevronDown",
|
|
204
|
+
desc: /* @__PURE__ */ jsx(ChevronDown, {
|
|
314
205
|
width: 18,
|
|
315
206
|
height: 18
|
|
316
207
|
})
|
|
@@ -370,11 +261,5 @@ var Table = ({ items, showCellBorder, columns, onRowClick, onDoubleClick, classN
|
|
|
370
261
|
});
|
|
371
262
|
return tableElement;
|
|
372
263
|
};
|
|
373
|
-
function _temp(props) {
|
|
374
|
-
return /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
375
|
-
...props,
|
|
376
|
-
iconId: "ri-lucide-react-GripVertical"
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
264
|
//#endregion
|
|
380
265
|
export { Table };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
2
2
|
import { LinkContext } from "../../../config/link.context.js";
|
|
3
3
|
import { linkDefinition } from "./link.cva.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { Link } from "react-aria-components";
|
|
6
5
|
import { c } from "react/compiler-runtime";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/text/Link/Link.tsx
|
|
8
8
|
var Link$1 = (t0) => {
|
|
9
9
|
const $ = c(4);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactIconsSpriteIcon } from "../../../node_modules/.pnpm/react-icons-sprite@1.2.0-rc.2_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../Typography/Typography.js";
|
|
4
3
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
5
4
|
import { pillButtonDefinition } from "../../buttons/PillButton/pillButton.cva.js";
|
|
6
5
|
import "../../../config/i18n.js";
|
|
7
|
-
import {
|
|
6
|
+
import { X } from "lucide-react";
|
|
8
7
|
import { clsx } from "clsx";
|
|
9
8
|
import { Button } from "react-aria-components";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/text/Pill/Pill.tsx
|
|
12
12
|
var Pill = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, variant = "subtle", ...props }) => {
|
|
@@ -36,10 +36,7 @@ var Pill = ({ className, children, dismissable, isDisabled, onDismiss, contentRe
|
|
|
36
36
|
}), dismissable && /* @__PURE__ */ jsx(Button, {
|
|
37
37
|
...buttonProps,
|
|
38
38
|
className: "pointer-events-auto shrink-0",
|
|
39
|
-
children: /* @__PURE__ */ jsx(
|
|
40
|
-
iconId: "ri-lucide-react-X",
|
|
41
|
-
className: "size-4"
|
|
42
|
-
})
|
|
39
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4" })
|
|
43
40
|
})]
|
|
44
41
|
});
|
|
45
42
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ReactIconsSpriteIcon } from "../../../node_modules/.pnpm/react-icons-sprite@1.2.0-rc.2_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
|
|
2
1
|
import { UIOverrides } from "../../../config/uiOverrides.context.js";
|
|
3
2
|
import { Typography } from "../Typography/Typography.js";
|
|
4
3
|
import { UIConfig } from "../../../config/uiConfig.context.js";
|
|
5
4
|
import "../../../config/i18n.js";
|
|
6
5
|
import { tagDefinition } from "./tag.cva.js";
|
|
7
|
-
import {
|
|
6
|
+
import { X } from "lucide-react";
|
|
8
7
|
import { clsx } from "clsx";
|
|
9
8
|
import { Button } from "react-aria-components";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { useTranslation } from "react-i18next";
|
|
11
11
|
//#region src/components/text/Tag/Tag.tsx
|
|
12
12
|
var Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef, ...props }) => {
|
|
@@ -35,10 +35,7 @@ var Tag = ({ className, children, dismissable, isDisabled, onDismiss, contentRef
|
|
|
35
35
|
}), dismissable && /* @__PURE__ */ jsx(Button, {
|
|
36
36
|
...buttonProps,
|
|
37
37
|
className: "pointer-events-auto shrink-0",
|
|
38
|
-
children: /* @__PURE__ */ jsx(
|
|
39
|
-
iconId: "ri-lucide-react-X",
|
|
40
|
-
className: "size-4"
|
|
41
|
-
})
|
|
38
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4" })
|
|
42
39
|
})]
|
|
43
40
|
});
|
|
44
41
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./i18n.js";
|
|
2
2
|
import { ActionModal } from "../components/overlays/ActionModal/ActionModal.js";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { createContext, use, useCallback, useMemo, useState } from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
//#region src/config/confirmation.context.tsx
|
|
7
7
|
var Confirmation;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import { createContext, use } from "react";
|
|
3
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { RouterProvider } from "react-aria";
|
|
5
5
|
//#region src/config/router.context.tsx
|
|
6
6
|
var UIRouter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useLocalStorage } from "../hooks/useLocalStorage.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { createContext, use, useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/config/theme.context.tsx
|
|
6
6
|
var ThemeContext;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactIconsSpriteIcon } from "../node_modules/.pnpm/react-icons-sprite@1.2.0-rc.2_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js";
|
|
2
1
|
import { ObjectUtils } from "../utils/object.utils.js";
|
|
3
2
|
import { useDeepCompareMemo } from "../hooks/useDeepCompare.js";
|
|
4
|
-
import {
|
|
3
|
+
import { Calendar, CalendarClock, Clock } from "lucide-react";
|
|
5
4
|
import { createContext, use } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/config/uiConfig.context.tsx
|
|
7
7
|
var UIConfig;
|
|
8
8
|
(function(_UIConfig) {
|
|
@@ -68,18 +68,9 @@ var UIConfig;
|
|
|
68
68
|
shouldForceLeadingZeros: false,
|
|
69
69
|
disableManualEntry: false,
|
|
70
70
|
autoFixYear: false,
|
|
71
|
-
calendarIcon: /* @__PURE__ */ jsx(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}),
|
|
75
|
-
dateTimeIcon: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
76
|
-
iconId: "ri-lucide-react-CalendarClock",
|
|
77
|
-
className: "size-4"
|
|
78
|
-
}),
|
|
79
|
-
timeIcon: /* @__PURE__ */ jsx(ReactIconsSpriteIcon, {
|
|
80
|
-
iconId: "ri-lucide-react-Clock",
|
|
81
|
-
className: "size-4 text-interactive-text-secondary-idle"
|
|
82
|
-
}),
|
|
71
|
+
calendarIcon: /* @__PURE__ */ jsx(Calendar, { className: "size-4" }),
|
|
72
|
+
dateTimeIcon: /* @__PURE__ */ jsx(CalendarClock, { className: "size-4" }),
|
|
73
|
+
timeIcon: /* @__PURE__ */ jsx(Clock, { className: "size-4 text-interactive-text-secondary-idle" }),
|
|
83
74
|
setDateValueOnDateSelection: false,
|
|
84
75
|
timeZone: "clientLocal",
|
|
85
76
|
granularity: "day",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { StyleMergeUtils } from "../utils/style-merge.util.js";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
2
|
import { clsx } from "clsx";
|
|
4
3
|
import { createContext, use } from "react";
|
|
5
4
|
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { cva } from "class-variance-authority";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
//#region src/config/uiOverrides.context.tsx
|
|
8
8
|
var UIOverrides;
|
|
9
9
|
(function(_UIOverrides) {
|
package/dist/rhf/Inputs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Autocomplete, Checkbox, CheckboxGroup, DatePicker, DateRangePicker, DateTimePicker, NumberInput, NumberRangeInput, PasswordInput, QueryAutocomplete, QuerySelect, Segment, Select, Slider, TextArea, TextInput, TimePicker, Toggle } from "./components.js";
|
|
2
2
|
import { StringUtils } from "../utils/string.utils.js";
|
|
3
3
|
import { ZodUtils } from "../utils/zod.utils.js";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/rhf/Inputs.tsx
|
|
8
8
|
var componentRegistry = {
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react-icons-sprite@1.2.0-rc.2_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.mjs
|
|
3
|
-
var ReactIconsSpriteIcon = ({ iconId, ...rest }) => {
|
|
4
|
-
const iconHref = `/react-icons-sprite-dad1d156.svg#${iconId}`;
|
|
5
|
-
return /* @__PURE__ */ jsx("svg", {
|
|
6
|
-
height: "1em",
|
|
7
|
-
width: "1em",
|
|
8
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
9
|
-
viewBox: "0 0 24 24",
|
|
10
|
-
...rest,
|
|
11
|
-
children: /* @__PURE__ */ jsx("use", { href: iconHref })
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { ReactIconsSpriteIcon };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" style="display:none"><symbol id="ri-lucide-react-ChevronRight" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-right" aria-hidden="true"><path d="m9 18 6-6-6-6"></path></symbol><symbol id="ri-lucide-react-ChevronDown" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></symbol><symbol id="ri-lucide-react-ArrowRight" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></symbol><symbol id="ri-lucide-react-Calendar" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar" aria-hidden="true"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></symbol><symbol id="ri-lucide-react-CalendarClock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar-clock" aria-hidden="true"><path d="M16 14v2.2l1.6 1"></path><path d="M16 2v3"></path><path d="M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338"></path><path d="M3 9h5.859"></path><path d="M8 2v3"></path><circle cx="16" cy="16" r="6"></circle></symbol><symbol id="ri-lucide-react-Clock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-clock" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path></symbol><symbol id="ri-lucide-react-ChevronsLeft" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevrons-left" aria-hidden="true"><path d="m11 17-5-5 5-5"></path><path d="m18 17-5-5 5-5"></path></symbol><symbol id="ri-lucide-react-ChevronLeft" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-left" aria-hidden="true"><path d="m15 18-6-6 6-6"></path></symbol><symbol id="ri-lucide-react-ChevronsRight" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevrons-right" aria-hidden="true"><path d="m6 17 5-5-5-5"></path><path d="m13 17 5-5-5-5"></path></symbol><symbol id="ri-lucide-react-X" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x" aria-hidden="true"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></symbol><symbol id="ri-lucide-react-ChevronUp" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-up" aria-hidden="true"><path d="m18 15-6-6-6 6"></path></symbol><symbol id="ri-lucide-react-GripVertical" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-grip-vertical" aria-hidden="true"><circle cx="9" cy="12" r="1"></circle><circle cx="9" cy="5" r="1"></circle><circle cx="9" cy="19" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="19" r="1"></circle></symbol><symbol id="ri-lucide-react-Triangle" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-triangle" aria-hidden="true"><path d="M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"></path></symbol><symbol id="ri-lucide-react-TriangleRight" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-triangle-right" aria-hidden="true"><path d="M22 18a2 2 0 0 1-2 2H3c-1.1 0-1.3-.6-.4-1.3L20.4 4.3c.9-.7 1.6-.4 1.6.7Z"></path></symbol><symbol id="ri-lucide-react-Upload" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-upload" aria-hidden="true"><path d="M12 3v12"></path><path d="m17 8-5-5-5 5"></path><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path></symbol><symbol id="ri-lucide-react-Info" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 16v-4"></path><path d="M12 8h.01"></path></symbol><symbol id="ri-lucide-react-ArrowLeft" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></symbol><symbol id="ri-lucide-react-Check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></symbol><symbol id="ri-lucide-react-Highlighter" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-highlighter" aria-hidden="true"><path d="m9 11-6 6v3h9l3-3"></path><path d="m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4"></path></symbol><symbol id="ri-lucide-react-Link" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-link" aria-hidden="true"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></symbol><symbol id="ri-lucide-react-Baseline" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-baseline" aria-hidden="true"><path d="M4 20h16"></path><path d="m6 16 6-12 6 12"></path><path d="M8 12h8"></path></symbol><symbol id="ri-lucide-react-File" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path></symbol><symbol id="ri-lucide-react-CircleAlert" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-alert" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><line x1="12" x2="12" y1="8" y2="12"></line><line x1="12" x2="12.01" y1="16" y2="16"></line></symbol><symbol id="ri-lucide-react-CheckCircle" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-check-big" aria-hidden="true"><path d="M21.801 10A10 10 0 1 1 17 3.335"></path><path d="m9 11 3 3L22 4"></path></symbol><symbol id="ri-lucide-react-Search" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-search" aria-hidden="true"><path d="m21 21-4.34-4.34"></path><circle cx="11" cy="11" r="8"></circle></symbol></svg>
|