@konoma-development/react-components 0.1.23 → 0.1.24
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.
|
@@ -14704,11 +14704,14 @@ function TagList({
|
|
|
14704
14704
|
errorClasses = baseClasses$6.errorClasses,
|
|
14705
14705
|
classesError = baseClasses$6.classesError,
|
|
14706
14706
|
classesNeutral = baseClasses$6.classesNeutral,
|
|
14707
|
+
disabled,
|
|
14707
14708
|
label,
|
|
14708
14709
|
error,
|
|
14709
14710
|
required,
|
|
14710
14711
|
values,
|
|
14711
14712
|
addTagTitle = "",
|
|
14713
|
+
allowDelete = true,
|
|
14714
|
+
allowNew = true,
|
|
14712
14715
|
onChange = () => {
|
|
14713
14716
|
return;
|
|
14714
14717
|
},
|
|
@@ -14728,8 +14731,16 @@ function TagList({
|
|
|
14728
14731
|
required && "*"
|
|
14729
14732
|
] }),
|
|
14730
14733
|
/* @__PURE__ */ jsxs("div", { className: classesFull.join(" "), children: [
|
|
14731
|
-
values?.map((value, i) => /* @__PURE__ */ jsx(
|
|
14732
|
-
|
|
14734
|
+
values?.map((value, i) => /* @__PURE__ */ jsx(
|
|
14735
|
+
Tag,
|
|
14736
|
+
{
|
|
14737
|
+
title: value.toString(),
|
|
14738
|
+
onClick: () => onChange(value),
|
|
14739
|
+
iconRightName: !disabled && allowDelete ? "heroicons:x-mark-16-solid" : void 0
|
|
14740
|
+
},
|
|
14741
|
+
i
|
|
14742
|
+
)),
|
|
14743
|
+
!disabled && allowNew && /* @__PURE__ */ jsx(
|
|
14733
14744
|
Tag,
|
|
14734
14745
|
{
|
|
14735
14746
|
title: addTagTitle,
|