@orangecheck/design 0.30.0 → 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.js +18 -7
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +19 -8
- package/dist/components.mjs.map +1 -1
- package/dist/composites.d.mts +1 -1
- package/dist/composites.d.ts +1 -1
- package/dist/composites.js +18 -7
- package/dist/composites.js.map +1 -1
- package/dist/composites.mjs +19 -8
- package/dist/composites.mjs.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as React2 from 'react';
|
|
|
4
4
|
import { createContext, useRef, useEffect, useState, useCallback, useMemo, useContext, useId, Fragment as Fragment$1 } from 'react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { useTheme } from 'next-themes';
|
|
7
|
-
import { ChevronDown, Plus, Palette, Check, Sun, Moon, Monitor, Waves, Pause, CheckIcon, CircleIcon, X, XIcon, AlertTriangle, Pencil, ChevronLeft, ChevronRight, ChevronDownIcon, ChevronUpIcon, Maximize2, Copy, HelpCircle, Boxes, CornerDownLeft, Loader2, Menu } from 'lucide-react';
|
|
7
|
+
import { ChevronDown, Plus, Palette, Check, Sun, Moon, Monitor, Waves, Pause, CheckIcon, CircleIcon, X, XIcon, AlertTriangle, Pencil, ChevronLeft, ChevronRight, ChevronDownIcon, ChevronUpIcon, Maximize2, Copy, HelpCircle, Home, RefreshCw, ArrowLeft, Boxes, CornerDownLeft, Loader2, Menu } from 'lucide-react';
|
|
8
8
|
import { Slot } from '@radix-ui/react-slot';
|
|
9
9
|
import { cva } from 'class-variance-authority';
|
|
10
10
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -3234,14 +3234,22 @@ function OcErrorPage({
|
|
|
3234
3234
|
] }),
|
|
3235
3235
|
shownActions.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mt-8 border", children: [
|
|
3236
3236
|
/* @__PURE__ */ jsx("div", { className: "border-b px-4 py-2 font-mono text-[11px] tracking-widest uppercase", children: "what can you do" }),
|
|
3237
|
-
/* @__PURE__ */ jsx("ul", { className: "divide-y font-mono text-xs", children: shownActions.map((a) =>
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3237
|
+
/* @__PURE__ */ jsx("ul", { className: "divide-y font-mono text-xs", children: shownActions.map((a, i) => (
|
|
3238
|
+
// Index keys: items are nodes and the list is
|
|
3239
|
+
// static per variant, so there is nothing
|
|
3240
|
+
// better to key on and nothing reorders.
|
|
3241
|
+
/* @__PURE__ */ jsxs("li", { className: "px-4 py-2", children: [
|
|
3242
|
+
">> ",
|
|
3243
|
+
a
|
|
3244
|
+
] }, i)
|
|
3245
|
+
)) })
|
|
3241
3246
|
] }),
|
|
3242
3247
|
/* @__PURE__ */ jsxs("div", { className: "mt-8 flex flex-wrap gap-3", children: [
|
|
3243
|
-
/* @__PURE__ */ jsx(Button, { asChild: true, className: "font-mono", children: /* @__PURE__ */
|
|
3244
|
-
|
|
3248
|
+
/* @__PURE__ */ jsx(Button, { asChild: true, className: "font-mono", children: /* @__PURE__ */ jsxs(Link7, { href: homeHref, children: [
|
|
3249
|
+
/* @__PURE__ */ jsx(Home, { className: "mr-2 h-3 w-3" }),
|
|
3250
|
+
/* @__PURE__ */ jsx("span", { className: "text-[11px] tracking-widest uppercase", children: "go home" })
|
|
3251
|
+
] }) }),
|
|
3252
|
+
/* @__PURE__ */ jsxs(
|
|
3245
3253
|
Button,
|
|
3246
3254
|
{
|
|
3247
3255
|
variant: "outline",
|
|
@@ -3251,7 +3259,10 @@ function OcErrorPage({
|
|
|
3251
3259
|
else window.history.back();
|
|
3252
3260
|
},
|
|
3253
3261
|
className: "font-mono",
|
|
3254
|
-
children:
|
|
3262
|
+
children: [
|
|
3263
|
+
isServerError ? /* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-3 w-3" }) : /* @__PURE__ */ jsx(ArrowLeft, { className: "mr-2 h-3 w-3" }),
|
|
3264
|
+
/* @__PURE__ */ jsx("span", { className: "text-[11px] tracking-widest uppercase", children: isServerError ? "retry" : "go back" })
|
|
3265
|
+
]
|
|
3255
3266
|
}
|
|
3256
3267
|
)
|
|
3257
3268
|
] }),
|