@ossy/types 0.3.1 → 0.4.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/build/index.d.ts +5 -17
- package/build/types/src/Theme.d.ts +5 -17
- package/package.json +2 -2
package/build/index.d.ts
CHANGED
|
@@ -87,34 +87,22 @@ interface ColorPalette {
|
|
|
87
87
|
} | undefined;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Surface definitions
|
|
90
|
+
* Surface definitions — flat preview strings (docs / tooling).
|
|
91
|
+
* Aligns with `surfaces` keys: base, primary, accent.
|
|
91
92
|
*/
|
|
92
93
|
interface SurfaceDefinitions {
|
|
93
|
-
primary?: CssValue;
|
|
94
|
-
secondary?: CssValue;
|
|
95
94
|
base?: CssValue;
|
|
95
|
+
primary?: CssValue;
|
|
96
96
|
accent?: CssValue;
|
|
97
|
-
'radial-gradient'?: CssValue;
|
|
98
|
-
'linear-gradient'?: CssValue;
|
|
99
|
-
decorated?: CssValue;
|
|
100
97
|
[key: string]: CssValue | undefined;
|
|
101
98
|
}
|
|
102
99
|
/**
|
|
103
|
-
* Surfaces
|
|
104
|
-
*
|
|
100
|
+
* Surfaces — named variants for `[data-surface="…"]`.
|
|
101
|
+
* Canonical set: base, primary, accent.
|
|
105
102
|
*/
|
|
106
103
|
interface SurfacesMap {
|
|
107
104
|
base?: SurfaceVariant;
|
|
108
105
|
primary?: SurfaceVariant;
|
|
109
|
-
secondary?: SurfaceVariant;
|
|
110
|
-
decorated?: SurfaceVariant;
|
|
111
|
-
'alt-primary'?: SurfaceVariant;
|
|
112
|
-
'alt-secondary'?: SurfaceVariant;
|
|
113
|
-
'radial-gradient'?: SurfaceVariant;
|
|
114
|
-
'linear-gradient'?: SurfaceVariant;
|
|
115
|
-
'alt-glass'?: SurfaceVariant;
|
|
116
|
-
info?: SurfaceVariant;
|
|
117
|
-
danger?: SurfaceVariant;
|
|
118
106
|
accent?: SurfaceVariant;
|
|
119
107
|
[key: string]: SurfaceVariant | undefined;
|
|
120
108
|
}
|
|
@@ -77,34 +77,22 @@ export interface ColorPalette {
|
|
|
77
77
|
} | undefined;
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
* Surface definitions
|
|
80
|
+
* Surface definitions — flat preview strings (docs / tooling).
|
|
81
|
+
* Aligns with `surfaces` keys: base, primary, accent.
|
|
81
82
|
*/
|
|
82
83
|
export interface SurfaceDefinitions {
|
|
83
|
-
primary?: CssValue;
|
|
84
|
-
secondary?: CssValue;
|
|
85
84
|
base?: CssValue;
|
|
85
|
+
primary?: CssValue;
|
|
86
86
|
accent?: CssValue;
|
|
87
|
-
'radial-gradient'?: CssValue;
|
|
88
|
-
'linear-gradient'?: CssValue;
|
|
89
|
-
decorated?: CssValue;
|
|
90
87
|
[key: string]: CssValue | undefined;
|
|
91
88
|
}
|
|
92
89
|
/**
|
|
93
|
-
* Surfaces
|
|
94
|
-
*
|
|
90
|
+
* Surfaces — named variants for `[data-surface="…"]`.
|
|
91
|
+
* Canonical set: base, primary, accent.
|
|
95
92
|
*/
|
|
96
93
|
export interface SurfacesMap {
|
|
97
94
|
base?: SurfaceVariant;
|
|
98
95
|
primary?: SurfaceVariant;
|
|
99
|
-
secondary?: SurfaceVariant;
|
|
100
|
-
decorated?: SurfaceVariant;
|
|
101
|
-
'alt-primary'?: SurfaceVariant;
|
|
102
|
-
'alt-secondary'?: SurfaceVariant;
|
|
103
|
-
'radial-gradient'?: SurfaceVariant;
|
|
104
|
-
'linear-gradient'?: SurfaceVariant;
|
|
105
|
-
'alt-glass'?: SurfaceVariant;
|
|
106
|
-
info?: SurfaceVariant;
|
|
107
|
-
danger?: SurfaceVariant;
|
|
108
96
|
accent?: SurfaceVariant;
|
|
109
97
|
[key: string]: SurfaceVariant | undefined;
|
|
110
98
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/types",
|
|
3
3
|
"description": "Shared TypeScript types for all packages",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"url": "git://github.com/ossy-se/packages/types",
|
|
6
6
|
"source": "src/index.ts",
|
|
7
7
|
"module": "build/index.js",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"/build",
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ed1343d2ac7fa32121aa4b2074a01ac3562a2d75"
|
|
30
30
|
}
|