@payfit/unity-components 2.48.11 → 2.48.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.48.11",
3
+ "version": "2.48.12",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -92,7 +92,7 @@
92
92
  "tailwind-variants": "3.2.2",
93
93
  "usehooks-ts": "3.1.1",
94
94
  "zod": "4.4.3",
95
- "@payfit/unity-illustrations": "2.48.11"
95
+ "@payfit/unity-illustrations": "2.48.12"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "@hookform/devtools": "^4",
@@ -104,8 +104,8 @@
104
104
  "react-hook-form": "^7",
105
105
  "react-router-dom": "^5",
106
106
  "zod": "^3 || ^4",
107
- "@payfit/unity-icons": "2.48.11",
108
- "@payfit/unity-themes": "2.48.11"
107
+ "@payfit/unity-icons": "2.48.12",
108
+ "@payfit/unity-themes": "2.48.12"
109
109
  },
110
110
  "devDependencies": {
111
111
  "@figma/code-connect": "1.4.8",
@@ -153,11 +153,11 @@
153
153
  "@payfit/hr-app-eslint": "0.0.0-use.local",
154
154
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
155
155
  "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
156
- "@payfit/unity-icons": "2.48.11",
157
- "@payfit/storybook-config": "0.0.0-use.local",
158
- "@payfit/unity-illustrations": "2.48.11",
156
+ "@payfit/unity-icons": "2.48.12",
157
+ "@payfit/unity-illustrations": "2.48.12",
158
+ "@payfit/unity-themes": "2.48.12",
159
159
  "@payfit/vite-configs": "0.0.0-use.local",
160
- "@payfit/unity-themes": "2.48.11"
160
+ "@payfit/storybook-config": "0.0.0-use.local"
161
161
  },
