@als-tp/als-react-ts-ui 0.6.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.
Files changed (50) hide show
  1. package/README.md +2 -2
  2. package/dist/aicomponents/ALSAIActions/ALSAIActions.d.ts +44 -0
  3. package/dist/aicomponents/ALSAIActions/ALSAIActions.d.ts.map +1 -0
  4. package/dist/aicomponents/ALSAIActions/index.d.ts +7 -0
  5. package/dist/aicomponents/ALSAIActions/index.d.ts.map +1 -0
  6. package/dist/aicomponents/ALSAIReasoning/ALSAIReasoning.d.ts +27 -0
  7. package/dist/aicomponents/ALSAIReasoning/ALSAIReasoning.d.ts.map +1 -0
  8. package/dist/aicomponents/ALSAIReasoning/index.d.ts +8 -0
  9. package/dist/aicomponents/ALSAIReasoning/index.d.ts.map +1 -0
  10. package/dist/aicomponents/ALSAISources/ALSAISources.d.ts +141 -0
  11. package/dist/aicomponents/ALSAISources/ALSAISources.d.ts.map +1 -0
  12. package/dist/aicomponents/ALSAISources/index.d.ts +39 -0
  13. package/dist/aicomponents/ALSAISources/index.d.ts.map +1 -0
  14. package/dist/als-react-ts-ui.js +14307 -12584
  15. package/dist/components/ALSCheckbox/ALSCheckbox.d.ts +1 -0
  16. package/dist/components/ALSCheckbox/ALSCheckbox.d.ts.map +1 -1
  17. package/dist/components/ALSFileitem/ALSFileitem.d.ts +39 -0
  18. package/dist/components/ALSFileitem/ALSFileitem.d.ts.map +1 -0
  19. package/dist/components/ALSFileitem/index.d.ts +5 -0
  20. package/dist/components/ALSFileitem/index.d.ts.map +1 -0
  21. package/dist/components/ALSItem/ALSItem.d.ts +131 -0
  22. package/dist/components/ALSItem/ALSItem.d.ts.map +1 -0
  23. package/dist/components/ALSItem/index.d.ts +12 -0
  24. package/dist/components/ALSItem/index.d.ts.map +1 -0
  25. package/dist/components/ALSPagination/ALSPagination.d.ts +101 -0
  26. package/dist/components/ALSPagination/ALSPagination.d.ts.map +1 -0
  27. package/dist/components/ALSPagination/index.d.ts +14 -0
  28. package/dist/components/ALSPagination/index.d.ts.map +1 -0
  29. package/dist/components/ALSPagination/util.d.ts +5 -0
  30. package/dist/components/ALSPagination/util.d.ts.map +1 -0
  31. package/dist/components/ALSSelect/ALSSelect.d.ts.map +1 -1
  32. package/dist/components/ALSTable/ALSTable.d.ts +168 -0
  33. package/dist/components/ALSTable/ALSTable.d.ts.map +1 -0
  34. package/dist/components/ALSTable/index.d.ts +17 -0
  35. package/dist/components/ALSTable/index.d.ts.map +1 -0
  36. package/dist/components/ALSTabs/ALSTabs.d.ts +64 -8
  37. package/dist/components/ALSTabs/ALSTabs.d.ts.map +1 -1
  38. package/dist/components/ALSTabs/index.d.ts +7 -1
  39. package/dist/components/ALSTabs/index.d.ts.map +1 -1
  40. package/dist/components/ALSTree/ALSTree.d.ts +37 -0
  41. package/dist/components/ALSTree/ALSTree.d.ts.map +1 -0
  42. package/dist/components/ALSTree/index.d.ts +7 -0
  43. package/dist/components/ALSTree/index.d.ts.map +1 -0
  44. package/dist/index.css +1 -1
  45. package/dist/index.d.ts +7 -0
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/logo.svg +59 -0
  48. package/package.json +2 -1
  49. package/dist/components/ALSTabs/components.d.ts +0 -63
  50. package/dist/components/ALSTabs/components.d.ts.map +0 -1
