onekijs-ui 0.15.3 → 0.15.5

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 (243) hide show
  1. package/dist/components/accordion/typings.d.ts +11 -1
  2. package/dist/components/button/typings.d.ts +2 -2
  3. package/dist/components/dashboard/hooks/useDashboardPanel.d.ts +4 -0
  4. package/dist/components/dashboard/typings.d.ts +3 -1
  5. package/dist/components/icon/CloseIcon.d.ts +4 -0
  6. package/dist/components/icon/DebugIcon.d.ts +4 -0
  7. package/dist/components/icon/ErrorIcon.d.ts +4 -0
  8. package/dist/components/icon/FilterIcon.d.ts +4 -0
  9. package/dist/components/icon/InfoIcon.d.ts +4 -0
  10. package/dist/components/icon/SuccessIcon.d.ts +4 -0
  11. package/dist/components/icon/WarningIcon.d.ts +4 -0
  12. package/dist/components/list/DropdownList.d.ts +6 -0
  13. package/dist/components/list/components/ArrayListComponent.d.ts +3 -3
  14. package/dist/components/list/components/CollectionListComponent.d.ts +3 -3
  15. package/dist/components/list/components/ListBodyComponent.d.ts +3 -3
  16. package/dist/components/list/components/ListComponent.d.ts +7 -4
  17. package/dist/components/list/components/ListItemComponent.d.ts +8 -6
  18. package/dist/components/list/components/StandardListComponent.d.ts +3 -3
  19. package/dist/components/list/components/VirtualListComponent.d.ts +3 -3
  20. package/dist/components/list/hooks/useListController.d.ts +1 -1
  21. package/dist/components/list/hooks/useListView.d.ts +2 -0
  22. package/dist/components/list/index.d.ts +5 -2
  23. package/dist/components/list/typings.d.ts +5 -2
  24. package/dist/components/notifications/components/NotificationComponent.d.ts +4 -0
  25. package/dist/components/notifications/components/NotificationsComponent.d.ts +4 -0
  26. package/dist/components/notifications/index.d.ts +3 -0
  27. package/dist/components/notifications/style.d.ts +3 -0
  28. package/dist/components/notifications/typings.d.ts +17 -0
  29. package/dist/components/resizer/typings.d.ts +2 -0
  30. package/dist/components/select/FormSelect.d.ts +7 -4
  31. package/dist/components/select/SelectService.d.ts +9 -9
  32. package/dist/components/select/TreeSelect.d.ts +6 -0
  33. package/dist/components/select/TreeSelectService.d.ts +8 -0
  34. package/dist/components/select/components/ArraySelectComponent.d.ts +3 -3
  35. package/dist/components/select/components/ArrayTreeSelectComponent.d.ts +4 -0
  36. package/dist/components/select/components/ControlledSelectComponent.d.ts +4 -0
  37. package/dist/components/select/components/ControlledTreeSelectComponent.d.ts +6 -0
  38. package/dist/components/select/components/SelectComponent.d.ts +7 -4
  39. package/dist/components/select/components/SelectInputComponent.d.ts +2 -3
  40. package/dist/components/select/components/SelectOptionComponent.d.ts +10 -7
  41. package/dist/components/select/components/SelectTokenComponent.d.ts +7 -4
  42. package/dist/components/select/components/SelectTokensComponent.d.ts +7 -4
  43. package/dist/components/select/components/TreeSelectComponent.d.ts +7 -0
  44. package/dist/components/select/components/TreeSelectOptionContent.d.ts +4 -0
  45. package/dist/components/select/hooks/useSelectController.d.ts +1 -1
  46. package/dist/components/select/hooks/useTreeSelectController.d.ts +6 -0
  47. package/dist/components/select/hooks/useTreeSelectService.d.ts +4 -0
  48. package/dist/components/select/index.d.ts +5 -2
  49. package/dist/components/select/typings.d.ts +25 -12
  50. package/dist/components/select/util.d.ts +4 -4
  51. package/dist/components/table/TableService.d.ts +8 -2
  52. package/dist/components/table/columns/checkboxColumn.d.ts +3 -0
  53. package/dist/components/table/columns/enumColumn.d.ts +3 -0
  54. package/dist/components/table/columns/inputColumn.d.ts +3 -0
  55. package/dist/components/table/columns/linkColumn.d.ts +3 -0
  56. package/dist/components/table/columns/numberColumn.d.ts +3 -0
  57. package/dist/components/table/columns/selectColumn.d.ts +4 -0
  58. package/dist/components/table/columns/textAreaColumn.d.ts +3 -0
  59. package/dist/components/table/columns/textColumn.d.ts +3 -0
  60. package/dist/components/table/components/cells/CheckboxCellComponent.d.ts +2 -2
  61. package/dist/components/table/components/cells/InputCellComponent.d.ts +2 -2
  62. package/dist/components/table/components/cells/SelectCellComponent.d.ts +2 -2
  63. package/dist/components/table/components/cells/TextareaCellComponent.d.ts +2 -2
  64. package/dist/components/table/components/filters/TableFilterOperatorComponent.d.ts +4 -0
  65. package/dist/components/table/components/filters/TableInputFilterComponent.d.ts +4 -2
  66. package/dist/components/table/components/filters/TableNumberFilterComponent.d.ts +4 -0
  67. package/dist/components/table/components/filters/TableSelectFilterComponent.d.ts +6 -0
  68. package/dist/components/table/components/filters/TableTextFilterComponent.d.ts +4 -0
  69. package/dist/components/table/hooks/useColumns.d.ts +3 -0
  70. package/dist/components/table/style.d.ts +2 -0
  71. package/dist/components/table/typings.d.ts +32 -12
  72. package/dist/components/table/util.d.ts +1 -1
  73. package/dist/components/timer/TimerService.d.ts +12 -0
  74. package/dist/components/timer/components/ControlledTimerComponent.d.ts +7 -0
  75. package/dist/components/timer/components/TimerComponent.d.ts +4 -0
  76. package/dist/components/timer/components/UncontrolledTimerComponent.d.ts +6 -0
  77. package/dist/components/timer/hooks/useTimerController.d.ts +3 -0
  78. package/dist/components/timer/index.d.ts +3 -0
  79. package/dist/components/timer/style.d.ts +3 -0
  80. package/dist/components/timer/typings.d.ts +22 -0
  81. package/dist/components/tree/TreeService.d.ts +14 -11
  82. package/dist/components/tree/components/ArrayTreeComponent.d.ts +3 -3
  83. package/dist/components/tree/components/ControllerTreeComponent.d.ts +6 -3
  84. package/dist/components/tree/components/TreeBodyComponent.d.ts +6 -3
  85. package/dist/components/tree/components/TreeComponent.d.ts +7 -4
  86. package/dist/components/tree/components/TreeItemComponent.d.ts +10 -6
  87. package/dist/components/tree/components/TreeListComponent.d.ts +3 -3
  88. package/dist/components/tree/components/VirtualTreeBodyComponent.d.ts +6 -3
  89. package/dist/components/tree/components/VirtualTreeListComponent.d.ts +3 -3
  90. package/dist/components/tree/hooks/useTreeController.d.ts +1 -1
  91. package/dist/components/tree/hooks/useTreeItemContext.d.ts +4 -0
  92. package/dist/components/tree/index.d.ts +5 -2
  93. package/dist/components/tree/typings.d.ts +14 -8
  94. package/dist/components/tree/util.d.ts +2 -1
  95. package/dist/components/wizard/typings.d.ts +1 -0
  96. package/dist/index.d.ts +36 -8
  97. package/dist/index.js +3440 -2250
  98. package/dist/index.js.map +1 -1
  99. package/dist/index.module.js +3399 -2237
  100. package/dist/index.module.js.map +1 -1
  101. package/dist/styles/interactivity.d.ts +2 -2
  102. package/dist/styles/typings.d.ts +5 -0
  103. package/dist/styles/typography.d.ts +1 -1
  104. package/dist/utils/event.d.ts +2 -2
  105. package/package.json +3 -3
  106. package/src/components/accordion/components/AccordionComponent.tsx +1 -0
  107. package/src/components/accordion/components/AccordionPanel.tsx +11 -6
  108. package/src/components/accordion/style.ts +2 -1
  109. package/src/components/accordion/typings.ts +11 -1
  110. package/src/components/button/SubmitButton.tsx +3 -4
  111. package/src/components/button/components/ButtonComponent.tsx +5 -3
  112. package/src/components/button/components/DropdownButtonComponent.tsx +3 -3
  113. package/src/components/button/style.ts +4 -1
  114. package/src/components/button/typings.ts +2 -2
  115. package/src/components/dashboard/DashboardService.ts +14 -0
  116. package/src/components/dashboard/components/DashboardBody.tsx +3 -2
  117. package/src/components/dashboard/components/DashboardContainer.tsx +2 -1
  118. package/src/components/dashboard/components/DashboardOverlay.tsx +1 -1
  119. package/src/components/dashboard/hoc/dashboardHorizontalPanel.tsx +8 -3
  120. package/src/components/dashboard/hoc/dashboardVerticalPanel.tsx +7 -2
  121. package/src/components/dashboard/hooks/useDashboard.tsx +6 -8
  122. package/src/components/dashboard/hooks/useDashboardPanel.ts +24 -0
  123. package/src/components/dashboard/typings.ts +3 -1
  124. package/src/components/icon/CloseIcon.tsx +34 -0
  125. package/src/components/icon/DebugIcon.tsx +35 -0
  126. package/src/components/icon/ErrorIcon.tsx +34 -0
  127. package/src/components/icon/FilterIcon.tsx +33 -0
  128. package/src/components/icon/InfoIcon.tsx +34 -0
  129. package/src/components/icon/LoadingIcon.tsx +2 -3
  130. package/src/components/icon/SuccessIcon.tsx +37 -0
  131. package/src/components/icon/WarningIcon.tsx +34 -0
  132. package/src/components/list/DropdownList.tsx +63 -0
  133. package/src/components/list/components/ArrayListComponent.tsx +4 -4
  134. package/src/components/list/components/CollectionListComponent.tsx +8 -4
  135. package/src/components/list/components/ListBodyComponent.tsx +5 -5
  136. package/src/components/list/components/ListComponent.tsx +4 -4
  137. package/src/components/list/components/ListItemComponent.tsx +12 -11
  138. package/src/components/list/components/StandardListComponent.tsx +4 -4
  139. package/src/components/list/components/VirtualListComponent.tsx +6 -5
  140. package/src/components/list/hooks/useListController.ts +9 -10
  141. package/src/components/list/hooks/useListView.tsx +12 -3
  142. package/src/components/list/index.tsx +1 -1
  143. package/src/components/list/typings.ts +5 -2
  144. package/src/components/notifications/components/NotificationComponent.tsx +67 -0
  145. package/src/components/notifications/components/NotificationsComponent.tsx +119 -0
  146. package/src/components/notifications/index.tsx +9 -0
  147. package/src/components/notifications/style.ts +96 -0
  148. package/src/components/notifications/typings.ts +19 -0
  149. package/src/components/resizer/components/ResizerComponent.tsx +5 -5
  150. package/src/components/resizer/components/ResizerHorizontalSplitter.tsx +1 -1
  151. package/src/components/resizer/typings.ts +2 -0
  152. package/src/components/select/FormSelect.tsx +6 -6
  153. package/src/components/select/SelectService.ts +21 -20
  154. package/src/components/select/TreeSelect.tsx +9 -0
  155. package/src/components/select/TreeSelectService.ts +22 -0
  156. package/src/components/select/components/ArraySelectComponent.tsx +9 -6
  157. package/src/components/select/components/ArrayTreeSelectComponent.tsx +16 -0
  158. package/src/components/select/components/{ControllerSelectComponent.tsx → ControlledSelectComponent.tsx} +151 -95
  159. package/src/components/select/components/ControlledTreeSelectComponent.tsx +76 -0
  160. package/src/components/select/components/SelectComponent.tsx +13 -6
  161. package/src/components/select/components/SelectInputComponent.tsx +217 -221
  162. package/src/components/select/components/SelectOptionComponent.tsx +11 -16
  163. package/src/components/select/components/SelectTokenComponent.tsx +9 -5
  164. package/src/components/select/components/SelectTokensComponent.tsx +8 -5
  165. package/src/components/select/components/TreeSelectComponent.tsx +26 -0
  166. package/src/components/select/components/TreeSelectOptionContent.tsx +14 -0
  167. package/src/components/select/hooks/useSelect.ts +0 -0
  168. package/src/components/select/hooks/useSelectController.ts +21 -4
  169. package/src/components/select/hooks/useTreeSelectController.ts +21 -0
  170. package/src/components/select/hooks/useTreeSelectService.ts +10 -0
  171. package/src/components/select/index.tsx +1 -1
  172. package/src/components/select/style.ts +2 -3
  173. package/src/components/select/typings.ts +52 -12
  174. package/src/components/select/util.ts +21 -8
  175. package/src/components/table/TableService.ts +33 -3
  176. package/src/components/table/columns/checkboxColumn.ts +23 -0
  177. package/src/components/table/columns/enumColumn.tsx +26 -0
  178. package/src/components/table/columns/inputColumn.ts +22 -0
  179. package/src/components/table/columns/linkColumn.ts +16 -0
  180. package/src/components/table/columns/numberColumn.ts +20 -0
  181. package/src/components/table/columns/selectColumn.ts +49 -0
  182. package/src/components/table/columns/textAreaColumn.ts +23 -0
  183. package/src/components/table/columns/textColumn.ts +23 -0
  184. package/src/components/table/components/ControllerTableComponent.tsx +22 -0
  185. package/src/components/table/components/TableBodyComponent.tsx +7 -2
  186. package/src/components/table/components/TableHeaderFilterComponent.tsx +4 -4
  187. package/src/components/table/components/cells/CheckboxCellComponent.tsx +2 -2
  188. package/src/components/table/components/cells/InputCellComponent.tsx +2 -2
  189. package/src/components/table/components/cells/SelectCellComponent.tsx +2 -2
  190. package/src/components/table/components/cells/TextareaCellComponent.tsx +2 -2
  191. package/src/components/table/components/filters/TableFilterOperatorComponent.tsx +129 -0
  192. package/src/components/table/components/filters/TableInputFilterComponent.tsx +37 -102
  193. package/src/components/table/components/filters/TableNumberFilterComponent.tsx +18 -0
  194. package/src/components/table/components/filters/TableSelectFilterComponent.tsx +83 -0
  195. package/src/components/table/components/filters/TableTextFilterComponent.tsx +20 -0
  196. package/src/components/table/hooks/useColumns.ts +9 -0
  197. package/src/components/table/style.ts +145 -38
  198. package/src/components/table/typings.ts +41 -16
  199. package/src/components/table/util.ts +13 -6
  200. package/src/components/timer/TimerService.ts +55 -0
  201. package/src/components/timer/components/ControlledTimerComponent.tsx +52 -0
  202. package/src/components/timer/components/TimerComponent.tsx +17 -0
  203. package/src/components/timer/components/UncontrolledTimerComponent.tsx +11 -0
  204. package/src/components/timer/hooks/useTimerController.ts +14 -0
  205. package/src/components/timer/index.tsx +9 -0
  206. package/src/components/timer/style.ts +56 -0
  207. package/src/components/timer/typings.ts +26 -0
  208. package/src/components/tree/TreeService.ts +125 -58
  209. package/src/components/tree/components/ArrayTreeComponent.tsx +4 -4
  210. package/src/components/tree/components/ControllerTreeComponent.tsx +25 -16
  211. package/src/components/tree/components/TreeBodyComponent.tsx +11 -3
  212. package/src/components/tree/components/TreeComponent.tsx +4 -4
  213. package/src/components/tree/components/TreeItemComponent.tsx +50 -28
  214. package/src/components/tree/components/TreeListComponent.tsx +40 -25
  215. package/src/components/tree/components/VirtualTreeBodyComponent.tsx +17 -6
  216. package/src/components/tree/components/VirtualTreeListComponent.tsx +71 -98
  217. package/src/components/tree/hooks/useTreeController.ts +10 -25
  218. package/src/components/tree/hooks/useTreeItemContext.ts +7 -0
  219. package/src/components/tree/index.tsx +1 -1
  220. package/src/components/tree/style.ts +4 -0
  221. package/src/components/tree/typings.ts +20 -12
  222. package/src/components/tree/util.ts +74 -17
  223. package/src/components/wizard/components/WizardModalComponent.tsx +1 -1
  224. package/src/components/wizard/style.ts +5 -5
  225. package/src/components/wizard/typings.ts +1 -0
  226. package/src/index.ts +46 -12
  227. package/src/styles/typings.ts +5 -0
  228. package/src/theme/base.tsx +10 -5
  229. package/src/utils/event.ts +23 -6
  230. package/dist/components/select/components/ControllerSelectComponent.d.ts +0 -4
  231. package/dist/components/select/hooks/useSelectConfig.d.ts +0 -4
  232. package/dist/components/table/columns/useCheckboxColumn.d.ts +0 -3
  233. package/dist/components/table/columns/useColumn.d.ts +0 -3
  234. package/dist/components/table/columns/useInputColumn.d.ts +0 -3
  235. package/dist/components/table/columns/useLinkColumn.d.ts +0 -3
  236. package/dist/components/table/columns/useSelectColumn.d.ts +0 -4
  237. package/dist/components/table/columns/useTextareaColumn.d.ts +0 -3
  238. package/src/components/table/columns/useCheckboxColumn.ts +0 -25
  239. package/src/components/table/columns/useColumn.ts +0 -23
  240. package/src/components/table/columns/useInputColumn.ts +0 -24
  241. package/src/components/table/columns/useLinkColumn.ts +0 -19
  242. package/src/components/table/columns/useSelectColumn.ts +0 -36
  243. package/src/components/table/columns/useTextareaColumn.ts +0 -24
