@konoma-development/react-components 0.2.6 → 0.2.8

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.
@@ -7678,8 +7678,8 @@ function Input$2({
7678
7678
  ref,
7679
7679
  placeholder,
7680
7680
  "data-testid": dataTestId,
7681
- value: value?.toString() || "",
7682
- defaultValue: defaultValue?.toString() || "",
7681
+ value: value?.toString() !== void 0 ? value?.toString() : "",
7682
+ defaultValue: defaultValue?.toString() !== void 0 ? value?.toString() : "",
7683
7683
  onInput: (e) => {
7684
7684
  onChange(e.currentTarget.value);
7685
7685
  },
@@ -14770,6 +14770,7 @@ function TagList({
14770
14770
  errorClasses = baseClasses$6.errorClasses,
14771
14771
  classesError = baseClasses$6.classesError,
14772
14772
  classesNeutral = baseClasses$6.classesNeutral,
14773
+ disabled,
14773
14774
  label,
14774
14775
  error,
14775
14776
  required,
@@ -14780,6 +14781,8 @@ function TagList({
14780
14781
  deleteIconPath,
14781
14782
  addIconName,
14782
14783
  addIconPath,
14784
+ allowDelete = true,
14785
+ allowNew = true,
14783
14786
  onChange = () => {
14784
14787
  return;
14785
14788
  },
@@ -14804,19 +14807,18 @@ function TagList({
14804
14807
  {
14805
14808
  title: value.toString(),
14806
14809
  onClick: () => onChange(value),
14807
- "data-testid": dataTestId,
14808
- iconRightName: deleteIconName || "heroicons:x-mark-16-solid",
14809
- iconRightPath: deleteIconPath
14810
+ iconRightName: !disabled && allowDelete ? deleteIconName || "heroicons:x-mark-16-solid" : void 0,
14811
+ iconRightPath: !disabled && allowDelete ? deleteIconPath : void 0,
14812
+ "data-testid": dataTestId
14810
14813
  },
14811
14814
  i
14812
14815
  )),
14813
- /* @__PURE__ */ jsx(
14816
+ !disabled && allowNew && /* @__PURE__ */ jsx(
14814
14817
  Tag,
14815
14818
  {
14816
14819
  title: addTagTitle,
14817
14820
  iconLeftName: addIconName || "heroicons:plus-16-solid",
14818
14821
  iconLeftPath: addIconPath,
14819
- "data-testid": dataTestId,
14820
14822
  wrapperClasses: "flex flex-row h-6 cursor-pointer items-center justify-center gap-1 rounded-krc-tag-list-add border border-secondary-300 px-3 py-1 bg-white",
14821
14823
  onClick: () => onChange("")
14822
14824
  }