@particle-academy/react-fancy 4.18.0 → 4.19.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/README.md +11 -2
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +14 -0
- package/dist/styles.css.map +1 -1
- package/package.json +91 -91
package/README.md
CHANGED
|
@@ -265,7 +265,16 @@ src/
|
|
|
265
265
|
|
|
266
266
|
## Demo Pages
|
|
267
267
|
|
|
268
|
-
|
|
268
|
+
Every component has a live demo page on the showcase site, at
|
|
269
|
+
`https://ui.particle.academy/packages/react-fancy/<component>` — e.g.
|
|
270
|
+
[`/packages/react-fancy/button`](https://ui.particle.academy/packages/react-fancy/button).
|
|
271
|
+
Each one exercises the component's props and states, with the source for every
|
|
272
|
+
example shown inline.
|
|
273
|
+
|
|
274
|
+
Those pages are the demos: one file per component in the showcase repo
|
|
275
|
+
([`Particle-Academy/pa-ux-sandbox`](https://github.com/Particle-Academy/pa-ux-sandbox))
|
|
276
|
+
at `resources/js/Pages/Packages/ComponentDocs/<ComponentName>.tsx`. The older
|
|
277
|
+
`resources/js/react-demos/pages/` tree they replaced no longer exists.
|
|
269
278
|
|
|
270
279
|
---
|
|
271
280
|
|
|
@@ -318,7 +327,7 @@ Purely visual primitives (labels, dividers, layout shells) only owe the first bu
|
|
|
318
327
|
- tsup handles the build — ESM, CJS, and `.d.ts` generation.
|
|
319
328
|
- `react`, `react-dom`, and `lucide-react` are external dependencies, never bundled.
|
|
320
329
|
- After any change, verify with `pnpm --filter @particle-academy/react-fancy build` before considering the work done.
|
|
321
|
-
- When updating a component, update its demo page in `resources/js/
|
|
330
|
+
- When updating a component, update its demo page in the showcase repo — `resources/js/Pages/Packages/ComponentDocs/<ComponentName>.tsx` in [`Particle-Academy/pa-ux-sandbox`](https://github.com/Particle-Academy/pa-ux-sandbox) — to cover all new features. That page is what `/packages/react-fancy/<component>` renders.
|
|
322
331
|
|
|
323
332
|
---
|
|
324
333
|
|
package/dist/index.cjs
CHANGED
|
@@ -12542,7 +12542,13 @@ function SidebarItem({
|
|
|
12542
12542
|
"aria-disabled": disabled || void 0,
|
|
12543
12543
|
title: collapsed ? title : void 0,
|
|
12544
12544
|
className: cn(
|
|
12545
|
-
|
|
12545
|
+
// `w-full` matters when the Tag is a <button>: form controls size to
|
|
12546
|
+
// FIT-CONTENT, not to their parent, so a long label made the item wider
|
|
12547
|
+
// than the sidebar and an ancestor clipped the overflow — which reads as
|
|
12548
|
+
// a label cut off mid-word rather than an ellipsis. Without this,
|
|
12549
|
+
// `min-w-0` on the label below can never engage, because the item is
|
|
12550
|
+
// never under width pressure in the first place.
|
|
12551
|
+
"flex w-full items-center rounded-md text-sm font-medium transition-colors",
|
|
12546
12552
|
"outline-none focus-visible:ring-2 focus-visible:ring-blue-500",
|
|
12547
12553
|
collapsed ? "justify-center px-2 py-2" : "gap-2 px-3 py-2",
|
|
12548
12554
|
active ? "bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-zinc-100" : "text-zinc-600 hover:bg-zinc-50 hover:text-zinc-900 dark:text-zinc-400 dark:hover:bg-zinc-800/50 dark:hover:text-zinc-100",
|
|
@@ -12554,7 +12560,7 @@ function SidebarItem({
|
|
|
12554
12560
|
showLetters && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs font-semibold uppercase", children: getLetters(children) }),
|
|
12555
12561
|
!collapsed && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12556
12562
|
icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: icon }),
|
|
12557
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 truncate text-left", children }),
|
|
12563
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 flex-1 truncate text-left", children }),
|
|
12558
12564
|
badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", children: badge })
|
|
12559
12565
|
] })
|
|
12560
12566
|
]
|