@examplary/ui 1.45.1 → 1.47.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.
|
@@ -117,7 +117,12 @@ export var fetchComponent = function (url) { return __awaiter(void 0, void 0, vo
|
|
|
117
117
|
if (componentCache.has(url)) {
|
|
118
118
|
return [2 /*return*/, componentCache.get(url)];
|
|
119
119
|
}
|
|
120
|
-
return [4 /*yield*/, fetch(url).then(function (res) {
|
|
120
|
+
return [4 /*yield*/, fetch(url).then(function (res) {
|
|
121
|
+
if (!res.ok) {
|
|
122
|
+
throw new Error("Failed to fetch component from ".concat(url, ": ").concat(res.status, " ").concat(res.statusText));
|
|
123
|
+
}
|
|
124
|
+
return res.text();
|
|
125
|
+
})];
|
|
121
126
|
case 1:
|
|
122
127
|
js = _a.sent();
|
|
123
128
|
return [4 /*yield*/, evalComponent(js)];
|
|
@@ -34,7 +34,7 @@ function TabsList(_a) {
|
|
|
34
34
|
}
|
|
35
35
|
function TabsTrigger(_a) {
|
|
36
36
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
37
|
-
return (_jsx(TabsPrimitive.Trigger, __assign({ "data-slot": "tabs-trigger", className: cn("px-3 py-1 transition-shadow rounded-full border border-transparent text-sm", "data-[state=active]:border-black data-[state=active]:shadow-light data-[state=active]:bg-white data-[state=active]:font-medium", "cursor-pointer data-[state=active]:cursor-default", className) }, props)));
|
|
37
|
+
return (_jsx(TabsPrimitive.Trigger, __assign({ "data-slot": "tabs-trigger", className: cn("px-3 py-1 transition-shadow rounded-full border border-transparent text-sm", "data-[state=active]:border-black data-[state=active]:shadow-light data-[state=active]:bg-white data-[state=active]:font-medium", "cursor-pointer data-[state=active]:cursor-default outline-none", className) }, props)));
|
|
38
38
|
}
|
|
39
39
|
function TabsContent(_a) {
|
|
40
40
|
var className = _a.className, props = __rest(_a, ["className"]);
|
package/package.json
CHANGED
package/src/global.css
CHANGED