@orion-ds/react 5.0.1 → 5.1.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/blocks/templates/index.cjs +1 -0
- package/dist/blocks/templates/index.mjs +18 -0
- package/dist/client.cjs +1 -1
- package/dist/client.mjs +143 -139
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.mjs +105 -86
- package/dist/components/Chart/Chart.cjs +1 -1
- package/dist/components/Chart/Chart.d.ts +2 -3
- package/dist/components/Chart/Chart.d.ts.map +1 -1
- package/dist/components/Chart/Chart.mjs +124 -71
- package/dist/components/Chat/components/ChatMarkdown.cjs +1 -1
- package/dist/components/Chat/components/ChatMarkdown.d.ts.map +1 -1
- package/dist/components/Chat/components/ChatMarkdown.mjs +32 -17
- package/dist/components/CodeEditor/CodeEditor.cjs +6 -6
- package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/components/CodeEditor/CodeEditor.mjs +118 -99
- package/dist/components/CollapsibleFolder/CollapsibleFolder.cjs +1 -1
- package/dist/components/CollapsibleFolder/CollapsibleFolder.d.ts.map +1 -1
- package/dist/components/CollapsibleFolder/CollapsibleFolder.mjs +123 -105
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.mjs +70 -52
- package/dist/components/MissingDependencyError.cjs +1 -0
- package/dist/components/MissingDependencyError.d.ts +5 -0
- package/dist/components/MissingDependencyError.d.ts.map +1 -0
- package/dist/components/MissingDependencyError.mjs +140 -0
- package/dist/components/ThemeController/ThemeController.cjs +1 -1
- package/dist/components/ThemeController/ThemeController.d.ts.map +1 -1
- package/dist/components/ThemeController/ThemeController.mjs +14 -19
- package/dist/hooks/useTheme.cjs +1 -1
- package/dist/hooks/useTheme.d.ts +1 -1
- package/dist/hooks/useTheme.d.ts.map +1 -1
- package/dist/hooks/useTheme.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +143 -139
- package/dist/sections/index.cjs +1 -0
- package/dist/sections/index.mjs +43 -0
- package/dist/tokens/brands.cjs +1 -1
- package/dist/tokens/brands.d.ts.map +1 -1
- package/dist/tokens/brands.mjs +0 -41
- package/dist/tokens/primitives.cjs +1 -1
- package/dist/tokens/primitives.d.ts.map +1 -1
- package/dist/tokens/primitives.mjs +22 -21
- package/dist/tokens/themes.cjs +1 -1
- package/dist/tokens/themes.d.ts.map +1 -1
- package/dist/tokens/themes.mjs +44 -0
- package/dist/tokens/types.d.ts +84 -106
- package/dist/tokens/types.d.ts.map +1 -1
- package/dist/tokens/utils.d.ts.map +1 -1
- package/dist/tokens/utils.mjs +1 -3
- package/dist/utils/fonts.cjs +1 -1
- package/dist/utils/fonts.d.ts.map +1 -1
- package/dist/utils/fonts.mjs +0 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/optionalDeps.cjs +1 -0
- package/dist/utils/optionalDeps.d.ts +63 -0
- package/dist/utils/optionalDeps.d.ts.map +1 -0
- package/dist/utils/optionalDeps.mjs +55 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
project: {
|
|
3
3
|
name: "Orion",
|
|
4
4
|
description: "AI-First Design System Primitives"
|
|
@@ -57,19 +57,6 @@ const f = {
|
|
|
57
57
|
900: "#8c3513",
|
|
58
58
|
950: "#59220c"
|
|
59
59
|
},
|
|
60
|
-
ember: {
|
|
61
|
-
50: "#fef0eb",
|
|
62
|
-
100: "#fdd5c9",
|
|
63
|
-
200: "#fcb9a5",
|
|
64
|
-
300: "#fa9d80",
|
|
65
|
-
400: "#f87d52",
|
|
66
|
-
500: "#F15D22",
|
|
67
|
-
600: "#d9531f",
|
|
68
|
-
700: "#c0491b",
|
|
69
|
-
800: "#a63f17",
|
|
70
|
-
900: "#8c3513",
|
|
71
|
-
950: "#59220c"
|
|
72
|
-
},
|
|
73
60
|
lemon: {
|
|
74
61
|
50: "#F4FFE6",
|
|
75
62
|
100: "#E5FFCC",
|
|
@@ -115,16 +102,28 @@ const f = {
|
|
|
115
102
|
1e3: "#000000"
|
|
116
103
|
},
|
|
117
104
|
error: {
|
|
118
|
-
|
|
105
|
+
100: "#fee2e2",
|
|
106
|
+
300: "#fca5a5",
|
|
107
|
+
500: "#ef4444",
|
|
108
|
+
700: "#b91c1c"
|
|
119
109
|
},
|
|
120
110
|
success: {
|
|
121
|
-
|
|
111
|
+
100: "#dcfce7",
|
|
112
|
+
300: "#86efac",
|
|
113
|
+
500: "#22c55e",
|
|
114
|
+
700: "#15803d"
|
|
122
115
|
},
|
|
123
116
|
warning: {
|
|
124
|
-
|
|
117
|
+
100: "#fef9c3",
|
|
118
|
+
300: "#fde047",
|
|
119
|
+
500: "#eab308",
|
|
120
|
+
700: "#a16207"
|
|
125
121
|
},
|
|
126
122
|
info: {
|
|
127
|
-
|
|
123
|
+
100: "#dbeafe",
|
|
124
|
+
300: "#93c5fd",
|
|
125
|
+
500: "#3b82f6",
|
|
126
|
+
700: "#1d4ed8"
|
|
128
127
|
}
|
|
129
128
|
},
|
|
130
129
|
typography: {
|
|
@@ -186,12 +185,14 @@ const f = {
|
|
|
186
185
|
},
|
|
187
186
|
radius: {
|
|
188
187
|
0: "0px",
|
|
188
|
+
xs: "4px",
|
|
189
189
|
sm: "8px",
|
|
190
190
|
md: "12px",
|
|
191
191
|
lg: "16px",
|
|
192
192
|
"lg-2": "20px",
|
|
193
193
|
xl: "24px",
|
|
194
194
|
"2xl": "32px",
|
|
195
|
+
"3xl": "36px",
|
|
195
196
|
full: "9999px"
|
|
196
197
|
},
|
|
197
198
|
radiusScale: {
|
|
@@ -237,12 +238,12 @@ const f = {
|
|
|
237
238
|
},
|
|
238
239
|
stroke: "2"
|
|
239
240
|
}
|
|
240
|
-
}, { color:
|
|
241
|
+
}, { color: f, typography: p, spacing: x, radius: a, blur: s, icon: l } = e;
|
|
241
242
|
export {
|
|
242
243
|
s as blur,
|
|
243
|
-
|
|
244
|
+
f as color,
|
|
244
245
|
l as icon,
|
|
245
|
-
|
|
246
|
+
e as primitives,
|
|
246
247
|
a as radius,
|
|
247
248
|
x as spacing,
|
|
248
249
|
p as typography
|
package/dist/tokens/themes.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={theme:"light",semantic:{surface:{base:"{color.neutral.0}",subtle:"{color.neutral.50}",layer:"{color.neutral.100}",primary:"{color.neutral.100}",secondary:"{color.neutral.50}",glass:"color-mix(in srgb, {color.neutral.0} 70%, transparent)",sunken:"color-mix(in srgb, {color.neutral.0} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 50%, transparent)"},text:{primary:"{color.neutral.900}",secondary:"{color.neutral.500}",tertiary:"{color.neutral.400}",inverse:"{color.neutral.0}",brand:"{color.brand.500}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.200}",strong:"{color.neutral.300}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.700}",text:"{color.neutral.0}"},secondary:{default:"{color.neutral.100}",hover:"{color.neutral.200}",text:"{color.neutral.900}"},ghost:{hover:"color-mix(in srgb, {color.neutral.1000} 5%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 10%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 20%, transparent)",success:"color-mix(in srgb, {color.success.500} 10%, transparent)",error:"color-mix(in srgb, {color.error.500} 10%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 10%, transparent)",info:"color-mix(in srgb, {color.info.500} 10%, transparent)"},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.500}",2:"{color.brand.300}",3:"{color.brand.700}",4:"{color.success.500}",5:"{color.warning.500}"}}},o={theme:"dark",semantic:{surface:{base:"{color.neutral.900}",subtle:"{color.neutral.950}",layer:"{color.neutral.900}",primary:"{color.neutral.900}",secondary:"{color.neutral.900}",glass:"color-mix(in srgb, {color.neutral.950} 60%, transparent)",sunken:"color-mix(in srgb, {color.neutral.950} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 70%, transparent)"},text:{primary:"{color.neutral.50}",secondary:"{color.neutral.400}",tertiary:"{color.neutral.600}",inverse:"{color.neutral.950}",brand:"{color.brand.400}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.800}",strong:"{color.neutral.700}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.400}",text:"{color.neutral.900}"},secondary:{default:"{color.neutral.800}",hover:"{color.neutral.700}",text:"{color.neutral.50}"},ghost:{hover:"color-mix(in srgb, {color.neutral.0} 10%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 15%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 25%, transparent)",success:"color-mix(in srgb, {color.success.500} 15%, transparent)",error:"color-mix(in srgb, {color.error.500} 15%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 15%, transparent)",info:"color-mix(in srgb, {color.info.500} 15%, transparent)"},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.400}",2:"{color.brand.200}",3:"{color.brand.600}",4:"{color.success.500}",5:"{color.warning.500}"}}},n={light:r,dark:o};exports.darkTheme=o;exports.lightTheme=r;exports.themes=n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={theme:"light",semantic:{surface:{base:"{color.neutral.0}",subtle:"{color.neutral.50}",layer:"{color.neutral.100}",primary:"{color.neutral.100}",secondary:"{color.neutral.50}",glass:"color-mix(in srgb, {color.neutral.0} 70%, transparent)",sunken:"color-mix(in srgb, {color.neutral.0} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 50%, transparent)"},text:{primary:"{color.neutral.900}",secondary:"{color.neutral.500}",tertiary:"{color.neutral.400}",inverse:"{color.neutral.0}",brand:"{color.brand.500}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.200}",strong:"{color.neutral.300}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.700}",text:"{color.neutral.0}"},secondary:{default:"{color.neutral.100}",hover:"{color.neutral.200}",text:"{color.neutral.900}"},ghost:{hover:"color-mix(in srgb, {color.neutral.1000} 5%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 10%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 20%, transparent)",success:"color-mix(in srgb, {color.success.500} 10%, transparent)",error:"color-mix(in srgb, {color.error.500} 10%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 10%, transparent)",info:"color-mix(in srgb, {color.info.500} 10%, transparent)"},alert:{success:{bg:"{color.success.100}",text:"{color.success.700}",border:"{color.success.500}"},error:{bg:"{color.error.100}",text:"{color.error.700}",border:"{color.error.500}"},warning:{bg:"{color.warning.100}",text:"{color.warning.700}",border:"{color.warning.500}"},info:{bg:"{color.info.100}",text:"{color.info.700}",border:"{color.info.500}"}},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.500}",2:"{color.brand.300}",3:"{color.brand.700}",4:"{color.success.500}",5:"{color.warning.500}"}}},o={theme:"dark",semantic:{surface:{base:"{color.neutral.900}",subtle:"{color.neutral.950}",layer:"{color.neutral.900}",primary:"{color.neutral.900}",secondary:"{color.neutral.900}",glass:"color-mix(in srgb, {color.neutral.950} 60%, transparent)",sunken:"color-mix(in srgb, {color.neutral.950} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 70%, transparent)"},text:{primary:"{color.neutral.50}",secondary:"{color.neutral.400}",tertiary:"{color.neutral.600}",inverse:"{color.neutral.950}",brand:"{color.brand.400}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.800}",strong:"{color.neutral.700}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.400}",text:"{color.neutral.900}"},secondary:{default:"{color.neutral.800}",hover:"{color.neutral.700}",text:"{color.neutral.50}"},ghost:{hover:"color-mix(in srgb, {color.neutral.0} 10%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 15%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 25%, transparent)",success:"color-mix(in srgb, {color.success.500} 15%, transparent)",error:"color-mix(in srgb, {color.error.500} 15%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 15%, transparent)",info:"color-mix(in srgb, {color.info.500} 15%, transparent)"},alert:{success:{bg:"color-mix(in srgb, {color.success.500} 20%, transparent)",text:"{color.success.300}",border:"{color.success.500}"},error:{bg:"color-mix(in srgb, {color.error.500} 20%, transparent)",text:"{color.error.300}",border:"{color.error.500}"},warning:{bg:"color-mix(in srgb, {color.warning.500} 20%, transparent)",text:"{color.warning.300}",border:"{color.warning.500}"},info:{bg:"color-mix(in srgb, {color.info.500} 20%, transparent)",text:"{color.info.300}",border:"{color.info.500}"}},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.400}",2:"{color.brand.200}",3:"{color.brand.600}",4:"{color.success.500}",5:"{color.warning.500}"}}},n={light:r,dark:o};exports.darkTheme=o;exports.lightTheme=r;exports.themes=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/tokens/themes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../src/tokens/themes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,UAAU,EAAE,WAgGf,CAAC;AAEX,eAAO,MAAM,SAAS,EAAE,WAgGd,CAAC;AAEX,eAAO,MAAM,MAAM;;;CAGT,CAAC"}
|
package/dist/tokens/themes.mjs
CHANGED
|
@@ -57,6 +57,28 @@ const r = {
|
|
|
57
57
|
warning: "color-mix(in srgb, {color.warning.500} 10%, transparent)",
|
|
58
58
|
info: "color-mix(in srgb, {color.info.500} 10%, transparent)"
|
|
59
59
|
},
|
|
60
|
+
alert: {
|
|
61
|
+
success: {
|
|
62
|
+
bg: "{color.success.100}",
|
|
63
|
+
text: "{color.success.700}",
|
|
64
|
+
border: "{color.success.500}"
|
|
65
|
+
},
|
|
66
|
+
error: {
|
|
67
|
+
bg: "{color.error.100}",
|
|
68
|
+
text: "{color.error.700}",
|
|
69
|
+
border: "{color.error.500}"
|
|
70
|
+
},
|
|
71
|
+
warning: {
|
|
72
|
+
bg: "{color.warning.100}",
|
|
73
|
+
text: "{color.warning.700}",
|
|
74
|
+
border: "{color.warning.500}"
|
|
75
|
+
},
|
|
76
|
+
info: {
|
|
77
|
+
bg: "{color.info.100}",
|
|
78
|
+
text: "{color.info.700}",
|
|
79
|
+
border: "{color.info.500}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
60
82
|
focus: {
|
|
61
83
|
ring: "0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"
|
|
62
84
|
},
|
|
@@ -131,6 +153,28 @@ const r = {
|
|
|
131
153
|
warning: "color-mix(in srgb, {color.warning.500} 15%, transparent)",
|
|
132
154
|
info: "color-mix(in srgb, {color.info.500} 15%, transparent)"
|
|
133
155
|
},
|
|
156
|
+
alert: {
|
|
157
|
+
success: {
|
|
158
|
+
bg: "color-mix(in srgb, {color.success.500} 20%, transparent)",
|
|
159
|
+
text: "{color.success.300}",
|
|
160
|
+
border: "{color.success.500}"
|
|
161
|
+
},
|
|
162
|
+
error: {
|
|
163
|
+
bg: "color-mix(in srgb, {color.error.500} 20%, transparent)",
|
|
164
|
+
text: "{color.error.300}",
|
|
165
|
+
border: "{color.error.500}"
|
|
166
|
+
},
|
|
167
|
+
warning: {
|
|
168
|
+
bg: "color-mix(in srgb, {color.warning.500} 20%, transparent)",
|
|
169
|
+
text: "{color.warning.300}",
|
|
170
|
+
border: "{color.warning.500}"
|
|
171
|
+
},
|
|
172
|
+
info: {
|
|
173
|
+
bg: "color-mix(in srgb, {color.info.500} 20%, transparent)",
|
|
174
|
+
text: "{color.info.300}",
|
|
175
|
+
border: "{color.info.500}"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
134
178
|
focus: {
|
|
135
179
|
ring: "0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"
|
|
136
180
|
},
|
package/dist/tokens/types.d.ts
CHANGED
|
@@ -5,24 +5,23 @@
|
|
|
5
5
|
* DO NOT EDIT MANUALLY - Run 'npm run build:tokens' to regenerate.
|
|
6
6
|
*/
|
|
7
7
|
export type ColorShades = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
'50': string;
|
|
9
|
+
'100': string;
|
|
10
|
+
'200': string;
|
|
11
|
+
'300': string;
|
|
12
|
+
'400': string;
|
|
13
|
+
'500': string;
|
|
14
|
+
'600': string;
|
|
15
|
+
'700': string;
|
|
16
|
+
'800': string;
|
|
17
|
+
'900': string;
|
|
18
|
+
'950': string;
|
|
19
19
|
};
|
|
20
20
|
export interface BrandColors {
|
|
21
21
|
orion: ColorShades;
|
|
22
22
|
deepblue: ColorShades;
|
|
23
23
|
red: ColorShades;
|
|
24
24
|
orange: ColorShades;
|
|
25
|
-
ember: ColorShades;
|
|
26
25
|
lemon: ColorShades;
|
|
27
26
|
}
|
|
28
27
|
export interface NeutralColors {
|
|
@@ -41,7 +40,10 @@ export interface NeutralColors {
|
|
|
41
40
|
1000: string;
|
|
42
41
|
}
|
|
43
42
|
export interface StatusColors {
|
|
43
|
+
100?: string;
|
|
44
|
+
300?: string;
|
|
44
45
|
500: string;
|
|
46
|
+
700?: string;
|
|
45
47
|
}
|
|
46
48
|
export interface ColorPrimitives {
|
|
47
49
|
brand: BrandColors;
|
|
@@ -64,7 +66,7 @@ export interface TypographyWeight {
|
|
|
64
66
|
}
|
|
65
67
|
export interface TypographySize {
|
|
66
68
|
10: string;
|
|
67
|
-
11
|
|
69
|
+
11?: string;
|
|
68
70
|
12: string;
|
|
69
71
|
13: string;
|
|
70
72
|
14: string;
|
|
@@ -95,7 +97,7 @@ export interface TypographyPrimitives {
|
|
|
95
97
|
export interface SpacingPrimitives {
|
|
96
98
|
0: string;
|
|
97
99
|
px: string;
|
|
98
|
-
|
|
100
|
+
'05': string;
|
|
99
101
|
1: string;
|
|
100
102
|
2: string;
|
|
101
103
|
3: string;
|
|
@@ -115,23 +117,14 @@ export interface SpacingPrimitives {
|
|
|
115
117
|
}
|
|
116
118
|
export interface RadiusPrimitives {
|
|
117
119
|
0: string;
|
|
120
|
+
xs?: string;
|
|
118
121
|
sm: string;
|
|
119
122
|
md: string;
|
|
120
123
|
lg: string;
|
|
121
|
-
|
|
124
|
+
'lg-2': string;
|
|
122
125
|
xl: string;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
export interface RadiusScalePrimitives {
|
|
127
|
-
0: string;
|
|
128
|
-
xs: string;
|
|
129
|
-
sm: string;
|
|
130
|
-
md: string;
|
|
131
|
-
lg: string;
|
|
132
|
-
"lg-2": string;
|
|
133
|
-
xl: string;
|
|
134
|
-
"2xl": string;
|
|
126
|
+
'2xl': string;
|
|
127
|
+
'3xl'?: string;
|
|
135
128
|
full: string;
|
|
136
129
|
}
|
|
137
130
|
export interface BlurPrimitives {
|
|
@@ -151,21 +144,6 @@ export interface IconPrimitives {
|
|
|
151
144
|
};
|
|
152
145
|
stroke: string;
|
|
153
146
|
}
|
|
154
|
-
export interface ZIndexPrimitives {
|
|
155
|
-
base: string;
|
|
156
|
-
dropdown: string;
|
|
157
|
-
sticky: string;
|
|
158
|
-
overlay: string;
|
|
159
|
-
modal: string;
|
|
160
|
-
popover: string;
|
|
161
|
-
tooltip: string;
|
|
162
|
-
toast: string;
|
|
163
|
-
}
|
|
164
|
-
export interface TransitionPrimitives {
|
|
165
|
-
fast: string;
|
|
166
|
-
normal: string;
|
|
167
|
-
slow: string;
|
|
168
|
-
}
|
|
169
147
|
export interface Primitives {
|
|
170
148
|
project?: {
|
|
171
149
|
name: string;
|
|
@@ -175,11 +153,10 @@ export interface Primitives {
|
|
|
175
153
|
typography: TypographyPrimitives;
|
|
176
154
|
spacing: SpacingPrimitives;
|
|
177
155
|
radius: RadiusPrimitives;
|
|
178
|
-
radiusScale
|
|
156
|
+
radiusScale?: Record<string, any>;
|
|
179
157
|
blur: BlurPrimitives;
|
|
180
|
-
zIndex: ZIndexPrimitives;
|
|
181
|
-
transition: TransitionPrimitives;
|
|
182
158
|
icon: IconPrimitives;
|
|
159
|
+
[key: string]: any;
|
|
183
160
|
}
|
|
184
161
|
export interface SurfaceSemantics {
|
|
185
162
|
base: string;
|
|
@@ -191,17 +168,18 @@ export interface SurfaceSemantics {
|
|
|
191
168
|
sunken: string;
|
|
192
169
|
overlay: string;
|
|
193
170
|
}
|
|
171
|
+
export interface TextOnBrandSemantics {
|
|
172
|
+
primary: string;
|
|
173
|
+
secondary: string;
|
|
174
|
+
tertiary: string;
|
|
175
|
+
}
|
|
194
176
|
export interface TextSemantics {
|
|
195
177
|
primary: string;
|
|
196
178
|
secondary: string;
|
|
197
179
|
tertiary: string;
|
|
198
180
|
inverse: string;
|
|
199
181
|
brand: string;
|
|
200
|
-
|
|
201
|
-
primary: string;
|
|
202
|
-
secondary: string;
|
|
203
|
-
tertiary: string;
|
|
204
|
-
};
|
|
182
|
+
'on-brand'?: TextOnBrandSemantics;
|
|
205
183
|
}
|
|
206
184
|
export interface BorderSemantics {
|
|
207
185
|
subtle: string;
|
|
@@ -234,15 +212,15 @@ export interface StatusSemantics {
|
|
|
234
212
|
}
|
|
235
213
|
export interface SoftSemantics {
|
|
236
214
|
brand: string;
|
|
237
|
-
|
|
215
|
+
'brand-hover': string;
|
|
238
216
|
success: string;
|
|
239
|
-
|
|
217
|
+
'success-hover'?: string;
|
|
240
218
|
error: string;
|
|
241
|
-
|
|
219
|
+
'error-hover'?: string;
|
|
242
220
|
warning?: string;
|
|
243
|
-
|
|
221
|
+
'warning-hover'?: string;
|
|
244
222
|
info?: string;
|
|
245
|
-
|
|
223
|
+
'info-hover'?: string;
|
|
246
224
|
}
|
|
247
225
|
export interface SemanticTokens {
|
|
248
226
|
surface: SurfaceSemantics;
|
|
@@ -251,6 +229,8 @@ export interface SemanticTokens {
|
|
|
251
229
|
interactive: InteractiveSemantics;
|
|
252
230
|
status: StatusSemantics;
|
|
253
231
|
soft: SoftSemantics;
|
|
232
|
+
alert?: Record<string, any>;
|
|
233
|
+
chart?: Record<string, any>;
|
|
254
234
|
focus?: {
|
|
255
235
|
ring: string;
|
|
256
236
|
};
|
|
@@ -258,12 +238,10 @@ export interface SemanticTokens {
|
|
|
258
238
|
start: string;
|
|
259
239
|
end: string;
|
|
260
240
|
};
|
|
261
|
-
|
|
262
|
-
[key: string]: string;
|
|
263
|
-
};
|
|
241
|
+
[key: string]: any;
|
|
264
242
|
}
|
|
265
|
-
export type Theme =
|
|
266
|
-
export type Brand =
|
|
243
|
+
export type Theme = 'light' | 'dark';
|
|
244
|
+
export type Brand = 'orion' | 'deepblue' | 'red' | 'orange' | 'lemon';
|
|
267
245
|
export interface ThemeConfig {
|
|
268
246
|
theme: Theme;
|
|
269
247
|
semantic: SemanticTokens;
|
|
@@ -283,7 +261,7 @@ export interface BrandConfig {
|
|
|
283
261
|
};
|
|
284
262
|
geometry: {
|
|
285
263
|
radiusControl: string;
|
|
286
|
-
radiusContainer
|
|
264
|
+
radiusContainer?: string;
|
|
287
265
|
buttonStyle: string;
|
|
288
266
|
};
|
|
289
267
|
semantic: {
|
|
@@ -304,7 +282,7 @@ export interface BrandConfig {
|
|
|
304
282
|
attribute: string | null;
|
|
305
283
|
};
|
|
306
284
|
}
|
|
307
|
-
export type ColorTokenPath = `color.brand.${Brand}.${keyof ColorShades}` | `color.neutral.${keyof NeutralColors}` | `color.neutralPure.${keyof NeutralColors}` |
|
|
285
|
+
export type ColorTokenPath = `color.brand.${Brand}.${keyof ColorShades}` | `color.neutral.${keyof NeutralColors}` | `color.neutralPure.${keyof NeutralColors}` | 'color.error.500' | 'color.success.500' | 'color.warning.500' | 'color.info.500';
|
|
308
286
|
export type TypographyTokenPath = `typography.family.${keyof TypographyFamily}` | `typography.weight.${keyof TypographyWeight}` | `typography.size.${keyof TypographySize}` | `typography.lineHeight.${keyof TypographyLineHeight}`;
|
|
309
287
|
export type SpacingTokenPath = `spacing.${keyof SpacingPrimitives}`;
|
|
310
288
|
export type RadiusTokenPath = `radius.${keyof RadiusPrimitives}`;
|
|
@@ -313,50 +291,50 @@ export type TokenPath = ColorTokenPath | TypographyTokenPath | SpacingTokenPath
|
|
|
313
291
|
export type SemanticTokenPath = `surface.${keyof SurfaceSemantics}` | `text.${keyof TextSemantics}` | `border.${keyof BorderSemantics}` | `interactive.primary.${keyof InteractivePrimarySemantics}` | `interactive.secondary.${keyof InteractiveSecondarySemantics}` | `interactive.ghost.${keyof InteractiveGhostSemantics}` | `status.${keyof StatusSemantics}` | `soft.${keyof SoftSemantics}`;
|
|
314
292
|
export type CSSVariableName = `--${string}`;
|
|
315
293
|
export interface CSSVariableMap {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
294
|
+
'--surface-base': string;
|
|
295
|
+
'--surface-subtle': string;
|
|
296
|
+
'--surface-layer': string;
|
|
297
|
+
'--surface-primary': string;
|
|
298
|
+
'--surface-secondary': string;
|
|
299
|
+
'--surface-glass': string;
|
|
300
|
+
'--surface-sunken': string;
|
|
301
|
+
'--surface-overlay': string;
|
|
302
|
+
'--text-primary': string;
|
|
303
|
+
'--text-secondary': string;
|
|
304
|
+
'--text-tertiary': string;
|
|
305
|
+
'--text-inverse': string;
|
|
306
|
+
'--text-brand': string;
|
|
307
|
+
'--interactive-primary': string;
|
|
308
|
+
'--interactive-primary-hover': string;
|
|
309
|
+
'--interactive-primary-text': string;
|
|
310
|
+
'--interactive-secondary': string;
|
|
311
|
+
'--interactive-secondary-hover': string;
|
|
312
|
+
'--interactive-secondary-text': string;
|
|
313
|
+
'--interactive-ghost-hover': string;
|
|
314
|
+
'--status-error': string;
|
|
315
|
+
'--status-success': string;
|
|
316
|
+
'--status-warning': string;
|
|
317
|
+
'--status-info': string;
|
|
318
|
+
'--border-subtle': string;
|
|
319
|
+
'--border-strong': string;
|
|
320
|
+
'--border-interactive': string;
|
|
321
|
+
'--spacing-0': string;
|
|
322
|
+
'--spacing-px': string;
|
|
323
|
+
'--spacing-1': string;
|
|
324
|
+
'--spacing-2': string;
|
|
325
|
+
'--spacing-3': string;
|
|
326
|
+
'--spacing-4': string;
|
|
327
|
+
'--spacing-6': string;
|
|
328
|
+
'--spacing-8': string;
|
|
329
|
+
'--spacing-16': string;
|
|
330
|
+
'--spacing-32': string;
|
|
331
|
+
'--radius-sm': string;
|
|
332
|
+
'--radius-md': string;
|
|
333
|
+
'--radius-lg': string;
|
|
334
|
+
'--radius-xl': string;
|
|
335
|
+
'--radius-2xl': string;
|
|
336
|
+
'--radius-full': string;
|
|
337
|
+
'--radius-control': string;
|
|
360
338
|
}
|
|
361
339
|
/** Get nested property type from dot notation path */
|
|
362
340
|
export type GetTokenValue<T, Path extends string> = Path extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? GetTokenValue<T[Key], Rest> : never : Path extends keyof T ? T[Path] : never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tokens/types.ts"],"names":[],"mappings":"AAAA;;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ceRoot":"","sources":["../../src/tokens/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAK1E;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAYhD;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/tokens/utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAK1E;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAYhD;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAkB9E;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,iCAEpC;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAE7D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAE1D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAE1D"}
|
package/dist/tokens/utils.mjs
CHANGED
|
@@ -14,9 +14,7 @@ function d(t, e) {
|
|
|
14
14
|
let n = s[t].semantic;
|
|
15
15
|
for (const o of r)
|
|
16
16
|
if (n = n[o], n === void 0)
|
|
17
|
-
throw new Error(
|
|
18
|
-
`Semantic token path "${e}" not found in ${t} theme`
|
|
19
|
-
);
|
|
17
|
+
throw new Error(`Semantic token path "${e}" not found in ${t} theme`);
|
|
20
18
|
if (typeof n == "string" && n.startsWith("{") && n.endsWith("}")) {
|
|
21
19
|
const o = n.slice(1, -1);
|
|
22
20
|
return c(o);
|
package/dist/utils/fonts.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={orion:["Libre Baskerville","Inter","JetBrains Mono"],deepblue:["Work Sans","JetBrains Mono"],red:["Poppins","Inter","JetBrains Mono"],orange:["DM Sans","Inter","JetBrains Mono"],
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={orion:["Libre Baskerville","Inter","JetBrains Mono"],deepblue:["Work Sans","JetBrains Mono"],red:["Poppins","Inter","JetBrains Mono"],orange:["DM Sans","Inter","JetBrains Mono"],lemon:["Anton","Work Sans","JetBrains Mono"]},i=["Libre Baskerville","DM Sans","Inter","JetBrains Mono","Work Sans","Poppins","Anton"],s="https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@400;500;700&family=Inter:wght@400;500;700&family=JetBrains+Mono:wght@400;500&family=Work+Sans:wght@400;500;700&family=Poppins:wght@400;500;700&family=Anton&display=swap",a=["https://fonts.googleapis.com","https://fonts.gstatic.com"];function e(n){if(typeof document>"u")return!0;try{return document.fonts.check(`16px "${n}"`)}catch{return!0}}function c(n){return o[n].every(e)}function f(n){return o[n].filter(r=>!e(r))}async function l(n){if(typeof document>"u")return!0;try{return await Promise.all(n.map(t=>document.fonts.load(`16px "${t}"`))),!0}catch{return!1}}function u(){return`<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
2
2
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
3
3
|
<link href="${s}" rel="stylesheet">`}exports.ALL_FONTS=i;exports.BRAND_FONTS=o;exports.FONT_PRECONNECT_URLS=a;exports.GOOGLE_FONTS_URL=s;exports.areBrandFontsLoaded=c;exports.getFontLinkTags=u;exports.getMissingFonts=f;exports.isFontLoaded=e;exports.waitForFonts=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../src/utils/fonts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAM/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,uGAQZ,CAAC;AAEX;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,QASb,CAAC;AAEjB;;GAEG;AACH,eAAO,MAAM,oBAAoB,wEAGvB,CAAC;AAEX;;GAEG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CASxD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAGzD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,EAAE,CAGtD;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAWpE;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAIxC"}
|
package/dist/utils/fonts.mjs
CHANGED
|
@@ -3,7 +3,6 @@ const o = {
|
|
|
3
3
|
deepblue: ["Work Sans", "JetBrains Mono"],
|
|
4
4
|
red: ["Poppins", "Inter", "JetBrains Mono"],
|
|
5
5
|
orange: ["DM Sans", "Inter", "JetBrains Mono"],
|
|
6
|
-
ember: ["DM Sans", "Inter", "JetBrains Mono"],
|
|
7
6
|
lemon: ["Anton", "Work Sans", "JetBrains Mono"]
|
|
8
7
|
}, i = [
|
|
9
8
|
"Libre Baskerville",
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
export * from './icons';
|
|
7
7
|
export { BRAND_FONTS, ALL_FONTS, GOOGLE_FONTS_URL, FONT_PRECONNECT_URLS, isFontLoaded, areBrandFontsLoaded, getMissingFonts, waitForFonts, getFontLinkTags, } from './fonts';
|
|
8
8
|
export { warnMissingAriaLabel, warnBrandProp, warnThemeProp, warnGlassVariant, warnHardcodedColors, warnFieldChildren, warnUsePrebuiltSection, } from './validation';
|
|
9
|
+
export { getOptionalDepError, checkComponent, OPTIONAL_DEP_COMPONENTS, type OptionalDepError, } from './optionalDeps';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AAGxB,OAAO,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AAGxB,OAAO,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,eAAe,GAChB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,uBAAuB,EACvB,KAAK,gBAAgB,GACtB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(o){return(Array.isArray(o)?o:[o]).every(r=>{try{return require(r),!0}catch{return!1}})}function s(o,e,r){const n=(Array.isArray(e)?e:[e]).join(" ");return{available:a(e),componentName:o,depName:e,installCommand:`npm install ${n}`,pnpmCommand:`pnpm add ${n}`,docsUrl:r}}const d={Chart:{depName:"recharts",docsUrl:"https://docs.orion-ds.dev/components/chart"},Calendar:{depName:"date-fns",docsUrl:"https://docs.orion-ds.dev/components/calendar"},DatePicker:{depName:"date-fns",docsUrl:"https://docs.orion-ds.dev/components/date-picker"},CodeEditor:{depName:"react-syntax-highlighter",docsUrl:"https://docs.orion-ds.dev/components/code-editor"},Chat:{depName:["react-markdown","remark-gfm"],docsUrl:"https://docs.orion-ds.dev/components/chat"},CollapsibleFolder:{depName:["@dnd-kit/core","@dnd-kit/sortable","@dnd-kit/utilities"],docsUrl:"https://docs.orion-ds.dev/components/collapsible-folder"}};function c(o){const e=d[o],r=Array.isArray(e.depName)?[...e.depName]:e.depName,t=s(o,r,e.docsUrl);return t.available?void 0:t}exports.OPTIONAL_DEP_COMPONENTS=d;exports.checkComponent=c;exports.getOptionalDepError=s;
|