@flux-ui/types 3.0.0-next.31 → 3.0.0-next.32
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/package.json +1 -1
- package/src/components.ts +7 -0
- package/src/form.ts +11 -0
- package/src/index.ts +6 -2
package/package.json
CHANGED
package/src/components.ts
CHANGED
|
@@ -53,3 +53,10 @@ export type FluxSegmentedControlItemObject = {
|
|
|
53
53
|
readonly icon?: FluxIconName;
|
|
54
54
|
readonly label?: string;
|
|
55
55
|
};
|
|
56
|
+
|
|
57
|
+
export type FluxTreeViewOption = {
|
|
58
|
+
readonly id: string | number;
|
|
59
|
+
readonly label: string;
|
|
60
|
+
readonly icon?: FluxIconName;
|
|
61
|
+
readonly children?: FluxTreeViewOption[];
|
|
62
|
+
};
|
package/src/form.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { FluxIconName } from './common';
|
|
2
2
|
|
|
3
|
+
export type FluxFormTreeViewSelectOption = {
|
|
4
|
+
readonly id: string | number;
|
|
5
|
+
readonly label: string;
|
|
6
|
+
readonly icon?: FluxIconName;
|
|
7
|
+
readonly selectable?: boolean;
|
|
8
|
+
readonly children?: FluxFormTreeViewSelectOption[];
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type FluxFormTreeViewSelectValue = FluxFormTreeViewSelectValueSingle | FluxFormTreeViewSelectValueSingle[];
|
|
12
|
+
export type FluxFormTreeViewSelectValueSingle = string | number;
|
|
13
|
+
|
|
3
14
|
export type FluxFormSelectGroup = {
|
|
4
15
|
readonly icon?: FluxIconName;
|
|
5
16
|
readonly label: string;
|
package/src/index.ts
CHANGED
|
@@ -20,7 +20,8 @@ export type {
|
|
|
20
20
|
FluxFocalPointObject,
|
|
21
21
|
FluxLegendObject,
|
|
22
22
|
FluxPercentageBarItemObject,
|
|
23
|
-
FluxSegmentedControlItemObject
|
|
23
|
+
FluxSegmentedControlItemObject,
|
|
24
|
+
FluxTreeViewOption
|
|
24
25
|
} from './components';
|
|
25
26
|
|
|
26
27
|
export type {
|
|
@@ -45,7 +46,10 @@ export type {
|
|
|
45
46
|
FluxFormSelectOption,
|
|
46
47
|
FluxFormSelectOptions,
|
|
47
48
|
FluxFormSelectValue,
|
|
48
|
-
FluxFormSelectValueSingle
|
|
49
|
+
FluxFormSelectValueSingle,
|
|
50
|
+
FluxFormTreeViewSelectOption,
|
|
51
|
+
FluxFormTreeViewSelectValue,
|
|
52
|
+
FluxFormTreeViewSelectValueSingle
|
|
49
53
|
} from './form';
|
|
50
54
|
|
|
51
55
|
export type {
|