@orion-ds/react 5.5.4 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/blocks.css +1 -0
- package/dist/components/Box/Box.cjs +1 -0
- package/dist/components/Box/Box.d.ts +5 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/Box.mjs +87 -0
- package/dist/components/Box/Box.module.css +1 -0
- package/dist/components/Box/Box.module.css.cjs +1 -0
- package/dist/components/Box/Box.module.css.mjs +16 -0
- package/dist/components/Box/Box.types.d.ts +99 -0
- package/dist/components/Box/Box.types.d.ts.map +1 -0
- package/dist/components/Box/index.d.ts +9 -0
- package/dist/components/Box/index.d.ts.map +1 -0
- package/dist/components/Button/Button.module.css +1 -1
- package/dist/components/Button/Button.module.css.cjs +1 -1
- package/dist/components/Button/Button.module.css.mjs +18 -18
- package/dist/components/ThemeController/ThemeController.d.ts.map +1 -1
- package/dist/components/ThemeController/ThemeController.mjs +6 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +186 -184
- package/dist/integrations/tailwind/index.cjs +1 -0
- package/dist/integrations/tailwind/index.d.ts +13 -0
- package/dist/integrations/tailwind/index.d.ts.map +1 -0
- package/dist/integrations/tailwind/index.mjs +111 -0
- package/dist/integrations/tailwind/v4.css +118 -0
- package/dist/integrations/tailwind.cjs +1 -0
- package/dist/integrations/tailwind.d.ts +3 -0
- package/dist/integrations/tailwind.mjs +111 -0
- package/dist/styles.css +11 -1
- package/dist/tokens/brands.d.ts.map +1 -1
- package/dist/tokens/types.d.ts +87 -87
- package/dist/tokens/types.d.ts.map +1 -1
- package/dist/tokens/utils.d.ts.map +1 -1
- package/dist/tokens/utils.mjs +3 -1
- package/package.json +11 -2
package/dist/index.mjs
CHANGED
|
@@ -13,85 +13,86 @@ import { AlertDialog as wr } from "./components/AlertDialog/AlertDialog.mjs";
|
|
|
13
13
|
import { Avatar as Pr } from "./components/Avatar/Avatar.mjs";
|
|
14
14
|
import { Badge as kr } from "./components/Badge/Badge.mjs";
|
|
15
15
|
import { Banner as Or } from "./components/Banner/Banner.mjs";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
16
|
+
import { Box as Br } from "./components/Box/Box.mjs";
|
|
17
|
+
import { Breadcrumb as Er } from "./components/Breadcrumb/Breadcrumb.mjs";
|
|
18
|
+
import { Button as yr } from "./components/Button/Button.mjs";
|
|
19
|
+
import { Calendar as Ur } from "./components/Calendar/Calendar.mjs";
|
|
20
|
+
import { Card as _r } from "./components/Card/Card.mjs";
|
|
21
|
+
import { Carousel as Hr } from "./components/Carousel/Carousel.mjs";
|
|
22
|
+
import { CarouselCard as Qr } from "./components/Carousel/CarouselCard.mjs";
|
|
23
|
+
import { ChartContainer as Xr, ChartGradient as qr, ChartLegend as Wr, ChartLegendContent as jr, ChartTooltip as zr, ChartTooltipContent as Jr } from "./components/Chart/Chart.mjs";
|
|
24
|
+
import { Checkbox as Zr } from "./components/Checkbox/Checkbox.mjs";
|
|
25
|
+
import { Chip as ro } from "./components/Chip/Chip.mjs";
|
|
26
|
+
import { CodeEditor as eo } from "./components/CodeEditor/CodeEditor.mjs";
|
|
27
|
+
import { Collapsible as po } from "./components/Collapsible/Collapsible.mjs";
|
|
28
|
+
import { CollapsibleFolder as mo } from "./components/CollapsibleFolder/CollapsibleFolder.mjs";
|
|
29
|
+
import { Combobox as xo } from "./components/Combobox/Combobox.mjs";
|
|
30
|
+
import { Command as io } from "./components/Command/Command.mjs";
|
|
31
|
+
import { CommandBar as lo } from "./components/CommandBar/CommandBar.mjs";
|
|
32
|
+
import { Container as co } from "./sections/Container/Container.mjs";
|
|
33
|
+
import { DataTable as go } from "./components/DataTable/DataTable.mjs";
|
|
34
|
+
import { DatePicker as So } from "./components/DatePicker/DatePicker.mjs";
|
|
35
|
+
import { DetailPanel as bo } from "./components/DetailPanel/DetailPanel.mjs";
|
|
36
|
+
import { Divider as wo } from "./components/Divider/Divider.mjs";
|
|
37
|
+
import { Drawer as Po } from "./components/Drawer/Drawer.mjs";
|
|
38
|
+
import { Dropdown as ko } from "./components/Dropdown/Dropdown.mjs";
|
|
39
|
+
import { EmptyState as Oo } from "./components/EmptyState/EmptyState.mjs";
|
|
40
|
+
import { ErrorBoundary as Bo } from "./components/ErrorBoundary/ErrorBoundary.mjs";
|
|
41
|
+
import { Field as Eo } from "./components/Field/Field.mjs";
|
|
42
|
+
import { FileUploader as yo } from "./components/FileUploader/FileUploader.mjs";
|
|
43
|
+
import { FilterBar as Uo } from "./components/FilterBar/FilterBar.mjs";
|
|
44
|
+
import { FontLoader as _o } from "./components/FontLoader/FontLoader.mjs";
|
|
45
|
+
import { FormSection as Ho } from "./components/FormSection/FormSection.mjs";
|
|
46
|
+
import { Icon as Qo } from "./components/Icon/Icon.mjs";
|
|
47
|
+
import { IconGallery as Xo } from "./components/IconGallery/IconGallery.mjs";
|
|
48
|
+
import { Icons as Wo } from "./utils/icons.mjs";
|
|
49
|
+
import { InputOTP as zo } from "./components/InputOTP/InputOTP.mjs";
|
|
50
|
+
import { KanbanBoard as Yo } from "./components/KanbanBoard/KanbanBoard.mjs";
|
|
51
|
+
import { LandingPageExample as $o } from "./examples/LandingPage.example.mjs";
|
|
52
|
+
import { Link as oe } from "./components/Link/Link.mjs";
|
|
53
|
+
import { List as te } from "./components/List/List.mjs";
|
|
54
|
+
import { MetricCard as ae, MetricCards as me } from "./components/MetricCards/MetricCards.mjs";
|
|
55
|
+
import { Modal as xe } from "./components/Modal/Modal.mjs";
|
|
56
|
+
import { NavTree as ie } from "./components/NavTree/NavTree.mjs";
|
|
57
|
+
import { Navbar as le } from "./components/Navbar/Navbar.mjs";
|
|
58
|
+
import { NotificationCenter as Ce } from "./components/NotificationCenter/NotificationCenter.mjs";
|
|
59
|
+
import { OPTIONAL_DEP_COMPONENTS as ue, checkComponent as ge, getOptionalDepError as he } from "./utils/optionalDeps.mjs";
|
|
60
|
+
import { PageHeader as Te } from "./components/PageHeader/PageHeader.mjs";
|
|
61
|
+
import { Pagination as Le } from "./components/Pagination/Pagination.mjs";
|
|
62
|
+
import { Popover as Fe } from "./components/Popover/Popover.mjs";
|
|
63
|
+
import { ProgressBar as De } from "./components/ProgressBar/ProgressBar.mjs";
|
|
64
|
+
import { QuickActions as Me } from "./components/QuickActions/QuickActions.mjs";
|
|
65
|
+
import { Radio as Ae } from "./components/Radio/Radio.mjs";
|
|
66
|
+
import { SearchInput as ve } from "./components/SearchInput/SearchInput.mjs";
|
|
67
|
+
import { Section as Ne } from "./sections/Section/Section.mjs";
|
|
68
|
+
import { Select as Ie } from "./components/Select/Select.mjs";
|
|
69
|
+
import { Sidebar as Re } from "./components/Sidebar/Sidebar.mjs";
|
|
70
|
+
import { Skeleton as Ge } from "./components/Skeleton/Skeleton.mjs";
|
|
71
|
+
import { Slider as Ke } from "./components/Slider/Slider.mjs";
|
|
72
|
+
import { Spinner as Ve } from "./components/Spinner/Spinner.mjs";
|
|
73
|
+
import { Stack as qe } from "./components/Stack/Stack.mjs";
|
|
74
|
+
import { Stepper as je } from "./components/Stepper/Stepper.mjs";
|
|
75
|
+
import { Switch as Je } from "./components/Switch/Switch.mjs";
|
|
76
|
+
import { Table as Ze } from "./components/Table/Table.mjs";
|
|
77
|
+
import { Tabs as rt } from "./components/Tabs/Tabs.mjs";
|
|
78
|
+
import { Textarea as et } from "./components/Textarea/Textarea.mjs";
|
|
79
|
+
import { ThemeController as pt } from "./components/ThemeController/ThemeController.mjs";
|
|
80
|
+
import { ThemeProvider as mt, useThemeContext as ft } from "./contexts/ThemeContext.mjs";
|
|
81
|
+
import { ToastProvider as nt, useToast as it } from "./components/Toast/Toast.mjs";
|
|
82
|
+
import { Toggle as lt } from "./components/Toggle/Toggle.mjs";
|
|
83
|
+
import { ToggleGroup as Ct } from "./components/ToggleGroup/ToggleGroup.mjs";
|
|
84
|
+
import { Tooltip as ut } from "./components/Tooltip/Tooltip.mjs";
|
|
85
|
+
import { UserMenu as ht } from "./components/UserMenu/UserMenu.mjs";
|
|
86
|
+
import { WorkspaceSwitcher as Tt } from "./components/WorkspaceSwitcher/WorkspaceSwitcher.mjs";
|
|
87
|
+
import { useClickOutside as Lt, useClickOutsideMultiple as wt } from "./hooks/useClickOutside.mjs";
|
|
88
|
+
import { useCopy as Pt, useCopyToClipboard as Dt } from "./hooks/useCopyToClipboard.mjs";
|
|
89
|
+
import { useDebounce as Mt, useDebouncedCallback as Ot } from "./hooks/useDebounce.mjs";
|
|
90
|
+
import { useDisclosure as Bt } from "./hooks/useDisclosure.mjs";
|
|
91
|
+
import { useIsDesktop as Et, useIsMobile as Nt, useIsTablet as yt, useMediaQuery as It, usePrefersDarkMode as Ut, usePrefersReducedMotion as Rt } from "./hooks/useMediaQuery.mjs";
|
|
92
|
+
import { useKeyboard as Gt, useKeyboardShortcuts as Ht } from "./hooks/useKeyboard.mjs";
|
|
93
|
+
import { useLocalStorage as Qt, useSessionStorage as Vt } from "./hooks/useLocalStorage.mjs";
|
|
94
|
+
import { useTheme as qt } from "./hooks/useTheme.mjs";
|
|
95
|
+
import { warnBrandProp as jt, warnFieldChildren as zt, warnGlassVariant as Jt, warnHardcodedColors as Yt, warnMissingAriaLabel as Zt, warnThemeProp as $t, warnUsePrebuiltSection as rp } from "./utils/validation.mjs";
|
|
95
96
|
export {
|
|
96
97
|
ar as ALL_FONTS,
|
|
97
98
|
cr as Accordion,
|
|
@@ -109,161 +110,162 @@ export {
|
|
|
109
110
|
kr as Badge,
|
|
110
111
|
Or as Banner,
|
|
111
112
|
h as Bell,
|
|
112
|
-
Br as
|
|
113
|
-
Er as
|
|
114
|
-
yr as
|
|
115
|
-
Ur as
|
|
116
|
-
_r as
|
|
117
|
-
Hr as
|
|
118
|
-
Qr as
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
113
|
+
Br as Box,
|
|
114
|
+
Er as Breadcrumb,
|
|
115
|
+
yr as Button,
|
|
116
|
+
Ur as Calendar,
|
|
117
|
+
_r as Card,
|
|
118
|
+
Hr as Carousel,
|
|
119
|
+
Qr as CarouselCard,
|
|
120
|
+
Xr as ChartContainer,
|
|
121
|
+
qr as ChartGradient,
|
|
122
|
+
Wr as ChartLegend,
|
|
123
|
+
jr as ChartLegendContent,
|
|
124
|
+
zr as ChartTooltip,
|
|
125
|
+
Jr as ChartTooltipContent,
|
|
124
126
|
S as Check,
|
|
125
127
|
T as CheckCircle,
|
|
126
|
-
|
|
128
|
+
Zr as Checkbox,
|
|
127
129
|
b as ChevronDown,
|
|
128
130
|
L as ChevronLeft,
|
|
129
131
|
w as ChevronRight,
|
|
130
132
|
F as ChevronUp,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
ro as Chip,
|
|
134
|
+
eo as CodeEditor,
|
|
135
|
+
po as Collapsible,
|
|
136
|
+
mo as CollapsibleFolder,
|
|
137
|
+
xo as Combobox,
|
|
138
|
+
io as Command,
|
|
139
|
+
lo as CommandBar,
|
|
138
140
|
i as ComponentShowcase,
|
|
139
|
-
|
|
141
|
+
co as Container,
|
|
140
142
|
P as Copy,
|
|
141
143
|
D as CreditCard,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
go as DataTable,
|
|
145
|
+
So as DatePicker,
|
|
146
|
+
bo as DetailPanel,
|
|
147
|
+
wo as Divider,
|
|
146
148
|
k as DollarSign,
|
|
147
149
|
M as Download,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
Po as Drawer,
|
|
151
|
+
ko as Dropdown,
|
|
150
152
|
O as Edit,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
+
Oo as EmptyState,
|
|
154
|
+
Bo as ErrorBoundary,
|
|
153
155
|
A as Eye,
|
|
154
156
|
B as EyeOff,
|
|
155
157
|
fr as FONT_PRECONNECT_URLS,
|
|
156
|
-
|
|
158
|
+
Eo as Field,
|
|
157
159
|
v as File,
|
|
158
160
|
E as FileText,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
yo as FileUploader,
|
|
162
|
+
Uo as FilterBar,
|
|
163
|
+
_o as FontLoader,
|
|
164
|
+
Ho as FormSection,
|
|
163
165
|
xr as GOOGLE_FONTS_URL,
|
|
164
166
|
N as Heart,
|
|
165
167
|
y as HelpCircle,
|
|
166
168
|
I as Home,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
Qo as Icon,
|
|
170
|
+
Xo as IconGallery,
|
|
171
|
+
Wo as Icons,
|
|
170
172
|
U as Image,
|
|
171
173
|
R as Info,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
zo as InputOTP,
|
|
175
|
+
Yo as KanbanBoard,
|
|
176
|
+
$o as LandingPageExample,
|
|
177
|
+
oe as Link,
|
|
178
|
+
te as List,
|
|
177
179
|
_ as LogIn,
|
|
178
180
|
G as LogOut,
|
|
179
181
|
H as Mail,
|
|
180
182
|
K as Menu,
|
|
181
183
|
Q as MessageSquare,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
+
ae as MetricCard,
|
|
185
|
+
me as MetricCards,
|
|
184
186
|
V as Minus,
|
|
185
|
-
|
|
187
|
+
xe as Modal,
|
|
186
188
|
X as Music,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
189
|
+
ie as NavTree,
|
|
190
|
+
le as Navbar,
|
|
191
|
+
Ce as NotificationCenter,
|
|
192
|
+
ue as OPTIONAL_DEP_COMPONENTS,
|
|
193
|
+
Te as PageHeader,
|
|
194
|
+
Le as Pagination,
|
|
193
195
|
q as Plus,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
Fe as Popover,
|
|
197
|
+
De as ProgressBar,
|
|
198
|
+
Me as QuickActions,
|
|
199
|
+
Ae as Radio,
|
|
198
200
|
W as Search,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
ve as SearchInput,
|
|
202
|
+
Ne as Section,
|
|
203
|
+
Ie as Select,
|
|
202
204
|
j as Settings,
|
|
203
205
|
z as Share2,
|
|
204
206
|
J as ShoppingCart,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
Re as Sidebar,
|
|
208
|
+
Ge as Skeleton,
|
|
209
|
+
Ke as Slider,
|
|
210
|
+
Ve as Spinner,
|
|
211
|
+
qe as Stack,
|
|
210
212
|
Y as Star,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
213
|
+
je as Stepper,
|
|
214
|
+
Je as Switch,
|
|
215
|
+
Ze as Table,
|
|
216
|
+
rt as Tabs,
|
|
217
|
+
et as Textarea,
|
|
218
|
+
pt as ThemeController,
|
|
219
|
+
mt as ThemeProvider,
|
|
220
|
+
nt as ToastProvider,
|
|
221
|
+
lt as Toggle,
|
|
222
|
+
Ct as ToggleGroup,
|
|
223
|
+
ut as Tooltip,
|
|
222
224
|
Z as Trash2,
|
|
223
225
|
$ as Upload,
|
|
224
226
|
rr as User,
|
|
225
|
-
|
|
227
|
+
ht as UserMenu,
|
|
226
228
|
or as Video,
|
|
227
|
-
|
|
229
|
+
Tt as WorkspaceSwitcher,
|
|
228
230
|
er as X,
|
|
229
231
|
tr as XCircle,
|
|
230
232
|
nr as areBrandFontsLoaded,
|
|
231
|
-
|
|
233
|
+
ge as checkComponent,
|
|
232
234
|
m as getBrand,
|
|
233
235
|
ir as getFontLinkTags,
|
|
234
236
|
sr as getMissingFonts,
|
|
235
|
-
|
|
237
|
+
he as getOptionalDepError,
|
|
236
238
|
f as getSemanticToken,
|
|
237
239
|
x as getToken,
|
|
238
240
|
lr as isFontLoaded,
|
|
239
241
|
t as primitives,
|
|
240
242
|
p as spacing,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
243
|
+
Lt as useClickOutside,
|
|
244
|
+
wt as useClickOutsideMultiple,
|
|
245
|
+
Pt as useCopy,
|
|
246
|
+
Dt as useCopyToClipboard,
|
|
247
|
+
Mt as useDebounce,
|
|
248
|
+
Ot as useDebouncedCallback,
|
|
249
|
+
Bt as useDisclosure,
|
|
250
|
+
Et as useIsDesktop,
|
|
251
|
+
Nt as useIsMobile,
|
|
252
|
+
yt as useIsTablet,
|
|
253
|
+
Gt as useKeyboard,
|
|
254
|
+
Ht as useKeyboardShortcuts,
|
|
255
|
+
Qt as useLocalStorage,
|
|
256
|
+
It as useMediaQuery,
|
|
257
|
+
Ut as usePrefersDarkMode,
|
|
258
|
+
Rt as usePrefersReducedMotion,
|
|
259
|
+
Vt as useSessionStorage,
|
|
260
|
+
qt as useTheme,
|
|
261
|
+
ft as useThemeContext,
|
|
262
|
+
it as useToast,
|
|
261
263
|
dr as waitForFonts,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
jt as warnBrandProp,
|
|
265
|
+
zt as warnFieldChildren,
|
|
266
|
+
Jt as warnGlassVariant,
|
|
267
|
+
Yt as warnHardcodedColors,
|
|
268
|
+
Zt as warnMissingAriaLabel,
|
|
269
|
+
$t as warnThemeProp,
|
|
270
|
+
rp as warnUsePrebuiltSection
|
|
269
271
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r={theme:{extend:{colors:{"surface-base":"var(--surface-base)","surface-subtle":"var(--surface-subtle)","surface-layer":"var(--surface-layer)","surface-sunken":"var(--surface-sunken)","surface-glass":"var(--surface-glass)","surface-overlay":"var(--surface-overlay)","text-primary":"var(--text-primary)","text-secondary":"var(--text-secondary)","text-tertiary":"var(--text-tertiary)","text-brand":"var(--text-brand)","text-inverse":"var(--text-inverse)","text-on-brand-primary":"var(--text-on-brand-primary)","interactive-primary":"var(--interactive-primary)","interactive-primary-hover":"var(--interactive-primary-hover)","interactive-primary-text":"var(--interactive-primary-text)","interactive-secondary":"var(--interactive-secondary)","interactive-secondary-hover":"var(--interactive-secondary-hover)","border-subtle":"var(--border-subtle)","border-strong":"var(--border-strong)","border-interactive":"var(--border-interactive)","status-success":"var(--status-success)","status-error":"var(--status-error)","status-warning":"var(--status-warning)","status-info":"var(--status-info)","soft-brand":"var(--soft-brand)","soft-success":"var(--soft-success)","soft-error":"var(--soft-error)","soft-warning":"var(--soft-warning)","soft-info":"var(--soft-info)","alert-success-bg":"var(--alert-success-bg)","alert-success-text":"var(--alert-success-text)","alert-success-border":"var(--alert-success-border)","alert-error-bg":"var(--alert-error-bg)","alert-error-text":"var(--alert-error-text)","alert-error-border":"var(--alert-error-border)","alert-warning-bg":"var(--alert-warning-bg)","alert-warning-text":"var(--alert-warning-text)","alert-warning-border":"var(--alert-warning-border)","alert-info-bg":"var(--alert-info-bg)","alert-info-text":"var(--alert-info-text)","alert-info-border":"var(--alert-info-border)","color-brand":"var(--color-brand-500)","color-brand-400":"var(--color-brand-400)","color-brand-600":"var(--color-brand-600)","gradient-start":"var(--gradient-start)","gradient-end":"var(--gradient-end)"},spacing:{"orion-0":"var(--spacing-0)","orion-px":"var(--spacing-px)","orion-05":"var(--spacing-05)","orion-1":"var(--spacing-1)","orion-2":"var(--spacing-2)","orion-3":"var(--spacing-3)","orion-4":"var(--spacing-4)","orion-5":"var(--spacing-5)","orion-6":"var(--spacing-6)","orion-7":"var(--spacing-7)","orion-8":"var(--spacing-8)","orion-9":"var(--spacing-9)","orion-10":"var(--spacing-10)","orion-11":"var(--spacing-11)","orion-12":"var(--spacing-12)","orion-16":"var(--spacing-16)","orion-20":"var(--spacing-20)","orion-24":"var(--spacing-24)","orion-32":"var(--spacing-32)"},borderRadius:{button:"var(--radius-button)",container:"var(--radius-container)",sm:"var(--radius-sm)",md:"var(--radius-md)",lg:"var(--radius-lg)",xl:"var(--radius-xl)"},fontFamily:{primary:["var(--font-primary)"],secondary:["var(--font-secondary)"],mono:["var(--font-mono)"]},backdropBlur:{"orion-sm":"var(--blur-sm)","orion-md":"var(--blur-md)","orion-lg":"var(--blur-lg)","orion-xl":"var(--blur-xl)"}}}};exports.default=r;exports.orionPreset=r;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Official Tailwind CSS preset for Orion Design System.
|
|
3
|
+
* Maps all Orion semantic tokens to Tailwind utilities that respect
|
|
4
|
+
* dark mode and brand switching automatically via CSS variables.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* // tailwind.config.ts
|
|
8
|
+
* import { orionPreset } from '@orion-ds/react/integrations/tailwind';
|
|
9
|
+
* export default { presets: [orionPreset], content: [...] };
|
|
10
|
+
*/
|
|
11
|
+
export declare const orionPreset: Record<string, any>;
|
|
12
|
+
export default orionPreset;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/integrations/tailwind/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAwG3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
const r = {
|
|
2
|
+
theme: {
|
|
3
|
+
extend: {
|
|
4
|
+
colors: {
|
|
5
|
+
// Surfaces
|
|
6
|
+
"surface-base": "var(--surface-base)",
|
|
7
|
+
"surface-subtle": "var(--surface-subtle)",
|
|
8
|
+
"surface-layer": "var(--surface-layer)",
|
|
9
|
+
"surface-sunken": "var(--surface-sunken)",
|
|
10
|
+
"surface-glass": "var(--surface-glass)",
|
|
11
|
+
"surface-overlay": "var(--surface-overlay)",
|
|
12
|
+
// Text
|
|
13
|
+
"text-primary": "var(--text-primary)",
|
|
14
|
+
"text-secondary": "var(--text-secondary)",
|
|
15
|
+
"text-tertiary": "var(--text-tertiary)",
|
|
16
|
+
"text-brand": "var(--text-brand)",
|
|
17
|
+
"text-inverse": "var(--text-inverse)",
|
|
18
|
+
"text-on-brand-primary": "var(--text-on-brand-primary)",
|
|
19
|
+
// Interactive
|
|
20
|
+
"interactive-primary": "var(--interactive-primary)",
|
|
21
|
+
"interactive-primary-hover": "var(--interactive-primary-hover)",
|
|
22
|
+
"interactive-primary-text": "var(--interactive-primary-text)",
|
|
23
|
+
"interactive-secondary": "var(--interactive-secondary)",
|
|
24
|
+
"interactive-secondary-hover": "var(--interactive-secondary-hover)",
|
|
25
|
+
// Borders
|
|
26
|
+
"border-subtle": "var(--border-subtle)",
|
|
27
|
+
"border-strong": "var(--border-strong)",
|
|
28
|
+
"border-interactive": "var(--border-interactive)",
|
|
29
|
+
// Status
|
|
30
|
+
"status-success": "var(--status-success)",
|
|
31
|
+
"status-error": "var(--status-error)",
|
|
32
|
+
"status-warning": "var(--status-warning)",
|
|
33
|
+
"status-info": "var(--status-info)",
|
|
34
|
+
// Soft variants
|
|
35
|
+
"soft-brand": "var(--soft-brand)",
|
|
36
|
+
"soft-success": "var(--soft-success)",
|
|
37
|
+
"soft-error": "var(--soft-error)",
|
|
38
|
+
"soft-warning": "var(--soft-warning)",
|
|
39
|
+
"soft-info": "var(--soft-info)",
|
|
40
|
+
// Alert variants (12 values: 4 statuses × 3 properties: bg, text, border)
|
|
41
|
+
"alert-success-bg": "var(--alert-success-bg)",
|
|
42
|
+
"alert-success-text": "var(--alert-success-text)",
|
|
43
|
+
"alert-success-border": "var(--alert-success-border)",
|
|
44
|
+
"alert-error-bg": "var(--alert-error-bg)",
|
|
45
|
+
"alert-error-text": "var(--alert-error-text)",
|
|
46
|
+
"alert-error-border": "var(--alert-error-border)",
|
|
47
|
+
"alert-warning-bg": "var(--alert-warning-bg)",
|
|
48
|
+
"alert-warning-text": "var(--alert-warning-text)",
|
|
49
|
+
"alert-warning-border": "var(--alert-warning-border)",
|
|
50
|
+
"alert-info-bg": "var(--alert-info-bg)",
|
|
51
|
+
"alert-info-text": "var(--alert-info-text)",
|
|
52
|
+
"alert-info-border": "var(--alert-info-border)",
|
|
53
|
+
// Brand primitives (useful for gradients)
|
|
54
|
+
"color-brand": "var(--color-brand-500)",
|
|
55
|
+
"color-brand-400": "var(--color-brand-400)",
|
|
56
|
+
"color-brand-600": "var(--color-brand-600)",
|
|
57
|
+
// Gradients
|
|
58
|
+
"gradient-start": "var(--gradient-start)",
|
|
59
|
+
"gradient-end": "var(--gradient-end)"
|
|
60
|
+
},
|
|
61
|
+
spacing: {
|
|
62
|
+
"orion-0": "var(--spacing-0)",
|
|
63
|
+
"orion-px": "var(--spacing-px)",
|
|
64
|
+
"orion-05": "var(--spacing-05)",
|
|
65
|
+
"orion-1": "var(--spacing-1)",
|
|
66
|
+
"orion-2": "var(--spacing-2)",
|
|
67
|
+
"orion-3": "var(--spacing-3)",
|
|
68
|
+
"orion-4": "var(--spacing-4)",
|
|
69
|
+
"orion-5": "var(--spacing-5)",
|
|
70
|
+
"orion-6": "var(--spacing-6)",
|
|
71
|
+
"orion-7": "var(--spacing-7)",
|
|
72
|
+
"orion-8": "var(--spacing-8)",
|
|
73
|
+
"orion-9": "var(--spacing-9)",
|
|
74
|
+
"orion-10": "var(--spacing-10)",
|
|
75
|
+
"orion-11": "var(--spacing-11)",
|
|
76
|
+
"orion-12": "var(--spacing-12)",
|
|
77
|
+
"orion-16": "var(--spacing-16)",
|
|
78
|
+
"orion-20": "var(--spacing-20)",
|
|
79
|
+
"orion-24": "var(--spacing-24)",
|
|
80
|
+
"orion-32": "var(--spacing-32)"
|
|
81
|
+
},
|
|
82
|
+
borderRadius: {
|
|
83
|
+
// Semantic (brand-aware)
|
|
84
|
+
button: "var(--radius-button)",
|
|
85
|
+
// brand-controlled
|
|
86
|
+
container: "var(--radius-container)",
|
|
87
|
+
// brand-controlled
|
|
88
|
+
// Primitives
|
|
89
|
+
sm: "var(--radius-sm)",
|
|
90
|
+
md: "var(--radius-md)",
|
|
91
|
+
lg: "var(--radius-lg)",
|
|
92
|
+
xl: "var(--radius-xl)"
|
|
93
|
+
},
|
|
94
|
+
fontFamily: {
|
|
95
|
+
primary: ["var(--font-primary)"],
|
|
96
|
+
secondary: ["var(--font-secondary)"],
|
|
97
|
+
mono: ["var(--font-mono)"]
|
|
98
|
+
},
|
|
99
|
+
backdropBlur: {
|
|
100
|
+
"orion-sm": "var(--blur-sm)",
|
|
101
|
+
"orion-md": "var(--blur-md)",
|
|
102
|
+
"orion-lg": "var(--blur-lg)",
|
|
103
|
+
"orion-xl": "var(--blur-xl)"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
export {
|
|
109
|
+
r as default,
|
|
110
|
+
r as orionPreset
|
|
111
|
+
};
|