@ledgerhq/lumen-design-core 0.0.48 → 0.0.50

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.50",
4
4
  "license": "Apache-2.0",
5
5
  "keywords": [
6
6
  "design-system",
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.0996 1.66211C14.2041 1.66219 15.0996 2.55759 15.0996 3.66211V12.3213C15.0996 13.4258 14.2041 14.3212 13.0996 14.3213H2.90039C1.79588 14.3212 0.900391 13.4258 0.900391 12.3213V3.66211C0.900391 2.55758 1.79588 1.66218 2.90039 1.66211H13.0996ZM10.6963 5.04102C10.3374 5.04106 10.0459 5.33246 10.0459 5.69141C10.046 5.99012 10.2489 6.23844 10.5234 6.31445L8.67188 8.21973L7.70117 7.2207C7.2485 6.74892 6.50788 6.75006 6.05566 7.2207L3.49316 9.85938C3.24343 10.1169 3.2496 10.5283 3.50684 10.7783C3.76439 11.0283 4.1767 11.0222 4.42676 10.7646L6.87793 8.23828L7.85059 9.24023L7.93945 9.32227C8.39499 9.70302 9.07082 9.67669 9.49512 9.24023L11.4199 7.25781C11.4991 7.52755 11.7457 7.72559 12.041 7.72559C12.3998 7.7253 12.6904 7.434 12.6904 7.0752V5.69141C12.6919 5.5201 12.6266 5.34858 12.4941 5.21973C12.3524 5.08206 12.1639 5.02424 11.9814 5.04102H10.6963Z" fill="black"/>
3
+ </svg>
@@ -0,0 +1,7 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M3.95935 10.3133L6.52151 7.6745C6.71911 7.46635 7.03698 7.46635 7.23407 7.6745L8.31604 8.78807C8.51363 8.99102 8.8315 8.99102 9.02859 8.78807L12.0405 5.68671M10.6958 5.69243H12.04V7.0766" stroke="black" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <mask id="path-2-inside-1_8174_813" fill="white">
4
+ <path d="M0.900513 3.67187C0.900513 2.5673 1.79594 1.67188 2.90051 1.67188H13.0995C14.204 1.67188 15.0995 2.56731 15.0995 3.67188V12.3282C15.0995 13.4327 14.204 14.3282 13.0995 14.3282H2.90051C1.79594 14.3282 0.900513 13.4327 0.900513 12.3282V3.67187Z"/>
5
+ </mask>
6
+ <path d="M2.90051 1.67188V2.97187H13.0995V1.67188V0.371875H2.90051V1.67188ZM15.0995 3.67188H13.7995V12.3282H15.0995H16.3995V3.67188H15.0995ZM13.0995 14.3282V13.0282H2.90051V14.3282V15.6282H13.0995V14.3282ZM0.900513 12.3282H2.20051V3.67187H0.900513H-0.399487V12.3282H0.900513ZM2.90051 14.3282V13.0282C2.51391 13.0282 2.20051 12.7148 2.20051 12.3282H0.900513H-0.399487C-0.399487 14.1507 1.07798 15.6282 2.90051 15.6282V14.3282ZM15.0995 12.3282H13.7995C13.7995 12.7148 13.4861 13.0282 13.0995 13.0282V14.3282V15.6282C14.922 15.6282 16.3995 14.1507 16.3995 12.3282H15.0995ZM13.0995 1.67188V2.97187C13.4861 2.97187 13.7995 3.28528 13.7995 3.67188H15.0995H16.3995C16.3995 1.84933 14.922 0.371875 13.0995 0.371875V1.67188ZM2.90051 1.67188V0.371875C1.07797 0.371875 -0.399487 1.84933 -0.399487 3.67187H0.900513H2.20051C2.20051 3.28528 2.51391 2.97187 2.90051 2.97187V1.67188Z" fill="black" mask="url(#path-2-inside-1_8174_813)"/>
7
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1.52051 11.7925L10.1987 11.7925" stroke="black" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1 2.2"/>
3
+ <path d="M13.2349 11.7926L15.6276 11.7926" stroke="black" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1 2"/>
4
+ <path d="M2.26411 2.09894C2.1564 3.30223 2.71074 5.40418 5.50004 6.03108C8.21884 6.64213 10.9403 7.42801 11.4115 10.1374" stroke="black" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <circle cx="2.1085" cy="2.1085" r="1.4585" transform="matrix(1 8.74228e-08 8.74228e-08 -1 9.60132 13.9011)" stroke="black" stroke-width="1.3"/>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M1.52051 4.20752L10.1987 4.20752" stroke="black" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1 2.2"/>
3
+ <path d="M13.2349 4.2074L15.6276 4.2074" stroke="black" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1 2"/>
4
+ <path d="M2.26411 13.9011C2.1564 12.6978 2.71074 10.5958 5.50004 9.96892C8.21884 9.35787 10.9403 8.57199 11.4115 5.86263" stroke="black" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
5
+ <circle cx="11.7098" cy="4.20743" r="1.4585" stroke="black" stroke-width="1.3"/>
6
+ </svg>
@@ -1 +1 @@
1
- {"lastModified":"2026-02-06T09:01:40Z","componentIds":["8143:35","8141:28","7942:13","7940:13","7917:6","7749:4481","7739:563","8153:841","8153:829","7376:560","7350:6","7340:76","5708:512","5709:66","7074:125","7062:110","7062:103","7062:10","1794:289","3:428","1859:116","5839:8248","5809:383","5729:3455","5729:3416","5729:3362","5728:6329","5722:3532","3549:95","3484:414","3224:75","3163:119","3142:104","3:418","3:318","3:432","3:376","3:232","3:118","3:132","3:222","3:102","3:324","3:254","805:1620","19:336","19:345","3:252","19:350","3:358","3:316","2620:321","3:414","3:308","3:210","3:95","3:92","3:288","3:420","784:2069","3:150","1202:653","3:246","3:354","3:352","3:104","3:240","516:126","516:122","3:290","3:348","3:346","3:350","3:434","3:114","3:186","3:158","629:163","3:202","3:200","3:369","3:198","3:322","629:171","3:360","3:292","3:286","805:1627","3:66","629:180","3:112","3:60","3:64","3:410","3:130","3:284","3:188","3:228","3:256","3:398","3:172","3:174","3:282","3:148","3:326","3:168","3:336","3:192","3:194","3:170","3:320","1859:284","3:108","3:238","3:294","3:204","805:1628","3:154","3:244","3:404","37:4778","37:4779","805:1619","3:248","887:1927","887:1934","3:120","3:334","2049:82","1859:183","2620:256","3:226","3:166","3:430","3:422","3:208","7943:31","3:276","3:100","3:68","3:296","3:146","1859:184","3:412","3:392","3:268","19:40","3:260","7918:24","3:302","3:272","3:328","3:330","3:258","3:250","3:126","3:230","3:426","3:224","3:110","2008:66","1268:3775","3:156","3:416","3:306","3:304","3:98","3:274","3:270","3333:113","3:342","7936:4","3:62","3:196","3:214","38:4780","3:300","3:184","3:424","3:280","3:242","1966:1839","3:378","3:236","3:262","3:312","1150:4620","7935:52","3:266","3:190","3:356","3:344","3:164","3:160","3:124","247:1186","247:1192","3:310","3:122","3:162","3:116","3:180","3:182","3:218","3:386","3:70","3:340","3:106","629:175","3:90","3:88","3:86","3:84","163:582","163:572","163:583","163:579","3:380","3:212","3:220","3:138","3:142","3:134","3:136","3:140","3:314","3:338","3:278","3:332","3:234","3:216","2725:3611","3:128","7943:47","3:362","3:264","3:152","3:206","3:74","3:82","3:78","3:80","3:72","3:76","3:298","436:164","5625:429"]}
1
+ {"lastModified":"2026-02-10T10:43:37Z","componentIds":["8174:814","8174:813","8155:65","8155:46","8154:56","8143:35","8141:28","7942:13","7940:13","7917:6","7749:4481","7739:563","8153:841","8153:829","7376:560","7350:6","7340:76","5708:512","5709:66","7074:125","7062:110","7062:103","7062:10","1794:289","3:428","1859:116","5839:8248","5809:383","5729:3455","5729:3416","5729:3362","5728:6329","5722:3532","3549:95","3484:414","3224:75","3163:119","3142:104","3:418","3:318","3:432","3:376","3:232","3:118","3:132","3:222","3:102","3:324","3:254","805:1620","19:336","19:345","3:252","19:350","3:358","3:316","2620:321","3:414","3:308","3:210","3:95","3:92","3:288","3:420","784:2069","3:150","1202:653","3:246","3:354","3:352","3:104","3:240","516:126","516:122","3:290","3:348","3:346","3:350","3:434","3:114","3:186","3:158","629:163","3:202","3:200","3:369","3:198","3:322","629:171","3:360","3:292","3:286","805:1627","3:66","629:180","3:112","3:60","3:64","3:410","3:130","3:284","3:188","3:228","3:256","3:398","3:172","3:174","3:282","3:148","3:326","3:168","3:336","3:192","3:194","3:170","3:320","1859:284","3:108","3:238","3:294","3:204","805:1628","3:154","3:244","3:404","37:4778","37:4779","805:1619","3:248","887:1927","887:1934","3:120","3:334","2049:82","1859:183","2620:256","3:226","3:166","3:430","3:422","3:208","7943:31","3:276","3:100","3:68","3:296","3:146","1859:184","3:412","3:392","3:268","19:40","3:260","7918:24","3:302","3:272","3:328","3:330","3:258","3:250","3:126","3:230","3:426","3:224","3:110","2008:66","1268:3775","3:156","3:416","3:306","3:304","3:98","3:274","3:270","3333:113","3:342","7936:4","3:62","3:196","3:214","38:4780","3:300","3:184","3:424","3:280","3:242","1966:1839","3:378","3:236","3:262","3:312","1150:4620","7935:52","3:266","3:190","3:356","3:344","3:164","3:160","3:124","247:1186","247:1192","3:310","3:122","3:162","3:116","3:180","3:182","3:218","3:386","3:70","3:340","3:106","629:175","3:90","3:88","3:86","3:84","163:582","163:572","163:583","163:579","3:380","3:212","3:220","3:138","3:142","3:134","3:136","3:140","3:314","3:338","3:278","3:332","3:234","3:216","2725:3611","3:128","7943:47","3:362","3:264","3:152","3:206","3:74","3:82","3:78","3:80","3:72","3:76","3:298","436:164","5625:429"]}
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.8179 8.316C13.8179 11.4553 11.2732 14 8.13389 14C4.99455 14 2.44922 11.4553 2.44922 8.316C2.44922 5.17667 4.99389 2.632 8.13322 2.632M11.2912 8.316C11.2912 10.06 9.87722 11.474 8.13322 11.474C6.38922 11.474 4.97522 10.06 4.97522 8.316C4.97522 6.572 6.38922 5.158 8.13322 5.158M10.6626 5.78667L8.13589 8.31333M12.5546 2L10.6599 3.89467V5.78933H12.5546L14.4492 3.89467L13.1859 3.26333L12.5546 2Z" stroke="black" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>