@openzeppelin/ui-components 1.3.0 → 1.4.0
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 +14 -0
- package/dist/index.cjs +535 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +246 -12
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +252 -18
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +532 -57
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -66,6 +66,20 @@ Specialized components designed for use within `react-hook-form`:
|
|
|
66
66
|
|
|
67
67
|
Helper functions for validation, accessibility, and layout within field components.
|
|
68
68
|
|
|
69
|
+
### Address Label & Suggestion Contexts
|
|
70
|
+
|
|
71
|
+
Context providers for automatic address label resolution and autocomplete suggestions:
|
|
72
|
+
|
|
73
|
+
- `AddressLabelProvider` / `AddressLabelContext` — When mounted, all `AddressDisplay` instances in the subtree auto-resolve human-readable labels via a `resolveLabel` function
|
|
74
|
+
- `AddressSuggestionProvider` / `AddressSuggestionContext` — When mounted, all `AddressField` instances in the subtree show autocomplete suggestions via a `resolveSuggestions` function
|
|
75
|
+
- `useAddressLabel(address, networkId?)` — Convenience hook to resolve a label from the nearest `AddressLabelProvider`
|
|
76
|
+
|
|
77
|
+
### Additional UI Components
|
|
78
|
+
|
|
79
|
+
- `OverflowMenu` — Compact "..." dropdown for secondary actions with support for icons, destructive styling, and disabled state
|
|
80
|
+
- `NetworkSelector` — Searchable network dropdown with optional multi-select mode (`multiple={true}`)
|
|
81
|
+
- `AddressDisplay` — Enhanced with optional `label`, `onLabelEdit`, and `disableLabel` props for context-driven alias display
|
|
82
|
+
|
|
69
83
|
### Styling Utilities
|
|
70
84
|
|
|
71
85
|
Such as `buttonVariants` for `class-variance-authority`.
|