@hug/hospitality 1.0.0-alpha.30 → 1.0.0-alpha.31
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/fesm2022/tokens.mjs.map +1 -1
- package/package.json +1 -1
- package/types/tokens.d.ts +8 -2
package/fesm2022/tokens.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.mjs","sources":["../../tokens/index.ts","../../tokens/tokens.ts"],"sourcesContent":["import rawTokens from './tokens.json';\n\nexport interface Token {\n id: string;\n name: string;\n type: string;\n value: string | number;\n}\n\nexport interface TokenSystem {\n id?: string;\n name: string;\n type: string;\n reference: Token[];\n _referenceValue:\n | string\n | {\n weight: number;\n size: number;\n lineHeight: number;\n font: string;\n };\n}\n\nexport interface ReferencesTokens {\n references: Token[];\n}\n\nexport interface Tokens extends ReferencesTokens {\n systems: {\n light: TokenSystem[];\n dark: TokenSystem[];\n } | TokenSystem[];\n}\n\nconst tokens: {\n colors:
|
|
1
|
+
{"version":3,"file":"tokens.mjs","sources":["../../tokens/index.ts","../../tokens/tokens.ts"],"sourcesContent":["import rawTokens from './tokens.json';\n\nexport interface Token {\n id: string;\n name: string;\n type: string;\n value: string | number;\n}\n\nexport interface TokenSystem {\n id?: string;\n name: string;\n type: string;\n reference: Token[];\n _referenceValue:\n | string\n | {\n weight: number;\n size: number;\n lineHeight: number;\n font: string;\n };\n}\n\nexport interface ReferencesTokens {\n references: Token[];\n}\n\nexport interface Tokens extends ReferencesTokens {\n systems: {\n light: TokenSystem[];\n dark: TokenSystem[];\n } | TokenSystem[];\n}\n\nexport interface ColorsTokens extends Tokens {\n palettes: {\n light: Token[];\n dark: Token[];\n };\n}\n\nconst tokens: {\n colors: ColorsTokens;\n typographies: Tokens;\n radius: ReferencesTokens;\n spacing: ReferencesTokens;\n stateLayers: ReferencesTokens;\n} = rawTokens;\n\nexport { tokens };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nex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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,MAAM,MAAM,GAMR;;AChDJ;;AAEG;;;;"}
|
package/package.json
CHANGED
package/types/tokens.d.ts
CHANGED
|
@@ -25,8 +25,14 @@ interface Tokens extends ReferencesTokens {
|
|
|
25
25
|
dark: TokenSystem[];
|
|
26
26
|
} | TokenSystem[];
|
|
27
27
|
}
|
|
28
|
+
interface ColorsTokens extends Tokens {
|
|
29
|
+
palettes: {
|
|
30
|
+
light: Token[];
|
|
31
|
+
dark: Token[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
28
34
|
declare const tokens: {
|
|
29
|
-
colors:
|
|
35
|
+
colors: ColorsTokens;
|
|
30
36
|
typographies: Tokens;
|
|
31
37
|
radius: ReferencesTokens;
|
|
32
38
|
spacing: ReferencesTokens;
|
|
@@ -34,4 +40,4 @@ declare const tokens: {
|
|
|
34
40
|
};
|
|
35
41
|
|
|
36
42
|
export { tokens };
|
|
37
|
-
export type { ReferencesTokens, Token, TokenSystem, Tokens };
|
|
43
|
+
export type { ColorsTokens, ReferencesTokens, Token, TokenSystem, Tokens };
|