@orangecheck/design 0.29.1 → 0.30.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/dist/components.d.mts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +155 -67
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +155 -68
- 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 +138 -50
- package/dist/composites.js.map +1 -1
- package/dist/composites.mjs +139 -52
- 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 +105 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +104 -17
- 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,142 @@ 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) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "px-4 py-2", children: [
|
|
235
|
+
">> ",
|
|
236
|
+
a
|
|
237
|
+
] }, a)) })
|
|
238
|
+
] }),
|
|
239
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 flex flex-wrap gap-3", children: [
|
|
240
|
+
/* @__PURE__ */ jsxRuntime.jsx(Button, { asChild: true, className: "font-mono", children: /* @__PURE__ */ jsxRuntime.jsx(Link7__default.default, { href: homeHref, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] tracking-widest uppercase", children: "go home" }) }) }),
|
|
241
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
242
|
+
Button,
|
|
243
|
+
{
|
|
244
|
+
variant: "outline",
|
|
245
|
+
onClick: () => {
|
|
246
|
+
if (typeof window === "undefined") return;
|
|
247
|
+
if (isServerError) window.location.reload();
|
|
248
|
+
else window.history.back();
|
|
249
|
+
},
|
|
250
|
+
className: "font-mono",
|
|
251
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] tracking-widest uppercase", children: isServerError ? "retry" : "go back" })
|
|
252
|
+
}
|
|
253
|
+
)
|
|
254
|
+
] }),
|
|
255
|
+
children && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6", children })
|
|
256
|
+
] })
|
|
257
|
+
}
|
|
258
|
+
);
|
|
259
|
+
}
|
|
124
260
|
var TONE_CLASS2 = {
|
|
125
261
|
info: "border-primary/30 bg-primary/5",
|
|
126
262
|
warning: "border-warning/40 bg-warning/5",
|
|
@@ -162,7 +298,7 @@ function CtaLink({
|
|
|
162
298
|
if (external) {
|
|
163
299
|
return /* @__PURE__ */ jsxRuntime.jsx("a", { href, target: "_blank", rel: "noreferrer", className: cls, children: text });
|
|
164
300
|
}
|
|
165
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
301
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Link7__default.default, { href, className: cls, children: text });
|
|
166
302
|
}
|
|
167
303
|
var TONE_CLASS3 = {
|
|
168
304
|
default: "",
|
|
@@ -389,55 +525,6 @@ function MarketingHeading({
|
|
|
389
525
|
)
|
|
390
526
|
] });
|
|
391
527
|
}
|
|
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
528
|
classVarianceAuthority.cva(
|
|
442
529
|
"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
530
|
{
|
|
@@ -1244,7 +1331,7 @@ function EcosystemSwitcher({
|
|
|
1244
1331
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "py-1", children: [...ENTRIES, ...showOwnerEntries ? OWNER_ENTRIES : []].map((e) => {
|
|
1245
1332
|
const isActive2 = e.slug === current;
|
|
1246
1333
|
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1247
|
-
|
|
1334
|
+
Link7__default.default,
|
|
1248
1335
|
{
|
|
1249
1336
|
href: e.href,
|
|
1250
1337
|
onClick: () => setOpen(false),
|
|
@@ -1265,7 +1352,7 @@ function EcosystemSwitcher({
|
|
|
1265
1352
|
) }, e.slug);
|
|
1266
1353
|
}) }),
|
|
1267
1354
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t px-4 py-2 font-mono text-[10px] tracking-widest uppercase", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1268
|
-
|
|
1355
|
+
Link7__default.default,
|
|
1269
1356
|
{
|
|
1270
1357
|
href: "https://docs.ochk.io",
|
|
1271
1358
|
onClick: () => setOpen(false),
|
|
@@ -1612,7 +1699,7 @@ function OcLogoDropdown({
|
|
|
1612
1699
|
}
|
|
1613
1700
|
),
|
|
1614
1701
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1615
|
-
|
|
1702
|
+
Link7__default.default,
|
|
1616
1703
|
{
|
|
1617
1704
|
href: homeHref,
|
|
1618
1705
|
"aria-label": "go to " + homeHref + " (this site's home)",
|
|
@@ -1662,7 +1749,7 @@ function OcLogoDropdown({
|
|
|
1662
1749
|
const isActive2 = e.slug === current;
|
|
1663
1750
|
const href = isActive2 ? homeHref : e.origin;
|
|
1664
1751
|
return /* @__PURE__ */ jsxRuntime.jsx("li", { role: "none", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1665
|
-
|
|
1752
|
+
Link7__default.default,
|
|
1666
1753
|
{
|
|
1667
1754
|
href,
|
|
1668
1755
|
role: "menuitem",
|
|
@@ -1694,7 +1781,7 @@ function OcLogoDropdown({
|
|
|
1694
1781
|
] }, category);
|
|
1695
1782
|
}) }),
|
|
1696
1783
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t px-4 py-2 font-mono text-[10px] tracking-widest uppercase", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1697
|
-
|
|
1784
|
+
Link7__default.default,
|
|
1698
1785
|
{
|
|
1699
1786
|
href: "https://docs.ochk.io",
|
|
1700
1787
|
onClick: () => setOpen(false),
|
|
@@ -2124,7 +2211,7 @@ function MobileMenu({
|
|
|
2124
2211
|
},
|
|
2125
2212
|
l.href
|
|
2126
2213
|
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2127
|
-
|
|
2214
|
+
Link7__default.default,
|
|
2128
2215
|
{
|
|
2129
2216
|
href: l.href,
|
|
2130
2217
|
role: "menuitem",
|
|
@@ -2359,7 +2446,7 @@ function OcAccountMenuView({
|
|
|
2359
2446
|
},
|
|
2360
2447
|
item.href
|
|
2361
2448
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2362
|
-
|
|
2449
|
+
Link7__default.default,
|
|
2363
2450
|
{
|
|
2364
2451
|
href: item.href,
|
|
2365
2452
|
onClick,
|
|
@@ -2580,7 +2667,7 @@ function PopoverSection({
|
|
|
2580
2667
|
},
|
|
2581
2668
|
item.href
|
|
2582
2669
|
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2583
|
-
|
|
2670
|
+
Link7__default.default,
|
|
2584
2671
|
{
|
|
2585
2672
|
href: item.href,
|
|
2586
2673
|
onClick: onItemClick,
|
|
@@ -2683,7 +2770,7 @@ function OcPrimaryNav({
|
|
|
2683
2770
|
},
|
|
2684
2771
|
link.href
|
|
2685
2772
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2686
|
-
|
|
2773
|
+
Link7__default.default,
|
|
2687
2774
|
{
|
|
2688
2775
|
href: link.href,
|
|
2689
2776
|
"aria-current": active ? "page" : void 0,
|
|
@@ -2758,7 +2845,7 @@ function OcDashboardShell({
|
|
|
2758
2845
|
}
|
|
2759
2846
|
),
|
|
2760
2847
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2761
|
-
|
|
2848
|
+
Link7__default.default,
|
|
2762
2849
|
{
|
|
2763
2850
|
href: rootHref,
|
|
2764
2851
|
className: "text-primary font-mono text-[11px] tracking-widest uppercase",
|
|
@@ -2830,7 +2917,7 @@ function Sidebar({
|
|
|
2830
2917
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b px-4 py-3", children: [
|
|
2831
2918
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
2832
2919
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2833
|
-
|
|
2920
|
+
Link7__default.default,
|
|
2834
2921
|
{
|
|
2835
2922
|
href: rootHref,
|
|
2836
2923
|
onClick: onClose,
|
|
@@ -2890,7 +2977,7 @@ function Sidebar({
|
|
|
2890
2977
|
children: content
|
|
2891
2978
|
}
|
|
2892
2979
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2893
|
-
|
|
2980
|
+
Link7__default.default,
|
|
2894
2981
|
{
|
|
2895
2982
|
href: tool.href,
|
|
2896
2983
|
onClick: onClose,
|
|
@@ -2952,7 +3039,7 @@ function OcDashboardHub({ tools, className }) {
|
|
|
2952
3039
|
className: cls,
|
|
2953
3040
|
children: content
|
|
2954
3041
|
}
|
|
2955
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3042
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(Link7__default.default, { href: tool.href, className: cls, children: content }) }, tool.id);
|
|
2956
3043
|
})
|
|
2957
3044
|
}
|
|
2958
3045
|
);
|
|
@@ -3054,7 +3141,7 @@ function FooterLinkItem({ link }) {
|
|
|
3054
3141
|
" \u2197"
|
|
3055
3142
|
] });
|
|
3056
3143
|
}
|
|
3057
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3144
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(Link7__default.default, { href: link.href, className: LINK_CLS, children: [
|
|
3058
3145
|
"> ",
|
|
3059
3146
|
link.label
|
|
3060
3147
|
] });
|
|
@@ -3165,6 +3252,7 @@ exports.OcAccountMenuView = OcAccountMenuView;
|
|
|
3165
3252
|
exports.OcAppBar = OcAppBar;
|
|
3166
3253
|
exports.OcDashboardHub = OcDashboardHub;
|
|
3167
3254
|
exports.OcDashboardShell = OcDashboardShell;
|
|
3255
|
+
exports.OcErrorPage = OcErrorPage;
|
|
3168
3256
|
exports.OcFamilyFooter = OcFamilyFooter;
|
|
3169
3257
|
exports.OcLogoDropdown = OcLogoDropdown;
|
|
3170
3258
|
exports.OcPrimaryNav = OcPrimaryNav;
|