@als-tp/als-react-ts-ui 0.8.1 → 0.9.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/README.md +2 -2
- package/dist/als-react-ts-ui.js +13281 -12124
- package/dist/components/ALSCheckbox/ALSCheckbox.d.ts +1 -0
- package/dist/components/ALSCheckbox/ALSCheckbox.d.ts.map +1 -1
- package/dist/components/ALSItem/ALSItem.d.ts +131 -0
- package/dist/components/ALSItem/ALSItem.d.ts.map +1 -0
- package/dist/components/ALSItem/index.d.ts +12 -0
- package/dist/components/ALSItem/index.d.ts.map +1 -0
- package/dist/components/ALSPagination/ALSPagination.d.ts +101 -0
- package/dist/components/ALSPagination/ALSPagination.d.ts.map +1 -0
- package/dist/components/ALSPagination/index.d.ts +14 -0
- package/dist/components/ALSPagination/index.d.ts.map +1 -0
- package/dist/components/ALSPagination/util.d.ts +5 -0
- package/dist/components/ALSPagination/util.d.ts.map +1 -0
- package/dist/components/ALSSelect/ALSSelect.d.ts.map +1 -1
- package/dist/components/ALSTable/ALSTable.d.ts +168 -0
- package/dist/components/ALSTable/ALSTable.d.ts.map +1 -0
- package/dist/components/ALSTable/index.d.ts +17 -0
- package/dist/components/ALSTable/index.d.ts.map +1 -0
- package/dist/components/ALSTabs/ALSTabs.d.ts +64 -8
- package/dist/components/ALSTabs/ALSTabs.d.ts.map +1 -1
- package/dist/components/ALSTabs/index.d.ts +7 -1
- package/dist/components/ALSTabs/index.d.ts.map +1 -1
- package/dist/components/ALSTree/ALSTree.d.ts +37 -0
- package/dist/components/ALSTree/ALSTree.d.ts.map +1 -0
- package/dist/components/ALSTree/index.d.ts +7 -0
- package/dist/components/ALSTree/index.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/logo.svg +59 -0
- package/package.json +2 -1
- package/dist/components/ALSTabs/components.d.ts +0 -63
- package/dist/components/ALSTabs/components.d.ts.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ALSTreeNode {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
children?: ALSTreeNode[];
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export type ALSTreeVariant = "default" | "rich" | "minimal";
|
|
10
|
+
export type ALSTreeSize = "sm" | "md" | "lg";
|
|
11
|
+
export interface ALSTreeRootProps {
|
|
12
|
+
variant?: ALSTreeVariant;
|
|
13
|
+
size?: ALSTreeSize;
|
|
14
|
+
defaultExpandedItems?: string[];
|
|
15
|
+
expandedItems?: string[];
|
|
16
|
+
onExpandedItemsChange?: (expandedItems: string[]) => void;
|
|
17
|
+
defaultSelectedItems?: string | string[];
|
|
18
|
+
selectedItems?: string | string[];
|
|
19
|
+
onSelectedItemsChange?: (selectedItems: string | string[]) => void;
|
|
20
|
+
multiSelect?: boolean;
|
|
21
|
+
disableSelection?: boolean;
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export interface ALSTreeItemProps {
|
|
27
|
+
itemId: string;
|
|
28
|
+
label: string | React.ReactNode;
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
className?: string;
|
|
32
|
+
style?: React.CSSProperties;
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare const ALSTreeRoot: React.ForwardRefExoticComponent<ALSTreeRootProps & React.RefAttributes<HTMLUListElement>>;
|
|
36
|
+
export declare const ALSTreeItem: React.ForwardRefExoticComponent<ALSTreeItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
37
|
+
//# sourceMappingURL=ALSTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ALSTree.d.ts","sourceRoot":"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I,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AA2BD,eAAO,MAAM,WAAW,2FAwIvB,CAAC;AAKF,eAAO,MAAM,WAAW,wFAiGvB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ALSTreeRootProps, ALSTreeItemProps, ALSTreeNode, ALSTreeVariant, ALSTreeSize } from "./ALSTree";
|
|
2
|
+
export declare const ALSTree: {
|
|
3
|
+
Root: import("react").ForwardRefExoticComponent<ALSTreeRootProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
4
|
+
Item: import("react").ForwardRefExoticComponent<ALSTreeItemProps & import("react").RefAttributes<HTMLLIElement>>;
|
|
5
|
+
};
|
|
6
|
+
export type { ALSTreeRootProps, ALSTreeItemProps, ALSTreeNode, ALSTreeVariant, ALSTreeSize, };
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSTree/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,WAAW,EACd,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAEF,YAAY,EACR,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,WAAW,GACd,CAAC"}
|