@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/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) => /* @__PURE__ */ jsxs("li", { className: "px-4 py-2", children: [
3238
- ">> ",
3239
- a
3240
- ] }, a)) })
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__ */ jsx(Link7, { href: homeHref, children: /* @__PURE__ */ jsx("span", { className: "text-[11px] tracking-widest uppercase", children: "go home" }) }) }),
3244
- /* @__PURE__ */ jsx(
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: /* @__PURE__ */ jsx("span", { className: "text-[11px] tracking-widest uppercase", children: isServerError ? "retry" : "go back" })
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
  ] }),