@orangecheck/design 0.29.1 → 0.30.1
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/components.d.mts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +166 -67
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +167 -69
- package/dist/components.mjs.map +1 -1
- package/dist/composites.d.mts +14 -1
- package/dist/composites.d.ts +14 -1
- package/dist/composites.js +149 -50
- package/dist/composites.js.map +1 -1
- package/dist/composites.mjs +151 -53
- package/dist/composites.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +116 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +116 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/components.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccentList, AccentListItem, AccentListProps, AccentNote, AccentNoteProps, BrandBand, Callout, CalloutProps, CalloutTone, CheckList, CheckListProps, ComparisonRow, ComparisonTable, ComparisonTableProps, DataRow, DataRowProps, DefinitionItem, DefinitionList, DefinitionListProps, EmailCapture, EmailCaptureProps, EmptyState, EmptyStateCta, EmptyStateProps, Faq, FaqItem, FaqProps, FeatureCard, FeatureCardProps, HelpHint, HelpHintProps, MarketingHeading, MarketingHeadingProps, NumberedStep, NumberedStepProps, Panel, PanelProps, Section, SectionHeader, SectionHeaderProps, SectionProps, StatCard, StatCardProps, StatGrid, StatGridProps, StatItem, StatTile, Step, StepList, StepListProps, TwoToneHeading, TwoToneHeadingProps, VerifiedChip, VerifiedChipProps } from './composites.mjs';
|
|
1
|
+
export { AccentList, AccentListItem, AccentListProps, AccentNote, AccentNoteProps, BrandBand, Callout, CalloutProps, CalloutTone, CheckList, CheckListProps, ComparisonRow, ComparisonTable, ComparisonTableProps, DataRow, DataRowProps, DefinitionItem, DefinitionList, DefinitionListProps, EmailCapture, EmailCaptureProps, EmptyState, EmptyStateCta, EmptyStateProps, Faq, FaqItem, FaqProps, FeatureCard, FeatureCardProps, HelpHint, HelpHintProps, MarketingHeading, MarketingHeadingProps, NumberedStep, NumberedStepProps, OcErrorPage, OcErrorPageProps, OcErrorVariant, Panel, PanelProps, Section, SectionHeader, SectionHeaderProps, SectionProps, StatCard, StatCardProps, StatGrid, StatGridProps, StatItem, StatTile, Step, StepList, StepListProps, TwoToneHeading, TwoToneHeadingProps, VerifiedChip, VerifiedChipProps } from './composites.mjs';
|
|
2
2
|
export { AppShell, AppShellProps, EcosystemSlug, EcosystemSwitcher, EcosystemSwitcherProps, FAMILY_PROPERTIES, FamilyCategory, FamilyProperty, FooterColumn, FooterLink, LayoutSubHeader, LayoutSubHeaderProps, LayoutSubHeaderTag, OcAccountMenu, OcAccountMenuBuildInfo, OcAccountMenuItem, OcAccountMenuProps, OcAccountMenuSession, OcAccountMenuView, OcAccountMenuViewProps, OcAppBar, OcAppBarProps, OcDashboardHub, OcDashboardHubProps, OcDashboardShell, OcDashboardShellProps, OcDashboardTool, OcFamilyFooter, OcFamilyFooterBrand, OcFamilyFooterProps, OcLogoDropdown, OcLogoDropdownProps, OcPrimaryNav, OcPrimaryNavLink, OcPrimaryNavProps, SITE_STATE_LABEL, SiteState, findFamilyProperty } from './chrome.mjs';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
package/dist/components.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AccentList, AccentListItem, AccentListProps, AccentNote, AccentNoteProps, BrandBand, Callout, CalloutProps, CalloutTone, CheckList, CheckListProps, ComparisonRow, ComparisonTable, ComparisonTableProps, DataRow, DataRowProps, DefinitionItem, DefinitionList, DefinitionListProps, EmailCapture, EmailCaptureProps, EmptyState, EmptyStateCta, EmptyStateProps, Faq, FaqItem, FaqProps, FeatureCard, FeatureCardProps, HelpHint, HelpHintProps, MarketingHeading, MarketingHeadingProps, NumberedStep, NumberedStepProps, Panel, PanelProps, Section, SectionHeader, SectionHeaderProps, SectionProps, StatCard, StatCardProps, StatGrid, StatGridProps, StatItem, StatTile, Step, StepList, StepListProps, TwoToneHeading, TwoToneHeadingProps, VerifiedChip, VerifiedChipProps } from './composites.js';
|
|
1
|
+
export { AccentList, AccentListItem, AccentListProps, AccentNote, AccentNoteProps, BrandBand, Callout, CalloutProps, CalloutTone, CheckList, CheckListProps, ComparisonRow, ComparisonTable, ComparisonTableProps, DataRow, DataRowProps, DefinitionItem, DefinitionList, DefinitionListProps, EmailCapture, EmailCaptureProps, EmptyState, EmptyStateCta, EmptyStateProps, Faq, FaqItem, FaqProps, FeatureCard, FeatureCardProps, HelpHint, HelpHintProps, MarketingHeading, MarketingHeadingProps, NumberedStep, NumberedStepProps, OcErrorPage, OcErrorPageProps, OcErrorVariant, Panel, PanelProps, Section, SectionHeader, SectionHeaderProps, SectionProps, StatCard, StatCardProps, StatGrid, StatGridProps, StatItem, StatTile, Step, StepList, StepListProps, TwoToneHeading, TwoToneHeadingProps, VerifiedChip, VerifiedChipProps } from './composites.js';
|
|
2
2
|
export { AppShell, AppShellProps, EcosystemSlug, EcosystemSwitcher, EcosystemSwitcherProps, FAMILY_PROPERTIES, FamilyCategory, FamilyProperty, FooterColumn, FooterLink, LayoutSubHeader, LayoutSubHeaderProps, LayoutSubHeaderTag, OcAccountMenu, OcAccountMenuBuildInfo, OcAccountMenuItem, OcAccountMenuProps, OcAccountMenuSession, OcAccountMenuView, OcAccountMenuViewProps, OcAppBar, OcAppBarProps, OcDashboardHub, OcDashboardHubProps, OcDashboardShell, OcDashboardShellProps, OcDashboardTool, OcFamilyFooter, OcFamilyFooterBrand, OcFamilyFooterProps, OcLogoDropdown, OcLogoDropdownProps, OcPrimaryNav, OcPrimaryNavLink, OcPrimaryNavProps, SITE_STATE_LABEL, SiteState, findFamilyProperty } from './chrome.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
package/dist/components.js
CHANGED
|
@@ -5,10 +5,10 @@ var lucideReact = require('lucide-react');
|
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var tailwindMerge = require('tailwind-merge');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
var
|
|
9
|
-
var React2 = require('react');
|
|
8
|
+
var Link7 = require('next/link');
|
|
10
9
|
var reactSlot = require('@radix-ui/react-slot');
|
|
11
10
|
var classVarianceAuthority = require('class-variance-authority');
|
|
11
|
+
var React2 = require('react');
|
|
12
12
|
require('@radix-ui/react-label');
|
|
13
13
|
require('@radix-ui/react-checkbox');
|
|
14
14
|
require('@radix-ui/react-radio-group');
|
|
@@ -45,7 +45,7 @@ function _interopNamespace(e) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
var Popover__namespace = /*#__PURE__*/_interopNamespace(Popover);
|
|
48
|
-
var
|
|
48
|
+
var Link7__default = /*#__PURE__*/_interopDefault(Link7);
|
|
49
49
|
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
50
50
|
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
51
51
|
|
|
@@ -121,6 +121,153 @@ function SectionHeader({
|
|
|
121
121
|
meta && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/70 font-mono text-[10px] tracking-widest uppercase", children: meta })
|
|
122
122
|
] });
|
|
123
123
|
}
|
|
124
|
+
var buttonVariants = classVarianceAuthority.cva(
|
|
125
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
126
|
+
{
|
|
127
|
+
variants: {
|
|
128
|
+
variant: {
|
|
129
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
130
|
+
destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",
|
|
131
|
+
outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
|
|
132
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
133
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
134
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
135
|
+
// For CTAs placed ON a saturated brand band or a dark section
|
|
136
|
+
// (e.g. a terracotta hero / footer / a forced-dark block) where
|
|
137
|
+
// the surface is dark+light-text in either mode. A neutral white
|
|
138
|
+
// pill + a translucent-white ghost read on any such surface;
|
|
139
|
+
// hardcoded white is deliberate (cf. destructive's text-white).
|
|
140
|
+
onBrand: "bg-white text-neutral-900 shadow-sm hover:bg-white/90",
|
|
141
|
+
onBrandOutline: "border border-white/40 bg-transparent text-white hover:bg-white/10"
|
|
142
|
+
},
|
|
143
|
+
size: {
|
|
144
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
145
|
+
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
|
|
146
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
147
|
+
icon: "size-9"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
defaultVariants: {
|
|
151
|
+
variant: "default",
|
|
152
|
+
size: "default"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
function Button({
|
|
157
|
+
className,
|
|
158
|
+
variant,
|
|
159
|
+
size,
|
|
160
|
+
asChild = false,
|
|
161
|
+
...props
|
|
162
|
+
}) {
|
|
163
|
+
const Comp = asChild ? reactSlot.Slot : "button";
|
|
164
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
165
|
+
Comp,
|
|
166
|
+
{
|
|
167
|
+
"data-slot": "button",
|
|
168
|
+
className: cn(buttonVariants({ variant, size, className })),
|
|
169
|
+
...props
|
|
170
|
+
}
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
var VARIANTS = {
|
|
174
|
+
"not-found": {
|
|
175
|
+
code: 404,
|
|
176
|
+
title: "no such route",
|
|
177
|
+
detail: "the page you're looking for doesn't exist, or has been moved.",
|
|
178
|
+
tone: "text-primary",
|
|
179
|
+
label: "not found",
|
|
180
|
+
actions: []
|
|
181
|
+
},
|
|
182
|
+
"server-error": {
|
|
183
|
+
code: 500,
|
|
184
|
+
title: "internal error",
|
|
185
|
+
detail: "something went wrong on our end.",
|
|
186
|
+
tone: "text-destructive",
|
|
187
|
+
label: "server error",
|
|
188
|
+
actions: [
|
|
189
|
+
"try refreshing the page",
|
|
190
|
+
"wait a few minutes, try again",
|
|
191
|
+
"return home and start over"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
function OcErrorPage({
|
|
196
|
+
variant = "not-found",
|
|
197
|
+
code,
|
|
198
|
+
title,
|
|
199
|
+
detail,
|
|
200
|
+
actions,
|
|
201
|
+
homeHref = "/",
|
|
202
|
+
children,
|
|
203
|
+
className = ""
|
|
204
|
+
}) {
|
|
205
|
+
const v = VARIANTS[variant];
|
|
206
|
+
const shownCode = code ?? v.code;
|
|
207
|
+
const shownActions = actions ?? [...v.actions];
|
|
208
|
+
const isServerError = variant === "server-error";
|
|
209
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
210
|
+
"div",
|
|
211
|
+
{
|
|
212
|
+
className: `container flex min-h-[60vh] flex-col items-center justify-center ${className}`,
|
|
213
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "w-full max-w-xl", children: [
|
|
214
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `label-mono mb-4 ${v.tone}`, children: [
|
|
215
|
+
"\xA7 ",
|
|
216
|
+
shownCode,
|
|
217
|
+
" // ",
|
|
218
|
+
v.label
|
|
219
|
+
] }),
|
|
220
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
221
|
+
"h1",
|
|
222
|
+
{
|
|
223
|
+
className: `font-display text-7xl font-bold tracking-tight tabular-nums sm:text-8xl ${v.tone}`,
|
|
224
|
+
children: shownCode
|
|
225
|
+
}
|
|
226
|
+
),
|
|
227
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "font-display mt-2 text-2xl font-bold tracking-tight sm:text-3xl", children: title ?? v.title }),
|
|
228
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-muted-foreground mt-3 font-mono text-xs", children: [
|
|
229
|
+
"// ",
|
|
230
|
+
detail ?? v.detail
|
|
231
|
+
] }),
|
|
232
|
+
shownActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 border", children: [
|
|
233
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-b px-4 py-2 font-mono text-[11px] tracking-widest uppercase", children: "what can you do" }),
|
|
234
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "divide-y font-mono text-xs", children: shownActions.map((a, i) => (
|
|
235
|
+
// Index keys: items are nodes and the list is
|
|
236
|
+
// static per variant, so there is nothing
|
|
237
|
+
// better to key on and nothing reorders.
|
|
238
|
+
/* @__PURE__ */ jsxRuntime.jsxs("li", { className: "px-4 py-2", children: [
|
|
239
|
+
">> ",
|
|
240
|
+
a
|
|
241
|
+
] }, i)
|
|
242
|
+
)) })
|
|
243
|
+
] }),
|
|
244
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 flex flex-wrap gap-3", children: [
|
|
245
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { asChild: true, className: "font-mono", children: /* @__PURE__ */ jsxRuntime.jsxs(Link7__default.default, { href: homeHref, children: [
|
|
246
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "mr-2 h-3 w-3" }),
|
|
247
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] tracking-widest uppercase", children: "go home" })
|
|
248
|
+
] }) }),
|
|
249
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
250
|
+
Button,
|
|
251
|
+
{
|
|
252
|
+
variant: "outline",
|
|
253
|
+
onClick: () => {
|
|
254
|
+
if (typeof window === "undefined") return;
|
|
255
|
+
if (isServerError) window.location.reload();
|
|
256
|
+
else window.history.back();
|
|
257
|
+
},
|
|
258
|
+
className: "font-mono",
|
|
259
|
+
children: [
|
|
260
|
+
isServerError ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "mr-2 h-3 w-3" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "mr-2 h-3 w-3" }),
|
|
261
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] tracking-widest uppercase", children: isServerError ? "retry" : "go back" })
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
)
|
|
265
|
+
] }),
|
|
266
|
+
children && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6", children })
|
|
267
|
+
] })
|
|
268
|
+
}
|
|
269
|
+
);
|
|
270
|
+
}
|
|
124
271
|
var TONE_CLASS2 = {
|
|
125
272
|
info: "border-primary/30 bg-primary/5",
|
|
126
273
|
warning: "border-warning/40 bg-warning/5",
|
|
@@ -162,7 +309,7 @@ function CtaLink({
|
|
|
162
309
|
if (external) {
|
|
163
310
|
return /* @__PURE__ */ jsxRuntime.jsx("a", { href, target: "_blank", rel: "noreferrer", className: cls, children: text });
|
|
164
311
|
}
|
|
165
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
312
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Link7__default.default, { href, className: cls, children: text });
|
|
166
313
|
}
|
|
167
314
|
var TONE_CLASS3 = {
|
|
168
315
|
default: "",
|
|
@@ -389,55 +536,6 @@ function MarketingHeading({
|
|
|
389
536
|
)
|
|
390
537
|
] });
|
|
391
538
|
}
|
|
392
|
-
var buttonVariants = classVarianceAuthority.cva(
|
|
393
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
394
|
-
{
|
|
395
|
-
variants: {
|
|
396
|
-
variant: {
|
|
397
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
398
|
-
destructive: "bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",
|
|
399
|
-
outline: "bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",
|
|
400
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
401
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
402
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
403
|
-
// For CTAs placed ON a saturated brand band or a dark section
|
|
404
|
-
// (e.g. a terracotta hero / footer / a forced-dark block) where
|
|
405
|
-
// the surface is dark+light-text in either mode. A neutral white
|
|
406
|
-
// pill + a translucent-white ghost read on any such surface;
|
|
407
|
-
// hardcoded white is deliberate (cf. destructive's text-white).
|
|
408
|
-
onBrand: "bg-white text-neutral-900 shadow-sm hover:bg-white/90",
|
|
409
|
-
onBrandOutline: "border border-white/40 bg-transparent text-white hover:bg-white/10"
|
|
410
|
-
},
|
|
411
|
-
size: {
|
|
412
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
413
|
-
sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
|
|
414
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
415
|
-
icon: "size-9"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
defaultVariants: {
|
|
419
|
-
variant: "default",
|
|
420
|
-
size: "default"
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
);
|
|
424
|
-
function Button({
|
|
425
|
-
className,
|
|
426
|
-
variant,
|
|
427
|
-
size,
|
|
428
|
-
asChild = false,
|
|
429
|
-
...props
|
|
430
|
-
}) {
|
|
431
|
-
const Comp = asChild ? reactSlot.Slot : "button";
|
|
432
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
433
|
-
Comp,
|
|
434
|
-
{
|
|
435
|
-
"data-slot": "button",
|
|
436
|
-
className: cn(buttonVariants({ variant, size, className })),
|
|
437
|
-
...props
|
|
438
|
-
}
|
|
439
|
-
);
|
|
440
|
-
}
|
|
441
539
|
classVarianceAuthority.cva(
|
|
442
540
|
"focus-visible:border-ring focus-visible:ring-ring/50 inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
|
|
443
541
|
{
|
|
@@ -1244,7 +1342,7 @@ function EcosystemSwitcher({
|
|
|
1244
1342
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "py-1", children: [...ENTRIES, ...showOwnerEntries ? OWNER_ENTRIES : []].map((e) => {
|
|
1245
1343
|
const isActive2 = e.slug === current;
|
|
1246
1344
|
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1247
|
-
|
|
1345
|
+
Link7__default.default,
|
|
1248
1346
|
{
|
|
1249
1347
|
href: e.href,
|
|
1250
1348
|
onClick: () => setOpen(false),
|
|
@@ -1265,7 +1363,7 @@ function EcosystemSwitcher({
|
|
|
1265
1363
|
) }, e.slug);
|
|
1266
1364
|
}) }),
|
|
1267
1365
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t px-4 py-2 font-mono text-[10px] tracking-widest uppercase", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1268
|
-
|
|
1366
|
+
Link7__default.default,
|
|
1269
1367
|
{
|
|
1270
1368
|
href: "https://docs.ochk.io",
|
|
1271
1369
|
onClick: () => setOpen(false),
|
|
@@ -1612,7 +1710,7 @@ function OcLogoDropdown({
|
|
|
1612
1710
|
}
|
|
1613
1711
|
),
|
|
1614
1712
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1615
|
-
|
|
1713
|
+
Link7__default.default,
|
|
1616
1714
|
{
|
|
1617
1715
|
href: homeHref,
|
|
1618
1716
|
"aria-label": "go to " + homeHref + " (this site's home)",
|
|
@@ -1662,7 +1760,7 @@ function OcLogoDropdown({
|
|
|
1662
1760
|
const isActive2 = e.slug === current;
|
|
1663
1761
|
const href = isActive2 ? homeHref : e.origin;
|
|
1664
1762
|
return /* @__PURE__ */ jsxRuntime.jsx("li", { role: "none", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1665
|
-
|
|
1763
|
+
Link7__default.default,
|
|
1666
1764
|
{
|
|
1667
1765
|
href,
|
|
1668
1766
|
role: "menuitem",
|
|
@@ -1694,7 +1792,7 @@ function OcLogoDropdown({
|
|
|
1694
1792
|
] }, category);
|
|
1695
1793
|
}) }),
|
|
1696
1794
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t px-4 py-2 font-mono text-[10px] tracking-widest uppercase", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1697
|
-
|
|
1795
|
+
Link7__default.default,
|
|
1698
1796
|
{
|
|
1699
1797
|
href: "https://docs.ochk.io",
|
|
1700
1798
|
onClick: () => setOpen(false),
|
|
@@ -2124,7 +2222,7 @@ function MobileMenu({
|
|
|
2124
2222
|
},
|
|
2125
2223
|
l.href
|
|
2126
2224
|
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2127
|
-
|
|
2225
|
+
Link7__default.default,
|
|
2128
2226
|
{
|
|
2129
2227
|
href: l.href,
|
|
2130
2228
|
role: "menuitem",
|
|
@@ -2359,7 +2457,7 @@ function OcAccountMenuView({
|
|
|
2359
2457
|
},
|
|
2360
2458
|
item.href
|
|
2361
2459
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2362
|
-
|
|
2460
|
+
Link7__default.default,
|
|
2363
2461
|
{
|
|
2364
2462
|
href: item.href,
|
|
2365
2463
|
onClick,
|
|
@@ -2580,7 +2678,7 @@ function PopoverSection({
|
|
|
2580
2678
|
},
|
|
2581
2679
|
item.href
|
|
2582
2680
|
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2583
|
-
|
|
2681
|
+
Link7__default.default,
|
|
2584
2682
|
{
|
|
2585
2683
|
href: item.href,
|
|
2586
2684
|
onClick: onItemClick,
|
|
@@ -2683,7 +2781,7 @@ function OcPrimaryNav({
|
|
|
2683
2781
|
},
|
|
2684
2782
|
link.href
|
|
2685
2783
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2686
|
-
|
|
2784
|
+
Link7__default.default,
|
|
2687
2785
|
{
|
|
2688
2786
|
href: link.href,
|
|
2689
2787
|
"aria-current": active ? "page" : void 0,
|
|
@@ -2758,7 +2856,7 @@ function OcDashboardShell({
|
|
|
2758
2856
|
}
|
|
2759
2857
|
),
|
|
2760
2858
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2761
|
-
|
|
2859
|
+
Link7__default.default,
|
|
2762
2860
|
{
|
|
2763
2861
|
href: rootHref,
|
|
2764
2862
|
className: "text-primary font-mono text-[11px] tracking-widest uppercase",
|
|
@@ -2830,7 +2928,7 @@ function Sidebar({
|
|
|
2830
2928
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b px-4 py-3", children: [
|
|
2831
2929
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2832
2930
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2833
|
-
|
|
2931
|
+
Link7__default.default,
|
|
2834
2932
|
{
|
|
2835
2933
|
href: rootHref,
|
|
2836
2934
|
onClick: onClose,
|
|
@@ -2890,7 +2988,7 @@ function Sidebar({
|
|
|
2890
2988
|
children: content
|
|
2891
2989
|
}
|
|
2892
2990
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2893
|
-
|
|
2991
|
+
Link7__default.default,
|
|
2894
2992
|
{
|
|
2895
2993
|
href: tool.href,
|
|
2896
2994
|
onClick: onClose,
|
|
@@ -2952,7 +3050,7 @@ function OcDashboardHub({ tools, className }) {
|
|
|
2952
3050
|
className: cls,
|
|
2953
3051
|
children: content
|
|
2954
3052
|
}
|
|
2955
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3053
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(Link7__default.default, { href: tool.href, className: cls, children: content }) }, tool.id);
|
|
2956
3054
|
})
|
|
2957
3055
|
}
|
|
2958
3056
|
);
|
|
@@ -3054,7 +3152,7 @@ function FooterLinkItem({ link }) {
|
|
|
3054
3152
|
" \u2197"
|
|
3055
3153
|
] });
|
|
3056
3154
|
}
|
|
3057
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3155
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Link7__default.default, { href: link.href, className: LINK_CLS, children: [
|
|
3058
3156
|
"> ",
|
|
3059
3157
|
link.label
|
|
3060
3158
|
] });
|
|
@@ -3165,6 +3263,7 @@ exports.OcAccountMenuView = OcAccountMenuView;
|
|
|
3165
3263
|
exports.OcAppBar = OcAppBar;
|
|
3166
3264
|
exports.OcDashboardHub = OcDashboardHub;
|
|
3167
3265
|
exports.OcDashboardShell = OcDashboardShell;
|
|
3266
|
+
exports.OcErrorPage = OcErrorPage;
|
|
3168
3267
|
exports.OcFamilyFooter = OcFamilyFooter;
|
|
3169
3268
|
exports.OcLogoDropdown = OcLogoDropdown;
|
|
3170
3269
|
exports.OcPrimaryNav = OcPrimaryNav;
|