sakana-element 2.4.1 → 2.4.2
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/es/{Alert-DRIDwear.js → Alert-DdAShH-x.js} +2 -2
- package/dist/es/{Avatar-Dkvvhw_D.js → Avatar-BGTH7x40.js} +1 -1
- package/dist/es/{Badge-CLNacHVq.js → Badge-CYZ55qNe.js} +2 -2
- package/dist/es/{Breadcrumb-CfJA9NZz.js → Breadcrumb-BTWTtzrN.js} +2 -2
- package/dist/es/{Button-Dj1DIvXh.js → Button-GsSCWg5x.js} +3 -3
- package/dist/es/{Card-meh7F1e2.js → Card-BhgzwQqo.js} +1 -1
- package/dist/es/{ChatBubble-Ccr3wzoK.js → ChatBubble-4F481Agj.js} +1 -1
- package/dist/es/{Checkbox-vOcwl1OX.js → Checkbox-C7vZGSTh.js} +3 -3
- package/dist/es/{Collapse-BG58s0uJ.js → Collapse-CbcSQig5.js} +2 -2
- package/dist/es/{ConfigProvider-Cr8Hpzf2.js → ConfigProvider-K1UzjlRm.js} +20 -19
- package/dist/es/{Diff-KQ44cDcY.js → Diff-B747pgwb.js} +1 -1
- package/dist/es/{Divider-CYYeUqYc.js → Divider-BSu_1-AU.js} +1 -1
- package/dist/es/{Drawer-CDXFDfrf.js → Drawer-I2lCgyba.js} +2 -2
- package/dist/es/{Dropdown-CPZtzHPx.js → Dropdown-B0J_c8Wv.js} +6 -6
- package/dist/es/{FileInput-Ram4-wy2.js → FileInput-CFg1wpsH.js} +3 -3
- package/dist/es/{Filter-CLLkrn-W.js → Filter-nA8j-62U.js} +3 -3
- package/dist/es/{Form-po3aIrSN.js → Form-C1b8Igns.js} +4 -4
- package/dist/es/{Icon-XJfGGAMY.js → Icon-BulvH9Wm.js} +1 -1
- package/dist/es/{Indicator-vsSp5r5K.js → Indicator-BbW4iUkh.js} +1 -1
- package/dist/es/Input-BUHFulIW.js +42 -0
- package/dist/es/{Kbd-CtCGx7_s.js → Kbd-CeP2wkdE.js} +2 -2
- package/dist/es/{Link-Bbwdgs74.js → Link-Dks2bXo8.js} +1 -1
- package/dist/es/{Loading-DiyIiKxO.js → Loading-DoBtVGWo.js} +18 -18
- package/dist/es/{Message-BoNCtMo7.js → Message-Ba_P4Wvy.js} +7 -7
- package/dist/es/{Notification-CFY-yvRf.js → Notification-DzG8dLuk.js} +4 -4
- package/dist/es/{Overlay-DoFA2lgP.js → Overlay-DeyTycv0.js} +1 -1
- package/dist/es/{Pixelate-dqwHc6nX.js → Pixelate-B21HKbSE.js} +1 -1
- package/dist/es/{Popconfirm-DPOujyiA.js → Popconfirm-BqN3JxJ_.js} +5 -5
- package/dist/es/{Progress-B0oYE8Z3.js → Progress--6EJjbbM.js} +1 -1
- package/dist/es/{Radio-C-Ot7pLA.js → Radio-CrdrvrFH.js} +3 -3
- package/dist/es/{Resizable-G5KVHayx.js → Resizable-By3ijQf0.js} +1 -1
- package/dist/es/{Select-DqxPeAKK.js → Select-Cq1Ucs_U.js} +34 -34
- package/dist/es/{Skeleton-4SeKRKn9.js → Skeleton-ChCVgMSk.js} +1 -1
- package/dist/es/{Switch-C_tBxZtT.js → Switch-DURmSH-T.js} +3 -3
- package/dist/es/{Table-Cr6HFL4_.js → Table-BE2f9u65.js} +1 -1
- package/dist/es/{Tooltip-rak4BryQ.js → Tooltip-DR4Mc5Fh.js} +23 -23
- package/dist/es/{Validator-DKVfknvI.js → Validator-BYn72MYn.js} +2 -2
- package/dist/es/{hooks-pTjI-j9o.js → hooks-dJGu-5DG.js} +37 -36
- package/dist/es/index.js +50 -50
- package/dist/es/{utils-DzOow9K9.js → utils-CnCdZsHG.js} +8 -8
- package/dist/es/{vendor-DrBJKLFW.js → vendor-eombfMkP.js} +51 -53
- package/dist/types/components/Icon/index.d.ts +1 -1
- package/dist/types/components/Input/types.d.ts +2 -0
- package/dist/types/components/Select/index.d.ts +2 -0
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +3 -2
- package/dist/types/hooks/useLocale.d.ts +9 -1
- package/dist/umd/index.umd.cjs +3 -3
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/es/Input-KrNqNZMe.js +0 -42
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { c as e, r as o, d as a, w as l } from "./utils-DzOow9K9.js";
|
|
2
|
-
import { defineComponent as s, ref as r, shallowRef as u, useAttrs as t, computed as p, watch as n, createElementBlock as d, openBlock as c, normalizeStyle as i, normalizeClass as f, unref as v, withDirectives as m, Fragment as y, createCommentVNode as h, createElementVNode as x, renderSlot as _, mergeProps as w, vModelDynamic as k, createBlock as b, withModifiers as $, vModelText as g, nextTick as B } from "vue";
|
|
3
|
-
import { e as V, u as I } from "./hooks-pTjI-j9o.js";
|
|
4
|
-
import { u as P } from "./Form-po3aIrSN.js";
|
|
5
|
-
import { P as j } from "./Icon-XJfGGAMY.js";
|
|
6
|
-
import { q as C, f as F } from "./vendor-DrBJKLFW.js";
|
|
7
|
-
const R = /* @__PURE__ */ new Set(["primary", "success", "warning", "danger", "info"]), z = { default: { "border-color": "color", "hover-border-color": "dark", "focus-border-color": "dark", "shadow-color": "dark", "focus-shadow-color": "dark" }, ghost: { "border-color": "transparent", "hover-border-color": "color", "focus-border-color": "dark", "shadow-color": "transparent", "focus-shadow-color": "dark" } }, M = { key: 0, class: "px-input__prepend" }, U = { key: 0, class: "px-input__prefix" }, q = ["id", "type", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "form"], A = { key: 1, class: "px-input__suffix" }, S = { key: 1, class: "px-input__append" }, D = ["id", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "form"], E = s({ name: "PxInput", inheritAttrs: false, __name: "Input", props: { id: {}, modelValue: {}, type: { default: "text" }, size: {}, color: {}, ghost: { type: Boolean }, disabled: { type: Boolean }, clearable: { type: Boolean }, showPassword: { type: Boolean }, placeholder: {}, readonly: { type: Boolean }, autocomplete: { default: "off" }, autofocus: { type: Boolean }, form: {} }, emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"], setup(l2, { expose: s2, emit: E2 }) {
|
|
8
|
-
const G2 = l2, H = E2, J = r(G2.modelValue), K = r(false), L = u(), N = u(), O = t(), { formItem: Q } = P(), T = p((() => L.value || N.value)), W = p((() => G2.disabled)), X = p((() => R.has(G2.color ?? ""))), Y = p((() => !!G2.color && !X.value)), Z = p((() => {
|
|
9
|
-
if (!Y.value) return {};
|
|
10
|
-
const a2 = e(G2.color), l3 = G2.ghost ? "ghost" : "default";
|
|
11
|
-
return o(a2, "px-input", z[l3]);
|
|
12
|
-
})), ee = p((() => G2.clearable && !!J.value && !W.value && le.value)), oe = p((() => "password" === G2.type && G2.showPassword && !W.value && !!J.value)), { wrapperRef: ae, isFocused: le, handleFocus: se, handleBlur: re } = V(T, { afterBlur() {
|
|
13
|
-
Q == null ? void 0 : Q.validate("blur").catch(((e2) => a()));
|
|
14
|
-
} }), ue = () => {
|
|
15
|
-
J.value = "", F(["input", "change", "update:modelValue"], ((e2) => H(e2, ""))), H("clear"), Q == null ? void 0 : Q.clearValidate();
|
|
16
|
-
};
|
|
17
|
-
function te() {
|
|
18
|
-
H("update:modelValue", J.value), H("input", J.value);
|
|
19
|
-
}
|
|
20
|
-
function pe() {
|
|
21
|
-
H("change", J.value);
|
|
22
|
-
}
|
|
23
|
-
function ne() {
|
|
24
|
-
K.value = !K.value;
|
|
25
|
-
}
|
|
26
|
-
return n((() => G2.modelValue), ((e2) => {
|
|
27
|
-
J.value = e2, Q == null ? void 0 : Q.validate("change").catch(((e3) => a()));
|
|
28
|
-
})), s2({ ref: T, focus: async () => {
|
|
29
|
-
var _a;
|
|
30
|
-
await B(), (_a = T.value) == null ? void 0 : _a.focus();
|
|
31
|
-
}, blur: () => {
|
|
32
|
-
var _a;
|
|
33
|
-
(_a = T.value) == null ? void 0 : _a.blur();
|
|
34
|
-
}, select: () => {
|
|
35
|
-
var _a;
|
|
36
|
-
(_a = T.value) == null ? void 0 : _a.select();
|
|
37
|
-
}, clear: ue }), (e2, o2) => (c(), d("div", { class: f(["px-input", { [`px-input--${e2.type}`]: e2.type, [`px-input--${e2.size}`]: e2.size, [`px-input--${e2.color}`]: X.value, "is-ghost": e2.ghost, "is-disabled": W.value, "is-prepend": e2.$slots.prepend, "is-append": e2.$slots.append, "is-prefix": e2.$slots.prefix, "is-suffix": e2.$slots.suffix, "is-focus": v(le) }]), style: i(Z.value) }, ["textarea" !== e2.type ? (c(), d(y, { key: 0 }, [e2.$slots.prepend ? (c(), d("div", M, [_(e2.$slots, "prepend")])) : h("", true), x("div", { class: "px-input__wrapper", ref_key: "wrapperRef", ref: ae }, [e2.$slots.prefix ? (c(), d("span", U, [_(e2.$slots, "prefix")])) : h("", true), m(x("input", w({ class: "px-input__inner", ref_key: "inputRef", ref: L, id: v(I)().value, type: e2.showPassword ? K.value ? "text" : "password" : e2.type, disabled: W.value, readonly: e2.readonly, autocomplete: e2.autocomplete, placeholder: e2.placeholder, autofocus: e2.autofocus, form: e2.form, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => J.value = e3) }, v(O), { onInput: te, onChange: pe, onFocus: o2[1] || (o2[1] = (...e3) => v(se) && v(se)(...e3)), onBlur: o2[2] || (o2[2] = (...e3) => v(re) && v(re)(...e3)) }), null, 16, q), [[k, J.value]]), e2.$slots.suffix || ee.value || oe.value ? (c(), d("span", A, [_(e2.$slots, "suffix"), ee.value ? (c(), b(j, { key: 0, icon: "close-box", class: "px-input__clear", onClick: ue, onMousedown: $(v(C), ["prevent"]) }, null, 8, ["onMousedown"])) : h("", true), oe.value && K.value ? (c(), b(j, { key: 1, icon: "eye", class: "px-input__password", onClick: ne })) : h("", true), oe.value && !K.value ? (c(), b(j, { key: 2, icon: "eye-closed", class: "px-input__password", onClick: ne })) : h("", true)])) : h("", true)], 512), e2.$slots.append ? (c(), d("div", S, [_(e2.$slots, "append")])) : h("", true)], 64)) : m((c(), d("textarea", w({ key: 1, class: "px-textarea__wrapper", ref_key: "textareaRef", ref: N, id: v(I)().value, disabled: W.value, readonly: e2.readonly, autocomplete: e2.autocomplete, placeholder: e2.placeholder, autofocus: e2.autofocus, form: e2.form, "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => J.value = e3) }, v(O), { onInput: te, onChange: pe, onFocus: o2[4] || (o2[4] = (...e3) => v(se) && v(se)(...e3)), onBlur: o2[5] || (o2[5] = (...e3) => v(re) && v(re)(...e3)) }), null, 16, D)), [[g, J.value]])], 6));
|
|
38
|
-
} }), G = l(E);
|
|
39
|
-
export {
|
|
40
|
-
G as P,
|
|
41
|
-
E as _
|
|
42
|
-
};
|