@nice2dev/ui 1.0.30 → 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 +848 -0
- package/README.md +30 -31
- package/dist/NiceCalendarScheduler.doc-BEtQkZjV.cjs +9 -0
- package/dist/NiceCalendarScheduler.doc-D__LRgOx.js +33 -0
- package/dist/NiceCodeEditor-BVUwp9yX.js +1134 -0
- package/dist/NiceCodeEditor-cIqUSk3j.cjs +260 -0
- package/dist/NiceColorPicker-C8NZZcXE.js +596 -0
- package/dist/NiceColorPicker-CKVbjicN.cjs +1 -0
- package/dist/NiceConfirmDialog-B57cl_F7.cjs +1 -0
- package/dist/NiceConfirmDialog-DmBX1Iea.js +81 -0
- package/dist/NiceConfirmDialog-N9fBTLYm.js +81 -0
- package/dist/NiceConfirmDialog-oSxVpsCs.cjs +1 -0
- package/dist/NiceDataGrid-3AIf2D3t.cjs +10 -0
- package/dist/NiceDataGrid-CXCUAkRb.js +1736 -0
- package/dist/NiceDocumentViewer-B-uEPZAf.js +672 -0
- package/dist/NiceDocumentViewer-BE0gKBlw.cjs +180 -0
- package/dist/NiceDrawingCanvas.doc-Dv5vB4gY.js +32 -0
- package/dist/NiceDrawingCanvas.doc-Ww9zz17x.cjs +8 -0
- package/dist/NiceErrorBoundary-BD-uqk_q.js +709 -0
- package/dist/NiceErrorBoundary-CIPXaYik.cjs +1 -0
- package/dist/NiceFileManagerViews.doc-CKlnm6cX.cjs +1 -0
- package/dist/NiceFileManagerViews.doc-Cg21DArG.js +25 -0
- package/dist/NiceForm-BNZB31Pg.js +4499 -0
- package/dist/NiceForm-C6F0HvrX.cjs +1 -0
- package/dist/NiceForm-CCyfWgIs.js +4805 -0
- package/dist/NiceForm-CPyAXxBO.cjs +1 -0
- package/dist/NiceGantt-CSFLZD2y.js +328 -0
- package/dist/NiceGantt-_ysNSVYR.cjs +1 -0
- package/dist/NiceHtmlEditor-B8B8AcSC.js +841 -0
- package/dist/NiceHtmlEditor-D8RQcBNp.cjs +10 -0
- package/dist/NiceLoginForm-Bai7aN8V.js +708 -0
- package/dist/NiceLoginForm-BrvIc-wq.cjs +1 -0
- package/dist/NiceMegaMenu.doc-7UyOCd3l.cjs +7 -0
- package/dist/NiceMegaMenu.doc-zeIyVa65.js +31 -0
- package/dist/NiceMention-CWoLD0SE.js +11082 -0
- package/dist/NiceMention-J1lUDLhg.cjs +430 -0
- package/dist/NiceMention.css +1 -0
- package/dist/NiceModal-0UxviEYE.cjs +1 -0
- package/dist/NiceModal-Bj53SKLI.js +95 -0
- package/dist/NiceModal-D-iOonog.js +95 -0
- package/dist/NiceModal-DC0UlQhc.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-4hzDw6it.js +6999 -0
- package/dist/NiceModuleLifecyclePanel-BBOg9g0b.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-Df_1k5qW.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-DtuXRiLR.js +6991 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-Bjxy9aEc.js +172 -0
- package/dist/NicePagination-CPn-Q1h_.js +172 -0
- package/dist/NicePagination-CfFfNwrg.cjs +1 -0
- package/dist/NicePagination-EEQ6o1dF.cjs +1 -0
- package/dist/NicePivotGrid-Cmiolup9.cjs +152 -0
- package/dist/NicePivotGrid-DX_iUj2X.js +1167 -0
- package/dist/NiceSavedQueryPanel-BhjFJBvn.cjs +586 -0
- package/dist/NiceSavedQueryPanel-CH5c3rUG.js +6988 -0
- package/dist/NiceSavedQueryPanel-KvyXTnFx.js +5129 -0
- package/dist/NiceSavedQueryPanel-aQrEmmcC.cjs +596 -0
- package/dist/NiceScannerControl-Cd5KXJA9.js +12769 -0
- package/dist/NiceScannerControl-DZsERSw_.cjs +698 -0
- package/dist/NiceScannerControl.css +1 -0
- package/dist/NiceScheduler-DuxPzQQZ.js +1645 -0
- package/dist/NiceScheduler-nW7fMzKL.cjs +5 -0
- package/dist/NiceSelect-BVoqtfYN.cjs +1 -0
- package/dist/NiceSelect-DHowflmX.js +433 -0
- package/dist/NiceWindow-BoDzlGk-.js +1621 -0
- package/dist/NiceWindow-DdD9k4nc.cjs +1 -0
- package/dist/NiceWindow-DgONWxBm.cjs +1 -0
- package/dist/NiceWindow-xnTSHdHv.js +1623 -0
- package/dist/charts-B-sl1V9y.cjs +882 -0
- package/dist/charts-Bs0aDM0X.js +4671 -0
- package/dist/charts-DO2z6Ziu.js +31920 -0
- package/dist/charts-DjjKkw0q.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +7 -7
- package/dist/core-BUsZ7_vI.js +27914 -0
- package/dist/core-C2KhqEaU.cjs +1 -0
- package/dist/core-CLfcCDKc.cjs +122 -0
- package/dist/core-K2DIxXLn.js +795 -0
- package/dist/data-branching-D7l_kILW.cjs +1 -0
- package/dist/data-branching-DC6hcBQN.cjs +1 -0
- package/dist/data-branching-DykdTpjJ.js +6255 -0
- package/dist/data-branching-lJ07lDN-.js +6255 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +70 -44
- package/dist/data.mjs +17 -16
- package/dist/devops-Bi8MXtko.js +8165 -0
- package/dist/devops-CU0sOVEA.cjs +17 -0
- package/dist/devops-CXyEwQeM.js +8165 -0
- package/dist/devops-On_1wRf9.cjs +17 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +288 -432
- package/dist/editors.mjs +58 -62
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index-BDH1yDSg.js +69235 -0
- package/dist/index-C9njkNOD.cjs +5470 -0
- package/dist/index.cjs +5137 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +556 -929
- package/dist/index.mjs +66371 -1017
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +31 -213
- package/dist/navigation.mjs +105 -113
- package/dist/no-code-8lO7o6xi.js +7425 -0
- package/dist/no-code-C58g8_fb.cjs +332 -0
- package/dist/no-code-Cj4xJ3w9.js +7425 -0
- package/dist/no-code-K8tOLNew.cjs +332 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +10 -0
- package/dist/overlays.mjs +36 -36
- package/dist/pickerCommons-B-wOzHFh.cjs +1 -0
- package/dist/pickerCommons-CORo9j2a.js +2119 -0
- package/dist/pickerCommons-COiSUiP2.js +1122 -0
- package/dist/pickerCommons-D3WShRrR.cjs +1 -0
- package/dist/style.css +6 -6
- package/dist/vendor-BPVpdtPp.js +271 -0
- package/dist/vendor-Bo2Q64AF.cjs +1 -0
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,853 @@
|
|
|
1
1
|
# [1.0.27] — 2026-06-07
|
|
2
2
|
|
|
3
|
+
## 1.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Single version across the whole `@nice2dev/*` surface.
|
|
8
|
+
|
|
9
|
+
Versioning moves from independent to **fixed**: all 63 publishable packages now bump
|
|
10
|
+
together and always carry the same number. Until now only `@nice2dev/ui` and
|
|
11
|
+
`@nice2dev/icons` were `linked`, so everything else drifted apart — the tree spanned
|
|
12
|
+
1.0.28 through 1.1.4, which meant a consumer had to be told a per-package version table
|
|
13
|
+
instead of one number.
|
|
14
|
+
|
|
15
|
+
Also fixes the npm publish step, which reported success while publishing nothing: it
|
|
16
|
+
now preflights the registry credential, distinguishes "this version already exists"
|
|
17
|
+
from an authentication failure, and fails the stage when any package fails to publish.
|
|
18
|
+
|
|
19
|
+
- @nice2dev/i18n@1.1.5
|
|
20
|
+
- @nice2dev/ui-core@1.1.5
|
|
21
|
+
|
|
22
|
+
## 1.1.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- Round-25 showcase-feedback fixes.
|
|
27
|
+
|
|
28
|
+
**@nice2dev/ui**
|
|
29
|
+
|
|
30
|
+
- **NiceCalendar.** New `selectionMode: 'single' | 'range'` (plus `rangeStart`,
|
|
31
|
+
`rangeEnd`, `onRangeChange`). In range mode the span is painted in two clicks — the
|
|
32
|
+
first opens the range, the second closes it, and clicking before the start swaps the
|
|
33
|
+
ends; hovering previews the band the next click would commit. Days carry
|
|
34
|
+
`--in-range` / `--range-start` / `--range-end`. The band is a translucent wash of the
|
|
35
|
+
accent (not an opaque tint), so it composites correctly over both light and dark
|
|
36
|
+
themes, and it bridges the grid's 2px `border-spacing` so the strip reads as one band
|
|
37
|
+
instead of a dashed row.
|
|
38
|
+
- **NiceDateRangeBox.** New `singleField` prop (default `false`). When on, the pair
|
|
39
|
+
collapses into ONE field showing `start – end` (localized via `locale`) backed by ONE
|
|
40
|
+
portaled popup holding a single range calendar. `min`/`max`, `startCondition` /
|
|
41
|
+
`endCondition` and the localized range error all keep working, and presets carrying a
|
|
42
|
+
time part keep their time when a day is picked. Default stays the two-field layout.
|
|
43
|
+
- **NiceDateTimePicker (clock mode).** The dial no longer swaps between hours and
|
|
44
|
+
minutes: **both** rings are drawn at once, hours on the outer ring and minutes on the
|
|
45
|
+
inner one. Which value a gesture edits follows the **radius**, not a mode, and the
|
|
46
|
+
clock now works on press-drag-release (pointer capture keeps a gesture on the ring it
|
|
47
|
+
started on) instead of clicks only — so exact times can be dialled in. Minutes still
|
|
48
|
+
snap to `minuteStep`.
|
|
49
|
+
|
|
50
|
+
**@nice2dev/icons**
|
|
51
|
+
|
|
52
|
+
- **`sharp` variant is now real.** It already existed in `IconVariant` and the factory
|
|
53
|
+
already gave it square caps and mitered joins, but it was exposed nowhere and — for
|
|
54
|
+
the fill-based majority of icons — rendered identically to `solid`. A generic
|
|
55
|
+
de-rounding pass (shared by `createIcon` and the RSC twin) now zeroes `rx`/`ry` on
|
|
56
|
+
`<rect>` and forces square/miter even where an icon hardcodes its own rounding;
|
|
57
|
+
circles and ellipses are left alone. Registered in the showcase, design tokens, the
|
|
58
|
+
Tailwind plugin, the Figma export set and the vector editor.
|
|
59
|
+
- **Geometry.** `NtdPlanet` — the ring is drawn as three arcs (two back stubs, the
|
|
60
|
+
globe, then the near arc on top) so it genuinely passes _behind_ the planet, in
|
|
61
|
+
`outline` too, using the secondary colour. `NtdSend` — scaled down 20%. `NtdUser` —
|
|
62
|
+
head tucked closer to the shoulders and the figure scaled up 10%. `NtdUndo` /
|
|
63
|
+
`NtdRedo` — rebuilt as one semicircular loop plus a chevron whose apex lands exactly
|
|
64
|
+
on the tail start (the old two-mismatched-arcs shape read as a fish); `solid` now
|
|
65
|
+
fills the head, so it is no longer byte-identical to `outline`. `NtdSnowflake` —
|
|
66
|
+
redrawn on true six-fold symmetry (three arms through the centre, barbs on all six
|
|
67
|
+
spokes) instead of four axes at 90°/45°; all five variants now draw the same crystal.
|
|
68
|
+
Scale changes are baked into coordinates rather than applied as group transforms, so
|
|
69
|
+
stroke weight stays consistent with the rest of the set.
|
|
70
|
+
|
|
71
|
+
**@nice2dev/ui-graphics** — `NiceVectorEditor`'s `initialIcon.variant` union and the
|
|
72
|
+
icon-snippet exporter accept `'sharp'`.
|
|
73
|
+
|
|
74
|
+
### Patch Changes
|
|
75
|
+
|
|
76
|
+
- Eight new event controls, covering the gaps OmniVerk raised for 1.0.32.
|
|
77
|
+
|
|
78
|
+
**New in `@nice2dev/events`**
|
|
79
|
+
|
|
80
|
+
- `NiceSeatingChart` / `NiceSeatPicker` — pick seats from a venue plan. SVG with
|
|
81
|
+
three levels of detail chosen from how many seats are actually in view, so the
|
|
82
|
+
number of DOM nodes stays bounded whatever the venue size. Pan, pinch-zoom and
|
|
83
|
+
a roving keyboard cursor, plus an always-present section → row → seat list with
|
|
84
|
+
"best available" — the path that actually works with a screen reader. Built on
|
|
85
|
+
the `SeatingChart` types that already shipped in `venue/venue-spatial.ts`.
|
|
86
|
+
- `NiceGiftRegistry` — gift registry and wishlist in one control (`kind`), with
|
|
87
|
+
group gifting, progress to goal and a guest mode that works with no signed-in
|
|
88
|
+
user.
|
|
89
|
+
- `NiceParticipantList` — guest roster with RSVP, check-in, grouping, search and
|
|
90
|
+
a paste-a-list invite box. Fills in the React component that the Angular, Vue
|
|
91
|
+
and Web Component adapters have been exporting a name for.
|
|
92
|
+
- `NiceRsvpControl` — yes / maybe / no with plus-ones, for a public invitation page.
|
|
93
|
+
- `NiceExpenseSplit` — who owes whom, reduced to few transfers. Integer
|
|
94
|
+
minor-unit arithmetic, so balances sum to exactly zero; currencies are grouped
|
|
95
|
+
rather than converted.
|
|
96
|
+
- `NiceInvitationDesigner` — invitation editor on `NiceHtmlEditor` with
|
|
97
|
+
`{{token}}` substitution, live preview and bulk send guarded by `sending`.
|
|
98
|
+
- `NiceMediaCollage` — arrange media into an ordered collage and play it back.
|
|
99
|
+
Drag or keyboard reordering via Pointer Events, so it works on touch.
|
|
100
|
+
|
|
101
|
+
**Changed**
|
|
102
|
+
|
|
103
|
+
- `NiceEventMedia` gains `onReorder`, and `EventMediaItem` gains `order`. Items
|
|
104
|
+
sort by `order` (falling back to array position); the component never keeps its
|
|
105
|
+
own copy of the sequence, so the view cannot drift from what was saved.
|
|
106
|
+
- `SeatSelectionConfig`: every field is now optional, plus new `adjacentOnly`
|
|
107
|
+
(refuse selections that strand a single seat) and `allowedCategories`. Widening
|
|
108
|
+
a type is safe for anyone constructing one; anyone _reading_ a
|
|
109
|
+
`SeatSelectionConfig` value must now handle `undefined`. The type had no
|
|
110
|
+
consumers in this repo, but it is public API, so it is called out here.
|
|
111
|
+
- `Seat` gains `accessType`. `SeatStatus` folds `'wheelchair'`/`'companion'` into
|
|
112
|
+
the same union as `'sold'`, so an accessible seat lost that fact the moment it
|
|
113
|
+
was booked. `accessType` is independent of availability; the old status values
|
|
114
|
+
keep working as an alias for an available accessible seat. The union itself is
|
|
115
|
+
unchanged.
|
|
116
|
+
- `@nice2dev/ui` ships `styles/controls-events.css` with the styles for the above.
|
|
117
|
+
|
|
118
|
+
- 8718f52: Round-20 showcase-feedback fixes (9 controls).
|
|
119
|
+
|
|
120
|
+
- **Select family (all portaled dropdowns).** They now CLOSE on ancestor scroll /
|
|
121
|
+
resize instead of repositioning — the state-driven fixed popup lagged the scroll
|
|
122
|
+
("jumped behind the control") and its z-index overlapped the sticky topnav. A
|
|
123
|
+
guard keeps the dropdown's own option-list scroll from closing it.
|
|
124
|
+
- **NiceDateTimePicker.** The ▲/▼ no longer crowd the minutes column (wider spinner
|
|
125
|
+
- larger inter-column gap); and the time wheel is now looping — opening at 00
|
|
126
|
+
shows 23,22,21… above it and wraps seamlessly.
|
|
127
|
+
- **NiceDateRangeBox.** readOnly hides the pick/clear buttons with `visibility:hidden`
|
|
128
|
+
(kept in layout) instead of removing them, so the control width no longer shrinks.
|
|
129
|
+
- **NiceCard.** The error message renders BELOW the card (a `.nice-card-field` wrapper)
|
|
130
|
+
instead of inside the `overflow:hidden` card; the error ring stays on the card.
|
|
131
|
+
- **NiceGradientPicker.** New `errorPlacement` ('bottom' | 'right'), mirroring the
|
|
132
|
+
field convention.
|
|
133
|
+
- **NiceColorPalette.** A controlled 4-colour value no longer collapses to the harmony
|
|
134
|
+
mode's 3 hues when a harmony control is touched (count falls back to the palette size).
|
|
135
|
+
- **NiceUpload.** `labelPlacement:'bottom'` box now hugs its content (`width:fit-content`)
|
|
136
|
+
so a long label wraps downward instead of stretching the box wide.
|
|
137
|
+
- **NiceSplitter.** Vertical drag now tracks on `document` (not the 6px gutter) so it
|
|
138
|
+
keeps working when the cursor leaves the gutter.
|
|
139
|
+
|
|
140
|
+
- 7dbf4d8: Round-21 showcase-feedback fixes (8 controls).
|
|
141
|
+
|
|
142
|
+
- **Select family (all portaled dropdowns).** On the FIRST open the dropdown
|
|
143
|
+
floated detached above the trigger (the flip test used the 320px height
|
|
144
|
+
estimate because the popup wasn't mounted yet); a one-shot
|
|
145
|
+
`requestAnimationFrame` now re-measures with the real height once mounted, so
|
|
146
|
+
it opens attached under the trigger. Fixes all five selects.
|
|
147
|
+
- **NiceDateTimePicker.** The time wheel is taller (7 rows, `SPIN_ITEM_H` 30→40)
|
|
148
|
+
so it fills the calendar column, and the ▲/▼ chevrons are smaller and hug the
|
|
149
|
+
centre value so they no longer overrun the neighbouring numbers.
|
|
150
|
+
- **NiceColorPalette.** New default `Analogous + Complementary` harmony (3
|
|
151
|
+
analogous hues + 1 complementary), and the colour-wheel markers now take their
|
|
152
|
+
fill from the live palette so a preset that only changes saturation/brightness
|
|
153
|
+
visibly recolours the wheel.
|
|
154
|
+
- **NiceGradientPicker.** The stop-editing bar is always a flat left-to-right
|
|
155
|
+
linear strip (built from the sorted stops) so the draggable markers line up
|
|
156
|
+
with the colour they set even for radial/conic gradients.
|
|
157
|
+
- **NiceTreeList.** Selection now works uncontrolled — the checkboxes drive an
|
|
158
|
+
internal state when no `onSelectionChange` is passed (they were inert). The
|
|
159
|
+
checkbox column is tightened so it hugs the first label.
|
|
160
|
+
- **NiceLeaderboard.** Repaired the doc metadata (dropped a bogus required
|
|
161
|
+
`label` prop, restored the `statColumns` type), and added the CSS the
|
|
162
|
+
component already emitted — a `size` ramp, `variant` (`compact` / `podium`)
|
|
163
|
+
styles and `highlightTop` medal-tinted top rows. Raw `<img>` avatars are now
|
|
164
|
+
`NiceAvatar`, so entries without an image fall back to initials.
|
|
165
|
+
|
|
166
|
+
- a84ed5b: Round-22 showcase-feedback fixes (control changes).
|
|
167
|
+
|
|
168
|
+
- **Select family (all portaled dropdowns).** Fix the first-open _flash_: the popup
|
|
169
|
+
no longer paints one frame at the flipped-above estimate — `useAnchoredPopup`
|
|
170
|
+
keeps it transparent (`opacity:0`) until the post-mount measurement, then reveals
|
|
171
|
+
it once at the right spot. `opacity` (not `visibility`) preserves the search box's
|
|
172
|
+
autofocus.
|
|
173
|
+
- **NiceDropDownBox.** The option highlight no longer overflows the panel's right
|
|
174
|
+
edge (standardised to NiceSelect), and a new `searchable` prop (default true, with
|
|
175
|
+
`onSearch`/`searchPlaceholder`) adds a panel search box.
|
|
176
|
+
- **NiceDateTimePicker.** The time-wheel chevrons sit ~5px further from the
|
|
177
|
+
neighbouring numbers.
|
|
178
|
+
- **NiceList.** The size ramp now scales the header/group-header + loading spinner,
|
|
179
|
+
and the control has a stable width (no collapse on loading, no reflow on
|
|
180
|
+
select/search).
|
|
181
|
+
- **NiceTreeList.** Checking a parent cascades to all descendants (indeterminate on
|
|
182
|
+
partial), and a new opt-in `sortable` prop adds column sorting (asc/desc/none) that
|
|
183
|
+
preserves the tree structure.
|
|
184
|
+
- **NiceActionSheet.** New `readOnly` prop makes the action items inert while Cancel
|
|
185
|
+
stays active.
|
|
186
|
+
- **NiceColorPalette.** Switching harmony now snaps the swatch count to that
|
|
187
|
+
harmony's natural size (unless `colorCount` is pinned or the mode is count-free).
|
|
188
|
+
- **NiceGradientPicker.** Stop markers are draggable along the bar; a bar click only
|
|
189
|
+
adds a stop when it didn't end a drag or land on a marker.
|
|
190
|
+
- **NiceUserMenu.** The presence dot is no longer clipped by the avatar's overflow.
|
|
191
|
+
- **NiceUpload.** `labelPlacement:'bottom'` grows downward (definite 220px width +
|
|
192
|
+
`overflow-wrap`) instead of widening the control.
|
|
193
|
+
- **NiceDateRangeBox.** New `startCondition` / `endCondition` props constrain the
|
|
194
|
+
range between the two pickers and surface a localized validation error.
|
|
195
|
+
|
|
196
|
+
- Round-23 showcase-feedback fixes (date/time controls + select popups).
|
|
197
|
+
|
|
198
|
+
- **NiceDateTimePicker.** New `timeSelectorType` prop (`'spinners'` default | `'clock'`):
|
|
199
|
+
`'clock'` renders an analog clock face — SVG hour/minute hands, click an hour to set
|
|
200
|
+
it (auto-advances to minutes, snaps to `minuteStep`) and an AM/PM toggle. A small
|
|
201
|
+
in-popup segmented toggle (icons from `@nice2dev/icons`) switches spinners↔clock at
|
|
202
|
+
runtime. The emitted value stays ISO 24h.
|
|
203
|
+
- **NiceDateRangeBox.** New `locale` prop (BCP 47) forwarded to both inner pickers'
|
|
204
|
+
`displayLocale`, so a range can render in the user's format (`pl-PL` → `dd.MM.yyyy`)
|
|
205
|
+
instead of falling back to the app/`en` locale — this was the apparent "value vs
|
|
206
|
+
greyed-boundary" mismatch (both were the same ISO date shown in different formats).
|
|
207
|
+
Also forwards `timeSelectorType` for datetime ranges.
|
|
208
|
+
- **NiceLookup.** Fix the dropdown collapsing to a single row + scrollbar (a Round-22
|
|
209
|
+
regression: the list was `position:absolute` inside a panel that had gained
|
|
210
|
+
`overflow-x:hidden`). The list is now in normal flow like NiceSelect.
|
|
211
|
+
- **NiceDropDownBox.** Fix the popup opening above the trigger when there was room
|
|
212
|
+
below — the uncapped panel height made the flip test overshoot. The panel is now
|
|
213
|
+
height-bounded (`max-height` + `overflow-y:auto`) like NiceSelect/NiceTreeSelect.
|
|
214
|
+
- **NiceCalendar.** The min/max disabled-date guard now also rejects malformed /
|
|
215
|
+
out-of-range ISO bounds (month 01–12, day 01–31), so a bad `min` can't silently grey
|
|
216
|
+
the wrong cells.
|
|
217
|
+
|
|
218
|
+
- Round-24 showcase-feedback fixes.
|
|
219
|
+
|
|
220
|
+
**@nice2dev/ui**
|
|
221
|
+
|
|
222
|
+
- **NiceDateRangeBox / NiceDateTimePicker.** Fix a real day/month transposition: the
|
|
223
|
+
keyboard `t`/Today shortcut (`writeDate`) built digits in ISO order but they were
|
|
224
|
+
interpreted in display order, so for a localized mask (`dd.MM.yyyy`) Today produced a
|
|
225
|
+
transposed value that then drove the other picker's greyed range. `writeDate` now builds
|
|
226
|
+
an ISO string and routes through the ISO-safe `applyIso`. The popup **Today/Now** buttons
|
|
227
|
+
are also disabled when today is outside `[min, max]`, instead of silently clamping to `min`.
|
|
228
|
+
- **NiceDateTimePicker (clock mode).** The highlight now rides the selected **hour number**
|
|
229
|
+
on the ring (not the hand tip); **both** hands are always drawn (active in the accent
|
|
230
|
+
colour, the other muted); and `minuteStep` (5/10/15/20/30) draws snap markers + labels and
|
|
231
|
+
clicks snap to them.
|
|
232
|
+
- **NiceTreeView.** New optional `header` prop rendered above the search box / tree.
|
|
233
|
+
- **NiceKanbanBoard.** New `collapseDirection: 'vertical' | 'horizontal'` prop (a short
|
|
234
|
+
horizontal bar as an alternative to the slim vertical rail); the collapsed count renders as
|
|
235
|
+
a one-line diagonal fraction (`2/3`).
|
|
236
|
+
- **NicePivotGridFieldChooser.** Working HTML5 drag-and-drop, `name (type)` field bars (new
|
|
237
|
+
`NicePivotField.dataType`), the per-field area buttons replaced by a `NiceSelect` gated
|
|
238
|
+
behind a new `showAreaSelect` prop, and a single-column layout so Filters no longer wraps.
|
|
239
|
+
- **NiceTabs.** New `countLocation: 'right' | 'bottom'` prop — `'bottom'` stacks a tab's
|
|
240
|
+
badge/count under the icon as a heavily-rounded pill.
|
|
241
|
+
|
|
242
|
+
**@nice2dev/icons** — geometry fixes across all variants: NtdBank (roof/columns lowered ~20%
|
|
243
|
+
and centred), NtdMusic (note heads meet stems flush), NtdHome (square floor + lower walls),
|
|
244
|
+
NtdPlanet (ring uses the secondary colour in solid/outline), NtdPizza (arc crust, not a
|
|
245
|
+
triangle), NtdDroplet (slimmer profiled sides), NtdHexagon & NtdSend (sharp, not rounded).
|
|
246
|
+
|
|
247
|
+
**@nice2dev/events** — NiceEventPlanning grows from 6 to 10 tabs (Schedule, Tasks, Vendors,
|
|
248
|
+
Documents), each optional tab hideable via a `show*` boolean prop, plus a `countLocation`
|
|
249
|
+
prop (`'bottom'` default | `'right'`) forwarded to NiceTabs.
|
|
250
|
+
|
|
251
|
+
**@nice2dev/ui-api** — NiceAPIDesigner rebuilt on Nice controls with real, editable Paths /
|
|
252
|
+
Schemas / Security editors and a seeded Pet-Store example so it opens populated.
|
|
253
|
+
|
|
254
|
+
**@nice2dev/ui-graphics** — NicePixelEditor: the right settings panel folds into collapsible
|
|
255
|
+
NiceCollapse sections, the top menu into NiceMenu dropdowns, and the active tool now has a
|
|
256
|
+
clearly-visible highlight.
|
|
257
|
+
|
|
258
|
+
- Round-27 showcase-feedback fixes.
|
|
259
|
+
|
|
260
|
+
**@nice2dev/icons**
|
|
261
|
+
|
|
262
|
+
- **New `wireframe` variant** (10th). Like `sharp` and `rounded` it has no per-icon path
|
|
263
|
+
data — it is a mechanical re-draw of `paths.solid`, which carries the _whole_
|
|
264
|
+
construction, so every shape (creases, inner discs, duotone underlays) comes through as
|
|
265
|
+
a thin unfilled stroke in the primary colour. Per-shape `opacity` is cleared so a faint
|
|
266
|
+
duotone wash cannot survive as a ghost line. Both render paths (`createIcon` and the RSC
|
|
267
|
+
twin) share the pass, and the variant is registered in the design tokens and the Figma
|
|
268
|
+
export set.
|
|
269
|
+
- **`NtdUndo` / `NtdRedo` duotone** no longer draw a secondary disc behind the curve (it
|
|
270
|
+
read as "a ball in the middle"). The two tones now follow the icon's own parts:
|
|
271
|
+
arrowhead in `primaryColor`, tail in `secondaryColor`, both at full strength.
|
|
272
|
+
- **`NtdSend`** — `outline` drops the diagonal crease and shows the silhouette only;
|
|
273
|
+
`duotone` splits the solid plane along that crease instead of stacking a wash under a
|
|
274
|
+
stroke, giving an upper wing in `primaryColor` and a lower wing in `secondaryColor`.
|
|
275
|
+
- **`NtdDroplet`** reshaped in all five path variants: the sides now leave the tip almost
|
|
276
|
+
vertically and only flare low down, and the bulb is an ellipse (rx 5.6 / ry 6.2) rather
|
|
277
|
+
than an r=8 circle — a pinched waist and an oval silhouette instead of a round, fat one.
|
|
278
|
+
|
|
279
|
+
**@nice2dev/ui**
|
|
280
|
+
|
|
281
|
+
- **`NicePivotGrid`** — new `headerText` prop rendered at the left of the toolbar, with the
|
|
282
|
+
actions pushed flush right on the same row. The field-chooser button is icon-only now
|
|
283
|
+
(tooltip + `aria-label` keep the name), and CSV export became a download menu offering
|
|
284
|
+
**CSV and XLSX**; the XLSX goes through the library's own dependency-free writer
|
|
285
|
+
(`downloadXLSX`), so no new runtime dependency. Both formats are built from one shared
|
|
286
|
+
table model and therefore cannot drift apart.
|
|
287
|
+
- **`NiceDateTimePicker`** — opening the popup or switching to `spinners` no longer reels
|
|
288
|
+
the wheels round to the value. The columns carried a CSS `scroll-behavior: smooth`, which
|
|
289
|
+
hijacked the `behavior: 'auto'` jump the wheel asks for on mount; the rule is gone and the
|
|
290
|
+
wheel now says `'instant'` explicitly. Small steps still animate, and reduced-motion is
|
|
291
|
+
honoured in JS (a media query cannot override an explicit `scrollTo` behavior).
|
|
292
|
+
- **`NiceDateRangeBox`** — the `singleField` box was sized off a flat worst-case
|
|
293
|
+
`26ch`/`36ch`, leaving ~100 px of dead space between a locale-formatted range and the
|
|
294
|
+
clear button. It is now measured from a sample range rendered in the same locale and
|
|
295
|
+
preset, so the field stays snug (~20 px of slack) and does not resize as you pick.
|
|
296
|
+
- **`NiceKanbanBoard`** — collapsing a column horizontally shortens it instead of narrowing
|
|
297
|
+
it: the collapsed metrics mirror an expanded column in both the scroll and responsive
|
|
298
|
+
layouts. The `2/3` limit counter sits on one baseline (the staggered ±0.12em offsets read
|
|
299
|
+
as a crooked figure).
|
|
300
|
+
- **`NiceDropDownButton`** now applies the `title` from `NiceBaseProps` and, for an
|
|
301
|
+
icon-only trigger, uses it as the accessible name — it used to be dropped silently.
|
|
302
|
+
|
|
303
|
+
**@nice2dev/ui-api** — `NiceAPIDesigner` follows the theme. The stylesheet stood on
|
|
304
|
+
`--nice-*` colour aliases that are declared in `@nice2dev/ui`, not here (and four of which
|
|
305
|
+
— `--nice-hover`, `--nice-selected`, `--nice-bg-code`, `--nice-grid` — are declared nowhere
|
|
306
|
+
at all), so a consumer loading only this package's CSS got hard-coded light values. All of
|
|
307
|
+
them moved to the canonical theme tokens, `color: white` became `--text-on-primary` and the
|
|
308
|
+
two paper-white panels became `--bg-elevated`. The endpoints/schemas sidebar now runs the
|
|
309
|
+
full height of the editor pane with a sticky header and scrolls inside itself, and the view
|
|
310
|
+
switcher wraps instead of forcing a sideways scroll.
|
|
311
|
+
|
|
312
|
+
**@nice2dev/ui-graphics** — `NiceVectorEditor`'s `initialIcon.variant` accepts
|
|
313
|
+
`'wireframe'`; a snippet exported while it is selected lands in `solid`, since `wireframe`
|
|
314
|
+
is derived and never authored as its own layer.
|
|
315
|
+
|
|
316
|
+
- Dependency review: align every declared range and adopt React 19 in the dev/test toolchain.
|
|
317
|
+
|
|
318
|
+
- Version drift across the monorepo went from 24 packages to 0; every external package is now
|
|
319
|
+
declared with a single range.
|
|
320
|
+
- `@testing-library/jest-dom` 6 → 7. jest-dom 6 augments `declare module 'vitest'`, which
|
|
321
|
+
vitest 4 no longer uses, so matcher types were broken in every package already on vitest 4.
|
|
322
|
+
- React 19 in devDependencies: `useRef` now requires an initial value, `useRef<T>(null)` yields
|
|
323
|
+
`RefObject<T | null>`, and element props default to `unknown`. Public peer ranges are
|
|
324
|
+
unchanged (`react >=17.0.0`), so consumers are unaffected.
|
|
325
|
+
- Build configs now externalise `react-dom` subpaths (`/^react-dom(\/.*)?$/`). An exact-string
|
|
326
|
+
external does not match `react-dom/server`, which under React 19 resolves to the Node build
|
|
327
|
+
and pulled `async_hooks` into the `ui-graphics` bundle.
|
|
328
|
+
- Buffer-boundary casts for TypeScript 5.7+ generic TypedArrays in audio, graphics and crypto code.
|
|
329
|
+
- `@nice2dev/ui-ai` now externalises `@nice2dev/*`, matching the peer dependencies it already
|
|
330
|
+
declared. It was inlining the whole `@nice2dev/ui` barrel, which put it 8x over its bundle
|
|
331
|
+
budget; it now measures 72.8 kB against 95 kB.
|
|
332
|
+
- `packages/ui/scripts/postbuild-style.mjs` no longer nests a CSS comment inside the generated
|
|
333
|
+
`dist/style.css` banner. CSS comments do not nest, so the inner `*/` closed the block early and
|
|
334
|
+
strict minifiers (lightningcss, used by Vite 8) rejected the file outright.
|
|
335
|
+
- Every remaining minor and patch update applied (44 packages), plus 14 tooling majors
|
|
336
|
+
(`@changesets/cli`, `glob`, `ora`, `lint-staged`, `concurrently`, `chromatic`, `phaser`,
|
|
337
|
+
`fast-check`, `@stripe/stripe-js`, `@nuxt/*`, `@skpm/builder`, `conventional-changelog-angular`,
|
|
338
|
+
`@typescript-eslint/typescript-estree`) and `framer-motion` 12 → 13.
|
|
339
|
+
- `chroma-js` and `@types/chroma-js` moved to 3.x **together**; `transforms.ts` now types the
|
|
340
|
+
lazily-imported binding as the module's default export rather than its namespace, which
|
|
341
|
+
@types/chroma-js 3 distinguishes.
|
|
342
|
+
- `fast-check` 4 removed the `hexaString` arbitrary; `@nice2dev/testing` now builds hex colours
|
|
343
|
+
with `string({ unit })`.
|
|
344
|
+
- `@nice2dev/game-engine` declares `@webgpu/types` instead of relying on an undeclared, hoisted
|
|
345
|
+
copy, and its hand-rolled WebGPU `declare global` block is gone.
|
|
346
|
+
- 25 bare `JSX.*` type references became `React.JSX.*` — React 19 removed the global JSX namespace.
|
|
347
|
+
- 13 packages that run tests in the jsdom environment now declare `jsdom`, and 14 that invoke
|
|
348
|
+
`vitest` now declare `vitest`. They were free-riding on hoisted copies that disappeared the
|
|
349
|
+
moment every manifest agreed on one range.
|
|
350
|
+
|
|
351
|
+
- Updated dependencies [a84ed5b]
|
|
352
|
+
- Updated dependencies
|
|
353
|
+
- @nice2dev/i18n@1.0.31
|
|
354
|
+
- @nice2dev/ui-core@1.0.31
|
|
355
|
+
|
|
356
|
+
## 1.0.31
|
|
357
|
+
|
|
358
|
+
### Patch Changes
|
|
359
|
+
|
|
360
|
+
- 2f9e5d4: Showcase-feedback round 10 (editors state/props + bugs + datetime consolidation):
|
|
361
|
+
- NiceCheckbox: tri-state `indeterminate` now reaches all three states; expose
|
|
362
|
+
readOnly/loading/labelPlacement/errorPlacement in the props panel.
|
|
363
|
+
- NiceToggle/NiceRating: expose readOnly/loading/error/placement props; Rating
|
|
364
|
+
`loading` now replaces the stars with a spinner.
|
|
365
|
+
- NiceRadioGroup / NiceTagBox: implement `readOnly` (was ignored).
|
|
366
|
+
- NiceNumberInput: value stays right-aligned on blur; new `suffixSeparator` prop
|
|
367
|
+
(default false) gating the value↔suffix divider.
|
|
368
|
+
- NiceDatePicker: datetime shows a dot separator instead of the ISO `T` (emitted
|
|
369
|
+
value keeps `T`); datetime mode gains `showSeconds`, `minuteStep`, `showNow`,
|
|
370
|
+
and `hourFormat` (native picker) — ported from the now-removed
|
|
371
|
+
NiceDateTimePicker.
|
|
372
|
+
- NiceTimePicker: honor the `placeholder` prop.
|
|
373
|
+
- NiceSlider: more spacing around a left-placed label.
|
|
374
|
+
|
|
375
|
+
Removed **NiceDateTimePicker** (breaking): its datetime capability is covered by
|
|
376
|
+
NiceDatePicker's datetime mode; NiceForm, ui-forms `formUtils`, and ui-core
|
|
377
|
+
`adapters` now resolve datetime fields to NiceDatePicker.
|
|
378
|
+
|
|
379
|
+
- 86a2844: Showcase-feedback round 11:
|
|
380
|
+
- Fixed two "auto-preview unavailable" crashes: NiceDatePicker (a scraped
|
|
381
|
+
`type:"text"` catalog default the new masked field threw on — stripped +
|
|
382
|
+
hardened `buildFormatSpec`) and NiceColorPalette (array `value` was
|
|
383
|
+
string-wired — AutoDemo now recognizes `T[]` value props).
|
|
384
|
+
- NiceCheckbox: `label`/`title` are now editable text in the demo props panel.
|
|
385
|
+
- NiceCalendar: no longer full-width by default (`width:fit-content`); `fullWidth`
|
|
386
|
+
exposed as an opt-in prop.
|
|
387
|
+
- NiceMaskedInput: sized to its mask (demo passes a real mask).
|
|
388
|
+
- NicePickList: fixed list styling (`__list` selector), stable panel width when
|
|
389
|
+
search is hidden, per-size rules, and a drag affordance for `sortable`.
|
|
390
|
+
- NiceMention: implements `loading`/`labelPlacement`/`errorPlacement` (were
|
|
391
|
+
ignored) + xs/md/xl sizes.
|
|
392
|
+
- NiceUpload: props now show in the demo; supports an icon-only dropzone (clear
|
|
393
|
+
`text`); removed a raw glyph in favour of a NiceIcon.
|
|
394
|
+
|
|
395
|
+
Removed 5 controls (breaking, user-directed): **NiceCurrencyInput**,
|
|
396
|
+
**NicePhoneInput**, **NiceVatInput**, **NiceTaxRatePicker** (NiceForm's phone
|
|
397
|
+
field → `NiceTextInput type="tel"`); **NiceCardRadioGroup** folded into
|
|
398
|
+
**NiceCardGroup**, which now accepts `value`/`onChange`/`name` to act as a
|
|
399
|
+
single-select card radio group.
|
|
400
|
+
|
|
401
|
+
- 02193f1: Consolidated all file-upload controls into **NiceUpload** (breaking, user-directed).
|
|
402
|
+
|
|
403
|
+
NiceUpload absorbed the full upload engine from the former NiceFileUpload:
|
|
404
|
+
- `uploadUrl` / `uploadHandler` / `uploadHeaders` + a default XHR handler with real
|
|
405
|
+
progress; `autoUpload`, `concurrentUploads`, retry/cancel, `maxRetries`, and
|
|
406
|
+
**chunked upload** (`chunkSize` / `chunkThreshold`) with a per-file status
|
|
407
|
+
state machine (pending/uploading/success/error/cancelled).
|
|
408
|
+
- Validation (`minFileSize` / `validateFile` / accept-type errors), image/video
|
|
409
|
+
previews + file-type icons, `listMode` (list/grid/compact), `previewSize`,
|
|
410
|
+
`renderPreview` / `renderFileItem`, `keepFilesAfterUpload`, `initialFiles`.
|
|
411
|
+
- `variant="button"` (button-only trigger) and custom `dropChildren` drop surface;
|
|
412
|
+
an imperative handle via the optional `apiRef` prop.
|
|
413
|
+
- Icon-only dropzone (empty `text`); all strings routed through i18n.
|
|
414
|
+
|
|
415
|
+
**Removed** (→ use NiceUpload): `NiceFileUpload`, `NiceDropZone`,
|
|
416
|
+
`NiceFilePickerButton`, and the deprecated `NiceFileUploader` alias. NiceForm's
|
|
417
|
+
`file` field now renders `NiceUpload`. The engine types (`FileInfo`,
|
|
418
|
+
`UploadStatus`, `ChunkInfo`, `UploadResponse`, `UploadRequest`, `UploadHandler`,
|
|
419
|
+
`FileItemActions`, `NiceUploadHandle`) are re-exported from NiceUpload.
|
|
420
|
+
|
|
421
|
+
- c925f37: Showcase-feedback round 12 — control fixes:
|
|
422
|
+
- **NiceAutocomplete / NiceSelect / NiceToggleGroup**: fixed an "auto-preview
|
|
423
|
+
unavailable" crash — the demo harness treated the union `string | string[]` as
|
|
424
|
+
array-only and dropped value/onChange wiring, leaving `value` undefined.
|
|
425
|
+
NiceAutocomplete also hardens its internal value seed.
|
|
426
|
+
- **NiceCalendar**: no longer always full-width — the inner grid was `width:100%`,
|
|
427
|
+
which defeats `fit-content` (it's now `auto`, and 100% only under `fullWidth`).
|
|
428
|
+
Day cells are square, and `size` finally scales them (it was inert).
|
|
429
|
+
- **NiceLookup**: stable width regardless of the selected value (an inline
|
|
430
|
+
`width:fit-content` was overriding all CSS); override with `controlWidth`.
|
|
431
|
+
- **NicePickList**: `sortable` now shows a drag handle (the reorder logic already
|
|
432
|
+
worked but had no affordance); the control no longer narrows when `searchable`
|
|
433
|
+
is off; `size` now scales icons, buttons and text — not just spacing.
|
|
434
|
+
- **NiceKnob**: `showValue` works — an empty `valueTemplate` was blanking the label.
|
|
435
|
+
- **NiceRating**: `loading` keeps the star outlines visible beside the spinner.
|
|
436
|
+
- **NiceSegmentedControl**: `loading` hides the segment labels; new
|
|
437
|
+
`errorPlacement="bottom" | "right"`.
|
|
438
|
+
- **NiceRangeSlider**: no more literal "undefined" labels — the documented API was
|
|
439
|
+
stale, so `startValue`/`endValue` were never applied; they now default to the
|
|
440
|
+
track bounds and `onChange` is optional (fixes a drag crash).
|
|
441
|
+
- **NiceDateRangeBox**: new `dateFormatPreset` (and legacy `type`) forwarded to
|
|
442
|
+
both inner pickers — datetime, month, week and time ranges, not just dates.
|
|
443
|
+
|
|
444
|
+
- 3d38679: Merged **NiceTimePicker** into the date/time field and renamed
|
|
445
|
+
**NiceDatePicker → NiceDateTimePicker** (breaking, user-directed).
|
|
446
|
+
|
|
447
|
+
Before removing NiceTimePicker, its time-only capabilities were ported so nothing
|
|
448
|
+
is lost:
|
|
449
|
+
- `hourFormat="12"` now renders an AM/PM toggle beside the field (it was declared
|
|
450
|
+
but a no-op before).
|
|
451
|
+
- Countdown subsystem: `countdown` / `targetDate` / `onTargetChange` /
|
|
452
|
+
`countdownFormat` (`verbose|compact|short|minimal|words`) / `formatCountdown` /
|
|
453
|
+
`countdownLabel` / `countdownInterval` / `countdownDoneText` with a live label.
|
|
454
|
+
- `min`/`max` now clamp the typed masked value (not just the native companion).
|
|
455
|
+
- ↑/↓ arrow stepping of the last time segment, honouring `minuteStep`.
|
|
456
|
+
|
|
457
|
+
`NiceTimePicker` is removed — use `NiceDateTimePicker` with
|
|
458
|
+
`dateFormatPreset="time"` (or `type="time"`). Consumers (NiceForm's time field,
|
|
459
|
+
ui-forms `formUtils`, the scheduler views, the view registry) were repointed.
|
|
460
|
+
`NiceDateRangeBox` also gained a `dateFormatPreset`/`type` prop forwarded to both
|
|
461
|
+
inner pickers. The `NiceDateFormatPreset` type name is unchanged.
|
|
462
|
+
|
|
463
|
+
- 7771af3: Round-13 showcase-feedback fixes across ~23 controls.
|
|
464
|
+
|
|
465
|
+
**Behaviour / bug fixes**
|
|
466
|
+
- **NiceUpload** — restored the dropzone look (icon + themed box + hover tint;
|
|
467
|
+
`variant` now defaults to `"dropzone"`).
|
|
468
|
+
- **NiceCard** — `selected` now shows a ring (drawn on a `::after` pseudo-element
|
|
469
|
+
so the display-style inline chrome can't override it).
|
|
470
|
+
- **NiceMenu** — the active-item highlight fills the bar; `separated` (default)
|
|
471
|
+
gained a subtle toolbar surface.
|
|
472
|
+
- **NiceLookup** — implemented `disabled` (gray-out), `readOnly` (inert),
|
|
473
|
+
`loading` (spinner), and `labelPlacement` / `errorPlacement`.
|
|
474
|
+
- **NiceColorPicker** — the palette popup follows the theme instead of always
|
|
475
|
+
rendering light; hex input honours `withAlpha`; `withAlpha`/`compact` are now
|
|
476
|
+
documented. **`showInput` and `showRandom` now default to `false`** (was `true`).
|
|
477
|
+
- **NiceSignature** — theme-aware canvas (empty `penColor`/`backgroundColor`
|
|
478
|
+
resolve to the theme's text/background), plus a `label` prop and an
|
|
479
|
+
`onChangeDataUrl` callback ported from the removed NiceSignaturePad.
|
|
480
|
+
- **NiceSegmentedControl** — the active thumb is hidden while `loading`.
|
|
481
|
+
- **NiceAutocomplete** — multiple-mode selections render as separate bordered
|
|
482
|
+
chips with per-chip remove; the clear button matches the other controls.
|
|
483
|
+
- **NiceCalendar** — `multiple` works (uncontrolled fallback); `min`/`max` only
|
|
484
|
+
apply to complete ISO dates.
|
|
485
|
+
- **NiceDateRangeBox** — horizontal layout stays on one line; `labelPlacement`
|
|
486
|
+
works inline.
|
|
487
|
+
- **NicePickList** — drag-reorder works in both columns with insert-position
|
|
488
|
+
indicators. **When `sortable` is off (the default), both lists now auto-sort
|
|
489
|
+
alphabetically** (display-only; consumer arrays keep their order).
|
|
490
|
+
- **NiceColorPalette** — the hue ring supports press-and-drag.
|
|
491
|
+
- **NiceVirtualScroller** — `itemHeight`/`height` are honoured, and it gained
|
|
492
|
+
`size` + `disabled`/`loading`/`error` states.
|
|
493
|
+
- **NiceBusinessCard** — `variant` (card/inline/compact) and `showLogo` (with a
|
|
494
|
+
fallback avatar) now render.
|
|
495
|
+
|
|
496
|
+
**Breaking (patch, pre-1.2.0 convention)**
|
|
497
|
+
- **NiceSignaturePad is removed** — it duplicated **NiceSignature**. Its `label`
|
|
498
|
+
and data-URL value model were ported (`label`, `onChangeDataUrl`). Migrate to
|
|
499
|
+
`NiceSignature`; for a data-URL value use `onChangeDataUrl` or the imperative
|
|
500
|
+
`ref.toDataURL()`. (The separate touch-optimised `@nice2dev/ui-mobile`
|
|
501
|
+
`NiceSignaturePad` is unaffected.)
|
|
502
|
+
|
|
503
|
+
- 703358c: Round-14 showcase-feedback fixes across ~12 controls, plus a new custom date/time
|
|
504
|
+
popup and two control removals.
|
|
505
|
+
|
|
506
|
+
**Behaviour / bug fixes**
|
|
507
|
+
- **NiceCard** — `bordered` / `hoverable` / `selected` now render: the default
|
|
508
|
+
display-style no longer emits card chrome (border/shadow/background) inline, so
|
|
509
|
+
the base `.nice-card` classes own it. Standalone `selectable` cards gained an
|
|
510
|
+
uncontrolled fallback (click toggles selection when there is no controlled
|
|
511
|
+
`selected` or `NiceCardGroup`).
|
|
512
|
+
- **NiceMenu** — `panelAlign` is honoured in portal mode (start/end/center from
|
|
513
|
+
the panel width); the demo stops overriding `density` with inline
|
|
514
|
+
`paddingX`/`paddingY` and drives Size/State from the standard bars.
|
|
515
|
+
- **NiceVirtualScroller** — rows are flex-centered, `box-sizing:border-box` and
|
|
516
|
+
clipped, so every row is exactly `itemHeight` with vertically-centred, truncated
|
|
517
|
+
content.
|
|
518
|
+
- **NiceRangeSlider** — the `valuePlacement="right"` value sits after the track
|
|
519
|
+
(not between label and track); default control width (300px, like NiceSlider)
|
|
520
|
+
so `controlWidth` works.
|
|
521
|
+
- **NiceAutocomplete** — `readOnly` is implemented: the input is read-only and
|
|
522
|
+
typing / selecting / opening the list / removing tags are all blocked; clear and
|
|
523
|
+
tag-remove affordances hide.
|
|
524
|
+
- **NiceTopNav** — `showThemePicker` alone now renders `<NiceThemePicker>` (no
|
|
525
|
+
longer gated on `themePickerProps.themes`). Demo: nav items switch page content;
|
|
526
|
+
language & theme pickers are wired to real state and shown inline.
|
|
527
|
+
- **NiceUserMenu** — the dropdown portals to `document.body` (fixed positioning
|
|
528
|
+
from the trigger) so an `overflow:hidden` ancestor can't clip it.
|
|
529
|
+
- **NiceSplitter** — base `.nice-splitter` is `display:flex; width:100%`; the demo
|
|
530
|
+
gives the container a real size so there is a drag range.
|
|
531
|
+
- **NiceDateRangeBox** — demo exposes the State bar + `errorPlacement`; `readOnly`
|
|
532
|
+
forwards to both inner pickers for a true read-only range.
|
|
533
|
+
- **NiceEmpty** — demo seeds a title/description + icon + action so it renders
|
|
534
|
+
visibly.
|
|
535
|
+
- **NiceDateTimePicker** — the browser-native `showPicker()` is replaced by a
|
|
536
|
+
custom portaled popup for date / datetime / time (month/week keep the native
|
|
537
|
+
fallback): a calendar (NiceCalendar) + 24h hour/minute(/second) spinners and a
|
|
538
|
+
full-width footer (**Clear · Today · Now · Confirm**), theme-scoped and
|
|
539
|
+
translatable. Time is always 24h. New i18n keys `controls.now` /
|
|
540
|
+
`controls.clear` / `controls.today` / `controls.confirm` in all 30 languages.
|
|
541
|
+
|
|
542
|
+
**Kept (not a duplicate)**
|
|
543
|
+
- **NiceTerminalUI** stays — nav's `NiceConsole` is a command palette and
|
|
544
|
+
`NiceLogConsole` is output-only; NiceTerminalUI is an interactive REPL.
|
|
545
|
+
|
|
546
|
+
**Breaking (patch, pre-1.2.0 convention)**
|
|
547
|
+
- **NiceImageViewer is removed** — use **NiceGallery** / **NiceLightbox**. Its
|
|
548
|
+
export, facade re-export (`@nice2dev/ui-display`), showcase demo, catalog entry,
|
|
549
|
+
doc metadata (`docRegistry`/`docPreviews`), CSS and the Flutter widget are gone.
|
|
550
|
+
- **NiceThemeSwitcher is removed** — use **NiceThemePicker** (already used by the
|
|
551
|
+
shells). Its export, facade re-export, showcase demo, presets, catalog entry,
|
|
552
|
+
nav members and doc cross-references are gone.
|
|
553
|
+
|
|
554
|
+
- b2936fb: Round-15 — the three largest feedback items.
|
|
555
|
+
- **NiceCardView removed → consolidated into NiceCardGroup.** NiceCardGroup gains a
|
|
556
|
+
**data mode**: `items` + `renderCard` (+ `searchable` / `searchField` /
|
|
557
|
+
`searchPlaceholder` / `emptyText` / `onCardClick`) render a searchable grid of cards —
|
|
558
|
+
the former NiceCardView behaviour. Display / radio mode unchanged; new
|
|
559
|
+
`NiceCardGroupItem` type. NiceCardView is removed from `@nice2dev/ui` and
|
|
560
|
+
`@nice2dev/ui-data` (hard removal, patch per pre-1.2.0 convention).
|
|
561
|
+
- **NiceColorPalette — collapsed field + studio popup.** The palette now shows as a
|
|
562
|
+
NiceColorPicker-style field (label + a rectangle of all swatches + chevron); clicking a
|
|
563
|
+
swatch opens the full studio (wheel / harmonies / presets / contrast) in a popup that
|
|
564
|
+
portals into the theme host, so it integrates with every named theme. Value API
|
|
565
|
+
unchanged.
|
|
566
|
+
- **NiceKaraokeSongBrowser — keyboard + gamepad navigation.** The song list is a
|
|
567
|
+
roving-tabindex listbox (Arrow / Home / End / PageUp-Down move a focus cursor,
|
|
568
|
+
Enter/Space play or select) with gamepad support via `useGamepad` (new `enableGamepad`
|
|
569
|
+
prop, default true): D-pad / left stick move, A plays / selects, Start confirms.
|
|
570
|
+
|
|
571
|
+
- 3e794cc: Round-15 showcase-feedback fixes across ~23 controls (several re-opens of round 14).
|
|
572
|
+
|
|
573
|
+
**Real bugs**
|
|
574
|
+
- **NicePixelEditor** — the work-area canvas mounted at 0px (`.canvasContainer flex:1`
|
|
575
|
+
is inert inside the block `.nice-app-shell__content`); `height:100%` gives it size so
|
|
576
|
+
tools + drawing work.
|
|
577
|
+
- **NiceKanbanBoard** — a collapsed column no longer rotates its title
|
|
578
|
+
(`writing-mode:vertical-rl` removed, title hidden); it just collapses to a 44px strip.
|
|
579
|
+
- **NiceUserMenu** — the body-portalled dropdown now carries the theme (`scopeThemeClass`)
|
|
580
|
+
instead of always rendering light.
|
|
581
|
+
- **NiceMenu** — `size` now scales the leading icon (svg `em`, like NiceButton); `loading`
|
|
582
|
+
implemented (dim + spinner + inert).
|
|
583
|
+
- **NiceLookup** — `readOnly` hides the chevron; loading / errorPlacement=right /
|
|
584
|
+
labelPlacement=left no longer squeeze the value — the field is `fit-content` with a
|
|
585
|
+
min-width on the value area so those extend it instead of subdividing a fixed 220px.
|
|
586
|
+
- **NiceTreeSelect** — clicking a branch drills in (expand/collapse) instead of committing
|
|
587
|
+
the parent + closing; the expand chevron lost its stray UA button border.
|
|
588
|
+
- **NiceTreeGrid** — STATE toggles no longer change the control width; the dead `compact`
|
|
589
|
+
(missing base `nice-table` class) works; new `size` density.
|
|
590
|
+
- **NiceDateTimePicker** — the popup's time `<select>`s are replaced by vertical typable
|
|
591
|
+
spinners (▲/input/▼, wrap + minuteStep + arrows); the popup portals into the theme host
|
|
592
|
+
(`portalTarget`) so **every** named theme renders (not just light/dark); the showcase
|
|
593
|
+
translator now chains to the library dictionary so the footer (and every library key)
|
|
594
|
+
translates.
|
|
595
|
+
|
|
596
|
+
**New / additive props**
|
|
597
|
+
- **NiceAutocomplete** — `showAll` (default true): focusing opens the dropdown with all
|
|
598
|
+
options sorted alphabetically.
|
|
599
|
+
- **NiceCard / NiceCardGroup / NiceSpreadsheet / NiceActionSheet / NiceBottomSheet** — gain
|
|
600
|
+
`disabled`/`readOnly`/`loading`/`error` STATE and a dimensional `size`. NiceCard's demo is
|
|
601
|
+
a single card with every prop on the bar; NiceCardGroup's radio mode is opt-in (default
|
|
602
|
+
plain cards).
|
|
603
|
+
- **NiceDataGrid** — top-level `disabled`/`readOnly`/`error`; the demo puts `size` on the
|
|
604
|
+
Size bar + adds the State bar (the Filter button was already icon-only).
|
|
605
|
+
- **NiceTabs** — `iconOnly` (labels → tooltip) and `centered` (`true`|`false`|`'auto'`).
|
|
606
|
+
**NiceEventPlanning** exposes `tabsIconOnly` (default true) + `tabsCentered`.
|
|
607
|
+
- **NiceKaraokeUploader** — rebuilt on **NiceUpload** (accept `.txt`, `maxFileSize`,
|
|
608
|
+
`validateFile` rejects non-.txt / empty); the UltraStar parse is unchanged.
|
|
609
|
+
|
|
610
|
+
**Demo / config**
|
|
611
|
+
- NiceForm (seeded fields + right-aligned Age stepper), NiceTopNav (seeded theme picker),
|
|
612
|
+
NiceTable (Role column sortable), NiceDateRangeBox (errorPlacement moved to the ⚙ panel),
|
|
613
|
+
NiceUpload (empty-label dropzone is a deterministic square). **NiceDropDownBox** kept — its
|
|
614
|
+
demo now explains it vs NiceSelect / NiceLookup.
|
|
615
|
+
|
|
616
|
+
(NiceCardView removal + NiceColorPalette redesign + NiceKaraokeSongBrowser navigation are in
|
|
617
|
+
`fb-round15-big3.md`.)
|
|
618
|
+
|
|
619
|
+
- 93959ba: Round-16 showcase-feedback fixes (3 display controls).
|
|
620
|
+
- **NiceSkeleton** — the shimmer was barely visible in every theme (the `::after`
|
|
621
|
+
highlight used `--hover-bg`, which equals the base in light and is darker in dark).
|
|
622
|
+
A dedicated theme-aware `--nice-skeleton-base` / `--nice-skeleton-highlight` pair now
|
|
623
|
+
gives a genuinely lighter sweep in both themes; the reduced-motion guard now also
|
|
624
|
+
stops the pseudo-element animation.
|
|
625
|
+
- **NiceEmpty** — `size` now scales the control: added `.nice-empty--{xs..xl}` CSS
|
|
626
|
+
(padding, gap, title/description font, and the icon via `svg` width/height). The demo's
|
|
627
|
+
icon is `NtdSearch` on a no-results state and the Refresh action gains a leading icon.
|
|
628
|
+
- **NiceTerminalUI** — now theme-reactive: new `theme` prop (`auto` follows the page
|
|
629
|
+
theme via canonical tokens, default; `dark` pins classic VS Code; `matrix`). Added
|
|
630
|
+
`.nice-terminal--{size}` font scaling and real `disabled` / `loading` / `error` state
|
|
631
|
+
(previously untyped/unimplemented); `readOnly` no longer shrinks the box (height is
|
|
632
|
+
coerced to px + a `min-height`). New `NiceTerminalTheme` type. Its showcase demo is now
|
|
633
|
+
an interactive REPL (seeded output + a small command interpreter).
|
|
634
|
+
|
|
635
|
+
- da12dfb: Round-17 showcase-feedback fixes (6 select/editor controls).
|
|
636
|
+
- **Select-dropdown standardization** — the menus of NiceSelect / NiceAutocomplete /
|
|
637
|
+
NiceLookup / NiceTreeSelect / NiceDropDownBox now abut the input (new
|
|
638
|
+
`--nice-dropdown-gap`, default `0px`, replacing a hardcoded 4px). NiceAutocomplete /
|
|
639
|
+
NiceLookup / NiceTreeSelect gain an optional `menuGap` prop. NiceDropDownBox's menu
|
|
640
|
+
gains the standard border (its `.nice-dropdown` had no CSS), and its clear `×` moved
|
|
641
|
+
inside the trigger (it was rendering below the control). NiceTreeSelect option rows
|
|
642
|
+
get more left padding.
|
|
643
|
+
- **NiceDateTimePicker** — the time-spinner ▲/▼ buttons now support press-and-hold
|
|
644
|
+
auto-repeat (new shared `useHoldRepeat` hook in `@nice2dev/ui-core`). (The 24-hour
|
|
645
|
+
default was a demo-seed issue, fixed in the showcase.)
|
|
646
|
+
- **NiceLookup** — `readOnly` no longer changes the control height (the chevron slot is
|
|
647
|
+
kept), and `errorPlacement="right"` no longer widens the field when there's no error.
|
|
648
|
+
- **NiceCardGroup** — new `readOnly` (blocks selection without dimming) and `errorText`
|
|
649
|
+
props; `size` now scales the child cards (they inherit the group size via context),
|
|
650
|
+
not just the grid gap.
|
|
651
|
+
|
|
652
|
+
- bea5451: Round-18 showcase-feedback fixes (12 editor controls).
|
|
653
|
+
- **Select family** — NiceTreeSelect now has a stable trigger width (min-width like
|
|
654
|
+
NiceLookup, no longer tracking the value), its dropdown Search reuses the shared
|
|
655
|
+
`.nice-select__search` (left padding + normal vertical padding), and the empty state
|
|
656
|
+
gets padding. NiceAutocomplete inserts the option's DisplayName (label) on select
|
|
657
|
+
instead of the raw lowercase `value`. NiceLookup's `errorPlacement='right'` error is
|
|
658
|
+
absolutely positioned so it no longer widens the control.
|
|
659
|
+
- **NiceRangeSlider** — for `valuePlacement` right/bottom the value moves to a header
|
|
660
|
+
row above the track (mirroring NiceSlider) so it no longer overlaps the slider.
|
|
661
|
+
- **NiceDateRangeBox** — a stable `min-width` keeps disabled/readOnly from narrowing the
|
|
662
|
+
control; the loading spinner and `errorPlacement='right'` error align to the input row.
|
|
663
|
+
- **NiceDateTimePicker** — the time popup is now a slot-machine of vertical scroll-snap
|
|
664
|
+
columns for hours/minutes (animated, fade-masked); the ▲/▼ buttons keep hold-to-repeat
|
|
665
|
+
and typing a digit overwrites (INSERT).
|
|
666
|
+
- **NiceSkeleton** — new `animationSpeed` prop (seconds, default 1.8 ≈ 20% slower);
|
|
667
|
+
numeric-string `width`/`height` are coerced to px so both props apply.
|
|
668
|
+
- **NiceUpload** — new `labelPlacement` prop (`'right'` default | `'bottom'`): the text
|
|
669
|
+
sits beside the icon by default, below it when set.
|
|
670
|
+
- **NiceSignature** — the placeholder is translated (`signature.placeholder`, added to
|
|
671
|
+
the ui-core + i18n dictionaries for en/pl/de/fr/es/uk); the demo drops its synthetic
|
|
672
|
+
label + generic placeholder and the signature line is raised.
|
|
673
|
+
- **NiceColorPalette** — the collapsed field is a compact multi-colour strip at
|
|
674
|
+
NiceColorPicker's 32px height (chevron removed); the studio popup is split into
|
|
675
|
+
NiceTabs (Colors / Presets / Variations / Info / Schemes) and the swatch "kredki" are
|
|
676
|
+
reshaped into compact bars (chip + hex + remove ×) to the right of the wheel.
|
|
677
|
+
- **NiceGradientPicker** — redesigned to mirror NiceColorPicker/Palette: a compact 32×32
|
|
678
|
+
swatch field opens a portaled popup with NiceTabs (Editor / Presets / CSS); the
|
|
679
|
+
`NiceGradientValue`/`onChange` API and exported helpers are preserved.
|
|
680
|
+
|
|
681
|
+
- b248fe4: Round-19 showcase-feedback fixes (9 controls).
|
|
682
|
+
- **Select family (portaling).** NiceDropDownBox's menu wasn't growing the
|
|
683
|
+
container — it was `position:absolute` but clipped by a scroll-container
|
|
684
|
+
ancestor (z-index can't fix a clip). A new shared `useAnchoredPopup` hook
|
|
685
|
+
portals the dropdown to the theme host with fixed coords under its anchor, so
|
|
686
|
+
it escapes any ancestor `overflow`. Applied to all five: NiceDropDownBox,
|
|
687
|
+
NiceLookup, NiceSelect, NiceAutocomplete, NiceTreeSelect.
|
|
688
|
+
- **Keyboard nav + searchable.** New shared `useListKeyboardNav` gives NiceLookup
|
|
689
|
+
arrow-move-highlight + Enter-select (single result Enter) in list and grid
|
|
690
|
+
modes. NiceSelect's `searchable` now defaults to `true` (NiceDropDownBox stays
|
|
691
|
+
a generic container).
|
|
692
|
+
- **NiceDateTimePicker.** Time-popup arrows were reversed for the downward wheel
|
|
693
|
+
(▲ now decrements, ▼ increments); the column is taller (5 rows) with the ▲/▼
|
|
694
|
+
in a centre overlay flanking the value; and the centre value is a real editable
|
|
695
|
+
input again (type to overwrite). Hardened the scroll guard against rapid clicks.
|
|
696
|
+
- **NiceGradientPicker / NiceColorPalette.** Add `labelPlacement` ('top'|'left')
|
|
697
|
+
and real STATE (readOnly = looks enabled but won't open; loading spinner; error
|
|
698
|
+
ring + message). The popups reorganize so the live preview / colour wheel is a
|
|
699
|
+
fixed header with a confirm ✓ (edits apply live; ✓ closes) and the tabs switch
|
|
700
|
+
below it.
|
|
701
|
+
- **NiceSkeleton.** `size` now scales the real dimensions per variant; new
|
|
702
|
+
`orientation` prop (row of bars vs column stack). (STATE is N/A for a
|
|
703
|
+
placeholder.)
|
|
704
|
+
- **NiceUpload.** `labelPlacement:'bottom'` no longer stretches the box wide — the
|
|
705
|
+
label is width-capped and wraps downward under the icon.
|
|
706
|
+
- **NiceDateRangeBox.** readOnly now hides the pick + clear buttons; the loading
|
|
707
|
+
spinner / right error no longer narrow the date inputs at label-left + horizontal.
|
|
708
|
+
- **NiceSplitter.** Vertical resize fixed: initial sizes honour size/minSize/maxSize
|
|
709
|
+
(panes no longer start below their min and snap), the drag scales over-constrained
|
|
710
|
+
mins and enforces maxSize/collapsible, and setPointerCapture can't abort the drag.
|
|
711
|
+
|
|
712
|
+
- 565e729: fix(controls): showcase-feedback round 2 — re-open fixes
|
|
713
|
+
- **NiceProgress**: for `labelPlacement` top/bottom + `showValue`, the value now sits on the label's row (right-aligned) instead of beside the bar; left/right keep it at bar height.
|
|
714
|
+
- **NiceCarousel**: clamp `visibleCount` to ≥1 so an unset value no longer yields `100/0 = Infinity%` (which collapsed every slide into one row), and fix the track transform to advance a full slide per step.
|
|
715
|
+
- **NiceSkeleton**: `count > 1` now stacks the rows in a column container (they were unwrapped siblings that wrapped inside the parent flex row).
|
|
716
|
+
- **NiceGallery**: the caption text outline follows the theme (`color-mix` on `--text-primary`) instead of a fixed dark rgba, so it's legible in both light and dark.
|
|
717
|
+
|
|
718
|
+
(The NiceButton empty-label, NiceDropDownButton variant options, and NiceSpeedDialAction demo-frame fixes were showcase/doc-metadata only — no library change.)
|
|
719
|
+
|
|
720
|
+
- 783d0db: fix(controls): showcase-feedback round 3 — core controls, deeply honed
|
|
721
|
+
- **NiceButton**: icon-only is a properly padded square (symmetric padding per size), `fullWidth` stretches to 100% width with normal height (no giant square), and the loading spinner no longer collapses the box (the icon is kept in flow, hidden).
|
|
722
|
+
- **NiceDropDownButton**: the portaled menu now carries the trigger's theme (fixes white-on-white rows in scoped themes) and hover/selected set both background and colour; `readOnly` is now visually distinct from `disabled` (own class, not greyed) while still blocking the menu.
|
|
723
|
+
- **NiceSegmentedControl**: the active thumb now fills the selected segment exactly (removed a double-counted container inset that left a gap).
|
|
724
|
+
- **NiceBadge**: `size` now scales width + font too (the display style no longer pins `fontSize`/`padding` inline, so the size class governs).
|
|
725
|
+
- **NiceCarousel**: slide switching / autoPlay / circular work again (no longer frozen by a bare controlled `activeIndex`), `size` has real rules (arrow size + viewport height), and a new `fullWidth` prop (default `true`) toggles fill-vs-content width.
|
|
726
|
+
- **NicePDFViewer**: shows `1 / 1` and `100%` and stays interactive (non-positive controlled `page`/`zoom` are ignored); print converts a `data:` URI to a Blob URL so the tab actually prints.
|
|
727
|
+
- **NiceQRCode / NiceBarcodeGenerator**: the default module/bar colour follows the element's own theme surface (dark → light, light → dark) via a ref-aware `useThemeIsDark`; empty `color`/`background` are guarded.
|
|
728
|
+
- **NiceTooltip**: new `position: 'auto'` (now the default) picks the on-screen side with the most room (collision detection).
|
|
729
|
+
- **NiceFAQ**: items collapse regardless of `animateExpand` (only the transition is gated on it).
|
|
730
|
+
- **NiceTimeline**: horizontal mode draws its connector line and centres the item text; the body line renders at ~70%.
|
|
731
|
+
- **NiceDivider**: the text variant fills its container so the flanking lines are visible.
|
|
732
|
+
- **NiceSkeleton**: grouped rows (`count > 1`) get a definite width so `text`/`rect` variants render and animate (not just `circle`).
|
|
733
|
+
|
|
734
|
+
`useThemeIsDark` now accepts an optional element ref and resolves against that element's nearest theme scope (backwards-compatible: no-arg still observes `<html>`).
|
|
735
|
+
|
|
736
|
+
- ad262ee: fix(controls): showcase-feedback round 4 — core controls, every sub-point
|
|
737
|
+
- **NiceQRCode**: replaced the decorative (non-scannable) matrix generator with a real, spec-correct QR encoder (`display/qr/qrEncoder.ts`) — Reed-Solomon ECC, alignment patterns, BCH format/version info, mask selection; byte mode, versions 1–40. Verified scannable (decodes back to source across URL/alphanumeric/numeric/long/UTF-8 inputs at every ECC level). `errorCorrection` is now honoured.
|
|
738
|
+
- **NiceButton**: the icon now scales with `size` (icon spans carry `nice-btn__icon`; an em-based svg size tracks the per-size font-size).
|
|
739
|
+
- **NiceDropDownButton**: `loading` and `readOnly` now take effect in the demo (the props were missing from the doc/catalog, so the State toggles were dropped) — the component logic was already correct.
|
|
740
|
+
- **NiceCarousel**: `circular` now defaults to `true` and `autoPlay` to `7000` (library defaults, not just the showcase).
|
|
741
|
+
- **NiceGallery**: new `frameColor` prop for the letterbox/pillarbox bars, defaulting to the theme background instead of a hardcoded dark.
|
|
742
|
+
- **NicePDFViewer**: zoom now visibly scales the page (CSS transform on the iframe wrapper — the `#zoom` fragment is ignored for `data:` PDFs); default page area is A4 portrait (`aspectRatio`/`fit` props) showing the whole page at 100%.
|
|
743
|
+
- **NiceSegmentedControl**: removed the inter-segment `gap` that left slivers beside the active thumb — the highlight now fills the segment.
|
|
744
|
+
- **NiceTimeline**: horizontal connectors span dot-center to dot-center (no gaps, no leading stub); new `isFragment` prop draws leading/trailing lines to read as an excerpt.
|
|
745
|
+
- **NiceDivider**: `vertical` now takes effect (checked before the text branch) and renders a visible vertical rule.
|
|
746
|
+
- **NiceBarcodeGenerator**: fixed a regression where a stale catalog entry fed `width:2` and collapsed the canvas to a white sliver; non-positive `width`/`barWidth` are now treated as auto.
|
|
747
|
+
|
|
748
|
+
- 31e4a32: fix(controls): showcase-feedback round 5 — core controls follow-ups
|
|
749
|
+
- **NiceBadge**: `variant` now changes the colour — strip the display style's inline `background`/`color` (and border/shadow for `outline`/`subtle`) so the `.nice-badge--{variant}` class isn't overridden (mirrors NiceButton).
|
|
750
|
+
- **NiceSegmentedControl**: new `highlightFill` prop (default `true`) drops the container padding so the active highlight fills the frame with no slivers; the thumb is now recomputed when `highlightFill`/`size`/`block` change (fixes the crooked thumb when toggling).
|
|
751
|
+
- **NicePDFViewer**: fit-page shrink-wraps the A4 page (no fixed root height → no grey dead-space); the page area carries the aspect ratio.
|
|
752
|
+
- **NiceQRCode / NiceBarcodeGenerator**: the canvas is redrawn when the input toggles (`inputVisible` added to the draw-effect deps — toggling no longer blanks the code); the default `barColor`/(QR) colour follows the theme (empty default instead of a seeded purple).
|
|
753
|
+
- **NiceSpeedDialAction**: fan-out action items get an explicit, theme-consistent surface (`--bg-elevated` + `--text-primary` + border) so their icons can't render white-on-white when portaled.
|
|
754
|
+
|
|
755
|
+
- 9816474: fix(controls): showcase-feedback round 6 — data + nav controls (8 items)
|
|
756
|
+
- **NiceTabs**: `vertical` now lays out as a sidebar (tab list left, content right) instead of stacking, and the panel keeps a stable size so switching tabs doesn't make the control jump.
|
|
757
|
+
- **NiceTable**: sort icons match NiceDataGrid — a neutral double-chevron when idle, a single up/down chevron for asc/desc, muted (new `sort` NiceIcon).
|
|
758
|
+
- **NiceDataGrid**: the aggregate summary is pinned directly above the pagination (no more jump on page change — it's no longer a sticky `<tfoot>`); the Filter button is now a proper `nice-btn` with a filter icon; toolbar placeholder glyphs (`?`/`??`) replaced with NiceIcons.
|
|
759
|
+
- **NiceList**: `size` now scales row density/font; `disabled`/`readOnly`/`error` states work; the loading spinner is centered and hides the search bar; new optional `header` prop that stays visible during loading.
|
|
760
|
+
- **NiceMenu**: bar-variant (separated/ghost/borderless) item highlight fills the item box edge-to-edge (no gap frame, no rounded-pill shrink; rounding only on the bar's outer corners).
|
|
761
|
+
- **NiceContextMenu**: item highlight fills each row (removed the container top/bottom padding and added `overflow:hidden`, so no top gap, no side overflow, corners clipped to the container).
|
|
762
|
+
|
|
763
|
+
Plus demo polish: NiceCardView cards now have a coloured header, status badge and footer actions; the NiceSpeedDialAction demo drops its bounded container (just the button).
|
|
764
|
+
|
|
765
|
+
- 065995d: fix(controls): showcase-feedback round 7 — Editors value-entry, states, polish (9 items)
|
|
766
|
+
- **Editors value-entry (critical)**: text/number inputs across the Editors category could not accept typed input — the showcase harness (AutoDemo) seeded every optional `number` prop to `0`, so inputs received `maxLength=0` / `min=0,max=0` and were frozen. Fixed AutoDemo so an optional numeric prop with no real default stays `undefined` (component keeps its own default). Repairs NiceTextInput, NiceTextArea, NicePasswordInput, NiceHtmlEditor, NiceNumberInput, NiceNumericInput, NiceCurrencyInput, NiceTagInput, NiceFileUpload at once. (Showcase-only change.)
|
|
767
|
+
- **NiceSegmentedControl**: added `readOnly` / `loading` (spinner overlay) / `error` states (only `disabled` worked before).
|
|
768
|
+
- **NiceTreeGrid**: added `disabled` / `readOnly` / `error` states (only `loading` worked before).
|
|
769
|
+
- **NiceCard**: the `selected` state now shows a clear primary ring — the bordered rule was out-specifying the selected rule (specificity fix + stronger ring).
|
|
770
|
+
- **NiceMenu**: the "highlight fills the item box" fix now also covers the `solid` / `bordered` / `glass` bar variants (round 6 covered separated/ghost/borderless); `pills` keeps its rounded pills.
|
|
771
|
+
- **NiceDataGrid**: the Filter toolbar button is now icon-only (filter icon + a corner count badge, label in the tooltip/aria).
|
|
772
|
+
- **NiceKanbanBoard**: collapsing a column no longer rotates the header — it collapses to a clean narrow strip.
|
|
773
|
+
- **NiceCardView** (demo): the card header now fills the card top edge-to-edge (`overflow:hidden` on the card wrapper clips the full-bleed header to the rounded corners).
|
|
774
|
+
|
|
775
|
+
- 14119d6: fix(controls): showcase-feedback wave 1 — core control fixes
|
|
776
|
+
- **NiceButton**: `variant="outline"` now has a clearly visible border (`currentColor` instead of the faint `--border-color`); an empty/blank label turns the button into a square icon-only button (`.nice-btn--icon-only`), so `<NiceButton leftIcon ariaLabel />` can replace NiceIconButton.
|
|
777
|
+
- **NiceButtonGroup**: `loading` no longer repaints every button blue — each keeps its own colour while labels hide under the single overlay spinner.
|
|
778
|
+
- **NiceDropDownButton**: all variants work and match NiceButton colours (added `normalizeVariant` + the display-style class); the chevron is right-aligned; the trigger width responds to `size` (the grow-lock resets on size/variant change).
|
|
779
|
+
- **NiceProgress**: `labelPlacement="left"` renders the label again; `loading` shows animated diagonal stripes (now adds both `--striped` and `--animated`).
|
|
780
|
+
- **NiceTable**: new `size` prop (xs–xl, independent of `compact`); `compact` is tighter; the sort affordance shows on every sortable column (dimmed, highlighted when active).
|
|
781
|
+
- **NiceTabs**: the `size` prop is wired to CSS (font + tab padding); the `enclosed` variant is now visually distinct (folder-style boxed tabs) from `default`.
|
|
782
|
+
|
|
783
|
+
- 4910ead: feat!: remove 9 deprecated/redundant controls (BREAKING)
|
|
784
|
+
|
|
785
|
+
Per user feedback, these controls are removed from `@nice2dev/ui` and its facades
|
|
786
|
+
(`@nice2dev/ui-nav`, `@nice2dev/ui-display`, `@nice2dev/omniwerk-shell`):
|
|
787
|
+
|
|
788
|
+
| Removed | Use instead |
|
|
789
|
+
| -------------------------------------- | -------------------------------------------------------------------------------- |
|
|
790
|
+
| `NiceIconButton` | `NiceButton` with an empty label + `leftIcon` (now renders a square icon button) |
|
|
791
|
+
| `NiceToolbar` | `NiceMenu` |
|
|
792
|
+
| `NiceMultiView`, `NiceTabPanel` | `NiceTabs` |
|
|
793
|
+
| `NiceClassicShell`, `NiceCompactShell` | the other `Nice*Shell`s (`NiceDashboardShell`, `NiceModernShell`, …) |
|
|
794
|
+
| `NiceBottomNavigation` | `NiceDock` |
|
|
795
|
+
| `NiceOnboardingWizard` | `NiceWizard` |
|
|
796
|
+
| `NiceTenantSwitcher` | a plain dropdown (e.g. `NiceSelect`/`NiceDropDownButton`) |
|
|
797
|
+
|
|
798
|
+
Their exports, showcase demos/presets, doc metadata, and tooling entries
|
|
799
|
+
(view schema, component-type map, ESLint plugin) are gone. The internal
|
|
800
|
+
`NiceShowcase` tool was updated to `NiceButton`/`NiceMenu`. Verified: `@nice2dev/ui`
|
|
801
|
+
builds, all facades + showcase typecheck, and `lint:cycles` passes with no dangling
|
|
802
|
+
imports.
|
|
803
|
+
|
|
804
|
+
- 72b1b14: fix: showcase-feedback wave 4 — broken-render fixes
|
|
805
|
+
- **NiceVirtualScroller**: clamp a degenerate `itemHeight` (0/negative/NaN) so it no longer computes an infinite visible count and renders every row at once — that synchronous render was freezing the tab and blocking sibling demos.
|
|
806
|
+
- **NiceDataGrid**: add a non-breaking `size` prop (xs–xl density) and stabilize the pagination footer width (tabular-nums + reserved width) so the next/prev arrows don't jump between pages.
|
|
807
|
+
- **NiceVectorEditor** (`@nice2dev/ui-graphics`): fix the 0px work-area canvas — `.nice-app-shell__content` is a plain block so the editor's `flex:1` was inert and the absolutely-positioned `<svg>` gave the container no height; `.canvasContainer` now takes `height:100%`.
|
|
808
|
+
|
|
809
|
+
(The showcase demos for AppLayout / ImageViewer / UserMenu / PDFViewer / Spreadsheet / Divider / Skeleton / Tag / Tooltip / DataGrid were also fixed, but those are demo-config gaps with no library change.)
|
|
810
|
+
|
|
811
|
+
- 56db7a4: fix: showcase-feedback waves 5+6 — SIZE coverage + theme reactivity + systemic CSS repair
|
|
812
|
+
- **NiceBreadcrumb / NiceAccordion**: add the missing `--{xs..xl}` size CSS (the size class was emitted but only some sizes were styled).
|
|
813
|
+
- **NiceAvatarGroup**: clickable (`<a>`/`<button>`) avatars no longer lose their per-size font (`font: inherit` had reset it); initials scale with `size` again.
|
|
814
|
+
- **NiceLayout**: shell/sider/header/main/footer are now theme-reactive (they carried no bg/text tokens, and the sider's `var()` had a stray extra `)` that voided its background/border).
|
|
815
|
+
- **NiceDashboardLayout**: panels use `var(--bg-elevated)` instead of `var(--bg-primary)` (which equalled the canvas in dark, so panels vanished and only a thick border showed); added drag affordance (grab cursor + drag-over outline) and fixed the responsive grid selector name.
|
|
816
|
+
- **Systemic theme fix**: repaired **91 broken CSS declarations** in `controls-extended.css` that had an unbalanced extra `)` in a `var(--token, #hex))` fallback — the browser was dropping those declarations, so many controls (Layout, Dashboard, Scheduler, Gantt, …) rendered un-themed.
|
|
817
|
+
|
|
818
|
+
(NiceCardView was already correct from the prior FB8 commit; NiceKioskShell was a demo-config gap.)
|
|
819
|
+
|
|
820
|
+
- f04fb3f: fix: showcase-feedback wave 7 — polish, icons + additive props (14 controls)
|
|
821
|
+
- **NiceCarousel**: fix vertical-stacking (track is now a horizontal flex viewport); nav arrows use NiceIcon.
|
|
822
|
+
- **NiceTimeline**: render the `icon` field via NiceIcon (was literal text), even line rhythm, ~50% tighter item gap, wider xs–xl size spread.
|
|
823
|
+
- **NiceKanbanBoard**: a collapsed column now narrows to a slim vertical bar (was full-width-with-hidden-cards).
|
|
824
|
+
- **NiceGallery**: caption legibility via text-shadow outline (removed the translucent bar); demo wires showNavButtons/showIndicator/showThumbnails.
|
|
825
|
+
- **NiceSpeedDialAction**: default `direction` is now `right`; styling moved to a dedicated CSS (round FAB, fly-out onto the container); default `+` icon via NiceIcon; new optional `disabled`.
|
|
826
|
+
- **NiceCard**: catalog/demo now expose `bordered` (default true) + selectable/selected/hoverable/title so each prop's effect is visible (component already supported them).
|
|
827
|
+
- **NicePagination**: default `showInfo` → true, default `siblingCount` → 2.
|
|
828
|
+
- **NiceBarcode** / **NiceQRCode**: the top value field is a full `NiceTextInput` (forwarded `inputProps`) that can be hidden (`editable={false}`) while the code always renders; added `labelPlacement`/`onValueChange`; QR default color follows the theme. NiceBarcode `format` (symbology) is surfaced.
|
|
829
|
+
- **NiceDock**: demo uses the existing `contained` (embed-in-container) mode; hover now magnifies icons from the dock edge instead of shrinking them.
|
|
830
|
+
- **NiceSplitter**: horizontal splitters stay draggable below 768px (a responsive rule had force-stacked them).
|
|
831
|
+
- **NiceMenu**: vertical-menu highlight now fills the whole bar.
|
|
832
|
+
- **NiceNavbar** / **NiceContextMenu** (demos): replaced emoji/string-name icons with NiceIcon; fixed white-on-white context-menu hint via theme tokens.
|
|
833
|
+
|
|
834
|
+
- 5eb2ae1: remove(editors): drop NicePinCodeInput (duplicate of the OTP input)
|
|
835
|
+
|
|
836
|
+
**Breaking (shipped as patch per the pre-1.2.0 convention):** removed
|
|
837
|
+
`NicePinCodeInput`/`NicePinCodeInputProps` — it duplicated the OTP input. Use
|
|
838
|
+
`NiceInputOtp` (or `NiceOTPInput`) instead. Removed the component, its doc,
|
|
839
|
+
presets, demo, catalog entry, and all exports/re-exports.
|
|
840
|
+
|
|
841
|
+
- Updated dependencies [2f9e5d4]
|
|
842
|
+
- Updated dependencies [7771af3]
|
|
843
|
+
- Updated dependencies [703358c]
|
|
844
|
+
- Updated dependencies [da12dfb]
|
|
845
|
+
- Updated dependencies [bea5451]
|
|
846
|
+
- Updated dependencies [783d0db]
|
|
847
|
+
- Updated dependencies [9816474]
|
|
848
|
+
- @nice2dev/ui-core@1.0.30
|
|
849
|
+
- @nice2dev/i18n@1.0.30
|
|
850
|
+
|
|
3
851
|
## 1.0.30
|
|
4
852
|
|
|
5
853
|
### Patch Changes
|