@flux-ui/types 3.0.0-next.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/src/form.ts ADDED
@@ -0,0 +1,24 @@
1
+ import type { FluxIconName } from './common';
2
+
3
+ export type FluxFormSelectGroup = {
4
+ readonly icon?: FluxIconName;
5
+ readonly label: string;
6
+ };
7
+
8
+ export type FluxFormSelectOption = {
9
+ readonly badge?: string;
10
+ readonly command?: string;
11
+ readonly commandIcon?: FluxIconName;
12
+ readonly icon?: FluxIconName;
13
+ readonly label: string;
14
+ readonly selectable?: boolean;
15
+ readonly value: string | number | null;
16
+ };
17
+
18
+ export type FluxFormSelectEntry =
19
+ | FluxFormSelectGroup
20
+ | FluxFormSelectOption;
21
+
22
+ export type FluxFormSelectOptions = [FluxFormSelectEntry | null, FluxFormSelectOption[]];
23
+ export type FluxFormSelectValue = FluxFormSelectValueSingle | FluxFormSelectValueSingle[];
24
+ export type FluxFormSelectValueSingle = string | number | null;
package/src/index.ts ADDED
@@ -0,0 +1,58 @@
1
+ export type {
2
+ FluxAutoCompleteType,
3
+ FluxColor,
4
+ FluxDirection,
5
+ FluxFontAwesomeIconName,
6
+ FluxIconName,
7
+ FluxInputMask,
8
+ FluxInputType,
9
+ FluxMaterialIconName,
10
+ FluxMaybePromise,
11
+ FluxPressableType,
12
+ FluxSize,
13
+ FluxTo
14
+ } from './common';
15
+
16
+ export type {
17
+ FluxButtonEmits,
18
+ FluxButtonProps,
19
+ FluxButtonSize,
20
+ FluxButtonSlots,
21
+ FluxFocalPointObject,
22
+ FluxLegendObject,
23
+ FluxPercentageBarItemObject,
24
+ FluxSegmentedControlItemObject
25
+ } from './components';
26
+
27
+ export type {
28
+ FluxFilterBase,
29
+ FluxFilterDateEntry,
30
+ FluxFilterDateRangeEntry,
31
+ FluxFilterItem,
32
+ FluxFilterOptionEntry,
33
+ FluxFilterOptionHeader,
34
+ FluxFilterOptionItem,
35
+ FluxFilterOptionRow,
36
+ FluxFilterOptionsEntry,
37
+ FluxFilterRangeEntry,
38
+ FluxFilterState,
39
+ FluxFilterValue,
40
+ FluxFilterValueSingle
41
+ } from './filter';
42
+
43
+ export type {
44
+ FluxFormSelectEntry,
45
+ FluxFormSelectGroup,
46
+ FluxFormSelectOption,
47
+ FluxFormSelectOptions,
48
+ FluxFormSelectValue,
49
+ FluxFormSelectValueSingle
50
+ } from './form';
51
+
52
+ export type {
53
+ FluxAlertObject,
54
+ FluxConfirmObject,
55
+ FluxPromptObject,
56
+ FluxSnackbarObject,
57
+ FluxTooltipObject
58
+ } from './notify';