@@ -3,11 +3,13 @@ export declare type AccordionPanelProps<T = string> = {
3
3
  initialActive?: boolean;
4
4
  title: T;
5
5
  Component?: FCC<AccordionPanelTitleProps<T>>;
6
+ link?: string;
6
7
  };
7
8
  export declare type AccordionPanelTitleProps<T = string> = {
8
9
  title: T;
9
10
  active: boolean;
10
11
  onClick: AnyFunction;
12
+ link?: string;
11
13
  };
12
14
  export declare type AccordionPanelState = {
13
15
  active: boolean;
@@ -23,7 +25,7 @@ export declare type AccordionProps = {
23
25
  /**
24
26
  * a flag to indicate if the border is visible or not
25
27
  *
26
- * @example test
28
+ * @example false
27
29
  * @defaultValue true
28
30
  */
29
31
  border?: boolean;
@@ -37,9 +39,17 @@ export declare type AccordionProps = {
37
39
  * @defaultValue 150
38
40
  */
39
41
  animate?: number;
42
+ /**
43
+ * push means that the height of the accordion panel is derived from the height of its content
44
+ * pushToBottom means that the height of the accordion panel is the remaining space given by the accordion's container after removing the space taken by the other accordion panel titles (do not work if multiActive is true)
45
+ *
46
+ * @defaultValue push
47
+ */
48
+ mode?: 'push' | 'pushToBottom';
40
49
  };
41
50
  export declare type AccordionState = {
42
51
  panels: AnonymousObject<AccordionPanelState>;
43
52
  multiActive?: boolean;
44
53
  animate: number;
54
+ mode?: 'push' | 'pushToBottom';
45
55
  };
@@ -14,6 +14,6 @@ export interface SubmitButtonProps extends ButtonProps {
14
14
  export interface DropDownButtonProps extends ButtonProps, DropdownProps {
15
15
  attachDropdownToBody?: boolean;
16
16
  listElement: ReactNode;
17
- onDrop: AnyFunction;
18
- onCollapse: AnyFunction;
17
+ onDrop?: AnyFunction;
18
+ onCollapse?: AnyFunction;
19
19
  }
@@ -0,0 +1,4 @@
1
+ import { DashboardBodyPanel, DashboardHorizontalArea, DashboardHorizontalPanel, DashboardVerticalArea, DashboardVerticalPanel } from '../typings';
2
+ export declare const useDashboardHorizontalPanel: (area: DashboardHorizontalArea) => DashboardHorizontalPanel | undefined;
3
+ export declare const useDashboardVerticalPanel: (area: DashboardVerticalArea) => DashboardVerticalPanel | undefined;
4
+ export declare const useDashoardBodyPanel: () => DashboardBodyPanel | undefined;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { StylableProps } from '../../styles/typings';
2
3
  export declare type DashboardArea = DashboardHorizontalArea | DashboardVerticalArea | 'body' | 'none';
3
4
  export declare type DashboardBodyComponentProps = {
4
5
  className?: string;
@@ -43,7 +44,7 @@ declare type DashboardHorizontalProps = {
43
44
  minHeight?: string | 0;
44
45
  };
45
46
  export declare type DashboardHorizontalPanelProps = DashboardSidePanelProps & DashboardHorizontalProps;
46
- export declare type DashboardProps = {
47
+ export declare type DashboardProps = StylableProps & {
47
48
  ContainerComponent?: React.FC<DashboardContainerProps>;
48
49
  OverlayComponent?: React.FC<DashboardOverlayProps>;
49
50
  };
@@ -64,6 +65,7 @@ export declare type DashboardSidePanelProps = {
64
65
  floatingMedium?: boolean;
65
66
  floatingLarge?: boolean;
66
67
  resizable?: boolean;
68
+ resizerGap?: number;
67
69
  };
68
70
  export declare type DashboardSize = 'small' | 'medium' | 'large';
69
71
  export declare type DashboardState = {
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './typings';
3
+ declare const _default: import("styled-components").StyledComponent<React.FC<IconProps>, any, {}, never>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './typings';
3
+ declare const _default: import("styled-components").StyledComponent<React.FC<IconProps>, any, {}, never>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './typings';
3
+ declare const _default: import("styled-components").StyledComponent<React.FC<IconProps>, any, {}, never>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './typings';
3
+ declare const _default: import("styled-components").StyledComponent<React.FC<IconProps>, any, {}, never>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './typings';
3
+ declare const _default: import("styled-components").StyledComponent<React.FC<IconProps>, any, {}, never>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './typings';
3
+ declare const _default: import("styled-components").StyledComponent<React.FC<IconProps>, any, {}, never>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IconProps } from './typings';
3
+ declare const _default: import("styled-components").StyledComponent<React.FC<IconProps>, any, {}, never>;
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ <T = any, I extends import("./typings").ListItem<T> = import("./typings").ListItem<T>>(props: import("./typings").ListProps<T, I, import("./typings").ListState<T, I>, import("./typings").ListCollection<T, I, import("./typings").ListState<T, I>>>): JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { ArrayListProps } from '../typings';
3
- declare const ArrayListComponent: FC<ArrayListProps>;
1
+ /// <reference types="react" />
2
+ import { ArrayListProps, ListItem } from '../typings';
3
+ declare const ArrayListComponent: <T = any, I extends ListItem<T> = ListItem<T>>(props: ArrayListProps<T, I>) => JSX.Element;
4
4
  export default ArrayListComponent;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { CollectionListProps } from '../typings';
3
- declare const CollectionListComponent: FC<CollectionListProps>;
1
+ /// <reference types="react" />
2
+ import { CollectionListProps, ListItem } from '../typings';
3
+ declare const CollectionListComponent: <T = any, I extends ListItem<T> = ListItem<T>>({ className, controller, height, ItemComponent, ItemLoadingComponent, ItemContentComponent, NotFoundComponent, itemHeight, preload, keyboardNavigable, increment, multiSelect, onItemActivate, onItemHighlight, onItemSelect, onItemDeactivate, onItemUnhighlight, onItemUnselect, paddingEnd, paddingStart, virtual, style, }: CollectionListProps<T, I, import("../typings").ListState<T, I>, import("../typings").ListCollection<T, I, import("../typings").ListState<T, I>>>) => JSX.Element;
4
4
  export default CollectionListComponent;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { ListBodyProps } from '../typings';
3
- declare const ListBodyComponent: React.FC<ListBodyProps<any, any>>;
1
+ /// <reference types="react" />
2
+ import { ListBodyProps, ListItem } from '../typings';
3
+ declare const ListBodyComponent: <T = any, I extends ListItem<T> = ListItem<T>>({ bodyRef, className, height, items, ItemComponent, ItemLoadingComponent, ItemContentComponent, NotFoundComponent, keyboardNavigable, ListComponent, multiSelect, onItemActivate, onItemDeactivate, onItemSelect, onItemUnselect, onItemHighlight, onItemUnhighlight, parentRef, scrollToIndex, service, state, style, totalSize, virtualItems, VirtualListComponent, LoadingComponent, }: ListBodyProps<T, I, import("../typings").ListState<T, I>, import("../typings").ListCollection<T, I, import("../typings").ListState<T, I>>>) => JSX.Element | null;
4
4
  export default ListBodyComponent;
@@ -1,4 +1,7 @@
1
- import React from 'react';
2
- import { ListProps } from '../typings';
3
- declare const ListComponent: React.FC<ListProps>;
4
- export default ListComponent;
1
+ /// <reference types="react" />
2
+ import { ListItem, ListProps } from '../typings';
3
+ declare const _default: {
4
+ <T = any, I extends ListItem<T> = ListItem<T>>(props: ListProps<T, I, import("../typings").ListState<T, I>, import("../typings").ListCollection<T, I, import("../typings").ListState<T, I>>>): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default _default;
@@ -1,6 +1,8 @@
1
- import { Item } from 'onekijs-framework';
2
- import { FC } from 'react';
3
- import { ListItemProps } from '../typings';
4
- export declare const ListItemContent: FC<ListItemProps<any, Item<any>>>;
5
- declare const ListItemComponent: FC<ListItemProps<any, Item<any>>>;
6
- export default ListItemComponent;
1
+ /// <reference types="react" />
2
+ import { ListItem, ListItemProps } from '../typings';
3
+ export declare const ListItemContent: <T = any, I extends ListItem<T> = ListItem<T>>({ item }: ListItemProps<T, I>) => JSX.Element;
4
+ declare const _default: {
5
+ <T = any, I extends ListItem<T> = ListItem<T>>(props: ListItemProps<T, I>): JSX.Element;
6
+ displayName: string;
7
+ };
8
+ export default _default;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { StandardListProps } from '../typings';
3
- declare const StandardListComponent: React.FC<StandardListProps<any, any>>;
1
+ /// <reference types="react" />
2
+ import { ListItem, StandardListProps } from '../typings';
3
+ declare const StandardListComponent: <T = any, I extends ListItem<T> = ListItem<T>>({ items, ItemComponent, ItemLoadingComponent, ItemContentComponent, onItemClick, onItemMouseEnter, onItemMouseLeave, }: StandardListProps<T, I>) => JSX.Element;
4
4
  export default StandardListComponent;
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { VirtualListProps } from '../typings';
3
- declare const VirtualListComponent: React.FC<VirtualListProps<any, any>>;
1
+ /// <reference types="react" />
2
+ import { ListItem, VirtualListProps } from '../typings';
3
+ declare const VirtualListComponent: <T = any, I extends ListItem<T> = ListItem<T>>({ items, ItemComponent, ItemLoadingComponent, ItemContentComponent, onItemClick, onItemMouseEnter, onItemMouseLeave, virtualItems, }: VirtualListProps<T, I>) => JSX.Element;
4
4
  export default VirtualListComponent;
@@ -1,4 +1,4 @@
1
1
  import { CollectionProxy, CollectionService } from 'onekijs-framework';
2
2
  import { ListItem, ListState, UseListOptions } from '../typings';
3
- declare const useListController: <T = any>(dataSource: string | T[], options?: UseListOptions<T, ListItem<T>>) => CollectionProxy<T, ListItem<T>, ListState<T, ListItem<T>>, CollectionService<T, ListItem<T>, ListState<T, ListItem<T>>>>;
3
+ declare const useListController: <T = any, I extends ListItem<T> = ListItem<T>>(dataSource: string | T[], options?: UseListOptions<T, I>) => CollectionProxy<T, I, ListState<T, I>, CollectionService<T, I, ListState<T, I>>>;
4
4
  export default useListController;
@@ -6,6 +6,8 @@ declare const useListView: <T = any, I extends Item<T> = Item<T>>(props: Pick<Co
6
6
  controller: ListCollection<T, I>;
7
7
  scrollToFn?: (offset: number, defaultScrollToFn?: (offset: number) => void) => void;
8
8
  keyExtractor?: (index: number) => number | string;
9
+ paddingEnd?: number;
10
+ paddingStart?: number;
9
11
  }) => {
10
12
  isVirtual: boolean;
11
13
  items: (I | undefined)[];
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const List: import("styled-components").StyledComponent<import("react").FC<import("./typings").ListProps<any, import("./typings").ListItem<any>, import("./typings").ListState<any, import("./typings").ListItem<any>>, import("./typings").ListCollection<any, import("./typings").ListItem<any>, import("./typings").ListState<any, import("./typings").ListItem<any>>>>>, any, {}, never>;
3
- export default List;
2
+ declare const _default: {
3
+ <T = any, I extends import("./typings").ListItem<T> = import("./typings").ListItem<T>>(props: import("./typings").ListProps<T, I, import("./typings").ListState<T, I>, import("./typings").ListCollection<T, I, import("./typings").ListState<T, I>>>): JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default _default;
@@ -46,14 +46,15 @@ export interface ListItemProps<T = any, I extends ListItem<T> = ListItem<T>> {
46
46
  item: I;
47
47
  data: T;
48
48
  ItemContentComponent?: FC<ListItemProps<T, I>>;
49
- onClick?: ListItemHandler<T, I>;
49
+ onClick?: (item: I, index: number) => boolean | void;
50
50
  onMouseEnter?: ListItemHandler<T, I>;
51
51
  onMouseLeave?: ListItemHandler<T, I>;
52
+ className?: string;
52
53
  }
53
54
  export declare type ListItems<T = any, I extends ListItem<T> = ListItem<T>> = T[] | ListCollection<T, I>;
54
55
  export declare type ListConfig<T = any, I extends ListItem<T> = ListItem<T>> = {
55
56
  className?: string;
56
- height?: number | string;
57
+ height?: string | number;
57
58
  increment?: number;
58
59
  ItemLoadingComponent?: FC;
59
60
  ItemComponent?: FC<ListItemProps<T, I>>;
@@ -69,6 +70,8 @@ export declare type ListConfig<T = any, I extends ListItem<T> = ListItem<T>> = {
69
70
  onItemUnhighlight?: ListItemHandler<T, I>;
70
71
  onItemSelect?: ListItemHandler<T, I>;
71
72
  onItemUnselect?: ListItemHandler<T, I>;
73
+ paddingEnd?: number;
74
+ paddingStart?: number;
72
75
  overscan?: number;
73
76
  preload?: number;
74
77
  style?: React.CSSProperties;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { NotificationProps } from '../typings';
3
+ declare const NotificationComponent: React.FC<NotificationProps>;
4
+ export default NotificationComponent;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { NotificationsProps } from '../typings';
3
+ declare const NotificationsComponent: React.FC<NotificationsProps>;
4
+ export default NotificationsComponent;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Notifications: import("styled-components").StyledComponent<import("react").FC<import("./typings").NotificationsProps>, any, {}, never>;
3
+ export default Notifications;
@@ -0,0 +1,3 @@
1
+ import { ComponentStyle } from '../../styles/typings';
2
+ import { NotificationsProps } from './typings';
3
+ export declare const notifcationsStyle: ComponentStyle<NotificationsProps>;
@@ -0,0 +1,17 @@
1
+ import { Notification } from 'onekijs-framework';
2
+ import { FC } from 'react';
3
+ export declare type NotificationsProps = {
4
+ animate?: number;
5
+ className?: string;
6
+ NotificationComponent?: FC<NotificationProps>;
7
+ max?: number;
8
+ position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
9
+ showTimer?: boolean;
10
+ topics?: string[];
11
+ };
12
+ export declare type NotificationProps = {
13
+ className?: string;
14
+ notification: Notification;
15
+ index: number;
16
+ showTimer?: boolean;
17
+ };
@@ -12,10 +12,12 @@ export interface ResizerProps {
12
12
  maxWidth?: string | 0;
13
13
  minHeight?: string | 0;
14
14
  maxHeight?: string | 0;
15
+ gap?: number;
15
16
  }
16
17
  export interface ResizeSplitterProps {
17
18
  onResize: ResizerHandler;
18
19
  target: React.RefObject<HTMLDivElement>;
20
+ gap: number;
19
21
  }
20
22
  export interface ResizeVerticalSplitterProps extends ResizeSplitterProps {
21
23
  handle: ResizerVerticalHandle;
@@ -1,4 +1,7 @@
1
- import { FC } from 'react';
2
- import { FormSelectProps } from './typings';
3
- declare const FormSelect: FC<FormSelectProps>;
4
- export default FormSelect;
1
+ /// <reference types="react" />
2
+ import { FormSelectProps, SelectItem } from './typings';
3
+ declare const _default: {
4
+ <T = any, I extends SelectItem<T> = SelectItem<T>>(props: FormSelectProps<T, I>): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default _default;
@@ -1,19 +1,19 @@
1
1
  import { AnonymousObject, CollectionFetcherResult, CollectionService, Query } from 'onekijs-framework';
2
- import { SelectConfig, SelectController, SelectItem, SelectState } from './typings';
3
- declare class SelectService<T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>> extends CollectionService<T, I, S> implements SelectController<T, I> {
2
+ import { SelectConfig, SelectItem, SelectState } from './typings';
3
+ declare class SelectService<T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>> extends CollectionService<T, I, S> {
4
4
  config: SelectConfig<T, I> | undefined;
5
5
  protected lastCheckQuery: Query | undefined;
6
6
  get defaultValue(): T | T[] | null | undefined;
7
- check(): Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, CollectionFetcherResult<T>>>, void, (I | undefined)[]>;
8
- setData(data: T[]): void;
9
- setDefaultValue(value: T | T[] | null | undefined): Generator<void | Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, CollectionFetcherResult<T>>>, void, (I | undefined)[]>, void, unknown>;
7
+ check(): Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<I[] | Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<I[] | Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>> | import("redux-saga/effects").CallEffect<void>, void, (I | undefined)[]>;
8
+ setData(data: T[], query?: Query): void;
9
+ setDefaultValue(value: T | T[] | null | undefined): Generator<void | Generator<void | import("redux-saga/effects").AllEffect<import("redux-saga/effects").CallEffect<Generator<I[] | Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>>> | import("redux-saga/effects").AllEffect<Generator<I[] | Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>> | import("redux-saga/effects").CallEffect<void>, void, (I | undefined)[]>, void, unknown>;
10
10
  setValue(value: null | T | T[]): void;
11
- setUrl(url: string): void;
12
- protected _buildItem(data: T | undefined, adaptee: unknown, context?: AnonymousObject): I;
13
- protected _filterItem(item: I | undefined, query: Query, valid: boolean): Generator<Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, CollectionFetcherResult<T>>;
11
+ setUrl(url: string, query?: Query): void;
12
+ _buildItem(data: T | undefined, adaptee: unknown, context?: AnonymousObject): I;
13
+ _filterItem(item: I | undefined, query: Query, valid: boolean): Generator<I[] | Generator<void | AnonymousObject<any>, CollectionFetcherResult<T>, (import("redux-saga").Task<any> | null) & CollectionFetcherResult<T> & (CollectionFetcherResult<T> | undefined)>, I | undefined, I[] & CollectionFetcherResult<T>>;
14
14
  _setDefaultValue(value: T | T[] | null | undefined): void;
15
15
  _setValidDefaultValue(value: T | T[] | null): void;
16
16
  _setInvalidItems(invalidItems: I[]): void;
17
- protected _setItems(items: (I | undefined)[]): void;
17
+ _setItems(items: (I | undefined)[]): void;
18
18
  }
19
19
  export default SelectService;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ <T = any, I extends import("./typings").TreeSelectItem<T> = import("./typings").TreeSelectItem<T>, S extends import("./typings").TreeSelectState<T, I> = import("./typings").TreeSelectState<T, I>, C extends import("./typings").TreeSelectController<T, I, S> = import("./typings").TreeSelectController<T, I, S>>(props: import("./typings").TreeSelectProps<T, I, S, C>): JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import TreeService from '../tree/TreeService';
2
+ import SelectService from './SelectService';
3
+ import { TreeSelectItem, TreeSelectState } from './typings';
4
+ declare class TreeSelectService<T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>> extends SelectService<T, I, S> {
5
+ }
6
+ interface TreeSelectService<T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>> extends TreeService<T, I, S> {
7
+ }
8
+ export default TreeSelectService;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
- import { ArraySelectProps } from '../typings';
3
- declare const ArraySelectComponent: FC<ArraySelectProps>;
1
+ /// <reference types="react" />
2
+ import { ArraySelectProps, SelectItem } from '../typings';
3
+ declare const ArraySelectComponent: <T = any, I extends SelectItem<T> = SelectItem<T>>(props: ArraySelectProps<T, I>) => JSX.Element;
4
4
  export default ArraySelectComponent;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ArrayTreeSelectProps, TreeSelectItem } from '../typings';
3
+ declare const ArrayTreeSelectComponent: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>>(props: ArrayTreeSelectProps<T, I>) => JSX.Element;
4
+ export default ArrayTreeSelectComponent;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ControllerSelectProps, SelectController, SelectItem, SelectState } from '../typings';
3
+ declare const ControlledSelectComponent: <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>({ attachDropdownToBody, className, placeholder, controller, InputComponent, IconComponent, OptionContentComponent, OptionComponent, OptionLoadingComponent, MultiOptionsComponent, NotFoundComponent, autoFocus, value, onChange, onBlur: forwardBlur, onFocus: forwardFocus, height, multiple, status, size, nullable, minChars, openOnFocus, searchable, dropdownWidthModifier, preload, increment, animationMs, disabled, defaultValue, required, sameWidth, overscan, clickable, ListComponent, }: ControllerSelectProps<T, I, S, C>) => JSX.Element;
4
+ export default ControlledSelectComponent;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ControllerTreeSelectProps, TreeSelectController, TreeSelectItem, TreeSelectState } from '../typings';
3
+ export declare const TreeSelectPropsContext: React.Context<ControllerTreeSelectProps<any, any, any, any>>;
4
+ export declare const useTreeSelectPropsContext: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>, C extends TreeSelectController<T, I, S> = TreeSelectController<T, I, S>>() => ControllerTreeSelectProps<T, I, S, C>;
5
+ declare const ControlledTreeSelectComponent: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>, C extends TreeSelectController<T, I, S> = TreeSelectController<T, I, S>>(props: ControllerTreeSelectProps<T, I, S, C>) => JSX.Element;
6
+ export default ControlledTreeSelectComponent;
@@ -1,4 +1,7 @@
1
- import React from 'react';
2
- import { SelectProps } from '../typings';
3
- declare const SelectComponent: React.FC<SelectProps>;
4
- export default SelectComponent;
1
+ /// <reference types="react" />
2
+ import { SelectController, SelectItem, SelectProps, SelectState } from '../typings';
3
+ declare const _default: {
4
+ <T = any, I extends SelectItem<T> = SelectItem<T>, S extends SelectState<T, I> = SelectState<T, I>, C extends SelectController<T, I, S> = SelectController<T, I, S>>(props: SelectProps<T, I, S, C>): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default _default;
@@ -1,4 +1,3 @@
1
1
  import React from 'react';
2
- import { SelectInputProps } from '../typings';
3
- declare const SelectInputComponent: React.ForwardRefExoticComponent<SelectInputProps<any, import("../typings").SelectItem<any>> & React.RefAttributes<HTMLDivElement>>;
4
- export default SelectInputComponent;
2
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<HTMLDivElement>>;
3
+ export default _default;
@@ -1,7 +1,10 @@
1
- import { FC } from 'react';
2
- import { SelectOptionProps } from '../typings';
3
- export declare const MultiSelectOptionComponent: FC<SelectOptionProps>;
4
- export declare const SelectOptionContent: FC<SelectOptionProps>;
5
- export declare const SelectOptionGroup: FC<SelectOptionProps>;
6
- declare const SelectOptionComponent: FC<SelectOptionProps>;
7
- export default SelectOptionComponent;
1
+ /// <reference types="react" />
2
+ import { ListItemProps } from '../../list/typings';
3
+ import { SelectItem } from '../typings';
4
+ export declare const SelectOptionContent: <T, I extends SelectItem<T> = SelectItem<T>>({ item }: ListItemProps<T, I>) => JSX.Element;
5
+ export declare const SelectOptionGroup: <T, I extends SelectItem<T> = SelectItem<T>>({ item }: ListItemProps<T, I>) => JSX.Element;
6
+ declare const _default: {
7
+ <T, I extends SelectItem<T> = SelectItem<T>>(props: ListItemProps<T, I>): JSX.Element | null;
8
+ displayName: string;
9
+ };
10
+ export default _default;
@@ -1,4 +1,7 @@
1
- import { FC } from 'react';
2
- import { SelectTokenProps } from '../typings';
3
- declare const SelectTokenComponent: FC<SelectTokenProps>;
4
- export default SelectTokenComponent;
1
+ /// <reference types="react" />
2
+ import { SelectItem, SelectTokenProps } from '../typings';
3
+ declare const _default: {
4
+ <T, I extends SelectItem<T> = SelectItem<T>>({ token, onRemove, index, }: SelectTokenProps<T, I>): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default _default;
@@ -1,4 +1,7 @@
1
- import { FC } from 'react';
2
- import { SelectTokensProps } from '../typings';
3
- declare const SelectTokensComponent: FC<SelectTokensProps>;
4
- export default SelectTokensComponent;
1
+ /// <reference types="react" />
2
+ import { SelectItem, SelectTokensProps } from '../typings';
3
+ declare const _default: {
4
+ <T, I extends SelectItem<T> = SelectItem<T>>({ tokens, onRemove, }: SelectTokensProps<T, I>): JSX.Element | null;
5
+ displayName: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { TreeSelectController, TreeSelectItem, TreeSelectProps, TreeSelectState } from '../typings';
3
+ declare const _default: {
4
+ <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>, S extends TreeSelectState<T, I> = TreeSelectState<T, I>, C extends TreeSelectController<T, I, S> = TreeSelectController<T, I, S>>(props: TreeSelectProps<T, I, S, C>): JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ListItemProps } from '../../list/typings';
3
+ import { TreeSelectItem } from '../typings';
4
+ export declare const TreeSelectOptionContent: <T, I extends TreeSelectItem<T> = TreeSelectItem<T>>(props: ListItemProps<T, I>) => JSX.Element;
@@ -2,5 +2,5 @@ import { CollectionProxy } from 'onekijs-framework';
2
2
  import { UseListOptions } from '../../list/typings';
3
3
  import SelectService from '../SelectService';
4
4
  import { SelectItem, SelectState } from '../typings';
5
- declare const useSelectController: <T = any, I extends SelectItem<T> = SelectItem<T>>(dataSource: string | T[] | undefined, options?: UseListOptions<T, I>) => CollectionProxy<T, I, SelectState<T, I>, SelectService<T, I, SelectState<T, I>>>;
5
+ declare const useSelectController: <T = any, I extends SelectItem<T> = SelectItem<T>>(dataSource: string | T[] | [T, string][] | undefined, options?: UseListOptions<T, I>) => CollectionProxy<T, I, SelectState<T, I>, SelectService<T, I, SelectState<T, I>>>;
6
6
  export default useSelectController;
@@ -0,0 +1,6 @@
1
+ import { CollectionProxy } from 'onekijs-framework';
2
+ import { UseTreeOptions } from '../../tree/typings';
3
+ import TreeSelectService from '../TreeSelectService';
4
+ import { TreeSelectItem, TreeSelectState } from '../typings';
5
+ declare const useTreeSelectController: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>>(dataSource: string | T[] | undefined, options?: UseTreeOptions<T, I>) => CollectionProxy<T, I, TreeSelectState<T, I>, TreeSelectService<T, I, TreeSelectState<T, I>>>;
6
+ export default useTreeSelectController;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { TreeSelectController, TreeSelectItem } from '../typings';
3
+ export declare const TreeSelectServiceContext: React.Context<TreeSelectController<any, any, import("../typings").TreeSelectState<any, any>>>;
4
+ export declare const useTreeSelectService: <T = any, I extends TreeSelectItem<T> = TreeSelectItem<T>>() => TreeSelectController<T, I, import("../typings").TreeSelectState<T, I>>;
@@ -1,3 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const Select: import("styled-components").StyledComponent<import("react").FC<import("./typings").SelectProps<any, import("./typings").SelectItem<any>, import("./typings").SelectState<any, import("./typings").SelectItem<any>>, import("./typings").SelectController<any, import("./typings").SelectItem<any>, import("./typings").SelectState<any, import("./typings").SelectItem<any>>>>>, any, {}, never>;
3
- export default Select;
2
+ declare const _default: {
3
+ <T = any, I extends import("./typings").SelectItem<T> = import("./typings").SelectItem<T>, S extends import("./typings").SelectState<T, I> = import("./typings").SelectState<T, I>, C extends import("./typings").SelectController<T, I, S> = import("./typings").SelectController<T, I, S>>(props: import("./typings").SelectProps<T, I, S, C>): JSX.Element;
4
+ displayName: string;
5
+ };
6
+ export default _default;