@nice2dev/ui 1.0.31 → 1.1.6
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 +403 -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-DmBX1Iea.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/NiceForm-C6F0HvrX.cjs +1 -0
- package/dist/NiceForm-CCyfWgIs.js +4805 -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/NiceMention-BjeLN4Jx.cjs +430 -0
- package/dist/NiceMention-CWoLD0SE.js +11082 -0
- package/dist/NiceMention-J1lUDLhg.cjs +430 -0
- package/dist/NiceMention-OaCi-GNO.js +11094 -0
- package/dist/NiceMention.css +1 -0
- package/dist/NiceModal-0UxviEYE.cjs +1 -0
- package/dist/NiceModal-D-iOonog.js +95 -0
- package/dist/NiceModuleLifecyclePanel-4hzDw6it.js +6999 -0
- package/dist/NiceModuleLifecyclePanel-Df_1k5qW.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-CPn-Q1h_.js +172 -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-KvyXTnFx.js +5129 -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-DdD9k4nc.cjs +1 -0
- package/dist/NiceWindow-xnTSHdHv.js +1623 -0
- package/dist/charts-B-sl1V9y.cjs +882 -0
- package/dist/charts-DO2z6Ziu.js +31920 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +7 -7
- package/dist/core-C2KhqEaU.cjs +1 -0
- package/dist/core-K2DIxXLn.js +795 -0
- package/dist/data-branching-DC6hcBQN.cjs +1 -0
- package/dist/data-branching-DykdTpjJ.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 +29 -7
- package/dist/data.mjs +18 -16
- package/dist/devops-CU0sOVEA.cjs +17 -0
- package/dist/devops-CXyEwQeM.js +8165 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +97 -9
- package/dist/editors.mjs +58 -54
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index.cjs +5137 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +139 -21
- package/dist/index.mjs +66371 -992
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +6 -0
- package/dist/navigation.mjs +4 -4
- package/dist/no-code-C58g8_fb.cjs +332 -0
- package/dist/no-code-Cj4xJ3w9.js +7425 -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 +2 -0
- package/dist/overlays.mjs +2 -2
- package/dist/pickerCommons-B-wOzHFh.cjs +1 -0
- package/dist/pickerCommons-COiSUiP2.js +1122 -0
- package/dist/pickerCommons.css +1 -1
- package/dist/style.css +7 -7
- 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,408 @@
|
|
|
1
1
|
# [1.0.27] — 2026-06-07
|
|
2
2
|
|
|
3
|
+
## 1.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Repair the published package surface, in answer to the OmniVerk 1.1.6 request.
|
|
8
|
+
|
|
9
|
+
**Type declarations.** `ui-3d`, `ui-graphics` and `game-engine` published zero `.d.ts` while
|
|
10
|
+
declaring `"types": "dist/types/index.d.ts"` — their declaration emitter was never invoked, and
|
|
11
|
+
rollup treats TS errors as warnings, so the build stayed green. `icons-game` had the same outcome
|
|
12
|
+
by a different route: `noEmit: true` in its tsconfig silently beats `tsc --emitDeclarationOnly` on
|
|
13
|
+
TS 5.9, so the step exited 0 and wrote nothing; it now emits declarations via `vite-plugin-dts`.
|
|
14
|
+
`ui-diagrams` pointed `types` and `exports["."]` at `./src/`, which `files` does not publish.
|
|
15
|
+
Turning the emitters on surfaced 9 real TS errors that rollup had been swallowing (`SVGResultPaths`,
|
|
16
|
+
framer-motion's removed `AnimationControls`, WebGPU's removed `requestAdapterInfo()`).
|
|
17
|
+
|
|
18
|
+
**Stylesheet exports.** `exports["./style.css"]` pointed at `./dist/style.css` in 28 packages while
|
|
19
|
+
the build emits `dist/<pkg>.css` (vite) or `dist/{cjs,esm}/nice2dev-<pkg>.css` (rollup). The public
|
|
20
|
+
specifier is unchanged — it just resolves now. The dead entry is removed from the nine packages that
|
|
21
|
+
emit no CSS at all. `ui-security` and `ui-video` authored a stylesheet that nothing imported, so it
|
|
22
|
+
never reached the bundle; it ships now.
|
|
23
|
+
|
|
24
|
+
**`@nice2dev/icons` subpaths.** `./rsc`, `./client`, `./design-tokens`, `./headless-ui` and
|
|
25
|
+
`./utilities` resolved to JavaScript the build never produced — rollup with `preserveModules` only
|
|
26
|
+
emits modules reachable from an entry, and none of the five was one. They are real entry points now.
|
|
27
|
+
Four icon packs pointed `require.types` at a `.d.cts` no build creates, and four `icons-life`
|
|
28
|
+
subpaths declared no `types` condition at all.
|
|
29
|
+
|
|
30
|
+
**CSS.** 47 declarations across 13 stylesheets in `@nice2dev/ui` carried an unbalanced `)` left by a
|
|
31
|
+
token migration in 1.0.19; two had a wrecked `linear-gradient` and were rewritten. Every emitted
|
|
32
|
+
stylesheet now parses under lightningcss, so Vite 8's default CSS minifier works.
|
|
33
|
+
|
|
34
|
+
**Sourcemaps.** No package publishes them any more. They referenced `src/` paths absent from the
|
|
35
|
+
tarball and carried no `sourcesContent`, which TypeScript does not offer for `.d.ts.map` at all.
|
|
36
|
+
|
|
37
|
+
**API (additive).** `NiceDateRangeBox` works uncontrolled — `startDate`, `endDate`, `onStartChange`
|
|
38
|
+
and `onEndChange` are optional, with `defaultStartDate` / `defaultEndDate`.
|
|
39
|
+
`NiceVocalPerformanceReport` accepts a precomputed `reports` (plus `noteCount`) instead of a live
|
|
40
|
+
audio session, and renders an empty state rather than `null`. `NiceKaraokeLyrics` takes optional
|
|
41
|
+
`song` / `currentTime` and exports its props interface.
|
|
42
|
+
|
|
43
|
+
**Release integrity.** CI now wipes `packages/*/dist` before building — the self-hosted agent's
|
|
44
|
+
persistent workspace meant any file that ever landed there was published forever, which is why
|
|
45
|
+
`ui-3d@1.1.5` shipped a declaration barrel generated a year earlier. A new gate,
|
|
46
|
+
`scripts/audit-package-exports.mjs`, resolves every entry point and `exports` condition against the
|
|
47
|
+
filesystem, checks `files[]` coverage and CSS parenthesis balance, and runs after the build and
|
|
48
|
+
before artifacts are uploaded.
|
|
49
|
+
|
|
50
|
+
- @nice2dev/i18n@1.1.6
|
|
51
|
+
- @nice2dev/ui-core@1.1.6
|
|
52
|
+
|
|
53
|
+
## 1.1.5
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Single version across the whole `@nice2dev/*` surface.
|
|
58
|
+
|
|
59
|
+
Versioning moves from independent to **fixed**: all 63 publishable packages now bump
|
|
60
|
+
together and always carry the same number. Until now only `@nice2dev/ui` and
|
|
61
|
+
`@nice2dev/icons` were `linked`, so everything else drifted apart — the tree spanned
|
|
62
|
+
1.0.28 through 1.1.4, which meant a consumer had to be told a per-package version table
|
|
63
|
+
instead of one number.
|
|
64
|
+
|
|
65
|
+
Also fixes the npm publish step, which reported success while publishing nothing: it
|
|
66
|
+
now preflights the registry credential, distinguishes "this version already exists"
|
|
67
|
+
from an authentication failure, and fails the stage when any package fails to publish.
|
|
68
|
+
|
|
69
|
+
- @nice2dev/i18n@1.1.5
|
|
70
|
+
- @nice2dev/ui-core@1.1.5
|
|
71
|
+
|
|
72
|
+
## 1.1.0
|
|
73
|
+
|
|
74
|
+
### Minor Changes
|
|
75
|
+
|
|
76
|
+
- Round-25 showcase-feedback fixes.
|
|
77
|
+
|
|
78
|
+
**@nice2dev/ui**
|
|
79
|
+
|
|
80
|
+
- **NiceCalendar.** New `selectionMode: 'single' | 'range'` (plus `rangeStart`,
|
|
81
|
+
`rangeEnd`, `onRangeChange`). In range mode the span is painted in two clicks — the
|
|
82
|
+
first opens the range, the second closes it, and clicking before the start swaps the
|
|
83
|
+
ends; hovering previews the band the next click would commit. Days carry
|
|
84
|
+
`--in-range` / `--range-start` / `--range-end`. The band is a translucent wash of the
|
|
85
|
+
accent (not an opaque tint), so it composites correctly over both light and dark
|
|
86
|
+
themes, and it bridges the grid's 2px `border-spacing` so the strip reads as one band
|
|
87
|
+
instead of a dashed row.
|
|
88
|
+
- **NiceDateRangeBox.** New `singleField` prop (default `false`). When on, the pair
|
|
89
|
+
collapses into ONE field showing `start – end` (localized via `locale`) backed by ONE
|
|
90
|
+
portaled popup holding a single range calendar. `min`/`max`, `startCondition` /
|
|
91
|
+
`endCondition` and the localized range error all keep working, and presets carrying a
|
|
92
|
+
time part keep their time when a day is picked. Default stays the two-field layout.
|
|
93
|
+
- **NiceDateTimePicker (clock mode).** The dial no longer swaps between hours and
|
|
94
|
+
minutes: **both** rings are drawn at once, hours on the outer ring and minutes on the
|
|
95
|
+
inner one. Which value a gesture edits follows the **radius**, not a mode, and the
|
|
96
|
+
clock now works on press-drag-release (pointer capture keeps a gesture on the ring it
|
|
97
|
+
started on) instead of clicks only — so exact times can be dialled in. Minutes still
|
|
98
|
+
snap to `minuteStep`.
|
|
99
|
+
|
|
100
|
+
**@nice2dev/icons**
|
|
101
|
+
|
|
102
|
+
- **`sharp` variant is now real.** It already existed in `IconVariant` and the factory
|
|
103
|
+
already gave it square caps and mitered joins, but it was exposed nowhere and — for
|
|
104
|
+
the fill-based majority of icons — rendered identically to `solid`. A generic
|
|
105
|
+
de-rounding pass (shared by `createIcon` and the RSC twin) now zeroes `rx`/`ry` on
|
|
106
|
+
`<rect>` and forces square/miter even where an icon hardcodes its own rounding;
|
|
107
|
+
circles and ellipses are left alone. Registered in the showcase, design tokens, the
|
|
108
|
+
Tailwind plugin, the Figma export set and the vector editor.
|
|
109
|
+
- **Geometry.** `NtdPlanet` — the ring is drawn as three arcs (two back stubs, the
|
|
110
|
+
globe, then the near arc on top) so it genuinely passes _behind_ the planet, in
|
|
111
|
+
`outline` too, using the secondary colour. `NtdSend` — scaled down 20%. `NtdUser` —
|
|
112
|
+
head tucked closer to the shoulders and the figure scaled up 10%. `NtdUndo` /
|
|
113
|
+
`NtdRedo` — rebuilt as one semicircular loop plus a chevron whose apex lands exactly
|
|
114
|
+
on the tail start (the old two-mismatched-arcs shape read as a fish); `solid` now
|
|
115
|
+
fills the head, so it is no longer byte-identical to `outline`. `NtdSnowflake` —
|
|
116
|
+
redrawn on true six-fold symmetry (three arms through the centre, barbs on all six
|
|
117
|
+
spokes) instead of four axes at 90°/45°; all five variants now draw the same crystal.
|
|
118
|
+
Scale changes are baked into coordinates rather than applied as group transforms, so
|
|
119
|
+
stroke weight stays consistent with the rest of the set.
|
|
120
|
+
|
|
121
|
+
**@nice2dev/ui-graphics** — `NiceVectorEditor`'s `initialIcon.variant` union and the
|
|
122
|
+
icon-snippet exporter accept `'sharp'`.
|
|
123
|
+
|
|
124
|
+
### Patch Changes
|
|
125
|
+
|
|
126
|
+
- Eight new event controls, covering the gaps OmniVerk raised for 1.0.32.
|
|
127
|
+
|
|
128
|
+
**New in `@nice2dev/events`**
|
|
129
|
+
|
|
130
|
+
- `NiceSeatingChart` / `NiceSeatPicker` — pick seats from a venue plan. SVG with
|
|
131
|
+
three levels of detail chosen from how many seats are actually in view, so the
|
|
132
|
+
number of DOM nodes stays bounded whatever the venue size. Pan, pinch-zoom and
|
|
133
|
+
a roving keyboard cursor, plus an always-present section → row → seat list with
|
|
134
|
+
"best available" — the path that actually works with a screen reader. Built on
|
|
135
|
+
the `SeatingChart` types that already shipped in `venue/venue-spatial.ts`.
|
|
136
|
+
- `NiceGiftRegistry` — gift registry and wishlist in one control (`kind`), with
|
|
137
|
+
group gifting, progress to goal and a guest mode that works with no signed-in
|
|
138
|
+
user.
|
|
139
|
+
- `NiceParticipantList` — guest roster with RSVP, check-in, grouping, search and
|
|
140
|
+
a paste-a-list invite box. Fills in the React component that the Angular, Vue
|
|
141
|
+
and Web Component adapters have been exporting a name for.
|
|
142
|
+
- `NiceRsvpControl` — yes / maybe / no with plus-ones, for a public invitation page.
|
|
143
|
+
- `NiceExpenseSplit` — who owes whom, reduced to few transfers. Integer
|
|
144
|
+
minor-unit arithmetic, so balances sum to exactly zero; currencies are grouped
|
|
145
|
+
rather than converted.
|
|
146
|
+
- `NiceInvitationDesigner` — invitation editor on `NiceHtmlEditor` with
|
|
147
|
+
`{{token}}` substitution, live preview and bulk send guarded by `sending`.
|
|
148
|
+
- `NiceMediaCollage` — arrange media into an ordered collage and play it back.
|
|
149
|
+
Drag or keyboard reordering via Pointer Events, so it works on touch.
|
|
150
|
+
|
|
151
|
+
**Changed**
|
|
152
|
+
|
|
153
|
+
- `NiceEventMedia` gains `onReorder`, and `EventMediaItem` gains `order`. Items
|
|
154
|
+
sort by `order` (falling back to array position); the component never keeps its
|
|
155
|
+
own copy of the sequence, so the view cannot drift from what was saved.
|
|
156
|
+
- `SeatSelectionConfig`: every field is now optional, plus new `adjacentOnly`
|
|
157
|
+
(refuse selections that strand a single seat) and `allowedCategories`. Widening
|
|
158
|
+
a type is safe for anyone constructing one; anyone _reading_ a
|
|
159
|
+
`SeatSelectionConfig` value must now handle `undefined`. The type had no
|
|
160
|
+
consumers in this repo, but it is public API, so it is called out here.
|
|
161
|
+
- `Seat` gains `accessType`. `SeatStatus` folds `'wheelchair'`/`'companion'` into
|
|
162
|
+
the same union as `'sold'`, so an accessible seat lost that fact the moment it
|
|
163
|
+
was booked. `accessType` is independent of availability; the old status values
|
|
164
|
+
keep working as an alias for an available accessible seat. The union itself is
|
|
165
|
+
unchanged.
|
|
166
|
+
- `@nice2dev/ui` ships `styles/controls-events.css` with the styles for the above.
|
|
167
|
+
|
|
168
|
+
- 8718f52: Round-20 showcase-feedback fixes (9 controls).
|
|
169
|
+
|
|
170
|
+
- **Select family (all portaled dropdowns).** They now CLOSE on ancestor scroll /
|
|
171
|
+
resize instead of repositioning — the state-driven fixed popup lagged the scroll
|
|
172
|
+
("jumped behind the control") and its z-index overlapped the sticky topnav. A
|
|
173
|
+
guard keeps the dropdown's own option-list scroll from closing it.
|
|
174
|
+
- **NiceDateTimePicker.** The ▲/▼ no longer crowd the minutes column (wider spinner
|
|
175
|
+
- larger inter-column gap); and the time wheel is now looping — opening at 00
|
|
176
|
+
shows 23,22,21… above it and wraps seamlessly.
|
|
177
|
+
- **NiceDateRangeBox.** readOnly hides the pick/clear buttons with `visibility:hidden`
|
|
178
|
+
(kept in layout) instead of removing them, so the control width no longer shrinks.
|
|
179
|
+
- **NiceCard.** The error message renders BELOW the card (a `.nice-card-field` wrapper)
|
|
180
|
+
instead of inside the `overflow:hidden` card; the error ring stays on the card.
|
|
181
|
+
- **NiceGradientPicker.** New `errorPlacement` ('bottom' | 'right'), mirroring the
|
|
182
|
+
field convention.
|
|
183
|
+
- **NiceColorPalette.** A controlled 4-colour value no longer collapses to the harmony
|
|
184
|
+
mode's 3 hues when a harmony control is touched (count falls back to the palette size).
|
|
185
|
+
- **NiceUpload.** `labelPlacement:'bottom'` box now hugs its content (`width:fit-content`)
|
|
186
|
+
so a long label wraps downward instead of stretching the box wide.
|
|
187
|
+
- **NiceSplitter.** Vertical drag now tracks on `document` (not the 6px gutter) so it
|
|
188
|
+
keeps working when the cursor leaves the gutter.
|
|
189
|
+
|
|
190
|
+
- 7dbf4d8: Round-21 showcase-feedback fixes (8 controls).
|
|
191
|
+
|
|
192
|
+
- **Select family (all portaled dropdowns).** On the FIRST open the dropdown
|
|
193
|
+
floated detached above the trigger (the flip test used the 320px height
|
|
194
|
+
estimate because the popup wasn't mounted yet); a one-shot
|
|
195
|
+
`requestAnimationFrame` now re-measures with the real height once mounted, so
|
|
196
|
+
it opens attached under the trigger. Fixes all five selects.
|
|
197
|
+
- **NiceDateTimePicker.** The time wheel is taller (7 rows, `SPIN_ITEM_H` 30→40)
|
|
198
|
+
so it fills the calendar column, and the ▲/▼ chevrons are smaller and hug the
|
|
199
|
+
centre value so they no longer overrun the neighbouring numbers.
|
|
200
|
+
- **NiceColorPalette.** New default `Analogous + Complementary` harmony (3
|
|
201
|
+
analogous hues + 1 complementary), and the colour-wheel markers now take their
|
|
202
|
+
fill from the live palette so a preset that only changes saturation/brightness
|
|
203
|
+
visibly recolours the wheel.
|
|
204
|
+
- **NiceGradientPicker.** The stop-editing bar is always a flat left-to-right
|
|
205
|
+
linear strip (built from the sorted stops) so the draggable markers line up
|
|
206
|
+
with the colour they set even for radial/conic gradients.
|
|
207
|
+
- **NiceTreeList.** Selection now works uncontrolled — the checkboxes drive an
|
|
208
|
+
internal state when no `onSelectionChange` is passed (they were inert). The
|
|
209
|
+
checkbox column is tightened so it hugs the first label.
|
|
210
|
+
- **NiceLeaderboard.** Repaired the doc metadata (dropped a bogus required
|
|
211
|
+
`label` prop, restored the `statColumns` type), and added the CSS the
|
|
212
|
+
component already emitted — a `size` ramp, `variant` (`compact` / `podium`)
|
|
213
|
+
styles and `highlightTop` medal-tinted top rows. Raw `<img>` avatars are now
|
|
214
|
+
`NiceAvatar`, so entries without an image fall back to initials.
|
|
215
|
+
|
|
216
|
+
- a84ed5b: Round-22 showcase-feedback fixes (control changes).
|
|
217
|
+
|
|
218
|
+
- **Select family (all portaled dropdowns).** Fix the first-open _flash_: the popup
|
|
219
|
+
no longer paints one frame at the flipped-above estimate — `useAnchoredPopup`
|
|
220
|
+
keeps it transparent (`opacity:0`) until the post-mount measurement, then reveals
|
|
221
|
+
it once at the right spot. `opacity` (not `visibility`) preserves the search box's
|
|
222
|
+
autofocus.
|
|
223
|
+
- **NiceDropDownBox.** The option highlight no longer overflows the panel's right
|
|
224
|
+
edge (standardised to NiceSelect), and a new `searchable` prop (default true, with
|
|
225
|
+
`onSearch`/`searchPlaceholder`) adds a panel search box.
|
|
226
|
+
- **NiceDateTimePicker.** The time-wheel chevrons sit ~5px further from the
|
|
227
|
+
neighbouring numbers.
|
|
228
|
+
- **NiceList.** The size ramp now scales the header/group-header + loading spinner,
|
|
229
|
+
and the control has a stable width (no collapse on loading, no reflow on
|
|
230
|
+
select/search).
|
|
231
|
+
- **NiceTreeList.** Checking a parent cascades to all descendants (indeterminate on
|
|
232
|
+
partial), and a new opt-in `sortable` prop adds column sorting (asc/desc/none) that
|
|
233
|
+
preserves the tree structure.
|
|
234
|
+
- **NiceActionSheet.** New `readOnly` prop makes the action items inert while Cancel
|
|
235
|
+
stays active.
|
|
236
|
+
- **NiceColorPalette.** Switching harmony now snaps the swatch count to that
|
|
237
|
+
harmony's natural size (unless `colorCount` is pinned or the mode is count-free).
|
|
238
|
+
- **NiceGradientPicker.** Stop markers are draggable along the bar; a bar click only
|
|
239
|
+
adds a stop when it didn't end a drag or land on a marker.
|
|
240
|
+
- **NiceUserMenu.** The presence dot is no longer clipped by the avatar's overflow.
|
|
241
|
+
- **NiceUpload.** `labelPlacement:'bottom'` grows downward (definite 220px width +
|
|
242
|
+
`overflow-wrap`) instead of widening the control.
|
|
243
|
+
- **NiceDateRangeBox.** New `startCondition` / `endCondition` props constrain the
|
|
244
|
+
range between the two pickers and surface a localized validation error.
|
|
245
|
+
|
|
246
|
+
- Round-23 showcase-feedback fixes (date/time controls + select popups).
|
|
247
|
+
|
|
248
|
+
- **NiceDateTimePicker.** New `timeSelectorType` prop (`'spinners'` default | `'clock'`):
|
|
249
|
+
`'clock'` renders an analog clock face — SVG hour/minute hands, click an hour to set
|
|
250
|
+
it (auto-advances to minutes, snaps to `minuteStep`) and an AM/PM toggle. A small
|
|
251
|
+
in-popup segmented toggle (icons from `@nice2dev/icons`) switches spinners↔clock at
|
|
252
|
+
runtime. The emitted value stays ISO 24h.
|
|
253
|
+
- **NiceDateRangeBox.** New `locale` prop (BCP 47) forwarded to both inner pickers'
|
|
254
|
+
`displayLocale`, so a range can render in the user's format (`pl-PL` → `dd.MM.yyyy`)
|
|
255
|
+
instead of falling back to the app/`en` locale — this was the apparent "value vs
|
|
256
|
+
greyed-boundary" mismatch (both were the same ISO date shown in different formats).
|
|
257
|
+
Also forwards `timeSelectorType` for datetime ranges.
|
|
258
|
+
- **NiceLookup.** Fix the dropdown collapsing to a single row + scrollbar (a Round-22
|
|
259
|
+
regression: the list was `position:absolute` inside a panel that had gained
|
|
260
|
+
`overflow-x:hidden`). The list is now in normal flow like NiceSelect.
|
|
261
|
+
- **NiceDropDownBox.** Fix the popup opening above the trigger when there was room
|
|
262
|
+
below — the uncapped panel height made the flip test overshoot. The panel is now
|
|
263
|
+
height-bounded (`max-height` + `overflow-y:auto`) like NiceSelect/NiceTreeSelect.
|
|
264
|
+
- **NiceCalendar.** The min/max disabled-date guard now also rejects malformed /
|
|
265
|
+
out-of-range ISO bounds (month 01–12, day 01–31), so a bad `min` can't silently grey
|
|
266
|
+
the wrong cells.
|
|
267
|
+
|
|
268
|
+
- Round-24 showcase-feedback fixes.
|
|
269
|
+
|
|
270
|
+
**@nice2dev/ui**
|
|
271
|
+
|
|
272
|
+
- **NiceDateRangeBox / NiceDateTimePicker.** Fix a real day/month transposition: the
|
|
273
|
+
keyboard `t`/Today shortcut (`writeDate`) built digits in ISO order but they were
|
|
274
|
+
interpreted in display order, so for a localized mask (`dd.MM.yyyy`) Today produced a
|
|
275
|
+
transposed value that then drove the other picker's greyed range. `writeDate` now builds
|
|
276
|
+
an ISO string and routes through the ISO-safe `applyIso`. The popup **Today/Now** buttons
|
|
277
|
+
are also disabled when today is outside `[min, max]`, instead of silently clamping to `min`.
|
|
278
|
+
- **NiceDateTimePicker (clock mode).** The highlight now rides the selected **hour number**
|
|
279
|
+
on the ring (not the hand tip); **both** hands are always drawn (active in the accent
|
|
280
|
+
colour, the other muted); and `minuteStep` (5/10/15/20/30) draws snap markers + labels and
|
|
281
|
+
clicks snap to them.
|
|
282
|
+
- **NiceTreeView.** New optional `header` prop rendered above the search box / tree.
|
|
283
|
+
- **NiceKanbanBoard.** New `collapseDirection: 'vertical' | 'horizontal'` prop (a short
|
|
284
|
+
horizontal bar as an alternative to the slim vertical rail); the collapsed count renders as
|
|
285
|
+
a one-line diagonal fraction (`2/3`).
|
|
286
|
+
- **NicePivotGridFieldChooser.** Working HTML5 drag-and-drop, `name (type)` field bars (new
|
|
287
|
+
`NicePivotField.dataType`), the per-field area buttons replaced by a `NiceSelect` gated
|
|
288
|
+
behind a new `showAreaSelect` prop, and a single-column layout so Filters no longer wraps.
|
|
289
|
+
- **NiceTabs.** New `countLocation: 'right' | 'bottom'` prop — `'bottom'` stacks a tab's
|
|
290
|
+
badge/count under the icon as a heavily-rounded pill.
|
|
291
|
+
|
|
292
|
+
**@nice2dev/icons** — geometry fixes across all variants: NtdBank (roof/columns lowered ~20%
|
|
293
|
+
and centred), NtdMusic (note heads meet stems flush), NtdHome (square floor + lower walls),
|
|
294
|
+
NtdPlanet (ring uses the secondary colour in solid/outline), NtdPizza (arc crust, not a
|
|
295
|
+
triangle), NtdDroplet (slimmer profiled sides), NtdHexagon & NtdSend (sharp, not rounded).
|
|
296
|
+
|
|
297
|
+
**@nice2dev/events** — NiceEventPlanning grows from 6 to 10 tabs (Schedule, Tasks, Vendors,
|
|
298
|
+
Documents), each optional tab hideable via a `show*` boolean prop, plus a `countLocation`
|
|
299
|
+
prop (`'bottom'` default | `'right'`) forwarded to NiceTabs.
|
|
300
|
+
|
|
301
|
+
**@nice2dev/ui-api** — NiceAPIDesigner rebuilt on Nice controls with real, editable Paths /
|
|
302
|
+
Schemas / Security editors and a seeded Pet-Store example so it opens populated.
|
|
303
|
+
|
|
304
|
+
**@nice2dev/ui-graphics** — NicePixelEditor: the right settings panel folds into collapsible
|
|
305
|
+
NiceCollapse sections, the top menu into NiceMenu dropdowns, and the active tool now has a
|
|
306
|
+
clearly-visible highlight.
|
|
307
|
+
|
|
308
|
+
- Round-27 showcase-feedback fixes.
|
|
309
|
+
|
|
310
|
+
**@nice2dev/icons**
|
|
311
|
+
|
|
312
|
+
- **New `wireframe` variant** (10th). Like `sharp` and `rounded` it has no per-icon path
|
|
313
|
+
data — it is a mechanical re-draw of `paths.solid`, which carries the _whole_
|
|
314
|
+
construction, so every shape (creases, inner discs, duotone underlays) comes through as
|
|
315
|
+
a thin unfilled stroke in the primary colour. Per-shape `opacity` is cleared so a faint
|
|
316
|
+
duotone wash cannot survive as a ghost line. Both render paths (`createIcon` and the RSC
|
|
317
|
+
twin) share the pass, and the variant is registered in the design tokens and the Figma
|
|
318
|
+
export set.
|
|
319
|
+
- **`NtdUndo` / `NtdRedo` duotone** no longer draw a secondary disc behind the curve (it
|
|
320
|
+
read as "a ball in the middle"). The two tones now follow the icon's own parts:
|
|
321
|
+
arrowhead in `primaryColor`, tail in `secondaryColor`, both at full strength.
|
|
322
|
+
- **`NtdSend`** — `outline` drops the diagonal crease and shows the silhouette only;
|
|
323
|
+
`duotone` splits the solid plane along that crease instead of stacking a wash under a
|
|
324
|
+
stroke, giving an upper wing in `primaryColor` and a lower wing in `secondaryColor`.
|
|
325
|
+
- **`NtdDroplet`** reshaped in all five path variants: the sides now leave the tip almost
|
|
326
|
+
vertically and only flare low down, and the bulb is an ellipse (rx 5.6 / ry 6.2) rather
|
|
327
|
+
than an r=8 circle — a pinched waist and an oval silhouette instead of a round, fat one.
|
|
328
|
+
|
|
329
|
+
**@nice2dev/ui**
|
|
330
|
+
|
|
331
|
+
- **`NicePivotGrid`** — new `headerText` prop rendered at the left of the toolbar, with the
|
|
332
|
+
actions pushed flush right on the same row. The field-chooser button is icon-only now
|
|
333
|
+
(tooltip + `aria-label` keep the name), and CSV export became a download menu offering
|
|
334
|
+
**CSV and XLSX**; the XLSX goes through the library's own dependency-free writer
|
|
335
|
+
(`downloadXLSX`), so no new runtime dependency. Both formats are built from one shared
|
|
336
|
+
table model and therefore cannot drift apart.
|
|
337
|
+
- **`NiceDateTimePicker`** — opening the popup or switching to `spinners` no longer reels
|
|
338
|
+
the wheels round to the value. The columns carried a CSS `scroll-behavior: smooth`, which
|
|
339
|
+
hijacked the `behavior: 'auto'` jump the wheel asks for on mount; the rule is gone and the
|
|
340
|
+
wheel now says `'instant'` explicitly. Small steps still animate, and reduced-motion is
|
|
341
|
+
honoured in JS (a media query cannot override an explicit `scrollTo` behavior).
|
|
342
|
+
- **`NiceDateRangeBox`** — the `singleField` box was sized off a flat worst-case
|
|
343
|
+
`26ch`/`36ch`, leaving ~100 px of dead space between a locale-formatted range and the
|
|
344
|
+
clear button. It is now measured from a sample range rendered in the same locale and
|
|
345
|
+
preset, so the field stays snug (~20 px of slack) and does not resize as you pick.
|
|
346
|
+
- **`NiceKanbanBoard`** — collapsing a column horizontally shortens it instead of narrowing
|
|
347
|
+
it: the collapsed metrics mirror an expanded column in both the scroll and responsive
|
|
348
|
+
layouts. The `2/3` limit counter sits on one baseline (the staggered ±0.12em offsets read
|
|
349
|
+
as a crooked figure).
|
|
350
|
+
- **`NiceDropDownButton`** now applies the `title` from `NiceBaseProps` and, for an
|
|
351
|
+
icon-only trigger, uses it as the accessible name — it used to be dropped silently.
|
|
352
|
+
|
|
353
|
+
**@nice2dev/ui-api** — `NiceAPIDesigner` follows the theme. The stylesheet stood on
|
|
354
|
+
`--nice-*` colour aliases that are declared in `@nice2dev/ui`, not here (and four of which
|
|
355
|
+
— `--nice-hover`, `--nice-selected`, `--nice-bg-code`, `--nice-grid` — are declared nowhere
|
|
356
|
+
at all), so a consumer loading only this package's CSS got hard-coded light values. All of
|
|
357
|
+
them moved to the canonical theme tokens, `color: white` became `--text-on-primary` and the
|
|
358
|
+
two paper-white panels became `--bg-elevated`. The endpoints/schemas sidebar now runs the
|
|
359
|
+
full height of the editor pane with a sticky header and scrolls inside itself, and the view
|
|
360
|
+
switcher wraps instead of forcing a sideways scroll.
|
|
361
|
+
|
|
362
|
+
**@nice2dev/ui-graphics** — `NiceVectorEditor`'s `initialIcon.variant` accepts
|
|
363
|
+
`'wireframe'`; a snippet exported while it is selected lands in `solid`, since `wireframe`
|
|
364
|
+
is derived and never authored as its own layer.
|
|
365
|
+
|
|
366
|
+
- Dependency review: align every declared range and adopt React 19 in the dev/test toolchain.
|
|
367
|
+
|
|
368
|
+
- Version drift across the monorepo went from 24 packages to 0; every external package is now
|
|
369
|
+
declared with a single range.
|
|
370
|
+
- `@testing-library/jest-dom` 6 → 7. jest-dom 6 augments `declare module 'vitest'`, which
|
|
371
|
+
vitest 4 no longer uses, so matcher types were broken in every package already on vitest 4.
|
|
372
|
+
- React 19 in devDependencies: `useRef` now requires an initial value, `useRef<T>(null)` yields
|
|
373
|
+
`RefObject<T | null>`, and element props default to `unknown`. Public peer ranges are
|
|
374
|
+
unchanged (`react >=17.0.0`), so consumers are unaffected.
|
|
375
|
+
- Build configs now externalise `react-dom` subpaths (`/^react-dom(\/.*)?$/`). An exact-string
|
|
376
|
+
external does not match `react-dom/server`, which under React 19 resolves to the Node build
|
|
377
|
+
and pulled `async_hooks` into the `ui-graphics` bundle.
|
|
378
|
+
- Buffer-boundary casts for TypeScript 5.7+ generic TypedArrays in audio, graphics and crypto code.
|
|
379
|
+
- `@nice2dev/ui-ai` now externalises `@nice2dev/*`, matching the peer dependencies it already
|
|
380
|
+
declared. It was inlining the whole `@nice2dev/ui` barrel, which put it 8x over its bundle
|
|
381
|
+
budget; it now measures 72.8 kB against 95 kB.
|
|
382
|
+
- `packages/ui/scripts/postbuild-style.mjs` no longer nests a CSS comment inside the generated
|
|
383
|
+
`dist/style.css` banner. CSS comments do not nest, so the inner `*/` closed the block early and
|
|
384
|
+
strict minifiers (lightningcss, used by Vite 8) rejected the file outright.
|
|
385
|
+
- Every remaining minor and patch update applied (44 packages), plus 14 tooling majors
|
|
386
|
+
(`@changesets/cli`, `glob`, `ora`, `lint-staged`, `concurrently`, `chromatic`, `phaser`,
|
|
387
|
+
`fast-check`, `@stripe/stripe-js`, `@nuxt/*`, `@skpm/builder`, `conventional-changelog-angular`,
|
|
388
|
+
`@typescript-eslint/typescript-estree`) and `framer-motion` 12 → 13.
|
|
389
|
+
- `chroma-js` and `@types/chroma-js` moved to 3.x **together**; `transforms.ts` now types the
|
|
390
|
+
lazily-imported binding as the module's default export rather than its namespace, which
|
|
391
|
+
@types/chroma-js 3 distinguishes.
|
|
392
|
+
- `fast-check` 4 removed the `hexaString` arbitrary; `@nice2dev/testing` now builds hex colours
|
|
393
|
+
with `string({ unit })`.
|
|
394
|
+
- `@nice2dev/game-engine` declares `@webgpu/types` instead of relying on an undeclared, hoisted
|
|
395
|
+
copy, and its hand-rolled WebGPU `declare global` block is gone.
|
|
396
|
+
- 25 bare `JSX.*` type references became `React.JSX.*` — React 19 removed the global JSX namespace.
|
|
397
|
+
- 13 packages that run tests in the jsdom environment now declare `jsdom`, and 14 that invoke
|
|
398
|
+
`vitest` now declare `vitest`. They were free-riding on hoisted copies that disappeared the
|
|
399
|
+
moment every manifest agreed on one range.
|
|
400
|
+
|
|
401
|
+
- Updated dependencies [a84ed5b]
|
|
402
|
+
- Updated dependencies
|
|
403
|
+
- @nice2dev/i18n@1.0.31
|
|
404
|
+
- @nice2dev/ui-core@1.0.31
|
|
405
|
+
|
|
3
406
|
## 1.0.31
|
|
4
407
|
|
|
5
408
|
### Patch Changes
|