@zappie/tokens 0.1.2 → 0.1.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @zappie/tokens
|
|
2
2
|
|
|
3
|
+
## 0.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b31a689: Build the declaration files with tsup 9. Type-only exports are now written as `export type { ... }` and shared declaration chunks have new file names. Foundations part props name their omitted attributes `PartOwnedAttributes`, so their declarations no longer depend on build order. Every entry point exports the same names with the same types. The JavaScript and source maps are unchanged.
|
|
8
|
+
|
|
3
9
|
## 0.1.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/checkout.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeJson, ThemeIssue } from './index.js';
|
|
2
2
|
|
|
3
3
|
declare const CHECKOUT_TOKENS: readonly ["--z-bg", "--z-surface", "--z-text", "--z-text-muted", "--z-accent", "--z-accent-contrast", "--z-border", "--z-danger", "--z-success", "--z-radius-md", "--z-radius-lg", "--z-font-body", "--z-font-display"];
|
|
4
4
|
/** A Google font the checkout loads itself; it can't reach the site's own font files. */
|
|
@@ -31,4 +31,5 @@ declare function toCheckoutTheme(theme: ThemeJson, opts?: {
|
|
|
31
31
|
onWarning?: (issue: ThemeIssue) => void;
|
|
32
32
|
}): CheckoutTheme;
|
|
33
33
|
|
|
34
|
-
export { CHECKOUT_TOKENS,
|
|
34
|
+
export { CHECKOUT_TOKENS, toCheckoutTheme };
|
|
35
|
+
export type { CheckoutFont, CheckoutTheme };
|
package/dist/compile.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ThemeJson, TokenName } from './index.js';
|
|
2
2
|
|
|
3
3
|
/** Fill every token; dark overrides inherit the theme's light values. Returns a fresh object. */
|
|
4
4
|
declare function resolveTokens(theme: ThemeJson, scheme: "light" | "dark"): Record<TokenName, string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as ThemeJson, a as TokenName } from './types-
|
|
2
|
-
export { C as COLOR_TOKENS, b as ColorToken, D as DURATION_TOKENS, E as EASING_TOKENS, F as FONT_TOKENS, L as LENGTH_TOKENS, M as MOTION_TOKENS, R as REQUIRED_TOKENS, c as TOKEN_NAMES, d as ThemeFont, e as ThemeIssue, f as ThemeValidation, g as TokenValues } from './types-
|
|
1
|
+
import { T as ThemeJson, a as TokenName } from './types-BqReFGIM.js';
|
|
2
|
+
export { C as COLOR_TOKENS, b as ColorToken, D as DURATION_TOKENS, E as EASING_TOKENS, F as FONT_TOKENS, L as LENGTH_TOKENS, M as MOTION_TOKENS, R as REQUIRED_TOKENS, c as TOKEN_NAMES, d as ThemeFont, e as ThemeIssue, f as ThemeValidation, g as TokenValues } from './types-BqReFGIM.js';
|
|
3
3
|
export { CheckoutFont, CheckoutTheme } from './checkout.js';
|
|
4
4
|
|
|
5
5
|
/** Host palette from styles/colors.ts; public fonts use a licence-free system stack. */
|
|
@@ -52,4 +52,5 @@ type ThemeValidation = {
|
|
|
52
52
|
issues: ThemeIssue[];
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
export { COLOR_TOKENS as C, DURATION_TOKENS as D, EASING_TOKENS as E, FONT_TOKENS as F, LENGTH_TOKENS as L, MOTION_TOKENS as M, REQUIRED_TOKENS as R,
|
|
55
|
+
export { COLOR_TOKENS as C, DURATION_TOKENS as D, EASING_TOKENS as E, FONT_TOKENS as F, LENGTH_TOKENS as L, MOTION_TOKENS as M, REQUIRED_TOKENS as R, TOKEN_NAMES as c };
|
|
56
|
+
export type { ThemeJson as T, TokenName as a, ColorToken as b, ThemeFont as d, ThemeIssue as e, ThemeValidation as f, TokenValues as g };
|
package/dist/validate.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as ThemeValidation } from './types-
|
|
2
|
-
export { e as ThemeIssue } from './types-
|
|
1
|
+
import { f as ThemeValidation } from './types-BqReFGIM.js';
|
|
2
|
+
export { e as ThemeIssue } from './types-BqReFGIM.js';
|
|
3
3
|
|
|
4
4
|
/** Validate untrusted theme JSON, including syntax, CSS injection and effective light/dark contrast. */
|
|
5
5
|
declare function validateTheme(input: unknown): ThemeValidation;
|