@dcs-tech/ui 0.10.0 → 0.11.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 +362 -0
- package/README.md +3 -2
- package/THIRD_PARTY_NOTICES.md +23 -0
- package/dist/ChartImageMenu-sB2QNQzd.js +9673 -0
- package/dist/ChartView-BstZkP1g.js +1942 -0
- package/dist/{SummaryChart-i6fOdrDM.js → SummaryChart-B5ibDNOZ.js} +11 -10
- package/dist/{SummaryImage-CCt5ozD9.js → SummaryImage-CRP7X2Nl.js} +2 -2
- package/dist/SummarySeeAll-CtYRGV4G.js +101 -0
- package/dist/assets/fileTask.worker-D97s2vRV.js +1 -0
- package/dist/{columnValue-74XDBcVF.js → columnValue-BOn9NC8X.js} +86 -79
- package/dist/exportContext-CMzuzRjc.js +274 -0
- package/dist/{exportEngine-BmDly7iw.js → exportEngine-CYDN8Ty-.js} +167 -137
- package/dist/file-worker.js +1 -1
- package/dist/{fileActions-CFNO14Aj.js → fileActions-DkPEWE-t.js} +1 -1
- package/dist/{geometry-DG134nYI.js → geometry-CFS5If1N.js} +769 -466
- package/dist/index.js +21095 -12669
- package/dist/{labels-BPItSeRU.js → labels-mukFhYkc.js} +124 -1
- package/dist/{runFileTask-BIZTFnZP.js → runFileTask-DI_39TjR.js} +17 -0
- package/dist/scrollArea-B52kugL1.js +291 -0
- package/dist/style.css +1 -1
- package/dist/{summaryChartData-BiQYJbYZ.js → summaryChartData-D15kw64n.js} +6 -5
- package/dist/types/components/Charts/BarList.d.ts +4 -3
- package/dist/types/components/Charts/CalendarHeatmap.d.ts +4 -2
- package/dist/types/components/Charts/Chart.d.ts +3 -2
- package/dist/types/components/Charts/ChartView.d.ts +3 -2
- package/dist/types/components/Charts/ColumnChart.d.ts +4 -3
- package/dist/types/components/Charts/Donut.d.ts +3 -2
- package/dist/types/components/Charts/Funnel.d.ts +3 -2
- package/dist/types/components/Charts/Gauge.d.ts +3 -2
- package/dist/types/components/Charts/LineChart.d.ts +4 -3
- package/dist/types/components/Charts/NumberTrend.d.ts +4 -3
- package/dist/types/components/Charts/Progress.d.ts +3 -2
- package/dist/types/components/Charts/StackedBar.d.ts +3 -2
- package/dist/types/components/Charts/Treemap.d.ts +3 -2
- package/dist/types/components/Charts/chartData.d.ts +6 -0
- package/dist/types/components/Charts/chartImage.d.ts +2 -0
- package/dist/types/components/Charts/geometry.d.ts +3 -0
- package/dist/types/components/Charts/index.d.ts +2 -0
- package/dist/types/components/Charts/palette.d.ts +1 -0
- package/dist/types/components/Charts/parts.d.ts +14 -0
- package/dist/types/components/Charts/useChartMotion.d.ts +8 -0
- package/dist/types/components/DataTable/DataTable.d.ts +3 -1
- package/dist/types/components/DataTable/DisplayPopover.d.ts +1 -0
- package/dist/types/components/DataTable/HeaderMenu.d.ts +1 -0
- package/dist/types/components/DataTable/TableColumnModal.d.ts +4 -1
- package/dist/types/components/DataTable/TableToolbar.d.ts +20 -1
- package/dist/types/components/DataTable/TableView.d.ts +18 -2
- package/dist/types/components/DataTable/cards/CardView.d.ts +25 -5
- package/dist/types/components/DataTable/cards/rowParts.d.ts +1 -0
- package/dist/types/components/DataTable/cellSelection/CellRangeBar.d.ts +16 -0
- package/dist/types/components/DataTable/cellSelection/cellRangeStore.d.ts +18 -0
- package/dist/types/components/DataTable/cellSelection/paintRanges.d.ts +2 -0
- package/dist/types/components/DataTable/cellSelection/useCellSelection.d.ts +63 -0
- package/dist/types/components/DataTable/data/listDelta.d.ts +27 -0
- package/dist/types/components/DataTable/data/rowLineage.d.ts +3 -0
- package/dist/types/components/DataTable/data/rowModels.d.ts +9 -0
- package/dist/types/components/DataTable/data/rowTransaction.d.ts +9 -0
- package/dist/types/components/DataTable/data/useServerData.d.ts +3 -1
- package/dist/types/components/DataTable/export/exportCells.d.ts +5 -2
- package/dist/types/components/DataTable/export/exportEngine.d.ts +7 -2
- package/dist/types/components/DataTable/export/useTableExport.d.ts +17 -1
- package/dist/types/components/DataTable/filters/filterRowModel.d.ts +1 -0
- package/dist/types/components/DataTable/grouping/groupModel.d.ts +11 -0
- package/dist/types/components/DataTable/index.d.ts +1 -1
- package/dist/types/components/DataTable/keyboard/ShortcutsDialog.d.ts +4 -1
- package/dist/types/components/DataTable/keyboard/useGridKeyboard.d.ts +8 -0
- package/dist/types/components/DataTable/labels.d.ts +128 -0
- package/dist/types/components/DataTable/layout/LayoutSwitcher.d.ts +10 -2
- package/dist/types/components/DataTable/layout/useFitWidths.d.ts +7 -0
- package/dist/types/components/DataTable/menu/RowMenu.d.ts +1 -0
- package/dist/types/components/DataTable/menu/buildRowMenu.d.ts +6 -3
- package/dist/types/components/DataTable/motion/RowChangeNotice.d.ts +19 -0
- package/dist/types/components/DataTable/motion/rowChanges.d.ts +25 -0
- package/dist/types/components/DataTable/motion/useNoticeInsets.d.ts +2 -0
- package/dist/types/components/DataTable/motion/useRowChangeNotices.d.ts +35 -0
- package/dist/types/components/DataTable/motion/useRowMotion.d.ts +29 -3
- package/dist/types/components/DataTable/persistence/reconcile.d.ts +4 -0
- package/dist/types/components/DataTable/persistence/useColumnPersistence.d.ts +5 -1
- package/dist/types/components/DataTable/pivot/PivotPanel.d.ts +11 -0
- package/dist/types/components/DataTable/pivot/PivotView.d.ts +22 -0
- package/dist/types/components/DataTable/pivot/pivotModel.d.ts +54 -0
- package/dist/types/components/DataTable/pivot/usePivot.d.ts +44 -0
- package/dist/types/components/DataTable/rows/PressRow.d.ts +1 -0
- package/dist/types/components/DataTable/rows/RowLead.d.ts +23 -0
- package/dist/types/components/DataTable/rows/rowPress.d.ts +2 -0
- package/dist/types/components/DataTable/rows/usePinnedRows.d.ts +34 -0
- package/dist/types/components/DataTable/rows/useRowDrag.d.ts +44 -0
- package/dist/types/components/DataTable/split/SplitView.d.ts +4 -2
- package/dist/types/components/DataTable/summary/SummaryChart.d.ts +2 -1
- package/dist/types/components/DataTable/summary/TableSummary.d.ts +2 -1
- package/dist/types/components/DataTable/summary/summaryModel.d.ts +28 -6
- package/dist/types/components/DataTable/summary/useTableSummary.d.ts +3 -0
- package/dist/types/components/DataTable/toolbar/ToolbarMore.d.ts +14 -0
- package/dist/types/components/DataTable/toolbar/useToolbarFit.d.ts +10 -0
- package/dist/types/components/DataTable/tree/TreeChips.d.ts +5 -0
- package/dist/types/components/DataTable/tree/treeExport.d.ts +54 -0
- package/dist/types/components/DataTable/tree/treeMove.d.ts +1 -0
- package/dist/types/components/DataTable/tree/useTreeChildren.d.ts +15 -0
- package/dist/types/components/DataTable/tree/useTreeData.d.ts +60 -0
- package/dist/types/components/DataTable/types.d.ts +272 -4
- package/dist/types/components/DataTable/useDataChangeTracker.d.ts +11 -4
- package/dist/types/components/DataTable/useTable.d.ts +13 -1
- package/dist/types/components/DataTable/virtual/useVirtualLines.d.ts +1 -0
- package/dist/types/components/EventCalendar/EventCalendar.d.ts +46 -0
- package/dist/types/components/EventCalendar/eventParts.d.ts +10 -0
- package/dist/types/components/EventCalendar/index.d.ts +3 -0
- package/dist/types/components/EventCalendar/useCalendarEdit.d.ts +40 -0
- package/dist/types/components/Icon/Icon.d.ts +36 -0
- package/dist/types/components/Icon/Icon.storyData.d.ts +6 -0
- package/dist/types/components/Icon/IconContext.d.ts +7 -0
- package/dist/types/components/Icon/icons.d.ts +223 -0
- package/dist/types/components/Icon/index.d.ts +7 -0
- package/dist/types/components/Icon/useIconDone.d.ts +5 -0
- package/dist/types/components/Popover/Popover.d.ts +1 -0
- package/dist/types/components/Popover/floatingPosition.d.ts +22 -2
- package/dist/types/components/ReorderList/ReorderList.d.ts +2 -1
- package/dist/types/components/Scroll/ui.d.ts +1 -0
- package/dist/types/components/SlidingHighlight/index.d.ts +2 -0
- package/dist/types/components/SlidingHighlight/useSlidingHighlight.d.ts +20 -0
- package/dist/types/components/Suggest/SuggestionList.d.ts +1 -0
- package/dist/types/components/UIProvider/UILabelsContext.d.ts +34 -0
- package/dist/types/components/UIProvider/UIProvider.d.ts +2 -0
- package/dist/types/core/hooks/index.d.ts +1 -1
- package/dist/types/core/hooks/usePresence.d.ts +1 -0
- package/dist/types/core/icons/actions.icons.d.ts +37 -0
- package/dist/types/core/icons/commerce.icons.d.ts +16 -0
- package/dist/types/core/icons/communication.icons.d.ts +10 -0
- package/dist/types/core/icons/delivery.icons.d.ts +13 -0
- package/dist/types/core/icons/devices.icons.d.ts +16 -0
- package/dist/types/core/icons/files.icons.d.ts +13 -0
- package/dist/types/core/icons/general.icons.d.ts +24 -0
- package/dist/types/core/icons/index.d.ts +14 -0
- package/dist/types/core/icons/media.icons.d.ts +11 -0
- package/dist/types/core/icons/navigation.icons.d.ts +25 -0
- package/dist/types/core/icons/people.icons.d.ts +13 -0
- package/dist/types/core/icons/registry.d.ts +2 -0
- package/dist/types/core/icons/state.icons.d.ts +14 -0
- package/dist/types/core/icons/status.icons.d.ts +10 -0
- package/dist/types/core/icons/table.icons.d.ts +22 -0
- package/dist/types/core/icons/text.icons.d.ts +13 -0
- package/dist/types/core/logic/cellRange.logic.d.ts +66 -0
- package/dist/types/core/logic/cellTouch.logic.d.ts +16 -0
- package/dist/types/core/logic/columnGroups.logic.d.ts +31 -0
- package/dist/types/core/logic/dropdownSide.logic.d.ts +19 -0
- package/dist/types/core/logic/eventCalendar.logic.d.ts +225 -0
- package/dist/types/core/logic/fitColumns.logic.d.ts +7 -0
- package/dist/types/core/logic/icon.logic.d.ts +24 -0
- package/dist/types/core/logic/index.d.ts +16 -0
- package/dist/types/core/logic/pivot.logic.d.ts +100 -0
- package/dist/types/core/logic/rowActions.logic.d.ts +7 -0
- package/dist/types/core/logic/rowDrag.logic.d.ts +36 -0
- package/dist/types/core/logic/rowPinning.logic.d.ts +12 -0
- package/dist/types/core/logic/slidingHighlight.logic.d.ts +20 -0
- package/dist/types/core/logic/toolbarOverflow.logic.d.ts +21 -0
- package/dist/types/core/logic/treeData.logic.d.ts +44 -0
- package/dist/types/core/logic/treeDrag.logic.d.ts +63 -0
- package/dist/types/core/logic/tween.logic.d.ts +33 -0
- package/dist/types/core/logic/visualViewport.logic.d.ts +13 -0
- package/dist/types/core/types/eventCalendar.types.d.ts +18 -0
- package/dist/types/core/types/fileEngine.types.d.ts +6 -0
- package/dist/types/core/types/icon.types.d.ts +109 -0
- package/dist/types/core/types/index.d.ts +2 -0
- package/dist/types/index.d.ts +7 -0
- package/package.json +4 -4
- package/dist/ChartImageMenu-3OfqNFyt.js +0 -1510
- package/dist/ChartView-n4G5_2ro.js +0 -1707
- package/dist/SummarySeeAll-BY8knsRe.js +0 -101
- package/dist/assets/fileTask.worker--Q3rI3Bn.js +0 -1
- package/dist/exportContext-C52ZuHd8.js +0 -166
- package/dist/scrollArea-D84Cwm4o.js +0 -310
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export type PivotKey = string | number | boolean | null;
|
|
2
|
+
export type PivotAggName = 'sum' | 'count' | 'avg' | 'min' | 'max' | 'first' | 'last';
|
|
3
|
+
export declare const PIVOT_AGGS: readonly PivotAggName[];
|
|
4
|
+
export declare const PIVOT_NUMBER_AGGS: readonly PivotAggName[];
|
|
5
|
+
export declare const isPivotAggName: (agg: unknown) => agg is PivotAggName;
|
|
6
|
+
export type PivotAggFn<T> = (values: unknown[], rows: T[]) => unknown;
|
|
7
|
+
export interface PivotSpec<T> {
|
|
8
|
+
rows: ReadonlyArray<(row: T) => PivotKey>;
|
|
9
|
+
columns: ReadonlyArray<(row: T) => PivotKey>;
|
|
10
|
+
values: ReadonlyArray<{
|
|
11
|
+
valueOf: (row: T) => unknown;
|
|
12
|
+
agg: PivotAggName | PivotAggFn<T>;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
export interface PivotNode {
|
|
16
|
+
id: number;
|
|
17
|
+
key: PivotKey;
|
|
18
|
+
path: PivotKey[];
|
|
19
|
+
depth: number;
|
|
20
|
+
parent: PivotNode | null;
|
|
21
|
+
children: Map<PivotKey, PivotNode>;
|
|
22
|
+
}
|
|
23
|
+
export interface PivotCube {
|
|
24
|
+
rows: PivotNode;
|
|
25
|
+
columns: PivotNode;
|
|
26
|
+
rowFields: number;
|
|
27
|
+
columnFields: number;
|
|
28
|
+
values: number;
|
|
29
|
+
figures: (row: PivotNode, column: PivotNode) => readonly unknown[] | undefined;
|
|
30
|
+
}
|
|
31
|
+
export declare function pivotKeyId(k: PivotKey): string;
|
|
32
|
+
export declare function pivotNumber(v: unknown): number | null;
|
|
33
|
+
export declare const isPivotBlank: (v: unknown) => boolean;
|
|
34
|
+
export interface PivotBuilder<T> {
|
|
35
|
+
add: (rows: readonly T[], from?: number, to?: number) => void;
|
|
36
|
+
done: () => PivotCube;
|
|
37
|
+
}
|
|
38
|
+
export declare function pivotBuilder<T>(spec: PivotSpec<T>): PivotBuilder<T>;
|
|
39
|
+
export declare function computePivot<T>(rows: readonly T[], spec: PivotSpec<T>): PivotCube;
|
|
40
|
+
export interface PivotCellInput {
|
|
41
|
+
row: readonly PivotKey[];
|
|
42
|
+
column: readonly PivotKey[];
|
|
43
|
+
values: readonly unknown[];
|
|
44
|
+
}
|
|
45
|
+
export declare function pivotCubeFromCells(cells: readonly PivotCellInput[], dims: {
|
|
46
|
+
rowFields: number;
|
|
47
|
+
columnFields: number;
|
|
48
|
+
values: number;
|
|
49
|
+
}): PivotCube;
|
|
50
|
+
export declare function comparePivotKeys(a: PivotKey, b: PivotKey): number;
|
|
51
|
+
export declare function comparePivotFigures(a: unknown, b: unknown): number;
|
|
52
|
+
export interface PivotColumn {
|
|
53
|
+
id: string;
|
|
54
|
+
node: PivotNode;
|
|
55
|
+
value: number;
|
|
56
|
+
total: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface PivotHeaderGroup {
|
|
59
|
+
id: string;
|
|
60
|
+
node: PivotNode;
|
|
61
|
+
total: boolean;
|
|
62
|
+
children: Array<PivotHeaderGroup | PivotColumn>;
|
|
63
|
+
}
|
|
64
|
+
export declare const isPivotHeaderGroup: (x: PivotHeaderGroup | PivotColumn) => x is PivotHeaderGroup;
|
|
65
|
+
export interface PivotLine {
|
|
66
|
+
id: string;
|
|
67
|
+
node: PivotNode;
|
|
68
|
+
kind: 'leaf' | 'subtotal' | 'grand';
|
|
69
|
+
}
|
|
70
|
+
export interface PivotLayoutOptions {
|
|
71
|
+
rowSubtotals: boolean;
|
|
72
|
+
columnTotals: boolean;
|
|
73
|
+
grandTotal: boolean;
|
|
74
|
+
maxColumns: number;
|
|
75
|
+
compareRowKey?: (field: number, a: PivotKey, b: PivotKey) => number;
|
|
76
|
+
compareColumnKey?: (field: number, a: PivotKey, b: PivotKey) => number;
|
|
77
|
+
}
|
|
78
|
+
export interface PivotLayout {
|
|
79
|
+
columns: PivotColumn[];
|
|
80
|
+
header: Array<PivotHeaderGroup | PivotColumn>;
|
|
81
|
+
lines: PivotLine[];
|
|
82
|
+
grand: PivotLine | null;
|
|
83
|
+
capped: {
|
|
84
|
+
shown: number;
|
|
85
|
+
total: number;
|
|
86
|
+
} | null;
|
|
87
|
+
}
|
|
88
|
+
export declare const pivotColumnId: (path: readonly PivotKey[], value: number) => string;
|
|
89
|
+
export declare const pivotLineId: (path: readonly PivotKey[]) => string;
|
|
90
|
+
export declare function layoutPivot(cube: PivotCube, opts: PivotLayoutOptions): PivotLayout;
|
|
91
|
+
export type PivotSort = {
|
|
92
|
+
field: number;
|
|
93
|
+
desc: boolean;
|
|
94
|
+
} | {
|
|
95
|
+
column: PivotColumn;
|
|
96
|
+
desc: boolean;
|
|
97
|
+
};
|
|
98
|
+
export declare function orderPivotLines(cube: PivotCube, layout: PivotLayout, sorts: readonly PivotSort[], opts?: {
|
|
99
|
+
compareRowKey?: (field: number, a: PivotKey, b: PivotKey) => number;
|
|
100
|
+
}): PivotLine[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const MAX_VISIBLE_ACTIONS_CHOICES: readonly [1, 2, 3, 4, 5];
|
|
2
|
+
export declare function isMaxVisibleActions(value: unknown): value is number;
|
|
3
|
+
export interface RowActionButtons {
|
|
4
|
+
count: number;
|
|
5
|
+
primaryOnly: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function rowActionButtons(surface: 'table' | 'card', choice: unknown, viewInline: number | undefined): RowActionButtons;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export type RowDragBlock = 'sorted' | 'filtered' | 'searched' | 'grouped';
|
|
2
|
+
export declare function rowDragBlock(state: {
|
|
3
|
+
sorted: boolean;
|
|
4
|
+
filtered: boolean;
|
|
5
|
+
searched: boolean;
|
|
6
|
+
grouped: boolean;
|
|
7
|
+
}): RowDragBlock | null;
|
|
8
|
+
export type RowDropTarget = {
|
|
9
|
+
before: string;
|
|
10
|
+
} | {
|
|
11
|
+
after: string;
|
|
12
|
+
};
|
|
13
|
+
export interface RowMove<T> {
|
|
14
|
+
rows: T[];
|
|
15
|
+
removedAt: number[];
|
|
16
|
+
addedAt: number[];
|
|
17
|
+
}
|
|
18
|
+
export declare function moveRows<T>(rows: readonly T[], idOf: (row: T) => string, moving: ReadonlySet<string>, target: RowDropTarget): RowMove<T> | null;
|
|
19
|
+
export interface RowSlotRect {
|
|
20
|
+
id: string;
|
|
21
|
+
top: number;
|
|
22
|
+
bottom: number;
|
|
23
|
+
}
|
|
24
|
+
export declare function dropTargetAt(rects: readonly RowSlotRect[], y: number): RowDropTarget | null;
|
|
25
|
+
export declare function normalizeDropTarget(order: readonly string[], target: RowDropTarget): RowDropTarget;
|
|
26
|
+
export declare function keyboardDrop(order: readonly string[], moving: ReadonlySet<string>): {
|
|
27
|
+
rest: string[];
|
|
28
|
+
slot: number;
|
|
29
|
+
total: number;
|
|
30
|
+
};
|
|
31
|
+
export declare function slotTarget(rest: readonly string[], slot: number): RowDropTarget | null;
|
|
32
|
+
export interface RowSlotBox extends RowSlotRect {
|
|
33
|
+
left: number;
|
|
34
|
+
right: number;
|
|
35
|
+
}
|
|
36
|
+
export declare function gridDropTargetAt(boxes: readonly RowSlotBox[], x: number, y: number): RowDropTarget | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type RowPinSide = 'top' | 'bottom';
|
|
2
|
+
export interface RowPins {
|
|
3
|
+
top: string[];
|
|
4
|
+
bottom: string[];
|
|
5
|
+
}
|
|
6
|
+
export declare const NO_ROW_PINS: RowPins;
|
|
7
|
+
export declare const ROW_PINS_MAX = 50;
|
|
8
|
+
export declare function rowPinSide(pins: RowPins, id: string): RowPinSide | null;
|
|
9
|
+
export declare function pinRowTo(pins: RowPins, id: string, side: RowPinSide | null): RowPins;
|
|
10
|
+
export declare function normalizeRowPins(value: unknown): RowPins;
|
|
11
|
+
export declare function sameRowPins(a: RowPins, b: RowPins): boolean;
|
|
12
|
+
export declare function hasRowPins(pins: RowPins): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface HighlightBox {
|
|
2
|
+
offset: number;
|
|
3
|
+
size: number;
|
|
4
|
+
}
|
|
5
|
+
export type HighlightMove = 'slide' | 'fade' | 'appear' | 'follow' | 'stay';
|
|
6
|
+
export interface HighlightJumpRule {
|
|
7
|
+
maxSteps?: number;
|
|
8
|
+
maxDistance?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const HIGHLIGHT_MAX_STEPS = 4;
|
|
11
|
+
export declare const HIGHLIGHT_MAX_DISTANCE = 320;
|
|
12
|
+
export interface ChooseHighlightMoveInput {
|
|
13
|
+
from: HighlightBox | null;
|
|
14
|
+
to: HighlightBox | null;
|
|
15
|
+
sameItem: boolean;
|
|
16
|
+
fromVisible: boolean;
|
|
17
|
+
rule?: HighlightJumpRule | false;
|
|
18
|
+
}
|
|
19
|
+
export declare function chooseHighlightMove({ from, to, sameItem, fromVisible, rule }: ChooseHighlightMoveInput): HighlightMove;
|
|
20
|
+
export declare function spanVisible(box: HighlightBox, start: number, end: number): boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ToolbarFitItem {
|
|
2
|
+
id: string;
|
|
3
|
+
width: number;
|
|
4
|
+
priority: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ToolbarFitInput {
|
|
7
|
+
available: number;
|
|
8
|
+
pinned?: number;
|
|
9
|
+
moreWidth: number;
|
|
10
|
+
items: readonly ToolbarFitItem[];
|
|
11
|
+
shrinkable?: {
|
|
12
|
+
full: number;
|
|
13
|
+
compact: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface ToolbarFitResult {
|
|
17
|
+
overflow: string[];
|
|
18
|
+
compact: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function fitToolbarItems({ available, pinned, moreWidth, items, shrinkable }: ToolbarFitInput): ToolbarFitResult;
|
|
21
|
+
export declare function sameOverflow(a: readonly string[], b: readonly string[]): boolean;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface TreeIndex<T> {
|
|
2
|
+
nodes: T[];
|
|
3
|
+
parentOf: Map<string, string | null>;
|
|
4
|
+
childrenOf: Map<string, string[]>;
|
|
5
|
+
}
|
|
6
|
+
export interface TreeSource<T> {
|
|
7
|
+
children?: (row: T) => readonly T[] | null | undefined;
|
|
8
|
+
parentId?: (row: T) => string | null | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare function treeIndexOf<T>(rows: readonly T[], idOf: (row: T) => string, source: TreeSource<T>): TreeIndex<T>;
|
|
11
|
+
export declare function treeDescendants(childrenOf: ReadonlyMap<string, readonly string[]>, id: string): string[];
|
|
12
|
+
export declare function treeAncestors(parentOf: ReadonlyMap<string, string | null>, id: string): string[];
|
|
13
|
+
export type TreeFilterMode = 'ancestors' | 'matches';
|
|
14
|
+
export interface TreeKept<T> {
|
|
15
|
+
kept: T[];
|
|
16
|
+
matched: Set<string>;
|
|
17
|
+
open: Set<string>;
|
|
18
|
+
}
|
|
19
|
+
export declare function keepTreeMatches<T>(rows: readonly T[], idOf: (row: T) => string, tree: Pick<TreeIndex<T>, 'parentOf' | 'childrenOf'>, matches: (row: T) => boolean, mode?: TreeFilterMode): TreeKept<T>;
|
|
20
|
+
export interface TreeBuckets<R> {
|
|
21
|
+
roots: R[];
|
|
22
|
+
children: Map<string, R[]>;
|
|
23
|
+
}
|
|
24
|
+
export declare function treeBuckets<R>(rows: readonly R[], idOf: (row: R) => string, parentOf: (id: string) => string | null | undefined, flat?: boolean): TreeBuckets<R>;
|
|
25
|
+
export interface TreeLine<R> {
|
|
26
|
+
row: R;
|
|
27
|
+
id: string;
|
|
28
|
+
depth: number;
|
|
29
|
+
hasChildren: boolean;
|
|
30
|
+
expanded: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function flattenTree<R>(buckets: TreeBuckets<R>, idOf: (row: R) => string, isExpanded: (id: string, depth: number) => boolean, hasChildren?: (row: R, id: string) => boolean): Array<TreeLine<R>>;
|
|
33
|
+
export interface TreeExpansion {
|
|
34
|
+
base: boolean | number;
|
|
35
|
+
toggled: ReadonlyMap<string, boolean>;
|
|
36
|
+
force: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare function isTreeRowExpanded(state: TreeExpansion, id: string, depth: number, forcedOpen?: ReadonlySet<string>): boolean;
|
|
39
|
+
export declare function toggleTreeRow(state: TreeExpansion, id: string, shownOpen: boolean): TreeExpansion;
|
|
40
|
+
export interface TreeExtraRows<T> {
|
|
41
|
+
rows: readonly T[];
|
|
42
|
+
parentOf: (id: string) => string | null | undefined;
|
|
43
|
+
}
|
|
44
|
+
export declare function treeFileLines<T>(rows: readonly T[], idOf: (row: T) => string, source: TreeSource<T>, extra?: TreeExtraRows<T>): Array<TreeLine<T>>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export interface TreeShape {
|
|
2
|
+
parentOf: ReadonlyMap<string, string | null>;
|
|
3
|
+
childrenOf: ReadonlyMap<string, readonly string[]>;
|
|
4
|
+
roots: readonly string[];
|
|
5
|
+
}
|
|
6
|
+
export interface TreeDragLine {
|
|
7
|
+
id: string;
|
|
8
|
+
depth: number;
|
|
9
|
+
}
|
|
10
|
+
export interface TreeDropPlace {
|
|
11
|
+
parent: string | null;
|
|
12
|
+
index: number;
|
|
13
|
+
}
|
|
14
|
+
export interface TreeDropTarget extends TreeDropPlace {
|
|
15
|
+
gap: number;
|
|
16
|
+
level: number;
|
|
17
|
+
inside: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function treeMovingRoots(tree: Pick<TreeShape, 'parentOf'>, ids: readonly string[]): string[];
|
|
20
|
+
export declare function treeMovingSet(tree: Pick<TreeShape, 'childrenOf'>, roots: readonly string[]): Set<string>;
|
|
21
|
+
export declare function treeRestLines<L extends TreeDragLine>(lines: readonly L[], moving: ReadonlySet<string>): L[];
|
|
22
|
+
export declare function treeGapLevels(rest: readonly TreeDragLine[], gap: number): {
|
|
23
|
+
min: number;
|
|
24
|
+
max: number;
|
|
25
|
+
};
|
|
26
|
+
export declare function treeInsideTarget(tree: TreeShape, rest: readonly TreeDragLine[], line: number, moving: ReadonlySet<string>): TreeDropTarget | null;
|
|
27
|
+
export declare function treeGapTarget(tree: TreeShape, rest: readonly TreeDragLine[], gap: number, level: number, moving: ReadonlySet<string>): TreeDropTarget;
|
|
28
|
+
export interface TreeLineRect {
|
|
29
|
+
line: number;
|
|
30
|
+
top: number;
|
|
31
|
+
bottom: number;
|
|
32
|
+
}
|
|
33
|
+
export declare function treePointerSpot(rects: readonly TreeLineRect[], y: number): {
|
|
34
|
+
gap: number;
|
|
35
|
+
} | {
|
|
36
|
+
inside: number;
|
|
37
|
+
} | null;
|
|
38
|
+
export declare function treePlaceOf(tree: TreeShape, id: string): {
|
|
39
|
+
parent: string | null;
|
|
40
|
+
index: number;
|
|
41
|
+
};
|
|
42
|
+
export declare function treeStartGap(lines: readonly TreeDragLine[], moving: ReadonlySet<string>, first: string): {
|
|
43
|
+
gap: number;
|
|
44
|
+
level: number;
|
|
45
|
+
};
|
|
46
|
+
export declare function treeIndentPlace(tree: TreeShape, roots: readonly string[], moving: ReadonlySet<string>): TreeDropPlace | null;
|
|
47
|
+
export declare function treeOutdentPlace(tree: TreeShape, roots: readonly string[], moving: ReadonlySet<string>): TreeDropPlace | null;
|
|
48
|
+
export interface TreeMove {
|
|
49
|
+
from: Array<{
|
|
50
|
+
id: string;
|
|
51
|
+
parent: string | null;
|
|
52
|
+
index: number;
|
|
53
|
+
}>;
|
|
54
|
+
parent: string | null;
|
|
55
|
+
index: number;
|
|
56
|
+
siblings: string[];
|
|
57
|
+
parentOf: Map<string, string | null>;
|
|
58
|
+
childrenOf: Map<string, string[]>;
|
|
59
|
+
roots: string[];
|
|
60
|
+
order: string[];
|
|
61
|
+
}
|
|
62
|
+
export declare function moveTreeRows(tree: TreeShape, roots: readonly string[], place: TreeDropPlace): TreeMove | null;
|
|
63
|
+
export declare function treeOrderOf(tree: Pick<TreeShape, 'childrenOf' | 'roots'>): string[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const MOTION_MS: {
|
|
2
|
+
readonly micro: 100;
|
|
3
|
+
readonly short: 150;
|
|
4
|
+
readonly medium: 200;
|
|
5
|
+
readonly long: 300;
|
|
6
|
+
};
|
|
7
|
+
export declare const EASE_STANDARD_POINTS: readonly [0.2, 0, 0, 1];
|
|
8
|
+
export declare function cubicBezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;
|
|
9
|
+
export declare const easeStandard: (t: number) => number;
|
|
10
|
+
export type TweenValues = Readonly<Record<string, number>>;
|
|
11
|
+
export interface Tween {
|
|
12
|
+
from: TweenValues;
|
|
13
|
+
to: TweenValues;
|
|
14
|
+
start: number;
|
|
15
|
+
duration: number;
|
|
16
|
+
hold?: (name: string) => boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const tweenDone: (tween: Tween, now: number) => boolean;
|
|
19
|
+
export declare function tweenAt(tween: Tween, now: number, ease?: (t: number) => number): Record<string, number>;
|
|
20
|
+
export declare function retarget(current: Tween | null, settled: TweenValues, to: TweenValues, now: number, duration: number, ease?: (t: number) => number, hold?: (name: string) => boolean): Tween;
|
|
21
|
+
export declare function sameValues(a: TweenValues, b: TweenValues): boolean;
|
|
22
|
+
export declare function withLeaving<T>(current: readonly T[], previous: readonly T[], keyOf: (item: T) => string, alive: (key: string) => boolean): T[];
|
|
23
|
+
export declare function presenceGaps(presence: readonly number[]): number[];
|
|
24
|
+
export declare function presenceBands(presence: readonly number[]): Array<{
|
|
25
|
+
start: number;
|
|
26
|
+
size: number;
|
|
27
|
+
}>;
|
|
28
|
+
export declare function presenceSpread(presence: readonly number[]): number[];
|
|
29
|
+
export declare function drawnTicks(values: TweenValues, prefix: string): Array<{
|
|
30
|
+
value: number;
|
|
31
|
+
alpha: number;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const tickAt: (value: number, max: number) => number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface VisualViewportBox {
|
|
2
|
+
height: number;
|
|
3
|
+
offsetTop: number;
|
|
4
|
+
}
|
|
5
|
+
export interface VerticalBand {
|
|
6
|
+
top: number;
|
|
7
|
+
bottom: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function visibleBand(bounds: VerticalBand, visual?: VisualViewportBox | null): VerticalBand;
|
|
10
|
+
export declare function roomInBand(side: 'top' | 'bottom', anchor: {
|
|
11
|
+
top: number;
|
|
12
|
+
bottom: number;
|
|
13
|
+
}, band: VerticalBand, offset?: number, padding?: number): number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SemanticColor } from './control.types';
|
|
2
|
+
export type CalendarEventColor = SemanticColor | (string & {});
|
|
3
|
+
export type CalendarDateInput = Date | string;
|
|
4
|
+
export interface CalendarEvent {
|
|
5
|
+
id: string | number;
|
|
6
|
+
title: string;
|
|
7
|
+
start: CalendarDateInput;
|
|
8
|
+
end?: CalendarDateInput;
|
|
9
|
+
allDay?: boolean;
|
|
10
|
+
color?: CalendarEventColor;
|
|
11
|
+
}
|
|
12
|
+
export type CalendarViewType = 'month' | 'week' | 'day';
|
|
13
|
+
export interface CalendarEventChange<T extends CalendarEvent = CalendarEvent> {
|
|
14
|
+
event: T;
|
|
15
|
+
start: string;
|
|
16
|
+
end: string | undefined;
|
|
17
|
+
allDay: boolean;
|
|
18
|
+
}
|
|
@@ -59,12 +59,18 @@ export interface XlsxColumnSpec {
|
|
|
59
59
|
align?: 'left' | 'center' | 'right';
|
|
60
60
|
style?: XlsxCellStyle;
|
|
61
61
|
}
|
|
62
|
+
export type XlsxHeaderGroupRow = Array<{
|
|
63
|
+
label: string;
|
|
64
|
+
start: number;
|
|
65
|
+
span: number;
|
|
66
|
+
}>;
|
|
62
67
|
export interface XlsxSheetSpec {
|
|
63
68
|
name: string;
|
|
64
69
|
columns: XlsxColumnSpec[];
|
|
65
70
|
rows: XlsxCellValue[][];
|
|
66
71
|
freezeHeader?: boolean;
|
|
67
72
|
before?: XlsxRowSpec[];
|
|
73
|
+
headerGroups?: XlsxHeaderGroupRow[];
|
|
68
74
|
after?: XlsxRowSpec[];
|
|
69
75
|
headerStyle?: XlsxCellStyle;
|
|
70
76
|
stripe?: string;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
interface IconShapeBase {
|
|
2
|
+
fill?: boolean;
|
|
3
|
+
cutout?: boolean;
|
|
4
|
+
duo?: boolean | 'only';
|
|
5
|
+
}
|
|
6
|
+
export interface IconPathShape extends IconShapeBase {
|
|
7
|
+
type: 'path';
|
|
8
|
+
d: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IconCircleShape extends IconShapeBase {
|
|
11
|
+
type: 'circle';
|
|
12
|
+
cx: number;
|
|
13
|
+
cy: number;
|
|
14
|
+
r: number;
|
|
15
|
+
}
|
|
16
|
+
export interface IconEllipseShape extends IconShapeBase {
|
|
17
|
+
type: 'ellipse';
|
|
18
|
+
cx: number;
|
|
19
|
+
cy: number;
|
|
20
|
+
rx: number;
|
|
21
|
+
ry: number;
|
|
22
|
+
}
|
|
23
|
+
export interface IconRectShape extends IconShapeBase {
|
|
24
|
+
type: 'rect';
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
rx?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IconLineShape extends IconShapeBase {
|
|
32
|
+
type: 'line';
|
|
33
|
+
x1: number;
|
|
34
|
+
y1: number;
|
|
35
|
+
x2: number;
|
|
36
|
+
y2: number;
|
|
37
|
+
}
|
|
38
|
+
export type IconShape = IconPathShape | IconCircleShape | IconEllipseShape | IconRectShape | IconLineShape;
|
|
39
|
+
export type IconMotionStyle = 'draw' | 'move';
|
|
40
|
+
export type IconMotionChoice = 'auto' | IconMotionStyle;
|
|
41
|
+
export type IconMotionKind = 'pulse' | 'wiggle' | 'spin' | 'draw';
|
|
42
|
+
export interface IconMotion {
|
|
43
|
+
kind: IconMotionKind;
|
|
44
|
+
x?: number;
|
|
45
|
+
y?: number;
|
|
46
|
+
rotate?: number;
|
|
47
|
+
scale?: number | readonly [number, number];
|
|
48
|
+
origin?: readonly [number, number] | 'center';
|
|
49
|
+
delay?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface IconPart {
|
|
52
|
+
shapes: readonly IconShape[];
|
|
53
|
+
motion?: IconMotion;
|
|
54
|
+
draw?: boolean | number;
|
|
55
|
+
}
|
|
56
|
+
export type IconCategory = 'navigation' | 'actions' | 'table' | 'state' | 'status' | 'files' | 'media' | 'text' | 'people' | 'communication' | 'commerce' | 'delivery' | 'devices' | 'general';
|
|
57
|
+
export interface IconDefinition {
|
|
58
|
+
name: string;
|
|
59
|
+
category: IconCategory;
|
|
60
|
+
keywords?: readonly string[];
|
|
61
|
+
parts: readonly IconPart[];
|
|
62
|
+
motion?: IconMotionStyle;
|
|
63
|
+
filled?: readonly IconPart[];
|
|
64
|
+
spinning?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export type IconSizeName = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
67
|
+
export type IconSize = IconSizeName | number;
|
|
68
|
+
export type IconWeight = 'light' | 'regular' | 'bold';
|
|
69
|
+
export type IconVariant = 'outline' | 'duotone';
|
|
70
|
+
export type IconTone = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'muted';
|
|
71
|
+
export type IconAnimate = 'hover' | 'always' | 'off';
|
|
72
|
+
export type IconChange = 'fill-in' | 'fill-out' | 'swap' | 'done' | 'undone';
|
|
73
|
+
export interface IconDrawnState {
|
|
74
|
+
name: string;
|
|
75
|
+
filled: boolean;
|
|
76
|
+
done: boolean;
|
|
77
|
+
}
|
|
78
|
+
export type IconBadge = boolean | number | string;
|
|
79
|
+
export interface IconBadgeGeometry {
|
|
80
|
+
x: number;
|
|
81
|
+
y: number;
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
rx: number;
|
|
85
|
+
cut: {
|
|
86
|
+
x: number;
|
|
87
|
+
y: number;
|
|
88
|
+
width: number;
|
|
89
|
+
height: number;
|
|
90
|
+
rx: number;
|
|
91
|
+
};
|
|
92
|
+
textX: number;
|
|
93
|
+
textY: number;
|
|
94
|
+
fontSize: number;
|
|
95
|
+
}
|
|
96
|
+
export interface IconDefaults {
|
|
97
|
+
animate?: IconAnimate;
|
|
98
|
+
motion?: IconMotionChoice;
|
|
99
|
+
size?: IconSize;
|
|
100
|
+
weight?: IconWeight;
|
|
101
|
+
variant?: IconVariant;
|
|
102
|
+
duotoneTone?: IconTone;
|
|
103
|
+
animateChanges?: boolean;
|
|
104
|
+
press?: boolean;
|
|
105
|
+
badgeTone?: IconTone;
|
|
106
|
+
badgeMax?: number;
|
|
107
|
+
doneDuration?: number;
|
|
108
|
+
}
|
|
109
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export { Typography } from './components/Typography';
|
|
|
5
5
|
export type { TypographyProps, TypographyVariant, TypographyColor, TypographyAlign, TypographyWeight, TypographyTransform, TypographyDecoration, TypographyComponent, TruncateConfig, GradientConfig, } from './components/Typography';
|
|
6
6
|
export { Button, ButtonGroup } from './components/Button';
|
|
7
7
|
export type { ButtonProps, ButtonGroupProps, ButtonVariant, ButtonSize, ButtonColor, ButtonShape, LoadingPosition, GroupOrientation, ButtonGroupContextValue, } from './components/Button';
|
|
8
|
+
export { Icon, IconSwap, createIcon, IconProvider, useIconDefaults, useIconDone } from './components/Icon';
|
|
9
|
+
export type { IconProps, IconComponentProps, IconComponent, IconSwapProps, IconProviderProps, UseIconDoneOptions } from './components/Icon';
|
|
10
|
+
export { IconChevronLeft, IconChevronRight, IconChevronUp, IconChevronDown, IconFirstPage, IconLastPage, IconArrowLeft, IconArrowUp, IconArrowDown, IconArrowToTop, IconArrowToBottom, IconOpenExternal, IconExpandAll, IconCollapseAll, IconDragHandle, IconMoreVertical, IconMoreHorizontal, IconClose, IconAdd, IconDelete, IconEdit, IconCopy, IconCopyRow, IconSave, IconShare, IconPrint, IconDownload, IconExport, IconReset, IconSearch, IconCheck, IconPlay, IconPause, IconBug, IconSettings, IconSliders, IconFilter, IconFilterOnly, IconFilterAdd, IconFilterExclude, IconFilterRow, IconSort, IconColumns, IconPivot, IconOpenDetail, IconGroupBy, IconAutoFit, IconSelectRows, IconViews, IconCustomize, IconLayoutTable, IconLayoutCards, IconLayoutSplit, IconLayoutList, IconInsights, IconBolt, IconClick, IconPin, IconPinOff, IconStar, IconBookmark, IconBookmarkAdd, IconCheckbox, IconEye, IconEyeOff, IconSuccess, IconWarning, IconError, IconSpinner, IconFile, IconFileText, IconFileSheet, IconBraces, IconCode, IconGlobe, IconDatabase, IconFolder, IconHome, IconMenu, IconSwapHorizontal, IconUpload, IconRefresh, IconAlignLeft, IconAlignCenter, IconAlignRight, IconLock, IconUnlock, IconInfo, IconHelp, IconImageAdd, IconZoomIn, IconZoomOut, IconRotateLeft, IconRotateRight, IconFlip, IconRuler, IconHand, IconUser, IconUsers, IconCalendar, IconClock, IconStore, IconCard, IconArrowRight, IconArrowUpRight, IconPanelLeft, IconPanelRight, IconUndo, IconRedo, IconRepeat, IconLink, IconUnlink, IconScissors, IconMinus, IconPlusCircle, IconMinusCircle, IconMaximize, IconMinimize, IconWrench, IconHeart, IconBookmarkCheck, IconCircle, IconBan, IconCancel, IconCheckDouble, IconFilePlus, IconFileCheck, IconFileUpload, IconFileDownload, IconImage, IconCrop, IconBold, IconItalic, IconUnderline, IconStrikethrough, IconFontSize, IconText, IconEraser, IconHash, IconListNumbered, IconListCheck, IconListPlus, IconListMinus, IconUserAdd, IconUserCheck, IconUserSearch, IconUserSettings, IconUserShield, IconAccountCircle, IconIdCard, IconLogout, IconKey, IconShield, IconShieldCheck, IconBadgeCheck, IconMail, IconPhone, IconPhoneCall, IconMessage, IconComment, IconSend, IconAtSign, IconBell, IconInbox, IconCart, IconShoppingBag, IconWallet, IconCoins, IconBanknote, IconReceipt, IconInvoice, IconCalculator, IconPercent, IconTag, IconGift, IconPointOfSale, IconBank, IconRupee, IconDollar, IconTruck, IconPackage, IconBoxes, IconArchive, IconWarehouse, IconBuilding, IconLocationPin, IconMap, IconRoute, IconBarcode, IconQrCode, IconScan, IconMonitor, IconSmartphone, IconTablet, IconCloud, IconCloudOff, IconCloudUpload, IconCloudDownload, IconWifiOff, IconPower, IconMoon, IconSun, IconPalette, IconDashboard, IconLayers, IconGrid, IconHistory, IconClockPlus, IconBriefcase, IconBook, IconClipboard, IconClipboardList, IconClipboardCheck, IconHierarchy, IconBranch, IconShapes, IconScale, IconLifeBuoy, IconAward, IconTarget, IconBarChart, IconSparkles, IconHandshake, } from './components/Icon';
|
|
11
|
+
export { chevronLeftIcon, chevronRightIcon, chevronUpIcon, chevronDownIcon, firstPageIcon, lastPageIcon, arrowLeftIcon, arrowUpIcon, arrowDownIcon, arrowToTopIcon, arrowToBottomIcon, openExternalIcon, expandAllIcon, collapseAllIcon, dragHandleIcon, moreVerticalIcon, moreHorizontalIcon, closeIcon, addIcon, deleteIcon, editIcon, copyIcon, copyRowIcon, saveIcon, shareIcon, printIcon, downloadIcon, exportIcon, resetIcon, searchIcon, checkIcon, playIcon, pauseIcon, bugIcon, settingsIcon, slidersIcon, filterIcon, filterOnlyIcon, filterAddIcon, filterExcludeIcon, filterRowIcon, sortIcon, columnsIcon, pivotIcon, openDetailIcon, groupByIcon, autoFitIcon, selectRowsIcon, viewsIcon, customizeIcon, layoutTableIcon, layoutCardsIcon, layoutSplitIcon, layoutListIcon, insightsIcon, boltIcon, clickIcon, pinIcon, pinOffIcon, starIcon, bookmarkIcon, bookmarkAddIcon, checkboxIcon, eyeIcon, eyeOffIcon, successIcon, warningIcon, errorIcon, spinnerIcon, fileIcon, fileTextIcon, fileSheetIcon, bracesIcon, codeIcon, globeIcon, databaseIcon, folderIcon, homeIcon, menuIcon, swapHorizontalIcon, uploadIcon, refreshIcon, alignLeftIcon, alignCenterIcon, alignRightIcon, lockIcon, unlockIcon, infoIcon, helpIcon, imageAddIcon, zoomInIcon, zoomOutIcon, rotateLeftIcon, rotateRightIcon, flipIcon, rulerIcon, handIcon, userIcon, usersIcon, calendarIcon, clockIcon, storeIcon, cardIcon, arrowRightIcon, arrowUpRightIcon, panelLeftIcon, panelRightIcon, undoIcon, redoIcon, repeatIcon, linkIcon, unlinkIcon, scissorsIcon, minusIcon, plusCircleIcon, minusCircleIcon, maximizeIcon, minimizeIcon, wrenchIcon, heartIcon, bookmarkCheckIcon, circleIcon, banIcon, cancelIcon, checkDoubleIcon, filePlusIcon, fileCheckIcon, fileUploadIcon, fileDownloadIcon, imageIcon, cropIcon, boldIcon, italicIcon, underlineIcon, strikethroughIcon, fontSizeIcon, textIcon, eraserIcon, hashIcon, listNumberedIcon, listCheckIcon, listPlusIcon, listMinusIcon, userAddIcon, userCheckIcon, userSearchIcon, userSettingsIcon, userShieldIcon, accountCircleIcon, idCardIcon, logoutIcon, keyIcon, shieldIcon, shieldCheckIcon, badgeCheckIcon, mailIcon, phoneIcon, phoneCallIcon, messageIcon, commentIcon, sendIcon, atSignIcon, bellIcon, inboxIcon, cartIcon, shoppingBagIcon, walletIcon, coinsIcon, banknoteIcon, receiptIcon, invoiceIcon, calculatorIcon, percentIcon, tagIcon, giftIcon, pointOfSaleIcon, bankIcon, rupeeIcon, dollarIcon, truckIcon, packageIcon, boxesIcon, archiveIcon, warehouseIcon, buildingIcon, locationPinIcon, mapIcon, routeIcon, barcodeIcon, qrCodeIcon, scanIcon, monitorIcon, smartphoneIcon, tabletIcon, cloudIcon, cloudOffIcon, cloudUploadIcon, cloudDownloadIcon, wifiOffIcon, powerIcon, moonIcon, sunIcon, paletteIcon, dashboardIcon, layersIcon, gridIcon, historyIcon, clockPlusIcon, briefcaseIcon, bookIcon, clipboardIcon, clipboardListIcon, clipboardCheckIcon, hierarchyIcon, branchIcon, shapesIcon, scaleIcon, lifeBuoyIcon, awardIcon, targetIcon, barChartIcon, sparklesIcon, handshakeIcon, } from './core/icons';
|
|
12
|
+
export type { IconDefinition, IconPart, IconShape, IconPathShape, IconCircleShape, IconEllipseShape, IconRectShape, IconLineShape, IconMotion, IconMotionKind, IconMotionStyle, IconMotionChoice, IconCategory, IconSize, IconSizeName, IconTone, IconAnimate, IconDefaults, IconBadge, IconWeight, IconVariant, } from './core/types';
|
|
8
13
|
export { FieldWrapper } from './components/FieldWrapper';
|
|
9
14
|
export type { FieldWrapperProps, FieldWidth, FieldLayout, FieldSize, } from './components/FieldWrapper';
|
|
10
15
|
export { FieldContext, FieldProvider, useFieldContext, useFieldSurface, useToggleSurface, useField, useFormKeyboard, } from './components/FieldContext';
|
|
@@ -24,6 +29,8 @@ export { Select, useSelect } from './components/Select';
|
|
|
24
29
|
export type { SelectProps, SelectOption, SelectSize, SelectLayout, SelectState, SelectEvent, SelectAccessibilityConfig, UseSelectReturn, UseSelectConfig, MultiSelectConfig, SearchConfig, SortConfig, ReorderConfig, GroupConfig, VirtualScrollConfig, KeyboardConfig, DropdownPosition, PositionConfig, EmptyStateConfig, LoadingConfig, ChipProps, GroupDisplayProps, OptionItemProps, AutoScrollState, DropdownDimensions, OptionValue, } from './components/Select';
|
|
25
30
|
export { DatePicker, Calendar } from './components/DatePicker';
|
|
26
31
|
export type { DatePickerProps, DatePickerBaseProps, DatePickerSingleProps, DatePickerRangeProps, DatePickerMode, DateRangeValue, DateDisplayFormat, DateTextOrder, CalendarProps, } from './components/DatePicker';
|
|
32
|
+
export { EventCalendar } from './components/EventCalendar';
|
|
33
|
+
export type { EventCalendarProps, EventCalendarRenderInfo, CalendarEvent, CalendarEventColor, CalendarDateInput, CalendarViewType, CalendarEventChange, } from './components/EventCalendar';
|
|
27
34
|
export { Suggest, SuggestionList, useSuggest } from './components/Suggest';
|
|
28
35
|
export { FORMATTER_UTILITY_CLASSES, SUGGEST_SEARCH_ENGINE_OPTIONS, SUGGEST_SEARCH_MODE_OPTIONS, } from './components/Suggest';
|
|
29
36
|
export type { SuggestProps, SuggestSize, SuggestLayout, SuggestSearchEngine, SuggestSearchMode, RenderKey, SuggestionConfig, SuggestionItemProps, SuggestionListProps, SuggestionGroup, UseSuggestOptions, UseSuggestReturn, SuggestSearchOptions, } from './components/Suggest';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcs-tech/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "React UI component library — fields, buttons, tooltips, tables and design tokens.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
],
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
-
"CHANGELOG.md"
|
|
12
|
+
"CHANGELOG.md",
|
|
13
|
+
"THIRD_PARTY_NOTICES.md"
|
|
13
14
|
],
|
|
14
15
|
"main": "./dist/index.js",
|
|
15
16
|
"types": "./dist/types/index.d.ts",
|
|
@@ -45,8 +46,7 @@
|
|
|
45
46
|
"exceljs": "^4.4.0",
|
|
46
47
|
"fuse.js": "^7.5.0",
|
|
47
48
|
"match-sorter": "^8.1.0",
|
|
48
|
-
"pdfmake": "^0.2.7"
|
|
49
|
-
"react-icons": "^5.7.0"
|
|
49
|
+
"pdfmake": "^0.2.7"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=18",
|