@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.js CHANGED
@@ -3269,14 +3269,22 @@ function OcErrorPage({
3269
3269
  ] }),
3270
3270
  shownActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 border", children: [
3271
3271
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-b px-4 py-2 font-mono text-[11px] tracking-widest uppercase", children: "what can you do" }),
3272
- /* @__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: [
3273
- ">> ",
3274
- a
3275
- ] }, a)) })
3272
+ /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "divide-y font-mono text-xs", children: shownActions.map((a, i) => (
3273
+ // Index keys: items are nodes and the list is
3274
+ // static per variant, so there is nothing
3275
+ // better to key on and nothing reorders.
3276
+ /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "px-4 py-2", children: [
3277
+ ">> ",
3278
+ a
3279
+ ] }, i)
3280
+ )) })
3276
3281
  ] }),
3277
3282
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-8 flex flex-wrap gap-3", children: [
3278
- /* @__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" }) }) }),
3279
- /* @__PURE__ */ jsxRuntime.jsx(
3283
+ /* @__PURE__ */ jsxRuntime.jsx(Button, { asChild: true, className: "font-mono", children: /* @__PURE__ */ jsxRuntime.jsxs(Link7__default.default, { href: homeHref, children: [
3284
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Home, { className: "mr-2 h-3 w-3" }),
3285
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] tracking-widest uppercase", children: "go home" })
3286
+ ] }) }),
3287
+ /* @__PURE__ */ jsxRuntime.jsxs(
3280
3288
  Button,
3281
3289
  {
3282
3290
  variant: "outline",
@@ -3286,7 +3294,10 @@ function OcErrorPage({
3286
3294
  else window.history.back();
3287
3295
  },
3288
3296
  className: "font-mono",
3289
- children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] tracking-widest uppercase", children: isServerError ? "retry" : "go back" })
3297
+ children: [
3298
+ 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" }),
3299
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[11px] tracking-widest uppercase", children: isServerError ? "retry" : "go back" })
3300
+ ]
3290
3301
  }
3291
3302
  )
3292
3303
  ] }),