@veevarts/design-system 1.6.0 → 1.7.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/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: [
@@ -272,7 +282,7 @@ const da = z.forwardRef(
272
282
  r && /* @__PURE__ */ d(
273
283
  "label",
274
284
  {
275
- className: "text-small text-default-foreground lg:text-medium font-light w-full me-3",
285
+ className: "text-small text-default-foreground lg:text-medium font-light whitespace-nowrap me-3",
276
286
  "data-testid": "stepper-label",
277
287
  children: r
278
288
  }
@@ -282,7 +292,7 @@ const da = z.forwardRef(
282
292
  return /* @__PURE__ */ d(
283
293
  "li",
284
294
  {
285
- className: "relative flex w-full items-center pr-12",
295
+ className: "relative flex shrink-0 items-center pr-12",
286
296
  "data-testid": `stepper-step-${x}`,
287
297
  children: /* @__PURE__ */ T(
288
298
  "button",
@@ -9022,7 +9032,7 @@ const lr = ({
9022
9032
  /* @__PURE__ */ T("div", { className: "flex flex-wrap gap-4", "data-testid": "event-details-info", children: [
9023
9033
  r && /* @__PURE__ */ d(lr, { icon: "solar:calendar-minimalistic-linear", testId: "event-details-date", children: r }),
9024
9034
  i && /* @__PURE__ */ d(lr, { icon: "solar:clock-circle-linear", testId: "event-details-time", children: i }),
9025
- s && /* @__PURE__ */ d(lr, { icon: "solar:point-on-map-outline", testId: "event-details-location", children: s })
9035
+ s && /* @__PURE__ */ d(lr, { icon: "solar:map-point-linear", testId: "event-details-location", children: s })
9026
9036
  ] }),
9027
9037
  o && /* @__PURE__ */ T("div", { className: "relative", "data-testid": "event-details-description-wrapper", children: [
9028
9038
  /* @__PURE__ */ d(
@@ -9031,7 +9041,7 @@ const lr = ({
9031
9041
  ref: k,
9032
9042
  className: F(
9033
9043
  "text-sm text-gray-700 leading-relaxed transition-all",
9034
- !u && "line-clamp-2"
9044
+ !u && "line-clamp-3"
9035
9045
  ),
9036
9046
  "data-testid": "event-details-description",
9037
9047
  dangerouslySetInnerHTML: { __html: o }
@@ -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
  {
@@ -230,19 +230,16 @@ export declare const defaultHeroUITheme: {
230
230
  * });
231
231
  */
232
232
  export declare function createHeroUIConfig(overrides?: HeroUIConfigOverrides): HeroUIConfig;
233
+ /**
234
+ * Content paths for Tailwind to scan for classes
235
+ * Includes HeroUI theme and Design System components
236
+ */
237
+ export declare const veevartContent: string[];
233
238
  /**
234
239
  * Veevart Design System Tailwind preset
235
240
  *
236
241
  * Use this preset in your tailwind.config.js to get all Veevart tokens
237
- * and styling defaults.
238
- *
239
- * @example
240
- * const { veevartPreset } = require('@veevarts/design-system/tailwind');
241
- *
242
- * module.exports = {
243
- * presets: [veevartPreset],
244
- * content: [...],
245
- * };
242
+ * and styling defaults. Use veevartContent in your content array.
246
243
  */
247
244
  export declare const veevartPreset: {
248
245
  theme: {
@@ -29,6 +29,7 @@ __export(index_exports, {
29
29
  tailwindTheme: () => tailwindTheme,
30
30
  tokens: () => tokens,
31
31
  typography: () => typography,
32
+ veevartContent: () => veevartContent,
32
33
  veevartPreset: () => veevartPreset
33
34
  });
34
35
  module.exports = __toCommonJS(index_exports);
@@ -266,6 +267,10 @@ function createHeroUIConfig(overrides = {}) {
266
267
  }
267
268
  return baseConfig;
268
269
  }
270
+ var veevartContent = [
271
+ "./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
272
+ "./node_modules/@veevarts/design-system/dist/**/*.{js,mjs,jsx,tsx}"
273
+ ];
269
274
  var veevartPreset = {
270
275
  theme: {
271
276
  extend: tailwindTheme
@@ -289,5 +294,6 @@ var tokens = {
289
294
  tailwindTheme,
290
295
  tokens,
291
296
  typography,
297
+ veevartContent,
292
298
  veevartPreset
293
299
  });
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",
4
+ "version": "1.7.2",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",