@neovici/cosmoz-tokens 1.1.0 → 1.2.0
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/package.json +9 -3
- package/src/normalize.css.d.ts +9 -0
- package/src/utilities.css.d.ts +18 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-tokens",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Design tokens for Cosmoz web components based on Untitled UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design-tokens",
|
|
@@ -22,8 +22,14 @@
|
|
|
22
22
|
"main": "./src/index.css",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": "./src/index.css",
|
|
25
|
-
"./normalize":
|
|
26
|
-
|
|
25
|
+
"./normalize": {
|
|
26
|
+
"types": "./src/normalize.css.d.ts",
|
|
27
|
+
"default": "./src/normalize.css.js"
|
|
28
|
+
},
|
|
29
|
+
"./utilities": {
|
|
30
|
+
"types": "./src/utilities.css.d.ts",
|
|
31
|
+
"default": "./src/utilities.css.js"
|
|
32
|
+
},
|
|
27
33
|
"./primitives": "./src/primitives.css",
|
|
28
34
|
"./typography": "./src/typography.css",
|
|
29
35
|
"./spacing": "./src/spacing.css",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalize stylesheet as a CSSStyleSheet for Shadow DOM usage.
|
|
3
|
+
* Use with the `styleSheets` option in @pionjs/pion components.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* import { normalize } from '@neovici/cosmoz-tokens/normalize';
|
|
7
|
+
* customElements.define('my-el', component(MyEl, { styleSheets: [normalize] }));
|
|
8
|
+
*/
|
|
9
|
+
export const normalize: CSSStyleSheet;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Raw CSS string for utilities - can be used in Light DOM contexts.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* import { utilitiesCSS } from '@neovici/cosmoz-tokens/utilities';
|
|
6
|
+
* html`<style>${utilitiesCSS}</style>`;
|
|
7
|
+
*/
|
|
8
|
+
export const utilitiesCSS: string;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Utilities stylesheet as a CSSStyleSheet for Shadow DOM usage.
|
|
12
|
+
* Use with the `styleSheets` option in @pionjs/pion components.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* import { utilities } from '@neovici/cosmoz-tokens/utilities';
|
|
16
|
+
* customElements.define('my-el', component(MyEl, { styleSheets: [utilities] }));
|
|
17
|
+
*/
|
|
18
|
+
export const utilities: CSSStyleSheet;
|