@fluentui/tokens 0.0.0-nightly-20230616-0414.1 → 0.0.0-nightly-20230620-0414.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/CHANGELOG.json CHANGED
@@ -2,9 +2,9 @@
2
2
  "name": "@fluentui/tokens",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 16 Jun 2023 04:19:23 GMT",
6
- "tag": "@fluentui/tokens_v0.0.0-nightly-20230616-0414.1",
7
- "version": "0.0.0-nightly-20230616-0414.1",
5
+ "date": "Tue, 20 Jun 2023 04:19:58 GMT",
6
+ "tag": "@fluentui/tokens_v0.0.0-nightly-20230620-0414.1",
7
+ "version": "0.0.0-nightly-20230620-0414.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
package/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Change Log - @fluentui/tokens
2
2
 
3
- This log was last generated on Fri, 16 Jun 2023 04:19:23 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 20 Jun 2023 04:19:58 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20230616-0414.1](https://github.com/microsoft/fluentui/tree/@fluentui/tokens_v0.0.0-nightly-20230616-0414.1)
7
+ ## [0.0.0-nightly-20230620-0414.1](https://github.com/microsoft/fluentui/tree/@fluentui/tokens_v0.0.0-nightly-20230620-0414.1)
8
8
 
9
- Fri, 16 Jun 2023 04:19:23 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/tokens_v1.0.0-alpha.5..@fluentui/tokens_v0.0.0-nightly-20230616-0414.1)
9
+ Tue, 20 Jun 2023 04:19:58 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/tokens_v1.0.0-alpha.5..@fluentui/tokens_v0.0.0-nightly-20230620-0414.1)
11
11
 
12
12
  ### Changes
13
13
 
@@ -9,7 +9,7 @@
9
9
  const tokens = {};
10
10
  const keys = Object.keys(theme);
11
11
  for (const key of keys){
12
- tokens[key] = `var(--${key})`;
12
+ tokens[key] = `var(--${String(key)})`;
13
13
  }
