@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.js
CHANGED
|
@@ -653,7 +653,14 @@ var Table2 = React12.forwardRef(
|
|
|
653
653
|
({ className, ...props }, ref) => /* @__PURE__ */ jsx13(Table, { ref, className, ...props })
|
|
654
654
|
);
|
|
655
655
|
Table2.displayName = "Table";
|
|
656
|
-
var TableHeader2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
656
|
+
var TableHeader2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
657
|
+
TableHeader,
|
|
658
|
+
{
|
|
659
|
+
ref,
|
|
660
|
+
className: cn("[&_tr]:border-b border-berget-table-border", className),
|
|
661
|
+
...props
|
|
662
|
+
}
|
|
663
|
+
));
|
|
657
664
|
TableHeader2.displayName = "TableHeader";
|
|
658
665
|
var TableBody2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx13(
|
|
659
666
|
TableBody,
|
|
@@ -668,7 +675,10 @@ var TableFooter2 = React12.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
668
675
|
TableFooter,
|
|
669
676
|
{
|
|
670
677
|
ref,
|
|
671
|
-
className: cn(
|
|
678
|
+
className: cn(
|
|
679
|
+
"border-t border-berget-table-border bg-berget-table-footer-bg font-medium [&>tr]:last:border-0",
|
|
680
|
+
className
|
|
681
|
+
),
|
|
672
682
|
...props
|
|
673
683
|
}
|
|
674
684
|
));
|
|
@@ -679,7 +689,7 @@ var TableRow2 = React12.forwardRef(
|
|
|
679
689
|
{
|
|
680
690
|
ref,
|
|
681
691
|
className: cn(
|
|
682
|
-
"border-b transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
|
|
692
|
+
"border-b border-berget-table-border transition-colors hover:bg-berget-table-row-hover data-[state=selected]:bg-berget-table-row-selected",
|
|
683
693
|
className
|
|
684
694
|
),
|
|
685
695
|
...props
|
|
@@ -1128,7 +1138,18 @@ var checkboxVariants = cva8(
|
|
|
1128
1138
|
}
|
|
1129
1139
|
);
|
|
1130
1140
|
var Checkbox2 = React18.forwardRef(
|
|
1131
|
-
({
|
|
1141
|
+
({
|
|
1142
|
+
"aria-label": ariaLabel,
|
|
1143
|
+
className,
|
|
1144
|
+
variant,
|
|
1145
|
+
size,
|
|
1146
|
+
label,
|
|
1147
|
+
description,
|
|
1148
|
+
error,
|
|
1149
|
+
id,
|
|
1150
|
+
disabled,
|
|
1151
|
+
...props
|
|
1152
|
+
}, ref) => {
|
|
1132
1153
|
const generatedId = React18.useId();
|
|
1133
1154
|
const checkboxId = id || generatedId;
|
|
1134
1155
|
const errorId = `${checkboxId}-error`;
|
|
@@ -1141,6 +1162,7 @@ var Checkbox2 = React18.forwardRef(
|
|
|
1141
1162
|
disabled,
|
|
1142
1163
|
"aria-invalid": !!error,
|
|
1143
1164
|
"aria-describedby": error ? errorId : void 0,
|
|
1165
|
+
"aria-label": ariaLabel || label || void 0,
|
|
1144
1166
|
className: cn(
|
|
1145
1167
|
checkboxVariants({ variant, size }),
|
|
1146
1168
|
"cursor-pointer",
|
|
@@ -1220,7 +1242,18 @@ var switchThumbVariants = cva9(
|
|
|
1220
1242
|
}
|
|
1221
1243
|
);
|
|
1222
1244
|
var Switch = React19.forwardRef(
|
|
1223
|
-
({
|
|
1245
|
+
({
|
|
1246
|
+
"aria-label": ariaLabel,
|
|
1247
|
+
className,
|
|
1248
|
+
variant,
|
|
1249
|
+
size,
|
|
1250
|
+
label,
|
|
1251
|
+
description,
|
|
1252
|
+
error,
|
|
1253
|
+
id,
|
|
1254
|
+
disabled,
|
|
1255
|
+
...props
|
|
1256
|
+
}, ref) => {
|
|
1224
1257
|
const generatedId = React19.useId();
|
|
1225
1258
|
const switchId = id || generatedId;
|
|
1226
1259
|
const errorId = `${switchId}-error`;
|
|
@@ -1233,6 +1266,7 @@ var Switch = React19.forwardRef(
|
|
|
1233
1266
|
disabled,
|
|
1234
1267
|
"aria-invalid": !!error,
|
|
1235
1268
|
"aria-describedby": error ? errorId : void 0,
|
|
1269
|
+
"aria-label": ariaLabel || label || void 0,
|
|
1236
1270
|
className: cn(
|
|
1237
1271
|
switchRootVariants({ variant, size }),
|
|
1238
1272
|
disabled && "cursor-not-allowed pointer-events-none",
|
|
@@ -2646,7 +2680,7 @@ import { Globe as Globe2 } from "lucide-react";
|
|
|
2646
2680
|
import { jsx as jsx38, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2647
2681
|
var LanguageSelect = React35.forwardRef(({ className, options, value, onValueChange }, ref) => {
|
|
2648
2682
|
return /* @__PURE__ */ jsxs16(SelectPrimitive2.Root, { value, onValueChange, children: [
|
|
2649
|
-
/* @__PURE__ */
|
|
2683
|
+
/* @__PURE__ */ jsxs16(
|
|
2650
2684
|
SelectPrimitive2.Trigger,
|
|
2651
2685
|
{
|
|
2652
2686
|
ref,
|
|
@@ -2668,7 +2702,10 @@ var LanguageSelect = React35.forwardRef(({ className, options, value, onValueCha
|
|
|
2668
2702
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
2669
2703
|
className
|
|
2670
2704
|
),
|
|
2671
|
-
children:
|
|
2705
|
+
children: [
|
|
2706
|
+
/* @__PURE__ */ jsx38("span", { className: "sr-only", children: "Select language" }),
|
|
2707
|
+
/* @__PURE__ */ jsx38(Icon2, { icon: Globe2, size: 16, "aria-hidden": true })
|
|
2708
|
+
]
|
|
2672
2709
|
}
|
|
2673
2710
|
),
|
|
2674
2711
|
/* @__PURE__ */ jsx38(SelectPrimitive2.Portal, { children: /* @__PURE__ */ jsx38(
|