@konoma-development/react-components 0.1.4 → 0.1.6
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.
|
@@ -16086,6 +16086,7 @@ function Select({
|
|
|
16086
16086
|
required,
|
|
16087
16087
|
error,
|
|
16088
16088
|
defaultValue,
|
|
16089
|
+
menuPlacement = "auto",
|
|
16089
16090
|
searchable = false,
|
|
16090
16091
|
label,
|
|
16091
16092
|
name,
|
|
@@ -16149,7 +16150,7 @@ function Select({
|
|
|
16149
16150
|
})
|
|
16150
16151
|
},
|
|
16151
16152
|
isSearchable: searchable,
|
|
16152
|
-
menuPlacement
|
|
16153
|
+
menuPlacement,
|
|
16153
16154
|
isDisabled: disabled,
|
|
16154
16155
|
name,
|
|
16155
16156
|
classNames: {
|
|
@@ -24250,13 +24251,13 @@ function Table({
|
|
|
24250
24251
|
children: column.filterable && column.filterKey && /* @__PURE__ */ jsx$1(Fragment, { children: column.filterComponent?.(filters, updateFilters) || filterComponents?.[column.id]?.(filters, updateFilters) || /* @__PURE__ */ jsx$1(
|
|
24251
24252
|
Input$2,
|
|
24252
24253
|
{
|
|
24253
|
-
defaultValue: filters[column.filterKey],
|
|
24254
|
+
defaultValue: filters[column.filterKey]?.join(", "),
|
|
24254
24255
|
onKeyDown: async (e) => {
|
|
24255
24256
|
if (e.key === "Enter" && column.filterKey) {
|
|
24256
24257
|
const key = column.filterKey;
|
|
24257
24258
|
const value = e.currentTarget.value;
|
|
24258
24259
|
if (e) {
|
|
24259
|
-
await updateFilters({ ...filters, [key]: value });
|
|
24260
|
+
await updateFilters({ ...filters, [key]: [value] });
|
|
24260
24261
|
} else {
|
|
24261
24262
|
const newFilters = { ...filters };
|
|
24262
24263
|
delete newFilters[key];
|
|
@@ -24280,7 +24281,7 @@ function Table({
|
|
|
24280
24281
|
className: "h-10",
|
|
24281
24282
|
iconRightName: filters[column.filterKey] ? "heroicons:x-mark" : ""
|
|
24282
24283
|
},
|
|
24283
|
-
filters[column.filterKey]
|
|
24284
|
+
filters[column.filterKey]?.join(", ")
|
|
24284
24285
|
) })
|
|
24285
24286
|
},
|
|
24286
24287
|
Object.keys(filters).join("-")
|
|
@@ -24328,13 +24329,13 @@ function Table({
|
|
|
24328
24329
|
children: column.filterable && column.filterKey && /* @__PURE__ */ jsx$1(Fragment, { children: column.filterComponent?.(filters, updateFilters) || filterComponents?.[column.id]?.(filters, updateFilters) || /* @__PURE__ */ jsx$1(
|
|
24329
24330
|
Input$2,
|
|
24330
24331
|
{
|
|
24331
|
-
defaultValue: filters[column.filterKey],
|
|
24332
|
+
defaultValue: filters[column.filterKey]?.join(", "),
|
|
24332
24333
|
onKeyDown: async (e) => {
|
|
24333
24334
|
if (e.key === "Enter" && column.filterKey) {
|
|
24334
24335
|
const key = column.filterKey;
|
|
24335
24336
|
const value = e.currentTarget.value;
|
|
24336
24337
|
if (e) {
|
|
24337
|
-
await updateFilters({ ...filters, [key]: value });
|
|
24338
|
+
await updateFilters({ ...filters, [key]: [value] });
|
|
24338
24339
|
} else {
|
|
24339
24340
|
const newFilters = { ...filters };
|
|
24340
24341
|
delete newFilters[key];
|
|
@@ -24358,7 +24359,7 @@ function Table({
|
|
|
24358
24359
|
className: "h-10",
|
|
24359
24360
|
iconRightName: filters[column.filterKey] ? "heroicons:x-mark" : ""
|
|
24360
24361
|
},
|
|
24361
|
-
filters[column.filterKey]
|
|
24362
|
+
filters[column.filterKey]?.join(", ")
|
|
24362
24363
|
) })
|
|
24363
24364
|
},
|
|
24364
24365
|
Object.keys(filters).join("-")
|