sakana-element 2.4.1 → 2.5.0

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.
Files changed (142) hide show
  1. package/dist/es/Alert-Bh6HeGRU.js +57 -0
  2. package/dist/es/Avatar-NF4bQN7G.js +5 -0
  3. package/dist/es/Badge-CHgxCwjo.js +7 -0
  4. package/dist/es/Breadcrumb-lEWE4Gu6.js +6 -0
  5. package/dist/es/Button-BM129Q7H.js +28 -0
  6. package/dist/es/Card-DAAF5q-g.js +8 -0
  7. package/dist/es/Carousel-Cc98Eg3m.js +11 -0
  8. package/dist/es/ChatBubble-DvRSjkcV.js +5 -0
  9. package/dist/es/Checkbox-WwH8lZhh.js +228 -0
  10. package/dist/es/Collapse-CR_RWE5e.js +11 -0
  11. package/dist/es/Collapsible-BHg6BxmU.js +12 -0
  12. package/dist/es/Command-DM1kXZ6n.js +45 -0
  13. package/dist/es/ConfigProvider-Bfp86-Oj.js +35 -0
  14. package/dist/es/Diff-Cs62zIBX.js +17 -0
  15. package/dist/es/Divider-Yq-jZAD6.js +5 -0
  16. package/dist/es/Drawer-DTIUkiIQ.js +6 -0
  17. package/dist/es/Dropdown-uSRkAnxr.js +115 -0
  18. package/dist/es/FileInput-rT_BAYOK.js +113 -0
  19. package/dist/es/Filter-pj4lwoJ3.js +13 -0
  20. package/dist/es/Icon-DXRJjblp.js +3 -0
  21. package/dist/es/Indicator-BeFoSuXk.js +5 -0
  22. package/dist/es/Input-DL5clGaQ.js +8 -0
  23. package/dist/es/Kbd-BK_mWOUQ.js +5 -0
  24. package/dist/es/Link-t_r2AmyI.js +5 -0
  25. package/dist/es/Loading-CfMeogGy.js +27 -0
  26. package/dist/es/Message-DVd-37vE.js +51 -0
  27. package/dist/es/Notification-DzFscVIb.js +22 -0
  28. package/dist/es/Pixelate-CnY7ulip.js +12 -0
  29. package/dist/es/Popconfirm-BeIJD0c1.js +8 -0
  30. package/dist/es/Progress-DkjXY0in.js +6 -0
  31. package/dist/es/Radio-BEFq7s6x.js +11 -0
  32. package/dist/es/Resizable-CiWcvscr.js +59 -0
  33. package/dist/es/Select-_AakAT4E.js +31 -0
  34. package/dist/es/Skeleton-HaEvHu7t.js +7 -0
  35. package/dist/es/Switch-DTwoMkmG.js +11 -0
  36. package/dist/es/Table-CtnNz-I3.js +5 -0
  37. package/dist/es/Tooltip-C3XS2Ue8.js +4 -0
  38. package/dist/es/Validator-B_i9IpaG.js +16 -0
  39. package/dist/es/index.js +41 -140
  40. package/dist/index.css +2 -1
  41. package/dist/theme/Alert.css +1 -295
  42. package/dist/theme/Avatar.css +1 -86
  43. package/dist/theme/Badge.css +1 -214
  44. package/dist/theme/Breadcrumb.css +1 -192
  45. package/dist/theme/Button.css +1 -1570
  46. package/dist/theme/Card.css +1 -347
  47. package/dist/theme/Carousel.css +1 -0
  48. package/dist/theme/ChatBubble.css +1 -218
  49. package/dist/theme/Checkbox.css +1 -604
  50. package/dist/theme/Collapse.css +1 -764
  51. package/dist/theme/Collapsible.css +1 -0
  52. package/dist/theme/Command.css +1 -0
  53. package/dist/theme/Diff.css +1 -110
  54. package/dist/theme/Divider.css +1 -150
  55. package/dist/theme/Drawer.css +1 -206
  56. package/dist/theme/Dropdown.css +1 -471
  57. package/dist/theme/FileInput.css +1 -397
  58. package/dist/theme/Filter.css +1 -598
  59. package/dist/theme/Indicator.css +1 -159
  60. package/dist/theme/Input.css +1 -647
  61. package/dist/theme/Kbd.css +1 -104
  62. package/dist/theme/Link.css +1 -69
  63. package/dist/theme/Loading.css +1 -266
  64. package/dist/theme/Message.css +1 -565
  65. package/dist/theme/Notification.css +1 -316
  66. package/dist/theme/Popconfirm.css +1 -46
  67. package/dist/theme/Progress.css +1 -278
  68. package/dist/theme/Radio.css +1 -492
  69. package/dist/theme/Resizable.css +1 -95
  70. package/dist/theme/Select.css +1 -584
  71. package/dist/theme/Skeleton.css +1 -192
  72. package/dist/theme/Switch.css +1 -323
  73. package/dist/theme/Table.css +1 -680
  74. package/dist/theme/Validator.css +1 -25
  75. package/dist/theme/index.css +1 -341
  76. package/dist/types/components/Badge/types.d.ts +2 -0
  77. package/dist/types/components/Carousel/constants.d.ts +6 -0
  78. package/dist/types/components/Carousel/index.d.ts +77 -0
  79. package/dist/types/components/Carousel/types.d.ts +27 -0
  80. package/dist/types/components/Collapsible/constants.d.ts +6 -0
  81. package/dist/types/components/Collapsible/index.d.ts +85 -0
  82. package/dist/types/components/Collapsible/types.d.ts +22 -0
  83. package/dist/types/components/Command/constants.d.ts +4 -0
  84. package/dist/types/components/Command/index.d.ts +216 -0
  85. package/dist/types/components/Command/types.d.ts +59 -0
  86. package/dist/types/components/Icon/index.d.ts +1 -1
  87. package/dist/types/components/Input/types.d.ts +2 -0
  88. package/dist/types/components/Select/index.d.ts +2 -0
  89. package/dist/types/components/Validator/index.d.ts +1 -0
  90. package/dist/types/components/index.d.ts +3 -0
  91. package/dist/types/core/index.d.ts +1 -1
  92. package/dist/types/hooks/index.d.ts +3 -2
  93. package/dist/types/hooks/useLocale.d.ts +9 -1
  94. package/dist/umd/index.css +2 -1
  95. package/dist/umd/index.css.gz +0 -0
  96. package/dist/umd/index.umd.cjs +1255 -5
  97. package/dist/umd/index.umd.cjs.gz +0 -0
  98. package/package.json +1 -2
  99. package/dist/es/Alert-DRIDwear.js +0 -19
  100. package/dist/es/Avatar-Dkvvhw_D.js +0 -9
  101. package/dist/es/Badge-CLNacHVq.js +0 -14
  102. package/dist/es/Breadcrumb-CfJA9NZz.js +0 -15
  103. package/dist/es/Button-Dj1DIvXh.js +0 -24
  104. package/dist/es/Card-meh7F1e2.js +0 -16
  105. package/dist/es/ChatBubble-Ccr3wzoK.js +0 -9
  106. package/dist/es/Checkbox-vOcwl1OX.js +0 -51
  107. package/dist/es/Collapse-BG58s0uJ.js +0 -53
  108. package/dist/es/ConfigProvider-Cr8Hpzf2.js +0 -44
  109. package/dist/es/Diff-KQ44cDcY.js +0 -64
  110. package/dist/es/Divider-CYYeUqYc.js +0 -9
  111. package/dist/es/Drawer-CDXFDfrf.js +0 -40
  112. package/dist/es/Dropdown-CPZtzHPx.js +0 -104
  113. package/dist/es/FileInput-Ram4-wy2.js +0 -33
  114. package/dist/es/Filter-CLLkrn-W.js +0 -40
  115. package/dist/es/Form-po3aIrSN.js +0 -123
  116. package/dist/es/Icon-XJfGGAMY.js +0 -27
  117. package/dist/es/Indicator-vsSp5r5K.js +0 -9
  118. package/dist/es/Input-KrNqNZMe.js +0 -42
  119. package/dist/es/Kbd-CtCGx7_s.js +0 -13
  120. package/dist/es/Link-Bbwdgs74.js +0 -11
  121. package/dist/es/Loading-DiyIiKxO.js +0 -92
  122. package/dist/es/Message-BoNCtMo7.js +0 -152
  123. package/dist/es/Notification-CFY-yvRf.js +0 -69
  124. package/dist/es/Overlay-DoFA2lgP.js +0 -12
  125. package/dist/es/Pixelate-dqwHc6nX.js +0 -39
  126. package/dist/es/Popconfirm-DPOujyiA.js +0 -23
  127. package/dist/es/Progress-B0oYE8Z3.js +0 -12
  128. package/dist/es/Radio-C-Ot7pLA.js +0 -33
  129. package/dist/es/Resizable-G5KVHayx.js +0 -151
  130. package/dist/es/Select-DqxPeAKK.js +0 -133
  131. package/dist/es/Skeleton-4SeKRKn9.js +0 -15
  132. package/dist/es/Switch-C_tBxZtT.js +0 -34
  133. package/dist/es/Table-Cr6HFL4_.js +0 -10
  134. package/dist/es/Tooltip-rak4BryQ.js +0 -74
  135. package/dist/es/Validator-DKVfknvI.js +0 -40
  136. package/dist/es/hooks-pTjI-j9o.js +0 -169
  137. package/dist/es/utils-DzOow9K9.js +0 -155
  138. package/dist/es/vendor-DrBJKLFW.js +0 -1353
  139. package/dist/theme/Form.css +0 -83
  140. package/dist/theme/Icon.css +0 -168
  141. package/dist/theme/Overlay.css +0 -12
  142. package/dist/theme/Tooltip.css +0 -235
