@ledgerhq/lumen-design-core 0.0.48 → 0.0.49

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 +1 @@
1
- {"version":3,"file":"allBrands.d.ts","sourceRoot":"","sources":["../../src/presets/allBrands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAY1C,eAAO,MAAM,eAAe,EAAE,MAoB7B,CAAC"}
1
+ {"version":3,"file":"allBrands.d.ts","sourceRoot":"","sources":["../../src/presets/allBrands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAa1C,eAAO,MAAM,eAAe,EAAE,MAqB7B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { allBrandsCSSTheme } from '../themes/css';
2
2
  import { createAnimationsPlugin } from '../utils/createAnimationsPlugin.js';
3
3
  import { createPrimitivesPlugin } from '../utils/createPrimitivesPlugin.js';
4
- import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
4
+ import { createGradientPlugin, createScreensPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
5
5
  export const allBrandsPreset = {
6
6
  content: [],
7
7
  theme: {
@@ -14,6 +14,7 @@ export const allBrandsPreset = {
14
14
  },
15
15
  plugins: [
16
16
  createPrimitivesPlugin(),
17
+ createScreensPlugin(),
17
18
  createThemePlugin(allBrandsCSSTheme),
18
19
  createTypographyPlugin(),
19
20
  createGradientPlugin(allBrandsCSSTheme),
@@ -1 +1 @@
1
- {"version":3,"file":"enterprise.d.ts","sourceRoot":"","sources":["../../src/presets/enterprise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAa1C,eAAO,MAAM,gBAAgB,EAAE,MAoB9B,CAAC"}
1
+ {"version":3,"file":"enterprise.d.ts","sourceRoot":"","sources":["../../src/presets/enterprise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAc1C,eAAO,MAAM,gBAAgB,EAAE,MAqB9B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { enterpriseCSSTheme } from '../themes/css';
2
2
  import { createAnimationsPlugin } from '../utils/createAnimationsPlugin.js';
3
3
  import { createPrimitivesPlugin } from '../utils/createPrimitivesPlugin.js';
4
- import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
4
+ import { createGradientPlugin, createScreensPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
5
5
  export const enterprisePreset = {
6
6
  content: [],
7
7
  theme: {
@@ -14,6 +14,7 @@ export const enterprisePreset = {
14
14
  },
15
15
  plugins: [
16
16
  createPrimitivesPlugin(),
17
+ createScreensPlugin(),
17
18
  createThemePlugin(enterpriseCSSTheme),
18
19
  createTypographyPlugin(),
19
20
  createGradientPlugin(enterpriseCSSTheme),
@@ -1 +1 @@
1
- {"version":3,"file":"ledger-live.d.ts","sourceRoot":"","sources":["../../src/presets/ledger-live.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAY1C,eAAO,MAAM,gBAAgB,EAAE,MAoB9B,CAAC"}
1
+ {"version":3,"file":"ledger-live.d.ts","sourceRoot":"","sources":["../../src/presets/ledger-live.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAa1C,eAAO,MAAM,gBAAgB,EAAE,MAqB9B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { ledgerLiveCSSTheme } from '../themes/css';
2
2
  import { createAnimationsPlugin } from '../utils/createAnimationsPlugin.js';
3
3
  import { createPrimitivesPlugin } from '../utils/createPrimitivesPlugin.js';
4
- import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
4
+ import { createGradientPlugin, createScreensPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
5
5
  export const ledgerLivePreset = {
6
6
  content: [],
7
7
  theme: {
@@ -14,6 +14,7 @@ export const ledgerLivePreset = {
14
14
  },
15
15
  plugins: [
16
16
  createPrimitivesPlugin(),
17
+ createScreensPlugin(),
17
18
  createThemePlugin(ledgerLiveCSSTheme),
18
19
  createTypographyPlugin(),
19
20
  createGradientPlugin(ledgerLiveCSSTheme),
@@ -1 +1 @@
1
- {"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/presets/websites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAa1C,eAAO,MAAM,cAAc,EAAE,MAoB5B,CAAC"}
1
+ {"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/presets/websites.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAc1C,eAAO,MAAM,cAAc,EAAE,MAqB5B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { websitesCSSTheme } from '../themes/css';
2
2
  import { createAnimationsPlugin } from '../utils/createAnimationsPlugin.js';
3
3
  import { createPrimitivesPlugin } from '../utils/createPrimitivesPlugin.js';
4
- import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
4
+ import { createGradientPlugin, createScreensPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
5
5
  export const websitesPreset = {
6
6
  content: [],
7
7
  theme: {
@@ -14,6 +14,7 @@ export const websitesPreset = {
14
14
  },
15
15
  plugins: [
16
16
  createPrimitivesPlugin(),
17
+ createScreensPlugin(),
17
18
  createThemePlugin(websitesCSSTheme),
18
19
  createTypographyPlugin(),
19
20
  createGradientPlugin(websitesCSSTheme),
@@ -14,7 +14,7 @@ export const primitivesTheme = {
14
14
  ':root': {
15
15
  ...primitivesTokens[':root'],
16
16
  ...typographyXsTokens[':root'],
17
- ...typographySmTokens[':root'],
17
+ ...typographySmTokens,
18
18
  ...typographyLgTokens,
19
19
  ...typographyMdTokens,
20
20
  ...typographyXlTokens,
@@ -2,7 +2,7 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  export const tokens = {
5
- ':root': {
5
+ '@media (min-width: theme("screens.sm"))': {
6
6
  '--font-style-responsive-display-1-size': 'var(--font-size-80)',
7
7
  '--font-style-responsive-display-1-weight': 'var(--font-weight-bold)',
8
8
  '--font-style-responsive-display-1-line-height': 'var(--font-line-height-80)',
@@ -2,7 +2,7 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  export const tokens = {
5
- '@media (min-width: theme("screens.xs"))': {
5
+ ':root': {
6
6
  '--font-style-responsive-display-1-size': 'var(--font-size-64)',
7
7
  '--font-style-responsive-display-1-weight': 'var(--font-weight-bold)',
8
8
  '--font-style-responsive-display-1-line-height': 'var(--font-line-height-64)',
@@ -0,0 +1,5 @@
1
+ import plugin from 'tailwindcss/plugin.js';
2
+ type TailwindPlugin = ReturnType<typeof plugin>;
3
+ export declare function createScreensPlugin(): TailwindPlugin;
4
+ export {};
5
+ //# sourceMappingURL=createScreensPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createScreensPlugin.d.ts","sourceRoot":"","sources":["../../src/utils/createScreensPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAEhD,wBAAgB,mBAAmB,IAAI,cAAc,CAkBpD"}
@@ -0,0 +1,17 @@
1
+ import plugin from 'tailwindcss/plugin.js';
2
+ export function createScreensPlugin() {
3
+ return plugin(function () {
4
+ return;
5
+ }, {
6
+ theme: {
7
+ screens: {
8
+ xs: '360px',
9
+ sm: '640px',
10
+ md: '768px',
11
+ lg: '1024px',
12
+ xl: '1280px',
13
+ '2xl': '1536px',
14
+ },
15
+ },
16
+ });
17
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './createCustomPlugin.js';
2
+ export * from './createScreensPlugin.js';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './createCustomPlugin.js';
2
+ export * from './createScreensPlugin.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/lumen-design-core",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "license": "Apache-2.0",
5
5
  "keywords": [
6
6
  "design-system",