@tracaodev/design-tokens-vue 1.0.2 → 1.0.7

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.
@@ -0,0 +1,35 @@
1
+ declare const themes: {
2
+ readonly theme_1: {
3
+ readonly red: "pink";
4
+ readonly blue: "lightblue";
5
+ };
6
+ readonly theme_2: {
7
+ readonly red: "red";
8
+ readonly blue: "blue";
9
+ };
10
+ };
11
+ type Themes = typeof themes;
12
+ type ThemeKeys = keyof Themes;
13
+ type ThemeValues = Themes[ThemeKeys];
14
+ type TokenKeys = keyof ThemeValues;
15
+ /**
16
+ * The list of themes.
17
+ */
18
+ declare const themesList: ThemeKeys[];
19
+ /**
20
+ * The current theme.
21
+ */
22
+ declare const currentTheme: import("vue").Ref<"theme_2" | "theme_1", "theme_2" | "theme_1">;
23
+ /**
24
+ * Apply a theme.
25
+ * @param theme - The theme to apply.
26
+ */
27
+ declare const applyTheme: (theme: ThemeKeys) => void;
28
+ /**
29
+ * Get the value of a token.
30
+ * @param token - The token to get the value of.
31
+ * @returns The value of the token.
32
+ */
33
+ declare const dt: <T extends TokenKeys>(token: T) => ThemeValues[T];
34
+ export { currentTheme, themesList, dt, applyTheme, };
35
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/assets 13-30-59-658/tokens.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;CASF,CAAC;AAEX,KAAK,MAAM,GAAG,OAAO,MAAM,CAAC;AAC5B,KAAK,SAAS,GAAG,MAAM,MAAM,CAAC;AAC9B,KAAK,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AACrC,KAAK,SAAS,GAAG,MAAM,WAAW,CAAC;AAEnC;;GAEG;AACH,QAAA,MAAM,UAAU,EAA0B,SAAS,EAAE,CAAC;AAEtD;;GAEG;AACH,QAAA,MAAM,YAAY,iEAAgC,CAAC;AAInD;;;GAGG;AACH,QAAA,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,IAKtC,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,EAAE,GAAI,CAAC,SAAS,SAAS,EAAE,OAAO,CAAC,KAAG,WAAW,CAAC,CAAC,CAExD,CAAC;AAEF,OAAO,EACH,YAAY,EACZ,UAAU,EACV,EAAE,EACF,UAAU,GACb,CAAA"}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.2",
2
+ "version": "1.0.7",
3
3
  "description": "Package mô tả",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",