@namba_one/ui-kit-2 1.0.151 → 1.0.153
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/index.d.ts +4 -1
- package/dist/index.es.js +61 -51
- package/dist/index.umd.js +24 -24
- package/dist/namba-one-uikit.css +1 -1
- package/dist/sprite/sprite.svg +37 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1854,6 +1854,7 @@ readonly type?: ("text" | "password") | undefined;
|
|
|
1854
1854
|
readonly label?: string | undefined;
|
|
1855
1855
|
readonly description?: string | undefined;
|
|
1856
1856
|
readonly placeholder: string;
|
|
1857
|
+
readonly placeholderOnFocus?: string | undefined;
|
|
1857
1858
|
readonly errorText?: string | undefined;
|
|
1858
1859
|
readonly isError?: boolean | undefined;
|
|
1859
1860
|
readonly isDisabled?: boolean | undefined;
|
|
@@ -1936,6 +1937,7 @@ readonly type?: ("text" | "password") | undefined;
|
|
|
1936
1937
|
readonly label?: string | undefined;
|
|
1937
1938
|
readonly description?: string | undefined;
|
|
1938
1939
|
readonly placeholder: string;
|
|
1940
|
+
readonly placeholderOnFocus?: string | undefined;
|
|
1939
1941
|
readonly errorText?: string | undefined;
|
|
1940
1942
|
readonly isError?: boolean | undefined;
|
|
1941
1943
|
readonly isDisabled?: boolean | undefined;
|
|
@@ -2168,7 +2170,7 @@ export declare type IconBaseProps = {
|
|
|
2168
2170
|
|
|
2169
2171
|
export declare type IconName = (typeof iconNames)[number];
|
|
2170
2172
|
|
|
2171
|
-
export declare const iconNames: readonly ["filled-success", "filled-warning", "outline-agreement", "outline-airplane", "outline-alert", "outline-api", "outline-arrow-down", "outline-arrow-up-down", "outline-arrow-up-line", "outline-arrow-up", "outline-balance-scale", "outline-bank", "outline-beach", "outline-box", "outline-briefcase", "outline-browser", "outline-brush", "outline-building", "outline-bulb", "outline-calendar", "outline-call", "outline-carousel", "outline-cash", "outline-check", "outline-checkmark-badge", "outline-chevron-down-huge", "outline-chevron-down", "outline-chevron-left", "outline-chevron-right", "outline-chevron-up", "outline-code", "outline-coins-stacks", "outline-computer", "outline-connect", "outline-copy", "outline-coupon-percent", "outline-coupon", "outline-credit-card-pos", "outline-credit-card", "outline-cross", "outline-currency_bold", "outline-currency_medium", "outline-currency_regular", "outline-currency_semibold", "outline-cursor-add", "outline-customer-service", "outline-delete", "outline-delivery-tracking", "outline-delivery-truck", "outline-distribute-horizontal-center", "outline-download", "outline-drag-drop-vertical", "outline-edit", "outline-euro", "outline-export", "outline-eye-close", "outline-eye-open", "outline-file", "outline-files", "outline-flash", "outline-h2", "outline-help-circle", "outline-image", "outline-link-square", "outline-link", "outline-list", "outline-lock-password", "outline-logout", "outline-mail-at-sign", "outline-megaphone", "outline-menu-dots", "outline-messenger", "outline-money-bag", "outline-money-safe", "outline-moon", "outline-more-horizontal", "outline-more-vertical", "outline-mortarboard", "outline-move", "outline-paint-board", "outline-percent", "outline-phone-check", "outline-placeholder", "outline-plus", "outline-promo", "outline-qr", "outline-rocket", "outline-search", "outline-settings", "outline-shop-1", "outline-shop", "outline-snow", "outline-sort-by-down", "outline-sort-by-up", "outline-star", "outline-store-add", "outline-store-remove", "outline-success", "outline-sun", "outline-tag", "outline-text-bold", "outline-text", "outline-time-quarter-pass", "outline-time", "outline-traffic-jam", "outline-trash", "outline-two-users", "outline-unavailable", "outline-upload", "outline-user", "outline-wallet-stack", "outline-wallet", "outline-warning", "outline_filter-horizontal", "static-telegram", "static-whats-app"];
|
|
2173
|
+
export declare const iconNames: readonly ["filled-sort-default", "filled-sort-down", "filled-sort-up", "filled-success", "filled-warning", "outline-agreement", "outline-airplane", "outline-alert", "outline-api", "outline-arrow-down", "outline-arrow-up-down", "outline-arrow-up-line", "outline-arrow-up", "outline-balance-scale", "outline-bank", "outline-beach", "outline-bookmark", "outline-box", "outline-briefcase", "outline-browser", "outline-brush", "outline-building", "outline-bulb", "outline-calendar", "outline-call", "outline-carousel", "outline-cash", "outline-check", "outline-checkmark-badge", "outline-chevron-down-huge", "outline-chevron-down", "outline-chevron-left", "outline-chevron-right", "outline-chevron-up", "outline-code", "outline-coins-stacks", "outline-computer", "outline-connect", "outline-copy", "outline-coupon-percent", "outline-coupon", "outline-credit-card-pos", "outline-credit-card", "outline-cross", "outline-currency_bold", "outline-currency_medium", "outline-currency_regular", "outline-currency_semibold", "outline-cursor-add", "outline-customer-service", "outline-delete", "outline-delivery-tracking", "outline-delivery-truck", "outline-distribute-horizontal-center", "outline-download", "outline-drag-drop-vertical", "outline-edit", "outline-euro", "outline-export", "outline-eye-close", "outline-eye-open", "outline-file", "outline-files", "outline-filter-vertical", "outline-flash", "outline-h2", "outline-help-circle", "outline-image", "outline-link-square", "outline-link", "outline-list", "outline-lock-password", "outline-logout", "outline-mail-at-sign", "outline-megaphone", "outline-menu-dots", "outline-messenger", "outline-money-bag", "outline-money-safe", "outline-moon", "outline-more-horizontal", "outline-more-vertical", "outline-mortarboard", "outline-move", "outline-paint-board", "outline-percent", "outline-phone-check", "outline-placeholder", "outline-plus", "outline-promo", "outline-qr", "outline-rocket", "outline-search", "outline-settings", "outline-share", "outline-shop-1", "outline-shop", "outline-sidebar-hide", "outline-sidebar-show", "outline-snow", "outline-sort-by-down", "outline-sort-by-up", "outline-star", "outline-store-add", "outline-store-remove", "outline-success", "outline-sun", "outline-tag", "outline-text-bold", "outline-text", "outline-time-quarter-pass", "outline-time", "outline-traffic-jam", "outline-trash", "outline-two-users", "outline-unavailable", "outline-upload", "outline-user", "outline-wallet-stack", "outline-wallet", "outline-warning", "outline_filter-horizontal", "outlink-unlink", "static-telegram", "static-whats-app"];
|
|
2172
2174
|
|
|
2173
2175
|
export declare const IconView: DefineComponent<IconViewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconViewProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2174
2176
|
|
|
@@ -2238,6 +2240,7 @@ export declare type InputProps = {
|
|
|
2238
2240
|
label?: string;
|
|
2239
2241
|
description?: string;
|
|
2240
2242
|
placeholder: string;
|
|
2243
|
+
placeholderOnFocus?: string;
|
|
2241
2244
|
errorText?: string;
|
|
2242
2245
|
isError?: boolean;
|
|
2243
2246
|
isDisabled?: boolean;
|
package/dist/index.es.js
CHANGED
|
@@ -424,6 +424,9 @@ const rs = {
|
|
|
424
424
|
}, Jg = {
|
|
425
425
|
$style: Zg
|
|
426
426
|
}, Ke = /* @__PURE__ */ be(Gg, [["__cssModules", Jg]]), oP = [
|
|
427
|
+
"filled-sort-default",
|
|
428
|
+
"filled-sort-down",
|
|
429
|
+
"filled-sort-up",
|
|
427
430
|
"filled-success",
|
|
428
431
|
"filled-warning",
|
|
429
432
|
"outline-agreement",
|
|
@@ -437,6 +440,7 @@ const rs = {
|
|
|
437
440
|
"outline-balance-scale",
|
|
438
441
|
"outline-bank",
|
|
439
442
|
"outline-beach",
|
|
443
|
+
"outline-bookmark",
|
|
440
444
|
"outline-box",
|
|
441
445
|
"outline-briefcase",
|
|
442
446
|
"outline-browser",
|
|
@@ -483,6 +487,7 @@ const rs = {
|
|
|
483
487
|
"outline-eye-open",
|
|
484
488
|
"outline-file",
|
|
485
489
|
"outline-files",
|
|
490
|
+
"outline-filter-vertical",
|
|
486
491
|
"outline-flash",
|
|
487
492
|
"outline-h2",
|
|
488
493
|
"outline-help-circle",
|
|
@@ -513,8 +518,11 @@ const rs = {
|
|
|
513
518
|
"outline-rocket",
|
|
514
519
|
"outline-search",
|
|
515
520
|
"outline-settings",
|
|
521
|
+
"outline-share",
|
|
516
522
|
"outline-shop-1",
|
|
517
523
|
"outline-shop",
|
|
524
|
+
"outline-sidebar-hide",
|
|
525
|
+
"outline-sidebar-show",
|
|
518
526
|
"outline-snow",
|
|
519
527
|
"outline-sort-by-down",
|
|
520
528
|
"outline-sort-by-up",
|
|
@@ -538,6 +546,7 @@ const rs = {
|
|
|
538
546
|
"outline-wallet",
|
|
539
547
|
"outline-warning",
|
|
540
548
|
"outline_filter-horizontal",
|
|
549
|
+
"outlink-unlink",
|
|
541
550
|
"static-telegram",
|
|
542
551
|
"static-whats-app"
|
|
543
552
|
];
|
|
@@ -6993,6 +7002,7 @@ const sw = {
|
|
|
6993
7002
|
label: {},
|
|
6994
7003
|
description: {},
|
|
6995
7004
|
placeholder: {},
|
|
7005
|
+
placeholderOnFocus: {},
|
|
6996
7006
|
errorText: {},
|
|
6997
7007
|
isError: { type: Boolean },
|
|
6998
7008
|
isDisabled: { type: Boolean },
|
|
@@ -7015,115 +7025,115 @@ const sw = {
|
|
|
7015
7025
|
34: "caption",
|
|
7016
7026
|
44: "subhead"
|
|
7017
7027
|
}
|
|
7018
|
-
), a = R(() => s.get(n.size.toString()) ?? "caption");
|
|
7019
|
-
function
|
|
7028
|
+
), a = R(() => s.get(n.size.toString()) ?? "caption"), l = R(() => n.placeholderOnFocus && r.value ? n.placeholderOnFocus : n.placeholder);
|
|
7029
|
+
function u() {
|
|
7020
7030
|
r.value = !1, i("blur");
|
|
7021
7031
|
}
|
|
7022
|
-
const
|
|
7032
|
+
const d = (h) => {
|
|
7023
7033
|
if (!n.maxLength) return;
|
|
7024
|
-
const
|
|
7025
|
-
|
|
7026
|
-
},
|
|
7027
|
-
var
|
|
7028
|
-
(
|
|
7034
|
+
const m = h.target;
|
|
7035
|
+
m.value.length > Number(n.maxLength) && (m.value = m.value.slice(0, Number(n.maxLength)), t.value = m.value);
|
|
7036
|
+
}, c = () => {
|
|
7037
|
+
var h;
|
|
7038
|
+
(h = o.value) == null || h.$el.focus();
|
|
7029
7039
|
};
|
|
7030
7040
|
return pt(() => {
|
|
7031
|
-
var
|
|
7032
|
-
n.autofocus && ((
|
|
7033
|
-
}), (
|
|
7034
|
-
var
|
|
7041
|
+
var h;
|
|
7042
|
+
n.autofocus && ((h = o.value) == null || h.$el.focus());
|
|
7043
|
+
}), (h, m) => {
|
|
7044
|
+
var f;
|
|
7035
7045
|
return v(), M("div", {
|
|
7036
7046
|
class: y([
|
|
7037
|
-
|
|
7038
|
-
|
|
7047
|
+
h.$style.root,
|
|
7048
|
+
h.$style[`size_${h.size}`],
|
|
7039
7049
|
{
|
|
7040
|
-
[
|
|
7041
|
-
[
|
|
7042
|
-
[
|
|
7050
|
+
[h.$style["is-disabled"]]: h.isDisabled,
|
|
7051
|
+
[h.$style["is-error"]]: h.isError,
|
|
7052
|
+
[h.$style["is-focused"]]: r.value
|
|
7043
7053
|
}
|
|
7044
7054
|
])
|
|
7045
7055
|
}, [
|
|
7046
|
-
|
|
7056
|
+
h.label ? (v(), re(p(Be), {
|
|
7047
7057
|
key: 0,
|
|
7048
|
-
class: y(
|
|
7058
|
+
class: y(h.$style.label),
|
|
7049
7059
|
size: a.value,
|
|
7050
7060
|
color: "text-common-base-primary-default"
|
|
7051
7061
|
}, {
|
|
7052
7062
|
default: P(() => [
|
|
7053
|
-
we(me(
|
|
7063
|
+
we(me(h.label), 1)
|
|
7054
7064
|
]),
|
|
7055
7065
|
_: 1
|
|
7056
7066
|
}, 8, ["class", "size"])) : N("", !0),
|
|
7057
7067
|
q("div", {
|
|
7058
|
-
class: y(
|
|
7059
|
-
onClick:
|
|
7068
|
+
class: y(h.$style.wrapper),
|
|
7069
|
+
onClick: c
|
|
7060
7070
|
}, [
|
|
7061
|
-
|
|
7071
|
+
h.iconLeft ? (v(), re(p(Ke), {
|
|
7062
7072
|
key: 0,
|
|
7063
|
-
name:
|
|
7073
|
+
name: h.iconLeft,
|
|
7064
7074
|
size: 18,
|
|
7065
7075
|
color: "icon-input-base-primary"
|
|
7066
7076
|
}, null, 8, ["name"])) : N("", !0),
|
|
7067
7077
|
V(p(vu), tt({
|
|
7068
7078
|
unmasked: t.value,
|
|
7069
|
-
"onUpdate:unmasked":
|
|
7070
|
-
class:
|
|
7071
|
-
type:
|
|
7079
|
+
"onUpdate:unmasked": m[0] || (m[0] = (g) => t.value = g),
|
|
7080
|
+
class: h.$style.field,
|
|
7081
|
+
type: h.type,
|
|
7072
7082
|
ref_key: "inputRef",
|
|
7073
7083
|
ref: o
|
|
7074
|
-
}, p(sw)[
|
|
7084
|
+
}, p(sw)[h.mask ?? "any"], {
|
|
7075
7085
|
unmask: !1,
|
|
7076
|
-
autofocus:
|
|
7077
|
-
placeholder:
|
|
7078
|
-
autocomplete:
|
|
7079
|
-
inputmode:
|
|
7080
|
-
onFocus:
|
|
7081
|
-
onBlur:
|
|
7082
|
-
onAccept:
|
|
7083
|
-
onInput:
|
|
7086
|
+
autofocus: h.autofocus,
|
|
7087
|
+
placeholder: l.value,
|
|
7088
|
+
autocomplete: h.autocomplete,
|
|
7089
|
+
inputmode: h.inputmode,
|
|
7090
|
+
onFocus: m[1] || (m[1] = () => r.value = !0),
|
|
7091
|
+
onBlur: u,
|
|
7092
|
+
onAccept: m[2] || (m[2] = (g) => i("update:error", !1)),
|
|
7093
|
+
onInput: d
|
|
7084
7094
|
}), null, 16, ["unmasked", "class", "type", "autofocus", "placeholder", "autocomplete", "inputmode"]),
|
|
7085
|
-
|
|
7095
|
+
h.iconRight ? (v(), re(p(Ke), {
|
|
7086
7096
|
key: 1,
|
|
7087
|
-
name:
|
|
7097
|
+
name: h.iconRight,
|
|
7088
7098
|
size: 18,
|
|
7089
7099
|
color: "icon-input-base-primary"
|
|
7090
7100
|
}, null, 8, ["name"])) : N("", !0),
|
|
7091
|
-
|
|
7101
|
+
h.$slots.default ? (v(), M("div", {
|
|
7092
7102
|
key: 2,
|
|
7093
|
-
class: y(
|
|
7103
|
+
class: y(h.$style.action)
|
|
7094
7104
|
}, [
|
|
7095
|
-
ae(
|
|
7105
|
+
ae(h.$slots, "default")
|
|
7096
7106
|
], 2)) : N("", !0),
|
|
7097
|
-
|
|
7107
|
+
h.maxLength ? (v(), M("span", {
|
|
7098
7108
|
key: 3,
|
|
7099
|
-
class: y(
|
|
7100
|
-
}, me(Number(
|
|
7109
|
+
class: y(h.$style.badge)
|
|
7110
|
+
}, me(Number(h.maxLength) - (((f = t.value) == null ? void 0 : f.length) ?? 0)), 3)) : N("", !0)
|
|
7101
7111
|
], 2),
|
|
7102
7112
|
V(p(gw), {
|
|
7103
|
-
"is-show":
|
|
7113
|
+
"is-show": h.errorText && h.isError || !!h.description && !h.isError
|
|
7104
7114
|
}, {
|
|
7105
7115
|
default: P(() => [
|
|
7106
7116
|
V(p(Cn), null, {
|
|
7107
7117
|
default: P(() => [
|
|
7108
|
-
|
|
7109
|
-
class: y(
|
|
7118
|
+
h.description && !h.isError ? (v(), re(p(Be), {
|
|
7119
|
+
class: y(h.$style.bottom),
|
|
7110
7120
|
key: "description",
|
|
7111
7121
|
size: "subhead",
|
|
7112
7122
|
color: "text-common-base-secondary-default"
|
|
7113
7123
|
}, {
|
|
7114
7124
|
default: P(() => [
|
|
7115
|
-
we(me(
|
|
7125
|
+
we(me(h.description), 1)
|
|
7116
7126
|
]),
|
|
7117
7127
|
_: 1
|
|
7118
7128
|
}, 8, ["class"])) : N("", !0),
|
|
7119
|
-
|
|
7120
|
-
class: y(
|
|
7129
|
+
h.errorText && h.isError ? (v(), re(p(Be), {
|
|
7130
|
+
class: y(h.$style.bottom),
|
|
7121
7131
|
key: "error",
|
|
7122
7132
|
size: "subhead",
|
|
7123
7133
|
color: "text-common-critical-primary-default"
|
|
7124
7134
|
}, {
|
|
7125
7135
|
default: P(() => [
|
|
7126
|
-
we(me(
|
|
7136
|
+
we(me(h.errorText), 1)
|
|
7127
7137
|
]),
|
|
7128
7138
|
_: 1
|
|
7129
7139
|
}, 8, ["class"])) : N("", !0)
|