Repository navigation
Differentiate radix components from custom scicomp components part 1 noah - #43
Conversation
for starter, split those components that is being used in xas web ui project. BREAKING CHANGE: shadcn-derived components (Accordion, Alert, AlertDialog, Badge, Button, Card, Checkbox, Collapsible, Dialog, Form, Input, Label, Popover, Progress, RadioGroup, Select, Separator, Sidebar, Switch, Toaster, Tooltip) are no longer exported from the root entry. Import them from "@australiansynchrotron/sci-comp-ui/shadcn" instead. `cn` is still exported from both entries.
| import { StepColumns } from "@australiansynchrotron/sci-comp-ui"; | ||
| ``` | ||
|
|
||
| Components derived from shadcn/ui (Button, Card, Dialog, Form, Select, Sidebar, Tooltip, …) come from the `/shadcn` subpath; see `src/shadcn.ts` for the full list. `cn` is available from both. Usage docs for these are on [ui.shadcn.com](https://ui.shadcn.com/docs/components); our copies are a snapshot and can differ from upstream, so check our docs site for Button, Badge and Form. |
There was a problem hiding this comment.
Would probably rephrased the start from Components derived from shadcn/ui to sth like Unaltered components from shadcn/ui.
Since derived would mean we changed it based on the original (like it's a derivative of the original).
There was a problem hiding this comment.
Good catch! derived does read as though we changed all of them, and we didn't. Unaltered isn't quite right either, though. Most are straight copies, but Button and Badge have our success/warning variants (plus loading state on Button). Form is unchanged but uses the older FormField API, so upstream's current docs don't match it. I would probably reword it to "Components from shadcn/ui" and name those three exceptions, so we know when to look at our docs instead of upstream.
|
Also, I think you can PR your branch directly into I created the The other steps should be in their own PRs to merge into |
Periodic Tabletocomponents.