@nice2dev/ui 1.0.17 → 1.0.19
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 +316 -0
- package/dist/NiceAlertDialog.doc-BST0-aVs.cjs +14 -0
- package/dist/NiceAlertDialog.doc-GRpJU_5Y.js +38 -0
- package/dist/NiceAnimatePresence.doc-BrttRpeS.js +36 -0
- package/dist/NiceAnimatePresence.doc-IdEWrSnT.cjs +12 -0
- package/dist/NiceCalendarScheduler.doc-Cc-DFMhR.js +33 -0
- package/dist/NiceCalendarScheduler.doc-TPe0kRBN.cjs +9 -0
- package/dist/NiceCameraFeed.doc-BJl0gdWv.js +31 -0
- package/dist/NiceCameraFeed.doc-Bt4eZ8MH.cjs +7 -0
- package/dist/NiceChip.doc-Bccf4IQe.cjs +7 -0
- package/dist/NiceChip.doc-DEsqjL7z.js +31 -0
- package/dist/NiceCombobox.doc-8hMzrsdM.js +34 -0
- package/dist/NiceCombobox.doc-C5IPnVuz.cjs +10 -0
- package/dist/NiceConfigProvider.doc-CKIudO44.js +32 -0
- package/dist/NiceConfigProvider.doc-bMLQj3Zx.cjs +8 -0
- package/dist/NiceCronEditor.doc-BThdELxx.js +31 -0
- package/dist/NiceCronEditor.doc-w_TbOWFo.cjs +7 -0
- package/dist/NiceDataList.doc-DHXrpTPT.cjs +9 -0
- package/dist/NiceDataList.doc-R8SchHqZ.js +33 -0
- package/dist/NiceDiagram.doc-CASS0Tnj.cjs +8 -0
- package/dist/NiceDiagram.doc-DGX-Hwhg.js +32 -0
- package/dist/NiceDocPage.doc-BVBe27kj.cjs +1 -0
- package/dist/NiceDocPage.doc-CDcL3Sqt.js +25 -0
- package/dist/NiceDrawingCanvas.doc-DYYFKKMW.js +32 -0
- package/dist/NiceDrawingCanvas.doc-wa684gbC.cjs +8 -0
- package/dist/NiceDropdown.doc-D2NS9hBT.js +35 -0
- package/dist/NiceDropdown.doc-dAgER8da.cjs +11 -0
- package/dist/NiceDropzone.doc-CVVNc9SE.cjs +9 -0
- package/dist/NiceDropzone.doc-aeajYWqU.js +33 -0
- package/dist/NiceEnergyMonitor.doc-BBnVKuwf.js +32 -0
- package/dist/NiceEnergyMonitor.doc-lf6CCIYi.cjs +8 -0
- package/dist/NiceErrorBoundary-COY0cEsF.js +762 -0
- package/dist/NiceErrorBoundary-CR-_ZScD.cjs +1 -0
- package/dist/NiceErrorBoundary-DBCCmeyl.js +770 -0
- package/dist/NiceErrorBoundary-V6wkSSLP.cjs +1 -0
- package/dist/NiceExpressionBuilder.doc-CTjqEcZR.cjs +8 -0
- package/dist/NiceExpressionBuilder.doc-Cu_ORFhd.js +32 -0
- package/dist/NiceFileExplorer.doc-B0aN041v.js +32 -0
- package/dist/NiceFileExplorer.doc-DNHYQF_t.cjs +8 -0
- package/dist/NiceFloatingActionButton.doc-BOlJwq4S.cjs +7 -0
- package/dist/NiceFloatingActionButton.doc-oYnwvMP9.js +31 -0
- package/dist/NiceFontPicker.doc-B10vOqeF.cjs +8 -0
- package/dist/NiceFontPicker.doc-DuPp0cDP.js +32 -0
- package/dist/NiceForm-COk1rNVa.js +5357 -0
- package/dist/NiceForm-CU8Dldq-.cjs +382 -0
- package/dist/NiceForm-DLADlHAQ.js +5383 -0
- package/dist/NiceForm-DUkduLqG.cjs +382 -0
- package/dist/NiceForm.css +1 -1
- package/dist/NiceGestureHandler.doc-9GGvVnM5.cjs +8 -0
- package/dist/NiceGestureHandler.doc-BduQU3SA.js +32 -0
- package/dist/NiceHeader.doc-Cxoy_f_k.cjs +6 -0
- package/dist/NiceHeader.doc-DjAVl-T4.js +30 -0
- package/dist/NiceImage.doc-COy4iVy1.js +34 -0
- package/dist/NiceImage.doc-CvnaTRj8.cjs +10 -0
- package/dist/NiceInPlaceEditor.doc-8nC6Kqvn.cjs +1 -0
- package/dist/NiceInPlaceEditor.doc-gF1XPyu5.js +25 -0
- package/dist/NiceInteractiveTimeline.doc-BTeASFR4.js +50 -0
- package/dist/NiceInteractiveTimeline.doc-WMOVQhMe.cjs +11 -0
- package/dist/NiceJsonEditor.doc-BpVa-AlY.js +31 -0
- package/dist/NiceJsonEditor.doc-DeyoVDQw.cjs +7 -0
- package/dist/NiceMegaMenu.doc-CO34gN43.cjs +7 -0
- package/dist/NiceMegaMenu.doc-DpchTBL6.js +31 -0
- package/dist/NiceMentionInput.doc-O0W58Unu.js +32 -0
- package/dist/NiceMentionInput.doc-ZSPjBsZc.cjs +8 -0
- package/dist/NiceModal-CIITx65V.cjs +1 -0
- package/dist/NiceModal-CN23FZsc.js +95 -0
- package/dist/NiceModal-CUdeVj-j.js +95 -0
- package/dist/NiceModal-Cc8R-DpX.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-4UEsYB5r.js +6553 -0
- package/dist/NiceModuleLifecyclePanel-BDnsr5ZW.js +6349 -0
- package/dist/NiceModuleLifecyclePanel-C6agdtTI.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-F1uN0gMh.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NiceMotion.doc-COF5BldG.cjs +9 -0
- package/dist/NiceMotion.doc-utheTBgM.js +33 -0
- package/dist/NiceMultiColumnComboBox.doc-Ben0Q0J0.cjs +1 -0
- package/dist/NiceMultiColumnComboBox.doc-CK1DppZI.js +25 -0
- package/dist/NiceNotificationList.doc-CBWusjJX.cjs +7 -0
- package/dist/NiceNotificationList.doc-D7lQIxK0.js +31 -0
- package/dist/NiceOfflineSync.doc-BLQFyOf2.cjs +8 -0
- package/dist/NiceOfflineSync.doc-CKWFmR3b.js +32 -0
- package/dist/NicePagination-B4U0LwZy.js +171 -0
- package/dist/NicePagination-CGQf54a9.cjs +1 -0
- package/dist/NicePagination-Cqr3Pe_F.js +171 -0
- package/dist/NicePagination-DyWWdtb3.cjs +1 -0
- package/dist/NicePinCodeInput-C6zJxUVf.cjs +419 -0
- package/dist/NicePinCodeInput-DG_-eXXJ.cjs +419 -0
- package/dist/NicePinCodeInput-g-yUiepm.js +11875 -0
- package/dist/NicePinCodeInput-ltwzQf4r.js +12240 -0
- package/dist/NicePinCodeInput.css +1 -1
- package/dist/NicePreview.doc-Cl7_5MVR.js +30 -0
- package/dist/NicePreview.doc-atKISvmp.cjs +6 -0
- package/dist/NicePropertyGrid.doc-D6xljYe1.cjs +7 -0
- package/dist/NicePropertyGrid.doc-nX2etusg.js +31 -0
- package/dist/NiceRadio.doc-BTURz62X.js +27 -0
- package/dist/NiceRadio.doc-Cc8-1vbn.cjs +3 -0
- package/dist/NiceRecurrencePicker.doc-78HjPJm0.js +31 -0
- package/dist/NiceRecurrencePicker.doc-vC2YmCXF.cjs +7 -0
- package/dist/NiceRichTextEditor.doc-ClPCkzCd.cjs +6 -0
- package/dist/NiceRichTextEditor.doc-CtmV9UvX.js +30 -0
- package/dist/NiceSavedQueryPanel-BIXW0y1X.js +6455 -0
- package/dist/NiceSavedQueryPanel-CE3QR4RY.js +6446 -0
- package/dist/NiceSavedQueryPanel-CFHwMDIx.cjs +596 -0
- package/dist/NiceSavedQueryPanel-DSnj-3Es.cjs +596 -0
- package/dist/NiceSavedQueryPanel.css +1 -1
- package/dist/NiceSceneSelector.doc-CY2OmaWQ.cjs +7 -0
- package/dist/NiceSceneSelector.doc-UsVgDrw1.js +31 -0
- package/dist/NiceScrollArea.doc-C6Y-odUa.js +27 -0
- package/dist/NiceScrollArea.doc-LdxDrGDY.cjs +3 -0
- package/dist/NiceSheet.doc-CsIu3Y1G.cjs +11 -0
- package/dist/NiceSheet.doc-DLfSY-MA.js +35 -0
- package/dist/NiceSpeedDial.doc-CSWvNR9n.cjs +7 -0
- package/dist/NiceSpeedDial.doc-DqnpBcMy.js +31 -0
- package/dist/NiceSplitPane.doc-Ck_FvdL6.cjs +9 -0
- package/dist/NiceSplitPane.doc-Di68JZuy.js +33 -0
- package/dist/NiceSpotlight.doc-CM4PnsHE.js +34 -0
- package/dist/NiceSpotlight.doc-Dm_B-kUJ.cjs +10 -0
- package/dist/NiceStepNavigation.doc-DXraCs7t.js +31 -0
- package/dist/NiceStepNavigation.doc-TSy2dWmf.cjs +7 -0
- package/dist/NiceSteps.doc-C_mkhnez.cjs +10 -0
- package/dist/NiceSteps.doc-PW1zubHM.js +34 -0
- package/dist/NiceSwitch.doc-CLc7OxrE.cjs +6 -0
- package/dist/NiceSwitch.doc-dGMMY4es.js +30 -0
- package/dist/NiceTabs-32xjguOv.cjs +1 -0
- package/dist/NiceTabs-B9zxj6qd.js +1657 -0
- package/dist/NiceTabs-Blk0h4jY.js +1624 -0
- package/dist/NiceTabs-CNauJ4fu.cjs +1 -0
- package/dist/NiceTransition.doc-BmImVoB8.js +35 -0
- package/dist/NiceTransition.doc-GA1N91ON.cjs +11 -0
- package/dist/NiceTree.doc-D7SCXljC.js +40 -0
- package/dist/NiceTree.doc-DZx3hUwY.cjs +16 -0
- package/dist/NiceUnitConverter.doc-DmiyYOH_.cjs +10 -0
- package/dist/NiceUnitConverter.doc-YnzD3uKT.js +34 -0
- package/dist/NiceVirtualGrid.doc-DI2c9ckY.js +35 -0
- package/dist/NiceVirtualGrid.doc-rtwudxTG.cjs +11 -0
- package/dist/NiceVirtualList.doc-BpoTiXoV.js +31 -0
- package/dist/NiceVirtualList.doc-C8q-Hfl0.cjs +7 -0
- package/dist/NiceWindow-B4jA_-hi.js +1409 -0
- package/dist/NiceWindow-Bo_yCa1o.js +1418 -0
- package/dist/NiceWindow-DPzJxOfx.cjs +1 -0
- package/dist/NiceWindow-UpKllge7.cjs +1 -0
- package/dist/charts-0BEMJ0Xt.js +4657 -0
- package/dist/charts-C60va95_.js +4657 -0
- package/dist/charts-CbxmU6Z2.cjs +761 -0
- package/dist/charts-D_I1iwel.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.css +1 -1
- package/dist/charts.d.ts +19 -19
- package/dist/charts.mjs +1 -1
- package/dist/core-BIA5_uSq.js +22316 -0
- package/dist/core-Bcc4sz15.cjs +96 -0
- package/dist/core-DQYnL6uf.cjs +96 -0
- package/dist/core-Da1dGJN3.js +22401 -0
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +5 -0
- package/dist/data.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +44 -1
- package/dist/editors.mjs +3 -3
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +10 -10
- package/dist/feedback.mjs +2 -2
- package/dist/index-BjBsn6ad.cjs +5194 -0
- package/dist/index-C2Uoywo9.js +63852 -0
- package/dist/index-DCDfWfAt.js +64336 -0
- package/dist/index-DpiCo0_e.cjs +5194 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1798 -57
- package/dist/index.mjs +943 -895
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +4 -3
- package/dist/lazy.mjs +3 -3
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +15 -1
- package/dist/navigation.mjs +30 -30
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.mjs +53 -53
- package/dist/style.css +6 -6
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -6995,6 +6995,30 @@ export declare interface NiceAddressValue {
|
|
|
6995
6995
|
country?: string;
|
|
6996
6996
|
}
|
|
6997
6997
|
|
|
6998
|
+
/**
|
|
6999
|
+
* Fixes a child element to the viewport once the user scrolls past a
|
|
7000
|
+
* threshold. Implemented via a scroll listener (not `position: sticky`)
|
|
7001
|
+
* so we can fire `onChange` and use either an `offsetTop` OR an
|
|
7002
|
+
* `offsetBottom` anchor independently of the parent's overflow setup.
|
|
7003
|
+
*
|
|
7004
|
+
* To preserve the document's flow when affixed, we render a same-size
|
|
7005
|
+
* placeholder in the element's original position.
|
|
7006
|
+
*/
|
|
7007
|
+
export declare const NiceAffix: default_2.FC<NiceAffixProps>;
|
|
7008
|
+
|
|
7009
|
+
/** Props for {@link NiceAffix} — sticky-position wrapper with offset triggers. */
|
|
7010
|
+
export declare interface NiceAffixProps extends NiceStandardProps {
|
|
7011
|
+
children: default_2.ReactNode;
|
|
7012
|
+
/** Distance from the viewport top at which the element fixes. Either `offsetTop` OR `offsetBottom`. */
|
|
7013
|
+
offsetTop?: number;
|
|
7014
|
+
/** Distance from the viewport bottom at which the element fixes. */
|
|
7015
|
+
offsetBottom?: number;
|
|
7016
|
+
/** Scrollable container; defaults to `window`. */
|
|
7017
|
+
target?: () => HTMLElement | Window;
|
|
7018
|
+
/** Fires when the element transitions between affixed / un-affixed. */
|
|
7019
|
+
onChange?: (affixed: boolean) => void;
|
|
7020
|
+
}
|
|
7021
|
+
|
|
6998
7022
|
/** Supported aggregate functions for column footers. */
|
|
6999
7023
|
export declare type NiceAggregateType = 'sum' | 'avg' | 'count' | 'min' | 'max';
|
|
7000
7024
|
|
|
@@ -7005,7 +7029,7 @@ export { NiceAIProvider }
|
|
|
7005
7029
|
export declare const NiceAlert: default_2.FC<NiceAlertProps>;
|
|
7006
7030
|
|
|
7007
7031
|
/** Props for the {@link NiceAlert} component — a status message bar (info/success/warning/error). */
|
|
7008
|
-
export declare interface NiceAlertProps extends
|
|
7032
|
+
export declare interface NiceAlertProps extends NiceStandardProps {
|
|
7009
7033
|
/** Alert size. */
|
|
7010
7034
|
size?: NiceSize;
|
|
7011
7035
|
/** Visual variant determining color and icon. */
|
|
@@ -7099,6 +7123,40 @@ export declare interface NiceAnalyticsTrackerProps {
|
|
|
7099
7123
|
cookieless?: boolean;
|
|
7100
7124
|
}
|
|
7101
7125
|
|
|
7126
|
+
/**
|
|
7127
|
+
* Table-of-contents navigation. Each item points to an element by
|
|
7128
|
+
* `id`. Clicking scrolls to it; an `IntersectionObserver` highlights
|
|
7129
|
+
* the currently-visible heading as users scroll the page (scroll-spy).
|
|
7130
|
+
*
|
|
7131
|
+
* Affixing uses CSS `position: sticky` (no fixed positioning) so it
|
|
7132
|
+
* stays nicely inside whatever parent container it's dropped into.
|
|
7133
|
+
*/
|
|
7134
|
+
export declare const NiceAnchor: default_2.FC<NiceAnchorProps>;
|
|
7135
|
+
|
|
7136
|
+
/** Single entry in the {@link NiceAnchor} list. */
|
|
7137
|
+
export declare interface NiceAnchorItem {
|
|
7138
|
+
/** Element id to scroll to (without `#`). */
|
|
7139
|
+
href: string;
|
|
7140
|
+
/** Display label. */
|
|
7141
|
+
title: string;
|
|
7142
|
+
/** Nested anchor items for sub-headings. */
|
|
7143
|
+
children?: NiceAnchorItem[];
|
|
7144
|
+
}
|
|
7145
|
+
|
|
7146
|
+
/** Props for {@link NiceAnchor} — table-of-contents navigation list. */
|
|
7147
|
+
export declare interface NiceAnchorProps extends NiceStandardProps {
|
|
7148
|
+
/** Flat or nested list of headings. */
|
|
7149
|
+
items: NiceAnchorItem[];
|
|
7150
|
+
/** Render as `position: sticky` so the list stays on screen while scrolling. */
|
|
7151
|
+
affix?: boolean;
|
|
7152
|
+
/** Top offset (px) for `position: sticky` placement. */
|
|
7153
|
+
offsetTop?: number;
|
|
7154
|
+
/** Pixel offset applied to `scrollIntoView`-style jumps (compensates for fixed headers). */
|
|
7155
|
+
targetOffset?: number;
|
|
7156
|
+
/** Fires whenever the active item changes via scroll-spy. */
|
|
7157
|
+
onChange?: (href: string) => void;
|
|
7158
|
+
}
|
|
7159
|
+
|
|
7102
7160
|
export { NiceAnimationConfig }
|
|
7103
7161
|
|
|
7104
7162
|
export { NiceAnimationPreset }
|
|
@@ -7189,6 +7247,26 @@ export { NiceAriaProps }
|
|
|
7189
7247
|
|
|
7190
7248
|
export { NiceArrayDataSourceConfig }
|
|
7191
7249
|
|
|
7250
|
+
/**
|
|
7251
|
+
* Container that uses CSS `aspect-ratio` to keep its width/height
|
|
7252
|
+
* proportional. Child elements should be 100%-sized — `<img>` /
|
|
7253
|
+
* `<video>` / `<iframe>` work naturally, and any positioned element
|
|
7254
|
+
* with `inset: 0` will fill the box.
|
|
7255
|
+
*/
|
|
7256
|
+
export declare const NiceAspectRatio: default_2.FC<NiceAspectRatioProps>;
|
|
7257
|
+
|
|
7258
|
+
/** Props for {@link NiceAspectRatio} — maintains a width:height ratio while flexing horizontally. */
|
|
7259
|
+
export declare interface NiceAspectRatioProps extends NiceStandardProps {
|
|
7260
|
+
children: default_2.ReactNode;
|
|
7261
|
+
/**
|
|
7262
|
+
* Aspect ratio expressed as a single number (`16 / 9 = 1.777…`) or
|
|
7263
|
+
* a CSS shorthand string (`'16/9'`, `'4 / 3'`).
|
|
7264
|
+
*/
|
|
7265
|
+
ratio?: number | string;
|
|
7266
|
+
/** Optional cap on the rendered width. */
|
|
7267
|
+
maxWidth?: number | string;
|
|
7268
|
+
}
|
|
7269
|
+
|
|
7192
7270
|
export declare type NiceAuditAction = 'create' | 'update' | 'delete' | 'view' | 'export' | 'import' | 'login' | 'logout' | 'custom';
|
|
7193
7271
|
|
|
7194
7272
|
export declare interface NiceAuditEntry {
|
|
@@ -7408,7 +7486,7 @@ export declare const NiceAvatar: default_2.FC<NiceAvatarProps>;
|
|
|
7408
7486
|
export declare const NiceAvatarGroup: default_2.FC<NiceAvatarGroupProps>;
|
|
7409
7487
|
|
|
7410
7488
|
/** Props for the {@link NiceAvatarGroup} component — stacks multiple {@link NiceAvatar} elements with a "+N" overflow indicator. */
|
|
7411
|
-
export declare interface NiceAvatarGroupProps extends
|
|
7489
|
+
export declare interface NiceAvatarGroupProps extends NiceStandardProps {
|
|
7412
7490
|
/** Avatar group size. */
|
|
7413
7491
|
size?: NiceSize;
|
|
7414
7492
|
/** NiceAvatar elements to display. */
|
|
@@ -7418,7 +7496,7 @@ export declare interface NiceAvatarGroupProps extends NiceBaseProps {
|
|
|
7418
7496
|
}
|
|
7419
7497
|
|
|
7420
7498
|
/** Props for the {@link NiceAvatar} component — a user avatar with image, initials, or fallback. */
|
|
7421
|
-
export declare interface NiceAvatarProps extends
|
|
7499
|
+
export declare interface NiceAvatarProps extends NiceStandardProps {
|
|
7422
7500
|
/** Image URL. */
|
|
7423
7501
|
src?: string;
|
|
7424
7502
|
/** Alt text for the image. */
|
|
@@ -7433,6 +7511,31 @@ export declare interface NiceAvatarProps extends NiceBaseProps {
|
|
|
7433
7511
|
color?: string;
|
|
7434
7512
|
}
|
|
7435
7513
|
|
|
7514
|
+
/**
|
|
7515
|
+
* Floating "back to top" button. Listens to its target's scroll
|
|
7516
|
+
* position and reveals itself once the user has scrolled past
|
|
7517
|
+
* `visibilityHeight`. Click scrolls smoothly back to the top
|
|
7518
|
+
* with the configured `duration`.
|
|
7519
|
+
*/
|
|
7520
|
+
export declare const NiceBackTop: default_2.FC<NiceBackTopProps>;
|
|
7521
|
+
|
|
7522
|
+
/** Props for {@link NiceBackTop} — floating "back to top" button. */
|
|
7523
|
+
export declare interface NiceBackTopProps extends NiceStandardProps {
|
|
7524
|
+
/** Scroll distance (px) that must elapse before the button appears. */
|
|
7525
|
+
visibilityHeight?: number;
|
|
7526
|
+
/**
|
|
7527
|
+
* Function that returns the scrollable container. Defaults to
|
|
7528
|
+
* `window` (the document scroller). Use for scoped panes.
|
|
7529
|
+
*/
|
|
7530
|
+
target?: () => HTMLElement | Window;
|
|
7531
|
+
/** Animation duration in ms. Used by the easing tween. */
|
|
7532
|
+
duration?: number;
|
|
7533
|
+
/** Override the button's default ↑ glyph. */
|
|
7534
|
+
children?: default_2.ReactNode;
|
|
7535
|
+
/** Fires after the scroll-to-top finishes. */
|
|
7536
|
+
onScroll?: () => void;
|
|
7537
|
+
}
|
|
7538
|
+
|
|
7436
7539
|
export declare function NiceBackupDiffViewer({ diffs, title, defaultMode, defaultActions, className, style, }: NiceBackupDiffViewerProps): JSX_2.Element;
|
|
7437
7540
|
|
|
7438
7541
|
export declare interface NiceBackupDiffViewerProps {
|
|
@@ -7561,7 +7664,7 @@ export declare interface NiceBackupTagEditorProps {
|
|
|
7561
7664
|
export declare const NiceBadge: default_2.FC<NiceBadgeProps>;
|
|
7562
7665
|
|
|
7563
7666
|
/** Props for the {@link NiceBadge} component — a small status label or counter chip. */
|
|
7564
|
-
export declare interface NiceBadgeProps extends
|
|
7667
|
+
export declare interface NiceBadgeProps extends NiceStandardProps {
|
|
7565
7668
|
/** Badge content (text, number, etc.). */
|
|
7566
7669
|
children: default_2.ReactNode;
|
|
7567
7670
|
/** Visual variant controlling the colour scheme. */
|
|
@@ -7584,7 +7687,7 @@ export declare type NiceBarcodeFormat = 'CODE128' | 'CODE39' | 'EAN13' | 'EAN8'
|
|
|
7584
7687
|
export declare const NiceBarcodeGenerator: ForwardRefExoticComponent<NiceBarcodeGeneratorProps & RefAttributes<HTMLCanvasElement>>;
|
|
7585
7688
|
|
|
7586
7689
|
/** Props for the {@link NiceBarcodeGenerator} component — renders a barcode on a `<canvas>`. */
|
|
7587
|
-
export declare interface NiceBarcodeGeneratorProps extends
|
|
7690
|
+
export declare interface NiceBarcodeGeneratorProps extends NiceStandardProps {
|
|
7588
7691
|
/** Text value to encode. */
|
|
7589
7692
|
value: string;
|
|
7590
7693
|
/** Barcode symbology (default CODE128). */
|
|
@@ -7620,7 +7723,7 @@ declare interface NiceBarGaugeItem {
|
|
|
7620
7723
|
}
|
|
7621
7724
|
|
|
7622
7725
|
/** Props for the {@link NiceBarGauge} component — a circular segmented bar gauge. */
|
|
7623
|
-
export declare interface NiceBarGaugeProps extends
|
|
7726
|
+
export declare interface NiceBarGaugeProps extends NiceStandardProps {
|
|
7624
7727
|
/** Gauge items. */
|
|
7625
7728
|
items: NiceBarGaugeItem[];
|
|
7626
7729
|
/** Minimum scale value. */
|
|
@@ -7643,6 +7746,33 @@ export declare interface NiceBarGaugeProps extends NiceBaseProps {
|
|
|
7643
7746
|
|
|
7644
7747
|
export { NiceBaseProps }
|
|
7645
7748
|
|
|
7749
|
+
/**
|
|
7750
|
+
* Renders a semantic `<blockquote>` with optional citation + author
|
|
7751
|
+
* attribution. Three visual variants (`default`, `bordered`, `filled`)
|
|
7752
|
+
* map onto BEM modifier classes so consumers can re-theme via CSS
|
|
7753
|
+
* tokens without rewriting markup.
|
|
7754
|
+
*/
|
|
7755
|
+
export declare const NiceBlockquote: default_2.FC<NiceBlockquoteProps>;
|
|
7756
|
+
|
|
7757
|
+
/**
|
|
7758
|
+
* Props for {@link NiceBlockquote} — styled quote / pull-quote block.
|
|
7759
|
+
*
|
|
7760
|
+
* NOTE: We omit `NiceStandardProps.variant` because here `variant` is a local
|
|
7761
|
+
* visual style ('bordered' / 'filled' / 'default') rather than the design-system
|
|
7762
|
+
* `NiceVariant` (primary/secondary/…).
|
|
7763
|
+
*/
|
|
7764
|
+
export declare interface NiceBlockquoteProps extends Omit<NiceStandardProps, 'variant'> {
|
|
7765
|
+
children: default_2.ReactNode;
|
|
7766
|
+
/** Citation source URL (sets the native `cite` attribute on `<blockquote>`). */
|
|
7767
|
+
cite?: string;
|
|
7768
|
+
/** Display author/attribution line below the quote. */
|
|
7769
|
+
author?: string;
|
|
7770
|
+
/** Visual variant. */
|
|
7771
|
+
variant?: NiceBlockquoteVariant;
|
|
7772
|
+
}
|
|
7773
|
+
|
|
7774
|
+
export declare type NiceBlockquoteVariant = 'default' | 'bordered' | 'filled';
|
|
7775
|
+
|
|
7646
7776
|
export declare const NiceBlockUI: default_2.ForwardRefExoticComponent<NiceBlockUIProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
7647
7777
|
|
|
7648
7778
|
/** Props for the {@link NiceBlockUI} component — an overlay that blocks user interaction on its children. */
|
|
@@ -7787,7 +7917,7 @@ export declare const NiceBullet: default_2.FC<NiceBulletProps>;
|
|
|
7787
7917
|
declare type NiceBulletLabelPlacement = 'top' | 'left' | 'right' | 'bottom' | 'none';
|
|
7788
7918
|
|
|
7789
7919
|
/** Props for the {@link NiceBullet} component — a horizontal bullet chart comparing actual vs. target. */
|
|
7790
|
-
export declare interface NiceBulletProps extends
|
|
7920
|
+
export declare interface NiceBulletProps extends Omit<NiceStandardProps, 'size'> {
|
|
7791
7921
|
/** Actual value. */
|
|
7792
7922
|
value: number;
|
|
7793
7923
|
/** Target / goal value. */
|
|
@@ -7948,8 +8078,65 @@ export declare interface NiceCalendarProps extends NiceBaseProps, TracelessStora
|
|
|
7948
8078
|
|
|
7949
8079
|
export declare type NiceCalendarView = 'days' | 'months' | 'years' | 'decade';
|
|
7950
8080
|
|
|
8081
|
+
/**
|
|
8082
|
+
* Stationary callout block — like an `<Alert>` but without the
|
|
8083
|
+
* connotations of a dismissable system notification. Use to highlight
|
|
8084
|
+
* caveats inline within docs / forms / settings panes.
|
|
8085
|
+
*
|
|
8086
|
+
* `closable` callouts use local state so the component is usable
|
|
8087
|
+
* without a controlled-close wire-up. Use `onClose` for analytics
|
|
8088
|
+
* or to also remove the entry from a parent collection.
|
|
8089
|
+
*/
|
|
8090
|
+
export declare const NiceCallout: default_2.FC<NiceCalloutProps>;
|
|
8091
|
+
|
|
8092
|
+
/** Props for {@link NiceCallout} — non-interactive informational block. */
|
|
8093
|
+
export declare interface NiceCalloutProps extends NiceStandardProps {
|
|
8094
|
+
children: default_2.ReactNode;
|
|
8095
|
+
/** Semantic intent — drives colour + default glyph + ARIA role. */
|
|
8096
|
+
type?: NiceCalloutType;
|
|
8097
|
+
/** Optional heading rendered above the body. */
|
|
8098
|
+
title?: string;
|
|
8099
|
+
/** Override the default glyph for the chosen `type`. */
|
|
8100
|
+
icon?: default_2.ReactNode;
|
|
8101
|
+
/** Render an "x" button that dismisses the callout. */
|
|
8102
|
+
closable?: boolean;
|
|
8103
|
+
/** Fires when the user dismisses the callout. */
|
|
8104
|
+
onClose?: () => void;
|
|
8105
|
+
}
|
|
8106
|
+
|
|
8107
|
+
export declare type NiceCalloutType = 'info' | 'warning' | 'error' | 'success' | 'tip';
|
|
8108
|
+
|
|
7951
8109
|
export declare const NiceCard: default_2.FC<NiceCardProps>;
|
|
7952
8110
|
|
|
8111
|
+
/**
|
|
8112
|
+
* Card grid via native CSS Grid. When `columns` is a number we set
|
|
8113
|
+
* `grid-template-columns: repeat(N, 1fr)` once. When it's a
|
|
8114
|
+
* breakpoint map we emit a tiny scoped `<style>` with CSS variable
|
|
8115
|
+
* overrides per `@media (min-width: …)` so the layout reflows
|
|
8116
|
+
* without JS resize listeners.
|
|
8117
|
+
*/
|
|
8118
|
+
export declare const NiceCardGrid: default_2.FC<NiceCardGridProps>;
|
|
8119
|
+
|
|
8120
|
+
/** Responsive columns config — either a fixed number OR per-breakpoint. */
|
|
8121
|
+
export declare type NiceCardGridColumns = number | {
|
|
8122
|
+
xs?: number;
|
|
8123
|
+
sm?: number;
|
|
8124
|
+
md?: number;
|
|
8125
|
+
lg?: number;
|
|
8126
|
+
xl?: number;
|
|
8127
|
+
};
|
|
8128
|
+
|
|
8129
|
+
/** Props for {@link NiceCardGrid} — CSS-Grid card layout with responsive columns. */
|
|
8130
|
+
export declare interface NiceCardGridProps extends NiceStandardProps {
|
|
8131
|
+
children: default_2.ReactNode;
|
|
8132
|
+
/** Column count. Fixed number OR breakpoint map (`xs`/`sm`/`md`/`lg`/`xl`). */
|
|
8133
|
+
columns?: NiceCardGridColumns;
|
|
8134
|
+
/** Gap between cards. */
|
|
8135
|
+
gap?: number | string;
|
|
8136
|
+
/** Add a subtle elevation/transform on hover to each direct child. */
|
|
8137
|
+
hoverable?: boolean;
|
|
8138
|
+
}
|
|
8139
|
+
|
|
7953
8140
|
/** Props for the {@link NiceCard} component — a bordered content container with optional header and footer. */
|
|
7954
8141
|
export declare interface NiceCardProps extends NiceBaseProps {
|
|
7955
8142
|
/** Card size. */
|
|
@@ -8007,7 +8194,7 @@ export declare interface NiceCardViewProps<T extends NiceCardViewItem = NiceCard
|
|
|
8007
8194
|
export declare const NiceCarousel: default_2.ForwardRefExoticComponent<NiceCarouselProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
8008
8195
|
|
|
8009
8196
|
/** Props for the {@link NiceCarousel} component — a swipeable slide show with arrows, dots, and auto-play. */
|
|
8010
|
-
export declare interface NiceCarouselProps extends
|
|
8197
|
+
export declare interface NiceCarouselProps extends NiceStandardProps {
|
|
8011
8198
|
/** Array of items to display */
|
|
8012
8199
|
items: default_2.ReactNode[];
|
|
8013
8200
|
/** How many visible slides at a time (default: 1) */
|
|
@@ -8028,12 +8215,73 @@ export declare interface NiceCarouselProps extends NiceBaseProps {
|
|
|
8028
8215
|
size?: NiceSize;
|
|
8029
8216
|
}
|
|
8030
8217
|
|
|
8218
|
+
/** Hierarchical option in a {@link NiceCascadeSelect} tree. */
|
|
8219
|
+
export declare interface NiceCascadeOption {
|
|
8220
|
+
/** Identifier used in the selected-values path. */
|
|
8221
|
+
value: string;
|
|
8222
|
+
/** Display label. */
|
|
8223
|
+
label: default_2.ReactNode;
|
|
8224
|
+
/** Children — when present, this option is expandable. */
|
|
8225
|
+
children?: NiceCascadeOption[];
|
|
8226
|
+
/** Disable picking this option (children still selectable). */
|
|
8227
|
+
disabled?: boolean;
|
|
8228
|
+
}
|
|
8229
|
+
|
|
8230
|
+
/**
|
|
8231
|
+
* Multi-column cascading dropdown. Click an option in column N to
|
|
8232
|
+
* either commit the selection (leaf) or open its children in
|
|
8233
|
+
* column N+1. The selected path renders as `Label1 / Label2 / …`.
|
|
8234
|
+
*
|
|
8235
|
+
* Built without portals so it lives inside the document flow — fine
|
|
8236
|
+
* for sidebar pickers; consumers wrapping into modals should bring
|
|
8237
|
+
* their own positioning if needed.
|
|
8238
|
+
*/
|
|
8239
|
+
export declare const NiceCascadeSelect: default_2.FC<NiceCascadeSelectProps>;
|
|
8240
|
+
|
|
8241
|
+
/** Props for {@link NiceCascadeSelect} — multi-column cascading dropdown. */
|
|
8242
|
+
export declare interface NiceCascadeSelectProps extends NiceStandardProps {
|
|
8243
|
+
/** Top-level option tree. */
|
|
8244
|
+
options: NiceCascadeOption[];
|
|
8245
|
+
/** Controlled selection path (root → leaf). */
|
|
8246
|
+
value?: string[];
|
|
8247
|
+
/** Default selection path (uncontrolled). */
|
|
8248
|
+
defaultValue?: string[];
|
|
8249
|
+
/** Fires whenever the user selects a path. */
|
|
8250
|
+
onChange?: (values: string[]) => void;
|
|
8251
|
+
/** Placeholder when nothing is selected. Defaults to translated `'Select'`. */
|
|
8252
|
+
placeholder?: string;
|
|
8253
|
+
/** Disable the trigger. */
|
|
8254
|
+
disabled?: boolean;
|
|
8255
|
+
}
|
|
8256
|
+
|
|
8031
8257
|
export declare interface NiceCategoryPref {
|
|
8032
8258
|
categoryId: string;
|
|
8033
8259
|
channels: Record<string, boolean>;
|
|
8034
8260
|
priority: 'all' | 'high' | 'critical';
|
|
8035
8261
|
}
|
|
8036
8262
|
|
|
8263
|
+
/**
|
|
8264
|
+
* Centers its children horizontally and/or vertically using flexbox.
|
|
8265
|
+
*
|
|
8266
|
+
* Defaults to centering on both axes, which mirrors the common
|
|
8267
|
+
* `display: flex; place-items: center` pattern.
|
|
8268
|
+
*/
|
|
8269
|
+
export declare const NiceCenter: default_2.FC<NiceCenterProps>;
|
|
8270
|
+
|
|
8271
|
+
/** Props for {@link NiceCenter} — flex-based content centering wrapper. */
|
|
8272
|
+
export declare interface NiceCenterProps extends NiceStandardProps {
|
|
8273
|
+
/** Content to center. */
|
|
8274
|
+
children: default_2.ReactNode;
|
|
8275
|
+
/** Center horizontally. */
|
|
8276
|
+
horizontal?: boolean;
|
|
8277
|
+
/** Center vertically. */
|
|
8278
|
+
vertical?: boolean;
|
|
8279
|
+
/** Render as `inline-flex` instead of `flex` (wraps to content). */
|
|
8280
|
+
inline?: boolean;
|
|
8281
|
+
/** Minimum container height — useful when only `vertical` centering is meaningful. */
|
|
8282
|
+
minHeight?: number | string;
|
|
8283
|
+
}
|
|
8284
|
+
|
|
8037
8285
|
export declare interface NiceChangelogEntry {
|
|
8038
8286
|
version: string;
|
|
8039
8287
|
date?: string;
|
|
@@ -8094,7 +8342,7 @@ export declare interface NiceChartAnnotation {
|
|
|
8094
8342
|
* Props for the NiceChart component — an SVG-based bar, line, and area chart
|
|
8095
8343
|
* with stacking, zoom, crosshair, annotations, legend interaction and PNG export.
|
|
8096
8344
|
*/
|
|
8097
|
-
export declare interface NiceChartProps extends
|
|
8345
|
+
export declare interface NiceChartProps extends NiceStandardProps {
|
|
8098
8346
|
series: NiceChartSeries[];
|
|
8099
8347
|
categories?: string[];
|
|
8100
8348
|
width?: number;
|
|
@@ -8175,6 +8423,45 @@ export declare interface NiceChatProps extends NiceBaseProps {
|
|
|
8175
8423
|
|
|
8176
8424
|
export declare const NiceCheckbox: default_2.ForwardRefExoticComponent<NiceCheckboxProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
8177
8425
|
|
|
8426
|
+
/**
|
|
8427
|
+
* Renders a `role="group"` of native `<input type="checkbox">` for
|
|
8428
|
+
* multi-selection. Keeps controlled / uncontrolled state in sync via
|
|
8429
|
+
* the standard pattern.
|
|
8430
|
+
*/
|
|
8431
|
+
export declare function NiceCheckboxGroup<T = string>({ value, defaultValue, options, disabled, direction, name, onChange, className, style, }: NiceCheckboxGroupProps<T>): default_2.ReactElement;
|
|
8432
|
+
|
|
8433
|
+
export declare namespace NiceCheckboxGroup {
|
|
8434
|
+
var displayName: string;
|
|
8435
|
+
}
|
|
8436
|
+
|
|
8437
|
+
/** Single option in {@link NiceCheckboxGroup}. `value` is the form value persisted in the group state. */
|
|
8438
|
+
export declare interface NiceCheckboxGroupOption<T = string> {
|
|
8439
|
+
label: default_2.ReactNode;
|
|
8440
|
+
value: T;
|
|
8441
|
+
disabled?: boolean;
|
|
8442
|
+
}
|
|
8443
|
+
|
|
8444
|
+
/**
|
|
8445
|
+
* Props for {@link NiceCheckboxGroup} — a multi-select checkbox set
|
|
8446
|
+
* backed by an array of selected values.
|
|
8447
|
+
*/
|
|
8448
|
+
export declare interface NiceCheckboxGroupProps<T = string> extends NiceStandardProps {
|
|
8449
|
+
/** Controlled selected values. */
|
|
8450
|
+
value?: T[];
|
|
8451
|
+
/** Default selected values (uncontrolled). */
|
|
8452
|
+
defaultValue?: T[];
|
|
8453
|
+
/** Available options. */
|
|
8454
|
+
options: NiceCheckboxGroupOption<T>[];
|
|
8455
|
+
/** Disable every option. Per-option `disabled` still respected if false. */
|
|
8456
|
+
disabled?: boolean;
|
|
8457
|
+
/** Layout direction. */
|
|
8458
|
+
direction?: 'horizontal' | 'vertical';
|
|
8459
|
+
/** Optional accessible group name (sets `aria-label` on the wrapper). */
|
|
8460
|
+
name?: string;
|
|
8461
|
+
/** Fires whenever the selected set changes. */
|
|
8462
|
+
onChange?: (values: T[]) => void;
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8178
8465
|
/** Props for the {@link NiceCheckbox} component. */
|
|
8179
8466
|
export declare interface NiceCheckboxProps extends NiceBaseProps {
|
|
8180
8467
|
/** Checkbox label. */
|
|
@@ -8216,7 +8503,7 @@ export declare interface NiceCheckboxProps extends NiceBaseProps {
|
|
|
8216
8503
|
export declare const NiceCircularGauge: default_2.FC<NiceCircularGaugeProps>;
|
|
8217
8504
|
|
|
8218
8505
|
/** Props for the {@link NiceCircularGauge} component — an arc-based circular gauge with configurable ranges. */
|
|
8219
|
-
export declare interface NiceCircularGaugeProps extends
|
|
8506
|
+
export declare interface NiceCircularGaugeProps extends NiceStandardProps {
|
|
8220
8507
|
/** Current gauge value. */
|
|
8221
8508
|
value: number;
|
|
8222
8509
|
/** Minimum scale value. */
|
|
@@ -8249,6 +8536,27 @@ export declare interface NiceCircularGaugeProps extends NiceBaseProps {
|
|
|
8249
8536
|
|
|
8250
8537
|
export declare const NiceClassicShell: ForwardRefExoticComponent<NiceShellProps & RefAttributes<HTMLDivElement>>;
|
|
8251
8538
|
|
|
8539
|
+
/**
|
|
8540
|
+
* Component form of the `useClickOutside` hook — useful when you
|
|
8541
|
+
* already have a JSX tree and don't want to thread a ref through it.
|
|
8542
|
+
* Listens for `mousedown` by default plus `touchstart` for parity
|
|
8543
|
+
* with the hook.
|
|
8544
|
+
*/
|
|
8545
|
+
export declare const NiceClickOutside: default_2.FC<NiceClickOutsideProps>;
|
|
8546
|
+
|
|
8547
|
+
export declare type NiceClickOutsideEvent = 'mousedown' | 'mouseup' | 'click';
|
|
8548
|
+
|
|
8549
|
+
/** Props for {@link NiceClickOutside} — declarative outside-click detector. */
|
|
8550
|
+
export declare interface NiceClickOutsideProps extends NiceStandardProps {
|
|
8551
|
+
children: default_2.ReactNode;
|
|
8552
|
+
/** Fires when a click lands outside the wrapper. */
|
|
8553
|
+
onClickOutside: (event: MouseEvent | TouchEvent) => void;
|
|
8554
|
+
/** Pause detection (effectively no-op). */
|
|
8555
|
+
disabled?: boolean;
|
|
8556
|
+
/** Which pointer event to listen for. `mousedown` matches the common dropdown-close convention. */
|
|
8557
|
+
mouseEvent?: NiceClickOutsideEvent;
|
|
8558
|
+
}
|
|
8559
|
+
|
|
8252
8560
|
export declare interface NiceCodeCompletionItem {
|
|
8253
8561
|
/** Label displayed in completion list */
|
|
8254
8562
|
label: string;
|
|
@@ -8609,6 +8917,81 @@ export declare interface NiceCodeTemplateProps extends NiceBaseProps {
|
|
|
8609
8917
|
|
|
8610
8918
|
export declare type NiceCodeTheme = 'vs' | 'vs-dark' | 'hc-black' | 'hc-light' | 'auto';
|
|
8611
8919
|
|
|
8920
|
+
/**
|
|
8921
|
+
* Single-panel disclosure. Composes nicely with `NiceAccordion`-style
|
|
8922
|
+
* patterns where many `NiceCollapse` instances share a parent that
|
|
8923
|
+
* coordinates them.
|
|
8924
|
+
*/
|
|
8925
|
+
export declare const NiceCollapse: default_2.FC<NiceCollapseProps>;
|
|
8926
|
+
|
|
8927
|
+
/**
|
|
8928
|
+
* Props for {@link NiceCollapse} — disclosure widget.
|
|
8929
|
+
*
|
|
8930
|
+
* Supports both controlled (`expanded` + `onExpandedChange`) and
|
|
8931
|
+
* uncontrolled (`defaultExpanded`) usage.
|
|
8932
|
+
*/
|
|
8933
|
+
export declare interface NiceCollapseProps extends NiceStandardProps {
|
|
8934
|
+
/** Content shown when expanded. */
|
|
8935
|
+
children: default_2.ReactNode;
|
|
8936
|
+
/** Controlled expanded flag. When set, the component is fully driven by the parent. */
|
|
8937
|
+
expanded?: boolean;
|
|
8938
|
+
/** Default expanded state for uncontrolled usage. */
|
|
8939
|
+
defaultExpanded?: boolean;
|
|
8940
|
+
/** Fires on every toggle (controlled or uncontrolled). */
|
|
8941
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
8942
|
+
/**
|
|
8943
|
+
* Trigger element rendered above the panel. Receives accessibility
|
|
8944
|
+
* wiring via `aria-controls` / `aria-expanded` on the surrounding
|
|
8945
|
+
* button automatically.
|
|
8946
|
+
*/
|
|
8947
|
+
trigger: default_2.ReactNode;
|
|
8948
|
+
/** Animate height transitions. Default true. */
|
|
8949
|
+
animated?: boolean;
|
|
8950
|
+
/** Disable toggling (trigger button gets `disabled`). */
|
|
8951
|
+
disabled?: boolean;
|
|
8952
|
+
}
|
|
8953
|
+
|
|
8954
|
+
/**
|
|
8955
|
+
* Visual card with a built-in collapse affordance. Same disclosure
|
|
8956
|
+
* semantics as `NiceCollapse` (ARIA `aria-expanded` + `aria-controls`)
|
|
8957
|
+
* with a card-specific chrome.
|
|
8958
|
+
*
|
|
8959
|
+
* Toggle button label flows through `useNiceTranslation` so the
|
|
8960
|
+
* chevron's `aria-label` follows the picker.
|
|
8961
|
+
*/
|
|
8962
|
+
export declare const NiceCollapsibleCard: default_2.FC<NiceCollapsibleCardProps>;
|
|
8963
|
+
|
|
8964
|
+
/**
|
|
8965
|
+
* Props for {@link NiceCollapsibleCard} — card whose body collapses.
|
|
8966
|
+
*
|
|
8967
|
+
* `title` omitted from the standard prop bag because here it's a rich
|
|
8968
|
+
* ReactNode header (text/icon/etc.), not the tooltip-text string the
|
|
8969
|
+
* base prop describes.
|
|
8970
|
+
*/
|
|
8971
|
+
export declare interface NiceCollapsibleCardProps extends Omit<NiceStandardProps, 'title'> {
|
|
8972
|
+
children: default_2.ReactNode;
|
|
8973
|
+
/** Card title (rendered in the header). */
|
|
8974
|
+
title: default_2.ReactNode;
|
|
8975
|
+
/** Extra header content rendered between title and chevron. */
|
|
8976
|
+
extra?: default_2.ReactNode;
|
|
8977
|
+
/** Default collapsed state for uncontrolled usage. */
|
|
8978
|
+
defaultCollapsed?: boolean;
|
|
8979
|
+
/** Controlled collapsed flag. */
|
|
8980
|
+
collapsed?: boolean;
|
|
8981
|
+
/** Fires on every toggle. */
|
|
8982
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
8983
|
+
/**
|
|
8984
|
+
* Which surface acts as the toggle target:
|
|
8985
|
+
* - `'icon'` — only the chevron button toggles (clicking the title
|
|
8986
|
+
* text doesn't fire). Safer when the title is itself interactive
|
|
8987
|
+
* (link, ellipsis tooltip, …).
|
|
8988
|
+
* - `'header'` — the whole header row toggles. Friendlier on touch.
|
|
8989
|
+
*/
|
|
8990
|
+
collapseTrigger?: NiceCollapsibleCardTrigger;
|
|
8991
|
+
}
|
|
8992
|
+
|
|
8993
|
+
export declare type NiceCollapsibleCardTrigger = 'header' | 'icon';
|
|
8994
|
+
|
|
8612
8995
|
export declare const NiceColorPalette: default_2.ForwardRefExoticComponent<NiceColorPaletteProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
8613
8996
|
|
|
8614
8997
|
export declare interface NiceColorPaletteProps extends NiceBaseProps {
|
|
@@ -8652,6 +9035,29 @@ export declare interface NiceColorPaletteProps extends NiceBaseProps {
|
|
|
8652
9035
|
label?: string;
|
|
8653
9036
|
/** Disabled state */
|
|
8654
9037
|
disabled?: boolean;
|
|
9038
|
+
/**
|
|
9039
|
+
* Target number of colors in the generated palette. Overrides the natural
|
|
9040
|
+
* count of the active harmony mode (clamped between `minColors` and
|
|
9041
|
+
* `maxColors`). When omitted, the harmony's natural angle count is used.
|
|
9042
|
+
*/
|
|
9043
|
+
colorCount?: number;
|
|
9044
|
+
/**
|
|
9045
|
+
* Step size (HSV value delta) between adjacent colors in the `shade-chain`
|
|
9046
|
+
* mode. Default 0.12.
|
|
9047
|
+
*/
|
|
9048
|
+
shadeStep?: number;
|
|
9049
|
+
/** Called when the user changes the shade step via the in-component control. */
|
|
9050
|
+
onShadeStepChange?: (step: number) => void;
|
|
9051
|
+
/**
|
|
9052
|
+
* Custom harmony schemes. Appended to the built-in mode list in the
|
|
9053
|
+
* selector and persisted via `localStorage` when `persistCustomSchemes`
|
|
9054
|
+
* is true.
|
|
9055
|
+
*/
|
|
9056
|
+
customSchemes?: NiceCustomHarmonyScheme[];
|
|
9057
|
+
/** Called when the user edits the custom-schemes list. */
|
|
9058
|
+
onCustomSchemesChange?: (schemes: NiceCustomHarmonyScheme[]) => void;
|
|
9059
|
+
/** Persist custom schemes to `localStorage["nice-palette-custom-schemes"]`. Default true. */
|
|
9060
|
+
persistCustomSchemes?: boolean;
|
|
8655
9061
|
}
|
|
8656
9062
|
|
|
8657
9063
|
export declare const NiceColorPicker: default_2.ForwardRefExoticComponent<NiceColorPickerProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
@@ -8753,6 +9159,61 @@ export declare interface NiceCommand {
|
|
|
8753
9159
|
hidden?: boolean;
|
|
8754
9160
|
}
|
|
8755
9161
|
|
|
9162
|
+
/**
|
|
9163
|
+
* Command palette — searchable, keyboard-driven command launcher.
|
|
9164
|
+
*
|
|
9165
|
+
* Search filters on `label` + `keywords`; results group under their
|
|
9166
|
+
* `category`. Down/Up moves the highlight, Enter runs the
|
|
9167
|
+
* highlighted command, Escape closes (if controlled).
|
|
9168
|
+
*
|
|
9169
|
+
* `shortcut` installs a document-level keydown listener that opens
|
|
9170
|
+
* the palette when the combo is pressed (and we control the open
|
|
9171
|
+
* state via `onOpenChange`).
|
|
9172
|
+
*/
|
|
9173
|
+
export declare const NiceCommandBar: default_2.FC<NiceCommandBarProps>;
|
|
9174
|
+
|
|
9175
|
+
/** A single command in {@link NiceCommandBar}. */
|
|
9176
|
+
export declare interface NiceCommandBarCommand {
|
|
9177
|
+
/** Stable identifier (React key + dedupe). */
|
|
9178
|
+
id: string;
|
|
9179
|
+
/** Display label. */
|
|
9180
|
+
label: string;
|
|
9181
|
+
/** Optional category grouping (rendered as a section header). */
|
|
9182
|
+
category?: string;
|
|
9183
|
+
/** Optional secondary text rendered to the right (typically a hint). */
|
|
9184
|
+
hint?: string;
|
|
9185
|
+
/** Optional shortcut chip rendered on the right (e.g. `'Ctrl+K'`). */
|
|
9186
|
+
shortcut?: string;
|
|
9187
|
+
/** Optional glyph node rendered on the left. */
|
|
9188
|
+
icon?: default_2.ReactNode;
|
|
9189
|
+
/** When `true`, the command is rendered but not selectable. */
|
|
9190
|
+
disabled?: boolean;
|
|
9191
|
+
/** Handler invoked when the user picks this command. */
|
|
9192
|
+
onRun?: () => void;
|
|
9193
|
+
/** Free-form keywords used by the search filter in addition to `label`. */
|
|
9194
|
+
keywords?: string[];
|
|
9195
|
+
}
|
|
9196
|
+
|
|
9197
|
+
/** Props for {@link NiceCommandBar} — searchable command palette. */
|
|
9198
|
+
export declare interface NiceCommandBarProps extends NiceStandardProps {
|
|
9199
|
+
/** Command set. */
|
|
9200
|
+
commands: NiceCommandBarCommand[];
|
|
9201
|
+
/** Controlled visibility. When omitted the bar is always visible. */
|
|
9202
|
+
open?: boolean;
|
|
9203
|
+
/** Fires when open state changes (e.g. Escape closes). */
|
|
9204
|
+
onOpenChange?: (open: boolean) => void;
|
|
9205
|
+
/** Fires when a command is selected (also calls `command.onRun`). */
|
|
9206
|
+
onCommand?: (command: NiceCommandBarCommand) => void;
|
|
9207
|
+
/** Search placeholder. */
|
|
9208
|
+
placeholder?: string;
|
|
9209
|
+
/**
|
|
9210
|
+
* Optional keyboard shortcut that opens the palette. Pass any
|
|
9211
|
+
* combo like `'Ctrl+K'`, `'Meta+P'`. Order-insensitive (`'K+Ctrl'`
|
|
9212
|
+
* also works); modifiers: `Ctrl`/`Meta`/`Shift`/`Alt`.
|
|
9213
|
+
*/
|
|
9214
|
+
shortcut?: string;
|
|
9215
|
+
}
|
|
9216
|
+
|
|
8756
9217
|
export declare interface NiceCommandPaletteContextValue {
|
|
8757
9218
|
registerCommand: (command: NiceCommand) => void;
|
|
8758
9219
|
unregisterCommand: (id: string) => void;
|
|
@@ -9021,7 +9482,7 @@ declare interface NiceConditionalFormatRule {
|
|
|
9021
9482
|
export declare const NiceConfirmDialog: default_2.FC<NiceConfirmDialogProps>;
|
|
9022
9483
|
|
|
9023
9484
|
/** Props for the {@link NiceConfirmDialog} component — a confirmation modal with accept / reject buttons. */
|
|
9024
|
-
export declare interface NiceConfirmDialogProps extends
|
|
9485
|
+
export declare interface NiceConfirmDialogProps extends NiceStandardProps {
|
|
9025
9486
|
/** Size variant. */
|
|
9026
9487
|
size?: NiceSize;
|
|
9027
9488
|
/** Whether the dialog is visible. */
|
|
@@ -9257,6 +9718,32 @@ export declare interface NiceContactPickerProps extends NiceFormFieldProps {
|
|
|
9257
9718
|
maxSelections?: number;
|
|
9258
9719
|
}
|
|
9259
9720
|
|
|
9721
|
+
/**
|
|
9722
|
+
* Centred page-content wrapper with a width cap by tier. Use for
|
|
9723
|
+
* page outer chrome / hero sections / article bodies.
|
|
9724
|
+
*/
|
|
9725
|
+
export declare const NiceContainer: default_2.FC<NiceContainerProps>;
|
|
9726
|
+
|
|
9727
|
+
/**
|
|
9728
|
+
* Props for {@link NiceContainer} — page-content centering wrapper.
|
|
9729
|
+
*
|
|
9730
|
+
* `size` is omitted from the base bag because here it's a width
|
|
9731
|
+
* preset (`sm`…`xl`), not a density token.
|
|
9732
|
+
*/
|
|
9733
|
+
export declare interface NiceContainerProps extends Omit<NiceStandardProps, 'size'> {
|
|
9734
|
+
children: default_2.ReactNode;
|
|
9735
|
+
/** Max-width preset. `'full'` removes the cap entirely. */
|
|
9736
|
+
size?: NiceContainerSize;
|
|
9737
|
+
/** Horizontal padding (number → px, string → raw CSS). */
|
|
9738
|
+
padding?: number | string;
|
|
9739
|
+
/** Auto-center horizontally via `margin-inline: auto`. Default `true`. */
|
|
9740
|
+
centered?: boolean;
|
|
9741
|
+
/** Force the container to consume full width regardless of `size`. */
|
|
9742
|
+
fluid?: boolean;
|
|
9743
|
+
}
|
|
9744
|
+
|
|
9745
|
+
export declare type NiceContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
9746
|
+
|
|
9260
9747
|
export declare const NiceContextMenu: default_2.FC<NiceContextMenuProps>;
|
|
9261
9748
|
|
|
9262
9749
|
/** Props for the {@link NiceContextMenu} component — a right-click popup menu attached to a target element. */
|
|
@@ -9319,7 +9806,7 @@ export declare type NiceCookieCategory = 'necessary' | 'analytics' | 'marketing'
|
|
|
9319
9806
|
export declare const NiceCookieConsent: ForwardRefExoticComponent<NiceCookieConsentProps & RefAttributes<HTMLDivElement>>;
|
|
9320
9807
|
|
|
9321
9808
|
/** Props for the {@link NiceCookieConsent} component — a GDPR-style cookie consent banner with category toggles. */
|
|
9322
|
-
export declare interface NiceCookieConsentProps extends
|
|
9809
|
+
export declare interface NiceCookieConsentProps extends NiceStandardProps {
|
|
9323
9810
|
/** Show the banner when `true`. */
|
|
9324
9811
|
visible?: boolean;
|
|
9325
9812
|
/** Called when the user accepts all categories. */
|
|
@@ -9342,8 +9829,57 @@ export declare interface NiceCookieConsentProps extends NiceBaseProps {
|
|
|
9342
9829
|
showDetails?: boolean;
|
|
9343
9830
|
}
|
|
9344
9831
|
|
|
9832
|
+
/**
|
|
9833
|
+
* Single-click clipboard copy with timed "Copied!" feedback. Uses the
|
|
9834
|
+
* async Clipboard API where available and falls back to legacy
|
|
9835
|
+
* `document.execCommand('copy')` so it works in older / non-secure
|
|
9836
|
+
* contexts (test pages, Electron, etc.).
|
|
9837
|
+
*
|
|
9838
|
+
* The success label and default body text both run through
|
|
9839
|
+
* `useNiceTranslation`, so the button follows the global locale
|
|
9840
|
+
* without any prop wiring.
|
|
9841
|
+
*/
|
|
9842
|
+
export declare const NiceCopyButton: default_2.FC<NiceCopyButtonProps>;
|
|
9843
|
+
|
|
9844
|
+
/** Props for {@link NiceCopyButton} — click-to-clipboard with timed feedback. */
|
|
9845
|
+
export declare interface NiceCopyButtonProps extends Omit<NiceStandardProps, 'variant'> {
|
|
9846
|
+
/** Text payload that gets copied. */
|
|
9847
|
+
text: string;
|
|
9848
|
+
/** Optional button content. Defaults to "Copy" / a clipboard glyph based on variant. */
|
|
9849
|
+
children?: default_2.ReactNode;
|
|
9850
|
+
/** Fires on successful copy with the same text that landed on the clipboard. */
|
|
9851
|
+
onCopy?: (text: string) => void;
|
|
9852
|
+
/**
|
|
9853
|
+
* Label shown briefly after a successful copy. Defaults to the
|
|
9854
|
+
* translated `copy.success` ("Copied!") so it follows the global
|
|
9855
|
+
* language picker.
|
|
9856
|
+
*/
|
|
9857
|
+
successMessage?: string;
|
|
9858
|
+
/** How long the success state stays visible, in ms. */
|
|
9859
|
+
timeout?: number;
|
|
9860
|
+
/** Visual variant — `'icon'` renders a compact icon-only button. */
|
|
9861
|
+
variant?: NiceCopyButtonVariant;
|
|
9862
|
+
}
|
|
9863
|
+
|
|
9864
|
+
export declare type NiceCopyButtonVariant = 'button' | 'icon';
|
|
9865
|
+
|
|
9866
|
+
/**
|
|
9867
|
+
* Counts down to `targetDate`. Updates once per second via a single
|
|
9868
|
+
* shared interval. When time runs out the display freezes at zero
|
|
9869
|
+
* and `onComplete` fires exactly once.
|
|
9870
|
+
*
|
|
9871
|
+
* Labels for the `full` format go through `useNiceTranslation`
|
|
9872
|
+
* (`countdown.days` / `.hours` / `.minutes` / `.seconds`) so the
|
|
9873
|
+
* countdown follows the global language picker. The whole region
|
|
9874
|
+
* also carries `aria-live="polite"` so screen readers announce the
|
|
9875
|
+
* remaining time changes without interrupting.
|
|
9876
|
+
*/
|
|
9877
|
+
export declare const NiceCountdown: default_2.FC<NiceCountdownProps>;
|
|
9878
|
+
|
|
9879
|
+
export declare type NiceCountdownFormat = 'full' | 'compact' | 'minimal';
|
|
9880
|
+
|
|
9345
9881
|
/** Built-in countdown format presets. */
|
|
9346
|
-
declare type
|
|
9882
|
+
declare type NiceCountdownFormat_2 =
|
|
9347
9883
|
/** `1d 02:34:15` / `02:34:15` — leading day count + clock */
|
|
9348
9884
|
'verbose'
|
|
9349
9885
|
/** `1d 2h 34m 15s` — abbreviated units */
|
|
@@ -9355,6 +9891,35 @@ declare type NiceCountdownFormat =
|
|
|
9355
9891
|
/** `1 day, 2 hours, 34 minutes` — verbose words */
|
|
9356
9892
|
| 'words';
|
|
9357
9893
|
|
|
9894
|
+
/** Optional label overrides for the four time units. */
|
|
9895
|
+
export declare interface NiceCountdownLabels {
|
|
9896
|
+
days?: string;
|
|
9897
|
+
hours?: string;
|
|
9898
|
+
minutes?: string;
|
|
9899
|
+
seconds?: string;
|
|
9900
|
+
}
|
|
9901
|
+
|
|
9902
|
+
/** Props for {@link NiceCountdown} — live countdown to a target Date. */
|
|
9903
|
+
export declare interface NiceCountdownProps extends NiceStandardProps {
|
|
9904
|
+
/** Target instant. Component re-renders every second until this time. */
|
|
9905
|
+
targetDate: Date;
|
|
9906
|
+
/** Fires once when the countdown reaches zero or below. */
|
|
9907
|
+
onComplete?: () => void;
|
|
9908
|
+
/**
|
|
9909
|
+
* Display variant:
|
|
9910
|
+
* - `full` — label per unit (`2 days 3 hours …`)
|
|
9911
|
+
* - `compact` — digits + single-letter labels (`2d 3h 4m 5s`)
|
|
9912
|
+
* - `minimal` — `HH:MM:SS` style (drops days when not shown)
|
|
9913
|
+
*/
|
|
9914
|
+
format?: NiceCountdownFormat;
|
|
9915
|
+
showDays?: boolean;
|
|
9916
|
+
showHours?: boolean;
|
|
9917
|
+
showMinutes?: boolean;
|
|
9918
|
+
showSeconds?: boolean;
|
|
9919
|
+
/** Override labels for the `full` format. Falls back to translated values. */
|
|
9920
|
+
labels?: NiceCountdownLabels;
|
|
9921
|
+
}
|
|
9922
|
+
|
|
9358
9923
|
export declare const NiceCountryPicker: default_2.FC<NiceCountryPickerProps>;
|
|
9359
9924
|
|
|
9360
9925
|
export declare interface NiceCountryPickerProps extends NiceFormFieldProps, DualVisibilityProps {
|
|
@@ -9394,6 +9959,12 @@ export declare interface NiceCountryPickerProps extends NiceFormFieldProps, Dual
|
|
|
9394
9959
|
* false (except flag) and ignoring `controlWidth`. Default: false.
|
|
9395
9960
|
*/
|
|
9396
9961
|
compact?: boolean;
|
|
9962
|
+
/**
|
|
9963
|
+
* Visual variant. `'ghost'` removes border, background and the dropdown
|
|
9964
|
+
* arrow — only the flag/icon is shown. Designed for dense toolbars
|
|
9965
|
+
* (e.g. NiceTopNav narrow mode). Default: `'default'`.
|
|
9966
|
+
*/
|
|
9967
|
+
variant?: 'default' | 'ghost';
|
|
9397
9968
|
/**
|
|
9398
9969
|
* Dropdown horizontal alignment relative to the trigger. `'auto'` picks
|
|
9399
9970
|
* the side with more available viewport space (right-edge preferred).
|
|
@@ -9412,6 +9983,35 @@ export declare interface NiceCountryPickerProps extends NiceFormFieldProps, Dual
|
|
|
9412
9983
|
'data-testid'?: string;
|
|
9413
9984
|
}
|
|
9414
9985
|
|
|
9986
|
+
/**
|
|
9987
|
+
* Tween a number from `start` to `end` over `duration` seconds using
|
|
9988
|
+
* `requestAnimationFrame` and an ease-out cubic curve. The DOM is
|
|
9989
|
+
* updated via local state on each frame; live values use the original
|
|
9990
|
+
* `end` for `aria-label` so assistive tech reads the destination
|
|
9991
|
+
* value once instead of every intermediate tick.
|
|
9992
|
+
*/
|
|
9993
|
+
export declare const NiceCountUp: default_2.FC<NiceCountUpProps>;
|
|
9994
|
+
|
|
9995
|
+
/** Props for {@link NiceCountUp} — animated counter from `start` → `end`. */
|
|
9996
|
+
export declare interface NiceCountUpProps extends NiceStandardProps {
|
|
9997
|
+
/** End value (required). */
|
|
9998
|
+
end: number;
|
|
9999
|
+
/** Starting value. Defaults to 0. */
|
|
10000
|
+
start?: number;
|
|
10001
|
+
/** Animation duration in **seconds**. */
|
|
10002
|
+
duration?: number;
|
|
10003
|
+
/** Decimal places to render (toFixed). */
|
|
10004
|
+
decimals?: number;
|
|
10005
|
+
/** Prefix glyph / currency symbol. */
|
|
10006
|
+
prefix?: string;
|
|
10007
|
+
/** Suffix glyph (e.g. `'%'`). */
|
|
10008
|
+
suffix?: string;
|
|
10009
|
+
/** Thousands separator passed to `Number.toLocaleString` via locale formatting. */
|
|
10010
|
+
separator?: string;
|
|
10011
|
+
/** Fires once after the tween reaches `end`. */
|
|
10012
|
+
onComplete?: () => void;
|
|
10013
|
+
}
|
|
10014
|
+
|
|
9415
10015
|
export declare const NiceCropEditor: default_2.FC<NiceCropEditorProps>;
|
|
9416
10016
|
|
|
9417
10017
|
export declare interface NiceCropEditorProps {
|
|
@@ -9534,6 +10134,15 @@ export { NiceCursorPaginationConfig }
|
|
|
9534
10134
|
|
|
9535
10135
|
export { NiceCustomDataSourceHandlers }
|
|
9536
10136
|
|
|
10137
|
+
/** A user-defined harmony scheme (hue angles + optional lightness offsets). */
|
|
10138
|
+
declare interface NiceCustomHarmonyScheme {
|
|
10139
|
+
id: string;
|
|
10140
|
+
name: string;
|
|
10141
|
+
angles: number[];
|
|
10142
|
+
/** Optional per-color lightness deltas applied on top of preset/base V. */
|
|
10143
|
+
lightnessOffsets?: number[];
|
|
10144
|
+
}
|
|
10145
|
+
|
|
9537
10146
|
export declare const NiceDashboardLayout: default_2.ForwardRefExoticComponent<NiceDashboardLayoutProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
9538
10147
|
|
|
9539
10148
|
/** Props for the {@link NiceDashboardLayout} component — a CSS-grid dashboard with draggable, resizable panels. */
|
|
@@ -10267,12 +10876,14 @@ export declare interface NiceDisplayStylePickerProps extends NiceBaseProps {
|
|
|
10267
10876
|
label?: string;
|
|
10268
10877
|
/** Filter to show only specific styles. */
|
|
10269
10878
|
styles?: NiceDisplayStyle[];
|
|
10879
|
+
/** Compact mode — forces dropdown layout for tight spaces. */
|
|
10880
|
+
compact?: boolean;
|
|
10270
10881
|
}
|
|
10271
10882
|
|
|
10272
10883
|
export declare const NiceDivider: default_2.FC<NiceDividerProps>;
|
|
10273
10884
|
|
|
10274
10885
|
/** Props for the {@link NiceDivider} component — a horizontal/vertical separator line with optional text. */
|
|
10275
|
-
export declare interface NiceDividerProps extends
|
|
10886
|
+
export declare interface NiceDividerProps extends NiceStandardProps {
|
|
10276
10887
|
/** Divider size (controls thickness and spacing). */
|
|
10277
10888
|
size?: NiceSize;
|
|
10278
10889
|
/** Render the divider vertically. */
|
|
@@ -10637,7 +11248,7 @@ export declare interface NiceDraggableProps extends NiceBaseProps {
|
|
|
10637
11248
|
export declare const NiceDrawer: default_2.FC<NiceDrawerProps>;
|
|
10638
11249
|
|
|
10639
11250
|
/** Props for the {@link NiceDrawer} component — a slide-in panel from any edge. */
|
|
10640
|
-
export declare interface NiceDrawerProps extends
|
|
11251
|
+
export declare interface NiceDrawerProps extends NiceStandardProps {
|
|
10641
11252
|
/** Whether the drawer is open. */
|
|
10642
11253
|
open: boolean;
|
|
10643
11254
|
/** Called when the user requests to close. */
|
|
@@ -10658,7 +11269,7 @@ export declare interface NiceDrawerProps extends NiceBaseProps {
|
|
|
10658
11269
|
|
|
10659
11270
|
export declare const NiceDrillDownChart: default_2.ForwardRefExoticComponent<NiceDrillDownChartProps & default_2.RefAttributes<NiceDrillDownChartRef>>;
|
|
10660
11271
|
|
|
10661
|
-
export declare interface NiceDrillDownChartProps extends
|
|
11272
|
+
export declare interface NiceDrillDownChartProps extends NiceStandardProps {
|
|
10662
11273
|
/** Poziomy danych do drill-down */
|
|
10663
11274
|
levels: DrillDownLevel[];
|
|
10664
11275
|
/** Początkowy poziom */
|
|
@@ -10854,7 +11465,7 @@ export declare interface NiceEmojiPickerProps {
|
|
|
10854
11465
|
export declare const NiceEmpty: default_2.FC<NiceEmptyProps>;
|
|
10855
11466
|
|
|
10856
11467
|
/** Props for the {@link NiceEmpty} component — a placeholder shown when there is no data to display. */
|
|
10857
|
-
export declare interface NiceEmptyProps extends
|
|
11468
|
+
export declare interface NiceEmptyProps extends NiceStandardProps {
|
|
10858
11469
|
/** Component size. */
|
|
10859
11470
|
size?: NiceSize;
|
|
10860
11471
|
/** Custom icon element rendered above the title. */
|
|
@@ -11071,7 +11682,7 @@ declare interface NiceExportStyles {
|
|
|
11071
11682
|
|
|
11072
11683
|
export declare const NiceFAQ: default_2.FC<NiceFAQProps>;
|
|
11073
11684
|
|
|
11074
|
-
export declare interface NiceFAQProps extends
|
|
11685
|
+
export declare interface NiceFAQProps extends NiceStandardProps {
|
|
11075
11686
|
/** Size variant */
|
|
11076
11687
|
size?: NiceSize;
|
|
11077
11688
|
/** FAQ items */
|
|
@@ -11342,6 +11953,15 @@ export declare interface NiceFileManagerProps extends NiceBaseProps {
|
|
|
11342
11953
|
/** Active panel identifier for dual-pane {@link NiceFileManager}. */
|
|
11343
11954
|
export declare type NiceFilePanel = 'left' | 'right';
|
|
11344
11955
|
|
|
11956
|
+
/**
|
|
11957
|
+
* Visual wrapper around the native `<input type="file">`. The actual
|
|
11958
|
+
* `<input>` is rendered visually-hidden (still focusable + screen-
|
|
11959
|
+
* reader-readable) and a styled `<button>` proxies clicks via the
|
|
11960
|
+
* `useRef` handle — that way consumers can drop in any React node as
|
|
11961
|
+
* the trigger without losing OS native file dialog behaviour.
|
|
11962
|
+
*/
|
|
11963
|
+
export declare const NiceFilePicker: default_2.FC<NiceFilePickerProps>;
|
|
11964
|
+
|
|
11345
11965
|
export declare const NiceFilePickerButton: default_2.FC<NiceFilePickerButtonProps>;
|
|
11346
11966
|
|
|
11347
11967
|
export declare interface NiceFilePickerButtonProps extends NiceBaseProps {
|
|
@@ -11352,6 +11972,28 @@ export declare interface NiceFilePickerButtonProps extends NiceBaseProps {
|
|
|
11352
11972
|
children?: default_2.ReactNode;
|
|
11353
11973
|
}
|
|
11354
11974
|
|
|
11975
|
+
/** Props for {@link NiceFilePicker} — visually-customisable file input. */
|
|
11976
|
+
export declare interface NiceFilePickerProps extends NiceStandardProps {
|
|
11977
|
+
/** MIME types / extensions accepted (e.g. `"image/*,.pdf"`). */
|
|
11978
|
+
accept?: string;
|
|
11979
|
+
/** Allow selecting multiple files. */
|
|
11980
|
+
multiple?: boolean;
|
|
11981
|
+
/** Disable the picker. */
|
|
11982
|
+
disabled?: boolean;
|
|
11983
|
+
/**
|
|
11984
|
+
* Camera capture mode for mobile (`"user"` = front, `"environment"`
|
|
11985
|
+
* = rear). Ignored on desktop.
|
|
11986
|
+
*/
|
|
11987
|
+
capture?: 'user' | 'environment';
|
|
11988
|
+
/**
|
|
11989
|
+
* Custom trigger content. When omitted, a default labelled button
|
|
11990
|
+
* is rendered with the translated label.
|
|
11991
|
+
*/
|
|
11992
|
+
children?: default_2.ReactNode;
|
|
11993
|
+
/** Fires with the selected files. */
|
|
11994
|
+
onChange?: (files: FileList) => void;
|
|
11995
|
+
}
|
|
11996
|
+
|
|
11355
11997
|
/** Current sort state for the {@link NiceFileManager}. */
|
|
11356
11998
|
export declare interface NiceFileSort {
|
|
11357
11999
|
/** Sort field. */
|
|
@@ -11507,6 +12149,32 @@ export declare interface NiceFilterState {
|
|
|
11507
12149
|
[key: string]: unknown;
|
|
11508
12150
|
}
|
|
11509
12151
|
|
|
12152
|
+
/**
|
|
12153
|
+
* Direct flexbox wrapper. Use this when you need explicit control of
|
|
12154
|
+
* direction/wrap/justify/align — for the more opinionated "row OR
|
|
12155
|
+
* column with uniform gap" use case reach for {@link NiceStack}.
|
|
12156
|
+
*/
|
|
12157
|
+
export declare const NiceFlex: default_2.FC<NiceFlexProps>;
|
|
12158
|
+
|
|
12159
|
+
export declare type NiceFlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
12160
|
+
|
|
12161
|
+
/** Props for {@link NiceFlex} — thin flexbox container with sensible defaults. */
|
|
12162
|
+
export declare interface NiceFlexProps extends NiceStandardProps {
|
|
12163
|
+
children: default_2.ReactNode;
|
|
12164
|
+
direction?: NiceFlexDirection;
|
|
12165
|
+
wrap?: NiceFlexWrap;
|
|
12166
|
+
/** Any CSS `justify-content` value. */
|
|
12167
|
+
justify?: default_2.CSSProperties['justifyContent'];
|
|
12168
|
+
/** Any CSS `align-items` value. */
|
|
12169
|
+
align?: default_2.CSSProperties['alignItems'];
|
|
12170
|
+
/** Gap between flex items. Number → pixels, string → raw CSS value. */
|
|
12171
|
+
gap?: number | string;
|
|
12172
|
+
/** Render as `inline-flex` instead of `flex`. */
|
|
12173
|
+
inline?: boolean;
|
|
12174
|
+
}
|
|
12175
|
+
|
|
12176
|
+
export declare type NiceFlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
12177
|
+
|
|
11510
12178
|
export declare const NiceFloorPlanCanvas: default_2.FC<NiceFloorPlanCanvasProps>;
|
|
11511
12179
|
|
|
11512
12180
|
/**
|
|
@@ -11531,6 +12199,70 @@ export declare interface NiceFloorPlanCanvasProps extends NiceBaseProps {
|
|
|
11531
12199
|
animateStateChanges?: boolean;
|
|
11532
12200
|
}
|
|
11533
12201
|
|
|
12202
|
+
/**
|
|
12203
|
+
* Cycles Tab / Shift+Tab between the first and last focusable
|
|
12204
|
+
* descendants. Use inside modals, dialogs, drawers — anywhere
|
|
12205
|
+
* keyboard focus must not "leak" to the rest of the document.
|
|
12206
|
+
*/
|
|
12207
|
+
export declare const NiceFocusTrap: default_2.FC<NiceFocusTrapProps>;
|
|
12208
|
+
|
|
12209
|
+
/** Props for {@link NiceFocusTrap} — keep keyboard focus inside a container. */
|
|
12210
|
+
export declare interface NiceFocusTrapProps extends NiceStandardProps {
|
|
12211
|
+
children: default_2.ReactNode;
|
|
12212
|
+
/** When `false` the trap is dormant — children behave like a normal container. */
|
|
12213
|
+
active?: boolean;
|
|
12214
|
+
/**
|
|
12215
|
+
* Initial focus target. A ref points at a specific element; a CSS
|
|
12216
|
+
* selector (string) lets you pick declaratively (e.g. `'[autofocus]'`,
|
|
12217
|
+
* `'input'`).
|
|
12218
|
+
*/
|
|
12219
|
+
initialFocus?: default_2.RefObject<HTMLElement | null> | string;
|
|
12220
|
+
/** Restore focus to the previously-focused element when the trap deactivates. */
|
|
12221
|
+
returnFocus?: boolean;
|
|
12222
|
+
}
|
|
12223
|
+
|
|
12224
|
+
/**
|
|
12225
|
+
* Semantic `<footer>` with native `contentinfo` landmark. Link groups
|
|
12226
|
+
* render as `<nav>` lists for AT navigation; social icons get
|
|
12227
|
+
* explicit accessible labels (the `icon` glyph itself is decorative).
|
|
12228
|
+
*/
|
|
12229
|
+
export declare const NiceFooter: default_2.FC<NiceFooterProps>;
|
|
12230
|
+
|
|
12231
|
+
export declare interface NiceFooterLink {
|
|
12232
|
+
label: default_2.ReactNode;
|
|
12233
|
+
href: string;
|
|
12234
|
+
/** Add `target="_blank"` + `rel="noopener noreferrer"`. */
|
|
12235
|
+
external?: boolean;
|
|
12236
|
+
}
|
|
12237
|
+
|
|
12238
|
+
export declare interface NiceFooterLinkGroup {
|
|
12239
|
+
title: default_2.ReactNode;
|
|
12240
|
+
items: NiceFooterLink[];
|
|
12241
|
+
}
|
|
12242
|
+
|
|
12243
|
+
/** Props for {@link NiceFooter} — page footer with link groups, copyright, social. */
|
|
12244
|
+
export declare interface NiceFooterProps extends NiceStandardProps {
|
|
12245
|
+
/** Free-form content rendered above the link groups. */
|
|
12246
|
+
children?: default_2.ReactNode;
|
|
12247
|
+
/** Columns of related links. */
|
|
12248
|
+
links?: NiceFooterLinkGroup[];
|
|
12249
|
+
/** Copyright / legal line at the bottom. */
|
|
12250
|
+
copyright?: default_2.ReactNode;
|
|
12251
|
+
/** Social icons rendered next to the copyright. */
|
|
12252
|
+
social?: NiceFooterSocialLink[];
|
|
12253
|
+
/** When true, footer sticks to the bottom of the viewport (`position: sticky`). */
|
|
12254
|
+
sticky?: boolean;
|
|
12255
|
+
}
|
|
12256
|
+
|
|
12257
|
+
export declare interface NiceFooterSocialLink {
|
|
12258
|
+
/** Glyph / icon node. */
|
|
12259
|
+
icon: default_2.ReactNode;
|
|
12260
|
+
/** Destination URL. */
|
|
12261
|
+
href: string;
|
|
12262
|
+
/** Accessible label (e.g. `'Twitter'`). Required for a11y. */
|
|
12263
|
+
label: string;
|
|
12264
|
+
}
|
|
12265
|
+
|
|
11534
12266
|
/**
|
|
11535
12267
|
* NiceForecastChart — Time series chart with forecast and confidence intervals.
|
|
11536
12268
|
*
|
|
@@ -11564,7 +12296,7 @@ export declare const NiceForecastChart: default_2.ForwardRefExoticComponent<Nice
|
|
|
11564
12296
|
/**
|
|
11565
12297
|
* Props for NiceForecastChart component.
|
|
11566
12298
|
*/
|
|
11567
|
-
export declare interface NiceForecastChartProps extends
|
|
12299
|
+
export declare interface NiceForecastChartProps extends NiceStandardProps {
|
|
11568
12300
|
/** Scenarios to display */
|
|
11569
12301
|
scenarios?: ForecastScenario[];
|
|
11570
12302
|
/** Convenience flat data series — wrapped into a single scenario when `scenarios` is omitted. */
|
|
@@ -11749,7 +12481,7 @@ export declare interface NiceFunnelItem {
|
|
|
11749
12481
|
}
|
|
11750
12482
|
|
|
11751
12483
|
/** Props for the {@link NiceFunnel} component — an SVG funnel / pyramid chart. */
|
|
11752
|
-
export declare interface NiceFunnelProps extends
|
|
12484
|
+
export declare interface NiceFunnelProps extends NiceStandardProps {
|
|
11753
12485
|
/** Funnel stage data. */
|
|
11754
12486
|
data: NiceFunnelItem[];
|
|
11755
12487
|
/** SVG width in px. */
|
|
@@ -11781,7 +12513,7 @@ export declare interface NiceGalleryItem {
|
|
|
11781
12513
|
}
|
|
11782
12514
|
|
|
11783
12515
|
/** Props for the {@link NiceGallery} component — an image gallery with thumbnails, autoplay, and lightbox navigation. */
|
|
11784
|
-
export declare interface NiceGalleryProps extends
|
|
12516
|
+
export declare interface NiceGalleryProps extends NiceStandardProps {
|
|
11785
12517
|
/** Gallery images. */
|
|
11786
12518
|
items: NiceGalleryItem[];
|
|
11787
12519
|
/** Currently selected image index. */
|
|
@@ -12123,7 +12855,39 @@ export declare interface NiceGradientValue {
|
|
|
12123
12855
|
|
|
12124
12856
|
export { NiceGraphQLConfig }
|
|
12125
12857
|
|
|
12126
|
-
export declare type NiceHarmonyMode = 'monochromatic' | 'complementary' | 'split-complementary' | 'analogous' | 'triadic' | 'tetradic' | 'square' | 'custom';
|
|
12858
|
+
export declare type NiceHarmonyMode = 'monochromatic' | 'complementary' | 'split-complementary' | 'analogous' | 'triadic' | 'tetradic' | 'square' | 'shade-chain' | 'custom';
|
|
12859
|
+
|
|
12860
|
+
/**
|
|
12861
|
+
* Semantic heading with decoupled visual scale. Renders the correct
|
|
12862
|
+
* native `<h1>`…`<h6>` for screen readers and outline tools, while
|
|
12863
|
+
* letting designers pick any visual size independently.
|
|
12864
|
+
*/
|
|
12865
|
+
export declare const NiceHeading: default_2.FC<NiceHeadingProps>;
|
|
12866
|
+
|
|
12867
|
+
export declare type NiceHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
12868
|
+
|
|
12869
|
+
/**
|
|
12870
|
+
* Props for {@link NiceHeading}.
|
|
12871
|
+
*
|
|
12872
|
+
* `size` is omitted from the standard prop bag because we use a wider
|
|
12873
|
+
* scale (`xs`…`3xl`) than `NiceSize`, and the meaning here is
|
|
12874
|
+
* "typographic scale", not "density".
|
|
12875
|
+
*/
|
|
12876
|
+
export declare interface NiceHeadingProps extends Omit<NiceStandardProps, 'size'> {
|
|
12877
|
+
children: default_2.ReactNode;
|
|
12878
|
+
/** Semantic heading level — renders `h1`…`h6`. Required for accessibility. */
|
|
12879
|
+
level: NiceHeadingLevel;
|
|
12880
|
+
/** Visual size scale. Decouples styling from semantic level (use this to render an `h1` that looks like an `h3`). */
|
|
12881
|
+
size?: NiceHeadingSize;
|
|
12882
|
+
/** Font weight. */
|
|
12883
|
+
weight?: NiceHeadingWeight;
|
|
12884
|
+
/** Single-line truncate overflow with ellipsis. */
|
|
12885
|
+
truncate?: boolean;
|
|
12886
|
+
}
|
|
12887
|
+
|
|
12888
|
+
export declare type NiceHeadingSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
12889
|
+
|
|
12890
|
+
export declare type NiceHeadingWeight = 'normal' | 'medium' | 'semibold' | 'bold';
|
|
12127
12891
|
|
|
12128
12892
|
/** Single health check finding. */
|
|
12129
12893
|
export declare interface NiceHealthFinding {
|
|
@@ -12150,7 +12914,7 @@ export declare interface NiceHealthReport {
|
|
|
12150
12914
|
export declare const NiceHeatMap: default_2.ForwardRefExoticComponent<NiceHeatMapProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
12151
12915
|
|
|
12152
12916
|
/** Props for the {@link NiceHeatMap} component — a 2D color-intensity grid with optional cell click. */
|
|
12153
|
-
export declare interface NiceHeatMapProps extends
|
|
12917
|
+
export declare interface NiceHeatMapProps extends NiceStandardProps {
|
|
12154
12918
|
/** 2D data matrix (rows × cols). */
|
|
12155
12919
|
data: number[][];
|
|
12156
12920
|
/** Column header labels. */
|
|
@@ -12234,6 +12998,34 @@ export { NiceHelpProvider }
|
|
|
12234
12998
|
|
|
12235
12999
|
export { NiceHelpProviderProps }
|
|
12236
13000
|
|
|
13001
|
+
/**
|
|
13002
|
+
* Renders `text` with every occurrence of `query` (or any of the
|
|
13003
|
+
* queries when `query` is an array) wrapped in `<mark>` (or a custom
|
|
13004
|
+
* tag). Pure render, no DOM mutation — safe to use in lists / virtual
|
|
13005
|
+
* scrollers.
|
|
13006
|
+
*/
|
|
13007
|
+
export declare const NiceHighlight: default_2.FC<NiceHighlightProps>;
|
|
13008
|
+
|
|
13009
|
+
/** Props for {@link NiceHighlight} — wraps query matches inside a body of text. */
|
|
13010
|
+
export declare interface NiceHighlightProps extends NiceStandardProps {
|
|
13011
|
+
/** Source text. Non-string children are not supported by design; pass a string. */
|
|
13012
|
+
text: string;
|
|
13013
|
+
/**
|
|
13014
|
+
* Query (or queries) to highlight. Empty / whitespace-only queries
|
|
13015
|
+
* are silently ignored so callers don't have to gate the prop.
|
|
13016
|
+
*/
|
|
13017
|
+
query: string | string[];
|
|
13018
|
+
/**
|
|
13019
|
+
* Tag used to wrap each match. Defaults to `<mark>` (semantic
|
|
13020
|
+
* highlight). Pass `'span'` for visual-only highlighting.
|
|
13021
|
+
*/
|
|
13022
|
+
highlightTag?: default_2.ElementType;
|
|
13023
|
+
/** Extra className applied to every highlight wrapper. */
|
|
13024
|
+
highlightClassName?: string;
|
|
13025
|
+
/** When `true`, matches respect letter case (default: case-insensitive). */
|
|
13026
|
+
caseSensitive?: boolean;
|
|
13027
|
+
}
|
|
13028
|
+
|
|
12237
13029
|
/** Configuration for the hot-swap manager. */
|
|
12238
13030
|
export declare interface NiceHotSwapConfig {
|
|
12239
13031
|
/** Module import resolver. */
|
|
@@ -12507,7 +13299,7 @@ export declare type NiceImageEditorTool = 'crop' | 'rotate' | 'flip' | 'brightne
|
|
|
12507
13299
|
export declare const NiceImageViewer: default_2.ForwardRefExoticComponent<NiceImageViewerProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
12508
13300
|
|
|
12509
13301
|
/** Props for the {@link NiceImageViewer} component — an image with lightbox preview, zoom, pan, and rotation. */
|
|
12510
|
-
export declare interface NiceImageViewerProps extends
|
|
13302
|
+
export declare interface NiceImageViewerProps extends NiceStandardProps {
|
|
12511
13303
|
/** Image source URL. */
|
|
12512
13304
|
src: string;
|
|
12513
13305
|
/** Alt text. */
|
|
@@ -12952,6 +13744,12 @@ export declare interface NiceLanguagePickerProps extends NiceFormFieldProps, Dua
|
|
|
12952
13744
|
* dropdown alignment. Default: false.
|
|
12953
13745
|
*/
|
|
12954
13746
|
compact?: boolean;
|
|
13747
|
+
/**
|
|
13748
|
+
* Visual variant. `'ghost'` removes border, background and the dropdown
|
|
13749
|
+
* arrow — only the flag is shown. Designed for dense toolbars
|
|
13750
|
+
* (e.g. NiceTopNav narrow mode). Default: `'default'`.
|
|
13751
|
+
*/
|
|
13752
|
+
variant?: 'default' | 'ghost';
|
|
12955
13753
|
/**
|
|
12956
13754
|
* Dropdown horizontal alignment relative to trigger. `'auto'` picks the
|
|
12957
13755
|
* side with more available viewport space. Default: `'auto'` in compact
|
|
@@ -12972,6 +13770,38 @@ export declare interface NiceLanguagePickerProps extends NiceFormFieldProps, Dua
|
|
|
12972
13770
|
'data-testid'?: string;
|
|
12973
13771
|
}
|
|
12974
13772
|
|
|
13773
|
+
/**
|
|
13774
|
+
* App-shell layout with native landmark elements. Renders as:
|
|
13775
|
+
*
|
|
13776
|
+
* <header> ← if `header`
|
|
13777
|
+
* <div>
|
|
13778
|
+
* <aside> ← if `sider`
|
|
13779
|
+
* <main> ← always
|
|
13780
|
+
* </div>
|
|
13781
|
+
* <footer> ← if `footer`
|
|
13782
|
+
*
|
|
13783
|
+
* Each slot maps to a native HTML5 landmark so the DOM is correct
|
|
13784
|
+
* for accessibility tools without any extra ARIA roles.
|
|
13785
|
+
*/
|
|
13786
|
+
export declare const NiceLayout: default_2.FC<NiceLayoutProps>;
|
|
13787
|
+
|
|
13788
|
+
/** Props for {@link NiceLayout} — app shell: header / sider / main / footer. */
|
|
13789
|
+
export declare interface NiceLayoutProps extends NiceStandardProps {
|
|
13790
|
+
/** Main content (rendered inside `<main>`). */
|
|
13791
|
+
children: default_2.ReactNode;
|
|
13792
|
+
/** Top header (rendered inside `<header>`). */
|
|
13793
|
+
header?: default_2.ReactNode;
|
|
13794
|
+
/** Bottom footer (rendered inside `<footer>`). */
|
|
13795
|
+
footer?: default_2.ReactNode;
|
|
13796
|
+
/**
|
|
13797
|
+
* Side navigation (rendered inside `<aside>`). Defaults to the
|
|
13798
|
+
* inline-start side of the viewport in LTR contexts.
|
|
13799
|
+
*/
|
|
13800
|
+
sider?: default_2.ReactNode;
|
|
13801
|
+
/** Place the sider on the inline-end side instead of start. */
|
|
13802
|
+
siderPlacement?: 'start' | 'end';
|
|
13803
|
+
}
|
|
13804
|
+
|
|
12975
13805
|
/**
|
|
12976
13806
|
* {@link NiceLeaderboard} — Ranked list of players/entities with scores, deltas, avatars, and stat columns.
|
|
12977
13807
|
*/
|
|
@@ -13008,10 +13838,56 @@ export declare interface NiceLeaderboardProps {
|
|
|
13008
13838
|
id?: string;
|
|
13009
13839
|
}
|
|
13010
13840
|
|
|
13841
|
+
/**
|
|
13842
|
+
* Modal image viewer. Renders a full-screen overlay with prev/next
|
|
13843
|
+
* navigation, optional zoom + download buttons, and a counter.
|
|
13844
|
+
* Keyboard:
|
|
13845
|
+
* - Left / Right — previous / next image
|
|
13846
|
+
* - Escape — close
|
|
13847
|
+
* - `+` / `-` — zoom in / out (when `zoom` is enabled)
|
|
13848
|
+
*
|
|
13849
|
+
* All toolbar button labels go through `useNiceTranslation` so the
|
|
13850
|
+
* viewer follows the global picker.
|
|
13851
|
+
*/
|
|
13852
|
+
export declare const NiceLightbox: default_2.FC<NiceLightboxProps>;
|
|
13853
|
+
|
|
13854
|
+
export declare interface NiceLightboxImage {
|
|
13855
|
+
/** Image source URL. */
|
|
13856
|
+
src: string;
|
|
13857
|
+
/** Alt text — required for accessibility. */
|
|
13858
|
+
alt: string;
|
|
13859
|
+
/** Optional caption rendered below the image. */
|
|
13860
|
+
caption?: default_2.ReactNode;
|
|
13861
|
+
/** Optional full-resolution download URL (defaults to `src`). */
|
|
13862
|
+
downloadUrl?: string;
|
|
13863
|
+
}
|
|
13864
|
+
|
|
13865
|
+
/** Props for {@link NiceLightbox} — full-screen image viewer. */
|
|
13866
|
+
export declare interface NiceLightboxProps extends NiceStandardProps {
|
|
13867
|
+
/** Controlled visibility. */
|
|
13868
|
+
open: boolean;
|
|
13869
|
+
/** Image gallery to navigate between. */
|
|
13870
|
+
images: NiceLightboxImage[];
|
|
13871
|
+
/** Currently shown image (controlled). */
|
|
13872
|
+
index?: number;
|
|
13873
|
+
/** Default index when the viewer first opens (uncontrolled). */
|
|
13874
|
+
defaultIndex?: number;
|
|
13875
|
+
/** Fires when the user navigates between images. */
|
|
13876
|
+
onIndexChange?: (index: number) => void;
|
|
13877
|
+
/** Fires when the user closes the viewer (Escape, backdrop, X button). */
|
|
13878
|
+
onClose: () => void;
|
|
13879
|
+
/** Enable scroll-wheel + button zoom. */
|
|
13880
|
+
zoom?: boolean;
|
|
13881
|
+
/** Show a download button in the toolbar. */
|
|
13882
|
+
download?: boolean;
|
|
13883
|
+
/** Render `N / M` counter in the toolbar. */
|
|
13884
|
+
counter?: boolean;
|
|
13885
|
+
}
|
|
13886
|
+
|
|
13011
13887
|
export declare const NiceLinearGauge: default_2.FC<NiceLinearGaugeProps>;
|
|
13012
13888
|
|
|
13013
13889
|
/** Props for the {@link NiceLinearGauge} component — a horizontal or vertical bar gauge with ticks and colored ranges. */
|
|
13014
|
-
export declare interface NiceLinearGaugeProps extends
|
|
13890
|
+
export declare interface NiceLinearGaugeProps extends NiceStandardProps {
|
|
13015
13891
|
/** Current gauge value. */
|
|
13016
13892
|
value: number;
|
|
13017
13893
|
/** Minimum scale value. */
|
|
@@ -13042,6 +13918,41 @@ export declare interface NiceLinearGaugeProps extends NiceBaseProps {
|
|
|
13042
13918
|
tickCount?: number;
|
|
13043
13919
|
}
|
|
13044
13920
|
|
|
13921
|
+
/**
|
|
13922
|
+
* Styled `<a>` with safe defaults — when `external` is set we always
|
|
13923
|
+
* apply `rel="noopener noreferrer"` so that opened tabs cannot
|
|
13924
|
+
* window.opener-back-reference the parent. Authors can still override
|
|
13925
|
+
* `rel`/`target` for cases where that's intentional.
|
|
13926
|
+
*/
|
|
13927
|
+
export declare const NiceLink: default_2.FC<NiceLinkProps>;
|
|
13928
|
+
|
|
13929
|
+
/** Props for {@link NiceLink} — styled anchor with safe defaults for external targets. */
|
|
13930
|
+
export declare interface NiceLinkProps extends Omit<NiceStandardProps, 'variant'> {
|
|
13931
|
+
children: default_2.ReactNode;
|
|
13932
|
+
/** Target URL. */
|
|
13933
|
+
href: string;
|
|
13934
|
+
/**
|
|
13935
|
+
* Treat as an external link — adds `target="_blank"` plus
|
|
13936
|
+
* `rel="noopener noreferrer"` automatically. Override either by
|
|
13937
|
+
* passing your own `target` / `rel` explicitly.
|
|
13938
|
+
*/
|
|
13939
|
+
external?: boolean;
|
|
13940
|
+
/** Visual variant. */
|
|
13941
|
+
variant?: NiceLinkVariant;
|
|
13942
|
+
/** Underline behaviour. */
|
|
13943
|
+
underline?: NiceLinkUnderline;
|
|
13944
|
+
/** Click handler (use for analytics; the native anchor still navigates). */
|
|
13945
|
+
onClick?: default_2.MouseEventHandler<HTMLAnchorElement>;
|
|
13946
|
+
/** Override the auto-derived `target`. */
|
|
13947
|
+
target?: string;
|
|
13948
|
+
/** Override the auto-derived `rel`. */
|
|
13949
|
+
rel?: string;
|
|
13950
|
+
}
|
|
13951
|
+
|
|
13952
|
+
export declare type NiceLinkUnderline = 'always' | 'hover' | 'none';
|
|
13953
|
+
|
|
13954
|
+
export declare type NiceLinkVariant = 'default' | 'subtle' | 'muted';
|
|
13955
|
+
|
|
13045
13956
|
export declare const NiceList: default_2.FC<NiceListProps>;
|
|
13046
13957
|
|
|
13047
13958
|
/** An item in the {@link NiceList} component. */
|
|
@@ -13108,7 +14019,7 @@ export declare interface NiceListProps extends NiceBaseProps {
|
|
|
13108
14019
|
export declare const NiceLiveChart: default_2.ForwardRefExoticComponent<NiceLiveChartProps & default_2.RefAttributes<NiceLiveChartRef>>;
|
|
13109
14020
|
|
|
13110
14021
|
/** Props for NiceLiveChart component. */
|
|
13111
|
-
export declare interface NiceLiveChartProps extends
|
|
14022
|
+
export declare interface NiceLiveChartProps extends NiceStandardProps {
|
|
13112
14023
|
/** Series configuration. Each series receives its own data stream. */
|
|
13113
14024
|
series: NiceLiveChartSeriesConfig[];
|
|
13114
14025
|
/** Maximum number of data points to keep per series. Default: 100. */
|
|
@@ -13279,6 +14190,32 @@ export declare interface NiceLiveDataGridRef<T extends LiveGridRow = LiveGridRow
|
|
|
13279
14190
|
getConnectionStatus: () => ConnectionStatus;
|
|
13280
14191
|
}
|
|
13281
14192
|
|
|
14193
|
+
/**
|
|
14194
|
+
* Announces dynamic updates to assistive technology. Wrap any region
|
|
14195
|
+
* whose content changes outside a normal user action — search-result
|
|
14196
|
+
* count, form save status, async loading messages — and AT will
|
|
14197
|
+
* speak the new content according to `politeness`.
|
|
14198
|
+
*
|
|
14199
|
+
* Defaults to visually-hidden so consumers don't need to think about
|
|
14200
|
+
* presentation when they just want the announcement.
|
|
14201
|
+
*/
|
|
14202
|
+
export declare const NiceLiveRegion: default_2.FC<NiceLiveRegionProps>;
|
|
14203
|
+
|
|
14204
|
+
export declare type NiceLiveRegionPoliteness = 'polite' | 'assertive' | 'off';
|
|
14205
|
+
|
|
14206
|
+
/** Props for {@link NiceLiveRegion} — visually-hidden ARIA live region. */
|
|
14207
|
+
export declare interface NiceLiveRegionProps extends NiceStandardProps {
|
|
14208
|
+
children: default_2.ReactNode;
|
|
14209
|
+
/** Politeness level — `polite` waits for idle, `assertive` interrupts. */
|
|
14210
|
+
politeness?: NiceLiveRegionPoliteness;
|
|
14211
|
+
/** When `true`, AT reads the whole region after a change; otherwise only the diff. */
|
|
14212
|
+
atomic?: boolean;
|
|
14213
|
+
/** `aria-relevant` value — space-separated tokens (`'additions text'` etc.). */
|
|
14214
|
+
relevant?: string;
|
|
14215
|
+
/** Render visibly (skip the visually-hidden CSS). Useful for status bars where the message is visual too. */
|
|
14216
|
+
visible?: boolean;
|
|
14217
|
+
}
|
|
14218
|
+
|
|
13282
14219
|
/** Resolved module with its lazy components. */
|
|
13283
14220
|
export declare interface NiceLoadedModule {
|
|
13284
14221
|
manifest: NiceModuleManifest;
|
|
@@ -13435,7 +14372,7 @@ export declare interface NiceLockButtonProps extends NiceBaseProps {
|
|
|
13435
14372
|
export declare const NiceLoginForm: ForwardRefExoticComponent<NiceLoginFormProps & RefAttributes<HTMLFormElement>>;
|
|
13436
14373
|
|
|
13437
14374
|
/** Props for the {@link NiceLoginForm} component — a pre-built login form with username, password, remember-me, and social links. */
|
|
13438
|
-
export declare interface NiceLoginFormProps extends
|
|
14375
|
+
export declare interface NiceLoginFormProps extends NiceStandardProps {
|
|
13439
14376
|
/** Called with credentials on form submit. */
|
|
13440
14377
|
onSubmit?: (credentials: {
|
|
13441
14378
|
username: string;
|
|
@@ -13641,7 +14578,7 @@ export declare const NiceMap: default_2.ForwardRefExoticComponent<NiceMapProps &
|
|
|
13641
14578
|
|
|
13642
14579
|
export declare const NiceMapChart: default_2.FC<NiceMapChartProps>;
|
|
13643
14580
|
|
|
13644
|
-
export declare interface NiceMapChartProps extends
|
|
14581
|
+
export declare interface NiceMapChartProps extends NiceStandardProps {
|
|
13645
14582
|
/** Typ mapy */
|
|
13646
14583
|
type?: 'choropleth' | 'bubble' | 'heat';
|
|
13647
14584
|
/** Regiony mapy (dla choropleth) */
|
|
@@ -13877,6 +14814,29 @@ export declare interface NiceMealPlanProps extends NiceBaseProps {
|
|
|
13877
14814
|
readOnly?: boolean;
|
|
13878
14815
|
}
|
|
13879
14816
|
|
|
14817
|
+
/**
|
|
14818
|
+
* Classic "media object" pattern from CSS Tricks / Bootstrap: a fixed
|
|
14819
|
+
* media block on one side and free-flowing content on the other.
|
|
14820
|
+
* Useful for chat rows, contact cards, notification items.
|
|
14821
|
+
*/
|
|
14822
|
+
export declare const NiceMediaObject: default_2.FC<NiceMediaObjectProps>;
|
|
14823
|
+
|
|
14824
|
+
export declare type NiceMediaObjectAlign = 'start' | 'center' | 'end';
|
|
14825
|
+
|
|
14826
|
+
/** Props for {@link NiceMediaObject} — image-with-content row layout. */
|
|
14827
|
+
export declare interface NiceMediaObjectProps extends NiceStandardProps {
|
|
14828
|
+
/** Media element (`<img>`, `<video>`, avatar, icon, …). */
|
|
14829
|
+
media: default_2.ReactNode;
|
|
14830
|
+
/** Adjacent content (typically text). */
|
|
14831
|
+
children: default_2.ReactNode;
|
|
14832
|
+
/** Which side the media sits on. */
|
|
14833
|
+
mediaPosition?: 'start' | 'end';
|
|
14834
|
+
/** Vertical alignment of media vs content. */
|
|
14835
|
+
align?: NiceMediaObjectAlign;
|
|
14836
|
+
/** Gap between media and content. Number → px. */
|
|
14837
|
+
spacing?: number | string;
|
|
14838
|
+
}
|
|
14839
|
+
|
|
13880
14840
|
export declare const NiceMention: default_2.ForwardRefExoticComponent<NiceMentionProps & default_2.RefAttributes<HTMLTextAreaElement>>;
|
|
13881
14841
|
|
|
13882
14842
|
/** Props for the {@link NiceMention} component — a textarea with @mention triggers and suggestion popup. */
|
|
@@ -14030,6 +14990,12 @@ export declare interface NiceMenuProps extends NiceBaseProps {
|
|
|
14030
14990
|
renderTriggerLabel?: (item: NiceMenuItem) => default_2.ReactNode;
|
|
14031
14991
|
/** Optional renderer for panel-entry label. */
|
|
14032
14992
|
renderEntryLabel?: (item: NiceMenuItem) => default_2.ReactNode;
|
|
14993
|
+
/**
|
|
14994
|
+
* Maximum depth of nested flyouts rendered. `1` = top-level only, `2` = level-1 panel,
|
|
14995
|
+
* `3` = level-2 subpanel (default — preserves legacy behavior), up to `10`. Items with
|
|
14996
|
+
* `children` beyond this depth are rendered as leaves (no flyout arrow, no hover-open).
|
|
14997
|
+
*/
|
|
14998
|
+
maxDepth?: number;
|
|
14033
14999
|
}
|
|
14034
15000
|
|
|
14035
15001
|
/**
|
|
@@ -14080,7 +15046,7 @@ export declare interface NiceMergeRequestBuilderProps extends NiceBaseProps {
|
|
|
14080
15046
|
export declare const NiceModal: default_2.FC<NiceModalProps>;
|
|
14081
15047
|
|
|
14082
15048
|
/** Props for the {@link NiceModal} component — a dialog overlay with focus trapping. */
|
|
14083
|
-
export declare interface NiceModalProps extends
|
|
15049
|
+
export declare interface NiceModalProps extends NiceStandardProps {
|
|
14084
15050
|
/** Whether the modal is currently visible. */
|
|
14085
15051
|
open: boolean;
|
|
14086
15052
|
/** Called when the user requests to close the modal. */
|
|
@@ -14701,6 +15667,11 @@ export declare const NiceNavShell: ForwardRefExoticComponent<NiceNavShellProps &
|
|
|
14701
15667
|
export declare interface NiceNavShellApi {
|
|
14702
15668
|
activeRoute: string | undefined;
|
|
14703
15669
|
tabs: NiceNavShellTab[];
|
|
15670
|
+
/** True when the shell is in narrow/mobile layout (viewport ≤ `mobileBreakpoint`
|
|
15671
|
+
* or `forceMobileLayout`). Render-prop slot consumers should forward this to
|
|
15672
|
+
* any embedded `NiceTopNav` (`forceMobileLayout={isMobile}`) so the hamburger
|
|
15673
|
+
* switch happens at the same width the sidebar disappears. */
|
|
15674
|
+
isMobile: boolean;
|
|
14704
15675
|
openRoute: (route: string, opts?: Partial<NiceNavShellTab>) => void;
|
|
14705
15676
|
closeTab: (id: string) => void;
|
|
14706
15677
|
closeOthers: (id: string) => void;
|
|
@@ -14724,6 +15695,31 @@ export declare interface NiceNavShellProps {
|
|
|
14724
15695
|
topNavProps?: NiceTopNavProps;
|
|
14725
15696
|
/** Sidebar navigation slot. */
|
|
14726
15697
|
sidebar?: Slot;
|
|
15698
|
+
/**
|
|
15699
|
+
* Shared navigation model. When provided, the shell renders an internal
|
|
15700
|
+
* `NiceSidebarNav` in the sidebar slot (unless an explicit `sidebar` slot
|
|
15701
|
+
* is given) AND forwards the same model to the embedded mobile hamburger
|
|
15702
|
+
* inside `NiceTopNav`. This guarantees one source of truth for both layouts.
|
|
15703
|
+
*/
|
|
15704
|
+
sidebarData?: SidebarNavDataNode[];
|
|
15705
|
+
/** User id forwarded to NiceSidebarNav (preferences scope). */
|
|
15706
|
+
sidebarUserId?: string;
|
|
15707
|
+
/** Active route highlighted in the sidebar (defaults to `activeRoute`). */
|
|
15708
|
+
sidebarActiveRoute?: string;
|
|
15709
|
+
/** Fired when a view is clicked anywhere in the sidebar (desktop or mobile). */
|
|
15710
|
+
onSidebarNavigate?: (route: string, view: SidebarNavView) => void;
|
|
15711
|
+
/**
|
|
15712
|
+
* Viewport breakpoint (px). At or below this width, the desktop sidebar is
|
|
15713
|
+
* hidden and the navigation is delegated to the top-nav hamburger drawer
|
|
15714
|
+
* (which uses the same `sidebarData`). Default `720` — matches
|
|
15715
|
+
* `NiceTopNav`'s own `mobileBreakpoint` so the sidebar disappears at the
|
|
15716
|
+
* exact same width the hamburger appears (no dead zone where neither is
|
|
15717
|
+
* visible). Override on BOTH components together if you need a different
|
|
15718
|
+
* value.
|
|
15719
|
+
*/
|
|
15720
|
+
mobileBreakpoint?: number;
|
|
15721
|
+
/** Force the shell into the mobile layout regardless of viewport. */
|
|
15722
|
+
forceMobileLayout?: boolean;
|
|
14727
15723
|
/** Map of route → content (ReactNode or factory). */
|
|
14728
15724
|
routes: Record<string, ReactNode | (() => ReactNode)>;
|
|
14729
15725
|
/** Initial / default route (used when uncontrolled). */
|
|
@@ -14976,6 +15972,12 @@ export declare interface NiceNotificationsProps {
|
|
|
14976
15972
|
badgeMax?: number;
|
|
14977
15973
|
/** Size variant of the trigger. */
|
|
14978
15974
|
size?: 'sm' | 'md' | 'lg';
|
|
15975
|
+
/**
|
|
15976
|
+
* Visual variant. `'ghost'` removes border, background and hover-border
|
|
15977
|
+
* — only the bell icon (with badge) is shown. Designed for dense toolbars
|
|
15978
|
+
* (e.g. NiceTopNav narrow mode). Default: `'default'`.
|
|
15979
|
+
*/
|
|
15980
|
+
variant?: 'default' | 'ghost';
|
|
14979
15981
|
className?: string;
|
|
14980
15982
|
style?: default_2.CSSProperties;
|
|
14981
15983
|
id?: string;
|
|
@@ -15032,11 +16034,54 @@ export declare interface NiceNumberInputProps extends NiceFormFieldProps {
|
|
|
15032
16034
|
onSuffixChange?: (value: string, prevWeight: number | undefined, newWeight: number | undefined) => void;
|
|
15033
16035
|
}
|
|
15034
16036
|
|
|
16037
|
+
/**
|
|
16038
|
+
* Numeric input with optional +/- step buttons, clamping, and a
|
|
16039
|
+
* pluggable display formatter. The displayed text is a derived view
|
|
16040
|
+
* — internal value stays a clean `number` so consumers don't have to
|
|
16041
|
+
* parse it back from a formatted string.
|
|
16042
|
+
*
|
|
16043
|
+
* Increment / decrement button labels go through `useNiceTranslation`
|
|
16044
|
+
* so they follow the global language picker.
|
|
16045
|
+
*/
|
|
16046
|
+
export declare const NiceNumericInput: default_2.FC<NiceNumericInputProps>;
|
|
16047
|
+
|
|
16048
|
+
/** Props for {@link NiceNumericInput} — clampable number field with step buttons. */
|
|
16049
|
+
export declare interface NiceNumericInputProps extends NiceStandardProps {
|
|
16050
|
+
/** Controlled value. */
|
|
16051
|
+
value?: number;
|
|
16052
|
+
/** Default value (uncontrolled). */
|
|
16053
|
+
defaultValue?: number;
|
|
16054
|
+
/** Fires on every change. */
|
|
16055
|
+
onChange?: (value: number) => void;
|
|
16056
|
+
/** Lower clamp. */
|
|
16057
|
+
min?: number;
|
|
16058
|
+
/** Upper clamp. */
|
|
16059
|
+
max?: number;
|
|
16060
|
+
/** Increment / decrement step applied by the +/- buttons. */
|
|
16061
|
+
step?: number;
|
|
16062
|
+
/** Decimal places — applied via `toFixed` when rendering. */
|
|
16063
|
+
precision?: number;
|
|
16064
|
+
/**
|
|
16065
|
+
* Custom display format. String values support a single `{value}`
|
|
16066
|
+
* placeholder; functions receive the numeric value and return the
|
|
16067
|
+
* rendered string.
|
|
16068
|
+
*/
|
|
16069
|
+
format?: string | ((value: number) => string);
|
|
16070
|
+
/** Render the +/- step buttons. */
|
|
16071
|
+
showButtons?: boolean;
|
|
16072
|
+
/** Placeholder shown when the value is empty (uncontrolled / undefined). */
|
|
16073
|
+
placeholder?: string;
|
|
16074
|
+
/** Disable input + buttons. */
|
|
16075
|
+
disabled?: boolean;
|
|
16076
|
+
/** Mark as readonly (focusable but not editable). */
|
|
16077
|
+
readOnly?: boolean;
|
|
16078
|
+
}
|
|
16079
|
+
|
|
15035
16080
|
export { NiceODataConfig }
|
|
15036
16081
|
|
|
15037
16082
|
export declare const NiceOfflineBanner: default_2.FC<NiceOfflineBannerProps>;
|
|
15038
16083
|
|
|
15039
|
-
export declare interface NiceOfflineBannerProps extends
|
|
16084
|
+
export declare interface NiceOfflineBannerProps extends NiceStandardProps {
|
|
15040
16085
|
size?: NiceSize;
|
|
15041
16086
|
message?: string;
|
|
15042
16087
|
variant?: 'warning' | 'error';
|
|
@@ -15091,7 +16136,7 @@ export { NiceOption }
|
|
|
15091
16136
|
export declare const NiceOrganizationChart: default_2.ForwardRefExoticComponent<NiceOrganizationChartProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
15092
16137
|
|
|
15093
16138
|
/** Props for the {@link NiceOrganizationChart} component — a hierarchical org chart with optional node selection and collapsible branches. */
|
|
15094
|
-
export declare interface NiceOrganizationChartProps extends
|
|
16139
|
+
export declare interface NiceOrganizationChartProps extends NiceStandardProps {
|
|
15095
16140
|
/** Root node. */
|
|
15096
16141
|
data: NiceOrgNode;
|
|
15097
16142
|
/** Custom node renderer. */
|
|
@@ -15163,7 +16208,47 @@ export declare interface NiceOrgNode {
|
|
|
15163
16208
|
[x: string]: any;
|
|
15164
16209
|
}
|
|
15165
16210
|
|
|
15166
|
-
export declare type NiceOrgProfileSection = 'basic' | 'contact' | 'address' | 'branding' | 'localization' | 'fiscal' | 'preferences';
|
|
16211
|
+
export declare type NiceOrgProfileSection = 'basic' | 'contact' | 'address' | 'branding' | 'localization' | 'fiscal' | 'preferences';
|
|
16212
|
+
|
|
16213
|
+
/**
|
|
16214
|
+
* Multi-digit one-time-password field. Renders `length` single-char
|
|
16215
|
+
* `<input>` slots; auto-advances focus on entry; goes back on
|
|
16216
|
+
* Backspace from an empty slot; supports paste of the full code.
|
|
16217
|
+
*
|
|
16218
|
+
* The whole field exposes a single `aria-label` on the wrapper so
|
|
16219
|
+
* AT users hear "OTP, N digits" rather than each box separately.
|
|
16220
|
+
*/
|
|
16221
|
+
export declare const NiceOTPInput: default_2.FC<NiceOTPInputProps>;
|
|
16222
|
+
|
|
16223
|
+
/**
|
|
16224
|
+
* Props for {@link NiceOTPInput}.
|
|
16225
|
+
*
|
|
16226
|
+
* `error` is omitted from the standard prop bag because here it's a
|
|
16227
|
+
* boolean visual-state flag, not the validation-error string of the
|
|
16228
|
+
* standard form-field props.
|
|
16229
|
+
*/
|
|
16230
|
+
export declare interface NiceOTPInputProps extends Omit<NiceStandardProps, 'error'> {
|
|
16231
|
+
/** Number of code digits. */
|
|
16232
|
+
length?: number;
|
|
16233
|
+
/** Controlled value (digits concatenated). */
|
|
16234
|
+
value?: string;
|
|
16235
|
+
/** Fires on every keystroke with the assembled string. */
|
|
16236
|
+
onChange?: (value: string) => void;
|
|
16237
|
+
/** Fires once when the length of typed digits equals `length`. */
|
|
16238
|
+
onComplete?: (value: string) => void;
|
|
16239
|
+
/** Restrict input to digits (`number`) or any character (`text`). */
|
|
16240
|
+
type?: NiceOTPInputType;
|
|
16241
|
+
/** Focus the first slot on mount. */
|
|
16242
|
+
autoFocus?: boolean;
|
|
16243
|
+
/** Disable all slots. */
|
|
16244
|
+
disabled?: boolean;
|
|
16245
|
+
/** Render in the error visual state (red border). */
|
|
16246
|
+
error?: boolean;
|
|
16247
|
+
/** Node injected between every digit (e.g. `<span>-</span>`). */
|
|
16248
|
+
separator?: default_2.ReactNode;
|
|
16249
|
+
}
|
|
16250
|
+
|
|
16251
|
+
export declare type NiceOTPInputType = 'number' | 'text';
|
|
15167
16252
|
|
|
15168
16253
|
/**
|
|
15169
16254
|
* NicePageBuilder - Drag-drop page builder with responsive layouts
|
|
@@ -15195,6 +16280,44 @@ export declare interface NicePageBuilderProps {
|
|
|
15195
16280
|
className?: string;
|
|
15196
16281
|
}
|
|
15197
16282
|
|
|
16283
|
+
/**
|
|
16284
|
+
* Semantic `<header>` with the classic dashboard chrome layout:
|
|
16285
|
+
* breadcrumb on top, [back] + avatar + title + tags on the heading
|
|
16286
|
+
* row, optional subtitle, and a trailing actions slot. Tabs / chips
|
|
16287
|
+
* can slot under the heading via `footer`.
|
|
16288
|
+
*/
|
|
16289
|
+
export declare const NicePageHeader: default_2.FC<NicePageHeaderProps>;
|
|
16290
|
+
|
|
16291
|
+
/**
|
|
16292
|
+
* Props for {@link NicePageHeader} — top-of-page chrome
|
|
16293
|
+
* (title + breadcrumb + actions).
|
|
16294
|
+
*
|
|
16295
|
+
* `title` omitted from the standard prop bag because here it's a rich
|
|
16296
|
+
* ReactNode heading, not the tooltip-text string the base prop
|
|
16297
|
+
* describes.
|
|
16298
|
+
*/
|
|
16299
|
+
export declare interface NicePageHeaderProps extends Omit<NiceStandardProps, 'title'> {
|
|
16300
|
+
/** Title node — rendered as the page heading. */
|
|
16301
|
+
title: default_2.ReactNode;
|
|
16302
|
+
/** Subtitle / context line below the title. */
|
|
16303
|
+
subtitle?: default_2.ReactNode;
|
|
16304
|
+
/** Breadcrumb element rendered above the title. */
|
|
16305
|
+
breadcrumb?: default_2.ReactNode;
|
|
16306
|
+
/** Avatar node placed to the left of the title. */
|
|
16307
|
+
avatar?: default_2.ReactNode;
|
|
16308
|
+
/** Status tags rendered next to the title (e.g. a status `NiceTag`). */
|
|
16309
|
+
tags?: default_2.ReactNode;
|
|
16310
|
+
/** Trailing slot for actions (typically a button group). */
|
|
16311
|
+
extra?: default_2.ReactNode;
|
|
16312
|
+
/** Footer slot — typically a `<NiceTabs />` row below the header. */
|
|
16313
|
+
footer?: default_2.ReactNode;
|
|
16314
|
+
/**
|
|
16315
|
+
* Renders a back button on the left when set. The button's
|
|
16316
|
+
* `aria-label` comes from `pageHeader.back` (default "Back").
|
|
16317
|
+
*/
|
|
16318
|
+
onBack?: () => void;
|
|
16319
|
+
}
|
|
16320
|
+
|
|
15198
16321
|
export declare interface NicePageMargins {
|
|
15199
16322
|
top: number;
|
|
15200
16323
|
right: number;
|
|
@@ -15240,6 +16363,21 @@ export declare interface NicePaginationProps extends NiceBaseProps {
|
|
|
15240
16363
|
disabled?: boolean;
|
|
15241
16364
|
}
|
|
15242
16365
|
|
|
16366
|
+
export declare const NiceParagraph: default_2.FC<NiceParagraphProps>;
|
|
16367
|
+
|
|
16368
|
+
/** Props for {@link NiceParagraph} — body-text paragraph with size + lead/muted variants. */
|
|
16369
|
+
export declare interface NiceParagraphProps extends Omit<NiceStandardProps, 'size'> {
|
|
16370
|
+
children: default_2.ReactNode;
|
|
16371
|
+
/** Text size (typographic scale, not `NiceSize`). */
|
|
16372
|
+
size?: NiceParagraphSize;
|
|
16373
|
+
/** Render as a lead paragraph (larger, lighter weight). */
|
|
16374
|
+
lead?: boolean;
|
|
16375
|
+
/** Muted (de-emphasised) text colour. */
|
|
16376
|
+
muted?: boolean;
|
|
16377
|
+
}
|
|
16378
|
+
|
|
16379
|
+
export declare type NiceParagraphSize = 'sm' | 'md' | 'lg';
|
|
16380
|
+
|
|
15243
16381
|
export declare const NicePasswordInput: default_2.ForwardRefExoticComponent<NicePasswordInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
15244
16382
|
|
|
15245
16383
|
/** Props for the {@link NicePasswordInput} component — a password field with visibility toggle and strength meter. */
|
|
@@ -15344,7 +16482,7 @@ declare interface NicePDFOptions extends NiceExportOptions {
|
|
|
15344
16482
|
export declare const NicePDFViewer: ForwardRefExoticComponent<NicePDFViewerProps & RefAttributes<HTMLDivElement>>;
|
|
15345
16483
|
|
|
15346
16484
|
/** Props for the {@link NicePDFViewer} component — an embedded PDF viewer with toolbar, navigation, and zoom. */
|
|
15347
|
-
export declare interface NicePDFViewerProps extends
|
|
16485
|
+
export declare interface NicePDFViewerProps extends NiceStandardProps {
|
|
15348
16486
|
/** PDF source: URL string or ArrayBuffer / Uint8Array */
|
|
15349
16487
|
src?: string | ArrayBuffer | Uint8Array;
|
|
15350
16488
|
/** Initial page number (1-based) */
|
|
@@ -15498,7 +16636,7 @@ export declare interface NicePickListProps<T = unknown> extends NiceBaseProps {
|
|
|
15498
16636
|
export declare const NicePieChart: default_2.FC<NicePieChartProps>;
|
|
15499
16637
|
|
|
15500
16638
|
/** Props for the {@link NicePieChart} component — an SVG pie / donut chart with legend and labels. */
|
|
15501
|
-
export declare interface NicePieChartProps extends
|
|
16639
|
+
export declare interface NicePieChartProps extends NiceStandardProps {
|
|
15502
16640
|
/** Slice data. */
|
|
15503
16641
|
data: NicePieSlice[];
|
|
15504
16642
|
/** Chart width in px. */
|
|
@@ -15719,7 +16857,7 @@ export declare interface NicePlatformCapability {
|
|
|
15719
16857
|
export declare const NicePolarChart: default_2.FC<NicePolarChartProps>;
|
|
15720
16858
|
|
|
15721
16859
|
/** Props for the {@link NicePolarChart} component — an SVG radar / spider chart. */
|
|
15722
|
-
export declare interface NicePolarChartProps extends
|
|
16860
|
+
export declare interface NicePolarChartProps extends NiceStandardProps {
|
|
15723
16861
|
/** Series definitions. */
|
|
15724
16862
|
series: NicePolarChartSeries[];
|
|
15725
16863
|
/** Axis category labels. */
|
|
@@ -16036,6 +17174,52 @@ export declare interface NiceProgressProps extends Omit<NiceFormFieldProps, 'sub
|
|
|
16036
17174
|
labelPlacement?: 'top' | 'bottom' | 'left' | 'right';
|
|
16037
17175
|
}
|
|
16038
17176
|
|
|
17177
|
+
/**
|
|
17178
|
+
* Light-weight prompt modal — a tiny `window.prompt` replacement.
|
|
17179
|
+
* Reuses the design-system styling via `.nice-modal` classes so it
|
|
17180
|
+
* looks consistent with `NiceModal` / `NiceConfirmDialog`.
|
|
17181
|
+
*
|
|
17182
|
+
* Keyboard:
|
|
17183
|
+
* - Enter on the input submits
|
|
17184
|
+
* - Escape cancels
|
|
17185
|
+
* - The input is auto-focused on open so users can start typing
|
|
17186
|
+
* immediately.
|
|
17187
|
+
*
|
|
17188
|
+
* Labels go through `useNiceTranslation` so they follow the global
|
|
17189
|
+
* picker without prop wiring.
|
|
17190
|
+
*/
|
|
17191
|
+
export declare const NicePromptDialog: default_2.FC<NicePromptDialogProps>;
|
|
17192
|
+
|
|
17193
|
+
/**
|
|
17194
|
+
* Props for {@link NicePromptDialog} — modal dialog asking for a single value.
|
|
17195
|
+
*
|
|
17196
|
+
* `title` is omitted from the standard prop bag because here it's the
|
|
17197
|
+
* dialog heading (rich node), not the tooltip-text string the base
|
|
17198
|
+
* prop describes.
|
|
17199
|
+
*/
|
|
17200
|
+
export declare interface NicePromptDialogProps extends Omit<NiceStandardProps, 'title'> {
|
|
17201
|
+
/** Controlled visibility. */
|
|
17202
|
+
open: boolean;
|
|
17203
|
+
/** Fires with the entered value when user confirms. */
|
|
17204
|
+
onSubmit: (value: string) => void;
|
|
17205
|
+
/** Fires when user cancels (Escape, Cancel button, backdrop click). */
|
|
17206
|
+
onCancel: () => void;
|
|
17207
|
+
/** Dialog heading. */
|
|
17208
|
+
title: default_2.ReactNode;
|
|
17209
|
+
/** Optional explanation rendered above the input. */
|
|
17210
|
+
message?: default_2.ReactNode;
|
|
17211
|
+
/** Initial input value when the dialog opens. */
|
|
17212
|
+
defaultValue?: string;
|
|
17213
|
+
/** Input placeholder. */
|
|
17214
|
+
placeholder?: string;
|
|
17215
|
+
/** Native input type (`text`, `email`, `password`, `url`, …). */
|
|
17216
|
+
inputType?: default_2.HTMLInputTypeAttribute;
|
|
17217
|
+
/** Override the confirm button label (defaults to translated `'OK'`). */
|
|
17218
|
+
confirmLabel?: default_2.ReactNode;
|
|
17219
|
+
/** Override the cancel button label (defaults to translated `'Cancel'`). */
|
|
17220
|
+
cancelLabel?: default_2.ReactNode;
|
|
17221
|
+
}
|
|
17222
|
+
|
|
16039
17223
|
export declare interface NicePropDescriptor {
|
|
16040
17224
|
name: string;
|
|
16041
17225
|
type: string;
|
|
@@ -16060,7 +17244,7 @@ export { NicePullToRefreshProps }
|
|
|
16060
17244
|
export declare const NiceQRCode: ForwardRefExoticComponent<NiceQRCodeProps & RefAttributes<HTMLCanvasElement>>;
|
|
16061
17245
|
|
|
16062
17246
|
/** Props for the {@link NiceQRCode} component — generates and renders a QR code from a text value. */
|
|
16063
|
-
export declare interface NiceQRCodeProps extends
|
|
17247
|
+
export declare interface NiceQRCodeProps extends NiceStandardProps {
|
|
16064
17248
|
/** Text or URL to encode. */
|
|
16065
17249
|
value: string;
|
|
16066
17250
|
/** Output size in pixels. */
|
|
@@ -16241,7 +17425,7 @@ export declare interface NiceRadioGroupProps extends NiceFormFieldProps {
|
|
|
16241
17425
|
export declare const NiceRangeSelector: default_2.FC<NiceRangeSelectorProps>;
|
|
16242
17426
|
|
|
16243
17427
|
/** Props for the {@link NiceRangeSelector} component — a dual-handle range slider with optional sparkline background. */
|
|
16244
|
-
export declare interface NiceRangeSelectorProps extends
|
|
17428
|
+
export declare interface NiceRangeSelectorProps extends NiceStandardProps {
|
|
16245
17429
|
/** Sparkline data rendered behind the handles. */
|
|
16246
17430
|
data?: number[];
|
|
16247
17431
|
/** Minimum selectable value. */
|
|
@@ -16290,6 +17474,39 @@ export declare interface NiceRangeSliderProps extends NiceFormFieldProps {
|
|
|
16290
17474
|
valuePlacement?: 'right' | 'bottom' | 'none';
|
|
16291
17475
|
}
|
|
16292
17476
|
|
|
17477
|
+
/**
|
|
17478
|
+
* Star rating widget. Native semantics: behaves like a `radiogroup`
|
|
17479
|
+
* (one star is the "selected" value at a time), with arrow-key nav
|
|
17480
|
+
* between positions. `allowHalf` enables half-step granularity by
|
|
17481
|
+
* splitting each character into a left/right click target.
|
|
17482
|
+
*/
|
|
17483
|
+
export declare const NiceRate: default_2.FC<NiceRateProps>;
|
|
17484
|
+
|
|
17485
|
+
/** Props for {@link NiceRate} — star (or custom-glyph) rating widget. */
|
|
17486
|
+
export declare interface NiceRateProps extends NiceStandardProps {
|
|
17487
|
+
/** Controlled rating value (0..count). */
|
|
17488
|
+
value?: number;
|
|
17489
|
+
/** Default value (uncontrolled). */
|
|
17490
|
+
defaultValue?: number;
|
|
17491
|
+
/** Total number of selectable items. */
|
|
17492
|
+
count?: number;
|
|
17493
|
+
/** Allow half-step ratings (0.5 / 1.5 / 2.5 / …). */
|
|
17494
|
+
allowHalf?: boolean;
|
|
17495
|
+
/** Clicking the current value clears the rating back to 0. */
|
|
17496
|
+
allowClear?: boolean;
|
|
17497
|
+
/** Read-only — render the value but ignore clicks. */
|
|
17498
|
+
readOnly?: boolean;
|
|
17499
|
+
/** Disable interaction (visually distinct from `readOnly`). */
|
|
17500
|
+
disabled?: boolean;
|
|
17501
|
+
/**
|
|
17502
|
+
* Render character. Either a single node used for every position,
|
|
17503
|
+
* or a `(index) => node` function for per-position glyphs.
|
|
17504
|
+
*/
|
|
17505
|
+
character?: default_2.ReactNode | ((index: number) => default_2.ReactNode);
|
|
17506
|
+
/** Fires on every change. */
|
|
17507
|
+
onChange?: (value: number) => void;
|
|
17508
|
+
}
|
|
17509
|
+
|
|
16293
17510
|
export declare const NiceRating: default_2.ForwardRefExoticComponent<NiceRatingProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
16294
17511
|
|
|
16295
17512
|
/** Props for the {@link NiceRating} component — a star/icon rating input with half-step support. */
|
|
@@ -16373,7 +17590,7 @@ export declare interface NiceRbacRole {
|
|
|
16373
17590
|
|
|
16374
17591
|
export declare const NiceRealtimeChart: default_2.ForwardRefExoticComponent<NiceRealtimeChartProps & default_2.RefAttributes<NiceRealtimeChartRef>>;
|
|
16375
17592
|
|
|
16376
|
-
export declare interface NiceRealtimeChartProps extends
|
|
17593
|
+
export declare interface NiceRealtimeChartProps extends NiceStandardProps {
|
|
16377
17594
|
/** Początkowe dane */
|
|
16378
17595
|
initialData?: RealtimeDataPoint[];
|
|
16379
17596
|
/** Alias for `initialData`. */
|
|
@@ -16856,9 +18073,43 @@ export { NiceResponsiveValue }
|
|
|
16856
18073
|
|
|
16857
18074
|
export { NiceRestConfig }
|
|
16858
18075
|
|
|
18076
|
+
/**
|
|
18077
|
+
* Full-page result state — used at the end of multi-step flows
|
|
18078
|
+
* (checkout success, payment failed, account created…) or as an
|
|
18079
|
+
* empty-state replacement when a list / view has no content.
|
|
18080
|
+
*
|
|
18081
|
+
* `role="alert"` for `error`, `role="status"` otherwise so screen
|
|
18082
|
+
* readers announce the result appropriately.
|
|
18083
|
+
*/
|
|
18084
|
+
export declare const NiceResult: default_2.FC<NiceResultProps>;
|
|
18085
|
+
|
|
18086
|
+
/**
|
|
18087
|
+
* Props for {@link NiceResult}.
|
|
18088
|
+
*
|
|
18089
|
+
* `title` is omitted from the standard prop bag because here it's a
|
|
18090
|
+
* rich heading node, not the tooltip-text string the base prop
|
|
18091
|
+
* describes.
|
|
18092
|
+
*/
|
|
18093
|
+
export declare interface NiceResultProps extends Omit<NiceStandardProps, 'title'> {
|
|
18094
|
+
/** Outcome variant — drives the default glyph + colour. */
|
|
18095
|
+
status: NiceResultStatus;
|
|
18096
|
+
/** Headline (large text). */
|
|
18097
|
+
title: default_2.ReactNode;
|
|
18098
|
+
/** Secondary message below the title. */
|
|
18099
|
+
subtitle?: default_2.ReactNode;
|
|
18100
|
+
/** Override the default glyph for the chosen status. */
|
|
18101
|
+
icon?: default_2.ReactNode;
|
|
18102
|
+
/** Actions slot below the message — typically a button group. */
|
|
18103
|
+
extra?: default_2.ReactNode;
|
|
18104
|
+
/** Free-form content inserted between the message and `extra`. */
|
|
18105
|
+
children?: default_2.ReactNode;
|
|
18106
|
+
}
|
|
18107
|
+
|
|
18108
|
+
export declare type NiceResultStatus = 'success' | 'error' | 'info' | 'warning' | 'pending';
|
|
18109
|
+
|
|
16859
18110
|
export declare const NiceRetryPanel: default_2.FC<NiceRetryPanelProps>;
|
|
16860
18111
|
|
|
16861
|
-
export declare interface NiceRetryPanelProps extends
|
|
18112
|
+
export declare interface NiceRetryPanelProps extends NiceStandardProps {
|
|
16862
18113
|
size?: NiceSize;
|
|
16863
18114
|
error: string | Error;
|
|
16864
18115
|
onRetry: () => void;
|
|
@@ -16870,6 +18121,32 @@ export declare interface NiceRetryPanelProps extends NiceBaseProps {
|
|
|
16870
18121
|
icon?: default_2.ReactNode;
|
|
16871
18122
|
}
|
|
16872
18123
|
|
|
18124
|
+
/**
|
|
18125
|
+
* Decorative corner ribbon that hangs from the top of its wrapped
|
|
18126
|
+
* element. Positioning is relative to a `position: relative` shim
|
|
18127
|
+
* we add automatically, so consumers don't have to set it on the
|
|
18128
|
+
* child themselves.
|
|
18129
|
+
*
|
|
18130
|
+
* The text is exposed to AT via the wrapping element's textContent;
|
|
18131
|
+
* the angled tail is a decorative pseudo-element (not picked up by
|
|
18132
|
+
* screen readers).
|
|
18133
|
+
*/
|
|
18134
|
+
export declare const NiceRibbon: default_2.FC<NiceRibbonProps>;
|
|
18135
|
+
|
|
18136
|
+
export declare type NiceRibbonPlacement = 'start' | 'end';
|
|
18137
|
+
|
|
18138
|
+
/** Props for {@link NiceRibbon} — corner banner attached to a wrapped element. */
|
|
18139
|
+
export declare interface NiceRibbonProps extends NiceStandardProps {
|
|
18140
|
+
/** Wrapped content — the ribbon attaches to the top corner of this. */
|
|
18141
|
+
children: default_2.ReactNode;
|
|
18142
|
+
/** Ribbon label. */
|
|
18143
|
+
text: default_2.ReactNode;
|
|
18144
|
+
/** Custom background colour. Falls back to the design-system primary token. */
|
|
18145
|
+
color?: string;
|
|
18146
|
+
/** Which top corner the ribbon attaches to. */
|
|
18147
|
+
placement?: NiceRibbonPlacement;
|
|
18148
|
+
}
|
|
18149
|
+
|
|
16873
18150
|
export declare interface NiceRoleInfo {
|
|
16874
18151
|
id: string;
|
|
16875
18152
|
name: string;
|
|
@@ -16923,7 +18200,7 @@ export declare const NiceSankey: default_2.FC<NiceSankeyProps>;
|
|
|
16923
18200
|
|
|
16924
18201
|
export declare const NiceSankeyChart: default_2.FC<NiceSankeyChartProps>;
|
|
16925
18202
|
|
|
16926
|
-
export declare interface NiceSankeyChartProps extends
|
|
18203
|
+
export declare interface NiceSankeyChartProps extends NiceStandardProps {
|
|
16927
18204
|
/** Węzły */
|
|
16928
18205
|
nodes: SankeyNode[];
|
|
16929
18206
|
/** Połączenia */
|
|
@@ -16969,7 +18246,7 @@ export declare interface NiceSankeyNode {
|
|
|
16969
18246
|
}
|
|
16970
18247
|
|
|
16971
18248
|
/** Props for the {@link NiceSankey} component — an SVG Sankey flow diagram. */
|
|
16972
|
-
export declare interface NiceSankeyProps extends
|
|
18249
|
+
export declare interface NiceSankeyProps extends NiceStandardProps {
|
|
16973
18250
|
/** Node definitions. */
|
|
16974
18251
|
nodes: NiceSankeyNode[];
|
|
16975
18252
|
/** Link definitions. */
|
|
@@ -17385,6 +18662,90 @@ export declare interface NiceSearchBarProps {
|
|
|
17385
18662
|
|
|
17386
18663
|
export declare type NiceSearchBarSize = 'sm' | 'md' | 'lg';
|
|
17387
18664
|
|
|
18665
|
+
/**
|
|
18666
|
+
* Search input with an async suggestion dropdown and a recent-search
|
|
18667
|
+
* fallback when the query is empty. Keyboard:
|
|
18668
|
+
* - Down/Up — move highlight among suggestions
|
|
18669
|
+
* - Enter — pick the highlighted row, or fire onSearch with the
|
|
18670
|
+
* current value when nothing is highlighted
|
|
18671
|
+
* - Escape — close the dropdown
|
|
18672
|
+
*
|
|
18673
|
+
* The suggestion fetcher is the consumer's source of truth; we keep
|
|
18674
|
+
* a request-id counter so out-of-order responses don't replace a
|
|
18675
|
+
* later query's result.
|
|
18676
|
+
*/
|
|
18677
|
+
export declare const NiceSearchInput: default_2.FC<NiceSearchInputProps>;
|
|
18678
|
+
|
|
18679
|
+
/** Props for {@link NiceSearchInput} — text field with async suggestions + recents. */
|
|
18680
|
+
export declare interface NiceSearchInputProps extends NiceStandardProps {
|
|
18681
|
+
/** Controlled search text. */
|
|
18682
|
+
value: string;
|
|
18683
|
+
/** Fires on every keystroke. */
|
|
18684
|
+
onChange: (value: string) => void;
|
|
18685
|
+
/** Fires on Enter or when the user picks a suggestion. */
|
|
18686
|
+
onSearch?: (value: string) => void;
|
|
18687
|
+
/**
|
|
18688
|
+
* Async source of suggestions. Receives the current query, returns
|
|
18689
|
+
* the rows to display. Debounce / cancellation is the caller's
|
|
18690
|
+
* responsibility; the component swallows stale responses by id.
|
|
18691
|
+
*
|
|
18692
|
+
* NOTE: aliased to {@link NiceSearchSuggestionFetcher} so the
|
|
18693
|
+
* `> Promise<` token sequence in the inline signature does not
|
|
18694
|
+
* trip the i18n-strings audit (which is a plain regex looking for
|
|
18695
|
+
* `> Word <` patterns).
|
|
18696
|
+
*/
|
|
18697
|
+
getSuggestions?: NiceSearchSuggestionFetcher;
|
|
18698
|
+
/**
|
|
18699
|
+
* Static list of "recent searches" — shown when the input is
|
|
18700
|
+
* focused but empty (no query to fetch suggestions for).
|
|
18701
|
+
*/
|
|
18702
|
+
recentSearches?: string[];
|
|
18703
|
+
/** Placeholder. Defaults to translated `'Search...'`. */
|
|
18704
|
+
placeholder?: string;
|
|
18705
|
+
/** Disable input + dropdown. */
|
|
18706
|
+
disabled?: boolean;
|
|
18707
|
+
}
|
|
18708
|
+
|
|
18709
|
+
/** One row in the suggestions dropdown. */
|
|
18710
|
+
export declare interface NiceSearchSuggestion {
|
|
18711
|
+
/** Stable identifier (used as React key). */
|
|
18712
|
+
id: string;
|
|
18713
|
+
/** Visible label. */
|
|
18714
|
+
label: default_2.ReactNode;
|
|
18715
|
+
/** Optional metadata renderable next to the label (e.g. icon, category). */
|
|
18716
|
+
hint?: default_2.ReactNode;
|
|
18717
|
+
}
|
|
18718
|
+
|
|
18719
|
+
/**
|
|
18720
|
+
* Async fetcher signature used by {@link NiceSearchInputProps.getSuggestions}.
|
|
18721
|
+
* Extracted to a named alias so the `> Promise<` token sequence does
|
|
18722
|
+
* not appear inline inside the props interface (where the i18n-strings
|
|
18723
|
+
* audit's `>Word<` regex would flag it as a false-positive raw label).
|
|
18724
|
+
*/
|
|
18725
|
+
declare type NiceSearchSuggestionFetcher = (query: string) => Promise<NiceSearchSuggestion[]>;
|
|
18726
|
+
|
|
18727
|
+
/**
|
|
18728
|
+
* Page section: a `<section>` element with optional title/subtitle
|
|
18729
|
+
* header, actions slot, and bottom divider. Use for grouping content
|
|
18730
|
+
* blocks on dashboards or settings pages.
|
|
18731
|
+
*/
|
|
18732
|
+
export declare const NiceSection: default_2.FC<NiceSectionProps>;
|
|
18733
|
+
|
|
18734
|
+
/** Props for {@link NiceSection} — semantic page section with header. */
|
|
18735
|
+
export declare interface NiceSectionProps extends NiceStandardProps {
|
|
18736
|
+
children: default_2.ReactNode;
|
|
18737
|
+
/** Section title rendered inside the header. */
|
|
18738
|
+
title?: string;
|
|
18739
|
+
/** Sub-title rendered below the title. */
|
|
18740
|
+
subtitle?: string;
|
|
18741
|
+
/** Header actions (typically a button group) rendered on the right. */
|
|
18742
|
+
actions?: default_2.ReactNode;
|
|
18743
|
+
/** Outer padding (number → px). */
|
|
18744
|
+
padding?: number | string;
|
|
18745
|
+
/** Render a divider line below the header. */
|
|
18746
|
+
divider?: boolean;
|
|
18747
|
+
}
|
|
18748
|
+
|
|
17388
18749
|
/**
|
|
17389
18750
|
* `NiceSegmentedControl` — single-selection toggle group with an animated
|
|
17390
18751
|
* sliding "thumb" highlight, iOS-style. The control owns a single value
|
|
@@ -17656,6 +19017,14 @@ export declare interface NiceSidebarNavProps {
|
|
|
17656
19017
|
* Default `false`.
|
|
17657
19018
|
*/
|
|
17658
19019
|
minimal?: boolean;
|
|
19020
|
+
/**
|
|
19021
|
+
* **Embedded mode** — render the sidebar inside another container (e.g. a
|
|
19022
|
+
* mobile drawer / hamburger menu). Forces full width, drops the footer with
|
|
19023
|
+
* the collapse-btn (there is nothing to collapse to inside a drawer) and
|
|
19024
|
+
* ignores `collapsed` / `width` / `collapsedWidth`. The mode strip and the
|
|
19025
|
+
* full navigation tree stay intact. Default `false`.
|
|
19026
|
+
*/
|
|
19027
|
+
embedded?: boolean;
|
|
17659
19028
|
/** Optional header slot rendered above the mode strip / tree (e.g. workspace switcher). */
|
|
17660
19029
|
header?: ReactNode;
|
|
17661
19030
|
/** Optional footer slot rendered below the standard footer-toggle row. */
|
|
@@ -17833,10 +19202,10 @@ export { NiceSize }
|
|
|
17833
19202
|
export declare const NiceSkeleton: default_2.FC<NiceSkeletonProps>;
|
|
17834
19203
|
|
|
17835
19204
|
/** Props for the {@link NiceSkeleton} component — a pulsing placeholder shown while content is loading. */
|
|
17836
|
-
export declare interface NiceSkeletonProps extends
|
|
19205
|
+
export declare interface NiceSkeletonProps extends Omit<NiceStandardProps, 'variant'> {
|
|
17837
19206
|
/** Skeleton size preset. */
|
|
17838
19207
|
size?: NiceSize;
|
|
17839
|
-
/** Shape variant: text line, circle, or rectangle. */
|
|
19208
|
+
/** Shape variant: text line, circle, or rectangle. Does NOT use `NiceVariant` palette — this is a shape selector, not a semantic intent. */
|
|
17840
19209
|
variant?: 'text' | 'circle' | 'rect';
|
|
17841
19210
|
/** Custom width (CSS value or number of pixels). */
|
|
17842
19211
|
width?: string | number;
|
|
@@ -17921,10 +19290,45 @@ export declare interface NiceSortState {
|
|
|
17921
19290
|
direction: 'asc' | 'desc';
|
|
17922
19291
|
}
|
|
17923
19292
|
|
|
19293
|
+
/**
|
|
19294
|
+
* Flexible spacing element. Drop between siblings inside a `NiceFlex`
|
|
19295
|
+
* / `NiceStack` to push them apart, or set `size` to insert a fixed
|
|
19296
|
+
* gap without touching the parent's `gap` prop.
|
|
19297
|
+
*/
|
|
19298
|
+
export declare const NiceSpacer: default_2.FC<NiceSpacerProps>;
|
|
19299
|
+
|
|
19300
|
+
export declare type NiceSpacerAxis = 'horizontal' | 'vertical' | 'both';
|
|
19301
|
+
|
|
19302
|
+
/**
|
|
19303
|
+
* Props for {@link NiceSpacer} — flexible / fixed-size whitespace inside flex layouts.
|
|
19304
|
+
*
|
|
19305
|
+
* NOTE: We deliberately omit `NiceStandardProps.size` because here `size` is a
|
|
19306
|
+
* spatial dimension (px / CSS length), not the `xs|sm|md|lg|xl` density token
|
|
19307
|
+
* that the standard prop describes.
|
|
19308
|
+
*/
|
|
19309
|
+
export declare interface NiceSpacerProps extends Omit<NiceStandardProps, 'size'> {
|
|
19310
|
+
/**
|
|
19311
|
+
* Fixed size (number → px, string → raw CSS). When set, the spacer
|
|
19312
|
+
* has a deterministic dimension and does NOT flex-grow.
|
|
19313
|
+
*/
|
|
19314
|
+
size?: number | string;
|
|
19315
|
+
/**
|
|
19316
|
+
* Flex-grow factor used when `size` is not provided. Defaults to 1
|
|
19317
|
+
* (the spacer absorbs all leftover space along the parent's main
|
|
19318
|
+
* axis).
|
|
19319
|
+
*/
|
|
19320
|
+
flex?: number;
|
|
19321
|
+
/**
|
|
19322
|
+
* Which axis the spacer expands on. `'both'` is the safe default —
|
|
19323
|
+
* the spacer adapts to whichever parent flex direction it lands in.
|
|
19324
|
+
*/
|
|
19325
|
+
axis?: NiceSpacerAxis;
|
|
19326
|
+
}
|
|
19327
|
+
|
|
17924
19328
|
export declare const NiceSparkline: default_2.FC<NiceSparklineProps>;
|
|
17925
19329
|
|
|
17926
19330
|
/** Props for the {@link NiceSparkline} component — a compact inline chart (line, bar, or area). */
|
|
17927
|
-
export declare interface NiceSparklineProps extends
|
|
19331
|
+
export declare interface NiceSparklineProps extends NiceStandardProps {
|
|
17928
19332
|
/** Data values. */
|
|
17929
19333
|
data: number[];
|
|
17930
19334
|
/** SVG width in px. */
|
|
@@ -17995,7 +19399,7 @@ export declare interface NiceSpeedDialProps extends NiceBaseProps {
|
|
|
17995
19399
|
export declare const NiceSpinner: default_2.FC<NiceSpinnerProps>;
|
|
17996
19400
|
|
|
17997
19401
|
/** Props for the {@link NiceSpinner} component — an animated loading indicator. */
|
|
17998
|
-
export declare interface NiceSpinnerProps extends
|
|
19402
|
+
export declare interface NiceSpinnerProps extends NiceStandardProps {
|
|
17999
19403
|
/** Spinner diameter. */
|
|
18000
19404
|
size?: NiceSize;
|
|
18001
19405
|
}
|
|
@@ -18144,6 +19548,39 @@ export { NiceSSEMessage }
|
|
|
18144
19548
|
|
|
18145
19549
|
export { NiceSSEMessageType }
|
|
18146
19550
|
|
|
19551
|
+
/**
|
|
19552
|
+
* Lays out children in a single column or row with a consistent gap.
|
|
19553
|
+
*
|
|
19554
|
+
* A thin wrapper over flexbox that captures the conventions we use
|
|
19555
|
+
* across the design system (spacing as a number, optional divider
|
|
19556
|
+
* between every pair) so consumers don't have to re-derive them.
|
|
19557
|
+
*/
|
|
19558
|
+
export declare const NiceStack: default_2.FC<NiceStackProps>;
|
|
19559
|
+
|
|
19560
|
+
export declare type NiceStackAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
19561
|
+
|
|
19562
|
+
export declare type NiceStackDirection = 'vertical' | 'horizontal';
|
|
19563
|
+
|
|
19564
|
+
export declare type NiceStackJustify = 'start' | 'center' | 'end' | 'space-between' | 'space-around';
|
|
19565
|
+
|
|
19566
|
+
/** Props for {@link NiceStack} — uniform-gap one-dimensional layout. */
|
|
19567
|
+
export declare interface NiceStackProps extends NiceStandardProps {
|
|
19568
|
+
/** Stack children. */
|
|
19569
|
+
children: default_2.ReactNode;
|
|
19570
|
+
/** Layout axis. */
|
|
19571
|
+
direction?: NiceStackDirection;
|
|
19572
|
+
/** Gap between items. Number → pixels, string → raw CSS value. */
|
|
19573
|
+
spacing?: number | string;
|
|
19574
|
+
/** Cross-axis alignment. */
|
|
19575
|
+
align?: NiceStackAlign;
|
|
19576
|
+
/** Main-axis alignment. */
|
|
19577
|
+
justify?: NiceStackJustify;
|
|
19578
|
+
/** Allow wrapping onto multiple lines. */
|
|
19579
|
+
wrap?: boolean;
|
|
19580
|
+
/** Optional element placed between every pair of children (e.g. `<NiceDivider />`). */
|
|
19581
|
+
divider?: default_2.ReactNode;
|
|
19582
|
+
}
|
|
19583
|
+
|
|
18147
19584
|
export { niceStaggerDelay }
|
|
18148
19585
|
|
|
18149
19586
|
export { NiceStandardFieldProps }
|
|
@@ -18184,6 +19621,37 @@ export { NiceStateIO }
|
|
|
18184
19621
|
|
|
18185
19622
|
export { NiceStateSnapshot }
|
|
18186
19623
|
|
|
19624
|
+
/**
|
|
19625
|
+
* Renders a single KPI tile: title, big value with optional pre/suffix,
|
|
19626
|
+
* and an arrow-coloured trend chip. Locale-aware number formatting via
|
|
19627
|
+
* `Intl.NumberFormat` (toLocaleString).
|
|
19628
|
+
*/
|
|
19629
|
+
export declare const NiceStatistic: default_2.FC<NiceStatisticProps>;
|
|
19630
|
+
|
|
19631
|
+
/** Props for {@link NiceStatistic} — KPI / metric tile. */
|
|
19632
|
+
export declare interface NiceStatisticProps extends NiceStandardProps {
|
|
19633
|
+
/** Metric title (e.g. "Active users"). */
|
|
19634
|
+
title: string;
|
|
19635
|
+
/** Metric value. Numbers go through `toLocaleString` for grouping. */
|
|
19636
|
+
value: number | string;
|
|
19637
|
+
/** Optional prefix glyph (e.g. currency icon). */
|
|
19638
|
+
prefix?: default_2.ReactNode;
|
|
19639
|
+
/** Optional suffix glyph (e.g. "%"). */
|
|
19640
|
+
suffix?: default_2.ReactNode;
|
|
19641
|
+
/** Decimal places when `value` is a number. */
|
|
19642
|
+
precision?: number;
|
|
19643
|
+
/** Trend chip rendered next to the value. */
|
|
19644
|
+
trend?: NiceStatisticTrend;
|
|
19645
|
+
}
|
|
19646
|
+
|
|
19647
|
+
/** Trend descriptor — direction is independent from magnitude. */
|
|
19648
|
+
export declare interface NiceStatisticTrend {
|
|
19649
|
+
/** Magnitude (typically a percentage; the component formats the symbol). */
|
|
19650
|
+
value: number;
|
|
19651
|
+
/** Up = positive movement, down = negative. */
|
|
19652
|
+
direction: 'up' | 'down';
|
|
19653
|
+
}
|
|
19654
|
+
|
|
18187
19655
|
/**
|
|
18188
19656
|
* {@link NiceStatusBadge} — Workflow status badge with semantic coloring and optional pulse animation.
|
|
18189
19657
|
*/
|
|
@@ -18252,7 +19720,7 @@ export declare interface NiceStepperStep {
|
|
|
18252
19720
|
export declare const NiceStockChart: default_2.ForwardRefExoticComponent<NiceStockChartProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
18253
19721
|
|
|
18254
19722
|
/** Props for the {@link NiceStockChart} component — an SVG candlestick / OHLC / line stock chart with optional volume bars. */
|
|
18255
|
-
export declare interface NiceStockChartProps extends
|
|
19723
|
+
export declare interface NiceStockChartProps extends NiceStandardProps {
|
|
18256
19724
|
/** OHLC data points. */
|
|
18257
19725
|
data: NiceStockDataPoint[];
|
|
18258
19726
|
/** Chart type. */
|
|
@@ -18419,6 +19887,27 @@ export declare interface NiceSurveyProps {
|
|
|
18419
19887
|
className?: string;
|
|
18420
19888
|
}
|
|
18421
19889
|
|
|
19890
|
+
/**
|
|
19891
|
+
* Drop-in replacement for `<React.Suspense>` with a `delay` knob to
|
|
19892
|
+
* avoid the "spinner flash" anti-pattern. Internally we suspend on
|
|
19893
|
+
* the React component, then gate the fallback on a `setTimeout` so
|
|
19894
|
+
* we only render the visual fallback once the wait exceeds `delay`.
|
|
19895
|
+
*/
|
|
19896
|
+
export declare const NiceSuspense: default_2.FC<NiceSuspenseProps>;
|
|
19897
|
+
|
|
19898
|
+
/** Props for {@link NiceSuspense} — React.Suspense with an optional delayed fallback. */
|
|
19899
|
+
export declare interface NiceSuspenseProps extends NiceStandardProps {
|
|
19900
|
+
children: default_2.ReactNode;
|
|
19901
|
+
/** Element shown while children are suspended. */
|
|
19902
|
+
fallback?: default_2.ReactNode;
|
|
19903
|
+
/**
|
|
19904
|
+
* Delay (ms) before the fallback appears — prevents flash of
|
|
19905
|
+
* spinner for fast resolves. When 0 the fallback shows immediately
|
|
19906
|
+
* (matches the React.Suspense default).
|
|
19907
|
+
*/
|
|
19908
|
+
delay?: number;
|
|
19909
|
+
}
|
|
19910
|
+
|
|
18422
19911
|
/** Swap event payload. */
|
|
18423
19912
|
export declare interface NiceSwapEvent {
|
|
18424
19913
|
type: SwapEventType;
|
|
@@ -18436,6 +19925,32 @@ export { NiceSwipeableListItem }
|
|
|
18436
19925
|
|
|
18437
19926
|
export { NiceSwipeableListItemProps }
|
|
18438
19927
|
|
|
19928
|
+
/**
|
|
19929
|
+
* Pointer-driven swipe card (Tinder-style). Uses `onPointerDown/Move/Up`
|
|
19930
|
+
* for unified touch + mouse + pen handling. Commits a swipe when the
|
|
19931
|
+
* release distance crosses `threshold` along the dominant axis; below
|
|
19932
|
+
* threshold the card springs back to centre.
|
|
19933
|
+
*
|
|
19934
|
+
* Keyboard fallback: arrow keys fire the corresponding `onSwipe*`
|
|
19935
|
+
* callbacks so the component is usable without a touch device.
|
|
19936
|
+
*/
|
|
19937
|
+
export declare const NiceSwipeCard: default_2.FC<NiceSwipeCardProps>;
|
|
19938
|
+
|
|
19939
|
+
/** Props for {@link NiceSwipeCard} — touch/mouse-draggable card. */
|
|
19940
|
+
export declare interface NiceSwipeCardProps extends NiceStandardProps {
|
|
19941
|
+
children: default_2.ReactNode;
|
|
19942
|
+
onSwipeLeft?: () => void;
|
|
19943
|
+
onSwipeRight?: () => void;
|
|
19944
|
+
onSwipeUp?: () => void;
|
|
19945
|
+
onSwipeDown?: () => void;
|
|
19946
|
+
/** Pixel distance required before a release commits as a swipe. */
|
|
19947
|
+
threshold?: number;
|
|
19948
|
+
/** Render a translucent left/right hint overlay during drag. */
|
|
19949
|
+
showOverlay?: boolean;
|
|
19950
|
+
/** Disable interaction entirely (card stays static). */
|
|
19951
|
+
disabled?: boolean;
|
|
19952
|
+
}
|
|
19953
|
+
|
|
18439
19954
|
/** A system-tray icon in the {@link NiceDesktop} clock area. */
|
|
18440
19955
|
export declare interface NiceSystemTrayItem {
|
|
18441
19956
|
/** Unique key. */
|
|
@@ -18448,6 +19963,54 @@ export declare interface NiceSystemTrayItem {
|
|
|
18448
19963
|
onClick?: () => void;
|
|
18449
19964
|
}
|
|
18450
19965
|
|
|
19966
|
+
/**
|
|
19967
|
+
* Tab bar for navigating between top-level app sections — the
|
|
19968
|
+
* counterpart of `NiceTabs` (which is for tabbed content panes).
|
|
19969
|
+
* Uses the standard ARIA `tablist` + `tab` + `aria-selected` pattern.
|
|
19970
|
+
*
|
|
19971
|
+
* Arrow keys + Home/End move focus between tabs (the canonical tab
|
|
19972
|
+
* keyboard pattern); Tab key escapes the tablist as usual.
|
|
19973
|
+
*/
|
|
19974
|
+
export declare const NiceTabBar: default_2.FC<NiceTabBarProps>;
|
|
19975
|
+
|
|
19976
|
+
/**
|
|
19977
|
+
* Props for {@link NiceTabBar} — top-level section nav, not content tabs.
|
|
19978
|
+
*
|
|
19979
|
+
* `variant` omitted from the standard prop bag because here it's a
|
|
19980
|
+
* local visual style (`default` / `pills` / `underline`), not the
|
|
19981
|
+
* design-system `NiceVariant`.
|
|
19982
|
+
*/
|
|
19983
|
+
export declare interface NiceTabBarProps extends Omit<NiceStandardProps, 'variant'> {
|
|
19984
|
+
/** Tab list. */
|
|
19985
|
+
tabs: NiceTabBarTab[];
|
|
19986
|
+
/** Currently selected tab id (uncontrolled when omitted). */
|
|
19987
|
+
activeTab?: string;
|
|
19988
|
+
/** Fires on selection change. */
|
|
19989
|
+
onChange?: (tabId: string) => void;
|
|
19990
|
+
/** Visual variant. */
|
|
19991
|
+
variant?: NiceTabBarVariant;
|
|
19992
|
+
/** Tab size scale. */
|
|
19993
|
+
size?: NiceSize;
|
|
19994
|
+
/** Render icons next to the labels. */
|
|
19995
|
+
showIcons?: boolean;
|
|
19996
|
+
/** Stretch tabs to fill the available width. */
|
|
19997
|
+
stretch?: boolean;
|
|
19998
|
+
}
|
|
19999
|
+
|
|
20000
|
+
/** Single tab definition. */
|
|
20001
|
+
export declare interface NiceTabBarTab {
|
|
20002
|
+
/** Stable identifier (used in `activeTab` / `onChange`). */
|
|
20003
|
+
id: string;
|
|
20004
|
+
/** Display label. */
|
|
20005
|
+
label: default_2.ReactNode;
|
|
20006
|
+
/** Optional icon node — visibility gated by `showIcons`. */
|
|
20007
|
+
icon?: default_2.ReactNode;
|
|
20008
|
+
/** Disable selection. */
|
|
20009
|
+
disabled?: boolean;
|
|
20010
|
+
}
|
|
20011
|
+
|
|
20012
|
+
export declare type NiceTabBarVariant = 'default' | 'pills' | 'underline';
|
|
20013
|
+
|
|
18451
20014
|
export { NiceTabDescriptor }
|
|
18452
20015
|
|
|
18453
20016
|
/** Definition of a single tab in a {@link NiceTabs} component. */
|
|
@@ -18581,8 +20144,44 @@ export declare interface NiceTagBoxProps extends NiceFormFieldProps {
|
|
|
18581
20144
|
autoExpand?: boolean;
|
|
18582
20145
|
}
|
|
18583
20146
|
|
|
20147
|
+
/**
|
|
20148
|
+
* Tag (chip) input. Each committed value renders as a removable chip;
|
|
20149
|
+
* the trailing `<input>` collects new entries. Commit happens on:
|
|
20150
|
+
* - Enter
|
|
20151
|
+
* - the `separator` character
|
|
20152
|
+
* - paste containing one or more `separator`-joined tokens
|
|
20153
|
+
*
|
|
20154
|
+
* Backspace on an empty input deletes the last tag — the canonical
|
|
20155
|
+
* "tag input" affordance.
|
|
20156
|
+
*/
|
|
20157
|
+
export declare const NiceTagInput: default_2.FC<NiceTagInputProps>;
|
|
20158
|
+
|
|
20159
|
+
/** Props for {@link NiceTagInput} — multi-value input rendering tags + textbox. */
|
|
20160
|
+
export declare interface NiceTagInputProps extends NiceStandardProps {
|
|
20161
|
+
/** Controlled tag list. */
|
|
20162
|
+
value: string[];
|
|
20163
|
+
/** Fires on every change. */
|
|
20164
|
+
onChange: (tags: string[]) => void;
|
|
20165
|
+
/** Suggestions shown below the input as filterable dropdown. */
|
|
20166
|
+
suggestions?: string[];
|
|
20167
|
+
/** Hard cap on tag count. New entries beyond `maxTags` are rejected. */
|
|
20168
|
+
maxTags?: number;
|
|
20169
|
+
/** When `true`, identical tags can be added more than once. */
|
|
20170
|
+
allowDuplicates?: boolean;
|
|
20171
|
+
/**
|
|
20172
|
+
* Separator character — used both for splitting paste payloads
|
|
20173
|
+
* AND as an additional commit key in the input (e.g. typing `,`
|
|
20174
|
+
* commits the current draft as a tag).
|
|
20175
|
+
*/
|
|
20176
|
+
separator?: string;
|
|
20177
|
+
/** Input placeholder. */
|
|
20178
|
+
placeholder?: string;
|
|
20179
|
+
/** Disable everything. */
|
|
20180
|
+
disabled?: boolean;
|
|
20181
|
+
}
|
|
20182
|
+
|
|
18584
20183
|
/** Props for the {@link NiceTag} component — a compact label used for categorization or selection. */
|
|
18585
|
-
export declare interface NiceTagProps extends
|
|
20184
|
+
export declare interface NiceTagProps extends NiceStandardProps {
|
|
18586
20185
|
/** Tag size. */
|
|
18587
20186
|
size?: NiceSize;
|
|
18588
20187
|
/** Tag content. */
|
|
@@ -18726,7 +20325,7 @@ export declare interface NiceTerminalLine {
|
|
|
18726
20325
|
export declare const NiceTerminalUI: ForwardRefExoticComponent<NiceTerminalUIProps & RefAttributes<HTMLDivElement>>;
|
|
18727
20326
|
|
|
18728
20327
|
/** Props for the {@link NiceTerminalUI} component — a retro terminal / console emulator. */
|
|
18729
|
-
export declare interface NiceTerminalUIProps extends
|
|
20328
|
+
export declare interface NiceTerminalUIProps extends NiceStandardProps {
|
|
18730
20329
|
/** Pre-loaded lines of output. */
|
|
18731
20330
|
lines?: NiceTerminalLine[];
|
|
18732
20331
|
/** Command prompt string (default: "$"). */
|
|
@@ -18852,10 +20451,14 @@ export declare interface NiceThemeBuilderProps extends NiceBaseProps {
|
|
|
18852
20451
|
livePreview?: boolean;
|
|
18853
20452
|
/** Currently focused token from NiceThemePreview (auto-switches section + scrolls) */
|
|
18854
20453
|
focusedToken?: string;
|
|
20454
|
+
/** Show the embedded NiceThemePreview pane (default: true) */
|
|
20455
|
+
showPreview?: boolean;
|
|
20456
|
+
/** Layout placement of the preview pane (default: 'right') */
|
|
20457
|
+
previewPlacement?: 'right' | 'bottom';
|
|
18855
20458
|
}
|
|
18856
20459
|
|
|
18857
20460
|
/** Editable sections in the {@link NiceThemeBuilder}. */
|
|
18858
|
-
export declare type NiceThemeBuilderSection = 'general' | 'colors' | 'backgrounds' | 'background-image' | 'text' | 'borders' | 'spacing' | 'typography' | 'shadows' | 'transitions';
|
|
20461
|
+
export declare type NiceThemeBuilderSection = 'general' | 'colors' | 'backgrounds' | 'background-image' | 'text' | 'borders' | 'spacing' | 'typography' | 'shadows' | 'transitions' | 'nesting';
|
|
18859
20462
|
|
|
18860
20463
|
export { NiceThemeColors }
|
|
18861
20464
|
|
|
@@ -19004,6 +20607,12 @@ export declare interface NiceThemePickerProps extends NiceFormFieldProps, DualVi
|
|
|
19004
20607
|
* dropdown alignment. Default: false.
|
|
19005
20608
|
*/
|
|
19006
20609
|
compact?: boolean;
|
|
20610
|
+
/**
|
|
20611
|
+
* Visual variant. `'ghost'` removes border, background and the dropdown
|
|
20612
|
+
* arrow — only the preview swatch is shown. Designed for dense toolbars
|
|
20613
|
+
* (e.g. NiceTopNav narrow mode). Default: `'default'`.
|
|
20614
|
+
*/
|
|
20615
|
+
variant?: 'default' | 'ghost';
|
|
19007
20616
|
/** Dropdown horizontal alignment. Default: `'auto'` in compact, `'left'` otherwise. */
|
|
19008
20617
|
dropdownAlign?: DropdownAlign;
|
|
19009
20618
|
/**
|
|
@@ -19166,7 +20775,7 @@ export declare interface NiceTimelineItem {
|
|
|
19166
20775
|
}
|
|
19167
20776
|
|
|
19168
20777
|
/** Props for the {@link NiceTimeline} component — a vertical or horizontal timeline of events. */
|
|
19169
|
-
export declare interface NiceTimelineProps extends
|
|
20778
|
+
export declare interface NiceTimelineProps extends NiceStandardProps {
|
|
19170
20779
|
/** Timeline entries. */
|
|
19171
20780
|
items: NiceTimelineItem[];
|
|
19172
20781
|
/** Layout mode */
|
|
@@ -19179,7 +20788,7 @@ export declare interface NiceTimelineProps extends NiceBaseProps {
|
|
|
19179
20788
|
|
|
19180
20789
|
export declare const NiceTimeoutFeedback: default_2.FC<NiceTimeoutFeedbackProps>;
|
|
19181
20790
|
|
|
19182
|
-
export declare interface NiceTimeoutFeedbackProps extends
|
|
20791
|
+
export declare interface NiceTimeoutFeedbackProps extends NiceStandardProps {
|
|
19183
20792
|
size?: NiceSize;
|
|
19184
20793
|
timeoutMs?: number;
|
|
19185
20794
|
slowThresholdMs?: number;
|
|
@@ -19226,7 +20835,7 @@ export declare interface NiceTimePickerProps extends NiceFormFieldProps {
|
|
|
19226
20835
|
/** Show a live countdown label beside the picker. */
|
|
19227
20836
|
countdown?: boolean;
|
|
19228
20837
|
/** Built-in countdown format preset (default `'verbose'`). */
|
|
19229
|
-
countdownFormat?:
|
|
20838
|
+
countdownFormat?: NiceCountdownFormat_2;
|
|
19230
20839
|
/** Custom formatter (overrides {@link countdownFormat}). */
|
|
19231
20840
|
formatCountdown?: (msRemaining: number, target: Date) => string;
|
|
19232
20841
|
/** Label rendered before the countdown text (e.g. `'starts in'`). */
|
|
@@ -19255,6 +20864,45 @@ export declare interface NiceToastItem {
|
|
|
19255
20864
|
|
|
19256
20865
|
export declare const NiceToggle: default_2.ForwardRefExoticComponent<NiceToggleProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
19257
20866
|
|
|
20867
|
+
/**
|
|
20868
|
+
* Toggle-button group with single OR multiple selection. Uses native
|
|
20869
|
+
* `<button>` with `aria-pressed` per item (the canonical ARIA pattern
|
|
20870
|
+
* for "toggle buttons" — `role="radio"` would be wrong because items
|
|
20871
|
+
* are independently activatable when `type="multiple"`).
|
|
20872
|
+
*/
|
|
20873
|
+
export declare const NiceToggleGroup: default_2.FC<NiceToggleGroupProps> & {
|
|
20874
|
+
Item: default_2.FC<NiceToggleGroupItemProps>;
|
|
20875
|
+
};
|
|
20876
|
+
|
|
20877
|
+
/** Props for `<NiceToggleGroup.Item>` — single button inside the group. */
|
|
20878
|
+
export declare interface NiceToggleGroupItemProps {
|
|
20879
|
+
/** Identifier this item registers under. */
|
|
20880
|
+
value: string;
|
|
20881
|
+
children: default_2.ReactNode;
|
|
20882
|
+
/** Disable just this item (group `disabled` still wins when true). */
|
|
20883
|
+
disabled?: boolean;
|
|
20884
|
+
}
|
|
20885
|
+
|
|
20886
|
+
/** Props for {@link NiceToggleGroup} — toggle-button set, single OR multi-select. */
|
|
20887
|
+
export declare interface NiceToggleGroupProps extends NiceStandardProps {
|
|
20888
|
+
children: default_2.ReactNode;
|
|
20889
|
+
/** Selection mode. */
|
|
20890
|
+
type?: NiceToggleGroupType;
|
|
20891
|
+
/**
|
|
20892
|
+
* Controlled selected value(s). String for `type="single"`,
|
|
20893
|
+
* `string[]` for `type="multiple"`.
|
|
20894
|
+
*/
|
|
20895
|
+
value?: string | string[];
|
|
20896
|
+
/** Default selection (uncontrolled). */
|
|
20897
|
+
defaultValue?: string | string[];
|
|
20898
|
+
/** Disable every item. */
|
|
20899
|
+
disabled?: boolean;
|
|
20900
|
+
/** Fires whenever selection changes. */
|
|
20901
|
+
onChange?: (value: string | string[]) => void;
|
|
20902
|
+
}
|
|
20903
|
+
|
|
20904
|
+
export declare type NiceToggleGroupType = 'single' | 'multiple';
|
|
20905
|
+
|
|
19258
20906
|
/** Props for the {@link NiceToggle} component — a boolean switch/toggle. */
|
|
19259
20907
|
export declare interface NiceToggleProps extends NiceBaseProps {
|
|
19260
20908
|
/** Toggle label. */
|
|
@@ -19523,6 +21171,33 @@ export declare interface NiceTopNavProps {
|
|
|
19523
21171
|
userMenu?: NiceTopNavMenuItem[];
|
|
19524
21172
|
onProfile?: () => void;
|
|
19525
21173
|
onLogout?: () => void;
|
|
21174
|
+
/**
|
|
21175
|
+
* Whether to render the workspace `<select>` row above the navigation tree
|
|
21176
|
+
* in the hamburger pull-down panel. Visibility is ALWAYS prop-controlled
|
|
21177
|
+
* (not auto-derived from `mobilePanels.length`) — consumers decide when it
|
|
21178
|
+
* makes sense to show it. Requires signed-in `user`. Default: `false`.
|
|
21179
|
+
*/
|
|
21180
|
+
showMobilePanelSelector?: boolean;
|
|
21181
|
+
/** List of panels/workspaces the user has access to. */
|
|
21182
|
+
mobilePanels?: Array<{
|
|
21183
|
+
id: string;
|
|
21184
|
+
label: string;
|
|
21185
|
+
icon?: default_2.ReactNode;
|
|
21186
|
+
}>;
|
|
21187
|
+
/** Currently active panel id (controls the workspace `<select>` value). */
|
|
21188
|
+
activeMobilePanelId?: string;
|
|
21189
|
+
/** Notified when user picks a different panel from the workspace selector. */
|
|
21190
|
+
onMobilePanelChange?: (id: string) => void;
|
|
21191
|
+
/**
|
|
21192
|
+
* Render a mode toolbar (favorites / all / …) row above the navigation
|
|
21193
|
+
* in the hamburger pull-down panel. Requires signed-in `user`. NOTE: when
|
|
21194
|
+
* panel renders `<NiceSidebarNav embedded enableModeIcons>` (i.e. you
|
|
21195
|
+
* pass `sidebarData`), the sidebar already has its own mode strip — leave
|
|
21196
|
+
* this `false` for that branch to avoid a duplicate bar. Default: `false`.
|
|
21197
|
+
*/
|
|
21198
|
+
showMobilePanelModes?: boolean;
|
|
21199
|
+
/** Optional custom mode toolbar; replaces the default cosmetic pills. */
|
|
21200
|
+
mobilePanelModes?: default_2.ReactNode;
|
|
19526
21201
|
showLogin?: boolean;
|
|
19527
21202
|
loginLabel?: string;
|
|
19528
21203
|
onLoginClick?: () => void;
|
|
@@ -19556,6 +21231,26 @@ export declare interface NiceTopNavProps {
|
|
|
19556
21231
|
rightClusterDefaultOpen?: boolean;
|
|
19557
21232
|
leftContent?: default_2.ReactNode;
|
|
19558
21233
|
rightContent?: default_2.ReactNode;
|
|
21234
|
+
/**
|
|
21235
|
+
* Full navigation data shared with `NiceSidebarNav`. When provided, the
|
|
21236
|
+
* hamburger drawer renders an embedded `NiceSidebarNav` (full mode strip +
|
|
21237
|
+
* multi-level tree + search/favorites/preferences) instead of the legacy
|
|
21238
|
+
* flat menu. Lets a parent shell drive both the desktop sidebar and the
|
|
21239
|
+
* mobile hamburger from one model.
|
|
21240
|
+
*/
|
|
21241
|
+
sidebarData?: SidebarNavDataNode[];
|
|
21242
|
+
/** User id forwarded to the embedded `NiceSidebarNav` (preferences scope). */
|
|
21243
|
+
sidebarUserId?: string;
|
|
21244
|
+
/** Active route highlighted in the mobile sidebar drawer. */
|
|
21245
|
+
sidebarActiveRoute?: string;
|
|
21246
|
+
/** Fired when a view is clicked in the mobile sidebar drawer. Closes the drawer. */
|
|
21247
|
+
onSidebarNavigate?: (route: string, view: SidebarNavView) => void;
|
|
21248
|
+
/**
|
|
21249
|
+
* Force the narrow "2-row" mobile layout regardless of viewport width. Use
|
|
21250
|
+
* from `NiceNavShell` to keep the breakpoint decision in one place when the
|
|
21251
|
+
* shell already hides the sidebar.
|
|
21252
|
+
*/
|
|
21253
|
+
forceMobileLayout?: boolean;
|
|
19559
21254
|
className?: string;
|
|
19560
21255
|
style?: default_2.CSSProperties;
|
|
19561
21256
|
id?: string;
|
|
@@ -19739,7 +21434,7 @@ export declare const NiceTreeMap: default_2.ForwardRefExoticComponent<NiceTreeMa
|
|
|
19739
21434
|
|
|
19740
21435
|
export declare const NiceTreeMapChart: default_2.FC<NiceTreeMapChartProps>;
|
|
19741
21436
|
|
|
19742
|
-
export declare interface NiceTreeMapChartProps extends
|
|
21437
|
+
export declare interface NiceTreeMapChartProps extends NiceStandardProps {
|
|
19743
21438
|
/** Dane hierarchiczne. Można też podać płaską listę — zostanie opakowana w wirtualny korzeń. */
|
|
19744
21439
|
data: TreeMapNode | Array<{
|
|
19745
21440
|
label?: string;
|
|
@@ -19780,7 +21475,7 @@ export declare interface NiceTreeMapNode {
|
|
|
19780
21475
|
}
|
|
19781
21476
|
|
|
19782
21477
|
/** Props for the {@link NiceTreeMap} component — a squarified treemap visualization. */
|
|
19783
|
-
export declare interface NiceTreeMapProps extends
|
|
21478
|
+
export declare interface NiceTreeMapProps extends NiceStandardProps {
|
|
19784
21479
|
/** Root node. */
|
|
19785
21480
|
data: NiceTreeMapNode;
|
|
19786
21481
|
/** SVG width in px. */
|
|
@@ -19839,6 +21534,11 @@ export declare interface NiceTreeSelectProps extends NiceFormFieldProps {
|
|
|
19839
21534
|
/** Only allow selection of leaf nodes */
|
|
19840
21535
|
selectableLeafsOnly?: boolean;
|
|
19841
21536
|
clearable?: boolean;
|
|
21537
|
+
/**
|
|
21538
|
+
* Maximum nesting depth rendered (1..10). Beyond this, nodes are treated as
|
|
21539
|
+
* leaves (children not rendered, no expand toggle). Default: unlimited.
|
|
21540
|
+
*/
|
|
21541
|
+
maxDepth?: number;
|
|
19842
21542
|
}
|
|
19843
21543
|
|
|
19844
21544
|
export declare const NiceTreeView: default_2.FC<NiceTreeViewProps>;
|
|
@@ -19885,6 +21585,47 @@ export declare interface NiceTreeViewProps extends NiceBaseProps {
|
|
|
19885
21585
|
editable?: boolean;
|
|
19886
21586
|
/** Called when a node label is edited. */
|
|
19887
21587
|
onNodeEdit?: (key: string, newText: string) => void;
|
|
21588
|
+
/**
|
|
21589
|
+
* Maximum nesting depth rendered (1..10). Beyond this, nodes are treated as
|
|
21590
|
+
* leaves (children not rendered, no expand toggle). Default: unlimited.
|
|
21591
|
+
*/
|
|
21592
|
+
maxDepth?: number;
|
|
21593
|
+
}
|
|
21594
|
+
|
|
21595
|
+
/**
|
|
21596
|
+
* Clamps text to N lines using the modern `-webkit-line-clamp`
|
|
21597
|
+
* pattern and optionally exposes a Show more / Show less toggle.
|
|
21598
|
+
*
|
|
21599
|
+
* The button labels go through `useNiceTranslation()` so the
|
|
21600
|
+
* component stays consistent with the rest of the i18n system; if
|
|
21601
|
+
* you pass `expandText` / `collapseText` explicitly they take
|
|
21602
|
+
* precedence and skip the lookup.
|
|
21603
|
+
*/
|
|
21604
|
+
export declare const NiceTruncate: default_2.FC<NiceTruncateProps>;
|
|
21605
|
+
|
|
21606
|
+
/** Props for {@link NiceTruncate} — multi-line text clamp with optional expand. */
|
|
21607
|
+
export declare interface NiceTruncateProps extends NiceStandardProps {
|
|
21608
|
+
/** Text content to clamp. */
|
|
21609
|
+
children: string;
|
|
21610
|
+
/** Max line count before truncation kicks in. Defaults to 1. */
|
|
21611
|
+
lines?: number;
|
|
21612
|
+
/** Render an "expand" toggle that reveals the full text. */
|
|
21613
|
+
expandable?: boolean;
|
|
21614
|
+
/**
|
|
21615
|
+
* Label for the expand button. Falls back to the translated default
|
|
21616
|
+
* (`truncate.expand`) so it follows the global language picker.
|
|
21617
|
+
*/
|
|
21618
|
+
expandText?: string;
|
|
21619
|
+
/**
|
|
21620
|
+
* Label for the collapse button. Falls back to the translated
|
|
21621
|
+
* default (`truncate.collapse`).
|
|
21622
|
+
*/
|
|
21623
|
+
collapseText?: string;
|
|
21624
|
+
/**
|
|
21625
|
+
* When `true`, the full text becomes the element's `title`
|
|
21626
|
+
* attribute so the browser native tooltip surfaces it on hover.
|
|
21627
|
+
*/
|
|
21628
|
+
tooltip?: boolean;
|
|
19888
21629
|
}
|
|
19889
21630
|
|
|
19890
21631
|
export declare const NiceTutorial: default_2.FC<NiceTutorialProps>;
|
|
@@ -20293,7 +22034,7 @@ export declare interface NiceVatInputProps extends NiceFormFieldProps {
|
|
|
20293
22034
|
export declare const NiceVectorMap: default_2.FC<NiceVectorMapProps>;
|
|
20294
22035
|
|
|
20295
22036
|
/** Props for the {@link NiceVectorMap} component — an SVG choropleth map with region selection and tooltips. */
|
|
20296
|
-
export declare interface NiceVectorMapProps extends
|
|
22037
|
+
export declare interface NiceVectorMapProps extends NiceStandardProps {
|
|
20297
22038
|
/** Region definitions. */
|
|
20298
22039
|
regions: NiceMapRegion[];
|
|
20299
22040
|
/** SVG width in px. */
|
|
@@ -20873,7 +22614,7 @@ export declare const NiceVirtualScroller: <T>(props: NiceVirtualScrollerProps<T>
|
|
|
20873
22614
|
}) => default_2.ReactElement | null;
|
|
20874
22615
|
|
|
20875
22616
|
/** Props for the {@link NiceVirtualScroller} component — renders large lists efficiently by only mounting visible items. */
|
|
20876
|
-
export declare interface NiceVirtualScrollerProps<T = unknown> extends
|
|
22617
|
+
export declare interface NiceVirtualScrollerProps<T = unknown> extends NiceStandardProps {
|
|
20877
22618
|
/** Data items to render */
|
|
20878
22619
|
items: T[];
|
|
20879
22620
|
/** Fixed height of each item in pixels */
|
|
@@ -23415,7 +25156,7 @@ export declare interface SidebarNavHiddenItem {
|
|
|
23415
25156
|
}
|
|
23416
25157
|
|
|
23417
25158
|
/** Display mode for the sidebar navigation */
|
|
23418
|
-
export declare type SidebarNavMode = 'all' | 'by-role' | 'by-unit' | 'favorites' | 'preferences';
|
|
25159
|
+
export declare type SidebarNavMode = 'all' | 'by-role' | 'by-unit' | 'favorites' | 'search' | 'preferences';
|
|
23419
25160
|
|
|
23420
25161
|
/** A module containing multiple views */
|
|
23421
25162
|
export declare interface SidebarNavModule {
|