@optiaxiom/globals 0.7.1 → 0.7.3

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.
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ require('@fontsource-variable/fira-code/index.css');
4
+ require('inter-ui/inter-variable.css');
5
+
@@ -0,0 +1,349 @@
1
+ 'use strict';
2
+
3
+ var react = require('react');
4
+ var reactContext = require('@radix-ui/react-context');
5
+
6
+ const AxiomVersionContext = react.createContext(void 0);
7
+
8
+ var theme = {borderRadius:{xs:'var(--ax-borderRadius-xs)',sm:'var(--ax-borderRadius-sm)',md:'var(--ax-borderRadius-md)',lg:'var(--ax-borderRadius-lg)',full:'var(--ax-borderRadius-full)'},boxShadow:{sm:'var(--ax-boxShadow-sm)',md:'var(--ax-boxShadow-md)',lg:'var(--ax-boxShadow-lg)'},colors:{'bg.accent':'var(--ax-colors-bg-accent)','bg.accent.hovered':'var(--ax-colors-bg-accent-hovered)','bg.accent.light':'var(--ax-colors-bg-accent-light)','bg.accent.pressed':'var(--ax-colors-bg-accent-pressed)','bg.accent.subtle':'var(--ax-colors-bg-accent-subtle)','bg.avatar.neutral':'var(--ax-colors-bg-avatar-neutral)','bg.avatar.purple':'var(--ax-colors-bg-avatar-purple)','bg.default':'var(--ax-colors-bg-default)','bg.default.hovered':'var(--ax-colors-bg-default-hovered)','bg.default.inverse':'var(--ax-colors-bg-default-inverse)','bg.default.inverse.hovered':'var(--ax-colors-bg-default-inverse-hovered)','bg.default.inverse.pressed':'var(--ax-colors-bg-default-inverse-pressed)','bg.default.pressed':'var(--ax-colors-bg-default-pressed)','bg.error':'var(--ax-colors-bg-error)','bg.error.hovered':'var(--ax-colors-bg-error-hovered)','bg.error.light':'var(--ax-colors-bg-error-light)','bg.error.pressed':'var(--ax-colors-bg-error-pressed)','bg.error.subtle':'var(--ax-colors-bg-error-subtle)','bg.error.subtlest':'var(--ax-colors-bg-error-subtlest)','bg.information':'var(--ax-colors-bg-information)','bg.information.light':'var(--ax-colors-bg-information-light)','bg.information.subtle':'var(--ax-colors-bg-information-subtle)','bg.overlay':'var(--ax-colors-bg-overlay)','bg.page':'var(--ax-colors-bg-page)','bg.secondary':'var(--ax-colors-bg-secondary)','bg.secondary.hovered':'var(--ax-colors-bg-secondary-hovered)','bg.spinner.default':'var(--ax-colors-bg-spinner-default)','bg.spinner.inverse':'var(--ax-colors-bg-spinner-inverse)','bg.success':'var(--ax-colors-bg-success)','bg.success.hovered':'var(--ax-colors-bg-success-hovered)','bg.success.light':'var(--ax-colors-bg-success-light)','bg.success.subtle':'var(--ax-colors-bg-success-subtle)','bg.tertiary':'var(--ax-colors-bg-tertiary)','bg.tertiary.hovered':'var(--ax-colors-bg-tertiary-hovered)','bg.warning':'var(--ax-colors-bg-warning)','bg.warning.hovered':'var(--ax-colors-bg-warning-hovered)','bg.warning.light':'var(--ax-colors-bg-warning-light)','bg.warning.subtle':'var(--ax-colors-bg-warning-subtle)','border.accent':'var(--ax-colors-border-accent)','border.control':'var(--ax-colors-border-control)','border.control.hovered':'var(--ax-colors-border-control-hovered)','border.default':'var(--ax-colors-border-default)','border.disabled':'var(--ax-colors-border-disabled)','border.error':'var(--ax-colors-border-error)','border.focus':'var(--ax-colors-border-focus)','border.focus.error':'var(--ax-colors-border-focus-error)','border.secondary':'var(--ax-colors-border-secondary)','border.success':'var(--ax-colors-border-success)','border.tertiary':'var(--ax-colors-border-tertiary)','border.warning':'var(--ax-colors-border-warning)','fg.accent':'var(--ax-colors-fg-accent)','fg.accent.hovered':'var(--ax-colors-fg-accent-hovered)','fg.accent.strong':'var(--ax-colors-fg-accent-strong)','fg.avatar.neutral':'var(--ax-colors-fg-avatar-neutral)','fg.avatar.purple':'var(--ax-colors-fg-avatar-purple)','fg.default':'var(--ax-colors-fg-default)','fg.default.inverse':'var(--ax-colors-fg-default-inverse)','fg.disabled':'var(--ax-colors-fg-disabled)','fg.error':'var(--ax-colors-fg-error)','fg.error.hovered':'var(--ax-colors-fg-error-hovered)','fg.error.light':'var(--ax-colors-fg-error-light)','fg.error.strong':'var(--ax-colors-fg-error-strong)','fg.information':'var(--ax-colors-fg-information)','fg.information.light':'var(--ax-colors-fg-information-light)','fg.information.strong':'var(--ax-colors-fg-information-strong)','fg.link.default':'var(--ax-colors-fg-link-default)','fg.link.default.hovered':'var(--ax-colors-fg-link-default-hovered)','fg.link.inverse':'var(--ax-colors-fg-link-inverse)','fg.link.subtle':'var(--ax-colors-fg-link-subtle)','fg.link.visited':'var(--ax-colors-fg-link-visited)','fg.secondary':'var(--ax-colors-fg-secondary)','fg.spinner.default':'var(--ax-colors-fg-spinner-default)','fg.spinner.inverse':'var(--ax-colors-fg-spinner-inverse)','fg.success':'var(--ax-colors-fg-success)','fg.success.hovered':'var(--ax-colors-fg-success-hovered)','fg.success.light':'var(--ax-colors-fg-success-light)','fg.success.strong':'var(--ax-colors-fg-success-strong)','fg.tertiary':'var(--ax-colors-fg-tertiary)','fg.warning':'var(--ax-colors-fg-warning)','fg.warning.hovered':'var(--ax-colors-fg-warning-hovered)','fg.warning.inverse':'var(--ax-colors-fg-warning-inverse)','fg.warning.light':'var(--ax-colors-fg-warning-light)','fg.warning.strong':'var(--ax-colors-fg-warning-strong)','fg.white':'var(--ax-colors-fg-white)'},fontFamily:{mono:'var(--ax-fontFamily-mono)',sans:'var(--ax-fontFamily-sans)'},fontSize:{xs:{fontSize:'var(--ax-fontSize-xs-fontSize)',lineHeight:'var(--ax-fontSize-xs-lineHeight)'},sm:{fontSize:'var(--ax-fontSize-sm-fontSize)',lineHeight:'var(--ax-fontSize-sm-lineHeight)'},md:{fontSize:'var(--ax-fontSize-md-fontSize)',lineHeight:'var(--ax-fontSize-md-lineHeight)'},lg:{fontSize:'var(--ax-fontSize-lg-fontSize)',lineHeight:'var(--ax-fontSize-lg-lineHeight)'},xl:{fontSize:'var(--ax-fontSize-xl-fontSize)',lineHeight:'var(--ax-fontSize-xl-lineHeight)'},'2xl':{fontSize:'var(--ax-fontSize-2xl-fontSize)',lineHeight:'var(--ax-fontSize-2xl-lineHeight)'},'3xl':{fontSize:'var(--ax-fontSize-3xl-fontSize)',lineHeight:'var(--ax-fontSize-3xl-lineHeight)'},'4xl':{fontSize:'var(--ax-fontSize-4xl-fontSize)',lineHeight:'var(--ax-fontSize-4xl-lineHeight)'}},maxSize:{xs:'var(--ax-maxSize-xs)',sm:'var(--ax-maxSize-sm)',md:'var(--ax-maxSize-md)',lg:'var(--ax-maxSize-lg)'},screens:{sm:'var(--ax-screens-sm)',md:'var(--ax-screens-md)'},size:{'2xs':'var(--ax-size-2xs)',xs:'var(--ax-size-xs)',sm:'var(--ax-size-sm)',md:'var(--ax-size-md)',lg:'var(--ax-size-lg)',xl:'var(--ax-size-xl)','3xl':'var(--ax-size-3xl)'},zIndex:{popover:'var(--ax-zIndex-popover)',toast:'var(--ax-zIndex-toast)',tooltip:'var(--ax-zIndex-tooltip)'}};
9
+
10
+ const [ToastContextProvider, useToastContext] = reactContext.createContext("ToastProvider");
11
+
12
+ const EMPTY = [];
13
+ let id = 1;
14
+ const genId = () => {
15
+ return "t" + id++;
16
+ };
17
+ const createToaster = () => {
18
+ let snapshot = [];
19
+ const listeners = /* @__PURE__ */ new Set();
20
+ const emit = () => {
21
+ for (const listener of listeners) {
22
+ listener();
23
+ }
24
+ };
25
+ let queue = Promise.resolve();
26
+ return {
27
+ store: [
28
+ (callback) => {
29
+ listeners.add(callback);
30
+ return () => listeners.delete(callback);
31
+ },
32
+ () => snapshot,
33
+ () => EMPTY
34
+ ],
35
+ clear: () => {
36
+ snapshot = [];
37
+ emit();
38
+ },
39
+ create: (...args) => {
40
+ const toast = typeof args[0] === "string" ? {
41
+ ...args[1],
42
+ title: args[0]
43
+ } : args[0];
44
+ const id2 = genId();
45
+ queue = queue.then(async () => {
46
+ const item = {
47
+ id: id2,
48
+ open: true,
49
+ ref: { current: null },
50
+ toast
51
+ };
52
+ snapshot = [...snapshot, item];
53
+ emit();
54
+ await waitForAnimation(item.ref.current);
55
+ });
56
+ return id2;
57
+ },
58
+ remove: (id2) => {
59
+ queue = queue.then(async () => {
60
+ snapshot = snapshot.map(
61
+ (item2) => item2.id === id2 ? { ...item2, open: false } : item2
62
+ );
63
+ emit();
64
+ const item = snapshot.find((item2) => item2.id === id2);
65
+ await waitForAnimation(item?.ref.current);
66
+ snapshot = snapshot.filter((item2) => item2.id !== id2);
67
+ emit();
68
+ });
69
+ }
70
+ };
71
+ };
72
+ const waitForAnimation = async (element) => {
73
+ await new Promise((resolve) => requestAnimationFrame(resolve));
74
+ await Promise.allSettled(
75
+ typeof element?.getAnimations === "function" ? element?.getAnimations().map((animation) => animation.finished) : [Promise.resolve()]
76
+ );
77
+ };
78
+ const toaster = createToaster();
79
+
80
+ const rem = (px) => `${parseFloat((parseFloat(px.slice(0, -2)) / 16).toFixed(3))}rem`;
81
+
82
+ const borderRadius = {
83
+ xs: rem("2px"),
84
+ sm: rem("4px"),
85
+ md: rem("6px"),
86
+ lg: rem("8px"),
87
+ full: "9999px"
88
+ };
89
+
90
+ const boxShadow = {
91
+ sm: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
92
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
93
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"
94
+ };
95
+
96
+ const palette = {
97
+ "blue.100": "#C6DBFA",
98
+ "blue.200": "#A1C2F7",
99
+ "blue.300": "#7BAAF4",
100
+ "blue.500": "#2F7AEE",
101
+ "blue.600": "#115DD4",
102
+ "blue.700": "#0D46A0",
103
+ "blue.800": "#09306D",
104
+ "blue.900": "#051939",
105
+ "brand.50": "#F0F3FF",
106
+ "brand.200": "#B3C3FF",
107
+ "brand.300": "#6A8FFC",
108
+ "brand.400": "#2E66F7",
109
+ "brand.500": "#0037FF",
110
+ "brand.600": "#002CCC",
111
+ "brand.700": "#002894",
112
+ "brand.800": "#001666",
113
+ "brand.900": "#000B33",
114
+ "green.100": "#D1F0E1",
115
+ "green.200": "#A5E1C3",
116
+ "green.300": "#7CD2A7",
117
+ "green.400": "#5AC58A",
118
+ "green.500": "#03A65D",
119
+ "green.600": "#038047",
120
+ "green.700": "#24663E",
121
+ "green.800": "#17492B",
122
+ "green.900": "#082415",
123
+ "neutral.00": "#FFFFFF",
124
+ "neutral.50": "#F9FAFC",
125
+ "neutral.75": "#F5F6FA",
126
+ "neutral.100": "#E9EDF5",
127
+ "neutral.150": "#DADFEB",
128
+ "neutral.200": "#CACFDC",
129
+ "neutral.300": "#B8BECB",
130
+ "neutral.500": "#838DA4",
131
+ "neutral.600": "#66708C",
132
+ "neutral.700": "#4F576E",
133
+ "neutral.800": "#2E3442",
134
+ "neutral.900": "#1C212B",
135
+ "neutral.1000": "#1C2029",
136
+ "neutral.1100": "#171A23",
137
+ "neutral.1200": "#091E42",
138
+ "neutral.50/6": "#F9FAFC0F",
139
+ "neutral.50/12": "#F9FAFC1F",
140
+ "neutral.50/18": "#F9FAFC2E",
141
+ "neutral.50/32": "#F9FAFC52",
142
+ "neutral.1200/4": "#091E420A",
143
+ "neutral.1200/8": "#091E4214",
144
+ "neutral.1200/32": "#091E4252",
145
+ "purple.100": "#E5DCF4",
146
+ "purple.500": "#693AB6",
147
+ "purple.600": "#532E8F",
148
+ "purple.700": "#412470",
149
+ "red.50": "#FFF7F7",
150
+ "red.100": "#FFD7D7",
151
+ "red.200": "#FFB4B4",
152
+ "red.300": "#FC8B8B",
153
+ "red.400": "#F64F4F",
154
+ "red.500": "#CC1616",
155
+ "red.600": "#B21313",
156
+ "red.700": "#911D1D",
157
+ "red.800": "#601313",
158
+ "red.900": "#300A0A",
159
+ "yellow.100": "#FEF1C6",
160
+ "yellow.200": "#FEDF88",
161
+ "yellow.300": "#FFC84B",
162
+ "yellow.400": "#FDB022",
163
+ "yellow.500": "#F79008",
164
+ "yellow.600": "#DC6903",
165
+ "yellow.700": "#B54707",
166
+ "yellow.800": "#7A2E0D",
167
+ "yellow.900": "#4E1D09"
168
+ };
169
+ const ld = (a, b) => `light-dark(${a}, ${b})`;
170
+ const colors = {
171
+ "bg.accent": ld(palette["brand.500"], palette["brand.400"]),
172
+ "bg.accent.hovered": ld(palette["brand.600"], palette["brand.400"]),
173
+ "bg.accent.light": ld(palette["brand.200"], palette["brand.800"]),
174
+ "bg.accent.pressed": ld(palette["brand.700"], palette["brand.600"]),
175
+ "bg.accent.subtle": ld(palette["brand.50"], palette["brand.900"]),
176
+ "bg.avatar.neutral": ld(palette["neutral.100"], palette["neutral.800"]),
177
+ "bg.avatar.purple": ld(palette["purple.100"], palette["purple.700"]),
178
+ "bg.default": ld(palette["neutral.00"], palette["neutral.1000"]),
179
+ "bg.default.hovered": ld(palette["neutral.1200/4"], palette["neutral.50/6"]),
180
+ "bg.default.inverse": ld(palette["neutral.800"], palette["neutral.100"]),
181
+ "bg.default.inverse.hovered": ld(
182
+ palette["neutral.900"],
183
+ palette["neutral.200"]
184
+ ),
185
+ "bg.default.inverse.pressed": ld(
186
+ palette["neutral.1000"],
187
+ palette["neutral.300"]
188
+ ),
189
+ "bg.default.pressed": ld(palette["neutral.1200/8"], palette["neutral.50/12"]),
190
+ "bg.error": ld(palette["red.500"], palette["red.500"]),
191
+ "bg.error.hovered": ld(palette["red.600"], palette["red.400"]),
192
+ "bg.error.light": ld(palette["red.200"], palette["red.700"]),
193
+ "bg.error.pressed": ld(palette["red.700"], palette["red.600"]),
194
+ "bg.error.subtle": ld(palette["red.100"], palette["red.800"]),
195
+ "bg.error.subtlest": ld(palette["red.50"], palette["red.900"]),
196
+ "bg.information": ld(palette["blue.600"], palette["blue.600"]),
197
+ "bg.information.light": ld(palette["blue.200"], palette["blue.800"]),
198
+ "bg.information.subtle": ld(palette["blue.100"], palette["blue.900"]),
199
+ "bg.overlay": ld(palette["neutral.1200/32"], palette["neutral.50/32"]),
200
+ "bg.page": ld(palette["neutral.50"], palette["neutral.1100"]),
201
+ "bg.secondary": ld(palette["neutral.75"], palette["neutral.900"]),
202
+ "bg.secondary.hovered": ld(palette["neutral.75"], palette["neutral.50/12"]),
203
+ "bg.spinner.default": ld(palette["neutral.1200"], palette["neutral.50"]),
204
+ "bg.spinner.inverse": ld(palette["neutral.50"], palette["neutral.50"]),
205
+ "bg.success": ld(palette["green.600"], palette["green.600"]),
206
+ "bg.success.hovered": ld(palette["green.700"], palette["green.400"]),
207
+ "bg.success.light": ld(palette["green.200"], palette["green.800"]),
208
+ "bg.success.subtle": ld(palette["green.100"], palette["green.900"]),
209
+ "bg.tertiary": ld(palette["neutral.150"], palette["neutral.700"]),
210
+ "bg.tertiary.hovered": ld(palette["neutral.200"], palette["neutral.50/18"]),
211
+ "bg.warning": ld(palette["yellow.300"], palette["yellow.500"]),
212
+ "bg.warning.hovered": ld(palette["yellow.600"], palette["yellow.400"]),
213
+ "bg.warning.light": ld(palette["yellow.200"], palette["yellow.800"]),
214
+ "bg.warning.subtle": ld(palette["yellow.100"], palette["yellow.900"]),
215
+ "border.accent": ld(palette["brand.500"], palette["brand.300"]),
216
+ "border.control": ld(palette["neutral.500"], palette["neutral.700"]),
217
+ "border.control.hovered": ld(palette["neutral.600"], palette["neutral.600"]),
218
+ "border.default": ld(palette["neutral.200"], palette["neutral.600"]),
219
+ "border.disabled": ld(palette["neutral.75"], palette["neutral.800"]),
220
+ "border.error": ld(palette["red.500"], palette["red.200"]),
221
+ "border.focus": ld(palette["brand.400"], palette["brand.300"]),
222
+ "border.focus.error": ld(palette["red.400"], palette["red.300"]),
223
+ "border.secondary": ld(palette["neutral.150"], palette["neutral.700"]),
224
+ "border.success": ld(palette["green.500"], palette["green.500"]),
225
+ "border.tertiary": ld(palette["neutral.100"], palette["neutral.800"]),
226
+ "border.warning": ld(palette["yellow.500"], palette["yellow.500"]),
227
+ "fg.accent": ld(palette["brand.500"], palette["brand.300"]),
228
+ "fg.accent.hovered": ld(palette["brand.600"], palette["brand.500"]),
229
+ "fg.accent.strong": ld(palette["brand.700"], palette["brand.400"]),
230
+ "fg.avatar.neutral": ld(palette["neutral.700"], palette["neutral.100"]),
231
+ "fg.avatar.purple": ld(palette["purple.700"], palette["purple.100"]),
232
+ "fg.default": ld(palette["neutral.800"], palette["neutral.75"]),
233
+ "fg.default.inverse": ld(palette["neutral.00"], palette["neutral.800"]),
234
+ "fg.disabled": ld(palette["neutral.200"], palette["neutral.50/32"]),
235
+ "fg.error": ld(palette["red.500"], palette["red.300"]),
236
+ "fg.error.hovered": ld(palette["red.600"], palette["red.600"]),
237
+ "fg.error.light": ld(palette["red.300"], palette["red.300"]),
238
+ "fg.error.strong": ld(palette["red.700"], palette["red.200"]),
239
+ "fg.information": ld(palette["blue.500"], palette["blue.300"]),
240
+ "fg.information.light": ld(palette["blue.300"], palette["blue.300"]),
241
+ "fg.information.strong": ld(palette["blue.700"], palette["blue.200"]),
242
+ "fg.link.default": ld(palette["brand.500"], palette["brand.400"]),
243
+ "fg.link.default.hovered": ld(palette["brand.600"], palette["brand.200"]),
244
+ "fg.link.inverse": ld(palette["neutral.00"], palette["neutral.800"]),
245
+ "fg.link.subtle": ld(palette["neutral.800"], palette["neutral.75"]),
246
+ "fg.link.visited": ld(palette["purple.600"], palette["purple.500"]),
247
+ "fg.secondary": ld(palette["neutral.700"], palette["neutral.200"]),
248
+ "fg.spinner.default": ld(palette["neutral.800"], palette["neutral.200"]),
249
+ "fg.spinner.inverse": ld(palette["neutral.200"], palette["neutral.800"]),
250
+ "fg.success": ld(palette["green.500"], palette["green.300"]),
251
+ "fg.success.hovered": ld(palette["green.600"], palette["green.600"]),
252
+ "fg.success.light": ld(palette["green.300"], palette["green.300"]),
253
+ "fg.success.strong": ld(palette["green.700"], palette["green.200"]),
254
+ "fg.tertiary": ld(palette["neutral.600"], palette["neutral.500"]),
255
+ "fg.warning": ld(palette["yellow.500"], palette["yellow.300"]),
256
+ "fg.warning.hovered": ld(palette["yellow.600"], palette["yellow.600"]),
257
+ "fg.warning.inverse": ld(palette["neutral.800"], palette["neutral.800"]),
258
+ "fg.warning.light": ld(palette["yellow.300"], palette["yellow.300"]),
259
+ "fg.warning.strong": ld(palette["yellow.700"], palette["yellow.200"]),
260
+ "fg.white": ld(palette["neutral.00"], palette["neutral.00"])
261
+ };
262
+
263
+ const fontFamily = {
264
+ mono: "Fira Code Variable, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",
265
+ sans: "InterVariable, system-ui, sans-serif"
266
+ };
267
+
268
+ const fontSize = {
269
+ xs: {
270
+ fontSize: rem("10px"),
271
+ lineHeight: rem("14px")
272
+ },
273
+ sm: {
274
+ fontSize: rem("12px"),
275
+ lineHeight: rem("16px")
276
+ },
277
+ md: {
278
+ fontSize: rem("14px"),
279
+ lineHeight: rem("20px")
280
+ },
281
+ lg: {
282
+ fontSize: rem("16px"),
283
+ lineHeight: rem("24px")
284
+ },
285
+ xl: {
286
+ fontSize: rem("20px"),
287
+ lineHeight: rem("28px")
288
+ },
289
+ "2xl": {
290
+ fontSize: rem("24px"),
291
+ lineHeight: rem("32px")
292
+ },
293
+ "3xl": {
294
+ fontSize: rem("28px"),
295
+ lineHeight: rem("40px")
296
+ },
297
+ "4xl": {
298
+ fontSize: rem("32px"),
299
+ lineHeight: rem("44px")
300
+ }
301
+ };
302
+
303
+ const maxSize = {
304
+ xs: rem("320px"),
305
+ sm: rem("384px"),
306
+ md: rem("448px"),
307
+ lg: rem("512px")
308
+ };
309
+
310
+ const screens = {
311
+ sm: rem("600px"),
312
+ md: rem("900px")
313
+ };
314
+
315
+ const size = {
316
+ "2xs": rem("16px"),
317
+ xs: rem("20px"),
318
+ sm: rem("24px"),
319
+ md: rem("32px"),
320
+ lg: rem("40px"),
321
+ xl: rem("48px"),
322
+ "3xl": rem("80px")
323
+ };
324
+
325
+ const zIndex = {
326
+ popover: "3000",
327
+ toast: "3010",
328
+ tooltip: "10000"
329
+ };
330
+
331
+ const tokens = {
332
+ borderRadius,
333
+ boxShadow,
334
+ colors,
335
+ fontFamily,
336
+ fontSize,
337
+ maxSize,
338
+ screens,
339
+ size,
340
+ zIndex
341
+ };
342
+
343
+ exports.AxiomVersionContext = AxiomVersionContext;
344
+ exports.ToastContextProvider = ToastContextProvider;
345
+ exports.createToaster = createToaster;
346
+ exports.theme = theme;
347
+ exports.toaster = toaster;
348
+ exports.tokens = tokens;
349
+ exports.useToastContext = useToastContext;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import { createContext } from 'react';
3
3
 
