@optiaxiom/globals 1.0.2 → 1.0.4
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/index.d.ts +3 -2
- package/package.json +7 -5
package/dist/index.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ declare const theme: MapLeafNodes<{
|
|
|
174
174
|
type MapLeafNodes<Obj, LeafType> = {
|
|
175
175
|
[Prop in keyof Obj]: Obj[Prop] extends Primitive ? LeafType : Obj[Prop] extends Record<number | string, any> ? MapLeafNodes<Obj[Prop], LeafType> : never;
|
|
176
176
|
};
|
|
177
|
-
type CSSVarFunction = `var(--${string})` | `var(--${string}, ${
|
|
177
|
+
type CSSVarFunction = `var(--${string})` | `var(--${string}, ${string})`;
|
|
178
178
|
type Primitive = boolean | null | number | string | undefined;
|
|
179
179
|
|
|
180
180
|
declare const ToastProviderProvider: react.FC<{
|
|
@@ -387,4 +387,5 @@ declare const tokens: {
|
|
|
387
387
|
};
|
|
388
388
|
};
|
|
389
389
|
|
|
390
|
-
export { AxiomVersionContext,
|
|
390
|
+
export { AxiomVersionContext, ToastProviderProvider, createToaster, theme, toaster, tokens, useToastProviderContext };
|
|
391
|
+
export type { MapLeafNodes };
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/optimizely-axiom/optiaxiom.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.4",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/**",
|
|
13
13
|
"LICENSE"
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/esm/index.js",
|
|
19
|
-
"require": "./dist/cjs/index.js"
|
|
20
|
-
"types": "./dist/index.d.ts"
|
|
20
|
+
"require": "./dist/cjs/index.js"
|
|
21
21
|
},
|
|
22
22
|
"./fonts": {
|
|
23
23
|
"import": "./dist/esm/fonts.js",
|
|
@@ -30,12 +30,14 @@
|
|
|
30
30
|
],
|
|
31
31
|
"types": "dist/index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@fontsource-variable/fira-code": "^5.
|
|
34
|
-
"@radix-ui/react-context": "^1.1.
|
|
33
|
+
"@fontsource-variable/fira-code": "^5.2.5",
|
|
34
|
+
"@radix-ui/react-context": "^1.1.2",
|
|
35
35
|
"inter-ui": "^4.1.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@vanilla-extract/css": "^1.17.1",
|
|
39
|
+
"react": "^18.3.1",
|
|
40
|
+
"react-dom": "^18.3.1",
|
|
39
41
|
"@optiaxiom/shared": "^0.0.0"
|
|
40
42
|
},
|
|
41
43
|
"peerDependencies": {
|