@nice2dev/ui 1.0.8 → 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.
Files changed (68) hide show
  1. package/dist/NiceErrorBoundary-B5nF-OVn.cjs +1 -0
  2. package/dist/NiceErrorBoundary-D75yr_WE.js +762 -0
  3. package/dist/NiceForm-CKoJA6NG.js +5131 -0
  4. package/dist/NiceForm-D7xnpnRJ.cjs +382 -0
  5. package/dist/NiceForm.css +1 -0
  6. package/dist/NiceModal-1QX7NhyH.js +95 -0
  7. package/dist/NiceModal-CAwsKVQ2.cjs +1 -0
  8. package/dist/NiceModuleLifecyclePanel-C9xMSjOF.cjs +1 -0
  9. package/dist/NiceModuleLifecyclePanel-CMrPbSw9.js +5249 -0
  10. package/dist/NiceModuleLifecyclePanel.css +1 -0
  11. package/dist/NicePagination-DbE-uOkl.js +171 -0
  12. package/dist/NicePagination-DlealakT.cjs +1 -0
  13. package/dist/NicePinCodeInput-B8cI8zu8.js +11830 -0
  14. package/dist/NicePinCodeInput-SGQaHvpE.cjs +419 -0
  15. package/dist/NicePinCodeInput.css +1 -1
  16. package/dist/NiceSavedQueryPanel-CZ5bYOe_.js +6449 -0
  17. package/dist/NiceSavedQueryPanel-Ce2s060j.cjs +596 -0
  18. package/dist/NiceTabs-DvOmxKyQ.cjs +1 -0
  19. package/dist/NiceTabs-DzLHzwuA.js +1636 -0
  20. package/dist/NiceWindow-CVgkxcCz.cjs +1 -0
  21. package/dist/NiceWindow-DeC83yfE.js +1409 -0
  22. package/dist/charts-BAS21jkC.js +4621 -0
  23. package/dist/charts-DShUbWrP.cjs +759 -0
  24. package/dist/charts.cjs +1 -1
  25. package/dist/charts.d.ts +42 -45
  26. package/dist/charts.mjs +1 -1
  27. package/dist/core-C2ZmWe_u.cjs +96 -0
  28. package/dist/core-Da43q-pO.js +22094 -0
  29. package/dist/data-branching-CJlrg8qf.cjs +1 -0
  30. package/dist/data-branching-DCUwI53s.js +6121 -0
  31. package/dist/data-branching.cjs +1 -1
  32. package/dist/data-branching.d.ts +1 -38
  33. package/dist/data-branching.mjs +1 -1
  34. package/dist/data.cjs +1 -1
  35. package/dist/data.d.ts +206 -192
  36. package/dist/data.mjs +1 -1
  37. package/dist/devops-CXynFG3X.cjs +17 -0
  38. package/dist/devops-D0TfzV5B.js +7660 -0
  39. package/dist/devops.cjs +1 -1
  40. package/dist/devops.d.ts +1 -38
  41. package/dist/devops.mjs +1 -1
  42. package/dist/editors.cjs +1 -1
  43. package/dist/editors.d.ts +311 -393
  44. package/dist/editors.mjs +61 -64
  45. package/dist/feedback.cjs +1 -1
  46. package/dist/feedback.d.ts +3 -44
  47. package/dist/feedback.mjs +11 -10
  48. package/dist/index-B8wxZ8Ps.cjs +5192 -0
  49. package/dist/index-pAuGTbuB.js +57319 -0
  50. package/dist/index.cjs +1 -1
  51. package/dist/index.css +1 -1
  52. package/dist/index.d.ts +2248 -11140
  53. package/dist/index.mjs +880 -1018
  54. package/dist/lazy.cjs +1 -1
  55. package/dist/lazy.d.ts +7 -39
  56. package/dist/lazy.mjs +24 -24
  57. package/dist/navigation.cjs +1 -1
  58. package/dist/navigation.d.ts +151 -216
  59. package/dist/navigation.mjs +46 -40
  60. package/dist/no-code-B5bzduNP.cjs +332 -0
  61. package/dist/no-code-D8RJ7lx0.js +7064 -0
  62. package/dist/no-code.cjs +1 -1
  63. package/dist/no-code.d.ts +1 -38
  64. package/dist/no-code.mjs +1 -1
  65. package/dist/overlays.cjs +1 -1
  66. package/dist/overlays.d.ts +13 -45
  67. package/dist/overlays.mjs +260 -250
  68. package/package.json +4 -2
package/dist/charts.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./charts-DECVsCHX.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;
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.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: ForecastScenario[];
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 */
@@ -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, 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-Bx_kNBsE.js";
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,