@umituz/web-design-system 4.6.3 → 4.6.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-design-system",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Web Design System - Tailwind v4 authored, precompiled CSS shipped. Atomic Design components (Atoms, Molecules, Organisms, Templates) for React applications.",
|
|
@@ -198,7 +198,7 @@ describe('DataTable', () => {
|
|
|
198
198
|
expect(cellsBefore.join()).toContain('bravo');
|
|
199
199
|
fireEvent.click(screen.getByRole('columnheader', { name: /name/i }));
|
|
200
200
|
const firstDataRow = screen.getAllByRole('row')[1];
|
|
201
|
-
expect(firstDataRow
|
|
201
|
+
expect(firstDataRow?.textContent).toContain('alpha');
|
|
202
202
|
});
|
|
203
203
|
|
|
204
204
|
it('controlled sort delegates to onSortChange', () => {
|
|
@@ -33,8 +33,10 @@ const nameTones = [
|
|
|
33
33
|
const initialsOf = (name: string): string => {
|
|
34
34
|
const parts = name.trim().split(/\s+/).filter(Boolean);
|
|
35
35
|
if (parts.length === 0) return '';
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
const first = parts[0] ?? '';
|
|
37
|
+
const last = parts[parts.length - 1] ?? '';
|
|
38
|
+
if (parts.length === 1) return first.slice(0, 2).toUpperCase();
|
|
39
|
+
return (first.charAt(0) + last.charAt(0)).toUpperCase();
|
|
38
40
|
};
|
|
39
41
|
|
|
40
42
|
const toneIndexOf = (name: string): number => {
|