@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.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: (i) => {
43
- const s = Array.from(i)[0] || e;
44
- n?.(s);
43
+ onSelectionChange: (s) => {
44
+ const o = Array.from(s)[0] || e;
45
+ n?.(o);
45
46
  },
46
- className: "min-w-40 hidden md:inline-flex",
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
- children: t.map((i) => /* @__PURE__ */ d(
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: i.label,
54
- "data-testid": `language-select-option-${i.code}`,
55
- children: i.label
57
+ textValue: s.label,
58
+ "data-testid": `language-select-option-${s.code}`,
59
+ children: s.label
56
60
  },
57
- i.code
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: (i) => {
68
- const s = Array.from(i)[0] || e;
69
- n?.(s);
72
+ onSelectionChange: (s) => {
73
+ const o = Array.from(s)[0] || e;
74
+ n?.(o);
70
75
  },
71
- className: "min-w-20 inline-flex md:hidden",
76
+ className: "w-24 inline-flex md:hidden",
72
77
  isDisabled: t.length === 0,
73
- placeholder: e || "Language",
74
- children: t.map((i) => /* @__PURE__ */ d(
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
- className: "min-w-4",
78
- textValue: i.code.toUpperCase(),
79
- "data-testid": `language-select-option-mobile-${i.code}`,
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
- i.code
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-4 bg-white border-b border-zinc-100 flex items-center justify-between",
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 ", children: M ? _() : $() })
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
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@veevarts/design-system",
3
3
  "private": false,
4
- "version": "1.6.0-dev.4",
4
+ "version": "1.6.0-dev.6",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",