bonsaif-ui 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/CHANGELOG.md +5 -0
- package/README.md +16 -1
- package/dist/bonsaif-ui.js +1720 -1462
- package/dist/bonsaif-ui.umd.cjs +1 -1
- package/dist/components/ui/CopyButton.d.ts +14 -0
- package/dist/components/ui/CopyButton.d.ts.map +1 -0
- package/dist/components/ui/CopyLinkButton.d.ts +8 -0
- package/dist/components/ui/CopyLinkButton.d.ts.map +1 -0
- package/dist/components/ui/InputField.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +4 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.3 - 2026-05-02
|
|
4
|
+
|
|
5
|
+
- Add reusable `CopyButton` and `CopyLinkButton` components with clipboard fallback behavior.
|
|
6
|
+
- Export copy button props for consumers that need custom icons, titles, copied state callbacks, or URL resolvers.
|
|
7
|
+
|
|
3
8
|
## 0.1.1 - 2026-05-02
|
|
4
9
|
|
|
5
10
|
- Mark the generated JavaScript bundle as a Next.js client bundle.
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ export function Example() {
|
|
|
23
23
|
|
|
24
24
|
The package includes reusable components migrated from `prime-auth`:
|
|
25
25
|
|
|
26
|
-
- UI: `Button`, `CalendarPicker`, `CompactFilterSelect`, `CompactSearchInput`, `ConfirmDialog`, `DataTable`, `DateRangePicker`, `Drawer`, `InputField`, `LoadingState`, `Modal`, `MouseTooltip`, `SearchableSelect`, `StepWizard`, `TextInput`, `Toggle`.
|
|
26
|
+
- UI: `Button`, `CalendarPicker`, `CompactFilterSelect`, `CompactSearchInput`, `ConfirmDialog`, `CopyButton`, `CopyLinkButton`, `DataTable`, `DateRangePicker`, `Drawer`, `InputField`, `LoadingState`, `Modal`, `MouseTooltip`, `SearchableSelect`, `StepWizard`, `TextInput`, `Toggle`.
|
|
27
27
|
- Composition: `DynamicDetailTabs`.
|
|
28
28
|
- Layout: `AuthShell`, `GlobalScrollbars`, `PageHeader`, `PageSearchInput`, `PrimeAuthRouteShell`.
|
|
29
29
|
- Messaging and services: `PrimeSuiteChatFrame`, `MicroserviceFrame`.
|
|
@@ -31,6 +31,21 @@ The package includes reusable components migrated from `prime-auth`:
|
|
|
31
31
|
|
|
32
32
|
App-coupled components were adapted to receive routing, session, and navigation data through props so the library does not import private `prime-auth` modules.
|
|
33
33
|
|
|
34
|
+
## Copy Buttons
|
|
35
|
+
|
|
36
|
+
`CopyButton` copies any text value. `CopyLinkButton` copies URLs and accepts `resolveUrl` when an app needs to convert relative paths into public absolute URLs.
|
|
37
|
+
|
|
38
|
+
```tsx
|
|
39
|
+
import { CopyButton, CopyLinkButton } from "bonsaif-ui";
|
|
40
|
+
|
|
41
|
+
<CopyButton value="Texto para copiar" title="Copiar texto" />
|
|
42
|
+
|
|
43
|
+
<CopyLinkButton
|
|
44
|
+
url="/tickets/123"
|
|
45
|
+
resolveUrl={(url) => new URL(url, window.location.origin).toString()}
|
|
46
|
+
/>
|
|
47
|
+
```
|
|
48
|
+
|
|
34
49
|
## DataTable
|
|
35
50
|
|
|
36
51
|
`DataTable` owns its horizontal and vertical scrolling. When a table is rendered inside a constrained panel, pass `minTableWidth` so the table keeps usable column widths and exposes its own internal horizontal scrollbar.
|