@still-void/ui 3.1.0 → 3.3.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/CHANGELOG.md +81 -0
- package/README.md +5 -2
- package/dist/react/client/index.cjs +541 -90
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +152 -2
- package/dist/react/client/index.d.ts +152 -2
- package/dist/react/client/index.js +543 -90
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +322 -37
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +156 -3
- package/dist/react/index.d.ts +156 -3
- package/dist/react/index.js +313 -39
- package/dist/react/index.js.map +1 -1
- package/dist/style.css +489 -2
- package/package.json +2 -1
package/dist/react/index.cjs
CHANGED
|
@@ -45,6 +45,11 @@ __export(react_exports, {
|
|
|
45
45
|
CardSkeleton: () => CardSkeleton,
|
|
46
46
|
CardTitle: () => CardTitle,
|
|
47
47
|
CategoryPill: () => CategoryPill,
|
|
48
|
+
ChartAxis: () => ChartAxis,
|
|
49
|
+
ChartBar: () => ChartBar,
|
|
50
|
+
ChartContainer: () => ChartContainer,
|
|
51
|
+
ChartGrid: () => ChartGrid,
|
|
52
|
+
ChartLine: () => ChartLine,
|
|
48
53
|
Checkbox: () => Checkbox,
|
|
49
54
|
CodeBlock: () => CodeBlock,
|
|
50
55
|
DEFAULT_ACCENT: () => DEFAULT_ACCENT,
|
|
@@ -60,12 +65,21 @@ __export(react_exports, {
|
|
|
60
65
|
Lead: () => Lead,
|
|
61
66
|
Logo: () => Logo,
|
|
62
67
|
NativeSelect: () => NativeSelect,
|
|
68
|
+
Pagination: () => Pagination,
|
|
69
|
+
PaginationContent: () => PaginationContent,
|
|
70
|
+
PaginationEllipsis: () => PaginationEllipsis,
|
|
71
|
+
PaginationItem: () => PaginationItem,
|
|
72
|
+
PaginationLink: () => PaginationLink,
|
|
73
|
+
PaginationNext: () => PaginationNext,
|
|
74
|
+
PaginationPrevious: () => PaginationPrevious,
|
|
63
75
|
PostCard: () => PostCard,
|
|
64
76
|
PostGrid: () => PostGrid,
|
|
77
|
+
Progress: () => Progress,
|
|
65
78
|
Prose: () => Prose,
|
|
66
79
|
READING_PROGRESS_VAR: () => READING_PROGRESS_VAR,
|
|
67
80
|
RadioGroup: () => RadioGroup,
|
|
68
81
|
RadioGroupItem: () => RadioGroupItem,
|
|
82
|
+
Separator: () => Separator,
|
|
69
83
|
Sidebar: () => Sidebar,
|
|
70
84
|
SidebarSection: () => SidebarSection,
|
|
71
85
|
Skeleton: () => Skeleton,
|
|
@@ -168,7 +182,10 @@ var ICON_GLYPHS = {
|
|
|
168
182
|
sun: import_outline.SunIcon,
|
|
169
183
|
moon: import_outline.MoonIcon,
|
|
170
184
|
search: import_outline.MagnifyingGlassIcon,
|
|
171
|
-
menu: import_outline.Bars3Icon
|
|
185
|
+
menu: import_outline.Bars3Icon,
|
|
186
|
+
camera: import_outline.CameraIcon,
|
|
187
|
+
blocked: import_outline.NoSymbolIcon,
|
|
188
|
+
pending: import_outline.ClockIcon
|
|
172
189
|
};
|
|
173
190
|
var ICON_NAMES = Object.keys(ICON_GLYPHS);
|
|
174
191
|
var ICON_FALLBACK_NAME = "alert-circle";
|
|
@@ -183,6 +200,7 @@ var Icon = React.forwardRef(
|
|
|
183
200
|
{
|
|
184
201
|
...props,
|
|
185
202
|
ref,
|
|
203
|
+
"data-icon-name": name,
|
|
186
204
|
className: cn(
|
|
187
205
|
"sv-icon",
|
|
188
206
|
size === "sm" && "sv-icon--sm",
|
|
@@ -759,15 +777,41 @@ CardFooter.displayName = "CardFooter";
|
|
|
759
777
|
// src/components/ui/alert.tsx
|
|
760
778
|
var React5 = __toESM(require("react"), 1);
|
|
761
779
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
762
|
-
var
|
|
763
|
-
"
|
|
764
|
-
{
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
780
|
+
var variantConfig = {
|
|
781
|
+
info: { role: "status", icon: "info" },
|
|
782
|
+
success: { role: "status", icon: "check-circle" },
|
|
783
|
+
warning: { role: "alert", icon: "alert-triangle" },
|
|
784
|
+
danger: { role: "alert", icon: "alert-circle" }
|
|
785
|
+
};
|
|
786
|
+
var Alert = React5.forwardRef(
|
|
787
|
+
({ className, variant, icon, action, role: propRole, ...props }, ref) => {
|
|
788
|
+
const config = variant && Object.prototype.hasOwnProperty.call(variantConfig, variant) ? variantConfig[variant] : null;
|
|
789
|
+
const derivedRole = config?.role ?? "alert";
|
|
790
|
+
const effectiveRole = config ? derivedRole : "alert";
|
|
791
|
+
let iconElement = null;
|
|
792
|
+
if (icon !== null) {
|
|
793
|
+
if (icon !== void 0) {
|
|
794
|
+
iconElement = icon;
|
|
795
|
+
} else if (config) {
|
|
796
|
+
iconElement = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icon, { name: config.icon, "aria-hidden": "true" });
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
800
|
+
"div",
|
|
801
|
+
{
|
|
802
|
+
ref,
|
|
803
|
+
className: cn("sv-alert", config && `sv-alert--${variant}`, className),
|
|
804
|
+
role: effectiveRole,
|
|
805
|
+
...props,
|
|
806
|
+
children: [
|
|
807
|
+
iconElement,
|
|
808
|
+
props.children,
|
|
809
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "sv-alert__action", children: action })
|
|
810
|
+
]
|
|
811
|
+
}
|
|
812
|
+
);
|
|
769
813
|
}
|
|
770
|
-
)
|
|
814
|
+
);
|
|
771
815
|
Alert.displayName = "Alert";
|
|
772
816
|
var AlertTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h5", { ref, className: cn("sv-alert__title", className), ...props }));
|
|
773
817
|
AlertTitle.displayName = "AlertTitle";
|
|
@@ -889,12 +933,239 @@ var Checkbox = React11.forwardRef(
|
|
|
889
933
|
);
|
|
890
934
|
Checkbox.displayName = "Checkbox";
|
|
891
935
|
|
|
892
|
-
// src/components/ui/
|
|
936
|
+
// src/components/ui/separator.tsx
|
|
893
937
|
var React12 = __toESM(require("react"), 1);
|
|
894
938
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
895
|
-
var
|
|
896
|
-
({ className,
|
|
897
|
-
|
|
939
|
+
var Separator = React12.forwardRef(
|
|
940
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
941
|
+
"div",
|
|
942
|
+
{
|
|
943
|
+
...props,
|
|
944
|
+
ref,
|
|
945
|
+
role: decorative ? void 0 : "separator",
|
|
946
|
+
"aria-orientation": !decorative && orientation === "vertical" ? "vertical" : void 0,
|
|
947
|
+
className: cn(
|
|
948
|
+
"sv-separator",
|
|
949
|
+
orientation === "vertical" && "sv-separator--vertical",
|
|
950
|
+
className
|
|
951
|
+
)
|
|
952
|
+
}
|
|
953
|
+
)
|
|
954
|
+
);
|
|
955
|
+
Separator.displayName = "Separator";
|
|
956
|
+
|
|
957
|
+
// src/components/ui/progress.tsx
|
|
958
|
+
var React13 = __toESM(require("react"), 1);
|
|
959
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
960
|
+
function clamp(value, max) {
|
|
961
|
+
return Math.min(Math.max(value, 0), max);
|
|
962
|
+
}
|
|
963
|
+
function normalizeMax(max) {
|
|
964
|
+
return Number.isFinite(max) && max > 0 ? max : 0;
|
|
965
|
+
}
|
|
966
|
+
var Progress = React13.forwardRef(
|
|
967
|
+
({ className, value = 0, max = 100, ...props }, ref) => {
|
|
968
|
+
const safeMax = normalizeMax(max);
|
|
969
|
+
const clamped = clamp(value, safeMax);
|
|
970
|
+
const percent = safeMax === 0 ? 0 : clamped / safeMax * 100;
|
|
971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
972
|
+
"div",
|
|
973
|
+
{
|
|
974
|
+
...props,
|
|
975
|
+
ref,
|
|
976
|
+
role: "progressbar",
|
|
977
|
+
"aria-valuenow": clamped,
|
|
978
|
+
"aria-valuemin": 0,
|
|
979
|
+
"aria-valuemax": safeMax,
|
|
980
|
+
className: cn("sv-progress", className),
|
|
981
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "sv-progress__indicator", style: { width: `${percent}%` } })
|
|
982
|
+
}
|
|
983
|
+
);
|
|
984
|
+
}
|
|
985
|
+
);
|
|
986
|
+
Progress.displayName = "Progress";
|
|
987
|
+
|
|
988
|
+
// src/components/ui/pagination.tsx
|
|
989
|
+
var React14 = __toESM(require("react"), 1);
|
|
990
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
991
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("nav", { ...props, "aria-label": "pagination", className: cn("sv-pagination", className) });
|
|
992
|
+
Pagination.displayName = "Pagination";
|
|
993
|
+
var PaginationContent = React14.forwardRef(
|
|
994
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("ul", { ref, className: cn("sv-pagination__content", className), ...props })
|
|
995
|
+
);
|
|
996
|
+
PaginationContent.displayName = "PaginationContent";
|
|
997
|
+
var PaginationItem = React14.forwardRef(
|
|
998
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("li", { ref, className: cn("sv-pagination__item", className), ...props })
|
|
999
|
+
);
|
|
1000
|
+
PaginationItem.displayName = "PaginationItem";
|
|
1001
|
+
var PaginationLink = React14.forwardRef(
|
|
1002
|
+
({ className, isActive = false, href, ...props }, ref) => {
|
|
1003
|
+
const sharedClassName = cn(
|
|
1004
|
+
"sv-pagination__link",
|
|
1005
|
+
isActive && "sv-pagination__link--active",
|
|
1006
|
+
className
|
|
1007
|
+
);
|
|
1008
|
+
const sharedAria = isActive ? { "aria-current": "page" } : {};
|
|
1009
|
+
if (href !== void 0) {
|
|
1010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1011
|
+
"a",
|
|
1012
|
+
{
|
|
1013
|
+
ref,
|
|
1014
|
+
href,
|
|
1015
|
+
className: sharedClassName,
|
|
1016
|
+
...sharedAria,
|
|
1017
|
+
...props
|
|
1018
|
+
}
|
|
1019
|
+
);
|
|
1020
|
+
}
|
|
1021
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1022
|
+
"button",
|
|
1023
|
+
{
|
|
1024
|
+
ref,
|
|
1025
|
+
type: "button",
|
|
1026
|
+
className: sharedClassName,
|
|
1027
|
+
...sharedAria,
|
|
1028
|
+
...props
|
|
1029
|
+
}
|
|
1030
|
+
);
|
|
1031
|
+
}
|
|
1032
|
+
);
|
|
1033
|
+
PaginationLink.displayName = "PaginationLink";
|
|
1034
|
+
var PaginationPrevious = React14.forwardRef(({ className, label = "Previous", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1035
|
+
PaginationLink,
|
|
1036
|
+
{
|
|
1037
|
+
ref,
|
|
1038
|
+
"aria-label": label,
|
|
1039
|
+
className: cn("sv-pagination__link--previous", className),
|
|
1040
|
+
...props,
|
|
1041
|
+
children: [
|
|
1042
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { name: "chevron-left" }),
|
|
1043
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: label })
|
|
1044
|
+
]
|
|
1045
|
+
}
|
|
1046
|
+
));
|
|
1047
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
1048
|
+
var PaginationNext = React14.forwardRef(
|
|
1049
|
+
({ className, label = "Next", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
1050
|
+
PaginationLink,
|
|
1051
|
+
{
|
|
1052
|
+
ref,
|
|
1053
|
+
"aria-label": label,
|
|
1054
|
+
className: cn("sv-pagination__link--next", className),
|
|
1055
|
+
...props,
|
|
1056
|
+
children: [
|
|
1057
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { children: label }),
|
|
1058
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Icon, { name: "chevron-right" })
|
|
1059
|
+
]
|
|
1060
|
+
}
|
|
1061
|
+
)
|
|
1062
|
+
);
|
|
1063
|
+
PaginationNext.displayName = "PaginationNext";
|
|
1064
|
+
var PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": "true", className: cn("sv-pagination__ellipsis", className), ...props, children: "\u2026" });
|
|
1065
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
1066
|
+
|
|
1067
|
+
// src/components/ui/chart.tsx
|
|
1068
|
+
var React15 = __toESM(require("react"), 1);
|
|
1069
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1070
|
+
var ChartContainer = React15.forwardRef(
|
|
1071
|
+
({ width, height, className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1072
|
+
"svg",
|
|
1073
|
+
{
|
|
1074
|
+
ref,
|
|
1075
|
+
role: "img",
|
|
1076
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
1077
|
+
width,
|
|
1078
|
+
height,
|
|
1079
|
+
className: cn("sv-chart", className),
|
|
1080
|
+
...props,
|
|
1081
|
+
children
|
|
1082
|
+
}
|
|
1083
|
+
)
|
|
1084
|
+
);
|
|
1085
|
+
ChartContainer.displayName = "ChartContainer";
|
|
1086
|
+
var ChartGrid = ({ orientation, positions, width, className }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: positions.map(
|
|
1087
|
+
(position) => orientation === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1088
|
+
"line",
|
|
1089
|
+
{
|
|
1090
|
+
x1: 0,
|
|
1091
|
+
y1: position,
|
|
1092
|
+
x2: width,
|
|
1093
|
+
y2: position,
|
|
1094
|
+
className: cn("sv-chart__grid-line", className)
|
|
1095
|
+
},
|
|
1096
|
+
position
|
|
1097
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1098
|
+
"line",
|
|
1099
|
+
{
|
|
1100
|
+
x1: position,
|
|
1101
|
+
y1: 0,
|
|
1102
|
+
x2: position,
|
|
1103
|
+
y2: width,
|
|
1104
|
+
className: cn("sv-chart__grid-line", className)
|
|
1105
|
+
},
|
|
1106
|
+
position
|
|
1107
|
+
)
|
|
1108
|
+
) });
|
|
1109
|
+
ChartGrid.displayName = "ChartGrid";
|
|
1110
|
+
var ChartAxis = ({ orientation, ticks, length, className }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
1111
|
+
orientation === "bottom" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("line", { x1: 0, y1: 0, x2: length, y2: 0, className: cn("sv-chart__axis", className) }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("line", { x1: 0, y1: 0, x2: 0, y2: length, className: cn("sv-chart__axis", className) }),
|
|
1112
|
+
ticks.map(
|
|
1113
|
+
(tick) => orientation === "bottom" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1114
|
+
"text",
|
|
1115
|
+
{
|
|
1116
|
+
x: tick.position,
|
|
1117
|
+
y: 16,
|
|
1118
|
+
textAnchor: "middle",
|
|
1119
|
+
className: "sv-chart__axis-label",
|
|
1120
|
+
children: tick.label
|
|
1121
|
+
},
|
|
1122
|
+
tick.position
|
|
1123
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1124
|
+
"text",
|
|
1125
|
+
{
|
|
1126
|
+
x: -8,
|
|
1127
|
+
y: tick.position,
|
|
1128
|
+
textAnchor: "end",
|
|
1129
|
+
dominantBaseline: "middle",
|
|
1130
|
+
className: "sv-chart__axis-label",
|
|
1131
|
+
children: tick.label
|
|
1132
|
+
},
|
|
1133
|
+
tick.position
|
|
1134
|
+
)
|
|
1135
|
+
)
|
|
1136
|
+
] });
|
|
1137
|
+
ChartAxis.displayName = "ChartAxis";
|
|
1138
|
+
var ChartLine = ({ points, color, className }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1139
|
+
"polyline",
|
|
1140
|
+
{
|
|
1141
|
+
points: points.map(({ x, y }) => `${x},${y}`).join(" "),
|
|
1142
|
+
fill: "none",
|
|
1143
|
+
stroke: color,
|
|
1144
|
+
strokeWidth: 2,
|
|
1145
|
+
className: cn("sv-chart__line", className)
|
|
1146
|
+
}
|
|
1147
|
+
);
|
|
1148
|
+
ChartLine.displayName = "ChartLine";
|
|
1149
|
+
var ChartBar = ({ bars, color, className }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_jsx_runtime18.Fragment, { children: bars.map((bar) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1150
|
+
"rect",
|
|
1151
|
+
{
|
|
1152
|
+
x: bar.x,
|
|
1153
|
+
y: bar.y,
|
|
1154
|
+
width: bar.width,
|
|
1155
|
+
height: bar.height,
|
|
1156
|
+
fill: color,
|
|
1157
|
+
className: cn("sv-chart__bar", className)
|
|
1158
|
+
},
|
|
1159
|
+
`${bar.x},${bar.y}`
|
|
1160
|
+
)) });
|
|
1161
|
+
ChartBar.displayName = "ChartBar";
|
|
1162
|
+
|
|
1163
|
+
// src/components/ui/radio-group.tsx
|
|
1164
|
+
var React16 = __toESM(require("react"), 1);
|
|
1165
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1166
|
+
var RadioGroupItem = React16.forwardRef(
|
|
1167
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("label", { className: fieldClasses.choice, children: [
|
|
1168
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
898
1169
|
"input",
|
|
899
1170
|
{
|
|
900
1171
|
className: cn("sv-radio", className),
|
|
@@ -907,19 +1178,19 @@ var RadioGroupItem = React12.forwardRef(
|
|
|
907
1178
|
] })
|
|
908
1179
|
);
|
|
909
1180
|
RadioGroupItem.displayName = "RadioGroupItem";
|
|
910
|
-
var RadioGroup =
|
|
1181
|
+
var RadioGroup = React16.forwardRef(
|
|
911
1182
|
({ className, legend, legendHidden, orientation = "vertical", name, children, ...props }, ref) => {
|
|
912
|
-
const items =
|
|
913
|
-
if (!
|
|
1183
|
+
const items = React16.Children.map(children, (child) => {
|
|
1184
|
+
if (!React16.isValidElement(child) || child.type !== RadioGroupItem) {
|
|
914
1185
|
return child;
|
|
915
1186
|
}
|
|
916
1187
|
const itemProps = child.props;
|
|
917
1188
|
if (itemProps.name !== void 0) {
|
|
918
1189
|
return child;
|
|
919
1190
|
}
|
|
920
|
-
return
|
|
1191
|
+
return React16.cloneElement(child, { name });
|
|
921
1192
|
});
|
|
922
|
-
return /* @__PURE__ */ (0,
|
|
1193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
923
1194
|
"fieldset",
|
|
924
1195
|
{
|
|
925
1196
|
className: cn(
|
|
@@ -930,7 +1201,7 @@ var RadioGroup = React12.forwardRef(
|
|
|
930
1201
|
ref,
|
|
931
1202
|
...props,
|
|
932
1203
|
children: [
|
|
933
|
-
legend !== void 0 && /* @__PURE__ */ (0,
|
|
1204
|
+
legend !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("legend", { className: cn("sv-radio-group__legend", legendHidden && fieldClasses.srOnly), children: legend }),
|
|
934
1205
|
items
|
|
935
1206
|
]
|
|
936
1207
|
}
|
|
@@ -940,7 +1211,7 @@ var RadioGroup = React12.forwardRef(
|
|
|
940
1211
|
RadioGroup.displayName = "RadioGroup";
|
|
941
1212
|
|
|
942
1213
|
// src/components/ui/table.tsx
|
|
943
|
-
var
|
|
1214
|
+
var React17 = __toESM(require("react"), 1);
|
|
944
1215
|
|
|
945
1216
|
// src/recipes/table.ts
|
|
946
1217
|
function table() {
|
|
@@ -958,37 +1229,37 @@ var tableClasses = {
|
|
|
958
1229
|
};
|
|
959
1230
|
|
|
960
1231
|
// src/components/ui/table.tsx
|
|
961
|
-
var
|
|
962
|
-
var Table =
|
|
963
|
-
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1232
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1233
|
+
var Table = React17.forwardRef(
|
|
1234
|
+
({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn(tableClasses.container, containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("table", { className: cn(table(), className), ref, ...props }) })
|
|
964
1235
|
);
|
|
965
1236
|
Table.displayName = "Table";
|
|
966
|
-
var TableHeader =
|
|
967
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1237
|
+
var TableHeader = React17.forwardRef(
|
|
1238
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("thead", { className: cn(tableClasses.head, className), ref, ...props })
|
|
968
1239
|
);
|
|
969
1240
|
TableHeader.displayName = "TableHeader";
|
|
970
|
-
var TableBody =
|
|
971
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1241
|
+
var TableBody = React17.forwardRef(
|
|
1242
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tbody", { className: cn(tableClasses.body, className), ref, ...props })
|
|
972
1243
|
);
|
|
973
1244
|
TableBody.displayName = "TableBody";
|
|
974
|
-
var TableFooter =
|
|
975
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1245
|
+
var TableFooter = React17.forwardRef(
|
|
1246
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tfoot", { className: cn(tableClasses.foot, className), ref, ...props })
|
|
976
1247
|
);
|
|
977
1248
|
TableFooter.displayName = "TableFooter";
|
|
978
|
-
var TableRow =
|
|
979
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1249
|
+
var TableRow = React17.forwardRef(
|
|
1250
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("tr", { className: cn(tableClasses.row, className), ref, ...props })
|
|
980
1251
|
);
|
|
981
1252
|
TableRow.displayName = "TableRow";
|
|
982
|
-
var TableHead =
|
|
983
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1253
|
+
var TableHead = React17.forwardRef(
|
|
1254
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("th", { className: cn(tableClasses.th, className), ref, ...props })
|
|
984
1255
|
);
|
|
985
1256
|
TableHead.displayName = "TableHead";
|
|
986
|
-
var TableCell =
|
|
987
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1257
|
+
var TableCell = React17.forwardRef(
|
|
1258
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("td", { className: cn(tableClasses.td, className), ref, ...props })
|
|
988
1259
|
);
|
|
989
1260
|
TableCell.displayName = "TableCell";
|
|
990
|
-
var TableCaption =
|
|
991
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
1261
|
+
var TableCaption = React17.forwardRef(
|
|
1262
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("caption", { className: cn(tableClasses.caption, className), ref, ...props })
|
|
992
1263
|
);
|
|
993
1264
|
TableCaption.displayName = "TableCaption";
|
|
994
1265
|
|
|
@@ -1096,6 +1367,11 @@ var zIndex = {
|
|
|
1096
1367
|
CardSkeleton,
|
|
1097
1368
|
CardTitle,
|
|
1098
1369
|
CategoryPill,
|
|
1370
|
+
ChartAxis,
|
|
1371
|
+
ChartBar,
|
|
1372
|
+
ChartContainer,
|
|
1373
|
+
ChartGrid,
|
|
1374
|
+
ChartLine,
|
|
1099
1375
|
Checkbox,
|
|
1100
1376
|
CodeBlock,
|
|
1101
1377
|
DEFAULT_ACCENT,
|
|
@@ -1111,12 +1387,21 @@ var zIndex = {
|
|
|
1111
1387
|
Lead,
|
|
1112
1388
|
Logo,
|
|
1113
1389
|
NativeSelect,
|
|
1390
|
+
Pagination,
|
|
1391
|
+
PaginationContent,
|
|
1392
|
+
PaginationEllipsis,
|
|
1393
|
+
PaginationItem,
|
|
1394
|
+
PaginationLink,
|
|
1395
|
+
PaginationNext,
|
|
1396
|
+
PaginationPrevious,
|
|
1114
1397
|
PostCard,
|
|
1115
1398
|
PostGrid,
|
|
1399
|
+
Progress,
|
|
1116
1400
|
Prose,
|
|
1117
1401
|
READING_PROGRESS_VAR,
|
|
1118
1402
|
RadioGroup,
|
|
1119
1403
|
RadioGroupItem,
|
|
1404
|
+
Separator,
|
|
1120
1405
|
Sidebar,
|
|
1121
1406
|
SidebarSection,
|
|
1122
1407
|
Skeleton,
|