@digdir/designsystemet 0.1.0-alpha.9 → 0.1.0-next.21

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.
Files changed (114) hide show
  1. package/dist/bin/designsystemet.js +34 -0
  2. package/dist/src/colors/colorUtils.js +242 -0
  3. package/dist/src/colors/index.js +3 -0
  4. package/dist/src/colors/themeUtils.js +245 -0
  5. package/dist/src/colors/types.js +0 -0
  6. package/dist/src/init/createTokensPackage.js +250 -0
  7. package/dist/src/init/generateMetadataJson.js +19 -0
  8. package/dist/src/init/generateThemesJson.js +52 -0
  9. package/dist/src/init/index.js +10 -0
  10. package/dist/src/init/nextStepsMarkdown.js +92 -0
  11. package/dist/src/init/template/default-files/README.md +10 -0
  12. package/dist/src/init/template/default-files/design-tokens/README.md +3 -0
  13. package/dist/src/init/template/default-files/design-tokens/primitives/globals.json +197 -0
  14. package/dist/src/init/template/default-files/design-tokens/primitives/typography/default.json +86 -0
  15. package/dist/src/init/template/default-files/design-tokens/semantic/color.json +562 -0
  16. package/dist/src/init/template/default-files/design-tokens/semantic/style.json +543 -0
  17. package/dist/src/init/template/prettier.config.js +5 -0
  18. package/dist/src/init/template/template-files/design-tokens/primitives/colors/contrast/global.json +376 -0
  19. package/dist/src/init/template/template-files/design-tokens/primitives/colors/contrast/theme-template.json +314 -0
  20. package/dist/src/init/template/template-files/design-tokens/primitives/colors/dark/global.json +376 -0
  21. package/dist/src/init/template/template-files/design-tokens/primitives/colors/dark/theme-template.json +314 -0
  22. package/dist/src/init/template/template-files/design-tokens/primitives/colors/light/global.json +376 -0
  23. package/dist/src/init/template/template-files/design-tokens/primitives/colors/light/theme-template.json +314 -0
  24. package/dist/src/init/template/template-files/design-tokens/themes/theme-template.json +314 -0
  25. package/dist/src/init/template/template-files/package.json +24 -0
  26. package/dist/src/init/utils.js +15 -0
  27. package/dist/src/migrations/beta-to-v1.js +344 -0
  28. package/dist/src/migrations/codemods/css/plugins.js +47 -0
  29. package/dist/src/migrations/codemods/css/run.js +19 -0
  30. package/dist/src/migrations/codemods/jsx/classname-prefix.js +63 -0
  31. package/dist/src/migrations/codemods/jsx/run.js +22 -0
  32. package/dist/src/migrations/index.js +9 -0
  33. package/dist/src/migrations/react-beta-to-v1.js +5 -0
  34. package/dist/src/tokens/actions.js +33 -0
  35. package/dist/src/tokens/build.js +74 -0
  36. package/dist/src/tokens/configs.js +223 -0
  37. package/dist/src/tokens/formats/css.js +170 -0
  38. package/dist/src/tokens/formats/js-tokens.js +31 -0
  39. package/dist/src/tokens/transformers.js +47 -0
  40. package/dist/src/tokens/utils/noCase.js +24 -0
  41. package/dist/src/tokens/utils/permutateThemes.js +64 -0
  42. package/dist/src/tokens/utils/utils.js +14 -0
  43. package/package.json +21 -13
  44. package/LICENSE +0 -7
  45. package/dist/build/bin/designsystemet.js +0 -50
  46. package/dist/build/src/colors/colorUtils.js +0 -314
  47. package/dist/build/src/colors/index.js +0 -3
  48. package/dist/build/src/colors/themeUtils.js +0 -290
  49. package/dist/build/src/colors/types.js +0 -1
  50. package/dist/build/src/migrations/beta-to-v1.js +0 -341
  51. package/dist/build/src/migrations/codemods/css/plugins.js +0 -45
  52. package/dist/build/src/migrations/codemods/css/run.js +0 -17
  53. package/dist/build/src/migrations/codemods/jsx/classname-prefix.js +0 -80
  54. package/dist/build/src/migrations/codemods/jsx/run.js +0 -19
  55. package/dist/build/src/migrations/index.js +0 -6
  56. package/dist/build/src/migrations/react-beta-to-v1.js +0 -2
  57. package/dist/build/src/test/jsx-test.js +0 -10
  58. package/dist/build/src/tokens/actions.js +0 -20
  59. package/dist/build/src/tokens/build.js +0 -63
  60. package/dist/build/src/tokens/configs.js +0 -229
  61. package/dist/build/src/tokens/formats/css-classes.js +0 -50
  62. package/dist/build/src/tokens/formats/css-variables.js +0 -39
  63. package/dist/build/src/tokens/formats/js-tokens.js +0 -29
  64. package/dist/build/src/tokens/transformers.js +0 -42
  65. package/dist/build/src/tokens/utils/noCase.js +0 -30
  66. package/dist/build/src/tokens/utils/permutateThemes.js +0 -56
  67. package/dist/build/src/tokens/utils/utils.js +0 -21
  68. package/dist/build/tsconfig.tsbuildinfo +0 -1
  69. package/dist/types/bin/designsystemet.d.ts +0 -3
  70. package/dist/types/bin/designsystemet.d.ts.map +0 -1
  71. package/dist/types/src/colors/colorUtils.d.ts +0 -118
  72. package/dist/types/src/colors/colorUtils.d.ts.map +0 -1
  73. package/dist/types/src/colors/index.d.ts +0 -4
  74. package/dist/types/src/colors/index.d.ts.map +0 -1
  75. package/dist/types/src/colors/themeUtils.d.ts +0 -101
  76. package/dist/types/src/colors/themeUtils.d.ts.map +0 -1
  77. package/dist/types/src/colors/types.d.ts +0 -16
  78. package/dist/types/src/colors/types.d.ts.map +0 -1
  79. package/dist/types/src/migrations/beta-to-v1.d.ts +0 -3
  80. package/dist/types/src/migrations/beta-to-v1.d.ts.map +0 -1
  81. package/dist/types/src/migrations/codemods/css/plugins.d.ts +0 -6
  82. package/dist/types/src/migrations/codemods/css/plugins.d.ts.map +0 -1
  83. package/dist/types/src/migrations/codemods/css/run.d.ts +0 -8
  84. package/dist/types/src/migrations/codemods/css/run.d.ts.map +0 -1
  85. package/dist/types/src/migrations/codemods/jsx/classname-prefix.d.ts +0 -10
  86. package/dist/types/src/migrations/codemods/jsx/classname-prefix.d.ts.map +0 -1
  87. package/dist/types/src/migrations/codemods/jsx/run.d.ts +0 -7
  88. package/dist/types/src/migrations/codemods/jsx/run.d.ts.map +0 -1
  89. package/dist/types/src/migrations/index.d.ts +0 -6
  90. package/dist/types/src/migrations/index.d.ts.map +0 -1
  91. package/dist/types/src/migrations/react-beta-to-v1.d.ts +0 -3
  92. package/dist/types/src/migrations/react-beta-to-v1.d.ts.map +0 -1
  93. package/dist/types/src/test/jsx-test.d.ts +0 -4
  94. package/dist/types/src/test/jsx-test.d.ts.map +0 -1
  95. package/dist/types/src/tokens/actions.d.ts +0 -3
  96. package/dist/types/src/tokens/actions.d.ts.map +0 -1
  97. package/dist/types/src/tokens/build.d.ts +0 -11
  98. package/dist/types/src/tokens/build.d.ts.map +0 -1
  99. package/dist/types/src/tokens/configs.d.ts +0 -23
  100. package/dist/types/src/tokens/configs.d.ts.map +0 -1
  101. package/dist/types/src/tokens/formats/css-classes.d.ts +0 -6
  102. package/dist/types/src/tokens/formats/css-classes.d.ts.map +0 -1
  103. package/dist/types/src/tokens/formats/css-variables.d.ts +0 -3
  104. package/dist/types/src/tokens/formats/css-variables.d.ts.map +0 -1
  105. package/dist/types/src/tokens/formats/js-tokens.d.ts +0 -6
  106. package/dist/types/src/tokens/formats/js-tokens.d.ts.map +0 -1
  107. package/dist/types/src/tokens/transformers.d.ts +0 -5
  108. package/dist/types/src/tokens/transformers.d.ts.map +0 -1
  109. package/dist/types/src/tokens/utils/noCase.d.ts +0 -11
  110. package/dist/types/src/tokens/utils/noCase.d.ts.map +0 -1
  111. package/dist/types/src/tokens/utils/permutateThemes.d.ts +0 -7
  112. package/dist/types/src/tokens/utils/permutateThemes.d.ts.map +0 -1
  113. package/dist/types/src/tokens/utils/utils.d.ts +0 -17
  114. package/dist/types/src/tokens/utils/utils.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/colors/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,KAAK,CAAC;AACxC,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAC1F,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC9E,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,QAAQ,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AACF,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,QAAQ,EAAE,SAAS,EAAE,CAAC;CACvB,CAAC"}