4
- const AxiomVersionContext = createContext(undefined);
4
+ const AxiomVersionContext = createContext(void 0);
5
5
 
6
6
  export { AxiomVersionContext };
@@ -0,0 +1,2 @@
1
+ import '@fontsource-variable/fira-code/index.css';
2
+ import 'inter-ui/inter-variable.css';
@@ -1,3 +1,3 @@
1
- var theme = {borderRadius:{xs:'var(--ax-borderRadius-xs)',sm:'var(--ax-borderRadius-sm)',md:'var(--ax-borderRadius-md)',lg:'var(--ax-borderRadius-lg)',full:'var(--ax-borderRadius-full)'},boxShadow:{sm:'var(--ax-boxShadow-sm)',md:'var(--ax-boxShadow-md)',lg:'var(--ax-boxShadow-lg)'},colors:{'bg.accent':'var(--ax-colors-bg-accent)','bg.accent.hovered':'var(--ax-colors-bg-accent-hovered)','bg.accent.light':'var(--ax-colors-bg-accent-light)','bg.accent.pressed':'var(--ax-colors-bg-accent-pressed)','bg.accent.subtle':'var(--ax-colors-bg-accent-subtle)','bg.avatar.neutral':'var(--ax-colors-bg-avatar-neutral)','bg.avatar.purple':'var(--ax-colors-bg-avatar-purple)','bg.default':'var(--ax-colors-bg-default)','bg.default.hovered':'var(--ax-colors-bg-default-hovered)','bg.default.inverse':'var(--ax-colors-bg-default-inverse)','bg.default.inverse.hovered':'var(--ax-colors-bg-default-inverse-hovered)','bg.default.inverse.pressed':'var(--ax-colors-bg-default-inverse-pressed)','bg.default.pressed':'var(--ax-colors-bg-default-pressed)','bg.error':'var(--ax-colors-bg-error)','bg.error.hovered':'var(--ax-colors-bg-error-hovered)','bg.error.light':'var(--ax-colors-bg-error-light)','bg.error.pressed':'var(--ax-colors-bg-error-pressed)','bg.error.subtle':'var(--ax-colors-bg-error-subtle)','bg.error.subtlest':'var(--ax-colors-bg-error-subtlest)','bg.information':'var(--ax-colors-bg-information)','bg.information.light':'var(--ax-colors-bg-information-light)','bg.information.subtle':'var(--ax-colors-bg-information-subtle)','bg.overlay':'var(--ax-colors-bg-overlay)','bg.page':'var(--ax-colors-bg-page)','bg.secondary':'var(--ax-colors-bg-secondary)','bg.secondary.hovered':'var(--ax-colors-bg-secondary-hovered)','bg.spinner.default':'var(--ax-colors-bg-spinner-default)','bg.spinner.inverse':'var(--ax-colors-bg-spinner-inverse)','bg.success':'var(--ax-colors-bg-success)','bg.success.hovered':'var(--ax-colors-bg-success-hovered)','bg.success.light':'var(--ax-colors-bg-success-light)','bg.success.subtle':'var(--ax-colors-bg-success-subtle)','bg.tertiary':'var(--ax-colors-bg-tertiary)','bg.tertiary.hovered':'var(--ax-colors-bg-tertiary-hovered)','bg.warning':'var(--ax-colors-bg-warning)','bg.warning.hovered':'var(--ax-colors-bg-warning-hovered)','bg.warning.light':'var(--ax-colors-bg-warning-light)','bg.warning.subtle':'var(--ax-colors-bg-warning-subtle)','border.accent':'var(--ax-colors-border-accent)','border.control':'var(--ax-colors-border-control)','border.control.hovered':'var(--ax-colors-border-control-hovered)','border.default':'var(--ax-colors-border-default)','border.disabled':'var(--ax-colors-border-disabled)','border.error':'var(--ax-colors-border-error)','border.focus':'var(--ax-colors-border-focus)','border.focus.error':'var(--ax-colors-border-focus-error)','border.secondary':'var(--ax-colors-border-secondary)','border.success':'var(--ax-colors-border-success)','border.tertiary':'var(--ax-colors-border-tertiary)','border.warning':'var(--ax-colors-border-warning)','fg.accent':'var(--ax-colors-fg-accent)','fg.accent.hovered':'var(--ax-colors-fg-accent-hovered)','fg.accent.strong':'var(--ax-colors-fg-accent-strong)','fg.avatar.neutral':'var(--ax-colors-fg-avatar-neutral)','fg.avatar.purple':'var(--ax-colors-fg-avatar-purple)','fg.default':'var(--ax-colors-fg-default)','fg.default.inverse':'var(--ax-colors-fg-default-inverse)','fg.disabled':'var(--ax-colors-fg-disabled)','fg.error':'var(--ax-colors-fg-error)','fg.error.hovered':'var(--ax-colors-fg-error-hovered)','fg.error.light':'var(--ax-colors-fg-error-light)','fg.error.strong':'var(--ax-colors-fg-error-strong)','fg.information':'var(--ax-colors-fg-information)','fg.information.light':'var(--ax-colors-fg-information-light)','fg.information.strong':'var(--ax-colors-fg-information-strong)','fg.link.default':'var(--ax-colors-fg-link-default)','fg.link.default.hovered':'var(--ax-colors-fg-link-default-hovered)','fg.link.inverse':'var(--ax-colors-fg-link-inverse)','fg.link.subtle':'var(--ax-colors-fg-link-subtle)','fg.link.visited':'var(--ax-colors-fg-link-visited)','fg.secondary':'var(--ax-colors-fg-secondary)','fg.spinner.default':'var(--ax-colors-fg-spinner-default)','fg.spinner.inverse':'var(--ax-colors-fg-spinner-inverse)','fg.success':'var(--ax-colors-fg-success)','fg.success.hovered':'var(--ax-colors-fg-success-hovered)','fg.success.light':'var(--ax-colors-fg-success-light)','fg.success.strong':'var(--ax-colors-fg-success-strong)','fg.tertiary':'var(--ax-colors-fg-tertiary)','fg.warning':'var(--ax-colors-fg-warning)','fg.warning.hovered':'var(--ax-colors-fg-warning-hovered)','fg.warning.inverse':'var(--ax-colors-fg-warning-inverse)','fg.warning.light':'var(--ax-colors-fg-warning-light)','fg.warning.strong':'var(--ax-colors-fg-warning-strong)','fg.white':'var(--ax-colors-fg-white)'},fontFamily:{mono:'var(--ax-fontFamily-mono)',sans:'var(--ax-fontFamily-sans)'},fontSize:{xs:{fontSize:'var(--ax-fontSize-xs-fontSize)',lineHeight:'var(--ax-fontSize-xs-lineHeight)'},sm:{fontSize:'var(--ax-fontSize-sm-fontSize)',lineHeight:'var(--ax-fontSize-sm-lineHeight)'},md:{fontSize:'var(--ax-fontSize-md-fontSize)',lineHeight:'var(--ax-fontSize-md-lineHeight)'},lg:{fontSize:'var(--ax-fontSize-lg-fontSize)',lineHeight:'var(--ax-fontSize-lg-lineHeight)'},xl:{fontSize:'var(--ax-fontSize-xl-fontSize)',lineHeight:'var(--ax-fontSize-xl-lineHeight)'},'2xl':{fontSize:'var(--ax-fontSize-2xl-fontSize)',lineHeight:'var(--ax-fontSize-2xl-lineHeight)'},'3xl':{fontSize:'var(--ax-fontSize-3xl-fontSize)',lineHeight:'var(--ax-fontSize-3xl-lineHeight)'},'4xl':{fontSize:'var(--ax-fontSize-4xl-fontSize)',lineHeight:'var(--ax-fontSize-4xl-lineHeight)'},'5xl':{fontSize:'var(--ax-fontSize-5xl-fontSize)',lineHeight:'var(--ax-fontSize-5xl-lineHeight)'}},maxSize:{xs:'var(--ax-maxSize-xs)',sm:'var(--ax-maxSize-sm)',md:'var(--ax-maxSize-md)',lg:'var(--ax-maxSize-lg)'},screens:{sm:'var(--ax-screens-sm)',md:'var(--ax-screens-md)'},size:{'2xs':'var(--ax-size-2xs)',xs:'var(--ax-size-xs)',sm:'var(--ax-size-sm)',md:'var(--ax-size-md)',lg:'var(--ax-size-lg)',xl:'var(--ax-size-xl)','3xl':'var(--ax-size-3xl)'},zIndex:{popover:'var(--ax-zIndex-popover)',toast:'var(--ax-zIndex-toast)',tooltip:'var(--ax-zIndex-tooltip)'}};
1
+ var theme = {borderRadius:{xs:'var(--ax-borderRadius-xs)',sm:'var(--ax-borderRadius-sm)',md:'var(--ax-borderRadius-md)',lg:'var(--ax-borderRadius-lg)',full:'var(--ax-borderRadius-full)'},boxShadow:{sm:'var(--ax-boxShadow-sm)',md:'var(--ax-boxShadow-md)',lg:'var(--ax-boxShadow-lg)'},colors:{'bg.accent':'var(--ax-colors-bg-accent)','bg.accent.hovered':'var(--ax-colors-bg-accent-hovered)','bg.accent.light':'var(--ax-colors-bg-accent-light)','bg.accent.pressed':'var(--ax-colors-bg-accent-pressed)','bg.accent.subtle':'var(--ax-colors-bg-accent-subtle)','bg.avatar.neutral':'var(--ax-colors-bg-avatar-neutral)','bg.avatar.purple':'var(--ax-colors-bg-avatar-purple)','bg.default':'var(--ax-colors-bg-default)','bg.default.hovered':'var(--ax-colors-bg-default-hovered)','bg.default.inverse':'var(--ax-colors-bg-default-inverse)','bg.default.inverse.hovered':'var(--ax-colors-bg-default-inverse-hovered)','bg.default.inverse.pressed':'var(--ax-colors-bg-default-inverse-pressed)','bg.default.pressed':'var(--ax-colors-bg-default-pressed)','bg.error':'var(--ax-colors-bg-error)','bg.error.hovered':'var(--ax-colors-bg-error-hovered)','bg.error.light':'var(--ax-colors-bg-error-light)','bg.error.pressed':'var(--ax-colors-bg-error-pressed)','bg.error.subtle':'var(--ax-colors-bg-error-subtle)','bg.error.subtlest':'var(--ax-colors-bg-error-subtlest)','bg.information':'var(--ax-colors-bg-information)','bg.information.light':'var(--ax-colors-bg-information-light)','bg.information.subtle':'var(--ax-colors-bg-information-subtle)','bg.overlay':'var(--ax-colors-bg-overlay)','bg.page':'var(--ax-colors-bg-page)','bg.secondary':'var(--ax-colors-bg-secondary)','bg.secondary.hovered':'var(--ax-colors-bg-secondary-hovered)','bg.spinner.default':'var(--ax-colors-bg-spinner-default)','bg.spinner.inverse':'var(--ax-colors-bg-spinner-inverse)','bg.success':'var(--ax-colors-bg-success)','bg.success.hovered':'var(--ax-colors-bg-success-hovered)','bg.success.light':'var(--ax-colors-bg-success-light)','bg.success.subtle':'var(--ax-colors-bg-success-subtle)','bg.tertiary':'var(--ax-colors-bg-tertiary)','bg.tertiary.hovered':'var(--ax-colors-bg-tertiary-hovered)','bg.warning':'var(--ax-colors-bg-warning)','bg.warning.hovered':'var(--ax-colors-bg-warning-hovered)','bg.warning.light':'var(--ax-colors-bg-warning-light)','bg.warning.subtle':'var(--ax-colors-bg-warning-subtle)','border.accent':'var(--ax-colors-border-accent)','border.control':'var(--ax-colors-border-control)','border.control.hovered':'var(--ax-colors-border-control-hovered)','border.default':'var(--ax-colors-border-default)','border.disabled':'var(--ax-colors-border-disabled)','border.error':'var(--ax-colors-border-error)','border.focus':'var(--ax-colors-border-focus)','border.focus.error':'var(--ax-colors-border-focus-error)','border.secondary':'var(--ax-colors-border-secondary)','border.success':'var(--ax-colors-border-success)','border.tertiary':'var(--ax-colors-border-tertiary)','border.warning':'var(--ax-colors-border-warning)','fg.accent':'var(--ax-colors-fg-accent)','fg.accent.hovered':'var(--ax-colors-fg-accent-hovered)','fg.accent.strong':'var(--ax-colors-fg-accent-strong)','fg.avatar.neutral':'var(--ax-colors-fg-avatar-neutral)','fg.avatar.purple':'var(--ax-colors-fg-avatar-purple)','fg.default':'var(--ax-colors-fg-default)','fg.default.inverse':'var(--ax-colors-fg-default-inverse)','fg.disabled':'var(--ax-colors-fg-disabled)','fg.error':'var(--ax-colors-fg-error)','fg.error.hovered':'var(--ax-colors-fg-error-hovered)','fg.error.light':'var(--ax-colors-fg-error-light)','fg.error.strong':'var(--ax-colors-fg-error-strong)','fg.information':'var(--ax-colors-fg-information)','fg.information.light':'var(--ax-colors-fg-information-light)','fg.information.strong':'var(--ax-colors-fg-information-strong)','fg.link.default':'var(--ax-colors-fg-link-default)','fg.link.default.hovered':'var(--ax-colors-fg-link-default-hovered)','fg.link.inverse':'var(--ax-colors-fg-link-inverse)','fg.link.subtle':'var(--ax-colors-fg-link-subtle)','fg.link.visited':'var(--ax-colors-fg-link-visited)','fg.secondary':'var(--ax-colors-fg-secondary)','fg.spinner.default':'var(--ax-colors-fg-spinner-default)','fg.spinner.inverse':'var(--ax-colors-fg-spinner-inverse)','fg.success':'var(--ax-colors-fg-success)','fg.success.hovered':'var(--ax-colors-fg-success-hovered)','fg.success.light':'var(--ax-colors-fg-success-light)','fg.success.strong':'var(--ax-colors-fg-success-strong)','fg.tertiary':'var(--ax-colors-fg-tertiary)','fg.warning':'var(--ax-colors-fg-warning)','fg.warning.hovered':'var(--ax-colors-fg-warning-hovered)','fg.warning.inverse':'var(--ax-colors-fg-warning-inverse)','fg.warning.light':'var(--ax-colors-fg-warning-light)','fg.warning.strong':'var(--ax-colors-fg-warning-strong)','fg.white':'var(--ax-colors-fg-white)'},fontFamily:{mono:'var(--ax-fontFamily-mono)',sans:'var(--ax-fontFamily-sans)'},fontSize:{xs:{fontSize:'var(--ax-fontSize-xs-fontSize)',lineHeight:'var(--ax-fontSize-xs-lineHeight)'},sm:{fontSize:'var(--ax-fontSize-sm-fontSize)',lineHeight:'var(--ax-fontSize-sm-lineHeight)'},md:{fontSize:'var(--ax-fontSize-md-fontSize)',lineHeight:'var(--ax-fontSize-md-lineHeight)'},lg:{fontSize:'var(--ax-fontSize-lg-fontSize)',lineHeight:'var(--ax-fontSize-lg-lineHeight)'},xl:{fontSize:'var(--ax-fontSize-xl-fontSize)',lineHeight:'var(--ax-fontSize-xl-lineHeight)'},'2xl':{fontSize:'var(--ax-fontSize-2xl-fontSize)',lineHeight:'var(--ax-fontSize-2xl-lineHeight)'},'3xl':{fontSize:'var(--ax-fontSize-3xl-fontSize)',lineHeight:'var(--ax-fontSize-3xl-lineHeight)'},'4xl':{fontSize:'var(--ax-fontSize-4xl-fontSize)',lineHeight:'var(--ax-fontSize-4xl-lineHeight)'}},maxSize:{xs:'var(--ax-maxSize-xs)',sm:'var(--ax-maxSize-sm)',md:'var(--ax-maxSize-md)',lg:'var(--ax-maxSize-lg)'},screens:{sm:'var(--ax-screens-sm)',md:'var(--ax-screens-md)'},size:{'2xs':'var(--ax-size-2xs)',xs:'var(--ax-size-xs)',sm:'var(--ax-size-sm)',md:'var(--ax-size-md)',lg:'var(--ax-size-lg)',xl:'var(--ax-size-xl)','3xl':'var(--ax-size-3xl)'},zIndex:{popover:'var(--ax-zIndex-popover)',toast:'var(--ax-zIndex-toast)',tooltip:'var(--ax-zIndex-tooltip)'}};
2
2
 
