@kya-os/consent 0.3.0 → 0.4.1
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 +185 -20
- package/dist/bundle/index.d.ts +4 -0
- package/dist/bundle/index.d.ts.map +1 -1
- package/dist/bundle/index.js +6 -0
- package/dist/bundle/index.js.map +1 -1
- 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/index.js +15 -1
- package/dist/cjs/bundle/index.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/consent-action-bar.js +97 -25
- package/dist/cjs/components/consent-action-bar.js.map +1 -1
- package/dist/cjs/components/consent-agent-header.js +7 -105
- package/dist/cjs/components/consent-agent-header.js.map +1 -1
- package/dist/cjs/components/consent-button.js +6 -1
- package/dist/cjs/components/consent-button.js.map +1 -1
- package/dist/cjs/components/consent-capabilities-screen.js +488 -66
- package/dist/cjs/components/consent-capabilities-screen.js.map +1 -1
- package/dist/cjs/components/consent-capability-card.js +197 -42
- package/dist/cjs/components/consent-capability-card.js.map +1 -1
- package/dist/cjs/components/consent-checkbox.js +7 -0
- package/dist/cjs/components/consent-checkbox.js.map +1 -1
- package/dist/cjs/components/consent-connector-header.js +206 -43
- package/dist/cjs/components/consent-connector-header.js.map +1 -1
- package/dist/cjs/components/consent-duration.js +1 -1
- package/dist/cjs/components/consent-footer.js +13 -12
- package/dist/cjs/components/consent-footer.js.map +1 -1
- package/dist/cjs/components/consent-headline.js +445 -30
- package/dist/cjs/components/consent-headline.js.map +1 -1
- package/dist/cjs/components/consent-oauth-button.js +71 -62
- package/dist/cjs/components/consent-oauth-button.js.map +1 -1
- package/dist/cjs/components/consent-otp-input.js +5 -0
- package/dist/cjs/components/consent-otp-input.js.map +1 -1
- package/dist/cjs/components/consent-phone-handoff.js +3 -3
- package/dist/cjs/components/consent-request-expiry.js +1 -1
- package/dist/cjs/components/consent-revocation-notice.js +4 -2
- package/dist/cjs/components/consent-revocation-notice.js.map +1 -1
- package/dist/cjs/components/consent-revoke.js +9 -4
- package/dist/cjs/components/consent-revoke.js.map +1 -1
- package/dist/cjs/components/consent-secured-by.js +106 -0
- package/dist/cjs/components/consent-secured-by.js.map +1 -0
- package/dist/cjs/components/consent-shell.js +1 -1
- package/dist/cjs/components/consent-terms.js +7 -0
- package/dist/cjs/components/consent-terms.js.map +1 -1
- package/dist/cjs/components/consent-wallet-check.js +1 -1
- package/dist/cjs/components/consent-wallet-notice.js +1 -1
- package/dist/cjs/components/consent-wallet-orb.js +1 -1
- package/dist/cjs/components/consent-wallet-signature.js +1 -1
- package/dist/cjs/components/decision-icons.js +33 -0
- package/dist/cjs/components/decision-icons.js.map +1 -0
- package/dist/cjs/components/edit-region.js +309 -0
- package/dist/cjs/components/edit-region.js.map +1 -0
- package/dist/cjs/components/grant-field-styles.js +2 -2
- package/dist/cjs/components/index.js +5 -1
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/mcp-consent.js +81 -36
- package/dist/cjs/components/mcp-consent.js.map +1 -1
- package/dist/cjs/components/preview.js +67 -0
- package/dist/cjs/components/preview.js.map +1 -0
- package/dist/cjs/constants/capabilities.js +21 -2
- package/dist/cjs/constants/capabilities.js.map +1 -1
- package/dist/cjs/copy/tokens.js +60 -21
- package/dist/cjs/copy/tokens.js.map +1 -1
- package/dist/cjs/identity/agent-identity.js +3 -2
- package/dist/cjs/identity/agent-identity.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 +11 -2
- package/dist/cjs/react/index.js.map +1 -1
- package/dist/cjs/styles/brand.js +385 -0
- package/dist/cjs/styles/brand.js.map +1 -0
- package/dist/cjs/styles/index.js +1 -0
- package/dist/cjs/styles/index.js.map +1 -1
- package/dist/cjs/styles/theme.js +100 -30
- package/dist/cjs/styles/theme.js.map +1 -1
- package/dist/cjs/types/capabilities.types.js +1 -2
- package/dist/cjs/types/capabilities.types.js.map +1 -1
- package/dist/cjs/types/decision.types.js +13 -0
- package/dist/cjs/types/decision.types.js.map +1 -0
- package/dist/cjs/types/edit.types.js +80 -0
- package/dist/cjs/types/edit.types.js.map +1 -0
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/components/consent-action-bar.d.ts +20 -1
- package/dist/components/consent-action-bar.d.ts.map +1 -1
- package/dist/components/consent-action-bar.js +97 -25
- package/dist/components/consent-action-bar.js.map +1 -1
- package/dist/components/consent-agent-header.d.ts +4 -17
- package/dist/components/consent-agent-header.d.ts.map +1 -1
- package/dist/components/consent-agent-header.js +7 -105
- package/dist/components/consent-agent-header.js.map +1 -1
- package/dist/components/consent-button.d.ts +2 -0
- package/dist/components/consent-button.d.ts.map +1 -1
- package/dist/components/consent-button.js +6 -1
- package/dist/components/consent-button.js.map +1 -1
- package/dist/components/consent-capabilities-screen.d.ts +93 -14
- package/dist/components/consent-capabilities-screen.d.ts.map +1 -1
- package/dist/components/consent-capabilities-screen.js +488 -67
- package/dist/components/consent-capabilities-screen.js.map +1 -1
- package/dist/components/consent-capability-card.d.ts +42 -5
- package/dist/components/consent-capability-card.d.ts.map +1 -1
- package/dist/components/consent-capability-card.js +196 -41
- package/dist/components/consent-capability-card.js.map +1 -1
- package/dist/components/consent-checkbox.d.ts +2 -0
- package/dist/components/consent-checkbox.d.ts.map +1 -1
- package/dist/components/consent-checkbox.js +7 -0
- package/dist/components/consent-checkbox.js.map +1 -1
- package/dist/components/consent-connector-header.d.ts +39 -7
- package/dist/components/consent-connector-header.d.ts.map +1 -1
- package/dist/components/consent-connector-header.js +206 -43
- package/dist/components/consent-connector-header.js.map +1 -1
- package/dist/components/consent-duration.js +1 -1
- package/dist/components/consent-footer.d.ts +6 -4
- package/dist/components/consent-footer.d.ts.map +1 -1
- package/dist/components/consent-footer.js +13 -12
- package/dist/components/consent-footer.js.map +1 -1
- package/dist/components/consent-headline.d.ts +76 -12
- package/dist/components/consent-headline.d.ts.map +1 -1
- package/dist/components/consent-headline.js +445 -32
- package/dist/components/consent-headline.js.map +1 -1
- package/dist/components/consent-oauth-button.d.ts +7 -3
- package/dist/components/consent-oauth-button.d.ts.map +1 -1
- package/dist/components/consent-oauth-button.js +74 -65
- package/dist/components/consent-oauth-button.js.map +1 -1
- package/dist/components/consent-otp-input.d.ts.map +1 -1
- package/dist/components/consent-otp-input.js +5 -0
- package/dist/components/consent-otp-input.js.map +1 -1
- package/dist/components/consent-passkey.d.ts +6 -0
- package/dist/components/consent-passkey.d.ts.map +1 -1
- package/dist/components/consent-passkey.js +67 -9
- package/dist/components/consent-passkey.js.map +1 -1
- package/dist/components/consent-phone-handoff.js +3 -3
- package/dist/components/consent-request-expiry.js +1 -1
- package/dist/components/consent-revocation-notice.d.ts.map +1 -1
- package/dist/components/consent-revocation-notice.js +4 -2
- package/dist/components/consent-revocation-notice.js.map +1 -1
- package/dist/components/consent-revoke.d.ts +2 -0
- package/dist/components/consent-revoke.d.ts.map +1 -1
- package/dist/components/consent-revoke.js +9 -4
- package/dist/components/consent-revoke.js.map +1 -1
- package/dist/components/consent-secured-by.d.ts +25 -0
- package/dist/components/consent-secured-by.d.ts.map +1 -0
- package/dist/components/consent-secured-by.js +103 -0
- package/dist/components/consent-secured-by.js.map +1 -0
- package/dist/components/consent-shell.js +1 -1
- package/dist/components/consent-terms.d.ts +2 -0
- package/dist/components/consent-terms.d.ts.map +1 -1
- package/dist/components/consent-terms.js +7 -0
- package/dist/components/consent-terms.js.map +1 -1
- package/dist/components/consent-wallet-check.js +1 -1
- package/dist/components/consent-wallet-notice.js +1 -1
- package/dist/components/consent-wallet-orb.js +1 -1
- package/dist/components/consent-wallet-signature.js +1 -1
- package/dist/components/decision-icons.d.ts +22 -0
- package/dist/components/decision-icons.d.ts.map +1 -0
- package/dist/components/decision-icons.js +30 -0
- package/dist/components/decision-icons.js.map +1 -0
- package/dist/components/edit-region.d.ts +50 -0
- package/dist/components/edit-region.d.ts.map +1 -0
- package/dist/components/edit-region.js +305 -0
- package/dist/components/edit-region.js.map +1 -0
- package/dist/components/grant-field-styles.js +2 -2
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/mcp-consent.d.ts +15 -0
- package/dist/components/mcp-consent.d.ts.map +1 -1
- package/dist/components/mcp-consent.js +81 -36
- package/dist/components/mcp-consent.js.map +1 -1
- package/dist/components/preview.d.ts +38 -0
- package/dist/components/preview.d.ts.map +1 -0
- package/dist/components/preview.js +61 -0
- package/dist/components/preview.js.map +1 -0
- package/dist/consent.js +2200 -389
- package/dist/consent.min.js +1308 -496
- package/dist/constants/capabilities.d.ts +14 -2
- package/dist/constants/capabilities.d.ts.map +1 -1
- package/dist/constants/capabilities.js +21 -2
- package/dist/constants/capabilities.js.map +1 -1
- package/dist/copy/tokens.d.ts +60 -21
- package/dist/copy/tokens.d.ts.map +1 -1
- package/dist/copy/tokens.js +60 -21
- package/dist/copy/tokens.js.map +1 -1
- package/dist/identity/agent-identity.d.ts +3 -2
- package/dist/identity/agent-identity.d.ts.map +1 -1
- package/dist/identity/agent-identity.js +3 -2
- package/dist/identity/agent-identity.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 +6 -1
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +10 -1
- package/dist/react/index.js.map +1 -1
- package/dist/styles/brand.d.ts +184 -0
- package/dist/styles/brand.d.ts.map +1 -0
- package/dist/styles/brand.js +372 -0
- package/dist/styles/brand.js.map +1 -0
- package/dist/styles/index.d.ts +1 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/index.js +1 -0
- package/dist/styles/index.js.map +1 -1
- package/dist/styles/theme.d.ts +73 -13
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles/theme.js +96 -29
- package/dist/styles/theme.js.map +1 -1
- package/dist/types/capabilities.types.d.ts +12 -14
- package/dist/types/capabilities.types.d.ts.map +1 -1
- package/dist/types/capabilities.types.js +1 -2
- package/dist/types/capabilities.types.js.map +1 -1
- package/dist/types/decision.types.d.ts +57 -0
- package/dist/types/decision.types.d.ts.map +1 -0
- package/dist/types/decision.types.js +12 -0
- package/dist/types/decision.types.js.map +1 -0
- package/dist/types/edit.types.d.ts +73 -0
- package/dist/types/edit.types.d.ts.map +1 -0
- package/dist/types/edit.types.js +76 -0
- package/dist/types/edit.types.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../src/mcp-app/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAW,
|
|
1
|
+
{"version":3,"file":"inline.js","sourceRoot":"","sources":["../../src/mcp-app/inline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,oBAAoB,GAAW,02x3BAA02x3B,CAAC;AAEv5x3B,4CAA4C;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAW,MAAM,CAAC"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { ConsentConnectorHeader } from "../components/consent-connector-header.j
|
|
|
33
33
|
import { ConsentActionBar } from "../components/consent-action-bar.js";
|
|
34
34
|
import { ConsentRevocationNotice } from "../components/consent-revocation-notice.js";
|
|
35
35
|
import { ConsentFooter } from "../components/consent-footer.js";
|
|
36
|
+
import { ConsentSecuredBy } from "../components/consent-secured-by.js";
|
|
36
37
|
import { ConsentDuration, type DurationChangeDetail } from "../components/consent-duration.js";
|
|
37
38
|
import { ConsentFolderScope, type FolderScopeChangeDetail } from "../components/consent-folder-scope.js";
|
|
38
39
|
import { ConsentGrantTerms, type GrantTermsChangeDetail } from "../components/consent-grant-terms.js";
|
|
@@ -181,7 +182,7 @@ export declare const ConsentCapabilityCardReact: import("@lit/react").ReactWebCo
|
|
|
181
182
|
onToggle: EventName<CustomEvent<CapabilityToggleDetail>>;
|
|
182
183
|
}>;
|
|
183
184
|
/**
|
|
184
|
-
* React wrapper for consent-agent-header, the agent's name,
|
|
185
|
+
* React wrapper for consent-agent-header, the agent's name, logo and meta line.
|
|
185
186
|
*/
|
|
186
187
|
export declare const ConsentAgentHeaderReact: import("@lit/react").ReactWebComponent<ConsentAgentHeader, {}>;
|
|
187
188
|
/**
|
|
@@ -209,6 +210,10 @@ export declare const ConsentRevocationNoticeReact: import("@lit/react").ReactWeb
|
|
|
209
210
|
* React wrapper for consent-footer.
|
|
210
211
|
*/
|
|
211
212
|
export declare const ConsentFooterReact: import("@lit/react").ReactWebComponent<ConsentFooter, {}>;
|
|
213
|
+
/**
|
|
214
|
+
* React wrapper for consent-secured-by, "Secured by" and the Vouched lockup.
|
|
215
|
+
*/
|
|
216
|
+
export declare const ConsentSecuredByReact: import("@lit/react").ReactWebComponent<ConsentSecuredBy, {}>;
|
|
212
217
|
/**
|
|
213
218
|
* React wrapper for consent-duration, how long a grant lasts.
|
|
214
219
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAI7D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,O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EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAEpF,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC3E,YAAY,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAC3E,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC"}
|
package/dist/react/index.js
CHANGED
|
@@ -38,6 +38,7 @@ import { ConsentConnectorHeader } from "../components/consent-connector-header.j
|
|
|
38
38
|
import { ConsentActionBar } from "../components/consent-action-bar.js";
|
|
39
39
|
import { ConsentRevocationNotice } from "../components/consent-revocation-notice.js";
|
|
40
40
|
import { ConsentFooter } from "../components/consent-footer.js";
|
|
41
|
+
import { ConsentSecuredBy } from "../components/consent-secured-by.js";
|
|
41
42
|
// Grant terms and taking a grant back
|
|
42
43
|
import { ConsentDuration, } from "../components/consent-duration.js";
|
|
43
44
|
import { ConsentFolderScope, } from "../components/consent-folder-scope.js";
|
|
@@ -226,7 +227,7 @@ export const ConsentCapabilityCardReact = createComponent({
|
|
|
226
227
|
},
|
|
227
228
|
});
|
|
228
229
|
/**
|
|
229
|
-
* React wrapper for consent-agent-header, the agent's name,
|
|
230
|
+
* React wrapper for consent-agent-header, the agent's name, logo and meta line.
|
|
230
231
|
*/
|
|
231
232
|
export const ConsentAgentHeaderReact = createComponent({
|
|
232
233
|
tagName: "consent-agent-header",
|
|
@@ -279,6 +280,14 @@ export const ConsentFooterReact = createComponent({
|
|
|
279
280
|
elementClass: ConsentFooter,
|
|
280
281
|
react: React,
|
|
281
282
|
});
|
|
283
|
+
/**
|
|
284
|
+
* React wrapper for consent-secured-by, "Secured by" and the Vouched lockup.
|
|
285
|
+
*/
|
|
286
|
+
export const ConsentSecuredByReact = createComponent({
|
|
287
|
+
tagName: "consent-secured-by",
|
|
288
|
+
elementClass: ConsentSecuredBy,
|
|
289
|
+
react: React,
|
|
290
|
+
});
|
|
282
291
|
// ============================================================================
|
|
283
292
|
// Grant Terms and Revoke Wrappers
|
|
284
293
|
// ============================================================================
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,eAAe,EAAkB,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,kBAAkB;AAClB,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAE9D,sBAAsB;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,sBAAsB;AACtB,OAAO,EACL,UAAU,GAGX,MAAM,8BAA8B,CAAC;AAEtC,kCAAkC;AAClC,OAAO,EACL,yBAAyB,GAE1B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,qBAAqB,GAEtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OA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;CACF,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CAAC;IACtD,OAAO,EAAE,uBAAuB;IAChC,YAAY,EAAE,mBAAmB;IACjC,KAAK,EAAE,KAAK;CACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brand Colors on the Consent Screens
|
|
3
|
+
*
|
|
4
|
+
* A host's brand is operator data: a primary color, maybe a secondary, and
|
|
5
|
+
* maybe the page's own colors (card, panel, border, text, quieter text, focus
|
|
6
|
+
* ring). These turn it into the `--cs-*` properties the screens read, each
|
|
7
|
+
* one checked so it reads:
|
|
8
|
+
*
|
|
9
|
+
* - a word in the brand (an action) reaches 4.5:1 (WCAG 1.4.3) on the card
|
|
10
|
+
* and on the brand's tint, else it is drawn in the text color;
|
|
11
|
+
* - a mark or focus ring in the brand reaches 3:1 (WCAG 1.4.11), else the
|
|
12
|
+
* text color;
|
|
13
|
+
* - an icon in the secondary keeps its hue and moves darker or lighter,
|
|
14
|
+
* whichever is nearer, until it reaches 3:1 on every surface an icon sits on;
|
|
15
|
+
* - a page color that would not read is dropped, and the theme's is drawn.
|
|
16
|
+
*
|
|
17
|
+
* `brandTokens(brand)` returns the properties; set them on any element above
|
|
18
|
+
* the screens (a style attribute is enough) and the screens take them.
|
|
19
|
+
* Everything here is pure: importing it defines no element.
|
|
20
|
+
*
|
|
21
|
+
* Unless a brand chooses its own page colors, these judge against the light
|
|
22
|
+
* theme's surfaces.
|
|
23
|
+
*
|
|
24
|
+
* @module @kya-os/consent/styles/brand
|
|
25
|
+
*/
|
|
26
|
+
/** WCAG 1.4.11's ratio for a graphic or a focus indicator. */
|
|
27
|
+
export declare const AA_GRAPHIC_CONTRAST = 3;
|
|
28
|
+
/** The share of the primary in an icon's tile. */
|
|
29
|
+
export declare const ICON_TILE_PERCENT = 8;
|
|
30
|
+
/** The share of the primary in a hovered row under that tile. */
|
|
31
|
+
export declare const HOVERED_ROW_PERCENT = 4;
|
|
32
|
+
/** The share of the text in the quieter text the page draws from it. */
|
|
33
|
+
export declare const MUTED_TEXT_PERCENT = 64;
|
|
34
|
+
/** The share of the text in a panel made for a chosen card with no panel chosen. */
|
|
35
|
+
export declare const PANEL_TINT_PERCENT = 4;
|
|
36
|
+
/** What the page draws where a brand chooses nothing: the light theme. */
|
|
37
|
+
export interface DrawnColors {
|
|
38
|
+
/** The card. */
|
|
39
|
+
surface: string;
|
|
40
|
+
/** The panel inside the card, such as the revocation notice. */
|
|
41
|
+
panel: string;
|
|
42
|
+
/** The text. */
|
|
43
|
+
text: string;
|
|
44
|
+
/** The quieter text, drawn when the brand chooses no text of its own. */
|
|
45
|
+
mutedText: string;
|
|
46
|
+
}
|
|
47
|
+
/** The light theme's own colors, all `#rrggbb`. */
|
|
48
|
+
export declare const LIGHT_DRAWN_COLORS: Readonly<DrawnColors>;
|
|
49
|
+
/** The page colors a brand may choose, one color per field. */
|
|
50
|
+
export declare const PALETTE_FIELDS: readonly ["surfaceColor", "panelColor", "borderColor", "textColor", "mutedTextColor", "focusColor"];
|
|
51
|
+
export type PaletteField = (typeof PALETTE_FIELDS)[number];
|
|
52
|
+
/** The page colors a brand chose, each `#rrggbb`. A field it did not choose is absent. */
|
|
53
|
+
export type ConsentPalette = Partial<Record<PaletteField, string>>;
|
|
54
|
+
/** One pair of the page's colors that does not reach the contrast it needs. */
|
|
55
|
+
export interface PaletteFailure {
|
|
56
|
+
/** What is drawn: the brand's color, or the page's own when the brand chose none. */
|
|
57
|
+
foreground: "textColor" | "mutedTextColor" | "focusColor";
|
|
58
|
+
/** What it is drawn on, the same way. */
|
|
59
|
+
background: "surfaceColor" | "panelColor";
|
|
60
|
+
/** The pair's contrast, rounded down to two places so it never reads as its need. */
|
|
61
|
+
ratio: number;
|
|
62
|
+
/** What the pair must reach: 4.5 for text, 3 for the focus ring. */
|
|
63
|
+
needs: number;
|
|
64
|
+
}
|
|
65
|
+
/** A brand as `brandTokens` takes it: every color `#rrggbb`. */
|
|
66
|
+
export interface ConsentBrandColors extends ConsentPalette {
|
|
67
|
+
/** The brand color: the primary action, the tint, and marks that read in it. */
|
|
68
|
+
primaryColor: string;
|
|
69
|
+
/** A color the brand chose for icons. Absent: icons keep the theme's colors. */
|
|
70
|
+
secondaryColor?: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* `top` at `percent` over the opaque `under`, as a browser composites it
|
|
74
|
+
* (both `#rrggbb`).
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* mixOver("#000000", 50, "#ffffff"); // "#808080"
|
|
78
|
+
*/
|
|
79
|
+
export declare function mixOver(top: string, percent: number, under: string): string;
|
|
80
|
+
/**
|
|
81
|
+
* What an icon is drawn in, for a chosen secondary (`hex`) under a primary:
|
|
82
|
+
* the secondary itself when it shows at 3:1 on everything an icon sits on
|
|
83
|
+
* (the card, the panel, and the primary's icon tile at rest and on a hovered
|
|
84
|
+
* row), else the same hue and saturation at the nearest lightness that does,
|
|
85
|
+
* darker or lighter. Light surfaces push it darker and dark ones lighter, so a
|
|
86
|
+
* dark palette gets a light icon. When no lightness shows on all of them, the
|
|
87
|
+
* icon is black or white, whichever reads better on the worst of them.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* iconColorFor("#1e3a5f", "#111111"); // "#1e3a5f", it already shows
|
|
91
|
+
* iconColorFor("#b08d57", "#111111"); // a darker gold
|
|
92
|
+
* iconColorFor("#333344", "#2563eb", { surface: "#1b1d24", panel: "#25272e" });
|
|
93
|
+
* // a lighter slate
|
|
94
|
+
*/
|
|
95
|
+
export declare function iconColorFor(hex: string, primary: string, drawn?: Pick<DrawnColors, "surface" | "panel">): string;
|
|
96
|
+
/**
|
|
97
|
+
* What a focus ring on the card is drawn in: the brand when it shows on the
|
|
98
|
+
* card at 3:1, else the text color. A light brand (#ffd23f is 1.44:1 on
|
|
99
|
+
* white) gets the text color.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* focusRingFor("#1e3a5f"); // "brand"
|
|
103
|
+
* focusRingFor("#ffd23f"); // "ink"
|
|
104
|
+
*/
|
|
105
|
+
export declare function focusRingFor(hex: string, surface?: string): "brand" | "ink";
|
|
106
|
+
/**
|
|
107
|
+
* What words in the brand are drawn in (a link, the agent's name): the brand
|
|
108
|
+
* when it reads at 4.5:1 on the card and on its tint, else the text color.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* actionColorFor("#1e3a5f"); // "brand"
|
|
112
|
+
* actionColorFor("#2b9348"); // "ink", 3.91:1 on white
|
|
113
|
+
*/
|
|
114
|
+
export declare function actionColorFor(hex: string, surface?: string): "brand" | "ink";
|
|
115
|
+
/**
|
|
116
|
+
* What marks in the brand are drawn in (a shield, the icons in the details):
|
|
117
|
+
* the brand when it shows at 3:1 on the card and on its tint, else the text
|
|
118
|
+
* color.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* markColorFor("#2b9348"); // "brand", 3.91:1 on white
|
|
122
|
+
* markColorFor("#ffd23f"); // "ink"
|
|
123
|
+
*/
|
|
124
|
+
export declare function markColorFor(hex: string, surface?: string): "brand" | "ink";
|
|
125
|
+
/** Black or white, whichever reads better on `hex`; a tie gives black. */
|
|
126
|
+
export declare function onPrimaryFor(hex: string): "black" | "white";
|
|
127
|
+
/**
|
|
128
|
+
* Every pair of the page's colors that would not read: the text and the
|
|
129
|
+
* quieter text at 4.5:1 and the focus ring at 3:1, each on the card and on
|
|
130
|
+
* the panel. A color the brand did not choose is judged as the page draws it
|
|
131
|
+
* (`drawn`, the light theme unless given). The border is decorative and has
|
|
132
|
+
* no ratio to meet.
|
|
133
|
+
*
|
|
134
|
+
* An editor can use the list to refuse a pair before it is saved;
|
|
135
|
+
* `drawablePalette` drops what fails.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* paletteFailures({ surfaceColor: "#f8f5f0", textColor: "#2f3440", mutedTextColor: "#5a5f6a" });
|
|
139
|
+
* // []
|
|
140
|
+
* paletteFailures({ surfaceColor: "#1b1d24" });
|
|
141
|
+
* // [{ foreground: "textColor", background: "surfaceColor", ratio: 1.11, needs: 4.5 }, ...]
|
|
142
|
+
*/
|
|
143
|
+
export declare function paletteFailures(palette: ConsentPalette, drawn?: Partial<DrawnColors>): PaletteFailure[];
|
|
144
|
+
/**
|
|
145
|
+
* The part of a chosen palette the page can draw. The card, the panel and the
|
|
146
|
+
* text on them stand or fall together: dropping one alone could leave the
|
|
147
|
+
* rest unreadable (light text kept on a dark card that was dropped), so a
|
|
148
|
+
* failing pair among them leaves the theme's look for all four. The focus
|
|
149
|
+
* ring is then judged on what is kept, and dropped alone. The border needs no
|
|
150
|
+
* ratio.
|
|
151
|
+
*/
|
|
152
|
+
export declare function drawablePalette(chosen: ConsentPalette, drawn?: Partial<DrawnColors>): ConsentPalette;
|
|
153
|
+
/** The custom properties `brandTokens` returns. */
|
|
154
|
+
export type BrandTokens = Record<`--cs-${string}` | `--consent-${string}`, string>;
|
|
155
|
+
/**
|
|
156
|
+
* The custom properties that draw a brand on the consent screens. Set them on
|
|
157
|
+
* any element above the screens: the screens take a property the page sets
|
|
158
|
+
* over their theme's own.
|
|
159
|
+
*
|
|
160
|
+
* - The brand fills the primary action and the selected checkboxes, with
|
|
161
|
+
* black or white on it, whichever reads.
|
|
162
|
+
* - The tint (`--cs-tint`, `--cs-tint-line`) is the brand over the card.
|
|
163
|
+
* - Marks, actions (and `--consent-link`, the older primitives' links) and
|
|
164
|
+
* the focus ring are the brand where it reads, else the text color.
|
|
165
|
+
* - Icons are the secondary, made darker or lighter to read, when the brand
|
|
166
|
+
* has one.
|
|
167
|
+
* - The page colors are drawn where they read ({@link drawablePalette}).
|
|
168
|
+
*
|
|
169
|
+
* @throws RangeError when a color is not `#rrggbb`.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* brandTokens({ primaryColor: "#1e3a5f" });
|
|
173
|
+
* // { "--consent-primary": "#1e3a5f", "--cs-surface-accent": "#1e3a5f",
|
|
174
|
+
* // "--cs-tint": "#eef0f3", "--cs-mark": "#1e3a5f", ... }
|
|
175
|
+
*/
|
|
176
|
+
export declare function brandTokens(brand: ConsentBrandColors): BrandTokens;
|
|
177
|
+
/**
|
|
178
|
+
* `brandTokens(brand)` as a declaration list for a style attribute.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* `<main style="${brandStyle({ primaryColor: "#1e3a5f" })}">`
|
|
182
|
+
*/
|
|
183
|
+
export declare function brandStyle(brand: ConsentBrandColors): string;
|
|
184
|
+
//# sourceMappingURL=brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../../src/styles/brand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAKH,8DAA8D;AAC9D,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAIrC,kDAAkD;AAClD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,iEAAiE;AACjE,eAAO,MAAM,mBAAmB,IAAI,CAAC;AACrC,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAIpC,0EAA0E;AAC1E,MAAM,WAAW,WAAW;IAC1B,gBAAgB;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAKnD,CAAC;AAEH,+DAA+D;AAC/D,eAAO,MAAM,cAAc,qGAOjB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAA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