162
162
  "peerDependenciesMeta": {
163
163
  "@hookform/devtools": {
@@ -1,13 +1,9 @@
1
1
  ---
2
2
  name: unity-data-table
3
3
  description: >
4
- Render tabular data in @payfit/unity-components. Pick between the composite
5
- DataTable (Tanstack Table integration with sorting, filtering, pagination,
6
- virtualization, bulk actions, F6 focus trap) and the primitive Table
7
- (TableHeader/TableBody/TableRow/TableCell/TableEmptyState). Filter and
8
- FilterToolbar orchestrate the AppliedFilter[] contract; Filter.renderControl
9
- accepts arbitrary controls (not select-only). Columns AND data MUST be
10
- memoized. manualPagination requires re-slicing data.
4
+ Load when rendering tabular data with Unity. Use it to choose DataTable for
5
+ managed table state or primitive Table for static/custom markup, including
6
+ filtering, pagination, virtualization, or bulk actions.
11
7
  type: core
12
8
  library: '@payfit/unity-components'
13
9
  library_version: '2.x'
@@ -1,14 +1,9 @@
1
1
  ---
2
2
  name: unity-find-component
3
3
  description: >
4
- Find or build the right Unity component. Catalog of ~226 named exports
5
- in @payfit/unity-components grouped by purpose (layout: Flex/Grid/Card,
6
- navigation: RawLink/Nav/Tabs/Breadcrumbs/Pagination, form fields:
7
- TextField/SelectField/NumberField/CheckboxField/etc., buttons: Button/
8
- IconButton/RawLinkButton, overlays: Dialog/Popover/Menu/Tooltip,
9
- content: Pill/Badge/Alert/DataTable/Carousel). Decision tree: prefer
10
- Unity → fall back to React Aria + uy:* classes → Midnight as last resort.
11
- Typed UnityIcon src convention. RHF deprecated; Tanstack Form everywhere.
4
+ Load before choosing or creating Unity UI. Use it to map a UI need to an
5
+ existing @payfit/unity-components export, then fall back to React Aria plus
6
+ uy: classes only when Unity has no fit.
12
7
  type: core
13
8
  library: '@payfit/unity-components'
14
9
  library_version: '2.x'
@@ -1,15 +1,9 @@
1
1
  ---
2
2
  name: unity-layout-and-styling
3
3
  description: >
4
- Compose layouts and apply styles in @payfit/unity-components. Flex (1D)
5
- and Grid (12-col 2D). Every utility class MUST use the uy: prefix
6
- (uy:flex, uy:gap-100). Modifier order is uy:md:gap-200, uy:hover:bg-…,
7
- uy:data-[hovered=true]:bg-… (preferred when components expose state
8
- attributes). Merge classes with uyMerge, build variants with uyTv,
9
- conditional class strings with cn/classNames/clsx — all from
10
- @payfit/unity-themes. Use <Text variant> for typography. Verify token
11
- names exist in the @theme block; do not hallucinate (uy:bg-primary-500
12
- is NOT a Unity token).
4
+ Load when composing Unity layouts or styling with uy: Tailwind utilities.
5
+ Use it for Flex/Grid/Text choices, class merging/variants, and validating
6
+ Unity token names before adding styles.
13
7
  type: core
14
8
  library: '@payfit/unity-components, @payfit/unity-themes'
15
9
  library_version: '2.x'
@@ -1,13 +1,9 @@
1
1
  ---
2
2
  name: unity-migrate-from-midnight
3
3
  description: >
4
- Migrate a legacy screen from @payfit/midnight to Unity. Component
5
- equivalency map (Button, Box→Flex, Modal→Dialog, Link→RawLink,
6
- Heading→Text). Prop renames (visual→color; onClick→onPress).
7
- A11y deltas Unity enforces (tooltip-on-disabled-control is rejected at
8
- the library level). RHF was used in Midnight-era code; replace with
9
- Tanstack Form (see unity-tanstack-form). Full ~85-row component map
10
- in references/midnight-component-map.md.
4
+ Load when replacing @payfit/midnight UI with Unity. Use it to choose Unity
5
+ equivalents, avoid obsolete Midnight patterns, and route unclear component
6
+ mappings to unity-find-component.
11
7
  type: lifecycle
12
8
  library: '@payfit/unity-components'
13
9
  library_version: '2.x'
@@ -1,16 +1,9 @@
1
1
  ---
2
2
  name: unity-navigation
3
3
  description: >
4
- Pick between router-agnostic Raw* components (RawLink, RawNavItem,
5
- RawBreadcrumbLink, RawPaginationLink, RawTab) in the @payfit/unity-components
6
- base entry and router-aware components (Link, NavItem, BreadcrumbLink,
7
- PaginationLink, Tabs) in @payfit/unity-components/integrations/tanstack-router.
8
- Compositional patterns: Breadcrumbs > Breadcrumb > BreadcrumbLink;
9
- Pagination > PaginationContent > PaginationItem > RawPaginationLink;
10
- Tabs > TabList > RawTab + TabPanel. RouterProvider is needed for Raw*
11
- components in non-Tanstack apps; the tanstack-router integration uses
12
- Tanstack hooks directly. The v1 monolithic Pagination no longer exists
13
- publicly — ClientSidePagination is now internal to DataTable only.
4
+ Load when building Unity links, tabs, breadcrumbs, nav, or pagination. Use it
5
+ to choose router-aware Tanstack Router components versus Raw* href
6
+ primitives.
14
7
  type: core
15
8
  library: '@payfit/unity-components'
16
9
  library_version: '2.x'
@@ -1,13 +1,9 @@
1
1
  ---
2
2
  name: unity-overlays
3
3
  description: >
4
- Use the right overlay in @payfit/unity-components. Modal (Dialog,
5
- SidePanel, BottomSheet, PromoDialog) focus trap, scroll lock, backdrop,
6
- Escape closes. Non-modal (Tooltip, Popover, DefinitionTooltip, Menu) —
7
- no focus trap, can coexist with page. Unity ENFORCES "no tooltip on
8
- disabled control" at the library level (a11y rule that Midnight allowed).
9
- PromoDialog asserts PromoDialogHero; Popover requires title; Tooltip
10
- children must accept ref.
4
+ Load when adding Unity dialogs, side panels, bottom sheets, tooltips,
5
+ popovers, or menus. Use it to choose modal versus non-modal overlays and keep
6
+ disabled-control tooltip behavior accessible.
11
7
  type: core
12
8
  library: '@payfit/unity-components'
13
9
  library_version: '2.x'
@@ -1,15 +1,9 @@
1
1
  ---
2
2
  name: unity-tanstack-form
3
3
  description: >
4
- Build any form in @payfit/unity-components with useTanstackUnityForm + Zod
5
- (dynamic, translated). Layered wrapping: form.AppForm → form.Form
6
- form.AppField field component. Composed API by default (TanstackTextField,
7
- SelectField, NumberField, DatePickerField, CheckboxField, …); Atomic API
8
- (field.Field + field.FieldLabel + field.TextInput) only when customizing
9
- layout or parts. Schema adapters: StandardSchemaAdapter, ZodV3SchemaAdapter,
10
- ZodV4SchemaAdapter. validators.onBlur is the default;
11
- fieldRevalidateLogic for blur-then-change UX. React Hook Form
12
- (useUnityForm + RHF *-field wrappers) is deprecated and will be REMOVED.
4
+ Load when building or migrating Unity forms. Use useTanstackUnityForm with
5
+ schema validation and prefer Tanstack Form field APIs for composed fields,
6
+ custom layouts, and validation behavior.
13
7
  type: core
14
8
  library: '@payfit/unity-components'
15
9
  library_version: '2.x'