@bergetai/ui 0.2.3 → 0.2.5
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 +44 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +44 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -777,7 +777,14 @@ var Table2 = React12.forwardRef(
|
|
|
777
777
|
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Table, { ref, className, ...props })
|
|
778
778
|
);
|
|
779
779
|
Table2.displayName = "Table";
|
|
780
|
-
var TableHeader2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
780
|
+
var TableHeader2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
781
|
+
TableHeader,
|
|
782
|
+
{
|
|
783
|
+
ref,
|
|
784
|
+
className: cn("[&_tr]:border-b border-berget-table-border", className),
|
|
785
|
+
...props
|
|
786
|
+
}
|
|
787
|
+
));
|
|
781
788
|
TableHeader2.displayName = "TableHeader";
|
|
782
789
|
var TableBody2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
783
790
|
TableBody,
|
|
@@ -792,7 +799,10 @@ var TableFooter2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
792
799
|
TableFooter,
|
|
793
800
|
{
|
|
794
801
|
ref,
|
|
795
|
-
className: cn(
|
|
802
|
+
className: cn(
|
|
803
|
+
"border-t border-berget-table-border bg-berget-table-footer-bg font-medium [&>tr]:last:border-0",
|
|
804
|
+
className
|
|
805
|
+
),
|
|
796
806
|
...props
|
|
797
807
|
}
|
|
798
808
|
));
|
|
@@ -803,7 +813,7 @@ var TableRow2 = React12.forwardRef(
|
|
|
803
813
|
{
|
|
804
814
|
ref,
|
|
805
815
|
className: cn(
|
|
806
|
-
"border-b transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
|
|
816
|
+
"border-b border-berget-table-border transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
|
|
807
817
|
className
|
|
808
818
|
),
|
|
809
819
|
...props
|
|
@@ -1252,7 +1262,18 @@ var checkboxVariants = (0, import_class_variance_authority8.cva)(
|
|
|
1252
1262
|
}
|
|
1253
1263
|
);
|
|
1254
1264
|
var Checkbox2 = React18.forwardRef(
|
|
1255
|
-
({
|
|
1265
|
+
({
|
|
1266
|
+
"aria-label": ariaLabel,
|
|
1267
|
+
className,
|
|
1268
|
+
variant,
|
|
1269
|
+
size,
|
|
1270
|
+
label,
|
|
1271
|
+
description,
|
|
1272
|
+
error,
|
|
1273
|
+
id,
|
|
1274
|
+
disabled,
|
|
1275
|
+
...props
|
|
1276
|
+
}, ref) => {
|
|
1256
1277
|
const generatedId = React18.useId();
|
|
1257
1278
|
const checkboxId = id || generatedId;
|
|
1258
1279
|
const errorId = `${checkboxId}-error`;
|
|
@@ -1265,6 +1286,7 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1265
1286
|
disabled,
|
|
1266
1287
|
"aria-invalid": !!error,
|
|
1267
1288
|
"aria-describedby": error ? errorId : void 0,
|
|
1289
|
+
"aria-label": ariaLabel || label || void 0,
|
|
1268
1290
|
className: cn(
|
|
1269
1291
|
checkboxVariants({ variant, size }),
|
|
1270
1292
|
"cursor-pointer",
|
|
@@ -1344,7 +1366,18 @@ var switchThumbVariants = (0, import_class_variance_authority9.cva)(
|
|
|
1344
1366
|
}
|
|
1345
1367
|
);
|
|
1346
1368
|
var Switch = React19.forwardRef(
|
|
1347
|
-
({
|
|
1369
|
+
({
|
|
1370
|
+
"aria-label": ariaLabel,
|
|
1371
|
+
className,
|
|
1372
|
+
variant,
|
|
1373
|
+
size,
|
|
1374
|
+
label,
|
|
1375
|
+
description,
|
|
1376
|
+
error,
|
|
1377
|
+
id,
|
|
1378
|
+
disabled,
|
|
1379
|
+
...props
|
|
1380
|
+
}, ref) => {
|
|
1348
1381
|
const generatedId = React19.useId();
|
|
1349
1382
|
const switchId = id || generatedId;
|
|
1350
1383
|
const errorId = `${switchId}-error`;
|
|
@@ -1357,6 +1390,7 @@ var Switch = React19.forwardRef(
|
|
|
1357
1390
|
disabled,
|
|
1358
1391
|
"aria-invalid": !!error,
|
|
1359
1392
|
"aria-describedby": error ? errorId : void 0,
|
|
1393
|
+
"aria-label": ariaLabel || label || void 0,
|
|
1360
1394
|
className: cn(
|
|
1361
1395
|
switchRootVariants({ variant, size }),
|
|
1362
1396
|
disabled && "cursor-not-allowed pointer-events-none",
|
|
@@ -2770,7 +2804,7 @@ var import_lucide_react9 = require("lucide-react");
|
|
|
2770
2804
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2771
2805
|
var LanguageSelect = React35.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
2772
2806
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
2773
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.
|
|
2807
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
|
|
2774
2808
|
SelectPrimitive2.Trigger,
|
|
2775
2809
|
{
|
|
2776
2810
|
ref,
|
|
@@ -2792,7 +2826,10 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2792
2826
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
2793
2827
|
className
|
|
2794
2828
|
),
|
|
2795
|
-
children:
|
|
2829
|
+
children: [
|
|
2830
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: "Select language" }),
|
|
2831
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon2, { icon: import_lucide_react9.Globe, size: 16, "aria-hidden": true })
|
|
2832
|
+
]
|
|
2796
2833
|
}
|
|
2797
2834
|
),
|
|
2798
2835
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|