@@ -1,9 +1,65 @@
1
- export declare const ALSTabs: {
2
- Root: import("react").ForwardRefExoticComponent<import("./components").ALSTabsRootProps & import("react").RefAttributes<HTMLDivElement>>;
3
- List: import("react").ForwardRefExoticComponent<import("./components").ALSTabsListProps & import("react").RefAttributes<HTMLDivElement>>;
4
- Tab: import("react").ForwardRefExoticComponent<import("./components").ALSTabsTabProps & import("react").RefAttributes<HTMLButtonElement>>;
5
- Indicator: import("react").ForwardRefExoticComponent<import("./components").ALSTabsIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
6
- Panel: import("react").ForwardRefExoticComponent<import("./components").ALSTabsPanelProps & import("react").RefAttributes<HTMLDivElement>>;
7
- };
8
- export type { ALSTabsRootProps, ALSTabsListProps, ALSTabsTabProps, ALSTabsIndicatorProps, ALSTabsPanelProps, TabsOrientation, TabsSize, } from "./components";
1
+ import React from "react";
2
+ type TabsOrientation = "horizontal" | "vertical";
3
+ type TabsSize = "sm" | "md" | "lg";
4
+ interface ALSTabsRootProps {
5
+ /** The value of the currently active Tab (controlled) */
6
+ value?: number | string;
7
+ /** Default value (uncontrolled) */
8
+ defaultValue?: number | string;
9
+ /** Callback when tab value changes */
10
+ onValueChange?: (value: number | string) => void;
11
+ /** Component orientation (layout flow direction) */
12
+ orientation?: TabsOrientation;
13
+ /** Size variant */
14
+ size?: TabsSize;
15
+ /** Additional class name */
16
+ className?: string;
17
+ /** Children */
18
+ children: React.ReactNode;
19
+ /** List layout variant */
20
+ listLayout?: "default" | "full";
21
+ }
22
+ declare const ALSTabsRoot: React.ForwardRefExoticComponent<ALSTabsRootProps & React.RefAttributes<HTMLDivElement>>;
23
+ interface ALSTabsListProps {
24
+ /** Whether to automatically change active tab on arrow key focus */
25
+ activateOnFocus?: boolean;
26
+ /** Whether to loop keyboard focus back to first item */
27
+ loopFocus?: boolean;
28
+ /** Additional class name */
29
+ className?: string;
30
+ /** Children */
31
+ children: React.ReactNode;
32
+ }
33
+ declare const ALSTabsList: React.ForwardRefExoticComponent<ALSTabsListProps & React.RefAttributes<HTMLDivElement>>;
34
+ interface ALSTabsTabProps {
35
+ /** The value of the Tab */
36
+ value?: number | string;
37
+ /** Whether the tab is disabled */
38
+ disabled?: boolean;
39
+ /** Additional class name */
40
+ className?: string;
41
+ /** Children */
42
+ children: React.ReactNode;
43
+ }
44
+ declare const ALSTabsTab: React.ForwardRefExoticComponent<ALSTabsTabProps & React.RefAttributes<HTMLButtonElement>>;
45
+ interface ALSTabsIndicatorProps {
46
+ /** Additional class name */
47
+ className?: string;
48
+ /** Whether to render before hydration */
49
+ renderBeforeHydration?: boolean;
50
+ }
51
+ declare const ALSTabsIndicator: React.ForwardRefExoticComponent<ALSTabsIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
52
+ interface ALSTabsPanelProps {
53
+ /** The value of the TabPanel */
54
+ value?: number | string;
55
+ /** Whether to keep the HTML element in DOM while hidden */
56
+ keepMounted?: boolean;
57
+ /** Additional class name */
58
+ className?: string;
59
+ /** Children */
60
+ children: React.ReactNode;
61
+ }
62
+ declare const ALSTabsPanel: React.ForwardRefExoticComponent<ALSTabsPanelProps & React.RefAttributes<HTMLDivElement>>;
63
+ export { ALSTabsRoot, ALSTabsList, ALSTabsTab, ALSTabsIndicator, ALSTabsPanel };
64
+ export type { ALSTabsRootProps, ALSTabsListProps, ALSTabsTabProps, ALSTabsIndicatorProps, ALSTabsPanelProps, TabsOrientation, TabsSize, };
9
65
  //# sourceMappingURL=ALSTabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ALSTabs.d.ts","sourceRoot":"","sources":["../../../src/components/ALSTabs/ALSTabs.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAGF,YAAY,EACR,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,QAAQ,GACX,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"ALSTabs.d.ts","sourceRoot":"","sources":["../../../src/components/ALSTabs/ALSTabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAQrE,KAAK,eAAe,GAAG,YAAY,GAAG,UAAU,CAAC;AACjD,KAAK,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAsBnC,UAAU,gBAAgB;IACtB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,sCAAsC;IACtC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM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5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,YAAY,0FAiBjB,CAAC;AAQF,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC;AAMhF,YAAY,EACR,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,QAAQ,GACX,CAAC"}
@@ -1,3 +1,9 @@
1
- export { ALSTabs } from "./ALSTabs";
1
+ export declare const ALSTabs: {
2
+ Root: import("react").ForwardRefExoticComponent<import("./ALSTabs").ALSTabsRootProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ List: import("react").ForwardRefExoticComponent<import("./ALSTabs").ALSTabsListProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ Tab: import("react").ForwardRefExoticComponent<import("./ALSTabs").ALSTabsTabProps & import("react").RefAttributes<HTMLButtonElement>>;
5
+ Indicator: import("react").ForwardRefExoticComponent<import("./ALSTabs").ALSTabsIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
6
+ Panel: import("react").ForwardRefExoticComponent<import("./ALSTabs").ALSTabsPanelProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ };
2
8
  export type { ALSTabsRootProps, ALSTabsListProps, ALSTabsTabProps, ALSTabsIndicatorProps, ALSTabsPanelProps, TabsOrientation, TabsSize, } from "./ALSTabs";
3
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSTabs/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACR,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,QAAQ,GACX,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSTabs/index.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO;;;;;;CAMnB,CAAC;AAGF,YAAY,EACR,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,QAAQ,GACX,MAAM,WAAW,CAAC"}
@@ -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":"","sources":["../../../src/components/ALSTree/ALSTree.tsx"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AAC;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"}