@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) { return res.text(); })];
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
@@ -2,7 +2,7 @@
2
2
  "name": "@examplary/ui",
3
3
  "description": "UI components for the Examplary testing platform.",
4
4
  "packageManager": "yarn@4.5.3",
5
- "version": "1.45.1",
5
+ "version": "1.47.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "files": [
package/src/global.css CHANGED
@@ -11,6 +11,7 @@
11
11
  @source "../../node_modules/@examplary/ui";
12
12
  @source "../../../node_modules/@examplary/ui";
13
13
  @source "../../packages/ui/src/components/*";
14
+ @source "../dist/components/";
14
15
 
15
16
  @custom-variant dark (&:where(.dark, .dark *));
16
17