@ledgerhq/lumen-design-core 0.0.36 → 0.0.38

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 (50) hide show
  1. package/dist/presets/allBrands.js +2 -2
  2. package/dist/presets/enterprise.js +2 -2
  3. package/dist/presets/ledger-live.js +2 -2
  4. package/dist/presets/websites.js +2 -2
  5. package/dist/utils/{create-animations-plugin.d.ts → createAnimationsPlugin.d.ts} +1 -1
  6. package/dist/utils/createAnimationsPlugin.d.ts.map +1 -0
  7. package/dist/utils/{create-custom-plugin.d.ts → createCustomPlugin.d.ts} +1 -1
  8. package/dist/utils/createCustomPlugin.d.ts.map +1 -0
  9. package/dist/utils/{create-custom-plugin.js → createCustomPlugin.js} +1 -1
  10. package/dist/utils/{create-icon-utilities.d.ts → createIconUtilities.d.ts} +1 -1
  11. package/dist/utils/createIconUtilities.d.ts.map +1 -0
  12. package/dist/utils/{create-primitives-plugin.d.ts → createPrimitivesPlugin.d.ts} +1 -1
  13. package/dist/utils/createPrimitivesPlugin.d.ts.map +1 -0
  14. package/dist/utils/{create-primitives-plugin.js → createPrimitivesPlugin.js} +3 -3
  15. package/dist/utils/{create-spot-utilities.d.ts → createSpotUtilities.d.ts} +1 -1
  16. package/dist/utils/createSpotUtilities.d.ts.map +1 -0
  17. package/dist/utils/{fs-utils.d.ts → fsUtils.d.ts} +1 -1
  18. package/dist/utils/fsUtils.d.ts.map +1 -0
  19. package/dist/utils/{get-theme-utils-by-prefix.d.ts → getThemeUtilsByPrefix.d.ts} +1 -1
  20. package/dist/utils/getThemeUtilsByPrefix.d.ts.map +1 -0
  21. package/dist/utils/getThemeUtilsByPrefix.test.d.ts +2 -0
  22. package/dist/utils/getThemeUtilsByPrefix.test.d.ts.map +1 -0
  23. package/dist/utils/{get-theme-utils-by-prefix.test.js → getThemeUtilsByPrefix.test.js} +1 -1
  24. package/dist/utils/index.d.ts +1 -1
  25. package/dist/utils/index.d.ts.map +1 -1
  26. package/dist/utils/index.js +1 -1
  27. package/dist/utils/{parse-cli-args.d.ts → parseCliArgs.d.ts} +1 -1
  28. package/dist/utils/parseCliArgs.d.ts.map +1 -0
  29. package/dist/utils/parseCliArgs.test.d.ts +2 -0
  30. package/dist/utils/parseCliArgs.test.d.ts.map +1 -0
  31. package/dist/utils/{parse-cli-args.test.js → parseCliArgs.test.js} +1 -1
  32. package/package.json +1 -1
  33. package/dist/utils/create-animations-plugin.d.ts.map +0 -1
  34. package/dist/utils/create-custom-plugin.d.ts.map +0 -1
  35. package/dist/utils/create-icon-utilities.d.ts.map +0 -1
  36. package/dist/utils/create-primitives-plugin.d.ts.map +0 -1
  37. package/dist/utils/create-spot-utilities.d.ts.map +0 -1
  38. package/dist/utils/fs-utils.d.ts.map +0 -1
  39. package/dist/utils/get-theme-utils-by-prefix.d.ts.map +0 -1
  40. package/dist/utils/get-theme-utils-by-prefix.test.d.ts +0 -2
  41. package/dist/utils/get-theme-utils-by-prefix.test.d.ts.map +0 -1
  42. package/dist/utils/parse-cli-args.d.ts.map +0 -1
  43. package/dist/utils/parse-cli-args.test.d.ts +0 -2
  44. package/dist/utils/parse-cli-args.test.d.ts.map +0 -1
  45. /package/dist/utils/{create-animations-plugin.js → createAnimationsPlugin.js} +0 -0
  46. /package/dist/utils/{create-icon-utilities.js → createIconUtilities.js} +0 -0
  47. /package/dist/utils/{create-spot-utilities.js → createSpotUtilities.js} +0 -0
  48. /package/dist/utils/{fs-utils.js → fsUtils.js} +0 -0
  49. /package/dist/utils/{get-theme-utils-by-prefix.js → getThemeUtilsByPrefix.js} +0 -0
  50. /package/dist/utils/{parse-cli-args.js → parseCliArgs.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { allBrandsCSSTheme } from '../themes/css';
2
- import { createAnimationsPlugin } from '../utils/create-animations-plugin.js';
3
- import { createPrimitivesPlugin } from '../utils/create-primitives-plugin.js';
2
+ import { createAnimationsPlugin } from '../utils/createAnimationsPlugin.js';
3
+ import { createPrimitivesPlugin } from '../utils/createPrimitivesPlugin.js';
4
4
  import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, } from '../utils/index.js';
