@industry-theme/alexandria-panels 0.1.3 → 0.1.4

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.
@@ -1,3 +1,15 @@
1
+ (function() {
2
+ "use strict";
3
+ try {
4
+ if (typeof document != "undefined") {
5
+ var elementStyle = document.createElement("style");
6
+ elementStyle.appendChild(document.createTextNode("/* Container query for responsive LocalProjectCard */\n.local-projects-panel {\n container-type: inline-size;\n container-name: local-projects;\n height: 100%;\n}\n\n.local-project-card {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 12px;\n}\n\n.local-project-card__content {\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n min-width: 0;\n}\n\n.local-project-card__info {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.local-project-card__path,\n.local-project-card__meta {\n display: flex;\n}\n\n.local-project-card__actions {\n display: flex;\n gap: 4px;\n flex-shrink: 0;\n align-items: center;\n}\n\n.local-project-card__actions--stacked {\n display: none;\n}\n\n/* Compact mode when container is 400px or less */\n@container local-projects (max-width: 400px) {\n .local-projects-panel {\n padding: 8px !important;\n gap: 8px !important;\n }\n\n .local-projects-list {\n gap: 12px !important;\n }\n\n .local-project-card {\n flex-direction: column;\n align-items: stretch;\n gap: 6px;\n padding: 0 !important;\n }\n\n .local-project-card__content {\n gap: 8px;\n }\n\n .local-project-card__path,\n .local-project-card__meta {\n display: none;\n }\n\n .local-project-card__actions {\n display: none;\n }\n\n .local-project-card__actions--stacked {\n display: flex;\n gap: 4px;\n }\n\n .local-project-card__actions--stacked button {\n flex: 1;\n }\n}"));
7
+ document.head.appendChild(elementStyle);
8
+ }
9
+ } catch (e) {
10
+ console.error("vite-plugin-css-injected-by-js", e);
11
+ }
12
+ })();
1
13
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
14
  import React2, { createContext, useState, useEffect, useContext, forwardRef, createElement, useMemo, useCallback } from "react";
3
15
  var terminalTheme = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@industry-theme/alexandria-panels",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Alexandria entry panels for browsing and managing local repositories",
5
5
  "type": "module",
6
6
  "main": "dist/panels.bundle.js",
@@ -86,7 +86,8 @@
86
86
  "storybook": "10.1.2",
87
87
  "typescript": "^5.0.4",
88
88
  "typescript-eslint": "^8.38.0",
89
- "vite": "^6.0.7"
89
+ "vite": "^6.0.7",
90
+ "vite-plugin-css-injected-by-js": "^3.5.2"
90
91
  },
91
92
  "files": [
92
93
  "dist",
@@ -1,86 +0,0 @@
1
- /* Container query for responsive LocalProjectCard */
2
- .local-projects-panel {
3
- container-type: inline-size;
4
- container-name: local-projects;
5
- height: 100%;
6
- }
7
-
8
- .local-project-card {
9
- display: flex;
10
- flex-direction: row;
11
- align-items: center;
12
- gap: 12px;
13
- }
14
-
15
- .local-project-card__content {
16
- display: flex;
17
- align-items: center;
18
- gap: 12px;
19
- flex: 1;
20
- min-width: 0;
21
- }
22
-
23
- .local-project-card__info {
24
- flex: 1;
25
- min-width: 0;
26
- display: flex;
27
- flex-direction: column;
28
- gap: 2px;
29
- }
30
-
31
- .local-project-card__path,
32
- .local-project-card__meta {
33
- display: flex;
34
- }
35
-
36
- .local-project-card__actions {
37
- display: flex;
38
- gap: 4px;
39
- flex-shrink: 0;
40
- align-items: center;
41
- }
42
-
43
- .local-project-card__actions--stacked {
44
- display: none;
45
- }
46
-
47
- /* Compact mode when container is 400px or less */
48
- @container local-projects (max-width: 400px) {
49
- .local-projects-panel {
50
- padding: 8px !important;
51
- gap: 8px !important;
52
- }
53
-
54
- .local-projects-list {
55
- gap: 12px !important;
56
- }
57
-
58
- .local-project-card {
59
- flex-direction: column;
60
- align-items: stretch;
61
- gap: 6px;
62
- padding: 0 !important;
63
- }
64
-
65
- .local-project-card__content {
66
- gap: 8px;
67
- }
68
-
69
- .local-project-card__path,
70
- .local-project-card__meta {
71
- display: none;
72
- }
73
-
74
- .local-project-card__actions {
75
- display: none;
76
- }
77
-
78
- .local-project-card__actions--stacked {
79
- display: flex;
80
- gap: 4px;
81
- }
82
-
83
- .local-project-card__actions--stacked button {
84
- flex: 1;
85
- }
86
- }