@optiaxiom/globals 1.0.7 → 1.0.9
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/cjs/index.js +4 -4
- package/dist/esm/tokens/colors.js +4 -4
- package/dist/index.d.ts +12 -8
- package/package.json +4 -5
package/dist/cjs/index.js
CHANGED
|
@@ -237,10 +237,10 @@ const colors = {
|
|
|
237
237
|
"fg.disabled": ld(palette["neutral.200"], palette["neutral.50/32"]),
|
|
238
238
|
"fg.error": ld(palette["red.500"], palette["red.300"]),
|
|
239
239
|
"fg.error.hovered": ld(palette["red.600"], palette["red.600"]),
|
|
240
|
-
"fg.error.light": ld(palette["red.300"], palette["red.
|
|
240
|
+
"fg.error.light": ld(palette["red.300"], palette["red.500"]),
|
|
241
241
|
"fg.error.strong": ld(palette["red.700"], palette["red.200"]),
|
|
242
242
|
"fg.information": ld(palette["blue.500"], palette["blue.300"]),
|
|
243
|
-
"fg.information.light": ld(palette["blue.300"], palette["blue.
|
|
243
|
+
"fg.information.light": ld(palette["blue.300"], palette["blue.500"]),
|
|
244
244
|
"fg.information.strong": ld(palette["blue.700"], palette["blue.200"]),
|
|
245
245
|
"fg.link.default": ld(palette["brand.500"], palette["brand.400"]),
|
|
246
246
|
"fg.link.default.hovered": ld(palette["brand.600"], palette["brand.200"]),
|
|
@@ -252,13 +252,13 @@ const colors = {
|
|
|
252
252
|
"fg.spinner.inverse": ld(palette["neutral.200"], palette["neutral.800"]),
|
|
253
253
|
"fg.success": ld(palette["green.500"], palette["green.300"]),
|
|
254
254
|
"fg.success.hovered": ld(palette["green.600"], palette["green.600"]),
|
|
255
|
-
"fg.success.light": ld(palette["green.300"], palette["green.
|
|
255
|
+
"fg.success.light": ld(palette["green.300"], palette["green.500"]),
|
|
256
256
|
"fg.success.strong": ld(palette["green.700"], palette["green.200"]),
|
|
257
257
|
"fg.tertiary": ld(palette["neutral.600"], palette["neutral.500"]),
|
|
258
258
|
"fg.warning": ld(palette["yellow.500"], palette["yellow.300"]),
|
|
259
259
|
"fg.warning.hovered": ld(palette["yellow.600"], palette["yellow.600"]),
|
|
260
260
|
"fg.warning.inverse": ld(palette["neutral.800"], palette["neutral.800"]),
|
|
261
|
-
"fg.warning.light": ld(palette["yellow.300"], palette["yellow.
|
|
261
|
+
"fg.warning.light": ld(palette["yellow.300"], palette["yellow.500"]),
|
|
262
262
|
"fg.warning.strong": ld(palette["yellow.700"], palette["yellow.200"]),
|
|
263
263
|
"fg.white": ld(palette["neutral.00"], palette["neutral.00"])
|
|
264
264
|
};
|
|
@@ -139,10 +139,10 @@ const colors = {
|
|
|
139
139
|
"fg.disabled": ld(palette["neutral.200"], palette["neutral.50/32"]),
|
|
140
140
|
"fg.error": ld(palette["red.500"], palette["red.300"]),
|
|
141
141
|
"fg.error.hovered": ld(palette["red.600"], palette["red.600"]),
|
|
142
|
-
"fg.error.light": ld(palette["red.300"], palette["red.
|
|
142
|
+
"fg.error.light": ld(palette["red.300"], palette["red.500"]),
|
|
143
143
|
"fg.error.strong": ld(palette["red.700"], palette["red.200"]),
|
|
144
144
|
"fg.information": ld(palette["blue.500"], palette["blue.300"]),
|
|
145
|
-
"fg.information.light": ld(palette["blue.300"], palette["blue.
|
|
145
|
+
"fg.information.light": ld(palette["blue.300"], palette["blue.500"]),
|
|
146
146
|
"fg.information.strong": ld(palette["blue.700"], palette["blue.200"]),
|
|
147
147
|
"fg.link.default": ld(palette["brand.500"], palette["brand.400"]),
|
|
148
148
|
"fg.link.default.hovered": ld(palette["brand.600"], palette["brand.200"]),
|
|
@@ -154,13 +154,13 @@ const colors = {
|
|
|
154
154
|
"fg.spinner.inverse": ld(palette["neutral.200"], palette["neutral.800"]),
|
|
155
155
|
"fg.success": ld(palette["green.500"], palette["green.300"]),
|
|
156
156
|
"fg.success.hovered": ld(palette["green.600"], palette["green.600"]),
|
|
157
|
-
"fg.success.light": ld(palette["green.300"], palette["green.
|
|
157
|
+
"fg.success.light": ld(palette["green.300"], palette["green.500"]),
|
|
158
158
|
"fg.success.strong": ld(palette["green.700"], palette["green.200"]),
|
|
159
159
|
"fg.tertiary": ld(palette["neutral.600"], palette["neutral.500"]),
|
|
160
160
|
"fg.warning": ld(palette["yellow.500"], palette["yellow.300"]),
|
|
161
161
|
"fg.warning.hovered": ld(palette["yellow.600"], palette["yellow.600"]),
|
|
162
162
|
"fg.warning.inverse": ld(palette["neutral.800"], palette["neutral.800"]),
|
|
163
|
-
"fg.warning.light": ld(palette["yellow.300"], palette["yellow.
|
|
163
|
+
"fg.warning.light": ld(palette["yellow.300"], palette["yellow.500"]),
|
|
164
164
|
"fg.warning.strong": ld(palette["yellow.700"], palette["yellow.200"]),
|
|
165
165
|
"fg.white": ld(palette["neutral.00"], palette["neutral.00"])
|
|
166
166
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -78,10 +78,10 @@ declare const theme: MapLeafNodes<{
|
|
|
78
78
|
readonly "fg.disabled": "light-dark(#CACFDC, #F9FAFC52)";
|
|
79
79
|
readonly "fg.error": "light-dark(#CC1616, #FC8B8B)";
|
|
80
80
|
readonly "fg.error.hovered": "light-dark(#B21313, #B21313)";
|
|
81
|
-
readonly "fg.error.light": "light-dark(#FC8B8B, #
|
|
81
|
+
readonly "fg.error.light": "light-dark(#FC8B8B, #CC1616)";
|
|
82
82
|
readonly "fg.error.strong": "light-dark(#911D1D, #FFB4B4)";
|
|
83
83
|
readonly "fg.information": "light-dark(#2F7AEE, #7BAAF4)";
|
|
84
|
-
readonly "fg.information.light": "light-dark(#7BAAF4, #
|
|
84
|
+
readonly "fg.information.light": "light-dark(#7BAAF4, #2F7AEE)";
|
|
85
85
|
readonly "fg.information.strong": "light-dark(#0D46A0, #A1C2F7)";
|
|
86
86
|
readonly "fg.link.default": "light-dark(#0037FF, #2E66F7)";
|
|
87
87
|
readonly "fg.link.default.hovered": "light-dark(#002CCC, #B3C3FF)";
|
|
@@ -93,13 +93,13 @@ declare const theme: MapLeafNodes<{
|
|
|
93
93
|
readonly "fg.spinner.inverse": "light-dark(#CACFDC, #2E3442)";
|
|
94
94
|
readonly "fg.success": "light-dark(#03A65D, #7CD2A7)";
|
|
95
95
|
readonly "fg.success.hovered": "light-dark(#038047, #038047)";
|
|
96
|
-
readonly "fg.success.light": "light-dark(#7CD2A7, #
|
|
96
|
+
readonly "fg.success.light": "light-dark(#7CD2A7, #03A65D)";
|
|
97
97
|
readonly "fg.success.strong": "light-dark(#24663E, #A5E1C3)";
|
|
98
98
|
readonly "fg.tertiary": "light-dark(#66708C, #838DA4)";
|
|
99
99
|
readonly "fg.warning": "light-dark(#F79008, #FFC84B)";
|
|
100
100
|
readonly "fg.warning.hovered": "light-dark(#DC6903, #DC6903)";
|
|
101
101
|
readonly "fg.warning.inverse": "light-dark(#2E3442, #2E3442)";
|
|
102
|
-
readonly "fg.warning.light": "light-dark(#FFC84B, #
|
|
102
|
+
readonly "fg.warning.light": "light-dark(#FFC84B, #F79008)";
|
|
103
103
|
readonly "fg.warning.strong": "light-dark(#B54707, #FEDF88)";
|
|
104
104
|
readonly "fg.white": "light-dark(#FFFFFF, #FFFFFF)";
|
|
105
105
|
};
|
|
@@ -202,7 +202,11 @@ type ToastItem = {
|
|
|
202
202
|
};
|
|
203
203
|
type ToastOptions = {
|
|
204
204
|
action?: string;
|
|
205
|
+
intent?: "danger" | "information" | "neutral" | "success" | "warning";
|
|
205
206
|
onAction?: () => void;
|
|
207
|
+
/**
|
|
208
|
+
* @deprecated
|
|
209
|
+
*/
|
|
206
210
|
type?: "danger" | "information" | "neutral" | "success" | "warning";
|
|
207
211
|
};
|
|
208
212
|
type Toaster = {
|
|
@@ -293,10 +297,10 @@ declare const tokens: {
|
|
|
293
297
|
readonly "fg.disabled": "light-dark(#CACFDC, #F9FAFC52)";
|
|
294
298
|
readonly "fg.error": "light-dark(#CC1616, #FC8B8B)";
|
|
295
299
|
readonly "fg.error.hovered": "light-dark(#B21313, #B21313)";
|
|
296
|
-
readonly "fg.error.light": "light-dark(#FC8B8B, #
|
|
300
|
+
readonly "fg.error.light": "light-dark(#FC8B8B, #CC1616)";
|
|
297
301
|
readonly "fg.error.strong": "light-dark(#911D1D, #FFB4B4)";
|
|
298
302
|
readonly "fg.information": "light-dark(#2F7AEE, #7BAAF4)";
|
|
299
|
-
readonly "fg.information.light": "light-dark(#7BAAF4, #
|
|
303
|
+
readonly "fg.information.light": "light-dark(#7BAAF4, #2F7AEE)";
|
|
300
304
|
readonly "fg.information.strong": "light-dark(#0D46A0, #A1C2F7)";
|
|
301
305
|
readonly "fg.link.default": "light-dark(#0037FF, #2E66F7)";
|
|
302
306
|
readonly "fg.link.default.hovered": "light-dark(#002CCC, #B3C3FF)";
|
|
@@ -308,13 +312,13 @@ declare const tokens: {
|
|
|
308
312
|
readonly "fg.spinner.inverse": "light-dark(#CACFDC, #2E3442)";
|
|
309
313
|
readonly "fg.success": "light-dark(#03A65D, #7CD2A7)";
|
|
310
314
|
readonly "fg.success.hovered": "light-dark(#038047, #038047)";
|
|
311
|
-
readonly "fg.success.light": "light-dark(#7CD2A7, #
|
|
315
|
+
readonly "fg.success.light": "light-dark(#7CD2A7, #03A65D)";
|
|
312
316
|
readonly "fg.success.strong": "light-dark(#24663E, #A5E1C3)";
|
|
313
317
|
readonly "fg.tertiary": "light-dark(#66708C, #838DA4)";
|
|
314
318
|
readonly "fg.warning": "light-dark(#F79008, #FFC84B)";
|
|
315
319
|
readonly "fg.warning.hovered": "light-dark(#DC6903, #DC6903)";
|
|
316
320
|
readonly "fg.warning.inverse": "light-dark(#2E3442, #2E3442)";
|
|
317
|
-
readonly "fg.warning.light": "light-dark(#FFC84B, #
|
|
321
|
+
readonly "fg.warning.light": "light-dark(#FFC84B, #F79008)";
|
|
318
322
|
readonly "fg.warning.strong": "light-dark(#B54707, #FEDF88)";
|
|
319
323
|
readonly "fg.white": "light-dark(#FFFFFF, #FFFFFF)";
|
|
320
324
|
};
|
package/package.json
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/globals",
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/optimizely-axiom/optiaxiom.git"
|
|
7
|
+
"url": "git+https://github.com/optimizely-axiom/optiaxiom.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "1.0.
|
|
10
|
+
"version": "1.0.9",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/**",
|
|
13
13
|
"LICENSE"
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@fontsource-variable/fira-code": "^5.2.6",
|
|
34
34
|
"@radix-ui/react-context": "^1.1.2",
|
|
35
|
-
"inter-ui": "^4.1.
|
|
35
|
+
"inter-ui": "^4.1.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@vanilla-extract/css": "^1.17.
|
|
38
|
+
"@vanilla-extract/css": "^1.17.4",
|
|
39
39
|
"react": "^18.3.1",
|
|
40
40
|
"react-dom": "^18.3.1",
|
|
41
41
|
"@optiaxiom/shared": "^0.0.0"
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "rm -rf dist && NODE_ENV=production rollup -c",
|
|
49
49
|
"dev": "rm -rf dist && rollup -cw",
|
|
50
|
-
"lint": "oas-lint",
|
|
51
50
|
"test": "vitest"
|
|
52
51
|
}
|
|
53
52
|
}
|