@payfit/unity-components 2.48.11 → 2.48.13
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 +11 -11
- package/skills/unity-data-table/SKILL.md +3 -7
- package/skills/unity-find-component/SKILL.md +3 -8
- package/skills/unity-layout-and-styling/SKILL.md +3 -9
- package/skills/unity-migrate-from-midnight/SKILL.md +3 -7
- package/skills/unity-navigation/SKILL.md +3 -10
- package/skills/unity-overlays/SKILL.md +3 -7
- package/skills/unity-tanstack-form/SKILL.md +3 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.48.
|
|
3
|
+
"version": "2.48.13",
|
|
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.
|
|
95
|
+
"@payfit/unity-illustrations": "2.48.13"
|
|
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.
|
|
108
|
-
"@payfit/unity-themes": "2.48.
|
|
107
|
+
"@payfit/unity-icons": "2.48.13",
|
|
108
|
+
"@payfit/unity-themes": "2.48.13"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
111
|
"@figma/code-connect": "1.4.8",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"@types/react-dom": "18.3.5",
|
|
133
133
|
"@types/react-router-dom": "5.3.3",
|
|
134
134
|
"@vitejs/plugin-react": "6.0.2",
|
|
135
|
-
"@vitest/browser": "4.1.9",
|
|
135
|
+
"@vitest/browser-playwright": "4.1.9",
|
|
136
136
|
"eslint-plugin-storybook": "10.3.2",
|
|
137
137
|
"glob": "11.1.0",
|
|
138
138
|
"msw": "2.14.6",
|
|
@@ -151,13 +151,13 @@
|
|
|
151
151
|
"vite-plugin-node-polyfills": "0.28.0",
|
|
152
152
|
"vitest": "4.1.9",
|
|
153
153
|
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
154
|
-
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
155
|
-
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
156
|
-
"@payfit/unity-icons": "2.48.11",
|
|
157
154
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
158
|
-
"@payfit/
|
|
159
|
-
"@payfit/
|
|
160
|
-
"@payfit/unity-
|
|
155
|
+
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
156
|
+
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
157
|
+
"@payfit/unity-icons": "2.48.13",
|
|
158
|
+
"@payfit/unity-illustrations": "2.48.13",
|
|
159
|
+
"@payfit/unity-themes": "2.48.13",
|
|
160
|
+
"@payfit/vite-configs": "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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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'
|