@lace-cloud/canvas 0.0.1-bootstrap.0 → 0.6.4-next.25705814731

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,141 @@
1
+ /* ModuleConfigPanel-specific styles. Shared panel primitives live in
2
+ * panels-shared.css; this file captures the bits that don't generalise
3
+ * (output cards, wired editor row, title eyebrow). */
4
+
5
+ .lace-mcp__title {
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: var(--lace-space-1);
9
+ }
10
+
11
+ .lace-mcp__title-eyebrow {
12
+ font-size: var(--lace-font-size-md);
13
+ opacity: 0.7;
14
+ }
15
+
16
+ .lace-mcp__title-id {
17
+ margin: 0;
18
+ font-size: var(--lace-font-size-2xl);
19
+ font-weight: var(--lace-font-weight-semibold);
20
+ }
21
+
22
+ .lace-mcp__required-star {
23
+ margin-left: var(--lace-space-1);
24
+ color: var(--lace-color-text-danger);
25
+ }
26
+
27
+ .lace-mcp__wired-row {
28
+ display: flex;
29
+ align-items: center;
30
+ gap: var(--lace-space-2);
31
+ }
32
+
33
+ .lace-mcp__wired-input {
34
+ flex: 1 1 auto;
35
+ min-width: 0;
36
+ opacity: 0.95;
37
+ }
38
+
39
+ .lace-mcp__depends-hint {
40
+ margin-bottom: var(--lace-space-2);
41
+ color: var(--lace-color-text-muted);
42
+ font-size: var(--lace-font-size-sm);
43
+ }
44
+
45
+ .lace-mcp__depends-item {
46
+ display: flex;
47
+ align-items: flex-start;
48
+ gap: var(--lace-space-2);
49
+ margin-bottom: 6px;
50
+ color: var(--lace-color-text-label);
51
+ font-size: var(--lace-font-size-md);
52
+ cursor: pointer;
53
+ }
54
+
55
+ .lace-mcp__depends-checkbox {
56
+ flex-shrink: 0;
57
+ margin-top: 2px;
58
+ accent-color: var(--lace-btn-primary);
59
+ }
60
+
61
+ .lace-mcp__depends-label {
62
+ font-family: var(--lace-font-mono);
63
+ opacity: 0.9;
64
+ line-height: 1.4;
65
+ word-break: break-all;
66
+ }
67
+
68
+ .lace-mcp__output-card {
69
+ margin-bottom: 10px;
70
+ padding: var(--lace-space-2) var(--lace-space-3);
71
+ background: var(--lace-color-bg-input);
72
+ border: 1px solid var(--lace-color-border-default);
73
+ border-radius: 10px;
74
+ font-size: var(--lace-font-size-md);
75
+ opacity: 0.85;
76
+ }
77
+
78
+ .lace-mcp__output-header {
79
+ display: flex;
80
+ justify-content: space-between;
81
+ gap: 10px;
82
+ }
83
+
84
+ .lace-mcp__output-name {
85
+ font-size: var(--lace-font-size-md);
86
+ font-weight: var(--lace-font-weight-bold);
87
+ }
88
+
89
+ .lace-mcp__output-type {
90
+ font-family: var(--lace-font-mono);
91
+ font-size: var(--lace-font-size-sm);
92
+ opacity: 0.75;
93
+ }
94
+
95
+ .lace-mcp__output-description {
96
+ margin-top: 6px;
97
+ color: var(--lace-color-text-description);
98
+ font-size: var(--lace-font-size-sm);
99
+ }
100
+
101
+ .lace-mcp__output-sensitive {
102
+ margin-top: var(--lace-space-1);
103
+ color: var(--lace-color-amber-400);
104
+ font-size: var(--lace-font-size-xs);
105
+ opacity: 0.8;
106
+ }
107
+
108
+ .lace-mcp__error-title {
109
+ color: var(--lace-color-text-danger-soft);
110
+ font-size: var(--lace-font-size-md);
111
+ }
112
+
113
+ .lace-mcp__error-detail {
114
+ margin-top: var(--lace-space-1);
115
+ color: var(--lace-color-red-400);
116
+ font-size: var(--lace-font-size-md);
117
+ word-break: break-all;
118
+ }
119
+
120
+ .lace-mcp__select {
121
+ display: block;
122
+ width: 100%;
123
+ padding: 8px 10px;
124
+ background: var(--lace-input-bg);
125
+ border: 1px solid var(--lace-input-border);
126
+ border-radius: var(--lace-radius-md);
127
+ color: var(--lace-input-text);
128
+ font-family: inherit;
129
+ font-size: var(--lace-font-size-md);
130
+ transition: border-color var(--lace-duration-fast) var(--lace-easing-standard);
131
+ }
132
+
133
+ .lace-mcp__select:hover {
134
+ border-color: var(--lace-input-border-hover);
135
+ }
136
+
137
+ .lace-mcp__select:focus {
138
+ outline: none;
139
+ border-color: var(--lace-input-border-focus);
140
+ box-shadow: 0 0 0 2px var(--lace-color-green-alpha-20);
141
+ }
@@ -0,0 +1,134 @@
1
+ /* ModuleNode — canvas module/resource block. Geometry (NODE_WIDTH,
2
+ * HEADER_HEIGHT, ROW_HEIGHT, ICON_SIZE) lives in ModuleNode.tsx as
3
+ * constants because PinRow layout depends on them at runtime. Purely
4
+ * visual properties (colors, radii, transitions) live here. */
5
+
6
+ .lace-module-node {
7
+ position: relative;
8
+ background: var(--lace-color-bg-canvas);
9
+ border: 1px solid var(--lace-node-default-border);
10
+ border-radius: var(--lace-radius-sm);
11
+ box-shadow: var(--lace-shadow-md);
12
+ font-family: inherit;
13
+ }
14
+
15
+ .lace-module-node--error {
16
+ border-color: var(--lace-node-error-border);
17
+ box-shadow: 0 0 10px var(--lace-node-error-shadow-color);
18
+ }
19
+
20
+ .lace-module-node--new {
21
+ border-color: var(--lace-node-new-border);
22
+ box-shadow: 0 0 10px var(--lace-node-new-shadow-color);
23
+ }
24
+
25
+ .lace-module-node__header {
26
+ position: relative;
27
+ display: flex;
28
+ align-items: center;
29
+ gap: 6px;
30
+ padding: 0 var(--lace-space-2);
31
+ background: var(--lace-gunmetal);
32
+ border-top-left-radius: var(--lace-radius-sm);
33
+ border-top-right-radius: var(--lace-radius-sm);
34
+ border-bottom: 1px solid var(--lace-color-green-alpha-10);
35
+ overflow: hidden;
36
+ cursor: pointer;
37
+ }
38
+
39
+ .lace-module-node--collapsed .lace-module-node__header {
40
+ border-bottom: none;
41
+ }
42
+
43
+ .lace-module-node__collapse-btn {
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ width: 12px;
48
+ height: 12px;
49
+ padding: 0;
50
+ background: none;
51
+ border: none;
52
+ color: var(--lace-color-green-alpha-60);
53
+ cursor: pointer;
54
+ line-height: 1;
55
+ }
56
+
57
+ .lace-module-node__icon {
58
+ flex-shrink: 0;
59
+ border-radius: var(--lace-radius-sm);
60
+ object-fit: contain;
61
+ }
62
+
63
+ .lace-module-node__icon-fallback {
64
+ flex-shrink: 0;
65
+ }
66
+
67
+ .lace-module-node__rename-input {
68
+ flex: 1 1 auto;
69
+ min-width: 0;
70
+ padding: 1px var(--lace-space-1);
71
+ background: var(--lace-color-bg-canvas);
72
+ border: 1px solid var(--lace-color-accent-alpha-medium);
73
+ border-radius: var(--lace-radius-sm);
74
+ color: var(--lace-color-accent);
75
+ font-family: inherit;
76
+ font-size: var(--lace-font-size-sm);
77
+ }
78
+
79
+ .lace-module-node__label {
80
+ flex: 1 1 auto;
81
+ min-width: 0;
82
+ overflow: hidden;
83
+ white-space: nowrap;
84
+ text-overflow: ellipsis;
85
+ color: var(--lace-color-accent);
86
+ font-size: var(--lace-font-size-sm);
87
+ font-weight: var(--lace-font-weight-medium);
88
+ }
89
+
90
+ .lace-module-node__delete-btn {
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: center;
94
+ flex-shrink: 0;
95
+ width: 14px;
96
+ height: 14px;
97
+ padding: 0;
98
+ background: var(--lace-color-red-alpha-12);
99
+ border: 1px solid var(--lace-color-red-alpha-30);
100
+ border-radius: var(--lace-radius-pill);
101
+ color: var(--lace-color-text-danger);
102
+ cursor: pointer;
103
+ line-height: 1;
104
+ }
105
+
106
+ .lace-module-node__body {
107
+ position: relative;
108
+ }
109
+
110
+ .lace-module-node__hidden-count {
111
+ position: absolute;
112
+ display: flex;
113
+ align-items: center;
114
+ color: var(--lace-color-green-alpha-60);
115
+ font-size: 9px;
116
+ font-style: italic;
117
+ cursor: pointer;
118
+ }
119
+
120
+ .lace-module-node__pin-row-label {
121
+ max-width: 100%;
122
+ overflow: hidden;
123
+ white-space: nowrap;
124
+ text-overflow: ellipsis;
125
+ font-size: var(--lace-font-size-xs);
126
+ }
127
+
128
+ .lace-module-node__pin-row-label--error {
129
+ color: var(--lace-color-text-danger);
130
+ }
131
+
132
+ .lace-module-node__pin-row-label--default {
133
+ color: var(--lace-color-neutral-100-alpha-85);
134
+ }
@@ -0,0 +1,158 @@
1
+ /* ValidationErrorBanner — persistent top-right banner shown after a
2
+ * failed `terraform validate`. Paired with a modal dialog that lists
3
+ * every diagnostic. All colors/spacing flow through design tokens so
4
+ * Storybook and the webview render identically. */
5
+
6
+ .lace-error-banner {
7
+ position: absolute;
8
+ top: var(--lace-space-4);
9
+ left: var(--lace-space-4);
10
+ z-index: var(--lace-z-chrome);
11
+ display: inline-flex;
12
+ align-items: center;
13
+ gap: var(--lace-space-2);
14
+ padding: var(--lace-space-1) var(--lace-space-3);
15
+ background: var(--lace-toast-error-bg);
16
+ border: 1px solid var(--lace-toast-error-border);
17
+ border-radius: var(--lace-radius-md);
18
+ color: var(--lace-color-text-danger-soft);
19
+ font-size: var(--lace-font-size-md);
20
+ line-height: var(--lace-line-height-tight);
21
+ box-shadow: var(--lace-shadow-sm);
22
+ }
23
+
24
+ .lace-error-banner__icon {
25
+ flex-shrink: 0;
26
+ }
27
+
28
+ .lace-error-banner__message {
29
+ white-space: nowrap;
30
+ }
31
+
32
+ .lace-error-banner__view-details {
33
+ padding: 1px 7px;
34
+ background: var(--lace-color-red-alpha-12);
35
+ border: 1px solid var(--lace-color-red-alpha-30);
36
+ border-radius: var(--lace-radius-sm);
37
+ color: var(--lace-color-text-danger-soft);
38
+ font-size: var(--lace-font-size-sm);
39
+ cursor: pointer;
40
+ transition: background var(--lace-duration-fast) var(--lace-easing-standard);
41
+ }
42
+
43
+ .lace-error-banner__view-details:hover {
44
+ background: var(--lace-color-red-alpha-20);
45
+ }
46
+
47
+ .lace-error-banner__dismiss {
48
+ padding: 0 var(--lace-space-1);
49
+ background: none;
50
+ border: none;
51
+ color: var(--lace-color-text-muted);
52
+ font-size: var(--lace-font-size-xl);
53
+ line-height: 1;
54
+ cursor: pointer;
55
+ transition: color var(--lace-duration-fast) var(--lace-easing-standard);
56
+ }
57
+
58
+ .lace-error-banner__dismiss:hover {
59
+ color: var(--lace-color-text-primary);
60
+ }
61
+
62
+ /* ── Dialog ── */
63
+
64
+ .lace-error-dialog-backdrop {
65
+ position: fixed;
66
+ inset: 0;
67
+ z-index: var(--lace-z-overlay);
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ background: var(--lace-modal-backdrop);
72
+ }
73
+
74
+ .lace-error-dialog {
75
+ position: relative;
76
+ display: flex;
77
+ flex-direction: column;
78
+ width: 520px;
79
+ max-height: 70vh;
80
+ background: var(--lace-color-bg-context-menu);
81
+ border: 1px solid var(--lace-color-red-alpha-35);
82
+ border-radius: var(--lace-radius-lg);
83
+ box-shadow: var(--lace-shadow-xl);
84
+ }
85
+
86
+ .lace-error-dialog__header {
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: space-between;
90
+ padding: var(--lace-space-3) var(--lace-space-4);
91
+ border-bottom: 1px solid var(--lace-color-red-alpha-20);
92
+ }
93
+
94
+ .lace-error-dialog__title {
95
+ margin: 0;
96
+ color: var(--lace-color-text-danger-soft);
97
+ font-size: var(--lace-font-size-lg);
98
+ font-weight: var(--lace-font-weight-semibold);
99
+ }
100
+
101
+ .lace-error-dialog__close {
102
+ padding: 0;
103
+ background: none;
104
+ border: none;
105
+ color: var(--lace-color-text-muted);
106
+ font-size: var(--lace-font-size-2xl);
107
+ line-height: 1;
108
+ cursor: pointer;
109
+ }
110
+
111
+ .lace-error-dialog__list {
112
+ flex: 1 1 auto;
113
+ min-height: 0;
114
+ padding: var(--lace-space-3) var(--lace-space-4);
115
+ display: flex;
116
+ flex-direction: column;
117
+ gap: var(--lace-space-2);
118
+ overflow-y: auto;
119
+ }
120
+
121
+ .lace-error-dialog__item {
122
+ padding: var(--lace-space-2) var(--lace-space-3);
123
+ background: var(--lace-color-red-900);
124
+ border: 1px solid var(--lace-color-red-alpha-20);
125
+ border-radius: var(--lace-radius-md);
126
+ }
127
+
128
+ .lace-error-dialog__item-message {
129
+ margin-bottom: var(--lace-space-1);
130
+ color: var(--lace-color-text-danger-soft);
131
+ font-size: var(--lace-font-size-md);
132
+ }
133
+
134
+ .lace-error-dialog__file-link {
135
+ display: block;
136
+ margin-bottom: var(--lace-space-1);
137
+ padding: 0;
138
+ background: none;
139
+ border: none;
140
+ color: var(--lace-color-text-muted);
141
+ font-size: var(--lace-font-size-xs);
142
+ text-align: left;
143
+ text-decoration: underline;
144
+ text-decoration-color: currentColor;
145
+ text-decoration-thickness: 1px;
146
+ text-underline-offset: 2px;
147
+ cursor: pointer;
148
+ }
149
+
150
+ .lace-error-dialog__node-link {
151
+ padding: 2px var(--lace-space-2);
152
+ background: var(--lace-color-accent-alpha-subtle);
153
+ border: 1px solid var(--lace-color-accent-alpha-medium);
154
+ border-radius: var(--lace-radius-sm);
155
+ color: var(--lace-color-accent);
156
+ font-size: var(--lace-font-size-xs);
157
+ cursor: pointer;
158
+ }