conversion-ui-library 1.1.12 → 1.1.13
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/components/EditorTextField/EditorTextField.d.ts.map +1 -1
- package/dist/components/Icons/icon.d.ts.map +1 -1
- package/dist/components/Icons/icon.stories.d.ts.map +1 -1
- package/dist/components/TextField/TextField.advanced.stories.d.ts +28 -0
- package/dist/components/TextField/TextField.advanced.stories.d.ts.map +1 -0
- package/dist/components/ui/textfield.d.ts +3 -3
- package/dist/components/ui/textfield.d.ts.map +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.css +1 -1
- package/dist/index.es.js +87 -71
- package/dist/index.umd.js +3 -3
- package/package.json +3 -2
package/dist/index.es.js
CHANGED
|
@@ -4404,7 +4404,12 @@ const FD = (t) => /* @__PURE__ */ I(
|
|
|
4404
4404
|
return /* @__PURE__ */ y(
|
|
4405
4405
|
a,
|
|
4406
4406
|
{
|
|
4407
|
-
className: j(
|
|
4407
|
+
className: j(
|
|
4408
|
+
fL[e],
|
|
4409
|
+
dL[r],
|
|
4410
|
+
o.className,
|
|
4411
|
+
n
|
|
4412
|
+
),
|
|
4408
4413
|
...i
|
|
4409
4414
|
}
|
|
4410
4415
|
);
|
|
@@ -12789,12 +12794,6 @@ const CB = zr(
|
|
|
12789
12794
|
md: "h-10 px-3 py-[7px] rounded-md",
|
|
12790
12795
|
lg: "h-12 px-5 rounded-md"
|
|
12791
12796
|
},
|
|
12792
|
-
error: {
|
|
12793
|
-
true: "!border-red-500 !bg-white"
|
|
12794
|
-
},
|
|
12795
|
-
success: {
|
|
12796
|
-
true: "!border-green-500 !bg-white"
|
|
12797
|
-
},
|
|
12798
12797
|
disabled: {
|
|
12799
12798
|
true: "bg-soft-1 border-soft-1 cursor-not-allowed opacity-60 pointer-events-none"
|
|
12800
12799
|
}
|
|
@@ -12822,66 +12821,80 @@ const CB = zr(
|
|
|
12822
12821
|
...h
|
|
12823
12822
|
}, O) => {
|
|
12824
12823
|
const [p, g] = m.useState(!1), v = f === "password", b = v && u && p ? "text" : f;
|
|
12825
|
-
return /* @__PURE__ */ I(
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12824
|
+
return /* @__PURE__ */ I(
|
|
12825
|
+
"div",
|
|
12826
|
+
{
|
|
12827
|
+
className: "w-full group/textfield",
|
|
12828
|
+
"data-error": n || void 0,
|
|
12829
|
+
"data-success": i || void 0,
|
|
12830
|
+
"data-disabled": o || void 0,
|
|
12831
|
+
children: [
|
|
12832
|
+
a && /* @__PURE__ */ I(
|
|
12833
|
+
Je,
|
|
12834
|
+
{
|
|
12835
|
+
size: "small",
|
|
12836
|
+
fontWeight: "medium",
|
|
12837
|
+
className: "mb-2 block text-sub",
|
|
12838
|
+
children: [
|
|
12839
|
+
a,
|
|
12840
|
+
d && /* @__PURE__ */ y("span", { className: "ml-1 text-red-500", children: "*" })
|
|
12841
|
+
]
|
|
12842
|
+
}
|
|
12844
12843
|
),
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12844
|
+
/* @__PURE__ */ I(
|
|
12845
|
+
"div",
|
|
12846
|
+
{
|
|
12847
|
+
className: j(
|
|
12848
|
+
CB({ variant: e, size: r, disabled: o }),
|
|
12849
|
+
// CSS-based state management - no re-render needed
|
|
12850
|
+
"group-data-[error]/textfield:!border-red-500 group-data-[error]/textfield:!bg-white",
|
|
12851
|
+
"group-data-[success]/textfield:!border-green-500 group-data-[success]/textfield:!bg-white",
|
|
12852
|
+
t
|
|
12853
|
+
),
|
|
12854
|
+
children: [
|
|
12855
|
+
l && /* @__PURE__ */ y("div", { className: "flex shrink-0 items-center text-sub-1", children: l }),
|
|
12856
|
+
/* @__PURE__ */ y(
|
|
12857
|
+
"input",
|
|
12858
|
+
{
|
|
12859
|
+
ref: O,
|
|
12860
|
+
type: b,
|
|
12861
|
+
disabled: o ?? void 0,
|
|
12862
|
+
className: j(
|
|
12863
|
+
"flex-1 min-w-0 bg-transparent !text-label-sm font-medium text-strong outline-none placeholder:text-sub-1",
|
|
12864
|
+
"disabled:cursor-not-allowed"
|
|
12865
|
+
),
|
|
12866
|
+
...h
|
|
12867
|
+
}
|
|
12856
12868
|
),
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
!v && c && /* @__PURE__ */ y("div", { className: "flex shrink-0 items-center text-sub-1", children: c })
|
|
12871
|
-
]
|
|
12872
|
-
}
|
|
12873
|
-
),
|
|
12874
|
-
s && /* @__PURE__ */ y(
|
|
12875
|
-
"p",
|
|
12876
|
-
{
|
|
12877
|
-
className: j(
|
|
12878
|
-
"mt-1 text-xs",
|
|
12879
|
-
n ? "text-red-500" : i ? "text-green-500" : "text-sub"
|
|
12869
|
+
v && u && /* @__PURE__ */ y(
|
|
12870
|
+
"button",
|
|
12871
|
+
{
|
|
12872
|
+
type: "button",
|
|
12873
|
+
onClick: () => g(!p),
|
|
12874
|
+
disabled: o ?? void 0,
|
|
12875
|
+
className: "flex shrink-0 items-center text-sub-1 transition-colors hover:text-strong",
|
|
12876
|
+
children: p ? /* @__PURE__ */ y(DI, { className: "h-4 w-4" }) : /* @__PURE__ */ y(zI, { className: "h-4 w-4" })
|
|
12877
|
+
}
|
|
12878
|
+
),
|
|
12879
|
+
!v && c && /* @__PURE__ */ y("div", { className: "flex shrink-0 items-center text-sub-1", children: c })
|
|
12880
|
+
]
|
|
12881
|
+
}
|
|
12880
12882
|
),
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12883
|
+
s && /* @__PURE__ */ y(
|
|
12884
|
+
"p",
|
|
12885
|
+
{
|
|
12886
|
+
className: j(
|
|
12887
|
+
"mt-1 text-xs text-sub",
|
|
12888
|
+
// CSS-based color management
|
|
12889
|
+
"group-data-[error]/textfield:text-red-500",
|
|
12890
|
+
"group-data-[success]/textfield:text-green-500"
|
|
12891
|
+
),
|
|
12892
|
+
children: s
|
|
12893
|
+
}
|
|
12894
|
+
)
|
|
12895
|
+
]
|
|
12896
|
+
}
|
|
12897
|
+
);
|
|
12885
12898
|
}
|
|
12886
12899
|
);
|
|
12887
12900
|
$B.displayName = "TextField";
|
|
@@ -52208,24 +52221,27 @@ const Zye = /* @__PURE__ */ le.inputHandler.of((t, e, r, n, i) => {
|
|
|
52208
52221
|
color: Vye
|
|
52209
52222
|
}
|
|
52210
52223
|
]), Jye = [Hye, /* @__PURE__ */ F_(Kye)], ebe = zc.define([
|
|
52211
|
-
{ tag: P.keyword, color: "#
|
|
52224
|
+
{ tag: P.keyword, color: "#3B82F6", fontWeight: "semibold" },
|
|
52212
52225
|
{ tag: [P.name, P.deleted, P.character, P.macroName], color: "#22863a" },
|
|
52213
52226
|
{ tag: [P.propertyName], color: "#6f42c1" },
|
|
52214
52227
|
{ tag: [P.processingInstruction, P.string, P.inserted], color: "#032f62" },
|
|
52215
52228
|
{ tag: [P.function(P.variableName), P.labelName], color: "#6f42c1" },
|
|
52216
52229
|
{ tag: [P.color, P.constant(P.name), P.standard(P.name)], color: "#005cc5" },
|
|
52217
52230
|
{ tag: [P.definition(P.name), P.separator], color: "#24292e" },
|
|
52218
|
-
{ tag: [P.className], color: "#6f42c1", fontWeight: "
|
|
52219
|
-
{
|
|
52220
|
-
|
|
52231
|
+
{ tag: [P.className], color: "#6f42c1", fontWeight: "semibold" },
|
|
52232
|
+
{
|
|
52233
|
+
tag: [P.number, P.changed, P.annotation, P.modifier, P.self, P.namespace],
|
|
52234
|
+
color: "#005cc5"
|
|
52235
|
+
},
|
|
52236
|
+
{ tag: [P.typeName], color: "#d73a49", fontWeight: "semibold" },
|
|
52221
52237
|
{ tag: [P.operator, P.operatorKeyword], color: "#d73a49" },
|
|
52222
52238
|
{ tag: [P.url, P.escape, P.regexp, P.link], color: "#032f62" },
|
|
52223
52239
|
{ tag: [P.meta, P.comment], color: "#6a737d", fontStyle: "italic" },
|
|
52224
|
-
{ tag: P.strong, fontWeight: "
|
|
52240
|
+
{ tag: P.strong, fontWeight: "semibold" },
|
|
52225
52241
|
{ tag: P.emphasis, fontStyle: "italic" },
|
|
52226
52242
|
{ tag: P.link, textDecoration: "underline" },
|
|
52227
|
-
{ tag: P.heading, fontWeight: "
|
|
52228
|
-
{ tag: [P.atom, P.bool, P.special(P.variableName)], color: "#
|
|
52243
|
+
{ tag: P.heading, fontWeight: "semibold", color: "#005cc5" },
|
|
52244
|
+
{ tag: [P.atom, P.bool, P.special(P.variableName)], color: "#EF4444" },
|
|
52229
52245
|
{ tag: P.invalid, color: "#cb2431" }
|
|
52230
52246
|
]), tbe = zr(
|
|
52231
52247
|
"w-full border transition-all duration-200 shadow-sm overflow-hidden",
|