@w6w/ui 0.2.56 → 0.2.58
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.
- package/CHANGELOG.md +17 -0
- package/dist/CallTargetForm.d.ts +10 -0
- package/dist/{CodeBlock-CymlfyeA.cjs → CodeBlock-BSX1pi6W.cjs} +2 -2
- package/dist/{CodeBlock-CymlfyeA.cjs.map → CodeBlock-BSX1pi6W.cjs.map} +1 -1
- package/dist/{CodeBlock-C-oIIYfC.js → CodeBlock-CPKXSNEs.js} +7 -3
- package/dist/{CodeBlock-C-oIIYfC.js.map → CodeBlock-CPKXSNEs.js.map} +1 -1
- package/dist/CodeEditor.d.ts +2 -0
- package/dist/JsonEditor.d.ts +1 -3
- package/dist/Markdown.d.ts +3 -1
- package/dist/StepBuilderModal.d.ts +11 -5
- package/dist/TriggerFillForm.d.ts +4 -3
- package/dist/TriggerSampleButton.d.ts +11 -0
- package/dist/WorkflowFlowEditor.d.ts +54 -0
- package/dist/YamlEditor.d.ts +1 -2
- package/dist/callable-fields.d.ts +4 -0
- package/dist/code.cjs +1 -1
- package/dist/code.mjs +1 -1
- package/dist/components/ConfirmModal.d.ts +7 -1
- package/dist/components/DataEntryList.d.ts +2 -0
- package/dist/components/ExpressionOptions.d.ts +2 -0
- package/dist/components/ResultViewer.d.ts +1 -2
- package/dist/condition-editor.d.ts +3 -1
- package/dist/connection-app-meta-CKTmUX08.cjs +24 -0
- package/dist/connection-app-meta-CKTmUX08.cjs.map +1 -0
- package/dist/{connection-app-meta-ZCPakGjD.js → connection-app-meta-D5hNbJB5.js} +7531 -6994
- package/dist/connection-app-meta-D5hNbJB5.js.map +1 -0
- package/dist/flow-history.d.ts +8 -0
- package/dist/flow.cjs +5 -4
- package/dist/flow.cjs.map +1 -1
- package/dist/flow.mjs +2216 -2103
- package/dist/flow.mjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +313 -305
- package/dist/index.mjs.map +1 -1
- package/dist/provider.d.ts +9 -0
- package/dist/state-shape.d.ts +13 -0
- package/dist/step-preview-state.d.ts +10 -1
- package/dist/types.d.ts +8 -0
- package/package.json +4 -1
- package/src/code.css +26 -1
- package/src/styles/_box-reset.scss +22 -0
- package/src/styles/_canvas.scss +1 -4
- package/src/styles/_chips.scss +0 -1
- package/src/styles/_code-editor.scss +16 -0
- package/src/styles/_copyable.scss +25 -1
- package/src/styles/_data-stores.scss +15 -5
- package/src/styles/_data-table.scss +6 -0
- package/src/styles/_data-vars.scss +21 -0
- package/src/styles/_execution-log.scss +3 -4
- package/src/styles/_fields.scss +57 -25
- package/src/styles/_flow.scss +11 -0
- package/src/styles/_fx.scss +14 -47
- package/src/styles/_host-guard.scss +100 -0
- package/src/styles/_step-builder.scss +4 -2
- package/src/styles/_step-config.scss +4 -5
- package/src/styles.css +226 -95
- package/src/styles.scss +2 -0
- package/dist/connection-app-meta-BEXlKBgV.cjs +0 -22
- package/dist/connection-app-meta-BEXlKBgV.cjs.map +0 -1
- package/dist/connection-app-meta-ZCPakGjD.js.map +0 -1
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
// Host guard: the library's own form elements own their LAYOUT against a host
|
|
2
|
+
// page's unscoped element rules (`label { margin-bottom }`, `input[type="text"] {
|
|
3
|
+
// width; margin-top }`, `input[type="checkbox"] { margin-right }`, `textarea {
|
|
4
|
+
// min-height }` — studio's sheet has all of them and is layered AFTER this one).
|
|
5
|
+
//
|
|
6
|
+
// Keyed on the `w6w-` class prefix, never on a component name, so a NEW component
|
|
7
|
+
// is covered with no per-component step. Two arms per kind:
|
|
8
|
+
// self the element itself carries a `w6w-` class token
|
|
9
|
+
// descendant a classless-by-us form element (no `w6w-` token) under a `w6w-` one
|
|
10
|
+
//
|
|
11
|
+
// WHICH properties: DC-2 — only LAYOUT properties a host element rule is seen to
|
|
12
|
+
// set (margin-*, width, min-height) in the `ui` vs `ui+studio` snapshots of
|
|
13
|
+
// `test/host-cascade/`. Paint (colour, background, border, padding, font, outline)
|
|
14
|
+
// is deliberately left to the host: a paint reset would visibly restyle a host.
|
|
15
|
+
// WHAT value: `revert` — the browser's own value, which is what a bare element
|
|
16
|
+
// renders in `ui` alone (a literal such as the UA checkbox `3px` is
|
|
17
|
+
// Chromium-specific).
|
|
18
|
+
//
|
|
19
|
+
// SPECIFICITY: every emitted selector is >= (0,2,1). A host `input[type="text"]`
|
|
20
|
+
// is (0,1,1) and loads later, so a guard at (0,1,1) would TIE and lose on source
|
|
21
|
+
// order. The subject keeps its type alternatives in `:where()` (zero weight) and
|
|
22
|
+
// the marker is REPEATED on purpose — each `:is([class^=…],[class*=…])` is
|
|
23
|
+
// (0,1,0), so `subject:is(M):is(M)` is (0,2,1). Do not "simplify" the repetition
|
|
24
|
+
// away. `@layer`, a `:where()` guard, `all:`/`unset` and raising ui-wide
|
|
25
|
+
// specificity were considered and rejected (they either lose to the host or
|
|
26
|
+
// restyle paint).
|
|
27
|
+
//
|
|
28
|
+
// A ui rule this guard out-ranks that wants a DIFFERENT value must be raised past
|
|
29
|
+
// (0,2,1) (or the guard narrowed) — never accepted as a `ui` delta.
|
|
30
|
+
//
|
|
31
|
+
// `scripts/check-guard.mjs` parses the literal begin/end comments below.
|
|
32
|
+
|
|
33
|
+
@use "sass:list";
|
|
34
|
+
@use "sass:map";
|
|
35
|
+
|
|
36
|
+
$marker: '[class^="w6w-"], [class*=" w6w-"]';
|
|
37
|
+
|
|
38
|
+
// NOTE the `:where()` around every `[type=…]`: it keeps the subject at (0,0,1), so the
|
|
39
|
+
// whole selector is exactly (0,2,1) and TIES (and, being earlier, loses to) a ui rule
|
|
40
|
+
// such as `.w6w-fx-inline > input[type="checkbox"] { margin: 0 }`. Spelling the type as
|
|
41
|
+
// a plain attribute makes the classless-descendant arm (0,3,1) and silently overrides
|
|
42
|
+
// those ui rules (measured: HC4/HC6 red on 7 pairs).
|
|
43
|
+
$text-input: 'input:where(:not([type]), [type="text"], [type="password"], [type="number"], [type="email"], [type="search"], [type="url"], [type="tel"], [type="date"], [type="datetime-local"], [type="time"])';
|
|
44
|
+
|
|
45
|
+
// kind -> (subject, props: host-settable property -> value)
|
|
46
|
+
$host-guard-map: (
|
|
47
|
+
"label": (
|
|
48
|
+
"subject": "label",
|
|
49
|
+
"props": (
|
|
50
|
+
"margin-bottom": revert,
|
|
51
|
+
),
|
|
52
|
+
),
|
|
53
|
+
"text-input": (
|
|
54
|
+
"subject": $text-input,
|
|
55
|
+
"props": (
|
|
56
|
+
"width": revert,
|
|
57
|
+
"margin-top": revert,
|
|
58
|
+
),
|
|
59
|
+
),
|
|
60
|
+
"textarea": (
|
|
61
|
+
"subject": "textarea",
|
|
62
|
+
"props": (
|
|
63
|
+
"width": revert,
|
|
64
|
+
"margin-top": revert,
|
|
65
|
+
"min-height": revert,
|
|
66
|
+
),
|
|
67
|
+
),
|
|
68
|
+
"checkbox": (
|
|
69
|
+
"subject": 'input:where([type="checkbox"])',
|
|
70
|
+
"props": (
|
|
71
|
+
"margin-right": revert,
|
|
72
|
+
),
|
|
73
|
+
),
|
|
74
|
+
// `select` and `option`: studio's rules for them set paint only (background,
|
|
75
|
+
// border, padding, colour, font) — no layout property to guard, so no props.
|
|
76
|
+
"select": (
|
|
77
|
+
"subject": "select",
|
|
78
|
+
"props": (),
|
|
79
|
+
),
|
|
80
|
+
"option": (
|
|
81
|
+
"subject": "option",
|
|
82
|
+
"props": (),
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
/* w6w-host-guard:begin */
|
|
87
|
+
@each $kind, $spec in $host-guard-map {
|
|
88
|
+
$subject: map.get($spec, "subject");
|
|
89
|
+
$props: map.get($spec, "props");
|
|
90
|
+
@if list.length($props) > 0 {
|
|
91
|
+
/* guard: #{$kind} */
|
|
92
|
+
#{$subject}:is(#{$marker}):is(#{$marker}),
|
|
93
|
+
:is(#{$marker}) #{$subject}:not(:is(#{$marker})) {
|
|
94
|
+
@each $prop, $value in $props {
|
|
95
|
+
#{$prop}: $value;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/* w6w-host-guard:end */
|
|
@@ -98,7 +98,9 @@
|
|
|
98
98
|
min-height: 0;
|
|
99
99
|
padding-right: var(--w6w-sp-1);
|
|
100
100
|
}
|
|
101
|
-
.
|
|
101
|
+
/* input.x.x is (0,2,1): the host guard's text-input arm is (0,2,1) with
|
|
102
|
+
`width: revert`, so a bare (0,1,0) class would lose `width: 100%` outside a flex column. */
|
|
103
|
+
input.w6w-stepbuilder-search.w6w-stepbuilder-search {
|
|
102
104
|
background: var(--w6w-panel-2);
|
|
103
105
|
border: 1px solid var(--w6w-border);
|
|
104
106
|
border-radius: 8px;
|
|
@@ -108,7 +110,7 @@
|
|
|
108
110
|
font-family: inherit;
|
|
109
111
|
width: 100%;
|
|
110
112
|
}
|
|
111
|
-
.w6w-stepbuilder-search:focus {
|
|
113
|
+
input.w6w-stepbuilder-search.w6w-stepbuilder-search:focus {
|
|
112
114
|
outline: none;
|
|
113
115
|
border-color: var(--w6w-accent);
|
|
114
116
|
}
|
|
@@ -94,11 +94,10 @@
|
|
|
94
94
|
.w6w-flyout {
|
|
95
95
|
position: fixed;
|
|
96
96
|
z-index: 40;
|
|
97
|
-
/*
|
|
98
|
-
the inline `width` set by `Flyout` is meant to match the
|
|
99
|
-
EXACTLY (2026-08-30: "should extend to the end of the prod button
|
|
100
|
-
div"), so padding/border must come out of that width, not add to it. */
|
|
101
|
-
box-sizing: border-box;
|
|
97
|
+
/* Border-box (from `_box-reset.scss`, which covers every `w6w-` element) is
|
|
98
|
+
load-bearing here: the inline `width` set by `Flyout` is meant to match the
|
|
99
|
+
anchor row EXACTLY (2026-08-30: "should extend to the end of the prod button
|
|
100
|
+
and div"), so padding/border must come out of that width, not add to it. */
|
|
102
101
|
background: var(--w6w-panel);
|
|
103
102
|
border: 1px solid var(--w6w-border);
|
|
104
103
|
border-radius: 8px;
|
package/src/styles.css
CHANGED
|
@@ -939,6 +939,44 @@ svg.react-flow__connectionline {
|
|
|
939
939
|
* exist purely so a consumer stops inventing its own breakpoint values (seven
|
|
940
940
|
* uncoordinated ones exist across the four repos today).
|
|
941
941
|
*/
|
|
942
|
+
/* w6w-host-guard:begin */
|
|
943
|
+
/* guard: label */
|
|
944
|
+
label:is([class^=w6w-], [class*=" w6w-"]):is([class^=w6w-], [class*=" w6w-"]),
|
|
945
|
+
:is([class^=w6w-], [class*=" w6w-"]) label:not(:is([class^=w6w-], [class*=" w6w-"])) {
|
|
946
|
+
margin-bottom: revert;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
/* guard: text-input */
|
|
950
|
+
input:where(:not([type]), [type=text], [type=password], [type=number], [type=email], [type=search], [type=url], [type=tel], [type=date], [type=datetime-local], [type=time]):is([class^=w6w-], [class*=" w6w-"]):is([class^=w6w-], [class*=" w6w-"]),
|
|
951
|
+
:is([class^=w6w-], [class*=" w6w-"]) input:where(:not([type]), [type=text], [type=password], [type=number], [type=email], [type=search], [type=url], [type=tel], [type=date], [type=datetime-local], [type=time]):not(:is([class^=w6w-], [class*=" w6w-"])) {
|
|
952
|
+
width: revert;
|
|
953
|
+
margin-top: revert;
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
/* guard: textarea */
|
|
957
|
+
textarea:is([class^=w6w-], [class*=" w6w-"]):is([class^=w6w-], [class*=" w6w-"]),
|
|
958
|
+
:is([class^=w6w-], [class*=" w6w-"]) textarea:not(:is([class^=w6w-], [class*=" w6w-"])) {
|
|
959
|
+
width: revert;
|
|
960
|
+
margin-top: revert;
|
|
961
|
+
min-height: revert;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
/* guard: checkbox */
|
|
965
|
+
input:where([type=checkbox]):is([class^=w6w-], [class*=" w6w-"]):is([class^=w6w-], [class*=" w6w-"]),
|
|
966
|
+
:is([class^=w6w-], [class*=" w6w-"]) input:where([type=checkbox]):not(:is([class^=w6w-], [class*=" w6w-"])) {
|
|
967
|
+
margin-right: revert;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/* w6w-host-guard:end */
|
|
971
|
+
/* w6w-box-reset:begin */
|
|
972
|
+
[class^=w6w-],
|
|
973
|
+
[class*=" w6w-"],
|
|
974
|
+
[class^=w6w-] *,
|
|
975
|
+
[class*=" w6w-"] * {
|
|
976
|
+
box-sizing: border-box;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/* w6w-box-reset:end */
|
|
942
980
|
/* Layout helpers */
|
|
943
981
|
/* A vertical column whose direct children are cards/panels. ONE gap, from the
|
|
944
982
|
shared spacing scale — never a per-screen number and never a second gap: do
|
|
@@ -1054,35 +1092,27 @@ select optgroup {
|
|
|
1054
1092
|
}
|
|
1055
1093
|
|
|
1056
1094
|
/* An object-item array row's boolean cell: `<label><checkbox><span>`. It is a
|
|
1057
|
-
`<label>`, so
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
undeclared. `.w6w-array-cells` is a flex row at the default `align-items:
|
|
1062
|
-
stretch`, so a bottom margin does not translate this cell, it SHORTENS its
|
|
1063
|
-
stretched box — and because this block centres its own contents, the checkbox
|
|
1064
|
-
and its caption then ride upward off the row's centre line. Measured before
|
|
1065
|
-
this declaration existed, in [ui+studio]: checkbox cy 792 against the sibling
|
|
1066
|
-
text cell's 799 — 7.0px out, while a ui-only render showed 0.0px. */
|
|
1095
|
+
`<label>`, so a host page's unscoped `label { margin-bottom }` would shorten
|
|
1096
|
+
its stretched box inside the `align-items: stretch` `.w6w-array-cells` row and
|
|
1097
|
+
ride the checkbox off the row's centre line; `_host-guard.scss` reverts that
|
|
1098
|
+
margin for every `w6w-` label, so this block declares none. */
|
|
1067
1099
|
.w6w-array-check {
|
|
1068
1100
|
display: inline-flex;
|
|
1069
1101
|
align-items: center;
|
|
1070
1102
|
gap: var(--w6w-sp-1-5);
|
|
1071
1103
|
flex: 0 0 auto;
|
|
1072
|
-
margin: 0;
|
|
1073
1104
|
font-size: 13px;
|
|
1074
1105
|
color: var(--w6w-text);
|
|
1075
1106
|
white-space: nowrap;
|
|
1076
1107
|
cursor: pointer;
|
|
1077
1108
|
}
|
|
1078
1109
|
|
|
1079
|
-
/*
|
|
1080
|
-
|
|
1081
|
-
(
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
affected. */
|
|
1110
|
+
/* The checkbox's own `margin: 0` (a library choice: the UA's 3px/4px would
|
|
1111
|
+
misalign it). `> input[type="checkbox"]` is (0,2,1): it TIES the guard's checkbox arm
|
|
1112
|
+
(0,2,1, `margin-right: revert`) and wins only by loading later — do not
|
|
1113
|
+
simplify it to `.w6w-array-check input` (0,1,1), which the guard would
|
|
1114
|
+
silently out-rank. A host `input[type="checkbox"] { margin-right }` is only
|
|
1115
|
+
(0,1,1). */
|
|
1086
1116
|
.w6w-array-check > input[type=checkbox] {
|
|
1087
1117
|
margin: 0;
|
|
1088
1118
|
}
|
|
@@ -1090,12 +1120,6 @@ select optgroup {
|
|
|
1090
1120
|
.w6w-field .w6w-array-input {
|
|
1091
1121
|
flex: 1;
|
|
1092
1122
|
min-width: 0;
|
|
1093
|
-
/* Load-bearing, same class as `.w6w-array-check` above: a host
|
|
1094
|
-
`input[type="text"] { margin-top: 4px }` otherwise lands here and drops this
|
|
1095
|
-
cell 2px below its own row's checkbox cell. Measured in [ui+studio]:
|
|
1096
|
-
checkbox cy 797 against this input's 799. This selector is (0,2,0) and beats
|
|
1097
|
-
the host's (0,1,1). */
|
|
1098
|
-
margin: 0;
|
|
1099
1123
|
background: var(--w6w-panel-2);
|
|
1100
1124
|
border: 1px solid var(--w6w-border);
|
|
1101
1125
|
border-radius: 8px;
|
|
@@ -1105,6 +1129,15 @@ select optgroup {
|
|
|
1105
1129
|
font-family: inherit;
|
|
1106
1130
|
}
|
|
1107
1131
|
|
|
1132
|
+
/* A JSON cell: the one-line preview takes the cell, the open-editor button sits after it. */
|
|
1133
|
+
.w6w-array-json {
|
|
1134
|
+
display: flex;
|
|
1135
|
+
align-items: center;
|
|
1136
|
+
gap: var(--w6w-sp-1);
|
|
1137
|
+
flex: 1;
|
|
1138
|
+
min-width: 0;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1108
1141
|
.w6w-field .w6w-array-input:focus {
|
|
1109
1142
|
outline: none;
|
|
1110
1143
|
border-color: var(--w6w-accent);
|
|
@@ -1135,6 +1168,50 @@ select optgroup {
|
|
|
1135
1168
|
margin-top: var(--w6w-sp-0-5);
|
|
1136
1169
|
}
|
|
1137
1170
|
|
|
1171
|
+
/* Column headers over an object-item array. Each header cell takes the same
|
|
1172
|
+
flex as the input below it (`.w6w-field .w6w-array-input` → `flex: 1`), and
|
|
1173
|
+
checkbox / × columns are invisible copies of the real cells, so headers line
|
|
1174
|
+
up with their columns without a fixed grid. */
|
|
1175
|
+
.w6w-array-head {
|
|
1176
|
+
display: flex;
|
|
1177
|
+
align-items: center;
|
|
1178
|
+
gap: var(--w6w-sp-1-5);
|
|
1179
|
+
width: 100%;
|
|
1180
|
+
margin-bottom: calc(-1 * var(--w6w-sp-1));
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
.w6w-array-head-cells {
|
|
1184
|
+
display: flex;
|
|
1185
|
+
flex-wrap: wrap;
|
|
1186
|
+
gap: var(--w6w-sp-1-5);
|
|
1187
|
+
flex: 1;
|
|
1188
|
+
min-width: 0;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
/* Stands in for the checkbox (13px in every engine's default form controls). */
|
|
1192
|
+
.w6w-array-head-box {
|
|
1193
|
+
display: inline-block;
|
|
1194
|
+
width: 13px;
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
.w6w-array-head-cell {
|
|
1198
|
+
flex: 1;
|
|
1199
|
+
min-width: 0;
|
|
1200
|
+
overflow: hidden;
|
|
1201
|
+
text-overflow: ellipsis;
|
|
1202
|
+
white-space: nowrap;
|
|
1203
|
+
font-size: var(--w6w-fs-xs);
|
|
1204
|
+
font-weight: 500;
|
|
1205
|
+
color: var(--w6w-muted);
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
.w6w-array-head-ghost {
|
|
1209
|
+
visibility: hidden;
|
|
1210
|
+
height: 0;
|
|
1211
|
+
border-top-width: 0;
|
|
1212
|
+
border-bottom-width: 0;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1138
1215
|
/* Combobox (`components/Combobox.tsx`): its <input> sits inside the component's
|
|
1139
1216
|
own positioned root, so it is not a direct flex child of `.w6w-field` and would
|
|
1140
1217
|
keep its intrinsic width. The root and the input fill the field instead. */
|
|
@@ -1144,7 +1221,6 @@ select optgroup {
|
|
|
1144
1221
|
|
|
1145
1222
|
.w6w-combobox > input[type=text] {
|
|
1146
1223
|
width: 100%;
|
|
1147
|
-
box-sizing: border-box;
|
|
1148
1224
|
}
|
|
1149
1225
|
|
|
1150
1226
|
/* Material-style multi-select: chips live INSIDE a single input-like box,
|
|
@@ -1918,46 +1994,20 @@ select optgroup {
|
|
|
1918
1994
|
.w6w-fx-wrap input[type=password],
|
|
1919
1995
|
.w6w-fx-wrap input[type=number],
|
|
1920
1996
|
.w6w-fx-wrap select,
|
|
1921
|
-
.w6w-fx-wrap textarea
|
|
1997
|
+
.w6w-fx-wrap textarea,
|
|
1998
|
+
.w6w-fx-wrap.w6w-fx-wrap textarea {
|
|
1922
1999
|
border: none;
|
|
1923
2000
|
background: transparent;
|
|
1924
2001
|
border-radius: 0;
|
|
1925
2002
|
padding: var(--w6w-sp-1) var(--w6w-sp-0-5);
|
|
1926
2003
|
outline: none;
|
|
1927
|
-
/*
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
margin — ALIGNMENT. A host `margin-top: 4px` in an `align-items:
|
|
1936
|
-
center` row drops the control 2px below the ƒx it shares the
|
|
1937
|
-
row with (string, number and the bare vars cell; select and
|
|
1938
|
-
multiselect escaped only because the host rule does not list
|
|
1939
|
-
them). Rendered: control cy 67 vs ƒx cy 65. On the textarea
|
|
1940
|
-
row — `align-items: flex-start` — the same 4px showed up as
|
|
1941
|
-
the ƒx sitting 4px off the control's first line. `margin: 0`
|
|
1942
|
-
is the whole of that fix.
|
|
1943
|
-
|
|
1944
|
-
min-height — SIZE, and nothing else. Do not re-justify this one as
|
|
1945
|
-
alignment: the counterfactual was rendered (this `margin: 0`
|
|
1946
|
-
kept, `min-height: 0` removed) and the row measures a 0.0px
|
|
1947
|
-
top delta with the host's 80px floor fully in effect. What it
|
|
1948
|
-
fixes is that a host `textarea { min-height: 80px }`, written
|
|
1949
|
-
for that host's own bare textareas, was sizing the INSIDE of
|
|
1950
|
-
a box it cannot see — 80px/94px against the 62px/72px the
|
|
1951
|
-
same markup renders elsewhere, i.e. one of five control types
|
|
1952
|
-
29% taller than the library drew it. The box is the library's
|
|
1953
|
-
to size; how many lines it holds is `rows` on the control.
|
|
1954
|
-
If a taller body field is ever wanted, it belongs HERE, not
|
|
1955
|
-
in a host element selector.
|
|
1956
|
-
|
|
1957
|
-
Declared, not fought for: this stays at the block's existing specificity and
|
|
1958
|
-
uses no `!important`. A component that is only aligned while the host
|
|
1959
|
-
cooperates is broken. */
|
|
1960
|
-
margin: 0;
|
|
2004
|
+
/* The control is inside a box this library draws, so it carries no margin or
|
|
2005
|
+
host floor of its own. A host `input[type="text"], textarea { margin-top;
|
|
2006
|
+
width; min-height: 80px }` (studio's does) is reverted by `_host-guard.scss`
|
|
2007
|
+
for every `w6w-` form element, so this block declares no margin. `min-height:
|
|
2008
|
+
0` stays: it is the library's own value for a control inside a flex row (the
|
|
2009
|
+
UA's `auto` is a different computed value on inputs/selects), not only a
|
|
2010
|
+
counter to the host's textarea floor. */
|
|
1961
2011
|
min-height: 0;
|
|
1962
2012
|
}
|
|
1963
2013
|
|
|
@@ -1990,19 +2040,10 @@ select optgroup {
|
|
|
1990
2040
|
}
|
|
1991
2041
|
|
|
1992
2042
|
/* The label reads as the control's own text, next to it (mirrors
|
|
1993
|
-
`.w6w-array-check` above, the existing inline-checkbox idiom).
|
|
1994
|
-
`margin
|
|
1995
|
-
|
|
1996
|
-
`studio/src/styles.css:499`), and since it is layered AFTER this file any
|
|
1997
|
-
property this block leaves undeclared is the host's. A bottom margin inside an
|
|
1998
|
-
`align-items: center` row lifts the text off the row's centre line — measured
|
|
1999
|
-
5px above the checkbox and the ƒx before this declaration existed. Every other
|
|
2000
|
-
element of the row is defended the same way: the checkbox's `margin: 0` above
|
|
2001
|
-
out-specifies a host `input[type="checkbox"] { margin-right: … }` (0,2,1 vs
|
|
2002
|
-
0,1,1), and the ƒx's chrome is pinned by `.w6w-fx-inline .w6w-expr-fx` below.
|
|
2003
|
-
A component that only lines up when the host sheet cooperates is broken. */
|
|
2043
|
+
`.w6w-array-check` above, the existing inline-checkbox idiom). Its host
|
|
2044
|
+
`label { margin-bottom }` is reverted by `_host-guard.scss`, and the ƒx's chrome
|
|
2045
|
+
is pinned by `.w6w-fx-inline .w6w-expr-fx` below. */
|
|
2004
2046
|
.w6w-fx-inline-label {
|
|
2005
|
-
margin: 0;
|
|
2006
2047
|
color: var(--w6w-text);
|
|
2007
2048
|
font-size: 13px;
|
|
2008
2049
|
cursor: pointer;
|
|
@@ -2120,7 +2161,8 @@ select optgroup {
|
|
|
2120
2161
|
.w6w-copyable input[type=password],
|
|
2121
2162
|
.w6w-copyable input[type=number],
|
|
2122
2163
|
.w6w-copyable select,
|
|
2123
|
-
.w6w-copyable textarea
|
|
2164
|
+
.w6w-copyable textarea,
|
|
2165
|
+
.w6w-copyable.w6w-copyable textarea {
|
|
2124
2166
|
border: none;
|
|
2125
2167
|
background: transparent;
|
|
2126
2168
|
border-radius: 0;
|
|
@@ -2250,6 +2292,30 @@ select optgroup {
|
|
|
2250
2292
|
opacity: 1;
|
|
2251
2293
|
}
|
|
2252
2294
|
}
|
|
2295
|
+
/* Keep copy discoverable on results and rendered documents. */
|
|
2296
|
+
.w6w-copyable--overlay,
|
|
2297
|
+
.w6w-copyable--document {
|
|
2298
|
+
position: relative;
|
|
2299
|
+
align-items: flex-start;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
.w6w-copyable--overlay > .w6w-copyable-btn,
|
|
2303
|
+
.w6w-copyable--document > .w6w-copyable-btn {
|
|
2304
|
+
position: absolute;
|
|
2305
|
+
top: var(--w6w-sp-1);
|
|
2306
|
+
right: var(--w6w-sp-1);
|
|
2307
|
+
background: var(--w6w-panel);
|
|
2308
|
+
border-color: var(--w6w-border);
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
.w6w-copyable--document {
|
|
2312
|
+
display: block;
|
|
2313
|
+
background: transparent;
|
|
2314
|
+
border: none;
|
|
2315
|
+
padding: 0;
|
|
2316
|
+
padding-right: var(--w6w-sp-10);
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2253
2319
|
/* The raw {{ }} input stands alone, so it keeps an input box of its own. */
|
|
2254
2320
|
.w6w-expr-raw {
|
|
2255
2321
|
width: 100%;
|
|
@@ -2328,7 +2394,6 @@ select optgroup {
|
|
|
2328
2394
|
align-items: center;
|
|
2329
2395
|
gap: var(--w6w-sp-1);
|
|
2330
2396
|
vertical-align: baseline;
|
|
2331
|
-
box-sizing: border-box;
|
|
2332
2397
|
/* Never exceed the field's content box; the label truncates before the chip
|
|
2333
2398
|
can overrun the adjacent ƒx button. */
|
|
2334
2399
|
max-width: 100%;
|
|
@@ -2569,6 +2634,17 @@ select optgroup {
|
|
|
2569
2634
|
min-width: 0;
|
|
2570
2635
|
}
|
|
2571
2636
|
|
|
2637
|
+
/* Column headers: same grid as the rows, so each label sits over its column. */
|
|
2638
|
+
.w6w-datavar-head {
|
|
2639
|
+
display: grid;
|
|
2640
|
+
grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr) auto;
|
|
2641
|
+
gap: var(--w6w-sp-1-5);
|
|
2642
|
+
align-items: end;
|
|
2643
|
+
font-size: var(--w6w-fs-xs);
|
|
2644
|
+
font-weight: 500;
|
|
2645
|
+
color: var(--w6w-muted);
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2572
2648
|
.w6w-datavar-row input,
|
|
2573
2649
|
.w6w-datavar-row select {
|
|
2574
2650
|
background: var(--w6w-panel-2);
|
|
@@ -2615,6 +2691,18 @@ select optgroup {
|
|
|
2615
2691
|
color: var(--w6w-danger);
|
|
2616
2692
|
}
|
|
2617
2693
|
|
|
2694
|
+
/* A JSON value is a one-line preview; its full content lives in the expanded editor. */
|
|
2695
|
+
.w6w-datavar-row > .w6w-fx-wrap {
|
|
2696
|
+
min-width: 0;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2699
|
+
.w6w-datavar-row .w6w-datavar-json-preview {
|
|
2700
|
+
overflow: hidden;
|
|
2701
|
+
text-overflow: ellipsis;
|
|
2702
|
+
white-space: nowrap;
|
|
2703
|
+
cursor: pointer;
|
|
2704
|
+
}
|
|
2705
|
+
|
|
2618
2706
|
/* Buttons */
|
|
2619
2707
|
.w6w-btn {
|
|
2620
2708
|
background: var(--w6w-accent);
|
|
@@ -3150,7 +3238,9 @@ dialog.w6w-modal.w6w-modal-fullscreen .w6w-modal-header {
|
|
|
3150
3238
|
padding-right: var(--w6w-sp-1);
|
|
3151
3239
|
}
|
|
3152
3240
|
|
|
3153
|
-
.
|
|
3241
|
+
/* input.x.x is (0,2,1): the host guard's text-input arm is (0,2,1) with
|
|
3242
|
+
`width: revert`, so a bare (0,1,0) class would lose `width: 100%` outside a flex column. */
|
|
3243
|
+
input.w6w-stepbuilder-search.w6w-stepbuilder-search {
|
|
3154
3244
|
background: var(--w6w-panel-2);
|
|
3155
3245
|
border: 1px solid var(--w6w-border);
|
|
3156
3246
|
border-radius: 8px;
|
|
@@ -3161,7 +3251,7 @@ dialog.w6w-modal.w6w-modal-fullscreen .w6w-modal-header {
|
|
|
3161
3251
|
width: 100%;
|
|
3162
3252
|
}
|
|
3163
3253
|
|
|
3164
|
-
.w6w-stepbuilder-search:focus {
|
|
3254
|
+
input.w6w-stepbuilder-search.w6w-stepbuilder-search:focus {
|
|
3165
3255
|
outline: none;
|
|
3166
3256
|
border-color: var(--w6w-accent);
|
|
3167
3257
|
}
|
|
@@ -3742,11 +3832,10 @@ dialog.w6w-modal.w6w-modal-fullscreen .w6w-modal-header {
|
|
|
3742
3832
|
.w6w-flyout {
|
|
3743
3833
|
position: fixed;
|
|
3744
3834
|
z-index: 40;
|
|
3745
|
-
/*
|
|
3746
|
-
the inline `width` set by `Flyout` is meant to match the
|
|
3747
|
-
EXACTLY (2026-08-30: "should extend to the end of the prod button
|
|
3748
|
-
div"), so padding/border must come out of that width, not add to it. */
|
|
3749
|
-
box-sizing: border-box;
|
|
3835
|
+
/* Border-box (from `_box-reset.scss`, which covers every `w6w-` element) is
|
|
3836
|
+
load-bearing here: the inline `width` set by `Flyout` is meant to match the
|
|
3837
|
+
anchor row EXACTLY (2026-08-30: "should extend to the end of the prod button
|
|
3838
|
+
and div"), so padding/border must come out of that width, not add to it. */
|
|
3750
3839
|
background: var(--w6w-panel);
|
|
3751
3840
|
border: 1px solid var(--w6w-border);
|
|
3752
3841
|
border-radius: 8px;
|
|
@@ -4229,6 +4318,15 @@ dialog.w6w-modal.w6w-modal-fullscreen .w6w-modal-header {
|
|
|
4229
4318
|
color: var(--w6w-muted);
|
|
4230
4319
|
}
|
|
4231
4320
|
|
|
4321
|
+
.w6w-flow .w6w-if-true-label {
|
|
4322
|
+
position: absolute;
|
|
4323
|
+
left: calc(100% + 6px);
|
|
4324
|
+
bottom: calc(50% + 4px);
|
|
4325
|
+
white-space: nowrap;
|
|
4326
|
+
pointer-events: none;
|
|
4327
|
+
color: var(--w6w-muted);
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4232
4330
|
/* "Write to state" (step settings): the `validateStateConfig` messages for the current config. */
|
|
4233
4331
|
.w6w-state-write-issues {
|
|
4234
4332
|
color: var(--w6w-danger);
|
|
@@ -4932,6 +5030,24 @@ dialog.w6w-modal.w6w-modal-fullscreen .w6w-modal-header {
|
|
|
4932
5030
|
min-height: 100%;
|
|
4933
5031
|
}
|
|
4934
5032
|
|
|
5033
|
+
/* Pin copy outside the scroll area for all editor languages. */
|
|
5034
|
+
:where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor) {
|
|
5035
|
+
position: relative;
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
:where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor) > .w6w-copyable-btn {
|
|
5039
|
+
position: absolute;
|
|
5040
|
+
top: var(--w6w-sp-1);
|
|
5041
|
+
right: var(--w6w-sp-1);
|
|
5042
|
+
background: var(--w6w-panel);
|
|
5043
|
+
border-color: var(--w6w-border);
|
|
5044
|
+
z-index: 1;
|
|
5045
|
+
}
|
|
5046
|
+
|
|
5047
|
+
:where(.w6w-json-editor, .w6w-code-editor, .w6w-yaml-editor):has(> .w6w-copyable-btn) .cm-content {
|
|
5048
|
+
padding-right: var(--w6w-sp-10);
|
|
5049
|
+
}
|
|
5050
|
+
|
|
4935
5051
|
.w6w-icon-button {
|
|
4936
5052
|
display: inline-flex;
|
|
4937
5053
|
align-items: center;
|
|
@@ -5212,11 +5328,10 @@ dialog.w6w-modal.w6w-modal-fullscreen .w6w-modal-header {
|
|
|
5212
5328
|
width: 100%;
|
|
5213
5329
|
}
|
|
5214
5330
|
|
|
5215
|
-
/* `width: 100%` plus padding and a border overflows the parent under
|
|
5216
|
-
|
|
5217
|
-
|
|
5331
|
+
/* `width: 100%` plus padding and a border overflows the parent under content-box
|
|
5332
|
+
sizing; `_box-reset.scss` makes every `w6w-` element border-box, so it needs no
|
|
5333
|
+
declaration of its own. */
|
|
5218
5334
|
.w6w-execution-log-empty {
|
|
5219
|
-
box-sizing: border-box;
|
|
5220
5335
|
width: 100%;
|
|
5221
5336
|
padding: var(--w6w-sp-4);
|
|
5222
5337
|
border: 1px dashed var(--w6w-border);
|
|
@@ -6463,6 +6578,13 @@ button.w6w-rel-open:focus-visible strong {
|
|
|
6463
6578
|
border-right: 0;
|
|
6464
6579
|
}
|
|
6465
6580
|
|
|
6581
|
+
/* Row separators only (`className="w6w-data-table-rows"`): a list whose second column is just a
|
|
6582
|
+
row's controls (Variables, Secrets, Constants) reads as one item per row, not a grid. */
|
|
6583
|
+
.w6w-data-table.w6w-data-table-rows th,
|
|
6584
|
+
.w6w-data-table.w6w-data-table-rows td {
|
|
6585
|
+
border-right: 0;
|
|
6586
|
+
}
|
|
6587
|
+
|
|
6466
6588
|
.w6w-data-table tbody tr:last-child > td {
|
|
6467
6589
|
border-bottom: 0;
|
|
6468
6590
|
}
|
|
@@ -6723,23 +6845,35 @@ button.w6w-rel-open:focus-visible strong {
|
|
|
6723
6845
|
gap: var(--w6w-sp-2);
|
|
6724
6846
|
}
|
|
6725
6847
|
|
|
6848
|
+
/* A grid, not a wrapping flex row, so the header row's labels sit over their
|
|
6849
|
+
columns: name | type | required | default | remove. */
|
|
6726
6850
|
.w6w-data-columns-row {
|
|
6727
|
-
display:
|
|
6728
|
-
|
|
6851
|
+
display: grid;
|
|
6852
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 7rem) auto minmax(0, 1fr) auto;
|
|
6729
6853
|
align-items: center;
|
|
6730
6854
|
gap: var(--w6w-sp-2);
|
|
6731
6855
|
}
|
|
6732
6856
|
|
|
6857
|
+
.w6w-data-columns-row > * {
|
|
6858
|
+
min-width: 0;
|
|
6859
|
+
}
|
|
6860
|
+
|
|
6861
|
+
.w6w-data-columns-colhead {
|
|
6862
|
+
font-size: var(--w6w-fs-xs);
|
|
6863
|
+
font-weight: 500;
|
|
6864
|
+
color: var(--w6w-muted);
|
|
6865
|
+
}
|
|
6866
|
+
|
|
6867
|
+
.w6w-data-columns-error {
|
|
6868
|
+
grid-column: 1/-1;
|
|
6869
|
+
}
|
|
6870
|
+
|
|
6733
6871
|
.w6w-data-columns-required {
|
|
6734
6872
|
display: flex;
|
|
6735
6873
|
align-items: center;
|
|
6736
6874
|
gap: var(--w6w-sp-1);
|
|
6737
6875
|
}
|
|
6738
6876
|
|
|
6739
|
-
.w6w-data-columns-error {
|
|
6740
|
-
flex-basis: 100%;
|
|
6741
|
-
}
|
|
6742
|
-
|
|
6743
6877
|
.w6w-data-entries-toolbar {
|
|
6744
6878
|
display: flex;
|
|
6745
6879
|
align-items: center;
|
|
@@ -6885,7 +7019,6 @@ button.w6w-rel-open:focus-visible strong {
|
|
|
6885
7019
|
.w6w-canvas-section,
|
|
6886
7020
|
.w6w-canvas-note {
|
|
6887
7021
|
position: absolute;
|
|
6888
|
-
box-sizing: border-box;
|
|
6889
7022
|
border: 1px solid var(--w6w-canvas-color, var(--w6w-border));
|
|
6890
7023
|
border-radius: var(--w6w-radius, 6px);
|
|
6891
7024
|
background: color-mix(in srgb, var(--w6w-canvas-color, var(--w6w-panel)) 14%, transparent);
|
|
@@ -6933,7 +7066,6 @@ button.w6w-rel-open:focus-visible strong {
|
|
|
6933
7066
|
}
|
|
6934
7067
|
|
|
6935
7068
|
.w6w-canvas-note-body {
|
|
6936
|
-
box-sizing: border-box;
|
|
6937
7069
|
height: 100%;
|
|
6938
7070
|
overflow: auto;
|
|
6939
7071
|
padding: var(--w6w-sp-3) var(--w6w-sp-3);
|
|
@@ -7129,7 +7261,7 @@ button.w6w-rel-open:focus-visible strong {
|
|
|
7129
7261
|
overflow: hidden;
|
|
7130
7262
|
background: conic-gradient(#f87171, #facc15, #4ade80, #60a5fa, #a78bfa, #f87171);
|
|
7131
7263
|
}
|
|
7132
|
-
.w6w-note-swatch-custom input {
|
|
7264
|
+
.w6w-note-swatch-custom input[type=color] {
|
|
7133
7265
|
position: absolute;
|
|
7134
7266
|
inset: 0;
|
|
7135
7267
|
width: 100%;
|
|
@@ -7238,7 +7370,6 @@ button.w6w-rel-open:focus-visible strong {
|
|
|
7238
7370
|
|
|
7239
7371
|
.w6w-section-draw-rect {
|
|
7240
7372
|
position: absolute;
|
|
7241
|
-
box-sizing: border-box;
|
|
7242
7373
|
border: 2px dashed var(--w6w-accent);
|
|
7243
7374
|
border-radius: var(--w6w-radius, 6px);
|
|
7244
7375
|
background: color-mix(in srgb, var(--w6w-accent) 10%, transparent);
|