@processdynamics/components 0.1.2 → 0.1.4

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 CHANGED
@@ -116,7 +116,7 @@ const job: JobCardData = {
116
116
 
117
117
  Write one small function in the app that maps its job (and anything derived from it, such as an age or a stage) to `JobCardData`. Keep the app's rules there: the card never imports the app's types, helpers or data hooks.
118
118
 
119
- A worked example of that function is in `src/adapters/exampleOrder/`, with stories under Adapters, then Example order, in Storybook. It uses a made-up order type, and covers an age rule that stops the clock, stage colours, priority pills, formatted dates, a banner that pluralises, and a restricted "summary" view made just by leaving fields out. Copy the pattern, not the file. It isn't part of the published package, and each app keeps its own adapter next to its own types and helpers.
119
+ A worked example of that function is in `src/adapters/jobCard/exampleOrder/`, with stories under Adapters, then Job card, then Example order, in Storybook. It uses a made-up order type, and covers an age rule that stops the clock, stage colours, priority pills, formatted dates, a banner that pluralises, and a restricted "summary" view made just by leaving fields out. Copy the pattern, not the file. It isn't part of the published package, and each app keeps its own adapter next to its own types and helpers.
120
120
 
121
121
  | Prop | Type | Description |
122
122
  | --- | --- | --- |
@@ -158,7 +158,8 @@ The full docs page, with every prop and a story for each part, is in Storybook u
158
158
  src/
159
159
  app/ Next host app and globals.css (theme tokens)
160
160
  adapters/
161
- exampleOrder/ a neutral example of turning an app's job into JobCardData (not published)
161
+ jobCard/ adapters for the JobCard, one folder each (not published)
162
+ exampleOrder/ a neutral example of turning an app's job into JobCardData
162
163
  components/
163
164
  <name>/ one folder per component: Component.tsx and its stories
164
165
  ui/ shadcn parts: button, calendar, popover
package/dist/index.cjs CHANGED
@@ -520,6 +520,10 @@ var JobCard = ({
520
520
  {
521
521
  onClick,
522
522
  className: (0, import_cn5.cn)(
523
+ // The shadcn Card adds vertical padding, a gap, bigger corners and a
524
+ // ring. The card's own padding is set on CardContent below, so those
525
+ // are cancelled here to keep the original, tighter layout.
526
+ "gap-0 py-0 rounded-lg ring-0 shadow-xs",
523
527
  "border-2 mb-2.5 active:scale-[0.98] transition-all hover:opacity-90",
524
528
  onClick && "cursor-pointer",
525
529
  CARD_TONE_CLASSES[job.tone ?? "neutral"],
package/dist/index.js CHANGED
@@ -487,6 +487,10 @@ var JobCard = ({
487
487
  {
488
488
  onClick,
489
489
  className: cn5(
490
+ // The shadcn Card adds vertical padding, a gap, bigger corners and a
491
+ // ring. The card's own padding is set on CardContent below, so those
492
+ // are cancelled here to keep the original, tighter layout.
493
+ "gap-0 py-0 rounded-lg ring-0 shadow-xs",
490
494
  "border-2 mb-2.5 active:scale-[0.98] transition-all hover:opacity-90",
491
495
  onClick && "cursor-pointer",
492
496
  CARD_TONE_CLASSES[job.tone ?? "neutral"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processdynamics/components",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Process Dynamics React component library, built on shadcn (Radix) and Tailwind CSS v4.",
5
5
  "license": "MIT",
6
6
  "repository": {