@veevarts/design-system 1.6.0-dev.4 → 1.6.0-dev.6
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.cjs +5 -5
- package/dist/index.js +33 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,30 +31,34 @@ function la({
|
|
|
31
31
|
onLanguageChange: n,
|
|
32
32
|
label: r
|
|
33
33
|
}) {
|
|
34
|
+
const i = t.find((s) => s.code === e);
|
|
34
35
|
return /* @__PURE__ */ d("div", { className: "flex items-center", children: /* @__PURE__ */ T("div", { className: "relative flex items-center", children: [
|
|
35
|
-
/* @__PURE__ */ d(gi, { className: "absolute left-3 w-5 h-5 pointer-events-none text-black" }),
|
|
36
36
|
/* @__PURE__ */ d(
|
|
37
37
|
hi,
|
|
38
38
|
{
|
|
39
39
|
"data-testid": "language-select-desktop",
|
|
40
|
+
variant: "bordered",
|
|
40
41
|
"aria-label": r,
|
|
41
42
|
selectedKeys: e ? [e] : [],
|
|
42
|
-
onSelectionChange: (
|
|
43
|
-
const
|
|
44
|
-
n?.(
|
|
43
|
+
onSelectionChange: (s) => {
|
|
44
|
+
const o = Array.from(s)[0] || e;
|
|
45
|
+
n?.(o);
|
|
45
46
|
},
|
|
46
|
-
className: "min-w-
|
|
47
|
+
className: "min-w-36 hidden md:inline-flex",
|
|
47
48
|
isDisabled: t.length === 0,
|
|
48
49
|
placeholder: r,
|
|
49
50
|
startContent: /* @__PURE__ */ d(gi, { className: "w-5 h-5 text-black" }),
|
|
50
|
-
|
|
51
|
+
renderValue: () => /* @__PURE__ */ d("span", { children: i?.label || r }),
|
|
52
|
+
size: "md",
|
|
53
|
+
radius: "full",
|
|
54
|
+
children: t.map((s) => /* @__PURE__ */ d(
|
|
51
55
|
pi,
|
|
52
56
|
{
|
|
53
|
-
textValue:
|
|
54
|
-
"data-testid": `language-select-option-${
|
|
55
|
-
children:
|
|
57
|
+
textValue: s.label,
|
|
58
|
+
"data-testid": `language-select-option-${s.code}`,
|
|
59
|
+
children: s.label
|
|
56
60
|
},
|
|
57
|
-
|
|
61
|
+
s.code
|
|
58
62
|
))
|
|
59
63
|
}
|
|
60
64
|
),
|
|
@@ -63,23 +67,27 @@ function la({
|
|
|
63
67
|
{
|
|
64
68
|
"aria-label": r,
|
|
65
69
|
"data-testid": "language-select-mobile",
|
|
70
|
+
variant: "bordered",
|
|
66
71
|
selectedKeys: e ? [e] : [],
|
|
67
|
-
onSelectionChange: (
|
|
68
|
-
const
|
|
69
|
-
n?.(
|
|
72
|
+
onSelectionChange: (s) => {
|
|
73
|
+
const o = Array.from(s)[0] || e;
|
|
74
|
+
n?.(o);
|
|
70
75
|
},
|
|
71
|
-
className: "
|
|
76
|
+
className: "w-24 inline-flex md:hidden",
|
|
72
77
|
isDisabled: t.length === 0,
|
|
73
|
-
placeholder:
|
|
74
|
-
|
|
78
|
+
placeholder: "",
|
|
79
|
+
startContent: /* @__PURE__ */ d(gi, { className: "w-6 h-6 text-black" }),
|
|
80
|
+
renderValue: () => /* @__PURE__ */ d("span", { children: i?.code.toUpperCase() || "" }),
|
|
81
|
+
size: "md",
|
|
82
|
+
radius: "full",
|
|
83
|
+
children: t.map((s) => /* @__PURE__ */ d(
|
|
75
84
|
pi,
|
|
76
85
|
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
children: i.code.toUpperCase()
|
|
86
|
+
textValue: s.code.toUpperCase(),
|
|
87
|
+
"data-testid": `language-select-option-mobile-${s.code}`,
|
|
88
|
+
children: s.code.toUpperCase()
|
|
81
89
|
},
|
|
82
|
-
|
|
90
|
+
s.code
|
|
83
91
|
))
|
|
84
92
|
}
|
|
85
93
|
)
|
|
@@ -97,6 +105,7 @@ function aa({
|
|
|
97
105
|
"data-testid": "navbar-auth-button",
|
|
98
106
|
className: "px-2 py-1 w-1 min-w-12 md:min-w-24 rounded-full bg-black text-white text-sm flex items-center",
|
|
99
107
|
onPress: n,
|
|
108
|
+
size: "md",
|
|
100
109
|
children: [
|
|
101
110
|
/* @__PURE__ */ d(yi, { className: "inline w-5 h-5" }),
|
|
102
111
|
/* @__PURE__ */ d("span", { className: "hidden md:inline", children: r.logout })
|
|
@@ -108,6 +117,7 @@ function aa({
|
|
|
108
117
|
"data-testid": "navbar-auth-button",
|
|
109
118
|
className: "px-2 py-1 min-w-12 md:min-w-24 rounded-full bg-black text-white text-sm flex items-center",
|
|
110
119
|
onPress: e,
|
|
120
|
+
size: "md",
|
|
111
121
|
children: [
|
|
112
122
|
/* @__PURE__ */ d(yi, { className: "inline w-5 h-5" }),
|
|
113
123
|
/* @__PURE__ */ d("span", { className: "hidden md:inline", children: r.login })
|
|
@@ -134,7 +144,7 @@ function eh({
|
|
|
134
144
|
{
|
|
135
145
|
"data-testid": "navbar",
|
|
136
146
|
className: F(
|
|
137
|
-
"w-full px-4 md:px-8 py-
|
|
147
|
+
"w-full px-4 md:px-8 py-3 bg-white border-b border-zinc-100 flex items-center justify-between",
|
|
138
148
|
u
|
|
139
149
|
),
|
|
140
150
|
children: [
|
|
@@ -9221,7 +9231,7 @@ const Xd = {
|
|
|
9221
9231
|
}
|
|
9222
9232
|
)
|
|
9223
9233
|
] }),
|
|
9224
|
-
/* @__PURE__ */ d("div", { className: "space-x-2 p-2 h-full flex items-center justify-start md:justify-start lg:justify-end
|
|
9234
|
+
/* @__PURE__ */ d("div", { className: "space-x-2 pt-0 pb-2 md:p-2 h-full flex items-center justify-start md:justify-start lg:justify-end", children: M ? _() : $() })
|
|
9225
9235
|
] }), xe = B && !M && /* @__PURE__ */ d(
|
|
9226
9236
|
fr.div,
|
|
9227
9237
|
{
|