@bergetai/ui 0.2.3 → 0.2.4

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
@@ -1252,7 +1252,18 @@ var checkboxVariants = (0, import_class_variance_authority8.cva)(
1252
1252
  }
1253
1253
  );
1254
1254
  var Checkbox2 = React18.forwardRef(
1255
- ({ className, variant, size, label, description, error, id, disabled, ...props }, ref) => {
1255
+ ({
1256
+ "aria-label": ariaLabel,
1257
+ className,
1258
+ variant,
1259
+ size,
1260
+ label,
1261
+ description,
1262
+ error,
1263
+ id,
1264
+ disabled,
1265
+ ...props
1266
+ }, ref) => {
1256
1267
  const generatedId = React18.useId();
1257
1268
  const checkboxId = id || generatedId;
1258
1269
  const errorId = `${checkboxId}-error`;
@@ -1265,6 +1276,7 @@ var Checkbox2 = React18.forwardRef(
1265
1276
  disabled,
1266
1277
  "aria-invalid": !!error,
1267
1278
  "aria-describedby": error ? errorId : void 0,
1279
+ "aria-label": ariaLabel || label || void 0,
1268
1280
  className: cn(
1269
1281
  checkboxVariants({ variant, size }),
1270
1282
  "cursor-pointer",
@@ -1344,7 +1356,18 @@ var switchThumbVariants = (0, import_class_variance_authority9.cva)(
1344
1356
  }
1345
1357
  );
1346
1358
  var Switch = React19.forwardRef(
1347
- ({ className, variant, size, label, description, error, id, disabled, ...props }, ref) => {
1359
+ ({
1360
+ "aria-label": ariaLabel,
1361
+ className,
1362
+ variant,
1363
+ size,
1364
+ label,
1365
+ description,
1366
+ error,
1367
+ id,
1368
+ disabled,
1369
+ ...props
1370
+ }, ref) => {
1348
1371
  const generatedId = React19.useId();
1349
1372
  const switchId = id || generatedId;
1350
1373
  const errorId = `${switchId}-error`;
@@ -1357,6 +1380,7 @@ var Switch = React19.forwardRef(
1357
1380
  disabled,
1358
1381
  "aria-invalid": !!error,
1359
1382
  "aria-describedby": error ? errorId : void 0,
1383
+ "aria-label": ariaLabel || label || void 0,
1360
1384
  className: cn(
1361
1385
  switchRootVariants({ variant, size }),
1362
1386
  disabled && "cursor-not-allowed pointer-events-none",
@@ -2770,7 +2794,7 @@ var import_lucide_react9 = require("lucide-react");
2770
2794
  var import_jsx_runtime38 = require("react/jsx-runtime");
2771
2795
  var LanguageSelect = React35.forwardRef(({ className, options, value, onValueChange }, ref) => {
2772
2796
  return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(SelectPrimitive2.Root, { value, onValueChange, children: [
2773
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
2797
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
2774
2798
  SelectPrimitive2.Trigger,
2775
2799
  {
2776
2800
  ref,
@@ -2792,7 +2816,10 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
2792
2816
  "disabled:cursor-not-allowed disabled:opacity-50",
2793
2817
  className
2794
2818
  ),
2795
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon2, { icon: import_lucide_react9.Globe, size: 16 })
2819
+ children: [
2820
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: "Select language" }),
2821
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon2, { icon: import_lucide_react9.Globe, size: 16, "aria-hidden": true })
2822
+ ]
2796
2823
  }
2797
2824
  ),
2798
2825
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(