@lensui/lens-table 0.1.54 → 0.1.56
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/index.cjs +4 -4
- package/dist/index.css +8 -11
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -342,11 +342,11 @@ function ChoiceEditor({ value, options, style, labels, onChange, onCommit, onCan
|
|
|
342
342
|
lazyMount: true,
|
|
343
343
|
unmountOnExit: true,
|
|
344
344
|
positioning: { sameWidth: true, placement: "bottom-start" },
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
345
|
+
onValueChange: (details) => {
|
|
346
|
+
const nextValue = details.value[0] ?? "";
|
|
347
|
+
onChange(nextValue);
|
|
348
|
+
onCommit(nextValue);
|
|
348
349
|
},
|
|
349
|
-
onValueChange: (details) => onChange(details.value[0] ?? ""),
|
|
350
350
|
onKeyDown: (event) => {
|
|
351
351
|
event.stopPropagation();
|
|
352
352
|
if (event.key === "Escape") onCancel();
|
package/dist/index.css
CHANGED
|
@@ -2022,7 +2022,7 @@
|
|
|
2022
2022
|
line-height: normal;
|
|
2023
2023
|
}
|
|
2024
2024
|
.rvg-date-value {
|
|
2025
|
-
padding: 0 4px
|
|
2025
|
+
padding: 0 4px;
|
|
2026
2026
|
}
|
|
2027
2027
|
.rvg-choice-editor [data-part=value-text] {
|
|
2028
2028
|
min-width: 0;
|
|
@@ -2091,11 +2091,11 @@
|
|
|
2091
2091
|
}
|
|
2092
2092
|
.rvg-clear-icon {
|
|
2093
2093
|
display: block;
|
|
2094
|
-
width:
|
|
2095
|
-
height:
|
|
2094
|
+
width: 12px;
|
|
2095
|
+
height: 12px;
|
|
2096
2096
|
fill: none;
|
|
2097
2097
|
stroke: currentColor;
|
|
2098
|
-
stroke-width: 1.
|
|
2098
|
+
stroke-width: 1.5;
|
|
2099
2099
|
stroke-linecap: round;
|
|
2100
2100
|
}
|
|
2101
2101
|
.rvg-date-editor [data-part=trigger]:hover {
|
|
@@ -2104,11 +2104,11 @@
|
|
|
2104
2104
|
}
|
|
2105
2105
|
.rvg-calendar-icon {
|
|
2106
2106
|
display: block;
|
|
2107
|
-
width:
|
|
2108
|
-
height:
|
|
2109
|
-
fill:
|
|
2107
|
+
width: 12px;
|
|
2108
|
+
height: 12px;
|
|
2109
|
+
fill: none;
|
|
2110
2110
|
stroke: currentColor;
|
|
2111
|
-
stroke-width:
|
|
2111
|
+
stroke-width: 1.5px;
|
|
2112
2112
|
stroke-linejoin: round;
|
|
2113
2113
|
paint-order: stroke fill;
|
|
2114
2114
|
}
|
|
@@ -2665,6 +2665,3 @@
|
|
|
2665
2665
|
margin: 0;
|
|
2666
2666
|
-webkit-appearance: none;
|
|
2667
2667
|
}
|
|
2668
|
-
.rvg-native-editor .rvg-clear-trigger {
|
|
2669
|
-
background: transparent;
|
|
2670
|
-
}
|
package/dist/index.js
CHANGED
|
@@ -312,11 +312,11 @@ function ChoiceEditor({ value, options, style, labels, onChange, onCommit, onCan
|
|
|
312
312
|
lazyMount: true,
|
|
313
313
|
unmountOnExit: true,
|
|
314
314
|
positioning: { sameWidth: true, placement: "bottom-start" },
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
onValueChange: (details) => {
|
|
316
|
+
const nextValue = details.value[0] ?? "";
|
|
317
|
+
onChange(nextValue);
|
|
318
|
+
onCommit(nextValue);
|
|
318
319
|
},
|
|
319
|
-
onValueChange: (details) => onChange(details.value[0] ?? ""),
|
|
320
320
|
onKeyDown: (event) => {
|
|
321
321
|
event.stopPropagation();
|
|
322
322
|
if (event.key === "Escape") onCancel();
|