@@ -1,40 +0,0 @@
1
- import { c as e, r as l, w as a } from "./utils-DzOow9K9.js";
2
- import { defineComponent as i, useSlots as t, inject as u, computed as o, createElementBlock as s, openBlock as r, normalizeStyle as d, normalizeClass as n, createElementVNode as v, createCommentVNode as c, unref as m, renderSlot as p, createTextVNode as f, toDisplayString as b, provide as y, createVNode as h, Fragment as k, renderList as x, createBlock as V } from "vue";
3
- import { P as g } from "./Icon-XJfGGAMY.js";
4
- import { u as _ } from "./hooks-pTjI-j9o.js";
5
- const A = Symbol("filterContext"), z = { "active-color": "color", "active-border-color": "dark" }, F = ["type", "aria-checked", "id", "name", "disabled", "checked"], P = { key: 0, class: "px-filter-item__label" }, $ = i({ name: "PxFilterItem", inheritAttrs: false, __name: "FilterItem", props: { value: {}, label: {}, disabled: { type: Boolean } }, setup(a2) {
6
- const i2 = a2, y2 = t(), h2 = u(A, void 0), k2 = !!h2, x2 = _().value, V2 = o((() => (h2 == null ? void 0 : h2.multiple.value) ?? false)), g2 = o((() => {
7
- if (!k2) return false;
8
- const e2 = h2.modelValue.value;
9
- return V2.value ? Array.isArray(e2) && e2.includes(i2.value) : e2 === i2.value;
10
- })), $2 = o((() => !!k2 && !V2.value && h2.hasSelection.value && !g2.value)), j2 = o((() => !!(h2 == null ? void 0 : h2.disabled.value) || (i2.disabled ?? false))), B2 = o((() => h2 == null ? void 0 : h2.size.value)), C2 = o((() => h2 == null ? void 0 : h2.type.value)), E = o((() => h2 == null ? void 0 : h2.color.value)), I = o((() => h2 == null ? void 0 : h2.name.value)), S = o((() => {
11
- const a3 = E.value;
12
- if (!a3) return {};
13
- const i3 = e(a3);
14
- return l(i3, "px-filter-item", z);
15
- }));
16
- function w() {
17
- !j2.value && k2 && (V2.value ? h2.changeEvent(i2.value) : h2.changeEvent(g2.value ? void 0 : i2.value));
18
- }
19
- return (e2, l2) => (r(), s("div", { class: n(["px-filter-item", { [`px-filter-item--${B2.value}`]: B2.value, [`px-filter-item--${C2.value}`]: C2.value, "is-active": g2.value, "is-disabled": j2.value, "is-hidden": $2.value }]), style: d(S.value), onClick: w }, [v("input", { class: "px-filter-item__original", type: V2.value ? "checkbox" : "radio", "aria-checked": g2.value, id: m(x2), name: I.value, disabled: j2.value, checked: g2.value }, null, 8, F), e2.label || m(y2).default ? (r(), s("span", P, [p(e2.$slots, "default", {}, (() => [f(b(e2.label), 1)]))])) : c("", true)], 6));
20
- } }), j = ["role"], B = a(i({ name: "PxFilter", __name: "Filter", props: { modelValue: {}, options: {}, name: {}, disabled: { type: Boolean, default: false }, size: {}, type: {}, color: {}, multiple: { type: Boolean, default: false } }, emits: ["update:modelValue", "change"], setup(e2, { emit: l2 }) {
21
- const a2 = e2, i2 = l2, t2 = o((() => a2.multiple ? Array.isArray(a2.modelValue) && a2.modelValue.length > 0 : void 0 !== a2.modelValue)), u2 = (e3) => {
22
- if (a2.multiple) {
23
- const l3 = Array.isArray(a2.modelValue) ? [...a2.modelValue] : [];
24
- if (void 0 === e3) return i2("update:modelValue", []), void i2("change", []);
25
- const t3 = l3.indexOf(e3);
26
- t3 >= 0 ? l3.splice(t3, 1) : l3.push(e3), i2("update:modelValue", l3), i2("change", l3);
27
- } else i2("update:modelValue", e3), i2("change", e3);
28
- };
29
- function d2() {
30
- u2(void 0);
31
- }
32
- return y(A, { modelValue: o((() => a2.modelValue)), disabled: o((() => a2.disabled)), size: o((() => a2.size)), type: o((() => a2.type)), color: o((() => a2.color)), name: o((() => a2.name)), multiple: o((() => a2.multiple)), hasSelection: t2, changeEvent: u2 }), (e3, l3) => {
33
- var _a;
34
- return r(), s("div", { class: n(["px-filter", { "is-collapsed": !e3.multiple && t2.value }]), role: e3.multiple ? "group" : "radiogroup" }, [t2.value ? (r(), s("div", { key: 0, class: "px-filter__reset", onClick: d2 }, [h(g, { icon: "close" })])) : c("", true), ((_a = e3.options) == null ? void 0 : _a.length) ? (r(true), s(k, { key: 1 }, x(e3.options, ((e4) => (r(), V($, { key: e4.value, value: e4.value, label: e4.label, disabled: e4.disabled }, null, 8, ["value", "label", "disabled"])))), 128)) : p(e3.$slots, "default", { key: 2 })], 10, j);
35
- };
36
- } })), C = a($);
37
- export {
38
- B as P,
39
- C as a
40
- };
@@ -1,123 +0,0 @@
1
- import { inject as e, defineComponent as s, reactive as r, toRefs as t, provide as a, createElementBlock as l, openBlock as o, normalizeClass as i, renderSlot as u, useCssVars as n, computed as d, useSlots as c, ref as p, onMounted as m, onUnmounted as v, normalizeStyle as f, unref as h, createBlock as b, createCommentVNode as g, createElementVNode as y, resolveDynamicComponent as x, withCtx as _, createTextVNode as q, toDisplayString as P, nextTick as k } from "vue";
2
- import { d as F, _ as I, w } from "./utils-DzOow9K9.js";
3
- import { f as j, b as $, s as B, c as A, d as S, i as W, e as M, g as V, h as z, j as C, k as O, l as T, p as D } from "./vendor-DrBJKLFW.js";
4
- import { u as E } from "./hooks-pTjI-j9o.js";
5
- import { z as R } from "zod";
6
- import { P as G } from "./Icon-XJfGGAMY.js";
7
- const H = Symbol("formContext"), J = Symbol("formItemContext");
8
- function K() {
9
- return { form: e(H, void 0), formItem: e(J, void 0) };
10
- }
11
- const L = s({ name: "PxForm", __name: "Form", props: { model: {}, rules: {}, disabled: { type: Boolean }, inline: { type: Boolean }, statusIcon: { type: Boolean }, labelWidth: {}, labelPosition: { default: "right" }, labelSuffix: {}, showMessage: { type: Boolean, default: true }, hideRequiredAsterisk: { type: Boolean, default: false }, requiredAsteriskPosition: { default: "left" } }, emits: ["validate"], setup(e2, { expose: s2, emit: n2 }) {
12
- const d2 = n2, c2 = [], p2 = async (e3, s3) => {
13
- try {
14
- const r2 = await (async function(e4 = []) {
15
- let s4 = {};
16
- for (const r3 of e4) try {
17
- await r3.validate("");
18
- } catch (e5) {
19
- s4 = { ...s4, ...e5 };
20
- }
21
- return !B(Object.keys(s4)) || Promise.reject(s4);
22
- })(m2(c2, e3 ?? []));
23
- return true === r2 && (s3 == null ? void 0 : s3(r2)), r2;
24
- } catch (e4) {
25
- if (e4 instanceof Error) throw e4;
26
- const r2 = e4;
27
- return s3 == null ? void 0 : s3(false, r2), Promise.reject(r2);
28
- }
29
- };
30
- function m2(e3, s3) {
31
- return B(s3) ? $(e3, ((e4) => A(s3, e4.prop))) : e3;
32
- }
33
- const v2 = r({ ...t(e2), emits: d2, addField: (e3) => {
34
- e3.prop && c2.push(e3);
35
- }, removeField: (e3) => {
36
- e3.prop && c2.splice(c2.indexOf(e3), 1);
37
- } });
38
- return a(H, v2), s2({ validate: async (e3) => p2([], e3), validateField: p2, resetFields: (e3) => {
39
- j(m2(c2, e3 ?? []), ((e4) => e4.resetField()));
40
- }, clearValidate: (e3) => {
41
- j(m2(c2, e3 ?? []), ((e4) => e4.clearValidate()));
42
- } }), (e3, s3) => (o(), l("form", { class: i(["px-form", { "is-inline": e3.inline }]) }, [u(e3.$slots, "default")], 2));
43
- } }), N = ["aria-describedby"], Q = { class: "px-form-item__input-wrap" }, U = ["id"], X = I(s({ name: "PxFormItem", __name: "FormItem", props: { prop: {}, label: {}, for: {}, labelWidth: {}, disabled: { type: Boolean }, required: { type: Boolean, default: void 0 }, showMessage: { type: Boolean, default: true }, error: {}, rules: {} }, setup(s2, { expose: I2 }) {
44
- n(((e2) => ({ ac9c6e38: le.value })));
45
- const w2 = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]), j2 = s2, K2 = c(), L2 = e(H), X2 = E().value, Y2 = p("init"), Z2 = p(""), ee = p([]), se = (e2) => {
46
- return e2 && j2.prop && !W(V(e2, j2.prop)) ? (s3 = j2.prop, (T(s3) ? s3 : s3.split(".")).some(((e3) => w2.has(e3))) ? (F("PxFormItem", `Prop path "${j2.prop}" contains a dangerous segment and was rejected.`), null) : V(e2, j2.prop)) : null;
47
- var s3;
48
- }, re = d((() => !(!j2.label && !K2.label))), te = d((() => j2.for || (ee.value.length ? ee.value[0] : ""))), ae = d((() => `${j2.label ?? ""}${(L2 == null ? void 0 : L2.labelSuffix) ?? ""}`)), le = d((() => {
49
- const e2 = (e3) => z(e3) ? `${e3}px` : C(e3, "px") ? e3 : `${e3}px`;
50
- return j2.labelWidth ? e2(j2.labelWidth) : (L2 == null ? void 0 : L2.labelWidth) ? e2(L2 == null ? void 0 : L2.labelWidth) : "150px";
51
- })), oe = d((() => (L2 == null ? void 0 : L2.labelPosition) ?? "right")), ie = d((() => "top" === oe.value)), ue = d((() => ie.value ? { width: "100%", textAlign: "left", padding: "0 0 8px 0" } : { textAlign: "left" === oe.value ? "left" : "right" })), ne = d((() => (L2 == null ? void 0 : L2.disabled) || j2.disabled)), de = d((() => {
52
- const e2 = L2 == null ? void 0 : L2.model;
53
- return se(e2);
54
- })), ce = d((() => j2.prop ? S(j2.prop) ? j2.prop : j2.prop.join(".") : "")), pe = d((() => {
55
- const { required: e2 } = j2, s3 = [];
56
- j2.rules && s3.push(...j2.rules);
57
- const r2 = L2 == null ? void 0 : L2.rules;
58
- if (r2 && j2.prop) {
59
- const e3 = se(r2);
60
- e3 && s3.push(...e3);
61
- }
62
- if (!W(e2)) {
63
- const r3 = $(M(s3, ((e3, s4) => [e3, s4])), ((e3) => A(D(e3[0]), "required")));
64
- if (B(r3)) for (const t2 of r3) {
65
- const [r4, a2] = t2;
66
- r4.required !== e2 && (s3[a2] = { ...r4, required: e2 });
67
- }
68
- else s3.push({ required: e2 });
69
- }
70
- return s3;
71
- })), me = d((() => W(j2.required) ? B($(pe.value, ((e2) => e2.required))) > 0 : j2.required));
72
- let ve = null, fe = false;
73
- const he = async (e2, s3) => {
74
- if (fe || !j2.prop || ne.value) return false;
75
- if (!Y2.value) return s3 == null ? void 0 : s3(false), false;
76
- const r2 = (function(e3) {
77
- const s4 = pe.value;
78
- return s4 ? $(s4, ((s5) => !(s5 == null ? void 0 : s5.trigger) || !e3 || (T(s5.trigger) ? s5.trigger.includes(e3) : s5.trigger === e3))) : [];
79
- })(e2);
80
- return B(r2) ? (Y2.value = "validating", (async function(e3) {
81
- var _a;
82
- const s4 = de.value;
83
- for (const r3 of e3) {
84
- let e4 = r3.schema ?? null;
85
- if (!e4 && r3.required && (e4 = R.string({ message: r3.message ?? "This field is required" }).min(1, r3.message ?? "This field is required")), !e4) continue;
86
- const t2 = e4.safeParse(s4);
87
- if (!t2.success) {
88
- const e5 = r3.message ?? ((_a = t2.error.issues[0]) == null ? void 0 : _a.message) ?? "Validation failed";
89
- Y2.value = "error", Z2.value = e5;
90
- const s5 = { errors: [{ field: ce.value, message: e5 }], fields: { [ce.value]: [{ message: e5 }] } };
91
- return L2 == null ? void 0 : L2.emits("validate", j2, false, e5), Promise.reject(s5);
92
- }
93
- }
94
- return Y2.value = "success", L2 == null ? void 0 : L2.emits("validate", j2, true, ""), true;
95
- })(r2).then((() => (s3 == null ? void 0 : s3(true), true))).catch(((e3) => {
96
- const { fields: r3 } = e3;
97
- return s3 == null ? void 0 : s3(false, r3), Promise.reject(r3);
98
- }))) : (s3 == null ? void 0 : s3(true), true);
99
- }, be = () => {
100
- const e2 = L2 == null ? void 0 : L2.model;
101
- e2 && ce.value && !W(V(e2, ce.value)) && (fe = true, e2[ce.value] = O(ve)), k((() => ge()));
102
- }, ge = () => {
103
- Y2.value = "init", Z2.value = "", fe = false;
104
- }, ye = r({ ...t(j2), disabled: ne.value, validate: he, resetField: be, clearValidate: ge, addInputId: (e2) => {
105
- A(ee.value, e2) || ee.value.push(e2);
106
- }, removeInputId: (e2) => {
107
- ee.value = $(ee.value, ((s3) => s3 !== e2));
108
- } });
109
- return m((() => {
110
- j2.prop && (L2 == null ? void 0 : L2.addField(ye), ve = de.value);
111
- })), v((() => {
112
- j2.prop && (L2 == null ? void 0 : L2.removeField(ye));
113
- })), a(J, ye), I2({ validateMessage: Z2, validateStatus: Y2, validate: he, resetField: be, clearValidate: ge }), (e2, s3) => {
114
- var _a, _b, _c, _d, _e;
115
- return o(), l("div", { class: i(["px-form-item", { "is-error": "error" === Y2.value, "is-success": "success" === Y2.value, "is-disabled": ne.value, "is-required": me.value, "asterisk-left": "left" === ((_a = h(L2)) == null ? void 0 : _a.requiredAsteriskPosition), "asterisk-right": "right" === ((_b = h(L2)) == null ? void 0 : _b.requiredAsteriskPosition) }]), style: f(ie.value ? { flexDirection: "column" } : {}) }, [re.value ? (o(), b(x(te.value ? "label" : "div"), { key: 0, class: "px-form-item__label", style: f(ue.value), id: h(X2), for: te.value }, { default: _((() => [u(e2.$slots, "label", { label: ae.value }, (() => [q(P(ae.value), 1)]), true)])), _: 3 }, 8, ["style", "id", "for"])) : g("", true), y("div", { class: "px-form-item__content", style: f(ie.value ? { width: "100%" } : {}), "aria-describedby": "error" === Y2.value ? `form-item-error-${h(X2)}` : void 0 }, [y("div", Q, [u(e2.$slots, "default", { validate: he }, void 0, true), ((_c = h(L2)) == null ? void 0 : _c.statusIcon) && "success" === Y2.value ? (o(), b(G, { key: 0, icon: "check", class: "px-form-item__status-icon is-success", size: "sm" })) : g("", true), ((_d = h(L2)) == null ? void 0 : _d.statusIcon) && "error" === Y2.value ? (o(), b(G, { key: 1, icon: "close", class: "px-form-item__status-icon is-error", size: "sm" })) : g("", true)]), "error" === Y2.value ? (o(), l("div", { key: 0, class: "px-form-item__error-msg", id: `form-item-error-${h(X2)}` }, [((_e = h(L2)) == null ? void 0 : _e.showMessage) && e2.showMessage ? u(e2.$slots, "error", { key: 0, error: Z2.value }, (() => [q(P(Z2.value), 1)]), true) : g("", true)], 8, U)) : g("", true)], 12, N)], 6);
116
- };
117
- } }), [["__scopeId", "data-v-0e2bbb22"]]), Y = w(L), Z = w(X);
118
- export {
119
- J as F,
120
- Y as P,
121
- Z as a,
122
- K as u
123
- };