@nice2dev/ui-api 1.0.29 → 1.1.5

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 CHANGED
@@ -1,5 +1,111 @@
1
1
  # @nice2dev/ui-api
2
2
 
3
+ ## 1.1.5
4
+
5
+ No changes in this release.
6
+
7
+ ## 1.0.30
8
+
9
+ ### Patch Changes
10
+
11
+ - Round-24 showcase-feedback fixes.
12
+
13
+ **@nice2dev/ui**
14
+
15
+ - **NiceDateRangeBox / NiceDateTimePicker.** Fix a real day/month transposition: the
16
+ keyboard `t`/Today shortcut (`writeDate`) built digits in ISO order but they were
17
+ interpreted in display order, so for a localized mask (`dd.MM.yyyy`) Today produced a
18
+ transposed value that then drove the other picker's greyed range. `writeDate` now builds
19
+ an ISO string and routes through the ISO-safe `applyIso`. The popup **Today/Now** buttons
20
+ are also disabled when today is outside `[min, max]`, instead of silently clamping to `min`.
21
+ - **NiceDateTimePicker (clock mode).** The highlight now rides the selected **hour number**
22
+ on the ring (not the hand tip); **both** hands are always drawn (active in the accent
23
+ colour, the other muted); and `minuteStep` (5/10/15/20/30) draws snap markers + labels and
24
+ clicks snap to them.
25
+ - **NiceTreeView.** New optional `header` prop rendered above the search box / tree.
26
+ - **NiceKanbanBoard.** New `collapseDirection: 'vertical' | 'horizontal'` prop (a short
27
+ horizontal bar as an alternative to the slim vertical rail); the collapsed count renders as
28
+ a one-line diagonal fraction (`2/3`).
29
+ - **NicePivotGridFieldChooser.** Working HTML5 drag-and-drop, `name (type)` field bars (new
30
+ `NicePivotField.dataType`), the per-field area buttons replaced by a `NiceSelect` gated
31
+ behind a new `showAreaSelect` prop, and a single-column layout so Filters no longer wraps.
32
+ - **NiceTabs.** New `countLocation: 'right' | 'bottom'` prop — `'bottom'` stacks a tab's
33
+ badge/count under the icon as a heavily-rounded pill.
34
+
35
+ **@nice2dev/icons** — geometry fixes across all variants: NtdBank (roof/columns lowered ~20%
36
+ and centred), NtdMusic (note heads meet stems flush), NtdHome (square floor + lower walls),
37
+ NtdPlanet (ring uses the secondary colour in solid/outline), NtdPizza (arc crust, not a
38
+ triangle), NtdDroplet (slimmer profiled sides), NtdHexagon & NtdSend (sharp, not rounded).
39
+
40
+ **@nice2dev/events** — NiceEventPlanning grows from 6 to 10 tabs (Schedule, Tasks, Vendors,
41
+ Documents), each optional tab hideable via a `show*` boolean prop, plus a `countLocation`
42
+ prop (`'bottom'` default | `'right'`) forwarded to NiceTabs.
43
+
44
+ **@nice2dev/ui-api** — NiceAPIDesigner rebuilt on Nice controls with real, editable Paths /
45
+ Schemas / Security editors and a seeded Pet-Store example so it opens populated.
46
+
47
+ **@nice2dev/ui-graphics** — NicePixelEditor: the right settings panel folds into collapsible
48
+ NiceCollapse sections, the top menu into NiceMenu dropdowns, and the active tool now has a
49
+ clearly-visible highlight.
50
+
51
+ - Round-27 showcase-feedback fixes.
52
+
53
+ **@nice2dev/icons**
54
+
55
+ - **New `wireframe` variant** (10th). Like `sharp` and `rounded` it has no per-icon path
56
+ data — it is a mechanical re-draw of `paths.solid`, which carries the _whole_
57
+ construction, so every shape (creases, inner discs, duotone underlays) comes through as
58
+ a thin unfilled stroke in the primary colour. Per-shape `opacity` is cleared so a faint
59
+ duotone wash cannot survive as a ghost line. Both render paths (`createIcon` and the RSC
60
+ twin) share the pass, and the variant is registered in the design tokens and the Figma
61
+ export set.
62
+ - **`NtdUndo` / `NtdRedo` duotone** no longer draw a secondary disc behind the curve (it
63
+ read as "a ball in the middle"). The two tones now follow the icon's own parts:
64
+ arrowhead in `primaryColor`, tail in `secondaryColor`, both at full strength.
65
+ - **`NtdSend`** — `outline` drops the diagonal crease and shows the silhouette only;
66
+ `duotone` splits the solid plane along that crease instead of stacking a wash under a
67
+ stroke, giving an upper wing in `primaryColor` and a lower wing in `secondaryColor`.
68
+ - **`NtdDroplet`** reshaped in all five path variants: the sides now leave the tip almost
69
+ vertically and only flare low down, and the bulb is an ellipse (rx 5.6 / ry 6.2) rather
70
+ than an r=8 circle — a pinched waist and an oval silhouette instead of a round, fat one.
71
+
72
+ **@nice2dev/ui**
73
+
74
+ - **`NicePivotGrid`** — new `headerText` prop rendered at the left of the toolbar, with the
75
+ actions pushed flush right on the same row. The field-chooser button is icon-only now
76
+ (tooltip + `aria-label` keep the name), and CSV export became a download menu offering
77
+ **CSV and XLSX**; the XLSX goes through the library's own dependency-free writer
78
+ (`downloadXLSX`), so no new runtime dependency. Both formats are built from one shared
79
+ table model and therefore cannot drift apart.
80
+ - **`NiceDateTimePicker`** — opening the popup or switching to `spinners` no longer reels
81
+ the wheels round to the value. The columns carried a CSS `scroll-behavior: smooth`, which
82
+ hijacked the `behavior: 'auto'` jump the wheel asks for on mount; the rule is gone and the
83
+ wheel now says `'instant'` explicitly. Small steps still animate, and reduced-motion is
84
+ honoured in JS (a media query cannot override an explicit `scrollTo` behavior).
85
+ - **`NiceDateRangeBox`** — the `singleField` box was sized off a flat worst-case
86
+ `26ch`/`36ch`, leaving ~100 px of dead space between a locale-formatted range and the
87
+ clear button. It is now measured from a sample range rendered in the same locale and
88
+ preset, so the field stays snug (~20 px of slack) and does not resize as you pick.
89
+ - **`NiceKanbanBoard`** — collapsing a column horizontally shortens it instead of narrowing
90
+ it: the collapsed metrics mirror an expanded column in both the scroll and responsive
91
+ layouts. The `2/3` limit counter sits on one baseline (the staggered ±0.12em offsets read
92
+ as a crooked figure).
93
+ - **`NiceDropDownButton`** now applies the `title` from `NiceBaseProps` and, for an
94
+ icon-only trigger, uses it as the accessible name — it used to be dropped silently.
95
+
96
+ **@nice2dev/ui-api** — `NiceAPIDesigner` follows the theme. The stylesheet stood on
97
+ `--nice-*` colour aliases that are declared in `@nice2dev/ui`, not here (and four of which
98
+ — `--nice-hover`, `--nice-selected`, `--nice-bg-code`, `--nice-grid` — are declared nowhere
99
+ at all), so a consumer loading only this package's CSS got hard-coded light values. All of
100
+ them moved to the canonical theme tokens, `color: white` became `--text-on-primary` and the
101
+ two paper-white panels became `--bg-elevated`. The endpoints/schemas sidebar now runs the
102
+ full height of the editor pane with a sticky header and scrolls inside itself, and the view
103
+ switcher wraps instead of forcing a sideways scroll.
104
+
105
+ **@nice2dev/ui-graphics** — `NiceVectorEditor`'s `initialIcon.variant` accepts
106
+ `'wireframe'`; a snippet exported while it is selected lands in `solid`, since `wireframe`
107
+ is derived and never authored as its own layer.
108
+
3
109
  ## 1.0.29
4
110
 
5
111
  ### Patch Changes
@@ -1,8 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { NiceAPIDesignerProps } from './types';
3
-
4
- /**
5
- * NiceAPIDesigner - Visual OpenAPI Editor
6
- */
3
+ /** NiceAPIDesigner — visual OpenAPI editor. */
7
4
  export declare function NiceAPIDesigner({ schema: initialSchema, onChange, onSave, readOnly, className, tutorial, }: NiceAPIDesignerProps): React.ReactElement;
8
5
  export default NiceAPIDesigner;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { NiceAPITesterProps } from './types';
3
-
4
3
  /**
5
4
  * NiceAPITester - API Testing Studio
6
5
  */