@ledgerhq/lumen-design-core 0.0.46 → 0.0.47
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.
- package/dist/presets/allBrands.d.ts.map +1 -1
- package/dist/presets/allBrands.js +2 -1
- package/dist/presets/enterprise.d.ts.map +1 -1
- package/dist/presets/enterprise.js +2 -1
- package/dist/presets/ledger-live.d.ts.map +1 -1
- package/dist/presets/ledger-live.js +2 -1
- package/dist/presets/websites.d.ts.map +1 -1
- package/dist/presets/websites.js +2 -1
- package/dist/utils/createCustomPlugin.d.ts +1 -0
- package/dist/utils/createCustomPlugin.d.ts.map +1 -1
- package/dist/utils/createCustomPlugin.js +12 -0
- package/package.json +1 -1
|
@@ -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;
|
|
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,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, } from '../utils/index.js';
|
|
4
|
+
import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
|
|
5
5
|
export const allBrandsPreset = {
|
|
6
6
|
content: [],
|
|
7
7
|
theme: {
|
|
@@ -19,6 +19,7 @@ export const allBrandsPreset = {
|
|
|
19
19
|
createGradientPlugin(allBrandsCSSTheme),
|
|
20
20
|
createShadowPlugin(),
|
|
21
21
|
createAnimationsPlugin(),
|
|
22
|
+
createScrollbarPlugin(),
|
|
22
23
|
],
|
|
23
24
|
darkMode: 'class',
|
|
24
25
|
};
|
|
@@ -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;
|
|
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,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, } from '../utils/index.js';
|
|
4
|
+
import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
|
|
5
5
|
export const enterprisePreset = {
|
|
6
6
|
content: [],
|
|
7
7
|
theme: {
|
|
@@ -19,6 +19,7 @@ export const enterprisePreset = {
|
|
|
19
19
|
createGradientPlugin(enterpriseCSSTheme),
|
|
20
20
|
createShadowPlugin(),
|
|
21
21
|
createAnimationsPlugin(),
|
|
22
|
+
createScrollbarPlugin(),
|
|
22
23
|
],
|
|
23
24
|
darkMode: 'class',
|
|
24
25
|
};
|
|
@@ -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;
|
|
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,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, } from '../utils/index.js';
|
|
4
|
+
import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
|
|
5
5
|
export const ledgerLivePreset = {
|
|
6
6
|
content: [],
|
|
7
7
|
theme: {
|
|
@@ -19,6 +19,7 @@ export const ledgerLivePreset = {
|
|
|
19
19
|
createGradientPlugin(ledgerLiveCSSTheme),
|
|
20
20
|
createShadowPlugin(),
|
|
21
21
|
createAnimationsPlugin(),
|
|
22
|
+
createScrollbarPlugin(),
|
|
22
23
|
],
|
|
23
24
|
darkMode: 'class',
|
|
24
25
|
};
|
|
@@ -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;
|
|
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"}
|
package/dist/presets/websites.js
CHANGED
|
@@ -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, } from '../utils/index.js';
|
|
4
|
+
import { createGradientPlugin, createThemePlugin, createTypographyPlugin, createShadowPlugin, createScrollbarPlugin, } from '../utils/index.js';
|
|
5
5
|
export const websitesPreset = {
|
|
6
6
|
content: [],
|
|
7
7
|
theme: {
|
|
@@ -19,6 +19,7 @@ export const websitesPreset = {
|
|
|
19
19
|
createGradientPlugin(websitesCSSTheme),
|
|
20
20
|
createShadowPlugin(),
|
|
21
21
|
createAnimationsPlugin(),
|
|
22
|
+
createScrollbarPlugin(),
|
|
22
23
|
],
|
|
23
24
|
darkMode: 'class',
|
|
24
25
|
};
|
|
@@ -4,5 +4,6 @@ export declare function createThemePlugin(brandTheme: Record<string, Record<stri
|
|
|
4
4
|
export declare function createTypographyPlugin(): TailwindPlugin;
|
|
5
5
|
export declare function createGradientPlugin(brandTheme?: Record<string, Record<string, string>>): TailwindPlugin;
|
|
6
6
|
export declare function createShadowPlugin(): TailwindPlugin;
|
|
7
|
+
export declare function createScrollbarPlugin(): TailwindPlugin;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=createCustomPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCustomPlugin.d.ts","sourceRoot":"","sources":["../../src/utils/createCustomPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAG3C,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAehD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACjD,cAAc,CA+ChB;AAED,wBAAgB,sBAAsB,IAAI,cAAc,CAwNvD;AAgCD,wBAAgB,oBAAoB,CAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAClD,cAAc,CAqChB;AAED,wBAAgB,kBAAkB,IAAI,cAAc,CAkCnD"}
|
|
1
|
+
{"version":3,"file":"createCustomPlugin.d.ts","sourceRoot":"","sources":["../../src/utils/createCustomPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAG3C,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAehD,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACjD,cAAc,CA+ChB;AAED,wBAAgB,sBAAsB,IAAI,cAAc,CAwNvD;AAgCD,wBAAgB,oBAAoB,CAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAClD,cAAc,CAqChB;AAED,wBAAgB,kBAAkB,IAAI,cAAc,CAkCnD;AAED,wBAAgB,qBAAqB,IAAI,cAAc,CAWtD"}
|
|
@@ -342,3 +342,15 @@ export function createShadowPlugin() {
|
|
|
342
342
|
matchUtilities({ shadow: (value) => ({ '--tw-shadow-color': value }) }, { values: theme('boxShadowColor') });
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
+
export function createScrollbarPlugin() {
|
|
346
|
+
return plugin(function ({ addUtilities }) {
|
|
347
|
+
addUtilities({
|
|
348
|
+
'.scrollbar-none': {
|
|
349
|
+
'scrollbar-width': 'none',
|
|
350
|
+
'&::-webkit-scrollbar': {
|
|
351
|
+
display: 'none',
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
}
|