@povio/ui 5.0.0 → 5.0.1-rc.1

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.
Files changed (112) hide show
  1. package/dist/{Autocomplete-DbALLWP0.js → Autocomplete-XP-Qdlrm.js} +2 -2
  2. package/dist/{Autocomplete.bound-DCPZBYKR.js → Autocomplete.bound-DFL87TOZ.js} +2 -2
  3. package/dist/{Calendar-B9jqOJB6.js → Calendar-DLlUsZP2.js} +3 -3
  4. package/dist/{Calendar.lazy-4d7pbB4k.js → Calendar.lazy-Bl5amf0W.js} +3 -3
  5. package/dist/{Checkbox.bound-DyQFIVCw.js → Checkbox.bound-DQYJMtCs.js} +1 -1
  6. package/dist/{CheckboxGroup.bound-DyCp83EI.js → CheckboxGroup.bound-wGcpw5tY.js} +1 -1
  7. package/dist/{DatePicker-CJj3Gp_S.js → DatePicker-CqkS8dCf.js} +6 -5
  8. package/dist/{DatePicker.bound-BWPOirPV.js → DatePicker.bound-Bg524WMN.js} +2 -2
  9. package/dist/{DatePickerInput-C5-kkdpq.js → DatePickerInput-jrCYehXn.js} +8 -6
  10. package/dist/{DateRangePicker-BO92JO3A.js → DateRangePicker-DfLnonW1.js} +7 -6
  11. package/dist/{DateRangePicker.bound-cDWQPCUj.js → DateRangePicker.bound-Cahr-3cK.js} +2 -2
  12. package/dist/{DateTimePicker-DSzd33fp.js → DateTimePicker-BL8koIhS.js} +6 -5
  13. package/dist/{DateTimePicker.bound-BQUJXvBQ.js → DateTimePicker.bound-BheJ0Rny.js} +2 -2
  14. package/dist/{Dialog-DN5703sy.js → Dialog-B10YV23i.js} +1 -1
  15. package/dist/{FileInput-dTcR3V93.js → FileInput-3wNdotBt.js} +1 -1
  16. package/dist/{FileInput.bound-B5b7BLGg.js → FileInput.bound-CJdou4D6.js} +2 -2
  17. package/dist/{FileUpload-JogkVfav.js → FileUpload-C3IMKBRp.js} +1 -1
  18. package/dist/{FileUpload.bound-TTr9FNMS.js → FileUpload.bound-Bf4LzJUU.js} +2 -2
  19. package/dist/{Input-Dq2Raco6.js → Input-DRR8_MgG.js} +4 -3
  20. package/dist/{Input.bound-CB0WNCLI.js → Input.bound-3CTdQnA8.js} +2 -2
  21. package/dist/{InputContent-5WKp0yNK.js → InputContent-BkNnqXt3.js} +6 -4
  22. package/dist/{NumberField-BQwc6a7u.js → NumberField-OjtbK2Uh.js} +4 -3
  23. package/dist/{NumberField.bound-Ha6jrlsv.js → NumberField.bound-D-uZoLYH.js} +2 -2
  24. package/dist/{NumberRangeInput-KngK-OvN.js → NumberRangeInput-EKzbxaN0.js} +3 -2
  25. package/dist/{NumberRangeInput.bound-VafOPEAu.js → NumberRangeInput.bound-CmXDNvF1.js} +2 -2
  26. package/dist/{PasswordInput.bound-D4tGX20e.js → PasswordInput.bound-lnJeVf4k.js} +2 -2
  27. package/dist/{RadioGroup.bound-B-xm1dwo.js → RadioGroup.bound-Dya9IgZr.js} +1 -1
  28. package/dist/{RangeCalendar-p7ajg_wH.js → RangeCalendar-BuRiCB7z.js} +3 -3
  29. package/dist/{RichTextEditor-DLBfexN_.js → RichTextEditor-Cg-S5lhK.js} +12 -8
  30. package/dist/{Select-hIRIXRz1.js → Select-DfgTo2X3.js} +4 -4
  31. package/dist/{Select.bound-BrAIDjfv.js → Select.bound-XC8lgM6E.js} +2 -2
  32. package/dist/{SelectListBox-ysubv-kl.js → SelectListBox-B_bqWSLU.js} +13 -4
  33. package/dist/{Slider.bound-CByTXPTr.js → Slider.bound-DO1l_qJQ.js} +1 -1
  34. package/dist/{Switch.bound-Dv0cHsMM.js → Switch.bound-D8QsLsS4.js} +1 -1
  35. package/dist/{TabsFilters-ka2sUZPi.js → TabsFilters-DtZrvnTC.js} +1 -1
  36. package/dist/{TextArea-CqT0_Bn-.js → TextArea-nySHbed0.js} +1 -1
  37. package/dist/{TextArea.bound-kHkY_d9o.js → TextArea.bound-DbSMg_Kz.js} +2 -2
  38. package/dist/{TimePicker-Duw94UIt.js → TimePicker-Fnj3QZ3G.js} +10 -8
  39. package/dist/{TimePicker.bound-DX5pXlgZ.js → TimePicker.bound-DLflOXZm.js} +2 -2
  40. package/dist/{TimePickerForm-BiWPFcsD.js → TimePickerForm-Bv8S3M_p.js} +2 -2
  41. package/dist/{ToggleGroup.bound-DphkH_jH.js → ToggleGroup.bound-DNxhSz1h.js} +1 -1
  42. package/dist/{TooltipWrapper-DcrEabVw.js → TooltipWrapper-DmcWMIp0.js} +1 -1
  43. package/dist/components/alert-dialog.js +1 -1
  44. package/dist/components/autocomplete.js +1 -1
  45. package/dist/components/badge.js +1 -1
  46. package/dist/components/bottom-sheet-header.js +1 -1
  47. package/dist/components/date-picker.js +1 -1
  48. package/dist/components/date-range-picker.js +1 -1
  49. package/dist/components/date-time-picker.js +1 -1
  50. package/dist/components/dialog.js +1 -1
  51. package/dist/components/file-input.js +1 -1
  52. package/dist/components/file-upload-container.js +1 -1
  53. package/dist/components/file-upload.js +1 -1
  54. package/dist/components/input-frame.js +4 -3
  55. package/dist/components/input.js +1 -1
  56. package/dist/components/number-field.js +1 -1
  57. package/dist/components/number-range-input.js +1 -1
  58. package/dist/components/password-input.js +2 -2
  59. package/dist/components/select.js +1 -1
  60. package/dist/components/tabs-filters.js +1 -1
  61. package/dist/components/tag.js +1 -1
  62. package/dist/components/text-area.js +1 -1
  63. package/dist/components/time-picker.js +1 -1
  64. package/dist/config/confirmation.js +1 -1
  65. package/dist/config/resources.d.ts +1 -1
  66. package/dist/config/resources.js +1 -1
  67. package/dist/{confirmation.context-Bc2yEVp_.js → confirmation.context-ByjNx2uA.js} +1 -1
  68. package/dist/{form.binding-DOR5gIQf.js → form.binding-Ddx5NGCq.js} +1 -1
  69. package/dist/hooks/use-async-list.js +1 -1
  70. package/dist/{i18n-D8vXIoiq.js → i18n-DxbqkvyK.js} +14 -6
  71. package/dist/{i18n-DM-PUcxQ.d.ts → i18n-JT8Yui4a.d.ts} +12 -4
  72. package/dist/{import-C7W0Wv2r.js → import-Duf36Dbs.js} +1 -1
  73. package/dist/index.d.ts +3 -3
  74. package/dist/index.js +32 -32
  75. package/dist/inputRow.clsx-BbcaXVta.js +6 -0
  76. package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
  77. package/dist/rich-text-editor.js +1 -1
  78. package/dist/{staticDateTimeSegments-BVvFHWOs.js → staticDateTimeSegments-DeeSpTzj.js} +1 -1
  79. package/dist/tanstack/autocomplete.js +1 -1
  80. package/dist/tanstack/checkbox-group.js +1 -1
  81. package/dist/tanstack/checkbox.js +1 -1
  82. package/dist/tanstack/date-picker.js +1 -1
  83. package/dist/tanstack/date-range-picker.js +1 -1
  84. package/dist/tanstack/date-time-picker.js +1 -1
  85. package/dist/tanstack/file-input.js +1 -1
  86. package/dist/tanstack/file-upload.js +1 -1
  87. package/dist/tanstack/form.js +2 -2
  88. package/dist/tanstack/input.js +1 -1
  89. package/dist/tanstack/number-field.js +1 -1
  90. package/dist/tanstack/number-range-input.js +1 -1
  91. package/dist/tanstack/password-input.js +1 -1
  92. package/dist/tanstack/radio-group.js +1 -1
  93. package/dist/tanstack/rich-text-editor.js +2 -2
  94. package/dist/tanstack/select.js +1 -1
  95. package/dist/tanstack/slider.js +1 -1
  96. package/dist/tanstack/switch.js +1 -1
  97. package/dist/tanstack/table.d.ts +1 -1
  98. package/dist/tanstack/table.js +1 -1
  99. package/dist/tanstack/text-area.js +1 -1
  100. package/dist/tanstack/time-picker.js +1 -1
  101. package/dist/tanstack/toggle-group.js +1 -1
  102. package/dist/{tanstack-CJKor9l-.d.ts → tanstack-DzNVI2Rj.d.ts} +1 -1
  103. package/dist/tanstack.d.ts +3 -3
  104. package/dist/tanstack.js +32 -32
  105. package/dist/{useAsyncList-Ct74ve3i.js → useAsyncList-BVZ1va2U.js} +67 -14
  106. package/dist/{useForm-Cb7KWLds.js → useForm-C7wrpJ2t.js} +1 -1
  107. package/dist/{useFormAutosave-BPGlChiY.js → useFormAutosave-Cy0wTigY.js} +2 -2
  108. package/dist/{useTableColumnConfig-D4BGhlBT.js → useTableColumnConfig-xvu1zw0E.js} +693 -222
  109. package/dist/{useTableNav-hQCt_TbI.d.ts → useTableNav-DxuUTKn5.d.ts} +4 -1
  110. package/dist/utils/logger.js +1 -1
  111. package/package.json +1 -1
  112. package/dist/TableDnd-CuHxANWh.js +0 -133
