@konoma-development/react-components 0.1.3 → 0.1.5

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.
@@ -7562,6 +7562,7 @@ function Input$2({
7562
7562
  textRight,
7563
7563
  centered,
7564
7564
  error,
7565
+ step,
7565
7566
  required,
7566
7567
  name,
7567
7568
  value,
@@ -7621,6 +7622,7 @@ function Input$2({
7621
7622
  radix: ".",
7622
7623
  unmask: true,
7623
7624
  ref,
7625
+ step,
7624
7626
  inputRef,
7625
7627
  placeholder,
7626
7628
  value: value?.toString(),
@@ -7653,6 +7655,7 @@ function Input$2({
7653
7655
  ref.current?.showPicker();
7654
7656
  onClick(e);
7655
7657
  },
7658
+ step,
7656
7659
  onBlur,
7657
7660
  onKeyDown,
7658
7661
  className: classesFull.join(" "),
@@ -24247,13 +24250,13 @@ function Table({
24247
24250
  children: column.filterable && column.filterKey && /* @__PURE__ */ jsx$1(Fragment, { children: column.filterComponent?.(filters, updateFilters) || filterComponents?.[column.id]?.(filters, updateFilters) || /* @__PURE__ */ jsx$1(
24248
24251
  Input$2,
24249
24252
  {
24250
- defaultValue: filters[column.filterKey],
24253
+ defaultValue: filters[column.filterKey]?.join(", "),
24251
24254
  onKeyDown: async (e) => {
24252
24255
  if (e.key === "Enter" && column.filterKey) {
24253
24256
  const key = column.filterKey;
24254
24257
  const value = e.currentTarget.value;
24255
24258
  if (e) {
24256
- await updateFilters({ ...filters, [key]: value });
24259
+ await updateFilters({ ...filters, [key]: [value] });
24257
24260
  } else {
24258
24261
  const newFilters = { ...filters };
24259
24262
  delete newFilters[key];
@@ -24277,7 +24280,7 @@ function Table({
24277
24280
  className: "h-10",
24278
24281
  iconRightName: filters[column.filterKey] ? "heroicons:x-mark" : ""
24279
24282
  },
24280
- filters[column.filterKey]
24283
+ filters[column.filterKey]?.join(", ")
24281
24284
  ) })
24282
24285
  },
24283
24286
  Object.keys(filters).join("-")
@@ -24325,13 +24328,13 @@ function Table({
24325
24328
  children: column.filterable && column.filterKey && /* @__PURE__ */ jsx$1(Fragment, { children: column.filterComponent?.(filters, updateFilters) || filterComponents?.[column.id]?.(filters, updateFilters) || /* @__PURE__ */ jsx$1(
24326
24329
  Input$2,
24327
24330
  {
24328
- defaultValue: filters[column.filterKey],
24331
+ defaultValue: filters[column.filterKey]?.join(", "),
24329
24332
  onKeyDown: async (e) => {
24330
24333
  if (e.key === "Enter" && column.filterKey) {
24331
24334
  const key = column.filterKey;
24332
24335
  const value = e.currentTarget.value;
24333
24336
  if (e) {
24334
- await updateFilters({ ...filters, [key]: value });
24337
+ await updateFilters({ ...filters, [key]: [value] });
24335
24338
  } else {
24336
24339
  const newFilters = { ...filters };
24337
24340
  delete newFilters[key];
@@ -24355,7 +24358,7 @@ function Table({
24355
24358
  className: "h-10",
24356
24359
  iconRightName: filters[column.filterKey] ? "heroicons:x-mark" : ""
24357
24360
  },
24358
- filters[column.filterKey]
24361
+ filters[column.filterKey]?.join(", ")
24359
24362
  ) })
24360
24363
  },
24361
24364
  Object.keys(filters).join("-")