@nice2dev/ui 1.0.6 → 1.0.10
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/dist/NiceAPIFlow.doc-DnQLPUie.js +30 -0
- package/dist/NiceAPIFlow.doc-Dx4qw1lm.cjs +6 -0
- package/dist/NiceBranchManager.doc-BXjiENlD.cjs +6 -0
- package/dist/NiceBranchManager.doc-xLB82YwU.js +30 -0
- package/dist/NiceButton-CDiS45Ya.cjs +1 -0
- package/dist/NiceButton-D9l39Rs7.js +595 -0
- package/dist/NiceCodeTemplate.doc-BWxTE4C_.cjs +6 -0
- package/dist/NiceCodeTemplate.doc-CA2U5F-v.js +30 -0
- package/dist/NiceDataBranchGraph.doc-CkitupWc.js +29 -0
- package/dist/NiceDataBranchGraph.doc-DDUgipqH.cjs +5 -0
- package/dist/NiceDataBranchManager.doc-B0ODKOs4.js +30 -0
- package/dist/NiceDataBranchManager.doc-CC5o8ihs.cjs +6 -0
- package/dist/NiceDataConflictResolver.doc-CdzScNie.cjs +5 -0
- package/dist/NiceDataConflictResolver.doc-V8vxYAeo.js +29 -0
- package/dist/NiceDataDiffViewer.doc-CR14Bq3A.cjs +6 -0
- package/dist/NiceDataDiffViewer.doc-w2I2QjhX.js +30 -0
- package/dist/NiceDataMapper.doc-C7jSyHRM.js +30 -0
- package/dist/NiceDataMapper.doc-DXjQHz87.cjs +6 -0
- package/dist/NiceDataMergeBuilder.doc-CV32WC_w.cjs +6 -0
- package/dist/NiceDataMergeBuilder.doc-DtuYb3nx.js +30 -0
- package/dist/NiceDataSnapshot.doc-CFLkY3ry.js +30 -0
- package/dist/NiceDataSnapshot.doc-CpZyQ17u.cjs +6 -0
- package/dist/NiceErrorBoundary-B5nF-OVn.cjs +1 -0
- package/dist/NiceErrorBoundary-BAeqfoSc.cjs +1 -0
- package/dist/NiceErrorBoundary-D75yr_WE.js +762 -0
- package/dist/NiceErrorBoundary-niMx1aSJ.js +837 -0
- package/dist/NiceEventOrchestrator.doc-C4SJfIDV.js +30 -0
- package/dist/NiceEventOrchestrator.doc-CxjsLxBG.cjs +6 -0
- package/dist/NiceForm-CKoJA6NG.js +5131 -0
- package/dist/NiceForm-D7xnpnRJ.cjs +382 -0
- package/dist/NiceForm.css +1 -0
- package/dist/NiceGitBlame.doc-BG3_K9_0.cjs +6 -0
- package/dist/NiceGitBlame.doc-DrJABEat.js +30 -0
- package/dist/NiceGitConflictResolver.doc-BK7hAfz6.js +30 -0
- package/dist/NiceGitConflictResolver.doc-CgroGM9_.cjs +6 -0
- package/dist/NiceGitDiffViewer.doc-BAwgcY_3.cjs +6 -0
- package/dist/NiceGitDiffViewer.doc-BXKJeP-E.js +30 -0
- package/dist/NiceGitGraph.doc-B-WtGuzn.cjs +5 -0
- package/dist/NiceGitGraph.doc-DxnDPCgC.js +29 -0
- package/dist/NiceGitHooks.doc-BrEizvMp.js +29 -0
- package/dist/NiceGitHooks.doc-C4EdV5zj.cjs +5 -0
- package/dist/NiceMergeRequestBuilder.doc-C5p8mYuh.cjs +6 -0
- package/dist/NiceMergeRequestBuilder.doc-Ct9RCmU8.js +30 -0
- package/dist/NiceModal-1QX7NhyH.js +95 -0
- package/dist/NiceModal-CAwsKVQ2.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-Brg1RLwi.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-C9xMSjOF.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-CMrPbSw9.js +5249 -0
- package/dist/NiceModuleLifecyclePanel-I_TXRiiY.js +5053 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -0
- package/dist/NicePagination-DbE-uOkl.js +171 -0
- package/dist/NicePagination-DlealakT.cjs +1 -0
- package/dist/NicePinCodeInput-B8cI8zu8.js +11830 -0
- package/dist/NicePinCodeInput-CrMfdxxc.js +15287 -0
- package/dist/NicePinCodeInput-D0aF9MK8.cjs +692 -0
- package/dist/NicePinCodeInput-SGQaHvpE.cjs +419 -0
- package/dist/NicePinCodeInput.css +1 -1
- package/dist/NicePipelineEditor.doc-0eGt8zbX.cjs +5 -0
- package/dist/NicePipelineEditor.doc-DTmaOebn.js +29 -0
- package/dist/NicePipelineMonitor.doc-67CmsRcf.cjs +5 -0
- package/dist/NicePipelineMonitor.doc-mSMdhuG8.js +29 -0
- package/dist/NiceSavedQueryPanel-BZNvqSQW.cjs +596 -0
- package/dist/NiceSavedQueryPanel-CUAsdOjJ.js +6190 -0
- package/dist/NiceSavedQueryPanel-CZ5bYOe_.js +6449 -0
- package/dist/NiceSavedQueryPanel-Ce2s060j.cjs +596 -0
- package/dist/NiceStateDesigner.doc-B36u0hNU.js +29 -0
- package/dist/NiceStateDesigner.doc-MPmvNHSx.cjs +5 -0
- package/dist/NiceTabs-DvOmxKyQ.cjs +1 -0
- package/dist/NiceTabs-DzLHzwuA.js +1636 -0
- package/dist/NiceTestBuilder.doc-BFInj8GJ.js +30 -0
- package/dist/NiceTestBuilder.doc-CB03U_uR.cjs +6 -0
- package/dist/NiceToggle-CaY1u82g.js +277 -0
- package/dist/NiceToggle-DFJFQv_Z.cjs +1 -0
- package/dist/NiceWindow-CVgkxcCz.cjs +1 -0
- package/dist/NiceWindow-DeC83yfE.js +1409 -0
- package/dist/NiceWindow-IdHAcP70.cjs +1 -0
- package/dist/NiceWindow-SiCaREbq.js +1408 -0
- package/dist/charts-BAS21jkC.js +4621 -0
- package/dist/charts-Bx_kNBsE.js +4280 -0
- package/dist/charts-DECVsCHX.cjs +754 -0
- package/dist/charts-DShUbWrP.cjs +759 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.css +1 -0
- package/dist/charts.d.ts +45 -48
- package/dist/charts.mjs +1 -1
- package/dist/core-BZBTsGWN.cjs +96 -0
- package/dist/core-BpghV7Ls.js +17555 -0
- package/dist/core-C2ZmWe_u.cjs +96 -0
- package/dist/core-Da43q-pO.js +22094 -0
- package/dist/data-branching-CJlrg8qf.cjs +1 -0
- package/dist/data-branching-DCUwI53s.js +6121 -0
- package/dist/data-branching-De4ExX-S.cjs +1 -0
- package/dist/data-branching-DiRfob1f.js +6071 -0
- package/dist/data-branching.cjs +1 -0
- package/dist/data-branching.d.ts +364 -0
- package/dist/data-branching.mjs +9 -0
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +206 -192
- package/dist/data.mjs +1 -1
- package/dist/devops-BnYinjkT.cjs +17 -0
- package/dist/devops-CXynFG3X.cjs +17 -0
- package/dist/devops-Ckh57eti.js +7198 -0
- package/dist/devops-D0TfzV5B.js +7660 -0
- package/dist/devops.cjs +1 -0
- package/dist/devops.d.ts +721 -0
- package/dist/devops.mjs +12 -0
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +311 -393
- package/dist/editors.mjs +61 -64
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +3 -44
- package/dist/feedback.mjs +11 -10
- package/dist/index-B8wxZ8Ps.cjs +5192 -0
- package/dist/index-CBIZ6mTQ.cjs +5734 -0
- package/dist/index-CIl98Vbm.js +72951 -0
- package/dist/index-pAuGTbuB.js +57319 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4673 -10015
- package/dist/index.mjs +880 -969
- package/dist/lazy.cjs +1 -0
- package/dist/lazy.d.ts +1848 -0
- package/dist/lazy.mjs +98 -0
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +151 -216
- package/dist/navigation.mjs +111 -48
- package/dist/no-code-B5bzduNP.cjs +332 -0
- package/dist/no-code-BCuadkm4.cjs +332 -0
- package/dist/no-code-D8RJ7lx0.js +7064 -0
- package/dist/no-code-TL7PyulA.js +7005 -0
- package/dist/no-code.cjs +1 -0
- package/dist/no-code.d.ts +833 -0
- package/dist/no-code.mjs +13 -0
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +13 -45
- package/dist/overlays.mjs +490 -24
- package/package.json +24 -2
package/dist/charts.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./charts-DShUbWrP.cjs");exports.CHART_COLORS=e.CHART_COLORS;exports.NiceBarGauge=e.NiceBarGauge;exports.NiceBullet=e.NiceBullet;exports.NiceChart=e.NiceChart;exports.NiceChartAI=e.NiceChartAI;exports.NiceCircularGauge=e.NiceCircularGauge;exports.NiceForecastChart=e.NiceForecastChart;exports.NiceFunnel=e.NiceFunnel;exports.NiceHeatMap=e.NiceHeatMap;exports.NiceLinearGauge=e.NiceLinearGauge;exports.NiceLiveChart=e.NiceLiveChart;exports.NiceOrganizationChart=e.NiceOrganizationChart;exports.NicePieChart=e.NicePieChart;exports.NicePolarChart=e.NicePolarChart;exports.NiceRangeSelector=e.NiceRangeSelector;exports.NiceSankey=e.NiceSankey;exports.NiceSparkline=e.NiceSparkline;exports.NiceStockChart=e.NiceStockChart;exports.NiceTreeMap=e.NiceTreeMap;exports.NiceVectorMap=e.NiceVectorMap;
|
package/dist/charts.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.nice-chart-ai{--ai-primary: #6366f1;--ai-primary-light: #818cf8;--ai-bg: #f8fafc;--ai-border: #e2e8f0;--ai-text: #334155;--ai-text-muted: #64748b;--ai-success: #22c55e;--ai-panel-bg: #ffffff;position:relative;display:flex;flex-direction:column;border-radius:8px;overflow:hidden;border:1px solid var(--ai-border);background:var(--ai-panel-bg)}[data-theme=dark] .nice-chart-ai,.nice-chart-ai.dark{--ai-primary: #818cf8;--ai-primary-light: #a5b4fc;--ai-bg: #1e293b;--ai-border: #334155;--ai-text: #e2e8f0;--ai-text-muted: #94a3b8;--ai-success: #4ade80;--ai-panel-bg: #0f172a}.nice-chart-ai__toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px;background:var(--ai-bg);border-bottom:1px solid var(--ai-border);flex-wrap:wrap}.nice-chart-ai__toolbar-left{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.nice-chart-ai__badge{display:inline-flex;align-items:center;justify-content:center;padding:3px 10px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#fff;background:linear-gradient(135deg,var(--ai-primary) 0%,var(--ai-primary-light) 100%);border-radius:4px}.nice-chart-ai__suggestion{display:flex;align-items:center;gap:6px;font-size:13px}.nice-chart-ai__suggestion-icon{font-size:14px}.nice-chart-ai__suggestion-text{color:var(--ai-text);font-weight:500}.nice-chart-ai__suggestion-reason{color:var(--ai-text-muted);font-size:12px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nice-chart-ai__loading{font-size:12px;color:var(--ai-primary);animation:pulse-opacity 1.5s ease-in-out infinite}@keyframes pulse-opacity{0%,to{opacity:.5}50%{opacity:1}}.nice-chart-ai__toolbar-center{display:flex;align-items:center}.nice-chart-ai__type-selector{display:flex;gap:4px;padding:4px;background:var(--ai-panel-bg);border:1px solid var(--ai-border);border-radius:6px}.nice-chart-ai__type-btn{display:flex;align-items:center;justify-content:center;width:32px;height:28px;padding:0;font-size:14px;background:transparent;border:none;border-radius:4px;cursor:pointer;transition:all .15s ease}.nice-chart-ai__type-btn:hover{background:var(--ai-bg)}.nice-chart-ai__type-btn--active{background:var(--ai-primary);box-shadow:0 2px 4px #6366f14d}.nice-chart-ai__toolbar-right{display:flex;align-items:center;gap:8px}.nice-chart-ai__auto-btn,.nice-chart-ai__insights-btn{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;font-size:12px;font-weight:500;color:var(--ai-text);background:transparent;border:1px solid var(--ai-border);border-radius:4px;cursor:pointer;transition:all .15s ease}.nice-chart-ai__auto-btn:hover:not(:disabled),.nice-chart-ai__insights-btn:hover:not(:disabled){background:var(--ai-primary);color:#fff;border-color:var(--ai-primary)}.nice-chart-ai__auto-btn:disabled,.nice-chart-ai__insights-btn:disabled{opacity:.5;cursor:not-allowed}.nice-chart-ai__chart-wrapper{flex:1;min-height:300px;padding:16px}.nice-chart-ai__insights{position:absolute;top:60px;right:16px;width:320px;max-height:calc(100% - 80px);background:var(--ai-panel-bg);border:1px solid var(--ai-border);border-radius:8px;box-shadow:0 10px 25px #00000026;display:flex;flex-direction:column;z-index:10;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.nice-chart-ai__insights--loading{justify-content:center;align-items:center;min-height:150px}.nice-chart-ai__loading-content{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--ai-primary);font-size:14px}.nice-chart-ai__spinner{width:24px;height:24px;border:3px solid var(--ai-border);border-top-color:var(--ai-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.nice-chart-ai__insights-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:var(--ai-bg);border-bottom:1px solid var(--ai-border);border-radius:8px 8px 0 0}.nice-chart-ai__insights-header h4{margin:0;font-size:14px;font-weight:600;color:var(--ai-text)}.nice-chart-ai__insights-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;font-size:14px;color:var(--ai-text-muted);background:transparent;border:none;border-radius:4px;cursor:pointer;transition:all .15s ease}.nice-chart-ai__insights-close:hover{color:var(--ai-text);background:var(--ai-border)}.nice-chart-ai__insights-list{flex:1;margin:0;padding:12px 14px;list-style:none;overflow-y:auto}.nice-chart-ai__insight{display:flex;align-items:flex-start;gap:8px;padding:8px 0;font-size:13px;line-height:1.5;color:var(--ai-text);border-bottom:1px solid var(--ai-border)}.nice-chart-ai__insight:last-child{border-bottom:none}.nice-chart-ai__insight-icon{color:var(--ai-primary);font-weight:700}.nice-chart-ai__insights-footer{padding:10px 14px;border-top:1px solid var(--ai-border)}.nice-chart-ai__refresh{width:100%;padding:8px;font-size:12px;font-weight:500;color:var(--ai-primary);background:transparent;border:1px solid var(--ai-border);border-radius:4px;cursor:pointer;transition:all .15s ease}.nice-chart-ai__refresh:hover:not(:disabled){background:var(--ai-bg);border-color:var(--ai-primary)}.nice-chart-ai__refresh:disabled{opacity:.5;cursor:not-allowed}@media(max-width:768px){.nice-chart-ai__toolbar{flex-direction:column;align-items:stretch;gap:10px}.nice-chart-ai__toolbar-left,.nice-chart-ai__toolbar-right{justify-content:center}.nice-chart-ai__toolbar-center{order:-1;justify-content:center}.nice-chart-ai__insights{position:static;width:100%;max-height:none;margin-top:0;border-radius:0;border-left:none;border-right:none;box-shadow:none}.nice-chart-ai__suggestion-reason{display:none}}@media(max-width:480px){.nice-chart-ai__type-selector{width:100%;justify-content:center}.nice-chart-ai__auto-btn,.nice-chart-ai__insights-btn{flex:1;justify-content:center}}
|
package/dist/charts.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
|
+
import { NiceBaseProps } from '@nice2dev/ui-core';
|
|
3
|
+
import { NiceSize } from '@nice2dev/ui-core';
|
|
2
4
|
import { ReactNode } from 'react';
|
|
3
5
|
|
|
4
6
|
/**
|
|
@@ -196,15 +198,6 @@ declare interface LiveDataPoint {
|
|
|
196
198
|
category?: string;
|
|
197
199
|
}
|
|
198
200
|
|
|
199
|
-
/**
|
|
200
|
-
* Per-component visibility & interaction level used by the access control system.
|
|
201
|
-
* - `'full'` — fully interactive (default)
|
|
202
|
-
* - `'readOnly'` — renders but cannot be edited
|
|
203
|
-
* - `'disabled'` — renders greyed-out
|
|
204
|
-
* - `'hidden'` — not rendered at all
|
|
205
|
-
*/
|
|
206
|
-
declare type NiceAccessMode = 'full' | 'readOnly' | 'disabled' | 'hidden';
|
|
207
|
-
|
|
208
201
|
export declare const NiceBarGauge: default_2.FC<NiceBarGaugeProps>;
|
|
209
202
|
|
|
210
203
|
/** An individual bar segment in the {@link NiceBarGauge}. */
|
|
@@ -239,30 +232,11 @@ export declare interface NiceBarGaugeProps extends NiceBaseProps {
|
|
|
239
232
|
title?: string;
|
|
240
233
|
}
|
|
241
234
|
|
|
242
|
-
/** Base props inherited by every NiceToDev component. */
|
|
243
|
-
declare interface NiceBaseProps {
|
|
244
|
-
/** Additional CSS class name(s). */
|
|
245
|
-
className?: string;
|
|
246
|
-
/** Inline style object. */
|
|
247
|
-
style?: React.CSSProperties;
|
|
248
|
-
/** HTML `id` attribute. When omitted a stable auto-generated id is used. */
|
|
249
|
-
id?: string;
|
|
250
|
-
/** Tooltip text shown on hover. */
|
|
251
|
-
title?: string;
|
|
252
|
-
/** Test identifier for integration / e2e test selectors. */
|
|
253
|
-
'data-testid'?: string;
|
|
254
|
-
/** Controls component visibility and interaction — see {@link NiceAccessMode}. */
|
|
255
|
-
accessMode?: NiceAccessMode;
|
|
256
|
-
/**
|
|
257
|
-
* Visual presentation style override.
|
|
258
|
-
* When set, overrides the global `displayStyle` from `NiceThemeProvider`.
|
|
259
|
-
* @see NiceDisplayStyle
|
|
260
|
-
*/
|
|
261
|
-
displayStyle?: NiceDisplayStyle;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
235
|
export declare const NiceBullet: default_2.FC<NiceBulletProps>;
|
|
265
236
|
|
|
237
|
+
/** Label placement relative to the chart. */
|
|
238
|
+
declare type NiceBulletLabelPlacement = 'top' | 'left' | 'right' | 'bottom' | 'none';
|
|
239
|
+
|
|
266
240
|
/** Props for the {@link NiceBullet} component — a horizontal bullet chart comparing actual vs. target. */
|
|
267
241
|
export declare interface NiceBulletProps extends NiceBaseProps {
|
|
268
242
|
/** Actual value. */
|
|
@@ -273,16 +247,38 @@ export declare interface NiceBulletProps extends NiceBaseProps {
|
|
|
273
247
|
min?: number;
|
|
274
248
|
/** Maximum scale value. */
|
|
275
249
|
max?: number;
|
|
276
|
-
/** Chart width in px. */
|
|
250
|
+
/** Chart width in px (overrides size preset). */
|
|
277
251
|
width?: number;
|
|
278
|
-
/** Chart height in px. */
|
|
252
|
+
/** Chart height in px (overrides size preset). */
|
|
279
253
|
height?: number;
|
|
280
254
|
/** Bar color. */
|
|
281
255
|
color?: string;
|
|
282
256
|
/** Target marker color. */
|
|
283
257
|
targetColor?: string;
|
|
258
|
+
/** Size preset (sm/md/lg). Default: `md`. */
|
|
259
|
+
size?: NiceBulletSize;
|
|
260
|
+
/** Optional descriptive label rendered next to the chart. */
|
|
261
|
+
label?: default_2.ReactNode;
|
|
262
|
+
/** Label placement (default `top`). */
|
|
263
|
+
labelPlacement?: NiceBulletLabelPlacement;
|
|
264
|
+
/** Show numeric value text near the bar. */
|
|
265
|
+
showValue?: boolean;
|
|
266
|
+
/** Show target value text near the marker. */
|
|
267
|
+
showTarget?: boolean;
|
|
268
|
+
/** Format the displayed value/target (defaults to `n.toString()`). */
|
|
269
|
+
formatValue?: (n: number) => string;
|
|
270
|
+
/** Visual state. `loading` shows a shimmer, `error` shows the error message. */
|
|
271
|
+
state?: NiceBulletState;
|
|
272
|
+
/** Error text shown when `state="error"`. */
|
|
273
|
+
errorMessage?: string;
|
|
284
274
|
}
|
|
285
275
|
|
|
276
|
+
/** Size variants for {@link NiceBullet}. */
|
|
277
|
+
declare type NiceBulletSize = 'sm' | 'md' | 'lg';
|
|
278
|
+
|
|
279
|
+
/** Visual state of the chart. */
|
|
280
|
+
declare type NiceBulletState = 'normal' | 'loading' | 'error';
|
|
281
|
+
|
|
286
282
|
export declare const NiceChart: default_2.FC<NiceChartProps>;
|
|
287
283
|
|
|
288
284
|
export declare const NiceChartAI: default_2.ForwardRefExoticComponent<NiceChartAIProps & default_2.RefAttributes<NiceChartAIRef>>;
|
|
@@ -340,11 +336,16 @@ export declare interface NiceChartProps extends NiceBaseProps {
|
|
|
340
336
|
height?: number;
|
|
341
337
|
title?: string;
|
|
342
338
|
showLegend?: boolean;
|
|
339
|
+
/** Show gridlines (horizontal lines at Y ticks). Defaults to true. */
|
|
343
340
|
showGrid?: boolean;
|
|
341
|
+
/** Show axis tick labels (Y values, X categories). Defaults to true. */
|
|
342
|
+
axisLabels?: boolean;
|
|
344
343
|
showTooltip?: boolean;
|
|
345
344
|
yAxisLabel?: string;
|
|
346
345
|
xAxisLabel?: string;
|
|
347
346
|
stacked?: boolean;
|
|
347
|
+
/** Animate series on initial render. */
|
|
348
|
+
animated?: boolean;
|
|
348
349
|
/** Enable zoom/pan via mouse wheel and drag. */
|
|
349
350
|
zoomable?: boolean;
|
|
350
351
|
/** Show crosshair line at mouse position. */
|
|
@@ -364,7 +365,7 @@ declare interface NiceChartSeries {
|
|
|
364
365
|
name: string;
|
|
365
366
|
data: number[];
|
|
366
367
|
color?: string;
|
|
367
|
-
type?: 'bar' | 'line' | 'area';
|
|
368
|
+
type?: 'bar' | 'line' | 'area' | 'scatter' | 'radar';
|
|
368
369
|
}
|
|
369
370
|
|
|
370
371
|
export declare const NiceCircularGauge: default_2.FC<NiceCircularGaugeProps>;
|
|
@@ -401,13 +402,6 @@ export declare interface NiceCircularGaugeProps extends NiceBaseProps {
|
|
|
401
402
|
}[];
|
|
402
403
|
}
|
|
403
404
|
|
|
404
|
-
/**
|
|
405
|
-
* Cross-component visual presentation style.
|
|
406
|
-
* Each style maps 1:1 to a ThemeVariantConfig preset controlling
|
|
407
|
-
* buttons, inputs, cards, badges, tabs, toggles, tooltips, tables, etc.
|
|
408
|
-
*/
|
|
409
|
-
declare type NiceDisplayStyle = 'default' | 'minimal' | 'rounded' | 'sharp' | 'glass' | 'neumorphic' | 'playful' | 'enterprise' | 'modern3d' | 'brutalist' | 'luxe' | 'pill' | 'flat' | 'editorial' | 'dashboard' | 'softCloud' | 'cosmic' | 'corporate' | 'bank' | 'government' | 'military' | 'legal' | 'medical' | 'swiss' | 'scandinavian' | 'bauhaus' | 'notebook' | 'origami' | 'watercolor' | 'monochrome' | 'paper' | 'zen' | 'terminal' | 'hacker' | 'retro8bit' | 'synthwave' | 'cyberpunk' | 'steampunk' | 'vapor' | 'neon' | 'windows95' | 'material' | 'fluent' | 'cupertino' | 'ant' | 'bootstrap' | 'chakra' | 'notion' | 'linear' | 'vercel' | 'candy' | 'bubblegum' | 'cartoon' | 'kawaii' | 'circus' | 'gaming' | 'kiddo' | 'disco' | 'clown';
|
|
410
|
-
|
|
411
405
|
/**
|
|
412
406
|
* NiceForecastChart — Time series chart with forecast and confidence intervals.
|
|
413
407
|
*
|
|
@@ -443,7 +437,9 @@ export declare const NiceForecastChart: default_2.ForwardRefExoticComponent<Nice
|
|
|
443
437
|
*/
|
|
444
438
|
export declare interface NiceForecastChartProps extends NiceBaseProps {
|
|
445
439
|
/** Scenarios to display */
|
|
446
|
-
scenarios
|
|
440
|
+
scenarios?: ForecastScenario[];
|
|
441
|
+
/** Convenience flat data series — wrapped into a single scenario when `scenarios` is omitted. */
|
|
442
|
+
data?: ForecastDataPoint[];
|
|
447
443
|
/** Annotations */
|
|
448
444
|
annotations?: ForecastAnnotation[];
|
|
449
445
|
/** Reference lines */
|
|
@@ -476,10 +472,14 @@ export declare interface NiceForecastChartProps extends NiceBaseProps {
|
|
|
476
472
|
pointRadius?: number;
|
|
477
473
|
/** Enable zoom */
|
|
478
474
|
enableZoom?: boolean;
|
|
475
|
+
/** Alias for `enableZoom`. */
|
|
476
|
+
zoomEnabled?: boolean;
|
|
479
477
|
/** Enable pan */
|
|
480
478
|
enablePan?: boolean;
|
|
481
479
|
/** Animation duration (ms) */
|
|
482
480
|
animationDuration?: number;
|
|
481
|
+
/** Show the legend (alias affecting `legend.visible`). */
|
|
482
|
+
showLegend?: boolean;
|
|
483
483
|
/** Responsive */
|
|
484
484
|
responsive?: boolean;
|
|
485
485
|
/** Called when a point is clicked */
|
|
@@ -641,7 +641,7 @@ export declare interface NiceLiveChartProps extends NiceBaseProps {
|
|
|
641
641
|
/** Called when buffer is full and old data is dropped. */
|
|
642
642
|
onDataDropped?: (droppedCount: number, seriesName: string) => void;
|
|
643
643
|
/** Time format for x-axis categories. Default: "HH:mm:ss". */
|
|
644
|
-
timeFormat?:
|
|
644
|
+
timeFormat?: 'HH:mm:ss' | 'HH:mm' | 'mm:ss' | 'ss.SSS' | 'ISO';
|
|
645
645
|
/** Show statistics overlay (min, max, avg, current). */
|
|
646
646
|
showStats?: boolean;
|
|
647
647
|
/** Threshold lines for visual indicators. */
|
|
@@ -649,7 +649,7 @@ export declare interface NiceLiveChartProps extends NiceBaseProps {
|
|
|
649
649
|
value: number;
|
|
650
650
|
color: string;
|
|
651
651
|
label?: string;
|
|
652
|
-
style?:
|
|
652
|
+
style?: 'solid' | 'dashed' | 'dotted';
|
|
653
653
|
}>;
|
|
654
654
|
}
|
|
655
655
|
|
|
@@ -693,7 +693,7 @@ declare interface NiceLiveChartSeriesConfig {
|
|
|
693
693
|
/** Display color. */
|
|
694
694
|
color?: string;
|
|
695
695
|
/** Chart type for this series. */
|
|
696
|
-
type?:
|
|
696
|
+
type?: 'bar' | 'line' | 'area';
|
|
697
697
|
/** Initial data points (optional). */
|
|
698
698
|
initialData?: number[];
|
|
699
699
|
}
|
|
@@ -872,9 +872,6 @@ export declare interface NiceSankeyProps extends NiceBaseProps {
|
|
|
872
872
|
title?: string;
|
|
873
873
|
}
|
|
874
874
|
|
|
875
|
-
/** T-shirt sizing used across all components for consistent visual density. */
|
|
876
|
-
declare type NiceSize = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
877
|
-
|
|
878
875
|
export declare const NiceSparkline: default_2.FC<NiceSparklineProps>;
|
|
879
876
|
|
|
880
877
|
/** Props for the {@link NiceSparkline} component — a compact inline chart (line, bar, or area). */
|
package/dist/charts.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as i,
|
|
1
|
+
import { C as i, j as c, h as r, o as s, p as N, l as t, r as C, g as h, e as n, k as o, s as l, b as g, n as p, m as u, a as S, f as k, i as G, c as L, d as M, N as O } from "./charts-BAS21jkC.js";
|
|
2
2
|
export {
|
|
3
3
|
i as CHART_COLORS,
|
|
4
4
|
c as NiceBarGauge,
|