@beehexa/shadcn-vue 2611.20.1 → 2611.28.1

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.
@@ -68,7 +68,7 @@ var FieldDescription_default = /* @__PURE__ */ defineComponent({
68
68
  return (_ctx, _cache) => {
69
69
  return openBlock(), createElementBlock("p", {
70
70
  "data-slot": "field-description",
71
- class: normalizeClass(unref(cn)("m-0 text-left text-(--bh-color-text-subtle) [font:var(--bh-font-body-small)] [[data-variant=legend]+&]:-mt-(--bh-space-100) group-has-data-horizontal/field:text-balance", "last:mt-0 nth-last-2:-mt-(--bh-space-050)", "[&>a]:text-(--bh-color-link) [&>a]:underline [&>a]:underline-offset-2 [&>a:hover]:text-(--bh-color-link-hover)", props.class))
71
+ class: normalizeClass(unref(cn)("m-0 text-left text-(--bh-color-text-subtle) [font:var(--bh-font-body-small)] group-has-data-horizontal/field:text-balance", "[&>a]:text-(--bh-color-link) [&>a]:underline [&>a]:underline-offset-2 [&>a:hover]:text-(--bh-color-link-hover)", props.class))
72
72
  }, [renderSlot(_ctx.$slots, "default")], 2);
73
73
  };
74
74
  }
@@ -97,9 +97,10 @@ var FieldError_default = /* @__PURE__ */ defineComponent({
97
97
  const props = __props;
98
98
  const content = computed(() => {
99
99
  if (!props.errors || props.errors.length === 0) return null;
100
- const uniqueErrors = [...new Map(props.errors.filter(Boolean).map((error) => {
100
+ const uniqueErrors = [...new Map(props.errors.filter((error) => (typeof error === "string" ? error : error?.message)?.trim()).map((error) => {
101
101
  return [typeof error === "string" ? error : error?.message, error];
102
102
  })).values()];
103
+ if (uniqueErrors.length === 0) return null;
103
104
  if (uniqueErrors.length === 1 && uniqueErrors[0]) return typeof uniqueErrors[0] === "string" ? uniqueErrors[0] : uniqueErrors[0].message;
104
105
  return uniqueErrors.map((error) => typeof error === "string" ? error : error?.message);
105
106
  });
@@ -183,7 +184,7 @@ var FieldLegend_default = /* @__PURE__ */ defineComponent({
183
184
  return openBlock(), createElementBlock("legend", {
184
185
  "data-slot": "field-legend",
185
186
  "data-variant": __props.variant,
186
- class: normalizeClass(unref(cn)("mb-(--bh-space-100) p-0 text-(--bh-color-text) data-[variant=label]:[font:var(--bh-font-label-default)] data-[variant=legend]:[font:var(--bh-font-heading-xsmall)]", props.class))
187
+ class: normalizeClass(unref(cn)("mb-(--field-legend-gap) [--field-legend-gap:var(--bh-space-100)] has-[+[data-slot=field-description]]:[--field-legend-gap:var(--bh-space-050)] p-0 text-(--bh-color-text) data-[variant=label]:[font:var(--bh-font-label-default)] data-[variant=legend]:[font:var(--bh-font-heading-xsmall)]", props.class))
187
188
  }, [renderSlot(_ctx.$slots, "default")], 10, _hoisted_1$1);
188
189
  };
189
190
  }
@@ -264,9 +265,9 @@ var FieldTitle_default = /* @__PURE__ */ defineComponent({
264
265
  //#region registry/beehexa/ui/field/index.ts
265
266
  var fieldVariants = cva("group/field flex w-full gap-(--bh-space-100) [font:var(--bh-font-label-default)]", {
266
267
  variants: { orientation: {
267
- vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
268
+ vertical: "flex-col *:w-full [&>.sr-only]:w-auto *:data-[slot=field-content]:flex-none",
268
269
  horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-[calc((1lh_-_var(--bh-size-icon-default))_/_2)]",
269
- responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-[calc((1lh_-_var(--bh-size-icon-default))_/_2)]"
270
+ responsive: "flex-col *:w-full *:data-[slot=field-content]:flex-none @md/field-group:*:data-[slot=field-content]:flex-1 @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-[calc((1lh_-_var(--bh-size-icon-default))_/_2)]"
270
271
  } },
271
272
  defaultVariants: { orientation: "vertical" }
272
273
  });
@@ -1112,6 +1112,10 @@ to {
1112
1112
  margin-bottom: var(--bh-space-100);
1113
1113
  }
1114
1114
 
1115
+ .mb-\(--field-legend-gap\) {
1116
+ margin-bottom: var(--field-legend-gap);
1117
+ }
1118
+
1115
1119
  .-ml-\(--bh-space-200\) {
1116
1120
  margin-left: calc(var(--bh-space-200) * -1);
1117
1121
  }
@@ -3184,6 +3188,10 @@ to {
3184
3188
  --cell-size: var(--bh-size-control-default);
3185
3189
  }
3186
3190
 
3191
+ .\[--field-legend-gap\:var\(--bh-space-100\)\] {
3192
+ --field-legend-gap: var(--bh-space-100);
3193
+ }
3194
+
3187
3195
  .\[--shimmer-color\:var\(--bh-color-skeleton-subtle\)\] {
3188
3196
  --shimmer-color: var(--bh-color-skeleton-subtle);
3189
3197
  }
@@ -4246,10 +4254,6 @@ to {
4246
4254
  border-inline-start-width: var(--bh-border-width-default);
4247
4255
  }
4248
4256
 
4249
- .last\:mt-0:last-child {
4250
- margin-top: 0;
4251
- }
4252
-
4253
4257
  .last\:rounded-e-\(--bh-radius-control\):last-child {
4254
4258
  border-start-end-radius: var(--bh-radius-control);
4255
4259
  border-end-end-radius: var(--bh-radius-control);
@@ -4790,6 +4794,10 @@ to {
4790
4794
  padding: 0;
4791
4795
  }
4792
4796
 
4797
+ .has-\[\+\[data-slot\=field-description\]\]\:\[--field-legend-gap\:var\(--bh-space-050\)\]:has( + [data-slot="field-description"]) {
4798
+ --field-legend-gap: var(--bh-space-050);
4799
+ }
4800
+
4793
4801
  .has-\[\>\[data-align\=block-end\]\]\:h-auto:has( > [data-align="block-end"]) {
4794
4802
  height: auto;
4795
4803
  }
@@ -5827,6 +5835,10 @@ to {
5827
5835
  padding: var(--bh-space-150);
5828
5836
  }
5829
5837
 
5838
+ :is(.\*\:data-\[slot\=field-content\]\:flex-none > *)[data-slot="field-content"] {
5839
+ flex: none;
5840
+ }
5841
+
5830
5842
  :is(.\*\:data-\[slot\=field-group\]\:gap-\(--bh-space-stack\) > *)[data-slot="field-group"] {
5831
5843
  gap: var(--bh-space-stack);
5832
5844
  }
@@ -6196,10 +6208,6 @@ to {
6196
6208
  font: var(--bh-font-heading-xsmall);
6197
6209
  }
6198
6210
 
6199
- .nth-last-2\:-mt-\(--bh-space-050\):nth-last-child(2) {
6200
- margin-top: calc(var(--bh-space-050) * -1);
6201
- }
6202
-
6203
6211
  @supports (content: counter(line) / \'\') {
6204
6212
  :where([data-numbered]) .in-data-numbered\:supports-\[content\:counter\(line\)_\/_\\\'\\\'\]\:before\:content-\[counter\(line\)_\/_\\\'\\\'\]:before {
6205
6213
  --tw-content: counter(line) / \'\';
@@ -6392,6 +6400,10 @@ to {
6392
6400
  align-items: flex-start;
6393
6401
  }
6394
6402
 
6403
+ :is(.\@md\/field-group\:\*\:data-\[slot\=field-content\]\:flex-1 > *)[data-slot="field-content"] {
6404
+ flex: 1;
6405
+ }
6406
+
6395
6407
  :is(.\@md\/field-group\:\*\:data-\[slot\=field-label\]\:flex-auto > *)[data-slot="field-label"] {
6396
6408
  flex: auto;
6397
6409
  }
@@ -7649,10 +7661,6 @@ to {
7649
7661
  [data-slot="trace-title"] ~ .\[\[data-slot\=trace-title\]\~\&\]\:-ml-\(--bh-space-050\) {
7650
7662
  margin-left: calc(var(--bh-space-050) * -1);
7651
7663
  }
7652
-
7653
- [data-variant="legend"] + .\[\[data-variant\=legend\]\+\&\]\:-mt-\(--bh-space-100\) {
7654
- margin-top: calc(var(--bh-space-100) * -1);
7655
- }
7656
7664
  }
7657
7665
 
7658
7666
  @property --tw-animation-delay {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beehexa/shadcn-vue",
3
- "version": "2611.20.1",
3
+ "version": "2611.28.1",
4
4
  "description": "Every shadcn-vue component on Beehexa design tokens, compiled from the beehexa.design registry",
5
5
  "keywords": [
6
6
  "beehexa",
@@ -341,7 +341,7 @@
341
341
  "./package.json": "./package.json"
342
342
  },
343
343
  "dependencies": {
344
- "@beehexa/design-tokens": "2611.20.1",
344
+ "@beehexa/design-tokens": "2611.28.1",
345
345
  "@internationalized/date": "^3.12.4",
346
346
  "@lucide/vue": "^1.62.0",
347
347
  "@vueuse/core": "^15.0.0",