@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.
@@ -1,5 +1,5 @@
1
1
  import * as Popover from '@radix-ui/react-popover';
2
- import { ChevronDown, Plus, HelpCircle, X, Check } from 'lucide-react';
2
+ import { ChevronDown, Plus, HelpCircle, Home, RefreshCw, ArrowLeft, X, Check } from 'lucide-react';
3
3
  import { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -203,14 +203,22 @@ function OcErrorPage({
203
203
  ] }),
204
204
  shownActions.length > 0 && /* @__PURE__ */ jsxs("div", { className: "mt-8 border", children: [
205
205
  /* @__PURE__ */ jsx("div", { className: "border-b px-4 py-2 font-mono text-[11px] tracking-widest uppercase", children: "what can you do" }),
206
- /* @__PURE__ */ jsx("ul", { className: "divide-y font-mono text-xs", children: shownActions.map((a) => /* @__PURE__ */ jsxs("li", { className: "px-4 py-2", children: [
207
- ">> ",
208
- a
209
- ] }, a)) })
206
+ /* @__PURE__ */ jsx("ul", { className: "divide-y font-mono text-xs", children: shownActions.map((a, i) => (
207
+ // Index keys: items are nodes and the list is
208
+ // static per variant, so there is nothing
209
+ // better to key on and nothing reorders.
210
+ /* @__PURE__ */ jsxs("li", { className: "px-4 py-2", children: [
211
+ ">> ",
212
+ a
213
+ ] }, i)
214
+ )) })
210
215
  ] }),
211
216
  /* @__PURE__ */ jsxs("div", { className: "mt-8 flex flex-wrap gap-3", children: [
212
- /* @__PURE__ */ jsx(Button, { asChild: true, className: "font-mono", children: /* @__PURE__ */ jsx(Link, { href: homeHref, children: /* @__PURE__ */ jsx("span", { className: "text-[11px] tracking-widest uppercase", children: "go home" }) }) }),
213
- /* @__PURE__ */ jsx(
217
+ /* @__PURE__ */ jsx(Button, { asChild: true, className: "font-mono", children: /* @__PURE__ */ jsxs(Link, { href: homeHref, children: [
218
+ /* @__PURE__ */ jsx(Home, { className: "mr-2 h-3 w-3" }),
219
+ /* @__PURE__ */ jsx("span", { className: "text-[11px] tracking-widest uppercase", children: "go home" })
220
+ ] }) }),
221
+ /* @__PURE__ */ jsxs(
214
222
  Button,
215
223
  {
216
224
  variant: "outline",
@@ -220,7 +228,10 @@ function OcErrorPage({
220
228
  else window.history.back();
221
229
  },
222
230
  className: "font-mono",
223
- children: /* @__PURE__ */ jsx("span", { className: "text-[11px] tracking-widest uppercase", children: isServerError ? "retry" : "go back" })
231
+ children: [
232
+ isServerError ? /* @__PURE__ */ jsx(RefreshCw, { className: "mr-2 h-3 w-3" }) : /* @__PURE__ */ jsx(ArrowLeft, { className: "mr-2 h-3 w-3" }),
233
+ /* @__PURE__ */ jsx("span", { className: "text-[11px] tracking-widest uppercase", children: isServerError ? "retry" : "go back" })
234
+ ]
224
235
  }
225
236
  )
226
237
  ] }),