5
5
  export const allBrandsPreset = {
6
6
  content: [],
@@ -1,6 +1,6 @@
1
1
  import { enterpriseCSSTheme } from '../themes/css';
2
- import { createAnimationsPlugin } from '../utils/create-animations-plugin.js';
3
- import { createPrimitivesPlugin } from '../utils/create-primitives-plugin.js';
2
+ import { createAnimationsPlugin } from '../utils/createAnimationsPlugin.js';
3
+ import { createPrimitivesPlugin } from '../utils/createPrimitivesPlugin.js';
4
4
  import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, } from '../utils/index.js';
5
5
  export const enterprisePreset = {
6
6
  content: [],
@@ -1,6 +1,6 @@
1
1
  import { ledgerLiveCSSTheme } from '../themes/css';
2
- import { createAnimationsPlugin } from '../utils/create-animations-plugin.js';
3
- import { createPrimitivesPlugin } from '../utils/create-primitives-plugin.js';
2
+ import { createAnimationsPlugin } from '../utils/createAnimationsPlugin.js';
3
+ import { createPrimitivesPlugin } from '../utils/createPrimitivesPlugin.js';
4
4
  import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, } from '../utils/index.js';
5
5
  export const ledgerLivePreset = {
6
6
  content: [],
@@ -1,6 +1,6 @@
1
1
  import { websitesCSSTheme } from '../themes/css';
2
- import { createAnimationsPlugin } from '../utils/create-animations-plugin.js';
3
- import { createPrimitivesPlugin } from '../utils/create-primitives-plugin.js';
2
+ import { createAnimationsPlugin } from '../utils/createAnimationsPlugin.js';
3
+ import { createPrimitivesPlugin } from '../utils/createPrimitivesPlugin.js';
4
4
  import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, } from '../utils/index.js';
