@xaui/native 0.9.1-beta.97 → 0.9.1-beta.99
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/{chunk-XCEDD7PE.cjs → chunk-GEWYOB25.cjs} +34 -25
- package/dist/{chunk-EXONAJUX.js → chunk-IYUT2IKZ.js} +26 -17
- package/dist/{chunk-WH7MFY3H.cjs → chunk-JMHB7K53.cjs} +140 -29
- package/dist/{chunk-QT7KLGO3.js → chunk-V5FYHQKQ.js} +102 -87
- package/dist/{chunk-VQG7K5QE.js → chunk-XJEG4Q2R.js} +175 -61
- package/dist/{chunk-SIOSYITD.cjs → chunk-ZBFBF7S4.cjs} +60 -45
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.cts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar-today-button.d.ts +4 -0
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.cts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.recipe.d.ts +1 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.cts +4 -1
- package/dist/components/agenda-calendar/agenda-calendar.type.d.ts +4 -1
- package/dist/components/agenda-calendar/index.cjs +2 -2
- package/dist/components/agenda-calendar/index.js +1 -1
- package/dist/components/autocomplete/autocomplete-description.d.cts +14 -0
- package/dist/components/autocomplete/autocomplete-description.d.ts +14 -0
- package/dist/components/autocomplete/autocomplete-error.d.cts +12 -0
- package/dist/components/autocomplete/autocomplete-error.d.ts +12 -0
- package/dist/components/autocomplete/autocomplete-label.d.cts +15 -0
- package/dist/components/autocomplete/autocomplete-label.d.ts +15 -0
- package/dist/components/autocomplete/autocomplete.d.cts +50 -7
- package/dist/components/autocomplete/autocomplete.d.ts +50 -7
- package/dist/components/autocomplete/autocomplete.type.d.cts +21 -4
- package/dist/components/autocomplete/autocomplete.type.d.ts +21 -4
- package/dist/components/autocomplete/index.cjs +9 -2
- package/dist/components/autocomplete/index.d.cts +50 -3
- package/dist/components/autocomplete/index.d.ts +50 -3
- package/dist/components/autocomplete/index.js +8 -1
- package/dist/components/color-picker/index.cjs +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.type.d.cts +5 -1
- package/dist/components/combobox/combobox.type.d.ts +5 -1
- package/dist/components/combobox/index.cjs +4 -3
- package/dist/components/combobox/index.d.cts +15 -1
- package/dist/components/combobox/index.d.ts +15 -1
- package/dist/components/combobox/index.js +3 -2
- package/dist/components/date-picker/index.cjs +3 -3
- package/dist/components/date-picker/index.js +2 -2
- package/dist/components/mask-field/index.cjs +1 -1
- package/dist/components/mask-field/index.js +1 -1
- package/dist/components/phone-number-field/index.cjs +1 -1
- package/dist/components/phone-number-field/index.js +1 -1
- package/dist/components/search-field/index.cjs +3 -3
- package/dist/components/search-field/index.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.js +9 -9
- package/package.json +1 -1
- package/dist/{chunk-L6EWRWTE.js → chunk-ESP2X6PN.js} +3 -3
- package/dist/{chunk-3CI4JGY4.cjs → chunk-FLKTJ46K.cjs} +2 -2
- package/dist/{chunk-ES7RME6G.js → chunk-M352N6PQ.js} +3 -3
- package/dist/{chunk-7CGF3Z5S.cjs → chunk-VQIQ3ERR.cjs} +3 -3
|
@@ -13,6 +13,10 @@ import { View } from 'react-native';
|
|
|
13
13
|
*
|
|
14
14
|
* The word is the caller's: "Today", "Aujourd'hui", "Hoy". R3 wraps a text child into the
|
|
15
15
|
* label, so `<AgendaCalendar.TodayButton>Today</…>` is the whole call.
|
|
16
|
+
*
|
|
17
|
+
* **It wears the card's `variant`**, the one that aims the chosen day: outlined with the
|
|
18
|
+
* word in the accent on `primary`, a soft fill on `secondary`, a neutral one on `tertiary`,
|
|
19
|
+
* the bare word on `ghost`. Nothing to pass — the pill reads the root's resolution.
|
|
16
20
|
*/
|
|
17
21
|
export declare const AgendaCalendarTodayButton: import("react").ForwardRefExoticComponent<{
|
|
18
22
|
children?: import("react").ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SlotStyles } from '../../system/recipe';
|
|
2
2
|
import type { XAUITheme } from '../../theme/theme.type';
|
|
3
3
|
import type { AgendaCalendarSlot } from './agenda-calendar.type';
|
|
4
|
-
export declare const agendaCalendarRecipe: import("../..").Recipe<"header" | "nav" | "week" | "root" | "navButton" | "today" | "todayDisabled" | "todayLabel" | "picker" | "pickerItem", "
|
|
4
|
+
export declare const agendaCalendarRecipe: import("../..").Recipe<"header" | "nav" | "week" | "root" | "navButton" | "today" | "todayDisabled" | "todayLabel" | "picker" | "pickerItem", import("..").CalendarVariant, {
|
|
5
5
|
readonly size: {
|
|
6
6
|
readonly sm: (theme: XAUITheme) => SlotStyles<AgendaCalendarSlot>;
|
|
7
7
|
readonly md: (theme: XAUITheme) => SlotStyles<AgendaCalendarSlot>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SlotStyles } from '../../system/recipe';
|
|
2
2
|
import type { XAUITheme } from '../../theme/theme.type';
|
|
3
3
|
import type { AgendaCalendarSlot } from './agenda-calendar.type';
|
|
4
|
-
export declare const agendaCalendarRecipe: import("../..").Recipe<"header" | "nav" | "week" | "root" | "navButton" | "today" | "todayDisabled" | "todayLabel" | "picker" | "pickerItem", "
|
|
4
|
+
export declare const agendaCalendarRecipe: import("../..").Recipe<"header" | "nav" | "week" | "root" | "navButton" | "today" | "todayDisabled" | "todayLabel" | "picker" | "pickerItem", import("..").CalendarVariant, {
|
|
5
5
|
readonly size: {
|
|
6
6
|
readonly sm: (theme: XAUITheme) => SlotStyles<AgendaCalendarSlot>;
|
|
7
7
|
readonly md: (theme: XAUITheme) => SlotStyles<AgendaCalendarSlot>;
|
|
@@ -7,7 +7,10 @@ import type { RadiusKey, Size } from '../../theme/theme.type';
|
|
|
7
7
|
import type { WeekDay } from '../../utils/dates';
|
|
8
8
|
import type { CalendarVariant } from '../calendar';
|
|
9
9
|
export type AgendaCalendarSlot = 'root' | 'header' | 'nav' | 'navButton' | 'today' | 'todayDisabled' | 'todayLabel' | 'week' | 'picker' | 'pickerItem';
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The `Calendar`'s four, because the chosen day is the same day. It aims the pill that says
|
|
12
|
+
* "Today" as well — the variant is the card's one level of emphasis, not the disc's alone.
|
|
13
|
+
*/
|
|
11
14
|
export type AgendaCalendarVariant = CalendarVariant;
|
|
12
15
|
/**
|
|
13
16
|
* Which strip is on screen: the week of days, the months of the year, or the years.
|
|
@@ -7,7 +7,10 @@ import type { RadiusKey, Size } from '../../theme/theme.type';
|
|
|
7
7
|
import type { WeekDay } from '../../utils/dates';
|
|
8
8
|
import type { CalendarVariant } from '../calendar';
|
|
9
9
|
export type AgendaCalendarSlot = 'root' | 'header' | 'nav' | 'navButton' | 'today' | 'todayDisabled' | 'todayLabel' | 'week' | 'picker' | 'pickerItem';
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The `Calendar`'s four, because the chosen day is the same day. It aims the pill that says
|
|
12
|
+
* "Today" as well — the variant is the card's one level of emphasis, not the disc's alone.
|
|
13
|
+
*/
|
|
11
14
|
export type AgendaCalendarVariant = CalendarVariant;
|
|
12
15
|
/**
|
|
13
16
|
* Which strip is on screen: the week of days, the months of the year, or the years.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZBFBF7S4cjs = require('../../chunk-ZBFBF7S4.cjs');
|
|
18
18
|
require('../../chunk-6ZWQDTGQ.cjs');
|
|
19
19
|
require('../../chunk-ISHMSP6P.cjs');
|
|
20
20
|
require('../../chunk-WFEMJCXO.cjs');
|
|
@@ -46,4 +46,4 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
exports.AgendaCalendar =
|
|
49
|
+
exports.AgendaCalendar = _chunkZBFBF7S4cjs.AgendaCalendar; exports.AgendaCalendarDay = _chunkZBFBF7S4cjs.AgendaCalendarDay; exports.AgendaCalendarHeader = _chunkZBFBF7S4cjs.AgendaCalendarHeader; exports.AgendaCalendarMonthPicker = _chunkZBFBF7S4cjs.AgendaCalendarMonthPicker; exports.AgendaCalendarNav = _chunkZBFBF7S4cjs.AgendaCalendarNav; exports.AgendaCalendarNextButton = _chunkZBFBF7S4cjs.AgendaCalendarNextButton; exports.AgendaCalendarPreviousButton = _chunkZBFBF7S4cjs.AgendaCalendarPreviousButton; exports.AgendaCalendarRoot = _chunkZBFBF7S4cjs.AgendaCalendarRoot; exports.AgendaCalendarTitle = _chunkZBFBF7S4cjs.AgendaCalendarTitle; exports.AgendaCalendarTodayButton = _chunkZBFBF7S4cjs.AgendaCalendarTodayButton; exports.AgendaCalendarWeek = _chunkZBFBF7S4cjs.AgendaCalendarWeek; exports.AgendaCalendarWeekdays = _chunkZBFBF7S4cjs.AgendaCalendarWeekdays; exports.AgendaCalendarYearPicker = _chunkZBFBF7S4cjs.AgendaCalendarYearPicker; exports.agendaCalendarRecipe = _chunkZBFBF7S4cjs.agendaCalendarRecipe; exports.useAgendaCalendar = _chunkZBFBF7S4cjs.useAgendaCalendar;
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
AgendaCalendarYearPicker,
|
|
15
15
|
agendaCalendarRecipe,
|
|
16
16
|
useAgendaCalendar
|
|
17
|
-
} from "../../chunk-
|
|
17
|
+
} from "../../chunk-V5FYHQKQ.js";
|
|
18
18
|
import "../../chunk-6NAZ2IHL.js";
|
|
19
19
|
import "../../chunk-SHFUQVLX.js";
|
|
20
20
|
import "../../chunk-NCTOTTVW.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Text } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* The hint under the field — what the list holds, how much of it there is. The
|
|
4
|
+
* `TextField.Description`, on a field that opens a list.
|
|
5
|
+
*
|
|
6
|
+
* It turns `danger` with `isInvalid`, like the label, and sits inset by half the field's
|
|
7
|
+
* padding so the column reads as one block rather than a label, a box and a stray line.
|
|
8
|
+
*
|
|
9
|
+
* It carries the id the trigger points at, so a screen reader reads the hint after the
|
|
10
|
+
* value rather than leaving it on screen for the sighted alone.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AutocompleteDescription: import("react").ForwardRefExoticComponent<{
|
|
13
|
+
children?: import("react").ReactNode;
|
|
14
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<Text>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Text } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* The hint under the field — what the list holds, how much of it there is. The
|
|
4
|
+
* `TextField.Description`, on a field that opens a list.
|
|
5
|
+
*
|
|
6
|
+
* It turns `danger` with `isInvalid`, like the label, and sits inset by half the field's
|
|
7
|
+
* padding so the column reads as one block rather than a label, a box and a stray line.
|
|
8
|
+
*
|
|
9
|
+
* It carries the id the trigger points at, so a screen reader reads the hint after the
|
|
10
|
+
* value rather than leaving it on screen for the sighted alone.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AutocompleteDescription: import("react").ForwardRefExoticComponent<{
|
|
13
|
+
children?: import("react").ReactNode;
|
|
14
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<Text>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Text } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* What is wrong with the chosen row, in `danger` — the `TextField.Error`, on a field that
|
|
4
|
+
* opens a list.
|
|
5
|
+
*
|
|
6
|
+
* **It always renders what it is given.** `isInvalid` paints the trigger's border and turns
|
|
7
|
+
* the label and the description, but it does not mount or unmount this slot: a slot that
|
|
8
|
+
* silently renders nothing is one you cannot debug, so you write the condition yourself.
|
|
9
|
+
*/
|
|
10
|
+
export declare const AutocompleteError: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<Text>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Text } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* What is wrong with the chosen row, in `danger` — the `TextField.Error`, on a field that
|
|
4
|
+
* opens a list.
|
|
5
|
+
*
|
|
6
|
+
* **It always renders what it is given.** `isInvalid` paints the trigger's border and turns
|
|
7
|
+
* the label and the description, but it does not mount or unmount this slot: a slot that
|
|
8
|
+
* silently renders nothing is one you cannot debug, so you write the condition yourself.
|
|
9
|
+
*/
|
|
10
|
+
export declare const AutocompleteError: import("react").ForwardRefExoticComponent<{
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<Text>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Text } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* What the field is for — the `TextField.Label`, on a field that opens a list.
|
|
4
|
+
*
|
|
5
|
+
* It turns `danger` with `isInvalid`, so the field that is wrong is findable on a long form
|
|
6
|
+
* without reading every message. Its colour is the theme's `foreground` rather than the
|
|
7
|
+
* variant's: the label sits outside the box, on the screen behind it, so a tinted field
|
|
8
|
+
* does not tint it.
|
|
9
|
+
*
|
|
10
|
+
* It carries the id the trigger points at, which is what makes a screen reader announce
|
|
11
|
+
* "État, liste déroulante" instead of reading the placeholder and hoping.
|
|
12
|
+
*/
|
|
13
|
+
export declare const AutocompleteLabel: import("react").ForwardRefExoticComponent<{
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<Text>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Text } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* What the field is for — the `TextField.Label`, on a field that opens a list.
|
|
4
|
+
*
|
|
5
|
+
* It turns `danger` with `isInvalid`, so the field that is wrong is findable on a long form
|
|
6
|
+
* without reading every message. Its colour is the theme's `foreground` rather than the
|
|
7
|
+
* variant's: the label sits outside the box, on the screen behind it, so a tinted field
|
|
8
|
+
* does not tint it.
|
|
9
|
+
*
|
|
10
|
+
* It carries the id the trigger points at, which is what makes a screen reader announce
|
|
11
|
+
* "État, liste déroulante" instead of reading the placeholder and hoping.
|
|
12
|
+
*/
|
|
13
|
+
export declare const AutocompleteLabel: import("react").ForwardRefExoticComponent<{
|
|
14
|
+
children?: import("react").ReactNode;
|
|
15
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<Text>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { View } from 'react-native';
|
|
2
2
|
/**
|
|
3
3
|
* A field that opens a list you search.
|
|
4
4
|
*
|
|
5
5
|
* ```tsx
|
|
6
6
|
* <Autocomplete onValueChange={setState}>
|
|
7
|
+
* <Autocomplete.Label>État</Autocomplete.Label>
|
|
7
8
|
* <Autocomplete.Trigger>
|
|
8
9
|
* <Autocomplete.Value placeholder="Choisir un état" />
|
|
9
10
|
* <Autocomplete.Indicator />
|
|
@@ -15,6 +16,7 @@ import type { AutocompleteProps } from './autocomplete.type';
|
|
|
15
16
|
* <Autocomplete.Item value="tx">Texas</Autocomplete.Item>
|
|
16
17
|
* <Autocomplete.Empty>Aucun résultat</Autocomplete.Empty>
|
|
17
18
|
* </Autocomplete.Content>
|
|
19
|
+
* <Autocomplete.Description>Cinquante États, une seule ligne.</Autocomplete.Description>
|
|
18
20
|
* </Autocomplete>
|
|
19
21
|
* ```
|
|
20
22
|
*
|
|
@@ -30,10 +32,51 @@ import type { AutocompleteProps } from './autocomplete.type';
|
|
|
30
32
|
* the drift would show as a select and an autocomplete side by side in a form with fields
|
|
31
33
|
* half a shade apart.
|
|
32
34
|
*
|
|
33
|
-
* **The root
|
|
34
|
-
*
|
|
35
|
+
* **The root is the column, not the field** — the `TextField`'s shape, and the
|
|
36
|
+
* `DatePicker`'s: a `View` that stacks `Autocomplete.Label`, the trigger and
|
|
37
|
+
* `Autocomplete.Description` / `.Error` with one `gap`, so JSX order is screen order. It is
|
|
38
|
+
* the column and the help lines that make this a field on a form rather than a button that
|
|
39
|
+
* opens a list, and they are the `TextField`'s token for token — a text field and an
|
|
40
|
+
* autocomplete on the same form read as one control.
|
|
41
|
+
*
|
|
42
|
+
* `Autocomplete.Trigger` is the field, and it keeps its own `ref` — it is the node the
|
|
43
|
+
* panel measures. `Autocomplete.Overlay` and `Autocomplete.Content` portal out, so they add
|
|
44
|
+
* nothing to the column.
|
|
35
45
|
*/
|
|
36
|
-
export declare
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
export declare const Autocomplete: import("react").ForwardRefExoticComponent<{
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
variant?: import("./autocomplete.type").AutocompleteVariant;
|
|
49
|
+
size?: import("./autocomplete.type").AutocompleteSize;
|
|
50
|
+
radius?: import("../..").RadiusKey;
|
|
51
|
+
color?: string;
|
|
52
|
+
value?: string;
|
|
53
|
+
defaultValue?: string;
|
|
54
|
+
onValueChange?: (value: string) => void;
|
|
55
|
+
isOpen?: boolean;
|
|
56
|
+
defaultOpen?: boolean;
|
|
57
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
58
|
+
query?: string;
|
|
59
|
+
defaultQuery?: string;
|
|
60
|
+
onQueryChange?: (query: string) => void;
|
|
61
|
+
isDisabled?: boolean;
|
|
62
|
+
isInvalid?: boolean;
|
|
63
|
+
asChild?: boolean;
|
|
64
|
+
} & Omit<import("react-native").ViewProps, keyof {
|
|
65
|
+
children?: import("react").ReactNode;
|
|
66
|
+
variant?: import("./autocomplete.type").AutocompleteVariant;
|
|
67
|
+
size?: import("./autocomplete.type").AutocompleteSize;
|
|
68
|
+
radius?: import("../..").RadiusKey;
|
|
69
|
+
color?: string;
|
|
70
|
+
value?: string;
|
|
71
|
+
defaultValue?: string;
|
|
72
|
+
onValueChange?: (value: string) => void;
|
|
73
|
+
isOpen?: boolean;
|
|
74
|
+
defaultOpen?: boolean;
|
|
75
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
76
|
+
query?: string;
|
|
77
|
+
defaultQuery?: string;
|
|
78
|
+
onQueryChange?: (query: string) => void;
|
|
79
|
+
isDisabled?: boolean;
|
|
80
|
+
isInvalid?: boolean;
|
|
81
|
+
asChild?: boolean;
|
|
82
|
+
}> & Omit<import("../..").ViewStyleProps, "color" | "value" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDisabled" | "asChild" | "radius" | "size" | "variant" | "defaultValue" | "onValueChange" | "isOpen" | "defaultOpen" | "onOpenChange" | "isInvalid" | "query" | "defaultQuery" | "onQueryChange"> & import("react").RefAttributes<View>>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { View } from 'react-native';
|
|
2
2
|
/**
|
|
3
3
|
* A field that opens a list you search.
|
|
4
4
|
*
|
|
5
5
|
* ```tsx
|
|
6
6
|
* <Autocomplete onValueChange={setState}>
|
|
7
|
+
* <Autocomplete.Label>État</Autocomplete.Label>
|
|
7
8
|
* <Autocomplete.Trigger>
|
|
8
9
|
* <Autocomplete.Value placeholder="Choisir un état" />
|
|
9
10
|
* <Autocomplete.Indicator />
|
|
@@ -15,6 +16,7 @@ import type { AutocompleteProps } from './autocomplete.type';
|
|
|
15
16
|
* <Autocomplete.Item value="tx">Texas</Autocomplete.Item>
|
|
16
17
|
* <Autocomplete.Empty>Aucun résultat</Autocomplete.Empty>
|
|
17
18
|
* </Autocomplete.Content>
|
|
19
|
+
* <Autocomplete.Description>Cinquante États, une seule ligne.</Autocomplete.Description>
|
|
18
20
|
* </Autocomplete>
|
|
19
21
|
* ```
|
|
20
22
|
*
|
|
@@ -30,10 +32,51 @@ import type { AutocompleteProps } from './autocomplete.type';
|
|
|
30
32
|
* the drift would show as a select and an autocomplete side by side in a form with fields
|
|
31
33
|
* half a shade apart.
|
|
32
34
|
*
|
|
33
|
-
* **The root
|
|
34
|
-
*
|
|
35
|
+
* **The root is the column, not the field** — the `TextField`'s shape, and the
|
|
36
|
+
* `DatePicker`'s: a `View` that stacks `Autocomplete.Label`, the trigger and
|
|
37
|
+
* `Autocomplete.Description` / `.Error` with one `gap`, so JSX order is screen order. It is
|
|
38
|
+
* the column and the help lines that make this a field on a form rather than a button that
|
|
39
|
+
* opens a list, and they are the `TextField`'s token for token — a text field and an
|
|
40
|
+
* autocomplete on the same form read as one control.
|
|
41
|
+
*
|
|
42
|
+
* `Autocomplete.Trigger` is the field, and it keeps its own `ref` — it is the node the
|
|
43
|
+
* panel measures. `Autocomplete.Overlay` and `Autocomplete.Content` portal out, so they add
|
|
44
|
+
* nothing to the column.
|
|
35
45
|
*/
|
|
36
|
-
export declare
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
export declare const Autocomplete: import("react").ForwardRefExoticComponent<{
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
variant?: import("./autocomplete.type").AutocompleteVariant;
|
|
49
|
+
size?: import("./autocomplete.type").AutocompleteSize;
|
|
50
|
+
radius?: import("../..").RadiusKey;
|
|
51
|
+
color?: string;
|
|
52
|
+
value?: string;
|
|
53
|
+
defaultValue?: string;
|
|
54
|
+
onValueChange?: (value: string) => void;
|
|
55
|
+
isOpen?: boolean;
|
|
56
|
+
defaultOpen?: boolean;
|
|
57
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
58
|
+
query?: string;
|
|
59
|
+
defaultQuery?: string;
|
|
60
|
+
onQueryChange?: (query: string) => void;
|
|
61
|
+
isDisabled?: boolean;
|
|
62
|
+
isInvalid?: boolean;
|
|
63
|
+
asChild?: boolean;
|
|
64
|
+
} & Omit<import("react-native").ViewProps, keyof {
|
|
65
|
+
children?: import("react").ReactNode;
|
|
66
|
+
variant?: import("./autocomplete.type").AutocompleteVariant;
|
|
67
|
+
size?: import("./autocomplete.type").AutocompleteSize;
|
|
68
|
+
radius?: import("../..").RadiusKey;
|
|
69
|
+
color?: string;
|
|
70
|
+
value?: string;
|
|
71
|
+
defaultValue?: string;
|
|
72
|
+
onValueChange?: (value: string) => void;
|
|
73
|
+
isOpen?: boolean;
|
|
74
|
+
defaultOpen?: boolean;
|
|
75
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
76
|
+
query?: string;
|
|
77
|
+
defaultQuery?: string;
|
|
78
|
+
onQueryChange?: (query: string) => void;
|
|
79
|
+
isDisabled?: boolean;
|
|
80
|
+
isInvalid?: boolean;
|
|
81
|
+
asChild?: boolean;
|
|
82
|
+
}> & Omit<import("../..").ViewStyleProps, "color" | "value" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDisabled" | "asChild" | "radius" | "size" | "variant" | "defaultValue" | "onValueChange" | "isOpen" | "defaultOpen" | "onOpenChange" | "isInvalid" | "query" | "defaultQuery" | "onQueryChange"> & import("react").RefAttributes<View>>;
|
|
@@ -34,13 +34,15 @@ type AutocompleteOwnProps = {
|
|
|
34
34
|
onQueryChange?: (query: string) => void;
|
|
35
35
|
isDisabled?: boolean;
|
|
36
36
|
isInvalid?: boolean;
|
|
37
|
+
asChild?: boolean;
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
|
-
* The root
|
|
40
|
-
*
|
|
41
|
-
* `
|
|
40
|
+
* The root is the **column** — a `View` stacking the label, the trigger and the help line —
|
|
41
|
+
* so `ref`, `style` and R14's style props here dress that column. The control itself is
|
|
42
|
+
* `Autocomplete.Trigger`, which keeps its own `ref` and its own a11y props: it is the node
|
|
43
|
+
* the panel measures and the node a screen reader stops on.
|
|
42
44
|
*/
|
|
43
|
-
export type AutocompleteProps = AutocompleteOwnProps
|
|
45
|
+
export type AutocompleteProps = AutocompleteOwnProps & Omit<ViewProps, keyof AutocompleteOwnProps> & Omit<ViewStyleProps, keyof AutocompleteOwnProps | keyof ViewProps>;
|
|
44
46
|
export type AutocompleteTriggerProps = {
|
|
45
47
|
children?: ReactNode;
|
|
46
48
|
asChild?: boolean;
|
|
@@ -51,6 +53,15 @@ type AutocompleteTextOwnProps = {
|
|
|
51
53
|
};
|
|
52
54
|
export type AutocompleteValueProps = AutocompleteTextOwnProps & Omit<TextProps, keyof AutocompleteTextOwnProps> & Omit<TextStyleProps, keyof AutocompleteTextOwnProps | keyof TextProps>;
|
|
53
55
|
export type AutocompleteOverlayProps = ViewProps & ViewStyleProps;
|
|
56
|
+
type AutocompleteTextSlotOwnProps = {
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
};
|
|
59
|
+
/** What the field is for — the `TextField.Label`, on a field that opens a list. */
|
|
60
|
+
export type AutocompleteLabelProps = AutocompleteTextSlotOwnProps & Omit<TextProps, keyof AutocompleteTextSlotOwnProps> & Omit<TextStyleProps, keyof AutocompleteTextSlotOwnProps | keyof TextProps>;
|
|
61
|
+
/** The hint under the field — the `TextField.Description`. */
|
|
62
|
+
export type AutocompleteDescriptionProps = AutocompleteLabelProps;
|
|
63
|
+
/** What is wrong with the chosen row — the `TextField.Error`. */
|
|
64
|
+
export type AutocompleteErrorProps = AutocompleteLabelProps;
|
|
54
65
|
/** A row's own word. It has no placeholder — a row is never empty. */
|
|
55
66
|
export type AutocompleteItemLabelProps = {
|
|
56
67
|
children?: ReactNode;
|
|
@@ -92,6 +103,9 @@ export type AutocompleteContextValue = {
|
|
|
92
103
|
itemStyle: StyleProp<ViewStyle>;
|
|
93
104
|
itemPressedStyle: StyleProp<ViewStyle>;
|
|
94
105
|
itemLabelStyle: StyleProp<TextStyle>;
|
|
106
|
+
labelStyle: StyleProp<TextStyle>;
|
|
107
|
+
descriptionStyle: StyleProp<TextStyle>;
|
|
108
|
+
errorStyle: StyleProp<TextStyle>;
|
|
95
109
|
glyph: IconContextValue;
|
|
96
110
|
placeholderColor?: string;
|
|
97
111
|
value?: string;
|
|
@@ -108,6 +122,9 @@ export type AutocompleteContextValue = {
|
|
|
108
122
|
setAnchor: (anchor: AutocompleteAnchor) => void;
|
|
109
123
|
labelFor: (value: string) => string | undefined;
|
|
110
124
|
registerLabel: (value: string, label: string) => void;
|
|
125
|
+
/** The ids the trigger points at, so the label and the hint are what it is announced by. */
|
|
126
|
+
labelId: string;
|
|
127
|
+
descriptionId: string;
|
|
111
128
|
};
|
|
112
129
|
/** What one row publishes to its own slots. */
|
|
113
130
|
export type AutocompleteItemContextValue = {
|
|
@@ -34,13 +34,15 @@ type AutocompleteOwnProps = {
|
|
|
34
34
|
onQueryChange?: (query: string) => void;
|
|
35
35
|
isDisabled?: boolean;
|
|
36
36
|
isInvalid?: boolean;
|
|
37
|
+
asChild?: boolean;
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
|
-
* The root
|
|
40
|
-
*
|
|
41
|
-
* `
|
|
40
|
+
* The root is the **column** — a `View` stacking the label, the trigger and the help line —
|
|
41
|
+
* so `ref`, `style` and R14's style props here dress that column. The control itself is
|
|
42
|
+
* `Autocomplete.Trigger`, which keeps its own `ref` and its own a11y props: it is the node
|
|
43
|
+
* the panel measures and the node a screen reader stops on.
|
|
42
44
|
*/
|
|
43
|
-
export type AutocompleteProps = AutocompleteOwnProps
|
|
45
|
+
export type AutocompleteProps = AutocompleteOwnProps & Omit<ViewProps, keyof AutocompleteOwnProps> & Omit<ViewStyleProps, keyof AutocompleteOwnProps | keyof ViewProps>;
|
|
44
46
|
export type AutocompleteTriggerProps = {
|
|
45
47
|
children?: ReactNode;
|
|
46
48
|
asChild?: boolean;
|
|
@@ -51,6 +53,15 @@ type AutocompleteTextOwnProps = {
|
|
|
51
53
|
};
|
|
52
54
|
export type AutocompleteValueProps = AutocompleteTextOwnProps & Omit<TextProps, keyof AutocompleteTextOwnProps> & Omit<TextStyleProps, keyof AutocompleteTextOwnProps | keyof TextProps>;
|
|
53
55
|
export type AutocompleteOverlayProps = ViewProps & ViewStyleProps;
|
|
56
|
+
type AutocompleteTextSlotOwnProps = {
|
|
57
|
+
children?: ReactNode;
|
|
58
|
+
};
|
|
59
|
+
/** What the field is for — the `TextField.Label`, on a field that opens a list. */
|
|
60
|
+
export type AutocompleteLabelProps = AutocompleteTextSlotOwnProps & Omit<TextProps, keyof AutocompleteTextSlotOwnProps> & Omit<TextStyleProps, keyof AutocompleteTextSlotOwnProps | keyof TextProps>;
|
|
61
|
+
/** The hint under the field — the `TextField.Description`. */
|
|
62
|
+
export type AutocompleteDescriptionProps = AutocompleteLabelProps;
|
|
63
|
+
/** What is wrong with the chosen row — the `TextField.Error`. */
|
|
64
|
+
export type AutocompleteErrorProps = AutocompleteLabelProps;
|
|
54
65
|
/** A row's own word. It has no placeholder — a row is never empty. */
|
|
55
66
|
export type AutocompleteItemLabelProps = {
|
|
56
67
|
children?: ReactNode;
|
|
@@ -92,6 +103,9 @@ export type AutocompleteContextValue = {
|
|
|
92
103
|
itemStyle: StyleProp<ViewStyle>;
|
|
93
104
|
itemPressedStyle: StyleProp<ViewStyle>;
|
|
94
105
|
itemLabelStyle: StyleProp<TextStyle>;
|
|
106
|
+
labelStyle: StyleProp<TextStyle>;
|
|
107
|
+
descriptionStyle: StyleProp<TextStyle>;
|
|
108
|
+
errorStyle: StyleProp<TextStyle>;
|
|
95
109
|
glyph: IconContextValue;
|
|
96
110
|
placeholderColor?: string;
|
|
97
111
|
value?: string;
|
|
@@ -108,6 +122,9 @@ export type AutocompleteContextValue = {
|
|
|
108
122
|
setAnchor: (anchor: AutocompleteAnchor) => void;
|
|
109
123
|
labelFor: (value: string) => string | undefined;
|
|
110
124
|
registerLabel: (value: string, label: string) => void;
|
|
125
|
+
/** The ids the trigger points at, so the label and the hint are what it is announced by. */
|
|
126
|
+
labelId: string;
|
|
127
|
+
descriptionId: string;
|
|
111
128
|
};
|
|
112
129
|
/** What one row publishes to its own slots. */
|
|
113
130
|
export type AutocompleteItemContextValue = {
|
|
@@ -13,9 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var _chunkJMHB7K53cjs = require('../../chunk-JMHB7K53.cjs');
|
|
17
20
|
require('../../chunk-FJGPDWMS.cjs');
|
|
18
21
|
require('../../chunk-YVYYONTP.cjs');
|
|
22
|
+
require('../../chunk-BKY5YQ7W.cjs');
|
|
19
23
|
require('../../chunk-XILRXEUL.cjs');
|
|
20
24
|
require('../../chunk-WDDXU3OH.cjs');
|
|
21
25
|
require('../../chunk-EKS3W46M.cjs');
|
|
@@ -47,4 +51,7 @@ require('../../chunk-TK44VBIE.cjs');
|
|
|
47
51
|
|
|
48
52
|
|
|
49
53
|
|
|
50
|
-
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
exports.Autocomplete = _chunkJMHB7K53cjs.Autocomplete2; exports.AutocompleteContent = _chunkJMHB7K53cjs.AutocompleteContent; exports.AutocompleteDescription = _chunkJMHB7K53cjs.AutocompleteDescription; exports.AutocompleteEmpty = _chunkJMHB7K53cjs.AutocompleteEmpty; exports.AutocompleteError = _chunkJMHB7K53cjs.AutocompleteError; exports.AutocompleteIndicator = _chunkJMHB7K53cjs.AutocompleteIndicator; exports.AutocompleteItem = _chunkJMHB7K53cjs.AutocompleteItem; exports.AutocompleteItemLabel = _chunkJMHB7K53cjs.AutocompleteItemLabel; exports.AutocompleteLabel = _chunkJMHB7K53cjs.AutocompleteLabel; exports.AutocompleteOverlay = _chunkJMHB7K53cjs.AutocompleteOverlay; exports.AutocompleteRoot = _chunkJMHB7K53cjs.Autocomplete; exports.AutocompleteSearch = _chunkJMHB7K53cjs.AutocompleteSearch; exports.AutocompleteTrigger = _chunkJMHB7K53cjs.AutocompleteTrigger; exports.AutocompleteValue = _chunkJMHB7K53cjs.AutocompleteValue; exports.autocompleteRecipe = _chunkJMHB7K53cjs.autocompleteRecipe; exports.useAutocomplete = _chunkJMHB7K53cjs.useAutocomplete; exports.useAutocompleteItem = _chunkJMHB7K53cjs.useAutocompleteItem;
|
|
@@ -1,6 +1,44 @@
|
|
|
1
|
-
import { Autocomplete as AutocompleteRoot } from './autocomplete';
|
|
2
1
|
import { AutocompleteIndicator } from './autocomplete-indicator';
|
|
3
|
-
export declare const Autocomplete:
|
|
2
|
+
export declare const Autocomplete: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
variant?: import("./autocomplete.type").AutocompleteVariant;
|
|
5
|
+
size?: import("./autocomplete.type").AutocompleteSize;
|
|
6
|
+
radius?: import("../..").RadiusKey;
|
|
7
|
+
color?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
onValueChange?: (value: string) => void;
|
|
11
|
+
isOpen?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
14
|
+
query?: string;
|
|
15
|
+
defaultQuery?: string;
|
|
16
|
+
onQueryChange?: (query: string) => void;
|
|
17
|
+
isDisabled?: boolean;
|
|
18
|
+
isInvalid?: boolean;
|
|
19
|
+
asChild?: boolean;
|
|
20
|
+
} & Omit<import("react-native").ViewProps, keyof {
|
|
21
|
+
children?: import("react").ReactNode;
|
|
22
|
+
variant?: import("./autocomplete.type").AutocompleteVariant;
|
|
23
|
+
size?: import("./autocomplete.type").AutocompleteSize;
|
|
24
|
+
radius?: import("../..").RadiusKey;
|
|
25
|
+
color?: string;
|
|
26
|
+
value?: string;
|
|
27
|
+
defaultValue?: string;
|
|
28
|
+
onValueChange?: (value: string) => void;
|
|
29
|
+
isOpen?: boolean;
|
|
30
|
+
defaultOpen?: boolean;
|
|
31
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
32
|
+
query?: string;
|
|
33
|
+
defaultQuery?: string;
|
|
34
|
+
onQueryChange?: (query: string) => void;
|
|
35
|
+
isDisabled?: boolean;
|
|
36
|
+
isInvalid?: boolean;
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
}> & Omit<import("../..").ViewStyleProps, "color" | "value" | "pointerEvents" | "style" | "children" | "hitSlop" | "id" | "needsOffscreenAlphaCompositing" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "collapsableChildren" | "onBlur" | "onFocus" | "renderToHardwareTextureAndroid" | "focusable" | "tabIndex" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-modal" | "role" | "accessibilityLabelledBy" | "aria-labelledby" | "accessibilityLiveRegion" | "aria-live" | "screenReaderFocusable" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "accessibilityShowsLargeContentViewer" | "accessibilityLargeContentTitle" | "accessibilityRespondsToUserInteraction" | "isDisabled" | "asChild" | "radius" | "size" | "variant" | "defaultValue" | "onValueChange" | "isOpen" | "defaultOpen" | "onOpenChange" | "isInvalid" | "query" | "defaultQuery" | "onQueryChange"> & import("react").RefAttributes<import("react-native").View>> & {
|
|
39
|
+
Label: import("react").ForwardRefExoticComponent<{
|
|
40
|
+
children?: import("react").ReactNode;
|
|
41
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<import("react-native").Text>>;
|
|
4
42
|
Trigger: import("react").ForwardRefExoticComponent<{
|
|
5
43
|
children?: import("react").ReactNode;
|
|
6
44
|
asChild?: boolean;
|
|
@@ -57,17 +95,26 @@ export declare const Autocomplete: typeof AutocompleteRoot & {
|
|
|
57
95
|
Empty: import("react").ForwardRefExoticComponent<{
|
|
58
96
|
children?: import("react").ReactNode;
|
|
59
97
|
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<import("react-native").Text>>;
|
|
98
|
+
Description: import("react").ForwardRefExoticComponent<{
|
|
99
|
+
children?: import("react").ReactNode;
|
|
100
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<import("react-native").Text>>;
|
|
101
|
+
Error: import("react").ForwardRefExoticComponent<{
|
|
102
|
+
children?: import("react").ReactNode;
|
|
103
|
+
} & Omit<import("react-native").TextProps, "children"> & Omit<import("../..").TextStyleProps, keyof import("react-native").TextProps> & import("react").RefAttributes<import("react-native").Text>>;
|
|
60
104
|
};
|
|
61
105
|
export { Autocomplete as AutocompleteRoot } from './autocomplete';
|
|
62
106
|
export { AutocompleteContent } from './autocomplete-content';
|
|
107
|
+
export { AutocompleteDescription } from './autocomplete-description';
|
|
63
108
|
export { AutocompleteEmpty } from './autocomplete-empty';
|
|
109
|
+
export { AutocompleteError } from './autocomplete-error';
|
|
64
110
|
export { AutocompleteIndicator } from './autocomplete-indicator';
|
|
65
111
|
export { AutocompleteItem } from './autocomplete-item';
|
|
66
112
|
export { AutocompleteItemLabel } from './autocomplete-item-label';
|
|
113
|
+
export { AutocompleteLabel } from './autocomplete-label';
|
|
67
114
|
export { AutocompleteOverlay } from './autocomplete-overlay';
|
|
68
115
|
export { AutocompleteSearch } from './autocomplete-search';
|
|
69
116
|
export { AutocompleteTrigger } from './autocomplete-trigger';
|
|
70
117
|
export { AutocompleteValue } from './autocomplete-value';
|
|
71
118
|
export { useAutocomplete, useAutocompleteItem } from './autocomplete.context';
|
|
72
119
|
export { autocompleteRecipe } from './autocomplete.recipe';
|
|
73
|
-
export type { AutocompleteContentProps, AutocompleteContextValue, AutocompleteEmptyProps, AutocompleteItemContextValue, AutocompleteItemLabelProps, AutocompleteItemProps, AutocompleteOverlayProps, AutocompleteProps, AutocompleteSearchProps, AutocompleteSize, AutocompleteSlot, AutocompleteTriggerProps, AutocompleteValueProps, AutocompleteVariant, } from './autocomplete.type';
|
|
120
|
+
export type { AutocompleteContentProps, AutocompleteContextValue, AutocompleteDescriptionProps, AutocompleteEmptyProps, AutocompleteErrorProps, AutocompleteItemContextValue, AutocompleteItemLabelProps, AutocompleteItemProps, AutocompleteLabelProps, AutocompleteOverlayProps, AutocompleteProps, AutocompleteSearchProps, AutocompleteSize, AutocompleteSlot, AutocompleteTriggerProps, AutocompleteValueProps, AutocompleteVariant, } from './autocomplete.type';
|