@@ -22,8 +22,10 @@ interface ColumnConfigModalProps<TData extends RowData, TValue> {
22
22
  visibleColumns: VisibilityState$2;
23
23
  onVisibilityChange: (visibleColumns: VisibilityState$2) => void;
24
24
  onOrderChange: (columnOrder: ColumnOrderState) => void;
25
+ /** Shows a "Reset" button that restores the default visibility and order. */
26
+ onReset?: () => void;
25
27
  }
26
- declare function ColumnConfigModal<TData extends RowData, TValue>({ isOpen, onClose, configColumns, visibleColumns, onVisibilityChange, onOrderChange }: ColumnConfigModalProps<TData, TValue>): import("react").JSX.Element | null;
28
+ declare function ColumnConfigModal<TData extends RowData, TValue>({ isOpen, onClose, configColumns, visibleColumns, onVisibilityChange, onOrderChange, onReset }: ColumnConfigModalProps<TData, TValue>): import("react").JSX.Element | null;
27
29
  //#endregion
28
30
  //#region src/components/table/HeaderText.d.ts
29
31
  interface HeaderTextProps extends Partial<Pick<TypographyProps, "size">> {
@@ -146,6 +148,7 @@ declare function useTableColumnConfig<TData extends RowData, TValue>(defaultColu
146
148
  columnOrder: ColumnOrderState;
147
149
  onVisibilityChange: (value: VisibilityState) => void;
148
150
  onOrderChange: (value: ColumnOrderState) => void;
151
+ resetColumns: () => void;
149
152
  };
150
153
  //#endregion
151
154
  //#region src/hooks/useTableNav.d.ts
@@ -1,2 +1,2 @@
1
- import { t as logger } from "../logger-CqZjM-sn.js";
1
+ import { t as logger } from "../logger-CW24po62.js";
2
2
  export { logger };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "5.0.0",
3
+ "version": "5.0.1-rc.1",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,133 +0,0 @@
1
- import { c } from "react/compiler-runtime";
2
- import { jsx } from "react/jsx-runtime";
3
- import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
4
- import { restrictToVerticalAxis } from "@dnd-kit/modifiers";
5
- import { SortableContext, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
6
- import { CSS } from "@dnd-kit/utilities";
7
- //#region src/components/table/TableDnd.tsx
8
- const DndProvider = (t0) => {
9
- const $ = c(5);
10
- const { children, onDragEnd } = t0;
11
- const sensors = useSensors(useSensor(MouseSensor), useSensor(TouchSensor), useSensor(KeyboardSensor));
12
- let t1;
13
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
14
- t1 = [restrictToVerticalAxis];
15
- $[0] = t1;
16
- } else t1 = $[0];
17
- let t2;
18
- if ($[1] !== children || $[2] !== onDragEnd || $[3] !== sensors) {
19
- t2 = /* @__PURE__ */ jsx(DndContext, {
20
- collisionDetection: closestCenter,
21
- modifiers: t1,
22
- onDragEnd,
23
- sensors,
24
- children
25
- });
26
- $[1] = children;
27
- $[2] = onDragEnd;
28
- $[3] = sensors;
29
- $[4] = t2;
30
- } else t2 = $[4];
31
- return t2;
32
- };
33
- const SortableRows = (t0) => {
34
- const $ = c(3);
35
- const { children, items } = t0;
36
- let t1;
37
- if ($[0] !== children || $[1] !== items) {
38
- t1 = /* @__PURE__ */ jsx(SortableContext, {
39
- items,
40
- strategy: verticalListSortingStrategy,
41
- children
42
- });
43
- $[0] = children;
44
- $[1] = items;
45
- $[2] = t1;
46
- } else t1 = $[2];
47
- return t1;
48
- };
49
- const DraggableRow = (t0) => {
50
- const $ = c(18);
51
- const { id, className, isClickable, isSelected, onClick, onDoubleClick, children } = t0;
52
- let t1;
53
- if ($[0] !== id) {
54
- t1 = { id };
55
- $[0] = id;
56
- $[1] = t1;
57
- } else t1 = $[1];
58
- const { transform, transition, setNodeRef, isDragging } = useSortable(t1);
59
- let t2;
60
- if ($[2] !== transform) {
61
- t2 = CSS.Transform.toString(transform);
62
- $[2] = transform;
63
- $[3] = t2;
64
- } else t2 = $[3];
65
- const t3 = isDragging ? .8 : 1;
66
- const t4 = isDragging ? 1 : 0;
67
- let t5;
68
- if ($[4] !== t2 || $[5] !== t3 || $[6] !== t4 || $[7] !== transition) {
69
- t5 = {
70
- transform: t2,
71
- transition,
72
- opacity: t3,
73
- zIndex: t4,
74
- position: "relative"
75
- };
76
- $[4] = t2;
77
- $[5] = t3;
78
- $[6] = t4;
79
- $[7] = transition;
80
- $[8] = t5;
81
- } else t5 = $[8];
82
- const style = t5;
83
- const t6 = isClickable || void 0;
84
- const t7 = isSelected || void 0;
85
- let t8;
86
- if ($[9] !== children || $[10] !== className || $[11] !== onClick || $[12] !== onDoubleClick || $[13] !== setNodeRef || $[14] !== style || $[15] !== t6 || $[16] !== t7) {
87
- t8 = /* @__PURE__ */ jsx("tr", {
88
- ref: setNodeRef,
89
- style,
90
- className,
91
- "data-clickable": t6,
92
- "data-selected": t7,
93
- onClick,
94
- onDoubleClick,
95
- children
96
- });
97
- $[9] = children;
98
- $[10] = className;
99
- $[11] = onClick;
100
- $[12] = onDoubleClick;
101
- $[13] = setNodeRef;
102
- $[14] = style;
103
- $[15] = t6;
104
- $[16] = t7;
105
- $[17] = t8;
106
- } else t8 = $[17];
107
- return t8;
108
- };
109
- const DragHandle = (t0) => {
110
- const $ = c(6);
111
- const { id, children } = t0;
112
- let t1;
113
- if ($[0] !== id) {
114
- t1 = { id };
115
- $[0] = id;
116
- $[1] = t1;
117
- } else t1 = $[1];
118
- const { attributes, listeners } = useSortable(t1);
119
- let t2;
120
- if ($[2] !== attributes || $[3] !== children || $[4] !== listeners) {
121
- t2 = children({
122
- ...attributes,
123
- ...listeners
124
- });
125
- $[2] = attributes;
126
- $[3] = children;
127
- $[4] = listeners;
128
- $[5] = t2;
129
- } else t2 = $[5];
130
- return t2;
131
- };
132
- //#endregion
133
- export { DndProvider, DragHandle, DraggableRow, SortableRows };