5
5
  export const websitesPreset = {
6
6
  content: [],
@@ -2,4 +2,4 @@ export declare function createAnimationsPlugin(): {
2
2
  handler: import("tailwindcss/types/config").PluginCreator;
3
3
  config?: Partial<import("tailwindcss/types/config").Config>;
4
4
  };
5
- //# sourceMappingURL=create-animations-plugin.d.ts.map
5
+ //# sourceMappingURL=createAnimationsPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAnimationsPlugin.d.ts","sourceRoot":"","sources":["../../src/utils/createAnimationsPlugin.ts"],"names":[],"mappings":"AAEA,wBAAgB,sBAAsB;;;EA+LrC"}
@@ -14,4 +14,4 @@ export declare function createShadowPlugin(): {
14
14
  handler: import("tailwindcss/types/config.js").PluginCreator;
15
15
  config?: Partial<import("tailwindcss/types/config.js").Config>;
16
16
  };
17
- //# sourceMappingURL=create-custom-plugin.d.ts.map
17
+ //# sourceMappingURL=createCustomPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCustomPlugin.d.ts","sourceRoot":"","sources":["../../src/utils/createCustomPlugin.ts"],"names":[],"mappings":"AAgBA,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;EAgDnD;AAED,wBAAgB,sBAAsB;;;EAwMrC;AAgCD,wBAAgB,oBAAoB,CAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;EAsCpD;AAED,wBAAgB,kBAAkB;;;EAkCjC"}
@@ -1,5 +1,5 @@
1
1
  import plugin from 'tailwindcss/plugin.js';
2
- import { getThemeUtilsByPrefix } from './get-theme-utils-by-prefix.js';
2
+ import { getThemeUtilsByPrefix } from './getThemeUtilsByPrefix.js';
3
3
  const DEFAULT_COLOR_VALUES = {
4
4
  transparent: 'transparent',
5
5
  inherit: 'inherit',
@@ -1,3 +1,3 @@
1
1
  import plugin from 'tailwindcss/plugin.js';
2
2
  export declare const createIconUtilities: (theme: Parameters<Parameters<typeof plugin>[0]>[0]["theme"]) => Record<string, Record<string, string>>;
3
- //# sourceMappingURL=create-icon-utilities.d.ts.map
3
+ //# sourceMappingURL=createIconUtilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createIconUtilities.d.ts","sourceRoot":"","sources":["../../src/utils/createIconUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,GAC9B,OAAO,UAAU,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,2CA2B5D,CAAC"}
@@ -2,4 +2,4 @@ export declare function createPrimitivesPlugin(): {
2
2
  handler: import("tailwindcss/types/config.js").PluginCreator;
3
3
  config?: Partial<import("tailwindcss/types/config.js").Config>;
4
4
  };
5
- //# sourceMappingURL=create-primitives-plugin.d.ts.map
5
+ //# sourceMappingURL=createPrimitivesPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createPrimitivesPlugin.d.ts","sourceRoot":"","sources":["../../src/utils/createPrimitivesPlugin.ts"],"names":[],"mappings":"AAOA,wBAAgB,sBAAsB;;;EA2DrC"}
@@ -1,8 +1,8 @@
1
1
  import plugin from 'tailwindcss/plugin.js';
2
2
  import { primitivesTheme } from '../themes/css';
3
- import { createIconUtilities } from './create-icon-utilities.js';
4
- import { createSpotUtilities } from './create-spot-utilities.js';
5
- import { getThemeUtilsByPrefix } from './get-theme-utils-by-prefix.js';
3
+ import { createIconUtilities } from './createIconUtilities.js';
4
+ import { createSpotUtilities } from './createSpotUtilities.js';
5
+ import { getThemeUtilsByPrefix } from './getThemeUtilsByPrefix.js';
6
6
  export function createPrimitivesPlugin() {
7
7
  const spacing = getThemeUtilsByPrefix(primitivesTheme, '--spacing-');
8
8
  const size = getThemeUtilsByPrefix(primitivesTheme, '--size-');
@@ -1,3 +1,3 @@
1
1
  import plugin from 'tailwindcss/plugin.js';
2
2
  export declare const createSpotUtilities: (theme: Parameters<Parameters<typeof plugin>[0]>[0]["theme"]) => Record<string, Record<string, string>>;
3
- //# sourceMappingURL=create-spot-utilities.d.ts.map
3
+ //# sourceMappingURL=createSpotUtilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createSpotUtilities.d.ts","sourceRoot":"","sources":["../../src/utils/createSpotUtilities.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,GAC9B,OAAO,UAAU,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,2CAoB5D,CAAC"}
@@ -5,4 +5,4 @@
5
5
  * @returns A promise that resolves to an array of file paths.
6
6
  */
7
7
  export declare function findFilesByExtension(dir: string, ext: string): Promise<string[]>;
8
- //# sourceMappingURL=fs-utils.d.ts.map
8
+ //# sourceMappingURL=fsUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fsUtils.d.ts","sourceRoot":"","sources":["../../src/utils/fsUtils.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,EAAE,CAAC,CAmBnB"}
@@ -4,4 +4,4 @@ type ThemeUtilsOptions = {
4
4
  };
5
5
  export declare const getThemeUtilsByPrefix: (themeObject: Record<string, Record<string, string | number | Record<string, string | number>>>, prefix: string, options?: ThemeUtilsOptions) => Record<string, string>;
6
6
  export {};
7
- //# sourceMappingURL=get-theme-utils-by-prefix.d.ts.map
7
+ //# sourceMappingURL=getThemeUtilsByPrefix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThemeUtilsByPrefix.d.ts","sourceRoot":"","sources":["../../src/utils/getThemeUtilsByPrefix.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,aAAa,MAAM,CACjB,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAClE,EACD,QAAQ,MAAM,EACd,UAAS,iBAAsB,2BA2BhC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getThemeUtilsByPrefix.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getThemeUtilsByPrefix.test.d.ts","sourceRoot":"","sources":["../../src/utils/getThemeUtilsByPrefix.test.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { getThemeUtilsByPrefix } from './get-theme-utils-by-prefix.js';
2
+ import { getThemeUtilsByPrefix } from './getThemeUtilsByPrefix.js';
3
3
  describe('getThemeUtilsByPrefix', () => {
4
4
  const realWorldTheme = {
5
5
  ':root': {
@@ -1,2 +1,2 @@
1
- export * from './create-custom-plugin.js';
1
+ export * from './createCustomPlugin.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -1 +1 @@
1
- export * from './create-custom-plugin.js';
1
+ export * from './createCustomPlugin.js';
@@ -1,2 +1,2 @@
1
1
  export declare const parseCliArgs: (args: string[]) => Record<string, string>;
2
- //# sourceMappingURL=parse-cli-args.d.ts.map
2
+ //# sourceMappingURL=parseCliArgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseCliArgs.d.ts","sourceRoot":"","sources":["../../src/utils/parseCliArgs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAalE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parseCliArgs.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseCliArgs.test.d.ts","sourceRoot":"","sources":["../../src/utils/parseCliArgs.test.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { describe, it, expect } from 'vitest';
2
- import { parseCliArgs } from './parse-cli-args.js';
2
+ import { parseCliArgs } from './parseCliArgs.js';
3
3
  describe('parseCliArgs', () => {
4
4
  it('should parse a single key-value pair', () => {
5
5
  const args = ['--name', 'value'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-design-core",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "license": "Apache-2.0",
5
5
  "keywords": [
6
6
  "design-system",
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-animations-plugin.d.ts","sourceRoot":"","sources":["../../src/utils/create-animations-plugin.ts"],"names":[],"mappings":"AAEA,wBAAgB,sBAAsB;;;EA+LrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-custom-plugin.d.ts","sourceRoot":"","sources":["../../src/utils/create-custom-plugin.ts"],"names":[],"mappings":"AAgBA,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;EAgDnD;AAED,wBAAgB,sBAAsB;;;EAwMrC;AAgCD,wBAAgB,oBAAoB,CAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;EAsCpD;AAED,wBAAgB,kBAAkB;;;EAkCjC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-icon-utilities.d.ts","sourceRoot":"","sources":["../../src/utils/create-icon-utilities.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,GAC9B,OAAO,UAAU,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,2CA2B5D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-primitives-plugin.d.ts","sourceRoot":"","sources":["../../src/utils/create-primitives-plugin.ts"],"names":[],"mappings":"AAOA,wBAAgB,sBAAsB;;;EA2DrC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-spot-utilities.d.ts","sourceRoot":"","sources":["../../src/utils/create-spot-utilities.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,eAAO,MAAM,mBAAmB,GAC9B,OAAO,UAAU,CAAC,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,2CAoB5D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fs-utils.d.ts","sourceRoot":"","sources":["../../src/utils/fs-utils.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,MAAM,EAAE,CAAC,CAmBnB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-theme-utils-by-prefix.d.ts","sourceRoot":"","sources":["../../src/utils/get-theme-utils-by-prefix.ts"],"names":[],"mappings":"AAAA,KAAK,iBAAiB,GAAG;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,aAAa,MAAM,CACjB,MAAM,EACN,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAClE,EACD,QAAQ,MAAM,EACd,UAAS,iBAAsB,2BA2BhC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=get-theme-utils-by-prefix.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-theme-utils-by-prefix.test.d.ts","sourceRoot":"","sources":["../../src/utils/get-theme-utils-by-prefix.test.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"parse-cli-args.d.ts","sourceRoot":"","sources":["../../src/utils/parse-cli-args.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAalE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=parse-cli-args.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parse-cli-args.test.d.ts","sourceRoot":"","sources":["../../src/utils/parse-cli-args.test.ts"],"names":[],"mappings":""}
File without changes