@xaui/native 0.1.5 → 0.2.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/README.md +109 -113
- package/dist/alert/index.cjs +6 -9
- package/dist/alert/index.js +4 -7
- package/dist/app-bar/index.cjs +4 -4
- package/dist/app-bar/index.js +2 -2
- package/dist/autocomplete/index.cjs +20 -25
- package/dist/autocomplete/index.d.cts +1 -1
- package/dist/autocomplete/index.d.ts +1 -1
- package/dist/autocomplete/index.js +11 -16
- package/dist/avatar/index.cjs +9 -9
- package/dist/avatar/index.js +5 -5
- package/dist/badge/index.cjs +13 -14
- package/dist/badge/index.js +10 -11
- package/dist/bottom-sheet/index.cjs +3 -3
- package/dist/bottom-sheet/index.js +2 -2
- package/dist/bottom-tab-bar/index.cjs +2 -2
- package/dist/bottom-tab-bar/index.js +1 -1
- package/dist/button/index.cjs +19 -22
- package/dist/button/index.d.cts +3 -3
- package/dist/button/index.d.ts +3 -3
- package/dist/button/index.js +12 -15
- package/dist/card/index.cjs +8 -8
- package/dist/card/index.js +3 -3
- package/dist/carousel/index.cjs +2 -2
- package/dist/carousel/index.js +1 -1
- package/dist/checkbox/index.cjs +11 -11
- package/dist/checkbox/index.js +6 -6
- package/dist/chip/index.cjs +11 -11
- package/dist/chip/index.js +9 -9
- package/dist/{chunk-K24VDBNN.js → chunk-4JFWQ5XT.js} +2 -2
- package/dist/{chunk-RZJFCDFS.cjs → chunk-7UFBLUMV.cjs} +13 -19
- package/dist/{chunk-M6A23KUM.js → chunk-A45TVXU5.js} +29 -5
- package/dist/{chunk-3XWF77Y3.cjs → chunk-BYWUAPC4.cjs} +4 -4
- package/dist/{chunk-X5KNZ6YJ.cjs → chunk-DJ4Q37UT.cjs} +2 -2
- package/dist/{chunk-LVNBYERF.js → chunk-RBSA4NH4.js} +13 -19
- package/dist/{chunk-HYL4EU3Y.cjs → chunk-UGEINZM7.cjs} +14 -13
- package/dist/{chunk-WGWXGIZ3.js → chunk-UU4HHBDN.js} +10 -9
- package/dist/{chunk-J3BOFXIH.js → chunk-VSZEXOUN.js} +4 -4
- package/dist/{chunk-FBTBWI3P.cjs → chunk-YIEUN3G5.cjs} +7 -7
- package/dist/{chunk-43I45LX7.cjs → chunk-ZH6ZSV2Q.cjs} +33 -9
- package/dist/{chunk-2JKWVIPB.js → chunk-ZY7IUTAT.js} +1 -1
- package/dist/color-picker/index.cjs +7 -7
- package/dist/color-picker/index.d.cts +1 -1
- package/dist/color-picker/index.d.ts +1 -1
- package/dist/color-picker/index.js +4 -4
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.d.cts +1 -2
- package/dist/core/index.d.ts +1 -2
- package/dist/core/index.js +1 -1
- package/dist/datepicker/index.cjs +28 -30
- package/dist/datepicker/index.d.cts +1 -1
- package/dist/datepicker/index.d.ts +1 -1
- package/dist/datepicker/index.js +17 -19
- package/dist/dialog/index.cjs +5 -5
- package/dist/dialog/index.js +1 -1
- package/dist/divider/index.cjs +3 -3
- package/dist/divider/index.js +2 -2
- package/dist/drawer/index.cjs +4 -4
- package/dist/drawer/index.js +3 -3
- package/dist/expansion-panel/index.cjs +12 -12
- package/dist/expansion-panel/index.js +3 -3
- package/dist/fab/index.cjs +4 -4
- package/dist/fab/index.js +3 -3
- package/dist/fab-menu/index.cjs +8 -8
- package/dist/fab-menu/index.js +4 -4
- package/dist/feature-discovery/index.cjs +6 -6
- package/dist/feature-discovery/index.js +5 -5
- package/dist/indicator/index.cjs +3 -3
- package/dist/indicator/index.js +2 -2
- package/dist/input/index.cjs +38 -20
- package/dist/input/index.d.cts +2 -2
- package/dist/input/index.d.ts +2 -2
- package/dist/input/index.js +36 -18
- package/dist/input-trigger/index.cjs +193 -4
- package/dist/input-trigger/index.d.cts +5 -3
- package/dist/input-trigger/index.d.ts +5 -3
- package/dist/input-trigger/index.js +192 -3
- package/dist/{input-trigger.type-BL70fHE9.d.cts → input-trigger.type-By_1ZjKd.d.cts} +86 -3
- package/dist/{input-trigger.type-BODYStHk.d.ts → input-trigger.type-DlSqg2eG.d.ts} +86 -3
- package/dist/list/index.cjs +6 -6
- package/dist/list/index.js +2 -2
- package/dist/menu/index.cjs +4 -4
- package/dist/menu/index.js +2 -2
- package/dist/menubox/index.cjs +7 -7
- package/dist/menubox/index.d.cts +1 -1
- package/dist/menubox/index.d.ts +1 -1
- package/dist/menubox/index.js +3 -3
- package/dist/picker/index.cjs +7 -7
- package/dist/picker/index.d.cts +1 -1
- package/dist/picker/index.d.ts +1 -1
- package/dist/picker/index.js +4 -4
- package/dist/progress/index.cjs +3 -3
- package/dist/progress/index.js +2 -2
- package/dist/radio/index.cjs +9 -9
- package/dist/radio/index.js +3 -3
- package/dist/refresh-control/index.cjs +45 -0
- package/dist/refresh-control/index.d.cts +55 -0
- package/dist/refresh-control/index.d.ts +55 -0
- package/dist/refresh-control/index.js +45 -0
- package/dist/segment-button/index.cjs +8 -8
- package/dist/segment-button/index.js +5 -5
- package/dist/select/index.cjs +50 -58
- package/dist/select/index.d.cts +2 -2
- package/dist/select/index.d.ts +2 -2
- package/dist/select/index.js +37 -45
- package/dist/skeleton/index.cjs +4 -4
- package/dist/skeleton/index.js +3 -3
- package/dist/slider/index.cjs +5 -5
- package/dist/slider/index.js +1 -1
- package/dist/snackbar/index.cjs +6 -6
- package/dist/snackbar/index.js +4 -4
- package/dist/snippet/index.cjs +4 -4
- package/dist/snippet/index.js +2 -2
- package/dist/stepper/index.cjs +3 -3
- package/dist/stepper/index.js +2 -2
- package/dist/switch/index.cjs +8 -8
- package/dist/switch/index.js +2 -2
- package/dist/tabs/index.cjs +7 -7
- package/dist/tabs/index.js +4 -4
- package/dist/timepicker/index.cjs +7 -7
- package/dist/timepicker/index.js +4 -4
- package/dist/toolbar/index.cjs +3 -3
- package/dist/toolbar/index.js +2 -2
- package/dist/typography/index.cjs +3 -3
- package/dist/typography/index.js +1 -1
- package/dist/view/index.cjs +4 -4
- package/dist/view/index.js +2 -2
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -25,14 +25,10 @@ The package also relies on `@xaui/core/theme` for the shared tokens.
|
|
|
25
25
|
|
|
26
26
|
```tsx
|
|
27
27
|
import { XUIProvider } from '@xaui/native/core'
|
|
28
|
-
import { theme
|
|
28
|
+
import { theme } from '@xaui/core/theme'
|
|
29
29
|
|
|
30
30
|
export default function App() {
|
|
31
|
-
return
|
|
32
|
-
<XUIProvider theme={theme} darkTheme={darkTheme}>
|
|
33
|
-
{/* your screens */}
|
|
34
|
-
</XUIProvider>
|
|
35
|
-
)
|
|
31
|
+
return <XUIProvider theme={theme}>{/* your screens */}</XUIProvider>
|
|
36
32
|
}
|
|
37
33
|
```
|
|
38
34
|
|
|
@@ -47,8 +43,8 @@ function Banner() {
|
|
|
47
43
|
const mode = useColorMode()
|
|
48
44
|
|
|
49
45
|
return (
|
|
50
|
-
<View style={{ backgroundColor: theme.colors.primary.
|
|
51
|
-
<Text style={{ color: theme.colors.primary.
|
|
46
|
+
<View style={{ backgroundColor: theme.colors.primary.container }}>
|
|
47
|
+
<Text style={{ color: theme.colors.primary.onContainer }}>
|
|
52
48
|
Current mode: {mode}
|
|
53
49
|
</Text>
|
|
54
50
|
</View>
|
|
@@ -60,117 +56,117 @@ function Banner() {
|
|
|
60
56
|
|
|
61
57
|
This table lists all public components exported by `@xaui/native` and their import path.
|
|
62
58
|
|
|
63
|
-
| Name
|
|
64
|
-
|
|
|
65
|
-
| `XUIProvider`
|
|
66
|
-
| `Portal`
|
|
67
|
-
| `PortalHost`
|
|
68
|
-
| `Button`
|
|
69
|
-
| `IconButton`
|
|
70
|
-
| `Checkbox`
|
|
71
|
-
| `ExpansionPanel`
|
|
72
|
-
| `ExpansionPanelItem`
|
|
73
|
-
| `Progress`
|
|
74
|
-
| `ActivityIndicator`
|
|
75
|
-
| `Switch`
|
|
76
|
-
| `Slider`
|
|
77
|
-
| `Select`
|
|
78
|
-
| `SelectItem`
|
|
79
|
-
| `Dialog`
|
|
80
|
-
| `DialogHeader`
|
|
81
|
-
| `DialogBody`
|
|
82
|
-
| `DialogFooter`
|
|
83
|
-
| `Divider`
|
|
84
|
-
| `Drawer`
|
|
85
|
-
| `Skeleton`
|
|
86
|
-
| `Avatar`
|
|
87
|
-
| `AvatarGroup`
|
|
88
|
-
| `Badge`
|
|
89
|
-
| `Alert`
|
|
90
|
-
| `Autocomplete`
|
|
91
|
-
| `AutocompleteItem`
|
|
92
|
-
| `DatePicker`
|
|
93
|
-
| `Typography`
|
|
94
|
-
| `TextSpan`
|
|
95
|
-
| `Column`
|
|
96
|
-
| `Row`
|
|
97
|
-
| `Spacer`
|
|
98
|
-
| `Padding`
|
|
99
|
-
| `Margin`
|
|
100
|
-
| `SizedBox`
|
|
101
|
-
| `PositionedView`
|
|
102
|
-
| `BlurView`
|
|
103
|
-
| `RoundedView`
|
|
104
|
-
| `AspectRatio`
|
|
105
|
-
| `Grid`
|
|
106
|
-
| `GridItem`
|
|
107
|
-
| `GridBuilder`
|
|
108
|
-
| `ConditionalView`
|
|
109
|
-
| `MasonryGrid`
|
|
110
|
-
| `MasonryGridItem`
|
|
111
|
-
| `MasonryGridBuilder`
|
|
112
|
-
| `Carousel`
|
|
113
|
-
| `SegmentButton`
|
|
114
|
-
| `SegmentButtonItem`
|
|
115
|
-
| `Tabs`
|
|
116
|
-
| `Tab`
|
|
117
|
-
| `Pager`
|
|
118
|
-
| `PagerItem`
|
|
119
|
-
| `Chip`
|
|
120
|
-
| `ChipGroup`
|
|
121
|
-
| `ChipItem`
|
|
122
|
-
| `BottomSheet`
|
|
123
|
-
| `BottomTabBar`
|
|
124
|
-
| `BottomTabBarItem`
|
|
125
|
-
| `Menu`
|
|
126
|
-
| `MenuItem`
|
|
127
|
-
| `Fab`
|
|
128
|
-
| `FabMenu`
|
|
129
|
-
| `FabMenuItem`
|
|
130
|
-
| `FeatureDiscovery`
|
|
131
|
-
| `Card`
|
|
132
|
-
| `CardHeader`
|
|
133
|
-
| `CardBody`
|
|
134
|
-
| `CardFooter`
|
|
135
|
-
| `CardTitle`
|
|
136
|
-
| `CardDescription`
|
|
137
|
-
| `TextInput`
|
|
138
|
-
| `TextArea`
|
|
139
|
-
| `DateInput`
|
|
140
|
-
| `TimeInput`
|
|
141
|
-
| `DateTimeInput`
|
|
142
|
-
| `OTPInput`
|
|
143
|
-
| `NumberInput`
|
|
144
|
-
| `List`
|
|
145
|
-
| `ListItem`
|
|
146
|
-
| `ListBuilder`
|
|
147
|
-
| `Radio`
|
|
148
|
-
| `RadioGroup`
|
|
149
|
-
| `Toolbar`
|
|
150
|
-
| `ToolbarAction`
|
|
151
|
-
| `AppBar`
|
|
152
|
-
| `AppBarStartContent`
|
|
153
|
-
| `AppBarContent`
|
|
154
|
-
| `AppBarEndContent`
|
|
155
|
-
| `TimePicker`
|
|
156
|
-
| `TimePickerDialog`
|
|
157
|
-
| `TimePickerTrigger`
|
|
158
|
-
| `Stepper`
|
|
159
|
-
| `StepperItem`
|
|
160
|
-
| `MenuBox`
|
|
161
|
-
| `MenuBoxItem`
|
|
162
|
-
| `DonutChartCard`
|
|
163
|
-
| `VerticalBarChartCard` | Card component rendering vertical bars.
|
|
164
|
-
| `PieChartCard`
|
|
165
|
-
| `LineChartCard`
|
|
166
|
-
| `HeatmapChartCard`
|
|
59
|
+
| Name | Description | Usage |
|
|
60
|
+
| ---------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
|
61
|
+
| `XUIProvider` | Theme provider for all XAUI native components. | `import { XUIProvider } from '@xaui/native/core'` |
|
|
62
|
+
| `Portal` | Renders content in a portal host layer. | `import { Portal } from '@xaui/native/core'` |
|
|
63
|
+
| `PortalHost` | Host container for portal content. | `import { PortalHost } from '@xaui/native/core'` |
|
|
64
|
+
| `Button` | Pressable button with variants, sizes, and loading state. | `import { Button } from '@xaui/native/button'` |
|
|
65
|
+
| `IconButton` | Compact icon-only button variant. | `import { IconButton } from '@xaui/native/button'` |
|
|
66
|
+
| `Checkbox` | Selection control with checked/indeterminate states. | `import { Checkbox } from '@xaui/native/checkbox'` |
|
|
67
|
+
| `ExpansionPanel` | Accordion container for expandable sections. | `import { ExpansionPanel } from '@xaui/native/expansion-panel'` |
|
|
68
|
+
| `ExpansionPanelItem` | Expandable item inside `ExpansionPanel`. | `import { ExpansionPanelItem } from '@xaui/native/expansion-panel'` |
|
|
69
|
+
| `Progress` | Progress indicator with linear/circular rendering. | `import { Progress } from '@xaui/native/progress'` |
|
|
70
|
+
| `ActivityIndicator` | Animated loading indicator component. | `import { ActivityIndicator } from '@xaui/native/indicator'` |
|
|
71
|
+
| `Switch` | Toggle switch control. | `import { Switch } from '@xaui/native/switch'` |
|
|
72
|
+
| `Slider` | Draggable value selector slider. | `import { Slider } from '@xaui/native/slider'` |
|
|
73
|
+
| `Select` | Select input with trigger and list behavior. | `import { Select } from '@xaui/native/select'` |
|
|
74
|
+
| `SelectItem` | Select option item for `Select`. | `import { SelectItem } from '@xaui/native/select'` |
|
|
75
|
+
| `Dialog` | Modal dialog container component. | `import { Dialog } from '@xaui/native/dialog'` |
|
|
76
|
+
| `DialogHeader` | Header section for `Dialog`. | `import { DialogHeader } from '@xaui/native/dialog'` |
|
|
77
|
+
| `DialogBody` | Body/content section for `Dialog`. | `import { DialogBody } from '@xaui/native/dialog'` |
|
|
78
|
+
| `DialogFooter` | Footer/actions section for `Dialog`. | `import { DialogFooter } from '@xaui/native/dialog'` |
|
|
79
|
+
| `Divider` | Horizontal or vertical separator line. | `import { Divider } from '@xaui/native/divider'` |
|
|
80
|
+
| `Drawer` | Side sheet / drawer container. | `import { Drawer } from '@xaui/native/drawer'` |
|
|
81
|
+
| `Skeleton` | Placeholder loading block. | `import { Skeleton } from '@xaui/native/skeleton'` |
|
|
82
|
+
| `Avatar` | User avatar (image, initials, icon). | `import { Avatar } from '@xaui/native/avatar'` |
|
|
83
|
+
| `AvatarGroup` | Grouped avatars with overlap/stacking. | `import { AvatarGroup } from '@xaui/native/avatar'` |
|
|
84
|
+
| `Badge` | Status/count badge component. | `import { Badge } from '@xaui/native/badge'` |
|
|
85
|
+
| `Alert` | Contextual alert/message banner. | `import { Alert } from '@xaui/native/alert'` |
|
|
86
|
+
| `Autocomplete` | Input with dynamic suggestions. | `import { Autocomplete } from '@xaui/native/autocomplete'` |
|
|
87
|
+
| `AutocompleteItem` | Suggestion item for `Autocomplete`. | `import { AutocompleteItem } from '@xaui/native/autocomplete'` |
|
|
88
|
+
| `DatePicker` | Date selection input/picker. | `import { DatePicker } from '@xaui/native/datepicker'` |
|
|
89
|
+
| `Typography` | Themed text component with variants. | `import { Typography } from '@xaui/native/typography'` |
|
|
90
|
+
| `TextSpan` | Text group primitive that shares inherited styles across nested typography. | `import { TextSpan } from '@xaui/native/typography'` |
|
|
91
|
+
| `Column` | Vertical flex layout helper. | `import { Column } from '@xaui/native/view'` |
|
|
92
|
+
| `Row` | Horizontal flex layout helper. | `import { Row } from '@xaui/native/view'` |
|
|
93
|
+
| `Spacer` | Flexible space element in layouts. | `import { Spacer } from '@xaui/native/view'` |
|
|
94
|
+
| `Padding` | Wrapper applying padding shortcuts. | `import { Padding } from '@xaui/native/view'` |
|
|
95
|
+
| `Margin` | Wrapper applying margin shortcuts. | `import { Margin } from '@xaui/native/view'` |
|
|
96
|
+
| `SizedBox` | Fixed width/height spacing box. | `import { SizedBox } from '@xaui/native/view'` |
|
|
97
|
+
| `PositionedView` | Absolute/fixed positioning helper view. | `import { PositionedView } from '@xaui/native/view'` |
|
|
98
|
+
| `BlurView` | Blurred background container. | `import { BlurView } from '@xaui/native/view'` |
|
|
99
|
+
| `RoundedView` | View with configurable rounded corners. | `import { RoundedView } from '@xaui/native/view'` |
|
|
100
|
+
| `AspectRatio` | Maintains a fixed aspect ratio for content. | `import { AspectRatio } from '@xaui/native/view'` |
|
|
101
|
+
| `Grid` | Grid layout container. | `import { Grid } from '@xaui/native/view'` |
|
|
102
|
+
| `GridItem` | Item element for `Grid`. | `import { GridItem } from '@xaui/native/view'` |
|
|
103
|
+
| `GridBuilder` | Builder-based grid rendering helper. | `import { GridBuilder } from '@xaui/native/view'` |
|
|
104
|
+
| `ConditionalView` | Conditionally renders with optional animation. | `import { ConditionalView } from '@xaui/native/view'` |
|
|
105
|
+
| `MasonryGrid` | Masonry-style responsive grid container. | `import { MasonryGrid } from '@xaui/native/view'` |
|
|
106
|
+
| `MasonryGridItem` | Item element for `MasonryGrid`. | `import { MasonryGridItem } from '@xaui/native/view'` |
|
|
107
|
+
| `MasonryGridBuilder` | Builder-based masonry rendering helper. | `import { MasonryGridBuilder } from '@xaui/native/view'` |
|
|
108
|
+
| `Carousel` | Swipeable carousel for paged content. | `import { Carousel } from '@xaui/native/carousel'` |
|
|
109
|
+
| `SegmentButton` | Segmented control container. | `import { SegmentButton } from '@xaui/native/segment-button'` |
|
|
110
|
+
| `SegmentButtonItem` | Segment item for `SegmentButton`. | `import { SegmentButtonItem } from '@xaui/native/segment-button'` |
|
|
111
|
+
| `Tabs` | Tabs container with active tab state. | `import { Tabs } from '@xaui/native/tabs'` |
|
|
112
|
+
| `Tab` | Individual tab item for `Tabs`. | `import { Tab } from '@xaui/native/tabs'` |
|
|
113
|
+
| `Pager` | Paged container with swipe navigation. | `import { Pager } from '@xaui/native/pager'` |
|
|
114
|
+
| `PagerItem` | Page item for `Pager`. | `import { PagerItem } from '@xaui/native/pager'` |
|
|
115
|
+
| `Chip` | Compact labeled action/filter chip. | `import { Chip } from '@xaui/native/chip'` |
|
|
116
|
+
| `ChipGroup` | Group manager for chip selection. | `import { ChipGroup } from '@xaui/native/chip'` |
|
|
117
|
+
| `ChipItem` | Item variant used inside `ChipGroup`. | `import { ChipItem } from '@xaui/native/chip'` |
|
|
118
|
+
| `BottomSheet` | Bottom sheet modal/panel. | `import { BottomSheet } from '@xaui/native/bottom-sheet'` |
|
|
119
|
+
| `BottomTabBar` | Bottom navigation tab bar container. | `import { BottomTabBar } from '@xaui/native/bottom-tab-bar'` |
|
|
120
|
+
| `BottomTabBarItem` | Tab item for `BottomTabBar`. | `import { BottomTabBarItem } from '@xaui/native/bottom-tab-bar'` |
|
|
121
|
+
| `Menu` | Anchored contextual menu. | `import { Menu } from '@xaui/native/menu'` |
|
|
122
|
+
| `MenuItem` | Action item for `Menu`. | `import { MenuItem } from '@xaui/native/menu'` |
|
|
123
|
+
| `Fab` | Floating action button. | `import { Fab } from '@xaui/native/fab'` |
|
|
124
|
+
| `FabMenu` | Expandable floating action menu. | `import { FabMenu } from '@xaui/native/fab-menu'` |
|
|
125
|
+
| `FabMenuItem` | Action item for `FabMenu`. | `import { FabMenuItem } from '@xaui/native/fab-menu'` |
|
|
126
|
+
| `FeatureDiscovery` | Spotlight/coach-mark discovery overlay. | `import { FeatureDiscovery } from '@xaui/native/feature-discovery'` |
|
|
127
|
+
| `Card` | Card container surface. | `import { Card } from '@xaui/native/card'` |
|
|
128
|
+
| `CardHeader` | Header section for `Card`. | `import { CardHeader } from '@xaui/native/card'` |
|
|
129
|
+
| `CardBody` | Body/content section for `Card`. | `import { CardBody } from '@xaui/native/card'` |
|
|
130
|
+
| `CardFooter` | Footer/actions section for `Card`. | `import { CardFooter } from '@xaui/native/card'` |
|
|
131
|
+
| `CardTitle` | Title text slot for `Card`. | `import { CardTitle } from '@xaui/native/card'` |
|
|
132
|
+
| `CardDescription` | Description text slot for `Card`. | `import { CardDescription } from '@xaui/native/card'` |
|
|
133
|
+
| `TextInput` | Standard text input field. | `import { TextInput } from '@xaui/native/input'` |
|
|
134
|
+
| `TextArea` | Multiline text input field. | `import { TextArea } from '@xaui/native/input'` |
|
|
135
|
+
| `DateInput` | Date-only formatted input. | `import { DateInput } from '@xaui/native/input'` |
|
|
136
|
+
| `TimeInput` | Time-only formatted input. | `import { TimeInput } from '@xaui/native/input'` |
|
|
137
|
+
| `DateTimeInput` | Combined date-time formatted input. | `import { DateTimeInput } from '@xaui/native/input'` |
|
|
138
|
+
| `OTPInput` | One-time password segmented input. | `import { OTPInput } from '@xaui/native/input'` |
|
|
139
|
+
| `NumberInput` | Numeric input with controls/formatting. | `import { NumberInput } from '@xaui/native/input'` |
|
|
140
|
+
| `List` | List container with selection options. | `import { List } from '@xaui/native/list'` |
|
|
141
|
+
| `ListItem` | Item row for `List`. | `import { ListItem } from '@xaui/native/list'` |
|
|
142
|
+
| `ListBuilder` | Builder-based dynamic list helper. | `import { ListBuilder } from '@xaui/native/list'` |
|
|
143
|
+
| `Radio` | Single radio option control. | `import { Radio } from '@xaui/native/radio'` |
|
|
144
|
+
| `RadioGroup` | Group controller for radio options. | `import { RadioGroup } from '@xaui/native/radio'` |
|
|
145
|
+
| `Toolbar` | App toolbar/action bar container. | `import { Toolbar } from '@xaui/native/toolbar'` |
|
|
146
|
+
| `ToolbarAction` | Action button/item for `Toolbar`. | `import { ToolbarAction } from '@xaui/native/toolbar'` |
|
|
147
|
+
| `AppBar` | Top app bar container. | `import { AppBar } from '@xaui/native/app-bar'` |
|
|
148
|
+
| `AppBarStartContent` | Leading slot for `AppBar`. | `import { AppBarStartContent } from '@xaui/native/app-bar'` |
|
|
149
|
+
| `AppBarContent` | Main content slot for `AppBar`. | `import { AppBarContent } from '@xaui/native/app-bar'` |
|
|
150
|
+
| `AppBarEndContent` | Trailing slot for `AppBar`. | `import { AppBarEndContent } from '@xaui/native/app-bar'` |
|
|
151
|
+
| `TimePicker` | Time picker main component. | `import { TimePicker } from '@xaui/native/timepicker'` |
|
|
152
|
+
| `TimePickerDialog` | Dialog variant for time selection. | `import { TimePickerDialog } from '@xaui/native/timepicker'` |
|
|
153
|
+
| `TimePickerTrigger` | Trigger component for opening time picker UI. | `import { TimePickerTrigger } from '@xaui/native/timepicker'` |
|
|
154
|
+
| `Stepper` | Multi-step progress/navigation component. | `import { Stepper } from '@xaui/native/stepper'` |
|
|
155
|
+
| `StepperItem` | Individual step for `Stepper`. | `import { StepperItem } from '@xaui/native/stepper'` |
|
|
156
|
+
| `MenuBox` | Menu box container with animated items. | `import { MenuBox } from '@xaui/native/menubox'` |
|
|
157
|
+
| `MenuBoxItem` | Action item for `MenuBox`. | `import { MenuBoxItem } from '@xaui/native/menubox'` |
|
|
158
|
+
| `DonutChartCard` | Card component rendering a donut chart. | `import { DonutChartCard } from '@xaui/native/chart'` |
|
|
159
|
+
| `VerticalBarChartCard` | Card component rendering vertical bars. | `import { VerticalBarChartCard } from '@xaui/native/chart'` |
|
|
160
|
+
| `PieChartCard` | Card component rendering a pie chart. | `import { PieChartCard } from '@xaui/native/chart'` |
|
|
161
|
+
| `LineChartCard` | Card component rendering a line chart. | `import { LineChartCard } from '@xaui/native/chart'` |
|
|
162
|
+
| `HeatmapChartCard` | Card component rendering a heatmap chart. | `import { HeatmapChartCard } from '@xaui/native/chart'` |
|
|
167
163
|
|
|
168
164
|
## Theme hooks & utilities
|
|
169
165
|
|
|
170
166
|
- `useXUITheme()` must be used within `XUIProvider`; it throws if the provider is missing.
|
|
171
167
|
- `useXUIColors()` is a shortcut for reading just the color tokens.
|
|
172
168
|
- `useColorMode()` returns `light` or `dark` based on React Native's `useColorScheme()`.
|
|
173
|
-
- `XUIProvider` accepts
|
|
169
|
+
- `XUIProvider` accepts a single `theme` object (`DeepPartial<XUITheme>`) for partial token overrides.
|
|
174
170
|
|
|
175
171
|
## Testing & build
|
|
176
172
|
|
package/dist/alert/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk7UFBLUMVcjs = require('../chunk-7UFBLUMV.cjs');
|
|
6
6
|
|
|
7
7
|
// src/components/alert/alert.tsx
|
|
8
8
|
|
|
@@ -64,7 +64,7 @@ var styles = _reactnative.StyleSheet.create({
|
|
|
64
64
|
|
|
65
65
|
var _core = require('@xaui/core');
|
|
66
66
|
var useAlertColorScheme = (themeColor) => {
|
|
67
|
-
const theme =
|
|
67
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
68
68
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
69
69
|
return {
|
|
70
70
|
theme,
|
|
@@ -75,8 +75,7 @@ var useAlertColorScheme = (themeColor) => {
|
|
|
75
75
|
var useAlertContainerStyles = (themeColor, variant) => {
|
|
76
76
|
const { theme, colorScheme, isDefault } = useAlertColorScheme(themeColor);
|
|
77
77
|
const containerStyles = _react.useMemo.call(void 0, () => {
|
|
78
|
-
const
|
|
79
|
-
const backgroundColor = variant === "solid" ? isDark ? colorScheme.background : colorScheme.main : variant === "flat" ? isDark ? _core.withOpacity.call(void 0, colorScheme.background, 0.5) : colorScheme.background : variant === "faded" ? _core.withOpacity.call(void 0, colorScheme.background, 0.75) : "transparent";
|
|
78
|
+
const backgroundColor = variant === "solid" ? colorScheme.main : variant === "flat" ? colorScheme.container : variant === "faded" ? _core.withOpacity.call(void 0, colorScheme.container, 0.75) : "transparent";
|
|
80
79
|
const borderWidth = variant === "bordered" || variant === "faded" ? theme.borderWidth.md : 0;
|
|
81
80
|
const borderColor = variant === "bordered" ? _core.withOpacity.call(void 0, colorScheme.main, 0.75) : variant === "faded" ? _core.withOpacity.call(void 0, isDefault ? theme.colors.foreground : colorScheme.main, 0.25) : "transparent";
|
|
82
81
|
return {
|
|
@@ -92,8 +91,7 @@ var useAlertContainerStyles = (themeColor, variant) => {
|
|
|
92
91
|
var useAlertIconWrapperStyles = (themeColor, variant) => {
|
|
93
92
|
const { theme, colorScheme, isDefault } = useAlertColorScheme(themeColor);
|
|
94
93
|
const iconWrapperStyles = _react.useMemo.call(void 0, () => {
|
|
95
|
-
const
|
|
96
|
-
const backgroundColor = variant === "solid" ? _core.withOpacity.call(void 0, isDark ? colorScheme.main : colorScheme.foreground, 0.16) : _core.withOpacity.call(void 0, isDefault ? theme.colors.foreground : colorScheme.main, 0.12);
|
|
94
|
+
const backgroundColor = variant === "solid" ? _core.withOpacity.call(void 0, colorScheme.onMain, 0.16) : _core.withOpacity.call(void 0, isDefault ? theme.colors.foreground : colorScheme.main, 0.12);
|
|
97
95
|
const borderWidth = variant === "bordered" || variant === "faded" ? theme.borderWidth.xs : 0;
|
|
98
96
|
const borderColor = _core.withOpacity.call(void 0,
|
|
99
97
|
isDefault ? theme.colors.foreground : colorScheme.main,
|
|
@@ -110,8 +108,7 @@ var useAlertIconWrapperStyles = (themeColor, variant) => {
|
|
|
110
108
|
var useAlertTextStyles = (themeColor, variant) => {
|
|
111
109
|
const { theme, colorScheme, isDefault } = useAlertColorScheme(themeColor);
|
|
112
110
|
const textStyles = _react.useMemo.call(void 0, () => {
|
|
113
|
-
const
|
|
114
|
-
const baseTextColor = variant === "solid" ? isDark ? colorScheme.main : colorScheme.foreground : isDefault ? theme.colors.foreground : colorScheme.main;
|
|
111
|
+
const baseTextColor = variant === "solid" ? colorScheme.onMain : variant === "flat" || variant === "faded" ? isDefault ? theme.colors.foreground : colorScheme.onContainer : isDefault ? theme.colors.foreground : colorScheme.main;
|
|
115
112
|
return {
|
|
116
113
|
titleStyles: {
|
|
117
114
|
color: baseTextColor,
|
|
@@ -240,7 +237,7 @@ var Alert = ({
|
|
|
240
237
|
const visible = isControlled ? isVisible : internalVisible;
|
|
241
238
|
const opacity = _reactnativereanimated.useSharedValue.call(void 0, 1);
|
|
242
239
|
const scale = _reactnativereanimated.useSharedValue.call(void 0, 1);
|
|
243
|
-
const radiusStyles =
|
|
240
|
+
const radiusStyles = _chunk7UFBLUMVcjs.useBorderRadiusStyles.call(void 0, radius);
|
|
244
241
|
const containerStyles = useAlertContainerStyles(themeColor, variant);
|
|
245
242
|
const iconWrapperStyles = useAlertIconWrapperStyles(themeColor, variant);
|
|
246
243
|
const { titleStyles, descriptionStyles, iconColor, closeButtonColor } = useAlertTextStyles(themeColor, variant);
|
package/dist/alert/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import "../chunk-SHBDANQN.js";
|
|
|
2
2
|
import {
|
|
3
3
|
useBorderRadiusStyles,
|
|
4
4
|
useXUITheme
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RBSA4NH4.js";
|
|
6
6
|
|
|
7
7
|
// src/components/alert/alert.tsx
|
|
8
8
|
import React2, {
|
|
@@ -75,8 +75,7 @@ var useAlertColorScheme = (themeColor) => {
|
|
|
75
75
|
var useAlertContainerStyles = (themeColor, variant) => {
|
|
76
76
|
const { theme, colorScheme, isDefault } = useAlertColorScheme(themeColor);
|
|
77
77
|
const containerStyles = useMemo(() => {
|
|
78
|
-
const
|
|
79
|
-
const backgroundColor = variant === "solid" ? isDark ? colorScheme.background : colorScheme.main : variant === "flat" ? isDark ? withOpacity(colorScheme.background, 0.5) : colorScheme.background : variant === "faded" ? withOpacity(colorScheme.background, 0.75) : "transparent";
|
|
78
|
+
const backgroundColor = variant === "solid" ? colorScheme.main : variant === "flat" ? colorScheme.container : variant === "faded" ? withOpacity(colorScheme.container, 0.75) : "transparent";
|
|
80
79
|
const borderWidth = variant === "bordered" || variant === "faded" ? theme.borderWidth.md : 0;
|
|
81
80
|
const borderColor = variant === "bordered" ? withOpacity(colorScheme.main, 0.75) : variant === "faded" ? withOpacity(isDefault ? theme.colors.foreground : colorScheme.main, 0.25) : "transparent";
|
|
82
81
|
return {
|
|
@@ -92,8 +91,7 @@ var useAlertContainerStyles = (themeColor, variant) => {
|
|
|
92
91
|
var useAlertIconWrapperStyles = (themeColor, variant) => {
|
|
93
92
|
const { theme, colorScheme, isDefault } = useAlertColorScheme(themeColor);
|
|
94
93
|
const iconWrapperStyles = useMemo(() => {
|
|
95
|
-
const
|
|
96
|
-
const backgroundColor = variant === "solid" ? withOpacity(isDark ? colorScheme.main : colorScheme.foreground, 0.16) : withOpacity(isDefault ? theme.colors.foreground : colorScheme.main, 0.12);
|
|
94
|
+
const backgroundColor = variant === "solid" ? withOpacity(colorScheme.onMain, 0.16) : withOpacity(isDefault ? theme.colors.foreground : colorScheme.main, 0.12);
|
|
97
95
|
const borderWidth = variant === "bordered" || variant === "faded" ? theme.borderWidth.xs : 0;
|
|
98
96
|
const borderColor = withOpacity(
|
|
99
97
|
isDefault ? theme.colors.foreground : colorScheme.main,
|
|
@@ -110,8 +108,7 @@ var useAlertIconWrapperStyles = (themeColor, variant) => {
|
|
|
110
108
|
var useAlertTextStyles = (themeColor, variant) => {
|
|
111
109
|
const { theme, colorScheme, isDefault } = useAlertColorScheme(themeColor);
|
|
112
110
|
const textStyles = useMemo(() => {
|
|
113
|
-
const
|
|
114
|
-
const baseTextColor = variant === "solid" ? isDark ? colorScheme.main : colorScheme.foreground : isDefault ? theme.colors.foreground : colorScheme.main;
|
|
111
|
+
const baseTextColor = variant === "solid" ? colorScheme.onMain : variant === "flat" || variant === "faded" ? isDefault ? theme.colors.foreground : colorScheme.onContainer : isDefault ? theme.colors.foreground : colorScheme.main;
|
|
115
112
|
return {
|
|
116
113
|
titleStyles: {
|
|
117
114
|
color: baseTextColor,
|
package/dist/app-bar/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('../chunk-56RPWZD2.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7UFBLUMVcjs = require('../chunk-7UFBLUMV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/app-bar/app-bar.tsx
|
|
7
7
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -23,7 +23,7 @@ var resolveShadowStyle = (elevation, shadows) => {
|
|
|
23
23
|
return shadows.xl;
|
|
24
24
|
};
|
|
25
25
|
var useAppBarElevationStyles = (elevation = 0) => {
|
|
26
|
-
const theme =
|
|
26
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
27
27
|
return _react.useMemo.call(void 0, () => {
|
|
28
28
|
if (elevation <= 0) {
|
|
29
29
|
return {};
|
|
@@ -94,13 +94,13 @@ var AppBar = ({
|
|
|
94
94
|
children,
|
|
95
95
|
style
|
|
96
96
|
}) => {
|
|
97
|
-
const theme =
|
|
97
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
98
98
|
const elevationStyles = useAppBarElevationStyles(elevation);
|
|
99
99
|
const isFloating = variant === "floating";
|
|
100
100
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
101
101
|
const colorScheme = theme.colors[safeThemeColor];
|
|
102
102
|
const isDefaultThemeColor = safeThemeColor === "default";
|
|
103
|
-
const backgroundColor = isDefaultThemeColor ? theme.mode === "dark" ? theme.colors.default.
|
|
103
|
+
const backgroundColor = isDefaultThemeColor ? theme.mode === "dark" ? theme.colors.default.container : isFloating ? theme.palette.gray[200] : "#FFFFFF" : colorScheme.container;
|
|
104
104
|
const borderBottomColor = isDefaultThemeColor ? theme.mode === "dark" ? "rgba(255, 255, 255, 0.06)" : "rgba(0, 0, 0, 0.08)" : colorScheme.main;
|
|
105
105
|
return /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: [styles.container, isFloating && styles.floatingContainer] }, /* @__PURE__ */ _react2.default.createElement(
|
|
106
106
|
_reactnative.View,
|
package/dist/app-bar/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-SHBDANQN.js";
|
|
2
2
|
import {
|
|
3
3
|
useXUITheme
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RBSA4NH4.js";
|
|
5
5
|
|
|
6
6
|
// src/components/app-bar/app-bar.tsx
|
|
7
7
|
import React from "react";
|
|
@@ -100,7 +100,7 @@ var AppBar = ({
|
|
|
100
100
|
const safeThemeColor = getSafeThemeColor(themeColor);
|
|
101
101
|
const colorScheme = theme.colors[safeThemeColor];
|
|
102
102
|
const isDefaultThemeColor = safeThemeColor === "default";
|
|
103
|
-
const backgroundColor = isDefaultThemeColor ? theme.mode === "dark" ? theme.colors.default.
|
|
103
|
+
const backgroundColor = isDefaultThemeColor ? theme.mode === "dark" ? theme.colors.default.container : isFloating ? theme.palette.gray[200] : "#FFFFFF" : colorScheme.container;
|
|
104
104
|
const borderBottomColor = isDefaultThemeColor ? theme.mode === "dark" ? "rgba(255, 255, 255, 0.06)" : "rgba(0, 0, 0, 0.08)" : colorScheme.main;
|
|
105
105
|
return /* @__PURE__ */ React.createElement(View, { style: [styles.container, isFloating && styles.floatingContainer] }, /* @__PURE__ */ React.createElement(
|
|
106
106
|
View,
|
|
@@ -5,7 +5,7 @@ require('../chunk-56RPWZD2.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7UFBLUMVcjs = require('../chunk-7UFBLUMV.cjs');
|
|
9
9
|
|
|
10
10
|
// src/components/autocomplete/autocomplete.tsx
|
|
11
11
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -24,13 +24,13 @@ var AutocompleteContext = _react.createContext.call(void 0, {
|
|
|
24
24
|
var _core = require('@xaui/core');
|
|
25
25
|
var _palette = require('@xaui/core/palette');
|
|
26
26
|
var useAutocompleteColorScheme = (themeColor) => {
|
|
27
|
-
const theme =
|
|
27
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
28
28
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
29
29
|
const colorScheme = theme.colors[safeThemeColor];
|
|
30
30
|
return { theme, colorScheme };
|
|
31
31
|
};
|
|
32
32
|
var useAutocompleteSizeStyles = (size) => {
|
|
33
|
-
const theme =
|
|
33
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
34
34
|
return _react.useMemo.call(void 0, () => {
|
|
35
35
|
const sizes = {
|
|
36
36
|
xs: {
|
|
@@ -66,7 +66,7 @@ var useAutocompleteSizeStyles = (size) => {
|
|
|
66
66
|
}, [size, theme]);
|
|
67
67
|
};
|
|
68
68
|
var useAutocompleteRadiusStyles = (radius) => {
|
|
69
|
-
const theme =
|
|
69
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
70
70
|
const radiusStyles = _react.useMemo.call(void 0, () => {
|
|
71
71
|
const radii = {
|
|
72
72
|
none: theme.borderRadius.none,
|
|
@@ -93,28 +93,23 @@ var useAutocompleteVariantStyles = (themeColor, variant, isInvalid) => {
|
|
|
93
93
|
const { theme, colorScheme } = useAutocompleteColorScheme(themeColor);
|
|
94
94
|
return _react.useMemo.call(void 0, () => {
|
|
95
95
|
let borderColor = isInvalid ? theme.colors.danger.main : colorScheme.main;
|
|
96
|
-
if (
|
|
96
|
+
if (variant === "bordered" && themeColor === "default") {
|
|
97
97
|
borderColor = _palette.colors.gray[300];
|
|
98
98
|
}
|
|
99
99
|
const styles4 = {
|
|
100
|
-
|
|
100
|
+
bordered: {
|
|
101
101
|
backgroundColor: "transparent",
|
|
102
102
|
borderWidth: theme.borderWidth.md,
|
|
103
103
|
borderColor
|
|
104
104
|
},
|
|
105
|
-
|
|
106
|
-
backgroundColor: colorScheme.
|
|
105
|
+
colored: {
|
|
106
|
+
backgroundColor: _core.withOpacity.call(void 0, colorScheme.container, 0.5),
|
|
107
107
|
borderWidth: 0
|
|
108
108
|
},
|
|
109
109
|
light: {
|
|
110
110
|
backgroundColor: "transparent",
|
|
111
111
|
borderWidth: 0
|
|
112
112
|
},
|
|
113
|
-
faded: {
|
|
114
|
-
backgroundColor: `${colorScheme.background}90`,
|
|
115
|
-
borderWidth: theme.borderWidth.md,
|
|
116
|
-
borderColor
|
|
117
|
-
},
|
|
118
113
|
underlined: {
|
|
119
114
|
backgroundColor: "transparent",
|
|
120
115
|
borderBottomWidth: theme.borderWidth.md,
|
|
@@ -140,7 +135,7 @@ var useAutocompleteLabelStyle = (themeColor, isInvalid, labelSize) => {
|
|
|
140
135
|
}, [isInvalid, labelSize, theme, themeColor, colorScheme]);
|
|
141
136
|
};
|
|
142
137
|
var useAutocompleteHelperColor = (isInvalid) => {
|
|
143
|
-
const theme =
|
|
138
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
144
139
|
return _react.useMemo.call(void 0, () => {
|
|
145
140
|
if (isInvalid) {
|
|
146
141
|
return theme.colors.danger.main;
|
|
@@ -434,7 +429,7 @@ var AutocompleteDialogHeader = ({
|
|
|
434
429
|
onFocus,
|
|
435
430
|
onBlur
|
|
436
431
|
}) => {
|
|
437
|
-
const theme =
|
|
432
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
438
433
|
return /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles2.header }, title ? /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: styles2.titleRow }, /* @__PURE__ */ _react2.default.createElement(
|
|
439
434
|
_reactnative.Pressable,
|
|
440
435
|
{
|
|
@@ -455,7 +450,7 @@ var AutocompleteDialogHeader = ({
|
|
|
455
450
|
style: [
|
|
456
451
|
styles2.input,
|
|
457
452
|
{
|
|
458
|
-
backgroundColor: theme.colors.default.
|
|
453
|
+
backgroundColor: theme.colors.default.container,
|
|
459
454
|
color: theme.colors.foreground
|
|
460
455
|
},
|
|
461
456
|
inputTextStyle
|
|
@@ -534,7 +529,7 @@ var AutocompleteDialog = ({
|
|
|
534
529
|
onFocus,
|
|
535
530
|
onBlur
|
|
536
531
|
}) => {
|
|
537
|
-
const theme =
|
|
532
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
538
533
|
const { width: screenWidth, height: screenHeight } = _reactnative.useWindowDimensions.call(void 0, );
|
|
539
534
|
const fadeAnim = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
|
540
535
|
const slideAnim = _react.useRef.call(void 0, new _reactnative.Animated.Value(0)).current;
|
|
@@ -562,7 +557,7 @@ var AutocompleteDialog = ({
|
|
|
562
557
|
[children]
|
|
563
558
|
);
|
|
564
559
|
const checkmarkColor = theme.colors[themeColor].main;
|
|
565
|
-
const checkmarkBackgroundColor = theme.colors[themeColor].
|
|
560
|
+
const checkmarkBackgroundColor = theme.colors[themeColor].container;
|
|
566
561
|
useAutocompleteDialogAnimation({ visible, fadeAnim, slideAnim, scaleAnim });
|
|
567
562
|
_react.useEffect.call(void 0, () => {
|
|
568
563
|
if (!visible) return;
|
|
@@ -632,7 +627,7 @@ var AutocompleteDialog = ({
|
|
|
632
627
|
onBlur
|
|
633
628
|
}
|
|
634
629
|
);
|
|
635
|
-
return /* @__PURE__ */ _react2.default.createElement(
|
|
630
|
+
return /* @__PURE__ */ _react2.default.createElement(_chunk7UFBLUMVcjs.Portal, null, /* @__PURE__ */ _react2.default.createElement(_reactnative.View, { style: [overlayStyle, style] }, /* @__PURE__ */ _react2.default.createElement(_reactnative.Animated.View, { style: [styles2.backdrop, { opacity: fadeAnim }] }), /* @__PURE__ */ _react2.default.createElement(_reactnative.Animated.View, { style: [styles2.dialogContainer, containerAnimatedStyle] }, /* @__PURE__ */ _react2.default.createElement(
|
|
636
631
|
_reactnative.View,
|
|
637
632
|
{
|
|
638
633
|
style: [styles2.container, { backgroundColor: theme.colors.background }]
|
|
@@ -748,7 +743,7 @@ var AutocompleteTrigger = ({
|
|
|
748
743
|
var defaultPlaceholder = "Search...";
|
|
749
744
|
var Autocomplete = ({
|
|
750
745
|
children,
|
|
751
|
-
variant = "
|
|
746
|
+
variant = "colored",
|
|
752
747
|
themeColor = "default",
|
|
753
748
|
size = "md",
|
|
754
749
|
radius = "md",
|
|
@@ -820,7 +815,7 @@ var Autocomplete = ({
|
|
|
820
815
|
(item) => defaultFilterFunction(item.labelText, currentInputValue)
|
|
821
816
|
);
|
|
822
817
|
}, [disableLocalFilter, items, currentInputValue]);
|
|
823
|
-
const theme =
|
|
818
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
824
819
|
const sizeStyles = useAutocompleteSizeStyles(size);
|
|
825
820
|
const { radiusStyles } = useAutocompleteRadiusStyles(radius);
|
|
826
821
|
const variantStyles = useAutocompleteVariantStyles(themeColor, variant, isInvalid);
|
|
@@ -981,7 +976,7 @@ var styles3 = _reactnative.StyleSheet.create({
|
|
|
981
976
|
|
|
982
977
|
|
|
983
978
|
var useAutocompleteItemSizeStyles = (size) => {
|
|
984
|
-
const theme =
|
|
979
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
985
980
|
return _react.useMemo.call(void 0, () => {
|
|
986
981
|
const sizes = {
|
|
987
982
|
xs: {
|
|
@@ -1013,7 +1008,7 @@ var useAutocompleteItemSizeStyles = (size) => {
|
|
|
1013
1008
|
}, [size, theme]);
|
|
1014
1009
|
};
|
|
1015
1010
|
var useAutocompleteItemBackgroundColor = (themeColor, isSelected) => {
|
|
1016
|
-
const theme =
|
|
1011
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
1017
1012
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
1018
1013
|
const colorScheme = theme.colors[safeThemeColor];
|
|
1019
1014
|
return _react.useMemo.call(void 0, () => {
|
|
@@ -1021,7 +1016,7 @@ var useAutocompleteItemBackgroundColor = (themeColor, isSelected) => {
|
|
|
1021
1016
|
}, [isSelected, colorScheme]);
|
|
1022
1017
|
};
|
|
1023
1018
|
var useAutocompleteItemTextColors = () => {
|
|
1024
|
-
const theme =
|
|
1019
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
1025
1020
|
return _react.useMemo.call(void 0, () => {
|
|
1026
1021
|
return {
|
|
1027
1022
|
textColor: theme.colors.foreground,
|
|
@@ -1030,7 +1025,7 @@ var useAutocompleteItemTextColors = () => {
|
|
|
1030
1025
|
}, [theme]);
|
|
1031
1026
|
};
|
|
1032
1027
|
var useAutocompleteItemCheckmarkColor = (themeColor) => {
|
|
1033
|
-
const theme =
|
|
1028
|
+
const theme = _chunk7UFBLUMVcjs.useXUITheme.call(void 0, );
|
|
1034
1029
|
const safeThemeColor = _core.getSafeThemeColor.call(void 0, themeColor);
|
|
1035
1030
|
const colorScheme = theme.colors[safeThemeColor];
|
|
1036
1031
|
return _react.useMemo.call(void 0, () => {
|