@equisoft/design-elements-react 10.4.2-snapshot.20260831131330 → 10.4.2-snapshot.20260901130211
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/dist/bundle.js +542 -542
- package/dist/components/device-context-provider/device-context-provider.d.ts +1 -1
- package/dist/components/theme-wrapper/theme-wrapper.d.ts +5 -2
- package/dist/index.d.ts +1 -2
- package/dist/theme.d.ts +1 -3
- package/dist/theme.js +1 -1
- package/dist/themes/build-theme.d.ts +10 -1
- package/dist/themes/equisoft.d.ts +2 -1
- package/dist/themes/index.d.ts +1 -1
- package/dist/themes/tokens/alias-tokens.d.ts +576 -0
- package/dist/themes/tokens/tokens.d.ts +7 -1
- package/package.json +2 -2
|
@@ -2,10 +2,16 @@ import type { AliasToken } from './alias-tokens';
|
|
|
2
2
|
import type { RefToken } from './ref-tokens';
|
|
3
3
|
export type TokenName = string;
|
|
4
4
|
export type TokenValue = string;
|
|
5
|
+
export type TokenContextValue = 'desktop' | 'tablet' | 'mobile';
|
|
6
|
+
export type TokenContext = TokenContextValue[];
|
|
5
7
|
export type TokenMap<T extends TokenName, V extends TokenValue> = {
|
|
6
8
|
[Name in T]: Exclude<V, Name>;
|
|
7
9
|
};
|
|
10
|
+
export type ContextualToken<T extends TokenName> = `${T}:${TokenContextValue}`;
|
|
11
|
+
export type ContextualTokenMap<T extends TokenName, V extends TokenValue> = TokenMap<T, V> & Partial<{
|
|
12
|
+
[Name in T as ContextualToken<Name>]: V;
|
|
13
|
+
}>;
|
|
8
14
|
export type ResolvedTokenMap<T extends TokenName> = TokenMap<T, TokenValue>;
|
|
9
15
|
export type RefTokenMap<T extends TokenName> = ResolvedTokenMap<T>;
|
|
10
|
-
export type AliasTokenMap<T extends TokenName> =
|
|
16
|
+
export type AliasTokenMap<T extends TokenName> = ContextualTokenMap<T, RefToken | AliasToken>;
|
|
11
17
|
export type ComponentTokenMap<T extends TokenName> = TokenMap<T, RefToken | AliasToken>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equisoft/design-elements-react",
|
|
3
|
-
"version": "10.4.2-snapshot.
|
|
3
|
+
"version": "10.4.2-snapshot.20260901130211",
|
|
4
4
|
"description": "React implementation of the Equisoft design system.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "dist/bundle.js",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"eslint-plugin-react": "7.37.5",
|
|
87
87
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
88
88
|
"expect": "30.4.1",
|
|
89
|
-
"i18next": "26.
|
|
89
|
+
"i18next": "26.4.0",
|
|
90
90
|
"jest": "30.4.2",
|
|
91
91
|
"jest-environment-jsdom": "30.4.1",
|
|
92
92
|
"jest-extended": "7.0.0",
|