@discuss-ds/ui 0.32.0 → 0.34.0
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 +36 -0
- package/dist/index.cjs +1163 -209
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +246 -10
- package/dist/index.d.ts +246 -10
- package/dist/index.js +1206 -207
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
- package/src/styles/globals.css +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @discuss-ds/ui
|
|
2
2
|
|
|
3
|
+
## 0.34.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#134](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/134) [`81d991e`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/81d991e06172535f2c85d15bad93147e76203c67) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - A character count now shows only when it is an error. `InlineEdit` (`showLimits`), `QuestionOptionEditor` (`minLength` / `maxLength`), `QuestionHeader` and `QuestionEditorCard` (the title's "n/2000 characters"), and `StimulusCard` (the caption's) show the allowed length and the count only while the text is shorter than the minimum or longer than the maximum, or after a save was refused; within the limits they show nothing. The props are unchanged, but a screen that relied on the always-on count now sees it only out of range.
|
|
8
|
+
|
|
9
|
+
- [#132](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/132) [`c9a0371`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/c9a0371a0d3aee6bbe2cd63dd46ffe85996d8ca5) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - New `DataTable` in Data Display: pass `columns` and `data` and get a `Table` with sorting, a select-all checkbox column, pagination, a column-visibility menu, loading and empty states. It is built on TanStack Table (`@tanstack/react-table`), and any of its state can be controlled from outside. Optional features, each switched on by a prop: column pinning, sizing, resizing and ordering, column and global filtering with counts, grouping with aggregation and a footer, expandable rows and detail panels, row pinning, cell selection and spanning, grouped headers, inline editing, server-side data, virtualized rows (`@tanstack/react-virtual`), infinite scrolling and a compact density. `Table` gains a `TableFooter`, a `containerRef` and a `resizer` slot on `TableHead`.
|
|
10
|
+
|
|
11
|
+
## 0.33.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#121](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/121) [`45858be`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/45858beb03a60f335a8a110ebc099bee02053e62) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - `InlineEdit` marks (and the marks in `QuestionOptionEditor` and the question header) take two new optional properties. `tone: 'warning'` underlines the words in the warning colour instead of the destructive one, for a recommendation rather than a mistake. `message` adds a short rationale to the mark's card, above the suggestions. Without them nothing changes: a mark is still a destructive underline with a card that has the marked text, its corrections and Dismiss.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#129](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/129) [`db76aa7`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/db76aa7b7887312494fa3f8239a3a5d344dddb28) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - While a field with marks is edited, a `warning` mark keeps its highlight behind the words (as well as its underline), and the browser's text selection shows over it. The highlight layer now sits behind the field, which is transparent for the time it is edited.
|
|
20
|
+
|
|
21
|
+
- [#131](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/131) [`f5a6599`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/f5a6599e02acf524f01ddda4ccaf739b456e7879) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - While a field with marks is edited, the highlight and underline of a mark now have the same geometry as when it is not edited: the first line reaches the top of the field and the last line's underline lands on the field's own bottom border (covering it). The highlight is drawn behind the field (the text selection still shows over it) and the underline in a layer over the field. Before, while editing they stopped about 4px short of the field's top and bottom edges.
|
|
22
|
+
|
|
23
|
+
- [#127](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/127) [`a168e3f`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/a168e3f07c3dbe78561b056dbc06135938e43f97) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - In the card of a `warning` mark in `InlineEdit` (and the other text fields that mark words), the struck-through words use the destructive foreground color, as in the card of any other mark, and the `message` comes after the correction and before the buttons.
|
|
24
|
+
|
|
25
|
+
- [#125](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/125) [`31992d1`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/31992d1bb4cfd93817c9d2f1cf3423e27e6f9da2) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - A `warning` mark in `InlineEdit` (and the other text fields that mark words) is highlighted in dandelion 100 behind the words, and its card is the regular card (the same background and border as any mark's card) with Dismiss and Apply together at the right. A default (destructive) mark is unchanged.
|
|
26
|
+
|
|
27
|
+
- [#123](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/123) [`73f0a37`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/73f0a37a8794839e070ffc8ac456e42a7e003a25) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - The card of a `warning` mark in `InlineEdit` (and the other text fields that mark words) has the background and border of the warning inline message, and its Dismiss and Apply buttons sit together at the right. The card of a default (destructive) mark is unchanged.
|
|
28
|
+
|
|
29
|
+
- [#124](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/124) [`b2b0c71`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/b2b0c7101a279cb5477546125aa8338c2f5e3345) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - A `warning` mark in `InlineEdit` (and the other text fields that mark words) has the warning soft background behind the words as well as the warning underline. A default (destructive) mark is unchanged.
|
|
30
|
+
|
|
31
|
+
- [#130](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/130) [`5ea9e71`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/5ea9e71957b5106e7cafb168a45215b0818a68e2) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - The highlight and underline of a mark are now drawn per line of the marked words instead of with one padding for the whole word. On a title that wraps, the first line reaches the top of the field and the last line's underline lands exactly on the field's own bottom border (covering it), as a single-line word already did; before, the last line stopped a few pixels short. Visually unchanged for a word on one line. The marked word keeps its place in the text and its click; `data-tone` on it tells the tone of the mark.
|
|
32
|
+
|
|
33
|
+
- [#128](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/128) [`755b6d4`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/755b6d4462b14068480ad3ebf11e914c0f05b41f) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - The underlines of `marks` (in `InlineEdit`, the question header and `QuestionOptionEditor`) now stay while the field is being edited, as plain lines that take no click. They move with the text typed before them and go away when the words they mark are changed. Before, they disappeared as soon as the field was opened.
|
|
34
|
+
|
|
35
|
+
- [#126](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/126) [`6127b20`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/6127b2066d9f15fb311bbb90d0e65c2f26cfb977) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - New color token `--sys-color-warning-background-highlight` (Tailwind: `bg-warning-background-highlight`): the highlight behind words that carry a warning. It is dandelion 100 in light mode and dandelion 800 in dark mode. A `warning` mark in `InlineEdit` (and the other text fields that mark words) uses it instead of a fixed dandelion shade, so the highlight follows the theme.
|
|
36
|
+
- Updated dependencies [[`6127b20`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/6127b2066d9f15fb311bbb90d0e65c2f26cfb977)]:
|
|
37
|
+
- @discuss-ds/tokens@0.3.0
|
|
38
|
+
|
|
3
39
|
## 0.32.0
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|