@gv-tech/ui-native 2.24.0 → 2.25.1
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/dist/calendar.d.ts +111 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/combobox.d.ts +17 -10
- package/dist/combobox.d.ts.map +1 -1
- package/dist/dialog.d.ts.map +1 -1
- package/dist/hooks/use-theme.d.ts +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/ui-native.cjs +2 -2
- package/dist/ui-native.esm.js +1081 -944
- package/package.json +2 -1
- package/src/calendar.tsx +52 -3
- package/src/combobox.tsx +190 -27
- package/src/dialog.tsx +72 -25
- package/src/theme-toggle.tsx +19 -16
package/dist/calendar.d.ts
CHANGED
|
@@ -1,4 +1,114 @@
|
|
|
1
1
|
import { CalendarBaseProps } from '@gv-tech/ui-core';
|
|
2
|
+
import { default as DateTimePicker } from '@react-native-community/datetimepicker';
|
|
3
|
+
import { View } from 'react-native';
|
|
2
4
|
import * as React from 'react';
|
|
3
|
-
export
|
|
5
|
+
export type CalendarProps = Omit<React.ComponentProps<typeof DateTimePicker>, 'value' | 'className' | 'display' | 'minuteInterval'> & CalendarBaseProps & {
|
|
6
|
+
value?: Date;
|
|
7
|
+
onChange?: (event: unknown, date?: Date) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const Calendar: React.ForwardRefExoticComponent<Omit<Readonly<Readonly<Omit<import('react-native').ViewProps, "children"> & {
|
|
10
|
+
value: Date;
|
|
11
|
+
onChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerEvent, date?: Date) => void;
|
|
12
|
+
onValueChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerChangeEvent, date: Date) => void;
|
|
13
|
+
onDismiss?: () => void;
|
|
14
|
+
onNeutralButtonPress?: () => void;
|
|
15
|
+
} & {
|
|
16
|
+
maximumDate?: Date;
|
|
17
|
+
minimumDate?: Date;
|
|
18
|
+
} & {
|
|
19
|
+
timeZoneName?: string;
|
|
20
|
+
}> & {
|
|
21
|
+
locale?: string;
|
|
22
|
+
minuteInterval?: 1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30;
|
|
23
|
+
mode?: "time" | "date" | "datetime" | "countdown";
|
|
24
|
+
timeZoneOffsetInMinutes?: number;
|
|
25
|
+
textColor?: string;
|
|
26
|
+
accentColor?: string;
|
|
27
|
+
themeVariant?: "dark" | "light";
|
|
28
|
+
display?: "default" | "compact" | "inline" | "spinner";
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
}> | Readonly<Readonly<Omit<import('react-native').ViewProps, "children"> & {
|
|
31
|
+
value: Date;
|
|
32
|
+
onChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerEvent, date?: Date) => void;
|
|
33
|
+
onValueChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerChangeEvent, date: Date) => void;
|
|
34
|
+
onDismiss?: () => void;
|
|
35
|
+
onNeutralButtonPress?: () => void;
|
|
36
|
+
} & {
|
|
37
|
+
maximumDate?: Date;
|
|
38
|
+
minimumDate?: Date;
|
|
39
|
+
} & {
|
|
40
|
+
timeZoneName?: string;
|
|
41
|
+
}> & {
|
|
42
|
+
value: Date;
|
|
43
|
+
onChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerEvent, date?: Date) => void;
|
|
44
|
+
onValueChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerChangeEvent, date: Date) => void;
|
|
45
|
+
onDismiss?: () => void;
|
|
46
|
+
onNeutralButtonPress?: () => void;
|
|
47
|
+
} & {
|
|
48
|
+
maximumDate?: Date;
|
|
49
|
+
minimumDate?: Date;
|
|
50
|
+
} & Readonly<{
|
|
51
|
+
value: Date;
|
|
52
|
+
onChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerEvent, date?: Date) => void;
|
|
53
|
+
onValueChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerChangeEvent, date: Date) => void;
|
|
54
|
+
onDismiss?: () => void;
|
|
55
|
+
onNeutralButtonPress?: () => void;
|
|
56
|
+
} & {
|
|
57
|
+
is24Hour?: boolean;
|
|
58
|
+
}> & {
|
|
59
|
+
mode?: "time" | "date";
|
|
60
|
+
display?: "default" | "spinner" | "clock" | "calendar";
|
|
61
|
+
minuteInterval?: 1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30;
|
|
62
|
+
positiveButton?: import('@react-native-community/datetimepicker').ButtonType;
|
|
63
|
+
neutralButton?: import('@react-native-community/datetimepicker').ButtonType;
|
|
64
|
+
negativeButton?: import('@react-native-community/datetimepicker').ButtonType;
|
|
65
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
66
|
+
onError?: (_arg: Error) => void;
|
|
67
|
+
initialInputMode?: "default" | "keyboard";
|
|
68
|
+
title?: string;
|
|
69
|
+
fullscreen?: boolean;
|
|
70
|
+
design?: "default" | "material";
|
|
71
|
+
startOnYearSelection?: boolean;
|
|
72
|
+
}> | Readonly<Readonly<Omit<import('react-native').ViewProps, "children"> & {
|
|
73
|
+
value: Date;
|
|
74
|
+
onChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerEvent, date?: Date) => void;
|
|
75
|
+
onValueChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerChangeEvent, date: Date) => void;
|
|
76
|
+
onDismiss?: () => void;
|
|
77
|
+
onNeutralButtonPress?: () => void;
|
|
78
|
+
} & {
|
|
79
|
+
maximumDate?: Date;
|
|
80
|
+
minimumDate?: Date;
|
|
81
|
+
} & {
|
|
82
|
+
timeZoneName?: string;
|
|
83
|
+
}> & {
|
|
84
|
+
value: Date;
|
|
85
|
+
onChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerEvent, date?: Date) => void;
|
|
86
|
+
onValueChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerChangeEvent, date: Date) => void;
|
|
87
|
+
onDismiss?: () => void;
|
|
88
|
+
onNeutralButtonPress?: () => void;
|
|
89
|
+
} & {
|
|
90
|
+
maximumDate?: Date;
|
|
91
|
+
minimumDate?: Date;
|
|
92
|
+
} & Readonly<{
|
|
93
|
+
value: Date;
|
|
94
|
+
onChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerEvent, date?: Date) => void;
|
|
95
|
+
onValueChange?: (event: import('@react-native-community/datetimepicker').DateTimePickerChangeEvent, date: Date) => void;
|
|
96
|
+
onDismiss?: () => void;
|
|
97
|
+
onNeutralButtonPress?: () => void;
|
|
98
|
+
} & {
|
|
99
|
+
is24Hour?: boolean;
|
|
100
|
+
}> & {
|
|
101
|
+
display?: "default" | "spinner" | "clock" | "calendar";
|
|
102
|
+
placeholderText?: string;
|
|
103
|
+
dateFormat?: "day month year" | "dayofweek day month" | "longdate" | "shortdate";
|
|
104
|
+
dayOfWeekFormat?: "{dayofweek.abbreviated(2)}" | "{dayofweek.abbreviated(3)}" | "{dayofweek.full}";
|
|
105
|
+
firstDayOfWeek?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
106
|
+
timeZoneOffsetInSeconds?: number;
|
|
107
|
+
is24Hour?: boolean;
|
|
108
|
+
minuteInterval?: number;
|
|
109
|
+
accessibilityLabel?: string;
|
|
110
|
+
}>, "className" | "value" | "display" | "minuteInterval"> & CalendarBaseProps & {
|
|
111
|
+
value?: Date;
|
|
112
|
+
onChange?: (event: unknown, date?: Date) => void;
|
|
113
|
+
} & React.RefAttributes<View>>;
|
|
4
114
|
//# sourceMappingURL=calendar.d.ts.map
|
package/dist/calendar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../src/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../src/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,cAAc,MAAM,wCAAwC,CAAC;AACpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGpC,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAC3C,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,gBAAgB,CACrD,GACC,iBAAiB,GAAG;IAClB,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;CAClD,CAAC;AAEJ,eAAO,MAAM,QAAQ;;iGA6BX,CAAN;;;;;;;;;;;;;;;;;;;;;iGAAM,CAAN;;;;;;;;;;;iGAAM,CAAN;;;;;;;;;iGAAM,CAAN;;;;;;;;;;;;;;;;;;;;;;iGAAM,CAAN;;;;;;;;;;;iGAAM,CAAN;;;;;;;;;iGAAM,CAAN;;;;;;;;;;;;;;;;;YAjCQ,IAAI;eACD,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI;8BAyCnD,CAAC"}
|
package/dist/combobox.d.ts
CHANGED
|
@@ -1,22 +1,29 @@
|
|
|
1
1
|
import { ComboboxChipBaseProps, ComboboxChipsBaseProps, ComboboxChipsInputBaseProps, ComboboxClearBaseProps, ComboboxCollectionBaseProps, ComboboxContentBaseProps, ComboboxEmptyBaseProps, ComboboxGroupBaseProps, ComboboxInputBaseProps, ComboboxItemBaseProps, ComboboxLabelBaseProps, ComboboxListBaseProps, ComboboxSeparatorBaseProps, ComboboxTriggerBaseProps, ComboboxValueBaseProps } from '@gv-tech/ui-core';
|
|
2
|
-
import { View } from 'react-native';
|
|
2
|
+
import { Pressable, TextInput, View } from 'react-native';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
declare function
|
|
4
|
+
export interface ComboboxProps extends React.ComponentProps<typeof View> {
|
|
5
|
+
value?: string;
|
|
6
|
+
onValueChange?: (value: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare function Combobox({ className, value: controlledValue, onValueChange, ...props }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function ComboboxValue({ className, children, ...props }: React.ComponentProps<typeof View> & ComboboxValueBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function ComboboxTrigger({ className, children, ...props }: React.ComponentProps<typeof Pressable> & ComboboxTriggerBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function ComboboxClear({ className, children, ...props }: React.ComponentProps<typeof Pressable> & ComboboxClearBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function ComboboxInput({ className, showClear, showTrigger, placeholder, ...props }: React.ComponentProps<typeof TextInput> & ComboboxInputBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
9
13
|
declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: React.ComponentProps<typeof View> & ComboboxContentBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
10
14
|
declare function ComboboxList({ className, ...props }: React.ComponentProps<typeof View> & ComboboxListBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
|
|
15
|
+
export type ComboboxItemProps = React.ComponentProps<typeof Pressable> & ComboboxItemBaseProps & {
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
declare function ComboboxItem({ className, children, value: itemValue, ...props }: ComboboxItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
19
|
declare function ComboboxGroup({ className, ...props }: React.ComponentProps<typeof View> & ComboboxGroupBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
13
20
|
declare function ComboboxLabel({ className, ...props }: React.ComponentProps<typeof View> & ComboboxLabelBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
14
21
|
declare function ComboboxCollection({ className, ...props }: React.ComponentProps<typeof View> & ComboboxCollectionBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function ComboboxEmpty({ className, ...props }: React.ComponentProps<typeof View> & ComboboxEmptyBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function ComboboxEmpty({ className, children, ...props }: React.ComponentProps<typeof View> & ComboboxEmptyBaseProps): import("react/jsx-runtime").JSX.Element | null;
|
|
16
23
|
declare function ComboboxSeparator({ className, ...props }: React.ComponentProps<typeof View> & ComboboxSeparatorBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
17
24
|
declare function ComboboxChips({ className, ...props }: React.ComponentProps<typeof View> & ComboboxChipsBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare function ComboboxChip({ className, showRemove, ...props }: React.ComponentProps<typeof View> & ComboboxChipBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare function ComboboxChipsInput({ className, ...props }: React.ComponentProps<typeof
|
|
25
|
+
declare function ComboboxChip({ className, showRemove, children, ...props }: React.ComponentProps<typeof View> & ComboboxChipBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function ComboboxChipsInput({ className, ...props }: React.ComponentProps<typeof TextInput> & ComboboxChipsInputBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
20
27
|
declare function useComboboxAnchor(): React.RefObject<null>;
|
|
21
28
|
export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, useComboboxAnchor, };
|
|
22
29
|
//# sourceMappingURL=combobox.d.ts.map
|
package/dist/combobox.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../src/combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../src/combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAwB1D,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC;IACtE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAmB9F;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG,sBAAsB,2CAOnH;AA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GACd,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function useTheme(): {
|
|
2
2
|
theme: import('react-native').ColorSchemeName;
|
|
3
3
|
setTheme: (scheme: import('react-native').ColorSchemeName) => void;
|
|
4
|
-
resolvedTheme: "
|
|
4
|
+
resolvedTheme: "dark" | "light";
|
|
5
5
|
tokens: {
|
|
6
6
|
readonly background: "hsl(0 0% 9%)";
|
|
7
7
|
readonly foreground: "hsl(0 0% 100%)";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../src/theme-toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAcxD,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAAE,OAAkB,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../src/theme-toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAcxD,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;AAEpD,wBAAgB,WAAW,CAAC,EAAE,OAAkB,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CAmF1G"}
|