@mittwald/flow-react-components 1.0.14 → 1.0.16

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.
@@ -1,8 +1,8 @@
1
1
  "use client"
2
2
  /* */
3
3
  import { useResolvedTheme } from "./useResolvedTheme.mjs";
4
- import all_light_default from "../../../../../design-tokens/dist/json/all-light.mjs";
5
- import all_dark_default from "../../../../../design-tokens/dist/json/all-dark.mjs";
4
+ import all_light_default from "../../../../../design-tokens/dist/json-runtime/all-light.mjs";
5
+ import all_dark_default from "../../../../../design-tokens/dist/json-runtime/all-dark.mjs";
6
6
  //#region src/lib/theming/hooks/useDesignTokens.ts
7
7
  var useDesignTokens = () => {
8
8
  return useResolvedTheme() === "light" ? all_light_default : all_dark_default;
@@ -1 +1 @@
1
- {"version":3,"file":"useDesignTokens.mjs","names":[],"sources":["../../../../../../../../src/lib/theming/hooks/useDesignTokens.ts"],"sourcesContent":["import lightTokens from \"@mittwald/flow-design-tokens/json/all-light.json\";\nimport darkTokens from \"@mittwald/flow-design-tokens/json/all-dark.json\";\nimport { useResolvedTheme } from \"./useResolvedTheme\";\n\nexport const useDesignTokens = () => {\n const theme = useResolvedTheme();\n return theme === \"light\" ? lightTokens : darkTokens;\n};\n"],"mappings":";;;;;;AAIA,IAAa,wBAAwB;CAEnC,OADc,iBACP,MAAU,UAAU,oBAAc;AAC3C"}
1
+ {"version":3,"file":"useDesignTokens.mjs","names":[],"sources":["../../../../../../../../src/lib/theming/hooks/useDesignTokens.ts"],"sourcesContent":["import lightTokens from \"@mittwald/flow-design-tokens/json-runtime/all-light.json\";\nimport darkTokens from \"@mittwald/flow-design-tokens/json-runtime/all-dark.json\";\nimport { useResolvedTheme } from \"./useResolvedTheme\";\n\nexport const useDesignTokens = () => {\n const theme = useResolvedTheme();\n return theme === \"light\" ? lightTokens : darkTokens;\n};\n"],"mappings":";;;;;;AAIA,IAAa,wBAAwB;CAEnC,OADc,iBACP,MAAU,UAAU,oBAAc;AAC3C"}
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  /* */
3
- import all_light_default from "../../../../design-tokens/dist/json/all-light.mjs";
3
+ import all_light_default from "../../../../design-tokens/dist/json-runtime/all-light.mjs";
4
4
  //#region src/lib/tokens/CategoricalColors.ts
5
5
  var categoricalColors = Object.keys(all_light_default.color.categorical);
6
6
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"CategoricalColors.mjs","names":[],"sources":["../../../../../../../src/lib/tokens/CategoricalColors.ts"],"sourcesContent":["import tokens from \"@mittwald/flow-design-tokens/json/all-light.json\";\n\nexport const categoricalColors = Object.keys(\n tokens.color.categorical,\n) as (keyof typeof tokens.color.categorical)[];\n\nexport type CategoricalColor = (typeof categoricalColors)[number];\nexport type CategoricalWithCustomColor = CategoricalColor | (string & {});\n"],"mappings":";;;;AAEA,IAAa,oBAAoB,OAAO,KACtC,kBAAO,MAAM,WACf"}
1
+ {"version":3,"file":"CategoricalColors.mjs","names":[],"sources":["../../../../../../../src/lib/tokens/CategoricalColors.ts"],"sourcesContent":["import tokens from \"@mittwald/flow-design-tokens/json-runtime/all-light.json\";\n\nexport const categoricalColors = Object.keys(\n tokens.color.categorical,\n) as (keyof typeof tokens.color.categorical)[];\n\nexport type CategoricalColor = (typeof categoricalColors)[number];\nexport type CategoricalWithCustomColor = CategoricalColor | (string & {});\n"],"mappings":";;;;AAEA,IAAa,oBAAoB,OAAO,KACtC,kBAAO,MAAM,WACf"}