3
3
  export { theme };
@@ -1,16 +1,13 @@
1
1
  const palette = {
2
- "blue.50": "#D9E7FC",
3
2
  "blue.100": "#C6DBFA",
4
3
  "blue.200": "#A1C2F7",
5
4
  "blue.300": "#7BAAF4",
6
- "blue.400": "#5592F1",
7
5
  "blue.500": "#2F7AEE",
8
6
  "blue.600": "#115DD4",
9
7
  "blue.700": "#0D46A0",
10
8
  "blue.800": "#09306D",
11
9
  "blue.900": "#051939",
12
10
  "brand.50": "#F0F3FF",
13
- "brand.100": "#CDD8FC",
14
11
  "brand.200": "#B3C3FF",
15
12
  "brand.300": "#6A8FFC",
16
13
  "brand.400": "#2E66F7",
@@ -19,17 +16,6 @@ const palette = {
19
16
  "brand.700": "#002894",
20
17
  "brand.800": "#001666",
21
18
  "brand.900": "#000B33",
22
- "cyan.50": "#ECFEFF",
23
- "cyan.100": "#CFFAFE",
24
- "cyan.200": "#99F0F9",
25
- "cyan.300": "#67E8F9",
26
- "cyan.400": "#22D3EE",
27
- "cyan.500": "#06B6D4",
28
- "cyan.600": "#0891B2",
29
- "cyan.700": "#0E7490",
30
- "cyan.800": "#155E75",
31
- "cyan.900": "#083344",
32
- "green.50": "#E9F7F1",
33
19
  "green.100": "#D1F0E1",
34
20
  "green.200": "#A5E1C3",
35
21
  "green.300": "#7CD2A7",
@@ -39,16 +25,6 @@ const palette = {
39
25
  "green.700": "#24663E",
40
26
  "green.800": "#17492B",
41
27
  "green.900": "#082415",
42
- "magenta.50": "#FDF4FF",
43
- "magenta.100": "#FAE8FF",
44
- "magenta.200": "#F5D0FE",
45
- "magenta.300": "#F0ABFC",
46
- "magenta.400": "#D765E9",
47
- "magenta.500": "#C026D3",
48
- "magenta.600": "#A21CAF",
49
- "magenta.700": "#86198F",
50
- "magenta.800": "#701A75",
51
- "magenta.900": "#4A044E",
52
28
  "neutral.00": "#FFFFFF",
53
29
  "neutral.50": "#F9FAFC",
54
30
  "neutral.75": "#F5F6FA",
@@ -67,23 +43,14 @@ const palette = {
67
43
  "neutral.50/6": "#F9FAFC0F",
68
44
  "neutral.50/12": "#F9FAFC1F",
69
45
  "neutral.50/18": "#F9FAFC2E",
70
- "neutral.50/22": "#F9FAFC38",
71
46
  "neutral.50/32": "#F9FAFC52",
72
47
  "neutral.1200/4": "#091E420A",
73
48
  "neutral.1200/8": "#091E4214",
74
- "neutral.1200/16": "#091E4229",
75
- "neutral.1200/22": "#091E4238",
76
49
  "neutral.1200/32": "#091E4252",
77
- "purple.50": "#F1ECF8",
78
50
  "purple.100": "#E5DCF4",
79
- "purple.200": "#C4B1E2",
80
- "purple.300": "#9570D1",
81
- "purple.400": "#7E51C8",
82
51
  "purple.500": "#693AB6",
83
52
  "purple.600": "#532E8F",
84
53
  "purple.700": "#412470",
85
- "purple.800": "#331C59",
86
- "purple.900": "#261542",
87
54
  "red.50": "#FFF7F7",
88
55
  "red.100": "#FFD7D7",
89
56
  "red.200": "#FFB4B4",
@@ -94,7 +61,6 @@ const palette = {
94
61
  "red.700": "#911D1D",
95
62
  "red.800": "#601313",
96
63
  "red.900": "#300A0A",
97
- "yellow.50": "#FFFAEA",
98
64
  "yellow.100": "#FEF1C6",
99
65
  "yellow.200": "#FEDF88",
100
66
  "yellow.300": "#FFC84B",
@@ -154,14 +120,14 @@ const colors = {
154
120
  "border.accent": ld(palette["brand.500"], palette["brand.300"]),
155
121
  "border.control": ld(palette["neutral.500"], palette["neutral.700"]),
156
122
  "border.control.hovered": ld(palette["neutral.600"], palette["neutral.600"]),
157
- "border.default": ld(palette["neutral.100"], palette["neutral.800"]),
123
+ "border.default": ld(palette["neutral.200"], palette["neutral.600"]),
158
124
  "border.disabled": ld(palette["neutral.75"], palette["neutral.800"]),
159
125
  "border.error": ld(palette["red.500"], palette["red.200"]),
160
126
  "border.focus": ld(palette["brand.400"], palette["brand.300"]),
161
127
  "border.focus.error": ld(palette["red.400"], palette["red.300"]),
162
128
  "border.secondary": ld(palette["neutral.150"], palette["neutral.700"]),
163
129
  "border.success": ld(palette["green.500"], palette["green.500"]),
164
- "border.tertiary": ld(palette["neutral.200"], palette["neutral.600"]),
130
+ "border.tertiary": ld(palette["neutral.100"], palette["neutral.800"]),
165
131
  "border.warning": ld(palette["yellow.500"], palette["yellow.500"]),
166
132
  "fg.accent": ld(palette["brand.500"], palette["brand.300"]),
167
133
  "fg.accent.hovered": ld(palette["brand.600"], palette["brand.500"]),
@@ -180,8 +146,8 @@ const colors = {
180
146
  "fg.information.strong": ld(palette["blue.700"], palette["blue.200"]),
181
147
  "fg.link.default": ld(palette["brand.500"], palette["brand.400"]),
182
148
  "fg.link.default.hovered": ld(palette["brand.600"], palette["brand.200"]),
183
- "fg.link.inverse": ld(palette["neutral.00"], palette["neutral.00"]),
184
- "fg.link.subtle": ld(palette["neutral.800"], palette["neutral.800"]),
149
+ "fg.link.inverse": ld(palette["neutral.00"], palette["neutral.800"]),
150
+ "fg.link.subtle": ld(palette["neutral.800"], palette["neutral.75"]),
185
151
  "fg.link.visited": ld(palette["purple.600"], palette["purple.500"]),
186
152
  "fg.secondary": ld(palette["neutral.700"], palette["neutral.200"]),
187
153
  "fg.spinner.default": ld(palette["neutral.800"], palette["neutral.200"]),
@@ -18,24 +18,20 @@ const fontSize = {
18
18
  lineHeight: rem("24px")
19
19
  },
20
20
  xl: {
21
- fontSize: rem("18px"),
22
- lineHeight: rem("28px")
23
- },
24
- "2xl": {
25
21
  fontSize: rem("20px"),
26
22
  lineHeight: rem("28px")
27
23
  },
28
- "3xl": {
24
+ "2xl": {
29
25
  fontSize: rem("24px"),
30
26
  lineHeight: rem("32px")
31
27
  },
32
- "4xl": {
33
- fontSize: rem("30px"),
34
- lineHeight: rem("36px")
35
- },
36
- "5xl": {
37
- fontSize: rem("36px"),
28
+ "3xl": {
29
+ fontSize: rem("28px"),
38
30
  lineHeight: rem("40px")
31
+ },
32
+ "4xl": {
33
+ fontSize: rem("32px"),
34
+ lineHeight: rem("44px")
39
35
  }
40
36
  };
41
37
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { RefObject, ReactElement, useSyncExternalStore } from 'react';
2
+ import { RefObject, ReactElement } from 'react';
3
3
 
4
4
  declare const AxiomVersionContext: react.Context<string | undefined>;
5
5
 
@@ -58,14 +58,14 @@ declare const theme: MapLeafNodes<{
58
58
  readonly "border.accent": "light-dark(#0037FF, #6A8FFC)";
59
59
  readonly "border.control": "light-dark(#838DA4, #4F576E)";
60
60
  readonly "border.control.hovered": "light-dark(#66708C, #66708C)";
61
- readonly "border.default": "light-dark(#E9EDF5, #2E3442)";
61
+ readonly "border.default": "light-dark(#CACFDC, #66708C)";
62
62
  readonly "border.disabled": "light-dark(#F5F6FA, #2E3442)";
63
63
  readonly "border.error": "light-dark(#CC1616, #FFB4B4)";
64
64
  readonly "border.focus": "light-dark(#2E66F7, #6A8FFC)";
65
65
  readonly "border.focus.error": "light-dark(#F64F4F, #FC8B8B)";
66
66
  readonly "border.secondary": "light-dark(#DADFEB, #4F576E)";
67
67
  readonly "border.success": "light-dark(#03A65D, #03A65D)";
68
- readonly "border.tertiary": "light-dark(#CACFDC, #66708C)";
68
+ readonly "border.tertiary": "light-dark(#E9EDF5, #2E3442)";
69
69
  readonly "border.warning": "light-dark(#F79008, #F79008)";
70
70
  readonly "fg.accent": "light-dark(#0037FF, #6A8FFC)";
71
71
  readonly "fg.accent.hovered": "light-dark(#002CCC, #0037FF)";
@@ -84,8 +84,8 @@ declare const theme: MapLeafNodes<{
84
84
  readonly "fg.information.strong": "light-dark(#0D46A0, #A1C2F7)";
85
85
  readonly "fg.link.default": "light-dark(#0037FF, #2E66F7)";
86
86
  readonly "fg.link.default.hovered": "light-dark(#002CCC, #B3C3FF)";
87
- readonly "fg.link.inverse": "light-dark(#FFFFFF, #FFFFFF)";
88
- readonly "fg.link.subtle": "light-dark(#2E3442, #2E3442)";
87
+ readonly "fg.link.inverse": "light-dark(#FFFFFF, #2E3442)";
88
+ readonly "fg.link.subtle": "light-dark(#2E3442, #F5F6FA)";
89
89
  readonly "fg.link.visited": "light-dark(#532E8F, #693AB6)";
90
90
  readonly "fg.secondary": "light-dark(#4F576E, #CACFDC)";
91
91
  readonly "fg.spinner.default": "light-dark(#2E3442, #CACFDC)";
@@ -124,25 +124,21 @@ declare const theme: MapLeafNodes<{
124
124
  readonly lineHeight: "24px";
125
125
  };
126
126
  readonly xl: {
127
- readonly fontSize: "18px";
128
- readonly lineHeight: "28px";
129
- };
130
- readonly "2xl": {
131
127
  readonly fontSize: "20px";
132
128
  readonly lineHeight: "28px";
133
129
  };
134
- readonly "3xl": {
130
+ readonly "2xl": {
135
131
  readonly fontSize: "24px";
136
132
  readonly lineHeight: "32px";
137
133
  };
138
- readonly "4xl": {
139
- readonly fontSize: "30px";
140
- readonly lineHeight: "36px";
141
- };
142
- readonly "5xl": {
143
- readonly fontSize: "36px";
134
+ readonly "3xl": {
135
+ readonly fontSize: "28px";
144
136
  readonly lineHeight: "40px";
145
137
  };
138
+ readonly "4xl": {
139
+ readonly fontSize: "32px";
140
+ readonly lineHeight: "44px";
141
+ };
146
142
  };
147
143
  readonly maxSize: {
148
144
  readonly xs: "320px";
@@ -190,6 +186,14 @@ declare const useToastContext: (consumerName: string) => {
190
186
  toastRef: RefObject<HTMLElement>;
191
187
  };
192
188
 
189
+ type ToastItem = {
190
+ id: string;
191
+ open: boolean;
192
+ ref: RefObject<HTMLElement>;
193
+ toast: ReactElement | (ToastOptions & {
194
+ title: string;
195
+ });
196
+ };
193
197
  type ToastOptions = {
194
198
  action?: string;
195
199
  onAction?: () => void;
@@ -199,7 +203,11 @@ type Toaster = {
199
203
  clear: () => void;
200
204
  create: (...args: [message: string, options?: ToastOptions] | [toast: ReactElement]) => string;
201
205
  remove: (id: string) => void;
202
- store: Parameters<typeof useSyncExternalStore<ToastItem[]>>;
206
+ store: [
207
+ subscribe: (onStoreChange: () => void) => () => void,
208
+ getSnapshot: () => ToastItem[],
209
+ getServerSnapshot?: () => ToastItem[]
210
+ ];
203
211
  };
204
212
  declare const createToaster: () => Toaster;
205
213
  declare const toaster: Toaster;
@@ -259,14 +267,14 @@ declare const tokens: {
259
267
  readonly "border.accent": "light-dark(#0037FF, #6A8FFC)";
260
268
  readonly "border.control": "light-dark(#838DA4, #4F576E)";
261
269
  readonly "border.control.hovered": "light-dark(#66708C, #66708C)";
262
- readonly "border.default": "light-dark(#E9EDF5, #2E3442)";
270
+ readonly "border.default": "light-dark(#CACFDC, #66708C)";
263
271
  readonly "border.disabled": "light-dark(#F5F6FA, #2E3442)";
264
272
  readonly "border.error": "light-dark(#CC1616, #FFB4B4)";
265
273
  readonly "border.focus": "light-dark(#2E66F7, #6A8FFC)";
266
274
  readonly "border.focus.error": "light-dark(#F64F4F, #FC8B8B)";
267
275
  readonly "border.secondary": "light-dark(#DADFEB, #4F576E)";
268
276
  readonly "border.success": "light-dark(#03A65D, #03A65D)";
269
- readonly "border.tertiary": "light-dark(#CACFDC, #66708C)";
277
+ readonly "border.tertiary": "light-dark(#E9EDF5, #2E3442)";
270
278
  readonly "border.warning": "light-dark(#F79008, #F79008)";
271
279
  readonly "fg.accent": "light-dark(#0037FF, #6A8FFC)";
272
280
  readonly "fg.accent.hovered": "light-dark(#002CCC, #0037FF)";
@@ -285,8 +293,8 @@ declare const tokens: {
285
293
  readonly "fg.information.strong": "light-dark(#0D46A0, #A1C2F7)";
286
294
  readonly "fg.link.default": "light-dark(#0037FF, #2E66F7)";
287
295
  readonly "fg.link.default.hovered": "light-dark(#002CCC, #B3C3FF)";
288
- readonly "fg.link.inverse": "light-dark(#FFFFFF, #FFFFFF)";
289
- readonly "fg.link.subtle": "light-dark(#2E3442, #2E3442)";
296
+ readonly "fg.link.inverse": "light-dark(#FFFFFF, #2E3442)";
297
+ readonly "fg.link.subtle": "light-dark(#2E3442, #F5F6FA)";
290
298
  readonly "fg.link.visited": "light-dark(#532E8F, #693AB6)";
291
299
  readonly "fg.secondary": "light-dark(#4F576E, #CACFDC)";
292
300
  readonly "fg.spinner.default": "light-dark(#2E3442, #CACFDC)";
@@ -325,25 +333,21 @@ declare const tokens: {
325
333
  readonly lineHeight: "24px";
326
334
  };
327
335
  readonly xl: {
328
- readonly fontSize: "18px";
329
- readonly lineHeight: "28px";
330
- };
331
- readonly "2xl": {
332
336
  readonly fontSize: "20px";
333
337
  readonly lineHeight: "28px";
334
338
  };
335
- readonly "3xl": {
339
+ readonly "2xl": {
336
340
  readonly fontSize: "24px";
337
341
  readonly lineHeight: "32px";
338
342
  };
339
- readonly "4xl": {
340
- readonly fontSize: "30px";
341
- readonly lineHeight: "36px";
342
- };
343
- readonly "5xl": {
344
- readonly fontSize: "36px";
343
+ readonly "3xl": {
344
+ readonly fontSize: "28px";
345
345
  readonly lineHeight: "40px";
346
346
  };
347
+ readonly "4xl": {
348
+ readonly fontSize: "32px";
349
+ readonly lineHeight: "44px";
350
+ };
347
351
  };
348
352
  readonly maxSize: {
349
353
  readonly xs: "320px";
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": "0.7.1",
10
+ "version": "0.7.3",
11
11
  "files": [
12
12
  "dist/**",
13
13
  "LICENSE"
@@ -15,15 +15,18 @@
15
15
  "license": "Apache-2.0",
16
16
  "exports": {
17
17
  ".": {
18
- "import": "./dist/index.js",
18
+ "import": "./dist/esm/index.js",
19
+ "require": "./dist/cjs/index.js",
19
20
  "types": "./dist/index.d.ts"
20
21
  },
21
22
  "./fonts": {
22
- "import": "./dist/fonts.js"
23
+ "import": "./dist/esm/fonts.js",
24
+ "require": "./dist/cjs/fonts.js"
23
25
  }
24
26
  },
25
27
  "sideEffects": [
26
- "./dist/fonts.js"
28
+ "./dist/cjs/fonts.js",
29
+ "./dist/esm/fonts.js"
27
30
  ],
28
31
  "types": "dist/index.d.ts",
29
32
  "dependencies": {
@@ -32,7 +35,7 @@
32
35
  "inter-ui": "^4.1.0"
33
36
  },
34
37
  "devDependencies": {
35
- "@vanilla-extract/css": "^1.17.0",
38
+ "@vanilla-extract/css": "^1.17.1",
36
39
  "@optiaxiom/shared": "^0.0.0"
37
40
  },
38
41
  "peerDependencies": {
package/dist/fonts.js DELETED
@@ -1,2 +0,0 @@
1
- import '@fontsource-variable/fira-code';
2
- import 'inter-ui/inter-variable.css';
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes