@idealyst/navigation 1.0.41 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/navigation",
3
- "version": "1.0.41",
3
+ "version": "1.0.44",
4
4
  "description": "Cross-platform navigation library for React and React Native",
5
5
  "main": "src/index.ts",
6
6
  "module": "src/index.ts",
@@ -37,8 +37,8 @@
37
37
  "publish:npm": "npm publish"
38
38
  },
39
39
  "peerDependencies": {
40
- "@idealyst/components": "^1.0.41",
41
- "@idealyst/theme": "^1.0.41",
40
+ "@idealyst/components": "^1.0.44",
41
+ "@idealyst/theme": "^1.0.44",
42
42
  "@react-navigation/bottom-tabs": "^7.0.0",
43
43
  "@react-navigation/drawer": "^7.0.0",
44
44
  "@react-navigation/native": "^7.0.0",
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- import { AvatarExamples, BadgeExamples, ButtonExamples, CardExamples, CheckboxExamples, DividerExamples, IconExamples, InputExamples, TextExamples, ViewExamples, ThemeExtensionExamples } from "../../../components/src/examples";
2
+ import { AvatarExamples, BadgeExamples, ButtonExamples, CardExamples, CheckboxExamples, DialogExamples, DividerExamples, IconExamples, InputExamples, PopoverExamples, TextExamples, ViewExamples, ThemeExtensionExamples } from "../../../components/src/examples";
3
+ import { DataGridShowcase } from "../../../datagrid/src/examples";
4
+ import { DatePickerExamples } from "../../../datepicker/src/examples";
3
5
  import { Screen, Text, View, Button } from "../../../components/src";
4
6
  import { UnistylesRuntime } from 'react-native-unistyles';
5
7
  import { RouteParam } from '../routing';
@@ -129,6 +131,30 @@ const IconDrawerScreen = () => (
129
131
  </Screen>
130
132
  );
131
133
 
134
+ const DialogDrawerScreen = () => (
135
+ <Screen>
136
+ <DialogExamples />
137
+ </Screen>
138
+ );
139
+
140
+ const PopoverDrawerScreen = () => (
141
+ <Screen>
142
+ <PopoverExamples />
143
+ </Screen>
144
+ );
145
+
146
+ const DataGridDrawerScreen = () => (
147
+ <Screen>
148
+ <DataGridShowcase />
149
+ </Screen>
150
+ );
151
+
152
+ const DatePickerDrawerScreen = () => (
153
+ <Screen>
154
+ <DatePickerExamples />
155
+ </Screen>
156
+ );
157
+
132
158
  const ThemeExtensionDrawerScreen = () => (
133
159
  <Screen>
134
160
  <ThemeExtensionExamples />
@@ -152,6 +178,10 @@ const DrawerRouter: RouteParam = {
152
178
  { path: "text", component: TextDrawerScreen },
153
179
  { path: "view", component: ViewDrawerScreen },
154
180
  { path: "icon", component: IconDrawerScreen },
181
+ { path: "dialog", component: DialogDrawerScreen },
182
+ { path: "popover", component: PopoverDrawerScreen },
183
+ { path: "datagrid", component: DataGridDrawerScreen },
184
+ { path: "datepicker", component: DatePickerDrawerScreen },
155
185
  { path: "theme-extension", component: ThemeExtensionDrawerScreen },
156
186
  ],
157
187
  };
@@ -1,8 +1,10 @@
1
- import React, { useState } from 'react';
2
- import { AvatarExamples, BadgeExamples, ButtonExamples, CardExamples, CheckboxExamples, DividerExamples, IconExamples, InputExamples, ScreenExamples, TextExamples, ViewExamples, ThemeExtensionExamples } from "../../../components/src/examples";
1
+ import React from 'react';
2
+ import { AvatarExamples, BadgeExamples, ButtonExamples, CardExamples, CheckboxExamples, DialogExamples, DividerExamples, IconExamples, InputExamples, PopoverExamples, ScreenExamples, TextExamples, ViewExamples, ThemeExtensionExamples } from "../../../components/src/examples";
3
+ import { DataGridShowcase } from "../../../datagrid/src/examples";
4
+ import { DatePickerExamples } from "../../../datepicker/src/examples";
3
5
  import { Button, Divider, Screen, Text, View } from "../../../components/src";
4
6
  import { useNavigator } from "../context";
5
- import { UnistylesRuntime, StyleSheet } from 'react-native-unistyles';
7
+ import { UnistylesRuntime } from 'react-native-unistyles';
6
8
  import { GeneralLayout } from '../layouts/GeneralLayout';
7
9
  import { RouteParam } from '../routing';
8
10
  import { getNextTheme, getThemeDisplayName, isHighContrastTheme } from './unistyles';
@@ -173,6 +175,49 @@ const HomeScreen = () => {
173
175
  }}>
174
176
  Icon
175
177
  </Button>
178
+ <Button
179
+ onPress={() => {
180
+ navigator.navigate({
181
+ path: "/dialog",
182
+ vars: {},
183
+ });
184
+ }}>
185
+ Dialog
186
+ </Button>
187
+ <Button
188
+ onPress={() => {
189
+ navigator.navigate({
190
+ path: "/popover",
191
+ vars: {},
192
+ });
193
+ }}>
194
+ Popover
195
+ </Button>
196
+
197
+ <Divider spacing="medium" />
198
+ <Text size="small" weight="semibold" color="secondary">Data Components</Text>
199
+ <Button
200
+ variant="outlined"
201
+ intent="neutral"
202
+ onPress={() => {
203
+ navigator.navigate({
204
+ path: "/datagrid",
205
+ vars: {},
206
+ });
207
+ }}>
208
+ 📊 DataGrid Showcase
209
+ </Button>
210
+ <Button
211
+ variant="outlined"
212
+ intent="neutral"
213
+ onPress={() => {
214
+ navigator.navigate({
215
+ path: "/datepicker",
216
+ vars: {},
217
+ });
218
+ }}>
219
+ 📅 DatePicker Examples
220
+ </Button>
176
221
 
177
222
  <Divider spacing="medium" />
178
223
  <Text size="small" weight="semibold" color="secondary">Theme System</Text>
@@ -238,6 +283,10 @@ const StackRouter: RouteParam = {
238
283
  { path: "view", component: ViewExamples},
239
284
  { path: "screen", component: ScreenExamples},
240
285
  { path: "icon", component: IconExamples},
286
+ { path: "dialog", component: DialogExamples},
287
+ { path: "popover", component: PopoverExamples},
288
+ { path: "datagrid", component: DataGridShowcase},
289
+ { path: "datepicker", component: DatePickerExamples},
241
290
  { path: "theme-extension", component: ThemeExtensionExamples},
242
291
  ],
243
292
  };
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- import { AvatarExamples, BadgeExamples, ButtonExamples, CardExamples, CheckboxExamples, DividerExamples, IconExamples, InputExamples, TextExamples, ViewExamples, ThemeExtensionExamples } from "../../../components/src/examples";
2
+ import { AvatarExamples, BadgeExamples, ButtonExamples, CardExamples, CheckboxExamples, DialogExamples, DividerExamples, IconExamples, InputExamples, PopoverExamples, TextExamples, ViewExamples, ThemeExtensionExamples } from "../../../components/src/examples";
3
+ import { DataGridShowcase } from "../../../datagrid/src/examples";
4
+ import { DatePickerExamples } from "../../../datepicker/src/examples";
3
5
  import { Screen, Text, View, Button } from "../../../components/src";
4
6
  import { UnistylesRuntime } from 'react-native-unistyles';
5
7
  import { RouteParam } from '../routing';
@@ -127,6 +129,30 @@ const IconTabScreen = () => (
127
129
  </Screen>
128
130
  );
129
131
 
132
+ const DialogTabScreen = () => (
133
+ <Screen>
134
+ <DialogExamples />
135
+ </Screen>
136
+ );
137
+
138
+ const PopoverTabScreen = () => (
139
+ <Screen>
140
+ <PopoverExamples />
141
+ </Screen>
142
+ );
143
+
144
+ const DataGridTabScreen = () => (
145
+ <Screen>
146
+ <DataGridShowcase />
147
+ </Screen>
148
+ );
149
+
150
+ const DatePickerTabScreen = () => (
151
+ <Screen>
152
+ <DatePickerExamples />
153
+ </Screen>
154
+ );
155
+
130
156
  const ThemeExtensionTabScreen = () => (
131
157
  <Screen>
132
158
  <ThemeExtensionExamples />
@@ -150,6 +176,10 @@ const TabRouter: RouteParam = {
150
176
  { path: "text", component: TextTabScreen },
151
177
  { path: "view", component: ViewTabScreen },
152
178
  { path: "icon", component: IconTabScreen },
179
+ { path: "dialog", component: DialogTabScreen },
180
+ { path: "popover", component: PopoverTabScreen },
181
+ { path: "datagrid", component: DataGridTabScreen },
182
+ { path: "datepicker", component: DatePickerTabScreen },
153
183
  { path: "theme-extension", component: ThemeExtensionTabScreen },
154
184
  ],
155
185
  }