@@ -1,3 +0,0 @@
1
- declare const _default: (glob?: string) => Promise<void>;
2
- export default _default;
3
- //# sourceMappingURL=beta-to-v1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beta-to-v1.d.ts","sourceRoot":"","sources":["../../../../src/migrations/beta-to-v1.ts"],"names":[],"mappings":"gCAGuB,MAAM;AAA7B,wBAmVK"}
@@ -1,6 +0,0 @@
1
- import type { Plugin } from 'postcss';
2
- type PluginGenerator = (dictionary: Record<string, string>) => Plugin;
3
- export declare const cssClassRename: PluginGenerator;
4
- export declare const cssVarRename: PluginGenerator;
5
- export {};
6
- //# sourceMappingURL=plugins.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../../../src/migrations/codemods/css/plugins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,SAAS,CAAC;AAInD,KAAK,eAAe,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;AAOtE,eAAO,MAAM,cAAc,EAAE,eAe3B,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,eA6BzB,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { AcceptedPlugin } from 'postcss';
2
- type CssCodemodProps = {
3
- plugins: AcceptedPlugin[];
4
- globPattern?: string;
5
- };
6
- export declare const runCssCodemod: ({ plugins, globPattern }: CssCodemodProps) => Promise<void>;
7
- export {};
8
- //# sourceMappingURL=run.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../../../src/migrations/codemods/css/run.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,aAAa,6BAAwD,eAAe,kBAkBhG,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { API, FileInfo } from 'jscodeshift';
2
- /**
3
- * Replace all class prefixes from 'fds-' to 'ds-'
4
- * @param file
5
- * @param api
6
- * @returns
7
- */
8
- declare function replaceClassNamePrefix(file: FileInfo, api: API): string | undefined;
9
- export default replaceClassNamePrefix;
10
- //# sourceMappingURL=classname-prefix.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"classname-prefix.d.ts","sourceRoot":"","sources":["../../../../../../src/migrations/codemods/jsx/classname-prefix.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAmB,MAAM,aAAa,CAAC;AAoElE;;;;;GAKG;AACH,iBAAS,sBAAsB,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,SAAS,CAiB5E;AAED,eAAe,sBAAsB,CAAC"}
@@ -1,7 +0,0 @@
1
- type CssCodemodProps = {
2
- globPattern?: string;
3
- dry?: boolean;
4
- };
5
- export declare const runJSXCodemod: ({ globPattern, dry }: CssCodemodProps) => Promise<void>;
6
- export {};
7
- //# sourceMappingURL=run.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../../../src/migrations/codemods/jsx/run.ts"],"names":[],"mappings":"AAKA,KAAK,eAAe,GAAG;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAIF,eAAO,MAAM,aAAa,yBAA+C,eAAe,kBAiBvF,CAAC"}
@@ -1,6 +0,0 @@
1
- declare const _default: {
2
- 'css-beta-to-v1': (glob?: string | undefined) => Promise<void>;
3
- 'react-beta-to-v1': (glob?: string | undefined) => Promise<void>;
4
- };
5
- export default _default;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/migrations/index.ts"],"names":[],"mappings":";;;;AAGA,wBAGE"}
@@ -1,3 +0,0 @@
1
- declare const _default: (glob?: string) => Promise<void>;
2
- export default _default;
3
- //# sourceMappingURL=react-beta-to-v1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-beta-to-v1.d.ts","sourceRoot":"","sources":["../../../../src/migrations/react-beta-to-v1.ts"],"names":[],"mappings":"gCAEuB,MAAM;AAA7B,wBAAuE"}
@@ -1,4 +0,0 @@
1
- export default function JsxTest({ className }: {
2
- className?: string;
3
- }): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=jsx-test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jsx-test.d.ts","sourceRoot":"","sources":["../../../../src/test/jsx-test.tsx"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CA6BpE"}
@@ -1,3 +0,0 @@
1
- import type { Action } from 'style-dictionary/types';
2
- export declare const makeEntryFile: Action;
3
- //# sourceMappingURL=actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../src/tokens/actions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIrD,eAAO,MAAM,aAAa,EAAE,MAmB3B,CAAC"}
@@ -1,11 +0,0 @@
1
- type Options = {
2
- /** Design tokens path */
3
- tokens: string;
4
- /** Output directoru for built tokens */
5
- out: string;
6
- /** Generate preview tokens */
7
- preview: boolean;
8
- };
9
- export declare function run(options: Options): Promise<void>;
10
- export {};
11
- //# sourceMappingURL=build.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../src/tokens/build.ts"],"names":[],"mappings":"AAYA,KAAK,OAAO,GAAG;IACb,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAMF,wBAAsB,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAmFzD"}
@@ -1,23 +0,0 @@
1
- import type { Config, TransformedToken } from 'style-dictionary/types';
2
- import type { ThemeObject } from '@tokens-studio/types';
3
- export type IsCalculatedToken = (token: TransformedToken, options?: Config) => boolean;
4
- export declare const permutateThemes: ($themes: ThemeObject[]) => Record<string, string[]>;
5
- type GetConfig = (options: {
6
- mode?: string;
7
- theme?: string;
8
- semantic?: string;
9
- fontSize?: string;
10
- typography?: string;
11
- outPath?: string;
12
- }) => Config;
13
- export declare const colorModeVariables: GetConfig;
14
- export declare const semanticVariables: GetConfig;
15
- export declare const typescriptTokens: GetConfig;
16
- export declare const typographyCSS: GetConfig;
17
- type getConfigs = (getConfig: GetConfig, outPath: string, tokensDir: string, themes: Record<string, string[]>) => {
18
- name: string;
19
- config: Config;
20
- }[];
21
- export declare const getConfigs: getConfigs;
22
- export {};
23
- //# sourceMappingURL=configs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configs.d.ts","sourceRoot":"","sources":["../../../../src/tokens/configs.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAsDxD,MAAM,MAAM,iBAAiB,GAAG,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC;AAEvF,eAAO,MAAM,eAAe,YAAa,WAAW,EAAE,6BAGlD,CAAC;AAEL,KAAK,SAAS,GAAG,CAAC,OAAO,EAAE;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAK,MAAM,CAAC;AAEb,eAAO,MAAM,kBAAkB,EAAE,SAgChC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,SA6C/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAqC9B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,SA4D3B,CAAC;AAEF,KAAK,UAAU,GAAG,CAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,KAC7B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EAAE,CAAC;AAExC,eAAO,MAAM,UAAU,EAAE,UA2Bd,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { Format } from 'style-dictionary/types';
2
- /**
3
- * Creates CSS classes from typography tokens
4
- */
5
- export declare const cssClassesTypography: Format;
6
- //# sourceMappingURL=css-classes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css-classes.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/formats/css-classes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAsBrD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,MA0DlC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Format } from 'style-dictionary/types';
2
- export declare const cssVariables: Format;
3
- //# sourceMappingURL=css-variables.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css-variables.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/formats/css-variables.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAcrD,eAAO,MAAM,YAAY,EAAE,MAuC1B,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { Format } from 'style-dictionary/types';
2
- /**
3
- * Format for displaying tokens in storefront
4
- */
5
- export declare const jsTokens: Format;
6
- //# sourceMappingURL=js-tokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"js-tokens.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/formats/js-tokens.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoB,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAcvE;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE,MAyBtB,CAAC"}
@@ -1,5 +0,0 @@
1
- import type { Transform } from 'style-dictionary/types';
2
- export declare const sizeRem: Transform;
3
- export declare const nameKebab: Transform;
4
- export declare const typographyShorthand: Transform;
5
- //# sourceMappingURL=transformers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformers.d.ts","sourceRoot":"","sources":["../../../../src/tokens/transformers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAOxD,eAAO,MAAM,OAAO,EAAE,SAoBrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,SASvB,CAAC;AASF,eAAO,MAAM,mBAAmB,EAAE,SASjC,CAAC"}
@@ -1,11 +0,0 @@
1
- export interface Options {
2
- splitRegexp?: RegExp | RegExp[];
3
- stripRegexp?: RegExp | RegExp[];
4
- delimiter?: string;
5
- transform?: (part: string, index: number, parts: string[]) => string;
6
- }
7
- /**
8
- * Normalize the string into something other libraries can manipulate easier.
9
- */
10
- export declare function noCase(input: string, options?: Options): string;
11
- //# sourceMappingURL=noCase.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"noCase.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/utils/noCase.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,OAAO;IACtB,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;CACtE;AAQD;;GAEG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,GAAE,OAAY,UAsB1D"}
@@ -1,7 +0,0 @@
1
- import type { ThemeObject } from '@tokens-studio/types';
2
- declare interface Options {
3
- separator?: string;
4
- }
5
- export declare function permutateThemes(themes: ThemeObject[], { separator }?: Options): Record<string, string[]>;
6
- export {};
7
- //# sourceMappingURL=permutateThemes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"permutateThemes.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/utils/permutateThemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,WAAW,OAAO;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,wBAAgB,eAAe,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,SAAe,EAAE,UAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAyCpH"}
@@ -1,17 +0,0 @@
1
- import type { TransformedToken, DesignToken } from 'style-dictionary/types';
2
- /**
3
- * Returns type based on design token format used. Read more:https://v4.styledictionary.com/info/dtcg/
4
- * @param token Transformed token
5
- * @returns type
6
- */
7
- export declare const getType: (token: TransformedToken) => string;
8
- /**
9
- * Returns value based on design token format used. Read more:https://v4.styledictionary.com/info/dtcg/
10
- *
11
- * Use generic (`<T>`) to define return value type
12
- * @param token Transformed or Design token
13
- * @returns value
14
- */
15
- export declare const getValue: <T>(token: TransformedToken | DesignToken) => T;
16
- export declare const typeEquals: (types: string[] | string, token?: TransformedToken) => boolean;
17
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/utils/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE5E;;;;GAIG;AACH,eAAO,MAAM,OAAO,UAAW,gBAAgB,WAAkD,CAAC;AAElG;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,aAAc,gBAAgB,GAAG,WAAW,KAAG,CAAuC,CAAC;AAE5G,eAAO,MAAM,UAAU,UAAW,MAAM,EAAE,GAAG,MAAM,UAAU,gBAAgB,YAM5E,CAAC"}