14
14
  return tokens;
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["themeToTokensObject.ts"],"sourcesContent":["import { Theme } from './types';\n\n/**\n * Programmatically generates a tokens to css variables mapping object from the keys in a theme.\n * This helps with ease of use as a user of a custom theme does not have to manually construct this object, but it could\n * affect tree-shaking since bundlers do not know the shape of the output.\n *\n * @param theme - Theme from which to get the keys to generate the tokens to css variables mapping object\n * @returns Tokens to css variables mapping object corresponding to the passed theme\n */\nexport function themeToTokensObject<TTheme extends Theme>(theme: TTheme): Record<keyof TTheme, string> {\n const tokens = {} as Record<keyof TTheme, string>;\n const keys = Object.keys(theme) as (keyof TTheme)[];\n for (const key of keys) {\n tokens[key] = `var(--${key})`;\n }\n return tokens;\n}\n"],"names":["themeToTokensObject","theme","tokens","keys","Object","key"],"mappings":"AAEA;;;;;;;CAOC,GACD,OAAO,SAASA,oBAA0CC,KAAa,EAAgC;IACrG,MAAMC,SAAS,CAAC;IAChB,MAAMC,OAAOC,OAAOD,IAAI,CAACF;IACzB,KAAK,MAAMI,OAAOF,KAAM;QACtBD,MAAM,CAACG,IAAI,GAAG,CAAC,MAAM,EAAEA,IAAI,CAAC,CAAC;IAC/B;IACA,OAAOH;AACT,CAAC"}
1
+ {"version":3,"sources":["themeToTokensObject.ts"],"sourcesContent":["import { Theme } from './types';\n\n/**\n * Programmatically generates a tokens to css variables mapping object from the keys in a theme.\n * This helps with ease of use as a user of a custom theme does not have to manually construct this object, but it could\n * affect tree-shaking since bundlers do not know the shape of the output.\n *\n * @param theme - Theme from which to get the keys to generate the tokens to css variables mapping object\n * @returns Tokens to css variables mapping object corresponding to the passed theme\n */\nexport function themeToTokensObject<TTheme extends Theme>(theme: TTheme): Record<keyof TTheme, string> {\n const tokens = {} as Record<keyof TTheme, string>;\n const keys = Object.keys(theme) as (keyof TTheme)[];\n for (const key of keys) {\n tokens[key] = `var(--${String(key)})`;\n }\n return tokens;\n}\n"],"names":["themeToTokensObject","theme","tokens","keys","Object","key","String"],"mappings":"AAEA;;;;;;;CAOC,GACD,OAAO,SAASA,oBAA0CC,KAAa,EAAgC;IACrG,MAAMC,SAAS,CAAC;IAChB,MAAMC,OAAOC,OAAOD,IAAI,CAACF;IACzB,KAAK,MAAMI,OAAOF,KAAM;QACtBD,MAAM,CAACG,IAAI,GAAG,CAAC,MAAM,EAAEC,OAAOD,KAAK,CAAC,CAAC;IACvC;IACA,OAAOH;AACT,CAAC"}
@@ -17,7 +17,7 @@ function themeToTokensObject(theme) {
17
17
  const tokens = {};
18
18
  const keys = Object.keys(theme);
19
19
  for (const key of keys){
20
- tokens[key] = `var(--${key})`;
20
+ tokens[key] = `var(--${String(key)})`;
21
21
  }
22
22
  return tokens;
23
23
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["themeToTokensObject.js"],"sourcesContent":["/**\n * Programmatically generates a tokens to css variables mapping object from the keys in a theme.\n * This helps with ease of use as a user of a custom theme does not have to manually construct this object, but it could\n * affect tree-shaking since bundlers do not know the shape of the output.\n *\n * @param theme - Theme from which to get the keys to generate the tokens to css variables mapping object\n * @returns Tokens to css variables mapping object corresponding to the passed theme\n */ export function themeToTokensObject(theme) {\n const tokens = {};\n const keys = Object.keys(theme);\n for (const key of keys){\n tokens[key] = `var(--${key})`;\n }\n return tokens;\n}\n"],"names":["themeToTokensObject","theme","tokens","keys","Object","key"],"mappings":"AAAA;;;;;;;CAOC;;;;+BAAmBA;;aAAAA;;AAAT,SAASA,oBAAoBC,KAAK,EAAE;IAC3C,MAAMC,SAAS,CAAC;IAChB,MAAMC,OAAOC,OAAOD,IAAI,CAACF;IACzB,KAAK,MAAMI,OAAOF,KAAK;QACnBD,MAAM,CAACG,IAAI,GAAG,CAAC,MAAM,EAAEA,IAAI,CAAC,CAAC;IACjC;IACA,OAAOH;AACX"}
1
+ {"version":3,"sources":["themeToTokensObject.js"],"sourcesContent":["/**\n * Programmatically generates a tokens to css variables mapping object from the keys in a theme.\n * This helps with ease of use as a user of a custom theme does not have to manually construct this object, but it could\n * affect tree-shaking since bundlers do not know the shape of the output.\n *\n * @param theme - Theme from which to get the keys to generate the tokens to css variables mapping object\n * @returns Tokens to css variables mapping object corresponding to the passed theme\n */ export function themeToTokensObject(theme) {\n const tokens = {};\n const keys = Object.keys(theme);\n for (const key of keys){\n tokens[key] = `var(--${String(key)})`;\n }\n return tokens;\n}\n"],"names":["themeToTokensObject","theme","tokens","keys","Object","key","String"],"mappings":"AAAA;;;;;;;CAOC;;;;+BAAmBA;;aAAAA;;AAAT,SAASA,oBAAoBC,KAAK,EAAE;IAC3C,MAAMC,SAAS,CAAC;IAChB,MAAMC,OAAOC,OAAOD,IAAI,CAACF;IACzB,KAAK,MAAMI,OAAOF,KAAK;QACnBD,MAAM,CAACG,IAAI,GAAG,CAAC,MAAM,EAAEC,OAAOD,KAAK,CAAC,CAAC;IACzC;IACA,OAAOH;AACX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/tokens",
3
- "version": "0.0.0-nightly-20230616-0414.1",
3
+ "version": "0.0.0-nightly-20230620-0414.1",
4
4
  "description": "Fluent UI Theme Tokens",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",