bonsaif-ui 0.1.38 → 0.1.40
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 +13 -0
- package/dist/bonsaif-ui.js +1196 -1162
- package/dist/bonsaif-ui.umd.cjs +6 -6
- package/dist/components/ui/ConfirmDialog.d.ts +3 -1
- package/dist/components/ui/ConfirmDialog.d.ts.map +1 -1
- package/dist/components/ui/DataTable.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -348,6 +348,19 @@ Use `closeOnBackdrop={false}` when a modal must stay open after clicking outside
|
|
|
348
348
|
</Modal>
|
|
349
349
|
```
|
|
350
350
|
|
|
351
|
+
`ConfirmDialog` accepts the same prop when a confirmation should only close through the explicit cancel or confirm actions.
|
|
352
|
+
|
|
353
|
+
```tsx
|
|
354
|
+
<ConfirmDialog
|
|
355
|
+
open={confirmOpen}
|
|
356
|
+
title="Confirmar accion"
|
|
357
|
+
description="Esta accion requiere una decision explicita."
|
|
358
|
+
closeOnBackdrop={false}
|
|
359
|
+
onConfirm={confirmAction}
|
|
360
|
+
onCancel={() => setConfirmOpen(false)}
|
|
361
|
+
/>
|
|
362
|
+
```
|
|
363
|
+
|
|
351
364
|
### Feedback And Data
|
|
352
365
|
|
|
353
366
|
- `Alert`, `StatusBadge`, `EmptyState`, `LoadingState`: visible states and feedback.
|