shadcn-ui-react 0.6.9 → 0.7.0

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 CHANGED
@@ -9220,7 +9220,7 @@ function UiSelect({
9220
9220
  className,
9221
9221
  label ? "mt-1" : ""
9222
9222
  ),
9223
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectValue, { placeholder })
9223
+ children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectValue, { placeholder, className: "placeholder:text-muted-foreground" })
9224
9224
  }
9225
9225
  ),
9226
9226
  /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectContent, { className: cn(contentBase, contentClassName), children: children ? children : items ? items == null ? void 0 : items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
@@ -9293,25 +9293,31 @@ function UiInput(_a) {
9293
9293
  Label3,
9294
9294
  {
9295
9295
  ref,
9296
- className: cn(errorMessage && "text-destructive", labelClassName),
9296
+ className: cn(
9297
+ "mb-1 inline-flex items-start gap-0.5 text-sm font-medium",
9298
+ errorMessage && "text-destructive",
9299
+ labelClassName
9300
+ ),
9297
9301
  htmlFor: formItemId,
9298
9302
  children: [
9299
- label,
9300
- requiredLabel && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9303
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: label }),
9304
+ requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9301
9305
  import_lucide_react8.Asterisk,
9302
9306
  {
9307
+ "aria-hidden": "true",
9303
9308
  className: cn(
9304
- "ml-px h-3 w-3 text-red-500",
9309
+ "mt-0.5 h-3 w-3 shrink-0 text-red-500",
9305
9310
  requiredLabelClassName
9306
9311
  )
9307
9312
  }
9308
- )
9313
+ ) : null
9309
9314
  ]
9310
9315
  }
9311
9316
  ) : null,
9312
9317
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9313
9318
  Input,
9314
9319
  __spreadProps(__spreadValues({}, inputProps), {
9320
+ id: formItemId,
9315
9321
  onChange,
9316
9322
  placeholder,
9317
9323
  className: cn(
@@ -9322,7 +9328,7 @@ function UiInput(_a) {
9322
9328
  classNameDefault
9323
9329
  })
9324
9330
  ),
9325
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-sm text-destructive mt-1 ", children: errorMessage }) : null
9331
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "mt-1 text-sm text-destructive", children: errorMessage }) : null
9326
9332
  ] });
9327
9333
  }
9328
9334
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.js CHANGED
@@ -9018,7 +9018,7 @@ function UiSelect({
9018
9018
  className,
9019
9019
  label ? "mt-1" : ""
9020
9020
  ),
9021
- children: /* @__PURE__ */ jsx55(SelectValue, { placeholder })
9021
+ children: /* @__PURE__ */ jsx55(SelectValue, { placeholder, className: "placeholder:text-muted-foreground" })
9022
9022
  }
9023
9023
  ),
9024
9024
  /* @__PURE__ */ jsx55(SelectContent, { className: cn(contentBase, contentClassName), children: children ? children : items ? items == null ? void 0 : items.map((item) => /* @__PURE__ */ jsx55(
@@ -9091,25 +9091,31 @@ function UiInput(_a) {
9091
9091
  Label3,
9092
9092
  {
9093
9093
  ref,
9094
- className: cn(errorMessage && "text-destructive", labelClassName),
9094
+ className: cn(
9095
+ "mb-1 inline-flex items-start gap-0.5 text-sm font-medium",
9096
+ errorMessage && "text-destructive",
9097
+ labelClassName
9098
+ ),
9095
9099
  htmlFor: formItemId,
9096
9100
  children: [
9097
- label,
9098
- requiredLabel && /* @__PURE__ */ jsx56(
9101
+ /* @__PURE__ */ jsx56("span", { children: label }),
9102
+ requiredLabel ? /* @__PURE__ */ jsx56(
9099
9103
  Asterisk2,
9100
9104
  {
9105
+ "aria-hidden": "true",
9101
9106
  className: cn(
9102
- "ml-px h-3 w-3 text-red-500",
9107
+ "mt-0.5 h-3 w-3 shrink-0 text-red-500",
9103
9108
  requiredLabelClassName
9104
9109
  )
9105
9110
  }
9106
- )
9111
+ ) : null
9107
9112
  ]
9108
9113
  }
9109
9114
  ) : null,
9110
9115
  /* @__PURE__ */ jsx56(
9111
9116
  Input,
9112
9117
  __spreadProps(__spreadValues({}, inputProps), {
9118
+ id: formItemId,
9113
9119
  onChange,
9114
9120
  placeholder,
9115
9121
  className: cn(
@@ -9120,7 +9126,7 @@ function UiInput(_a) {
9120
9126
  classNameDefault
9121
9127
  })
9122
9128
  ),
9123
- errorMessage ? /* @__PURE__ */ jsx56("p", { className: "text-sm text-destructive mt-1 ", children: errorMessage }) : null
9129
+ errorMessage ? /* @__PURE__ */ jsx56("p", { className: "mt-1 text-sm text-destructive", children: errorMessage }) : null
9124
9130
  ] });
9125
9131
  }
9126
9132
  export {
package/dist/style.css CHANGED
@@ -444,6 +444,9 @@
444
444
  .-mt-4 {
445
445
  margin-top: calc(var(--spacing) * -4);
446
446
  }
447
+ .mt-0\.5 {
448
+ margin-top: calc(var(--spacing) * 0.5);
449
+ }
447
450
  .mt-1 {
448
451
  margin-top: calc(var(--spacing) * 1);
449
452
  }
@@ -802,6 +805,9 @@
802
805
  .items-end {
803
806
  align-items: flex-end;
804
807
  }
808
+ .items-start {
809
+ align-items: flex-start;
810
+ }
805
811
  .justify-between {
806
812
  justify-content: space-between;
807
813
  }
@@ -814,6 +820,9 @@
814
820
  .gap-0 {
815
821
  gap: calc(var(--spacing) * 0);
816
822
  }
823
+ .gap-0\.5 {
824
+ gap: calc(var(--spacing) * 0.5);
825
+ }
817
826
  .gap-1 {
818
827
  gap: calc(var(--spacing) * 1);
819
828
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadcn-ui-react",
3
- "version": "0.6.9",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
5
  "author": "Bleker Cordova <bleker@gliyen.com>",
6
6
  "description": "A collection of components for building beautiful and accessible user interfaces with React and Tailwind CSS.",