@danxbot/ui 20.20.0 → 20.21.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/dist/index.js +942 -928
- package/dist/index.js.map +1 -1
- package/dist/types/components/SortMenu.d.ts +13 -1
- package/dist/types/icons/data.d.ts +62 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ButtonProps } from "./Button";
|
|
2
|
+
import { type IconName } from "./Icon";
|
|
2
3
|
export type SortDirection = "asc" | "desc";
|
|
3
4
|
export interface SortOption<Field extends string = string> {
|
|
4
5
|
value: Field;
|
|
@@ -15,6 +16,12 @@ export interface SortOption<Field extends string = string> {
|
|
|
15
16
|
asc: string;
|
|
16
17
|
desc: string;
|
|
17
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* A registered icon for the field (DX-4615). When the sorted field carries one, the closed control draws it before the
|
|
21
|
+
* direction's arrow ("what" then "which way"), and the popover draws it beside the field's label. A list whose options
|
|
22
|
+
* carry none renders exactly as it did; give every option an icon or none, so the rows and the trigger stay one shape.
|
|
23
|
+
*/
|
|
24
|
+
icon?: IconName;
|
|
18
25
|
}
|
|
19
26
|
export interface SortValue<Field extends string = string> {
|
|
20
27
|
field: Field;
|
|
@@ -27,7 +34,12 @@ export interface SortMenuProps<Field extends string = string> {
|
|
|
27
34
|
/** Names the control for assistive technology, e.g. "Sort plans". The active order is appended to it. */
|
|
28
35
|
"aria-label": string;
|
|
29
36
|
size?: ButtonProps["size"];
|
|
37
|
+
/**
|
|
38
|
+
* The trigger's resting look (DX-4615). `outline` (default) draws the bordered button; `ghost` draws the bare arrow, for a
|
|
39
|
+
* header that already holds other borderless icons (a board lane's title row). Same arrow, same tooltip, same popover.
|
|
40
|
+
*/
|
|
41
|
+
triggerVariant?: "outline" | "ghost";
|
|
30
42
|
align?: "start" | "center" | "end";
|
|
31
43
|
className?: string;
|
|
32
44
|
}
|
|
33
|
-
export declare function SortMenu<Field extends string = string>({ options, value, onValueChange, "aria-label": ariaLabel, size, align, className, }: SortMenuProps<Field>): import("react").JSX.Element;
|
|
45
|
+
export declare function SortMenu<Field extends string = string>({ options, value, onValueChange, "aria-label": ariaLabel, size, triggerVariant, align, className, }: SortMenuProps<Field>): import("react").JSX.Element;
|
|
@@ -1462,6 +1462,68 @@ export declare const coreIcons: {
|
|
|
1462
1462
|
readonly wrench: readonly [readonly ["path", {
|
|
1463
1463
|
readonly d: "M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z";
|
|
1464
1464
|
}]];
|
|
1465
|
+
readonly "calendar-plus": readonly [readonly ["path", {
|
|
1466
|
+
readonly d: "M16 19h6";
|
|
1467
|
+
}], readonly ["path", {
|
|
1468
|
+
readonly d: "M16 2v4";
|
|
1469
|
+
}], readonly ["path", {
|
|
1470
|
+
readonly d: "M19 16v6";
|
|
1471
|
+
}], readonly ["path", {
|
|
1472
|
+
readonly d: "M21 12.598V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5";
|
|
1473
|
+
}], readonly ["path", {
|
|
1474
|
+
readonly d: "M3 10h18";
|
|
1475
|
+
}], readonly ["path", {
|
|
1476
|
+
readonly d: "M8 2v4";
|
|
1477
|
+
}]];
|
|
1478
|
+
readonly "clock-arrow-up": readonly [readonly ["path", {
|
|
1479
|
+
readonly d: "M12 6v6l1.56.78";
|
|
1480
|
+
}], readonly ["path", {
|
|
1481
|
+
readonly d: "M13.227 21.925a10 10 0 1 1 8.767-9.588";
|
|
1482
|
+
}], readonly ["path", {
|
|
1483
|
+
readonly d: "m14 18 4-4 4 4";
|
|
1484
|
+
}], readonly ["path", {
|
|
1485
|
+
readonly d: "M18 22v-8";
|
|
1486
|
+
}]];
|
|
1487
|
+
readonly files: readonly [readonly ["path", {
|
|
1488
|
+
readonly d: "M15 2a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 21 8v7a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z";
|
|
1489
|
+
}], readonly ["path", {
|
|
1490
|
+
readonly d: "M15 2v4a2 2 0 0 0 2 2h4";
|
|
1491
|
+
}], readonly ["path", {
|
|
1492
|
+
readonly d: "M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1";
|
|
1493
|
+
}]];
|
|
1494
|
+
readonly hash: readonly [readonly ["line", {
|
|
1495
|
+
readonly x1: "4";
|
|
1496
|
+
readonly x2: "20";
|
|
1497
|
+
readonly y1: "9";
|
|
1498
|
+
readonly y2: "9";
|
|
1499
|
+
}], readonly ["line", {
|
|
1500
|
+
readonly x1: "4";
|
|
1501
|
+
readonly x2: "20";
|
|
1502
|
+
readonly y1: "15";
|
|
1503
|
+
readonly y2: "15";
|
|
1504
|
+
}], readonly ["line", {
|
|
1505
|
+
readonly x1: "10";
|
|
1506
|
+
readonly x2: "8";
|
|
1507
|
+
readonly y1: "3";
|
|
1508
|
+
readonly y2: "21";
|
|
1509
|
+
}], readonly ["line", {
|
|
1510
|
+
readonly x1: "16";
|
|
1511
|
+
readonly x2: "14";
|
|
1512
|
+
readonly y1: "3";
|
|
1513
|
+
readonly y2: "21";
|
|
1514
|
+
}]];
|
|
1515
|
+
readonly milestone: readonly [readonly ["path", {
|
|
1516
|
+
readonly d: "M12 13v8";
|
|
1517
|
+
}], readonly ["path", {
|
|
1518
|
+
readonly d: "M12 3v3";
|
|
1519
|
+
}], readonly ["path", {
|
|
1520
|
+
readonly d: "M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z";
|
|
1521
|
+
}]];
|
|
1522
|
+
readonly signature: readonly [readonly ["path", {
|
|
1523
|
+
readonly d: "m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284";
|
|
1524
|
+
}], readonly ["path", {
|
|
1525
|
+
readonly d: "M3 21h18";
|
|
1526
|
+
}]];
|
|
1465
1527
|
readonly "align-center": readonly [readonly ["path", {
|
|
1466
1528
|
readonly d: "M21 5H3";
|
|
1467
1529
|
}], readonly ["path", {
|