@lace-cloud/canvas 0.0.1-bootstrap.0 → 0.6.3-next.25704378412

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.
@@ -0,0 +1,145 @@
1
+ /* Shared structural styles used by every config panel. Replaces the
2
+ * ad-hoc Tailwind class strings that used to live in
3
+ * canvas/src/styles/panel.ts. Each panel imports this file + its own
4
+ * panel-specific rules.
5
+ *
6
+ * Input fields, mode toggles, and buttons inside config panels adopt
7
+ * @lace-cloud/ui primitives (Input, ModeToggle, Button) — not replicated here. */
8
+
9
+ .lace-panel-section-title {
10
+ margin: 0 0 var(--lace-space-3);
11
+ font-size: var(--lace-font-size-lg);
12
+ font-weight: var(--lace-font-weight-bold);
13
+ text-transform: uppercase;
14
+ letter-spacing: 0.04em;
15
+ opacity: 0.85;
16
+ }
17
+
18
+ .lace-panel-row-card {
19
+ margin-bottom: var(--lace-space-3);
20
+ padding: var(--lace-space-2) var(--lace-space-3);
21
+ background: var(--lace-color-bg-input);
22
+ border: 1px solid var(--lace-color-border-default);
23
+ border-radius: var(--lace-radius-lg);
24
+ display: flex;
25
+ flex-direction: column;
26
+ gap: var(--lace-space-2);
27
+ }
28
+
29
+ .lace-panel-row-card--with-footer {
30
+ margin-bottom: var(--lace-space-4);
31
+ padding: var(--lace-space-3);
32
+ }
33
+
34
+ .lace-panel-row-actions {
35
+ display: flex;
36
+ align-items: center;
37
+ gap: var(--lace-space-2);
38
+ }
39
+
40
+ .lace-panel-row-actions--stacked {
41
+ flex-direction: column;
42
+ align-items: stretch;
43
+ }
44
+
45
+ .lace-panel-remove-btn {
46
+ padding: 0 var(--lace-space-2);
47
+ background: transparent;
48
+ border: none;
49
+ color: var(--lace-color-text-danger);
50
+ font-family: inherit;
51
+ font-size: var(--lace-font-size-md);
52
+ cursor: pointer;
53
+ white-space: nowrap;
54
+ transition: color var(--lace-duration-fast) var(--lace-easing-standard);
55
+ }
56
+
57
+ .lace-panel-remove-btn--sm {
58
+ padding: 0 6px;
59
+ font-size: var(--lace-font-size-xs);
60
+ }
61
+
62
+ .lace-panel-remove-btn:hover {
63
+ color: var(--lace-color-text-danger-soft);
64
+ }
65
+
66
+ .lace-panel-add-btn {
67
+ margin-bottom: var(--lace-space-4);
68
+ padding: 0;
69
+ background: transparent;
70
+ border: none;
71
+ color: var(--lace-color-text-link);
72
+ font-family: inherit;
73
+ font-size: var(--lace-font-size-md);
74
+ cursor: pointer;
75
+ transition: opacity var(--lace-duration-fast) var(--lace-easing-standard);
76
+ }
77
+
78
+ .lace-panel-add-btn--sm {
79
+ margin-top: var(--lace-space-1);
80
+ margin-bottom: 0;
81
+ font-size: var(--lace-font-size-xs);
82
+ }
83
+
84
+ .lace-panel-add-btn:hover {
85
+ opacity: 0.85;
86
+ }
87
+
88
+ .lace-panel-hint {
89
+ margin-bottom: var(--lace-space-4);
90
+ color: var(--lace-color-text-muted);
91
+ font-size: var(--lace-font-size-md);
92
+ line-height: var(--lace-line-height-normal);
93
+ }
94
+
95
+ .lace-panel-row-label {
96
+ display: block;
97
+ margin-bottom: 6px;
98
+ color: var(--lace-color-text-label);
99
+ font-size: var(--lace-font-size-md);
100
+ font-weight: var(--lace-font-weight-semibold);
101
+ }
102
+
103
+ .lace-panel-field {
104
+ margin-bottom: var(--lace-space-4);
105
+ display: flex;
106
+ flex-direction: column;
107
+ gap: 6px;
108
+ }
109
+
110
+ .lace-panel-field__description {
111
+ color: var(--lace-color-text-description);
112
+ font-size: var(--lace-font-size-sm);
113
+ }
114
+
115
+ .lace-panel-row-error {
116
+ margin-top: var(--lace-space-1);
117
+ color: var(--lace-color-text-danger);
118
+ font-size: var(--lace-font-size-xs);
119
+ }
120
+
121
+ .lace-panel-row-content {
122
+ /* Card parent uses flex column gap for inter-child spacing; no
123
+ * margin needed here. */
124
+ }
125
+
126
+ .lace-panel-row-sublabel {
127
+ margin-bottom: 6px;
128
+ font-size: var(--lace-font-size-sm);
129
+ opacity: 0.7;
130
+ }
131
+
132
+ /* Checkbox row used by panel rows that gate behavior on a single
133
+ * boolean (Interface > Inputs required toggle, Interface > Outputs
134
+ * expose toggle). Mirrors ModuleConfigPanel's depends-item shape so
135
+ * spacing is consistent across panels. */
136
+ .lace-panel-checkbox-row {
137
+ display: flex;
138
+ align-items: center;
139
+ gap: 8px;
140
+ cursor: pointer;
141
+ }
142
+
143
+ .lace-panel-checkbox-row__source {
144
+ font-family: var(--lace-font-family-mono);
145
+ }
package/package.json CHANGED
@@ -1,16 +1,47 @@
1
1
  {
2
2
  "name": "@lace-cloud/canvas",
3
- "version": "0.0.1-bootstrap.0",
4
- "description": "Bootstrap placeholder to claim the @lace-cloud/canvas name on npmjs.org. Not functional. Install @next or @latest for real releases.",
5
- "main": "index.js",
6
- "license": "BUSL-1.1",
3
+ "version": "0.6.3-next.25704378412",
4
+ "main": "./dist/index.cjs",
5
+ "types": "./dist/index.d.ts",
6
+ "dependencies": {
7
+ "@bufbuild/protobuf": "^2.12.0",
8
+ "@xyflow/react": "^12.10.1",
9
+ "react": "^18.3.1",
10
+ "react-dom": "^18.3.1",
11
+ "@lace-cloud/proto": "0.6.3-next.25704378412",
12
+ "@lace-cloud/ui": "0.6.3-next.25704378412"
13
+ },
14
+ "devDependencies": {
15
+ "@types/react": "^18.3.12",
16
+ "@types/react-dom": "^18.3.1",
17
+ "tsup": "^8.5.0",
18
+ "typescript": "^5.6.3"
19
+ },
20
+ "publishConfig": {
21
+ "registry": "https://registry.npmjs.org",
22
+ "access": "public"
23
+ },
24
+ "files": [
25
+ "dist",
26
+ "README.md"
27
+ ],
7
28
  "repository": {
8
29
  "type": "git",
9
30
  "url": "https://github.com/lace-cloud/lace.git",
10
31
  "directory": "packages/canvas"
11
32
  },
12
- "publishConfig": {
13
- "registry": "https://registry.npmjs.org",
14
- "access": "public"
33
+ "scripts": {
34
+ "build": "tsup",
35
+ "clean": "rm -rf dist",
36
+ "test": "vitest run"
37
+ },
38
+ "module": "./dist/index.mjs",
39
+ "exports": {
40
+ ".": {
41
+ "types": "./dist/index.d.ts",
42
+ "import": "./dist/index.mjs",
43
+ "require": "./dist/index.cjs"
44
+ },
45
+ "./package.json": "./package.json"
15
46
  }
16
- }
47
+ }
package/index.js DELETED
@@ -1 +0,0 @@
1
- module.exports = {};