@kya-os/consent 0.5.1 → 0.5.3
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/README.md +30 -9
- package/dist/bundle/inline.d.ts.map +1 -1
- package/dist/bundle/inline.js +4 -4
- package/dist/bundle/inline.js.map +1 -1
- package/dist/cjs/bundle/inline.js +4 -4
- package/dist/cjs/bundle/inline.js.map +1 -1
- package/dist/cjs/components/approver-lockup.js +365 -0
- package/dist/cjs/components/approver-lockup.js.map +1 -0
- package/dist/cjs/components/consent-action-bar.js +4 -0
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +358 -98
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-connector-header.js +1 -0
- package/dist/cjs/components/consent-connector-header.js.map +1 -1
- package/dist/cjs/components/consent-flow.js +392 -10
- package/dist/cjs/components/consent-flow.js.map +1 -1
- package/dist/cjs/components/consent-headline.js +35 -7
- package/dist/cjs/components/consent-headline.js.map +1 -1
- package/dist/cjs/components/consent-wallet-orb.js +6 -1
- package/dist/cjs/components/consent-wallet-orb.js.map +1 -1
- package/dist/cjs/components/decision-icons.js +2 -0
- package/dist/cjs/components/decision-icons.js.map +1 -1
- package/dist/cjs/components/flow-blocks.js +139 -298
- package/dist/cjs/components/flow-blocks.js.map +1 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/copy/tokens.js +14 -1
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/flow/copy.js +15 -0
- package/dist/cjs/flow/copy.js.map +1 -1
- package/dist/cjs/flow/index.js +5 -2
- package/dist/cjs/flow/index.js.map +1 -1
- package/dist/cjs/flow/model.js +46 -1
- package/dist/cjs/flow/model.js.map +1 -1
- package/dist/cjs/flow/page.js +282 -0
- package/dist/cjs/flow/page.js.map +1 -0
- package/dist/cjs/flow/presets.js +4 -0
- package/dist/cjs/flow/presets.js.map +1 -1
- package/dist/cjs/flow/schema.js +1 -0
- package/dist/cjs/flow/schema.js.map +1 -1
- package/dist/cjs/mcp-app/inline.js +2 -2
- package/dist/cjs/mcp-app/inline.js.map +1 -1
- package/dist/cjs/react/index.js +2 -0
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/schemas/capabilities.schemas.js +1 -0
- package/dist/cjs/schemas/capabilities.schemas.js.map +1 -1
- package/dist/cjs/styles/brand.js +135 -38
- package/dist/cjs/styles/brand.js.map +1 -1
- package/dist/cjs/styles/theme.js +32 -3
- package/dist/cjs/styles/theme.js.map +1 -1
- package/dist/components/approver-lockup.d.ts +73 -0
- package/dist/components/approver-lockup.d.ts.map +1 -0
- package/dist/components/approver-lockup.js +358 -0
- package/dist/components/approver-lockup.js.map +1 -0
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +4 -0
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +88 -8
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +358 -98
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-connector-header.d.ts.map +1 -1
- package/dist/components/consent-connector-header.js +1 -0
- package/dist/components/consent-connector-header.js.map +1 -1
- package/dist/components/consent-flow.d.ts +56 -2
- package/dist/components/consent-flow.d.ts.map +1 -1
- package/dist/components/consent-flow.js +394 -12
- package/dist/components/consent-flow.js.map +1 -1
- package/dist/components/consent-headline.d.ts +15 -3
- package/dist/components/consent-headline.d.ts.map +1 -1
- package/dist/components/consent-headline.js +35 -7
- package/dist/components/consent-headline.js.map +1 -1
- package/dist/components/consent-wallet-orb.d.ts +4 -0
- package/dist/components/consent-wallet-orb.d.ts.map +1 -1
- package/dist/components/consent-wallet-orb.js +6 -1
- package/dist/components/consent-wallet-orb.js.map +1 -1
- package/dist/components/decision-icons.d.ts +2 -0
- package/dist/components/decision-icons.d.ts.map +1 -1
- package/dist/components/decision-icons.js +2 -0
- package/dist/components/decision-icons.js.map +1 -1
- package/dist/components/flow-blocks.d.ts +5 -5
- package/dist/components/flow-blocks.d.ts.map +1 -1
- package/dist/components/flow-blocks.js +139 -296
- package/dist/components/flow-blocks.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/consent.js +1787 -910
- package/dist/consent.min.js +1026 -676
- package/dist/copy/tokens.d.ts +14 -1
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +14 -1
- package/dist/copy/tokens.js.map +1 -1
- package/dist/flow/copy.d.ts +2 -0
- package/dist/flow/copy.d.ts.map +1 -1
- package/dist/flow/copy.js +14 -0
- package/dist/flow/copy.js.map +1 -1
- package/dist/flow/index.d.ts +5 -2
- package/dist/flow/index.d.ts.map +1 -1
- package/dist/flow/index.js +5 -2
- package/dist/flow/index.js.map +1 -1
- package/dist/flow/model.d.ts +53 -2
- package/dist/flow/model.d.ts.map +1 -1
- package/dist/flow/model.js +45 -0
- package/dist/flow/model.js.map +1 -1
- package/dist/flow/page.d.ts +110 -0
- package/dist/flow/page.d.ts.map +1 -0
- package/dist/flow/page.js +276 -0
- package/dist/flow/page.js.map +1 -0
- package/dist/flow/presets.d.ts.map +1 -1
- package/dist/flow/presets.js +4 -0
- package/dist/flow/presets.js.map +1 -1
- package/dist/flow/schema.d.ts +19 -14
- package/dist/flow/schema.d.ts.map +1 -1
- package/dist/flow/schema.js +1 -0
- package/dist/flow/schema.js.map +1 -1
- package/dist/mcp-app/inline.d.ts.map +1 -1
- package/dist/mcp-app/inline.js +2 -2
- package/dist/mcp-app/inline.js.map +1 -1
- package/dist/react/index.d.ts +5 -3
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -0
- package/dist/react/index.js.map +1 -1
- package/dist/schemas/api.schemas.d.ts +9 -0
- package/dist/schemas/api.schemas.d.ts.map +1 -1
- package/dist/schemas/capabilities.schemas.d.ts +5 -0
- package/dist/schemas/capabilities.schemas.d.ts.map +1 -1
- package/dist/schemas/capabilities.schemas.js +1 -0
- package/dist/schemas/capabilities.schemas.js.map +1 -1
- package/dist/schemas/config.schemas.d.ts +14 -0
- package/dist/schemas/config.schemas.d.ts.map +1 -1
- package/dist/styles/brand.d.ts +53 -18
- package/dist/styles/brand.d.ts.map +1 -1
- package/dist/styles/brand.js +136 -39
- package/dist/styles/brand.js.map +1 -1
- package/dist/styles/theme.d.ts +15 -1
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +31 -2
- package/dist/styles/theme.js.map +1 -1
- package/dist/types/capabilities.types.d.ts +20 -0
- package/dist/types/capabilities.types.d.ts.map +1 -1
- package/dist/types/decision.types.d.ts +10 -2
- package/dist/types/decision.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../../src/bundle/inline.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH;;;GAGG;AACU,QAAA,cAAc,GAAW,
|
|
1
|
+
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../../src/bundle/inline.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH;;;GAGG;AACU,QAAA,cAAc,GAAW,sjzcAAsjzc,CAAC;AAE7lzc;;GAEG;AACU,QAAA,mBAAmB,GAAW,MAAM,CAAC;AAElD;;GAEG;AACU,QAAA,mBAAmB,GAAW,kBAAkB,CAAC;AAE9D;;;;;;;;;;;GAWG;AACU,QAAA,mBAAmB,GAAW,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.approverLockupStyles = void 0;
|
|
4
|
+
exports.breakable = breakable;
|
|
5
|
+
exports.face = face;
|
|
6
|
+
exports.agentTile = agentTile;
|
|
7
|
+
exports.approverLockup = approverLockup;
|
|
8
|
+
/**
|
|
9
|
+
* The approver lockup
|
|
10
|
+
*
|
|
11
|
+
* Who approves, and the agent they approve: the person's face, name and
|
|
12
|
+
* sign-in with a mark, any checks they passed, then the agent's tile and name
|
|
13
|
+
* with its status. `<consent-flow>`'s approver block and
|
|
14
|
+
* `<consent-capabilities-screen>`'s approver box both draw it, so the two
|
|
15
|
+
* screens show the relationship the same way. Each fills in its own words.
|
|
16
|
+
*
|
|
17
|
+
* @module components/approver-lockup
|
|
18
|
+
*/
|
|
19
|
+
const lit_1 = require("lit");
|
|
20
|
+
const copy_js_1 = require("../flow/copy.js");
|
|
21
|
+
const decision_icons_js_1 = require("./decision-icons.js");
|
|
22
|
+
/**
|
|
23
|
+
* An address or a domain with a line break offered before each "@" and ".",
|
|
24
|
+
* so a narrow card wraps "person" / "@example.com" rather than mid-word.
|
|
25
|
+
*/
|
|
26
|
+
function breakable(value) {
|
|
27
|
+
return value
|
|
28
|
+
.split(/(?=[@.])/)
|
|
29
|
+
.map((piece, i) => (i ? (0, lit_1.html) `<wbr />${piece}` : piece));
|
|
30
|
+
}
|
|
31
|
+
const hide = (event) => {
|
|
32
|
+
event.target.hidden = true;
|
|
33
|
+
};
|
|
34
|
+
const show = (event) => {
|
|
35
|
+
event.target.hidden = false;
|
|
36
|
+
};
|
|
37
|
+
/** A person's face: their initials, with the provider's picture over them when it loads. */
|
|
38
|
+
function face(name, identifier = "", avatarUrl = "", size = "md") {
|
|
39
|
+
const initials = (0, copy_js_1.initialsOf)(name, identifier);
|
|
40
|
+
return (0, lit_1.html) `<span
|
|
41
|
+
class="face ${size} ${initials.length > 1 ? "two" : ""}"
|
|
42
|
+
aria-hidden="true"
|
|
43
|
+
>${initials}${avatarUrl
|
|
44
|
+
? (0, lit_1.html) `<img src=${avatarUrl} alt="" @error=${hide} @load=${show} />`
|
|
45
|
+
: lit_1.nothing}</span
|
|
46
|
+
>`;
|
|
47
|
+
}
|
|
48
|
+
/** The agent's tile: its mark on white in every theme, or its initial. A name alone never earns a mark. */
|
|
49
|
+
function agentTile(agent) {
|
|
50
|
+
const initial = (0, copy_js_1.initialsOf)(agent.name).slice(0, 1);
|
|
51
|
+
return (0, lit_1.html) `<span class="tile" aria-hidden="true"
|
|
52
|
+
>${initial}${agent.logoUrl
|
|
53
|
+
? (0, lit_1.html) `<img src=${agent.logoUrl} alt="" @error=${hide} @load=${show} />`
|
|
54
|
+
: lit_1.nothing}</span
|
|
55
|
+
>`;
|
|
56
|
+
}
|
|
57
|
+
function personRow(person) {
|
|
58
|
+
return (0, lit_1.html) `<div class="lockup-row">
|
|
59
|
+
${face(person.name, person.identifier, person.avatarUrl)}
|
|
60
|
+
<div class="lockup-text">
|
|
61
|
+
<span class="lockup-label">${person.label}</span>
|
|
62
|
+
<span class="lockup-name">${breakable(person.name)}</span>
|
|
63
|
+
${person.detail
|
|
64
|
+
? (0, lit_1.html) `<span class="small">${breakable(person.detail)}</span>`
|
|
65
|
+
: lit_1.nothing}
|
|
66
|
+
</div>
|
|
67
|
+
<span
|
|
68
|
+
class="lockup-mark ${person.declined ? "declined" : ""}"
|
|
69
|
+
role="img"
|
|
70
|
+
aria-label=${person.mark}
|
|
71
|
+
title=${person.mark}
|
|
72
|
+
>${(0, decision_icons_js_1.decisionIcon)(person.declined ? "minus" : "check")}</span
|
|
73
|
+
>
|
|
74
|
+
</div>`;
|
|
75
|
+
}
|
|
76
|
+
function checkRow(check) {
|
|
77
|
+
return (0, lit_1.html) `<div class="lockup-row lockup-check" part="approver-check">
|
|
78
|
+
<span class="lockup-check-icon" aria-hidden="true"
|
|
79
|
+
>${(0, decision_icons_js_1.decisionIcon)("check")}</span
|
|
80
|
+
>
|
|
81
|
+
<div class="lockup-text">
|
|
82
|
+
<span class="value">${check.label}</span>
|
|
83
|
+
${check.summary ? (0, lit_1.html) `<span>${check.summary}</span>` : lit_1.nothing}
|
|
84
|
+
${check.source
|
|
85
|
+
? (0, lit_1.html) `<span class="small">${check.source}</span>`
|
|
86
|
+
: lit_1.nothing}
|
|
87
|
+
</div>
|
|
88
|
+
</div>`;
|
|
89
|
+
}
|
|
90
|
+
function agentRow(agent) {
|
|
91
|
+
return (0, lit_1.html) `<div class="lockup-row party" part="approver-agent">
|
|
92
|
+
${agentTile(agent)}
|
|
93
|
+
<div class="lockup-text">
|
|
94
|
+
<span class="small">${agent.label}</span>
|
|
95
|
+
<span class="value">${breakable(agent.name)}</span>
|
|
96
|
+
</div>
|
|
97
|
+
${agent.status
|
|
98
|
+
? (0, lit_1.html) `<span
|
|
99
|
+
class="party-status ${agent.unverified ? "unverified" : ""}"
|
|
100
|
+
part="agent-status"
|
|
101
|
+
>${breakable(agent.status)}${agent.info
|
|
102
|
+
? (0, lit_1.html) `<button
|
|
103
|
+
type="button"
|
|
104
|
+
class="info"
|
|
105
|
+
aria-label=${agent.status}
|
|
106
|
+
aria-describedby="agent-status-info"
|
|
107
|
+
>
|
|
108
|
+
${(0, decision_icons_js_1.decisionIcon)("info")}</button
|
|
109
|
+
><span class="tip" id="agent-status-info" role="tooltip"
|
|
110
|
+
>${agent.info}</span
|
|
111
|
+
>`
|
|
112
|
+
: lit_1.nothing}</span
|
|
113
|
+
>`
|
|
114
|
+
: lit_1.nothing}
|
|
115
|
+
</div>`;
|
|
116
|
+
}
|
|
117
|
+
/** The lockup: the person, their checks, then the agent, each when given. */
|
|
118
|
+
function approverLockup(view) {
|
|
119
|
+
return (0, lit_1.html) `<div class="tinted lockup" part="approver">
|
|
120
|
+
${view.person ? personRow(view.person) : lit_1.nothing}
|
|
121
|
+
${(view.checks ?? []).map(checkRow)}
|
|
122
|
+
${view.agent ? agentRow(view.agent) : lit_1.nothing}
|
|
123
|
+
</div>`;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* The lockup's look. A screen that draws it also needs `.tinted` and `.small`,
|
|
127
|
+
* which both screens define the same way for their other boxes.
|
|
128
|
+
*/
|
|
129
|
+
exports.approverLockupStyles = (0, lit_1.css) `
|
|
130
|
+
/* Names break only where a word can't fit, and an address at its "@" and
|
|
131
|
+
dots first (breakable). */
|
|
132
|
+
.lockup {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: column;
|
|
135
|
+
gap: 12px;
|
|
136
|
+
padding: 16px 18px;
|
|
137
|
+
container-type: inline-size;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.lockup-row {
|
|
141
|
+
display: flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
gap: 12px;
|
|
144
|
+
min-width: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.lockup-row.party,
|
|
148
|
+
.lockup-check:not(:first-child) {
|
|
149
|
+
padding-top: 12px;
|
|
150
|
+
border-top: 1px solid var(--cs-tint-line);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.lockup-check {
|
|
154
|
+
align-items: flex-start;
|
|
155
|
+
font-size: 14px;
|
|
156
|
+
line-height: 1.45;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.lockup-text {
|
|
160
|
+
display: flex;
|
|
161
|
+
flex: 1;
|
|
162
|
+
flex-direction: column;
|
|
163
|
+
gap: 2px;
|
|
164
|
+
min-width: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.lockup-label {
|
|
168
|
+
font-size: 10px;
|
|
169
|
+
letter-spacing: 0.16em;
|
|
170
|
+
font-weight: 600;
|
|
171
|
+
text-transform: uppercase;
|
|
172
|
+
color: var(--cs-text-tertiary);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.lockup-name {
|
|
176
|
+
font-size: 20px;
|
|
177
|
+
font-weight: 600;
|
|
178
|
+
line-height: 1.2;
|
|
179
|
+
overflow-wrap: break-word;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.lockup-text .value {
|
|
183
|
+
font-weight: 500;
|
|
184
|
+
overflow-wrap: break-word;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.lockup-mark {
|
|
188
|
+
display: grid;
|
|
189
|
+
flex-shrink: 0;
|
|
190
|
+
color: var(--cs-wallet-success, var(--cs-mark));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.lockup-mark.declined {
|
|
194
|
+
color: var(--cs-text-tertiary);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.lockup-mark svg {
|
|
198
|
+
width: 22px;
|
|
199
|
+
height: 22px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* A check's mark sits in the face's column, so its words line up with the name. */
|
|
203
|
+
.lockup-check-icon {
|
|
204
|
+
display: grid;
|
|
205
|
+
place-items: center;
|
|
206
|
+
flex-shrink: 0;
|
|
207
|
+
width: 42px;
|
|
208
|
+
color: var(--cs-mark);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.lockup-check-icon svg {
|
|
212
|
+
width: 20px;
|
|
213
|
+
height: 20px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.face,
|
|
217
|
+
.tile {
|
|
218
|
+
position: relative;
|
|
219
|
+
display: grid;
|
|
220
|
+
place-items: center;
|
|
221
|
+
flex-shrink: 0;
|
|
222
|
+
width: 42px;
|
|
223
|
+
height: 42px;
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
font-weight: 600;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.face {
|
|
229
|
+
border-radius: 50%;
|
|
230
|
+
background: var(--cs-surface-accent);
|
|
231
|
+
color: var(--cs-surface-accent-text);
|
|
232
|
+
font-size: 17px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.face.two {
|
|
236
|
+
font-size: 15px;
|
|
237
|
+
letter-spacing: 0.02em;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.face.sm {
|
|
241
|
+
width: 32px;
|
|
242
|
+
height: 32px;
|
|
243
|
+
font-size: 13px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.face img {
|
|
247
|
+
position: absolute;
|
|
248
|
+
inset: 0;
|
|
249
|
+
width: 100%;
|
|
250
|
+
height: 100%;
|
|
251
|
+
object-fit: cover;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.tile {
|
|
255
|
+
border-radius: var(--cs-tile-radius, 10px);
|
|
256
|
+
border: 1px solid var(--cs-agent-tile-border, rgba(15, 23, 42, 0.16));
|
|
257
|
+
background: var(--cs-surface-accent);
|
|
258
|
+
color: var(--cs-surface-accent-text);
|
|
259
|
+
font-size: 18px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.tile img {
|
|
263
|
+
position: absolute;
|
|
264
|
+
inset: 0;
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: 100%;
|
|
267
|
+
padding: 4px;
|
|
268
|
+
box-sizing: border-box;
|
|
269
|
+
object-fit: contain;
|
|
270
|
+
background: var(--cs-agent-tile-bg, #ffffff);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.party-status {
|
|
274
|
+
position: relative;
|
|
275
|
+
display: inline-flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
gap: 4px;
|
|
278
|
+
flex-shrink: 0;
|
|
279
|
+
font-size: 13px;
|
|
280
|
+
font-weight: 500;
|
|
281
|
+
color: var(--cs-text-secondary);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.party-status.unverified {
|
|
285
|
+
color: var(--cs-warning-text, var(--cs-text-primary));
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* A phone-width card: smaller faces and padding, and the agent's status
|
|
289
|
+
under its name, so the names keep their width. */
|
|
290
|
+
@container (max-width: 300px) {
|
|
291
|
+
.lockup-row {
|
|
292
|
+
gap: 10px;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.lockup-row.party {
|
|
296
|
+
flex-wrap: wrap;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.face,
|
|
300
|
+
.tile {
|
|
301
|
+
width: 36px;
|
|
302
|
+
height: 36px;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.lockup-check-icon {
|
|
306
|
+
width: 36px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.party-status {
|
|
310
|
+
flex-basis: 100%;
|
|
311
|
+
flex-shrink: 1;
|
|
312
|
+
min-width: 0;
|
|
313
|
+
padding-left: 46px;
|
|
314
|
+
overflow-wrap: break-word;
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.info {
|
|
319
|
+
display: inline-grid;
|
|
320
|
+
place-items: center;
|
|
321
|
+
width: 22px;
|
|
322
|
+
height: 22px;
|
|
323
|
+
padding: 0;
|
|
324
|
+
border: 0;
|
|
325
|
+
border-radius: 50%;
|
|
326
|
+
background: none;
|
|
327
|
+
color: var(--cs-text-tertiary);
|
|
328
|
+
cursor: help;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.info svg {
|
|
332
|
+
width: 16px;
|
|
333
|
+
height: 16px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.info:focus-visible {
|
|
337
|
+
outline: 2px solid var(--cs-focus-ring, currentColor);
|
|
338
|
+
outline-offset: 1px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.tip {
|
|
342
|
+
position: absolute;
|
|
343
|
+
top: calc(100% + 8px);
|
|
344
|
+
right: -6px;
|
|
345
|
+
z-index: 5;
|
|
346
|
+
width: 240px;
|
|
347
|
+
padding: 8px 10px;
|
|
348
|
+
border-radius: 8px;
|
|
349
|
+
background: var(--cs-text-primary);
|
|
350
|
+
color: var(--cs-surface-card);
|
|
351
|
+
font-size: 12px;
|
|
352
|
+
font-weight: 400;
|
|
353
|
+
line-height: 1.45;
|
|
354
|
+
text-align: left;
|
|
355
|
+
opacity: 0;
|
|
356
|
+
visibility: hidden;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.party-status:hover .tip,
|
|
360
|
+
.info:focus-visible + .tip {
|
|
361
|
+
opacity: 1;
|
|
362
|
+
visibility: visible;
|
|
363
|
+
}
|
|
364
|
+
`;
|
|
365
|
+
//# sourceMappingURL=approver-lockup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approver-lockup.js","sourceRoot":"","sources":["../../../src/components/approver-lockup.ts"],"names":[],"mappings":";;;AAgEA,8BAIC;AAUD,oBAcC;AAGD,8BAUC;AAkED,wCAMC;AAjLD;;;;;;;;;;GAUG;AACH,6BAA8D;AAC9D,6CAA6C;AAC7C,2DAAmD;AA+CnD;;;GAGG;AACH,SAAgB,SAAS,CAAC,KAAa;IACrC,OAAO,KAAK;SACT,KAAK,CAAC,UAAU,CAAC;SACjB,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,UAAI,EAAA,UAAU,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,IAAI,GAAG,CAAC,KAAY,EAAE,EAAE;IAC3B,KAAK,CAAC,MAAsB,CAAC,MAAM,GAAG,IAAI,CAAC;AAC9C,CAAC,CAAC;AACF,MAAM,IAAI,GAAG,CAAC,KAAY,EAAE,EAAE;IAC3B,KAAK,CAAC,MAAsB,CAAC,MAAM,GAAG,KAAK,CAAC;AAC/C,CAAC,CAAC;AAEF,4FAA4F;AAC5F,SAAgB,IAAI,CAClB,IAAY,EACZ,UAAU,GAAG,EAAE,EACf,SAAS,GAAG,EAAE,EACd,OAAoB,IAAI;IAExB,MAAM,QAAQ,GAAG,IAAA,oBAAU,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC9C,OAAO,IAAA,UAAI,EAAA;kBACK,IAAI,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;;OAEnD,QAAQ,GAAG,SAAS;QACrB,CAAC,CAAC,IAAA,UAAI,EAAA,YAAY,SAAS,kBAAkB,IAAI,UAAU,IAAI,KAAK;QACpE,CAAC,C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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2OtC,CAAC"}
|
|
@@ -91,6 +91,7 @@ let ConsentActionBar = class ConsentActionBar extends lit_1.LitElement {
|
|
|
91
91
|
<button
|
|
92
92
|
class="action primary"
|
|
93
93
|
part="submit"
|
|
94
|
+
data-field="approve"
|
|
94
95
|
type="button"
|
|
95
96
|
?disabled=${this.disabled || this.loading}
|
|
96
97
|
@click=${this.emitAllow}
|
|
@@ -100,6 +101,7 @@ let ConsentActionBar = class ConsentActionBar extends lit_1.LitElement {
|
|
|
100
101
|
<button
|
|
101
102
|
class="action secondary"
|
|
102
103
|
part="cancel"
|
|
104
|
+
data-field="deny"
|
|
103
105
|
type="button"
|
|
104
106
|
?disabled=${this.loading}
|
|
105
107
|
@click=${this.emitDeny}
|
|
@@ -120,12 +122,14 @@ let ConsentActionBar = class ConsentActionBar extends lit_1.LitElement {
|
|
|
120
122
|
? " disabled"
|
|
121
123
|
: ""}"
|
|
122
124
|
part="submit"
|
|
125
|
+
data-field="approve"
|
|
123
126
|
>
|
|
124
127
|
${this.renderSubmitIcon()}${(0, edit_region_js_1.editRegion)(edit_types_js_1.CONSENT_EDIT_KEYS.submitLabel, tokens.submitLabel, allowLabel, this.editSource)}
|
|
125
128
|
</div>
|
|
126
129
|
<div
|
|
127
130
|
class="action secondary${this.loading ? " disabled" : ""}"
|
|
128
131
|
part="cancel"
|
|
132
|
+
data-field="deny"
|
|
129
133
|
>
|
|
130
134
|
${(0, edit_region_js_1.editRegion)(edit_types_js_1.CONSENT_EDIT_KEYS.cancelLabel, tokens.cancelLabel, denyLabel, this.editSource)}
|
|
131
135
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consent-action-bar.js","sourceRoot":"","sources":["../../../src/components/consent-action-bar.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;;;;;AAEH,6BAAqD;AACrD,qDAA4D;AAE5D,iDAAqE;AAErE,0DAGgC;AAChC,qDAAgE;AAChE,6CAAuE;AACvE,uDAAoD;AAKpD;;;;GAIG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,gBAAU;IAAzC;;QACuB,cAAS,GAAG,EAAE,CAAC;QACf,UAAK,GAAiB,OAAO,CAAC;QAC7B,aAAQ,GAAG,KAAK,CAAC;QACjB,YAAO,GAAG,KAAK,CAAC;QACU,gBAAW,GAAG,EAAE,CAAC;QACjB,gBAAW,GAAG,EAAE,CAAC;QACxE,wDAAwD;QAExD,eAAU,GAAwB,EAAE,CAAC;QACrC,yDAAyD;QACD,iBAAY,GAAG,EAAE,CAAC;QAC1E,8EAA8E;QAClC,YAAO,GAAG,KAAK,CAAC;QAC5D,yDAAyD;QACb,aAAQ,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"consent-action-bar.js","sourceRoot":"","sources":["../../../src/components/consent-action-bar.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;;;;;;;AAEH,6BAAqD;AACrD,qDAA4D;AAE5D,iDAAqE;AAErE,0DAGgC;AAChC,qDAAgE;AAChE,6CAAuE;AACvE,uDAAoD;AAKpD;;;;GAIG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,gBAAU;IAAzC;;QACuB,cAAS,GAAG,EAAE,CAAC;QACf,UAAK,GAAiB,OAAO,CAAC;QAC7B,aAAQ,GAAG,KAAK,CAAC;QACjB,YAAO,GAAG,KAAK,CAAC;QACU,gBAAW,GAAG,EAAE,CAAC;QACjB,gBAAW,GAAG,EAAE,CAAC;QACxE,wDAAwD;QAExD,eAAU,GAAwB,EAAE,CAAC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