@flipova/foundation 2.1.0 → 2.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/CHANGELOG.md +14 -0
- package/README.md +42 -3
- package/components/ui/gluestack-ui-provider/index.tsx +45 -25
- package/design/documentation.xml +60 -3
- package/design/tools/design.js +6 -1
- package/design/tools/npm.js +104 -3
- package/dist/{chunk-WNVU3BM2.mjs → chunk-HF2IPXOT.mjs} +25 -22
- package/dist/chunk-HF2IPXOT.mjs.map +1 -0
- package/dist/{chunk-LV4UIEQN.js → chunk-TDW7UKG6.js} +25 -21
- package/dist/chunk-TDW7UKG6.js.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +292 -288
- package/dist/index.mjs +1 -1
- package/dist/ui/index.d.mts +18 -3
- package/dist/ui/index.d.ts +18 -3
- package/dist/ui/index.js +292 -288
- package/dist/ui/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-LV4UIEQN.js.map +0 -1
- package/dist/chunk-WNVU3BM2.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cce3ac0: flipova-design adopt: an app copies the design registries into design/ (and only the registries), the manifest outputs are rewritten to theme/config.ts and theme/tokens.js, and theme/provider.tsx is created
|
|
8
|
+
createGluestackUIProvider(theme) is exported from @flipova/foundation/ui, so an app mounts a provider built from its own generated theme; GluestackUIProvider remains the package theme
|
|
9
|
+
design.js resolves the Python sources from the package instead of the registry directory, so an adopted copy without tools/ has a working generator
|
|
10
|
+
|
|
11
|
+
## 2.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 39083f9: align the optional expo-glass-effect peer with the expo peer: >=55.0.0 instead of >=57.0.0, so an Expo SDK 55 app can resolve the tree
|
|
16
|
+
|
|
3
17
|
## 2.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -67,15 +67,54 @@ command only injects the app-level wiring that the package cannot own:
|
|
|
67
67
|
| :--- | :--- |
|
|
68
68
|
| `npx flipova-design where` | print the resolved registries/artifacts paths |
|
|
69
69
|
| `npx flipova-design inject` | re-run the injection only |
|
|
70
|
+
| `npx flipova-design adopt` | copy the registries into the project and own them |
|
|
70
71
|
| `npx flipova-design gen [--check]` | compile the registries into `config.ts` + `tokens.js` |
|
|
71
72
|
| `npx flipova-design lint` | XSD-validate the registries |
|
|
72
73
|
|
|
73
74
|
`gen` writes into the resolved output root, i.e. straight into the installed
|
|
74
75
|
package (`node_modules/@flipova/foundation/components/ui/gluestack-ui-provider`),
|
|
75
76
|
so the artifacts consumed by `@flipova/foundation/tokens` and
|
|
76
|
-
`@flipova/foundation/ui` are always the ones the pipeline produced.
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
`@flipova/foundation/ui` are always the ones the pipeline produced.
|
|
78
|
+
|
|
79
|
+
## Own the design system
|
|
80
|
+
|
|
81
|
+
An app that wants its own branding adopts the registries:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npx flipova-design adopt
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
That copies `manifest.xml`, `schema.xsd`, `tokens.xml`, `themes.xml`,
|
|
88
|
+
`documentation.xml` and `canonical.index.txt` into `design/` - and **not** the
|
|
89
|
+
toolchain, which stays in `node_modules`. It rewrites the manifest outputs to
|
|
90
|
+
`theme/config.ts` and `theme/tokens.js`, and creates `theme/provider.tsx`.
|
|
91
|
+
|
|
92
|
+
From then on the project is the source of truth:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# edit design/tokens.xml and design/themes.xml - the colours, the scales, the roles
|
|
96
|
+
npm run design:gen # -> theme/config.ts + theme/tokens.js
|
|
97
|
+
npm run design:verify # the registries are in step with the artifacts
|
|
98
|
+
npm run design:check # determinism + XSD, on YOUR registries
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Wire the two artifacts into the app:
|
|
102
|
+
|
|
103
|
+
```js
|
|
104
|
+
// tailwind.config.js
|
|
105
|
+
const tokens = require('./theme/tokens');
|
|
106
|
+
module.exports = { presets: [require('nativewind/preset')], theme: { extend: tokens.theme } };
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
```tsx
|
|
110
|
+
// theme/provider.tsx (generated by adopt)
|
|
111
|
+
import { createGluestackUIProvider } from '@flipova/foundation/ui';
|
|
112
|
+
import { config } from './config';
|
|
113
|
+
export const AppThemeProvider = createGluestackUIProvider(config);
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
The package still provides the components, the generator and every token the app
|
|
117
|
+
does not override. `npx flipova-design where` always says which side is in charge.
|
|
79
118
|
|
|
80
119
|
The generated theme is wired into your Tailwind config (app-level files are not
|
|
81
120
|
shipped by the package):
|
|
@@ -11,37 +11,57 @@ import {
|
|
|
11
11
|
|
|
12
12
|
export type ModeType = 'light' | 'dark' | 'system';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* The theme a provider is built from: the same shape `config.ts` generates, so
|
|
16
|
+
* the file an app regenerates from its own registries is accepted as it is.
|
|
17
|
+
*/
|
|
18
|
+
export type GluestackThemeConfig = Record<string, Record<string, string>>;
|
|
19
|
+
|
|
14
20
|
// Re-export color hooks
|
|
15
21
|
export const useGluestackColors = useGluestackColorsHook;
|
|
16
22
|
export const useCalendarTheme = useCalendarThemeHook;
|
|
17
23
|
export type { GluestackColors } from './useGluestackColors';
|
|
18
24
|
|
|
19
|
-
export
|
|
20
|
-
mode = 'light',
|
|
21
|
-
...props
|
|
22
|
-
}: {
|
|
25
|
+
export interface GluestackUIProviderProps {
|
|
23
26
|
mode?: ModeType;
|
|
24
27
|
children?: React.ReactNode;
|
|
25
28
|
style?: ViewProps['style'];
|
|
26
|
-
}) {
|
|
27
|
-
const { colorScheme, setColorScheme } = useColorScheme();
|
|
28
|
-
|
|
29
|
-
useEffect(() => {
|
|
30
|
-
setColorScheme(mode);
|
|
31
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
32
|
-
}, [mode]);
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<View
|
|
36
|
-
style={[
|
|
37
|
-
config[colorScheme!],
|
|
38
|
-
{ flex: 1, height: '100%', width: '100%' },
|
|
39
|
-
props.style,
|
|
40
|
-
]}
|
|
41
|
-
>
|
|
42
|
-
<OverlayProvider>
|
|
43
|
-
<ToastProvider>{props.children}</ToastProvider>
|
|
44
|
-
</OverlayProvider>
|
|
45
|
-
</View>
|
|
46
|
-
);
|
|
47
29
|
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Build a provider around a theme.
|
|
33
|
+
*
|
|
34
|
+
* This is what lets an app own its design system: it copies the registries with
|
|
35
|
+
* `flipova-design adopt`, edits them, regenerates `theme/config.ts`, and mounts
|
|
36
|
+
* the result here. The exported `GluestackUIProvider` is this factory applied to
|
|
37
|
+
* the package's own theme, so nothing changes for an app that did not adopt.
|
|
38
|
+
*/
|
|
39
|
+
export function createGluestackUIProvider(theme: GluestackThemeConfig) {
|
|
40
|
+
return function ThemedProvider({
|
|
41
|
+
mode = 'light',
|
|
42
|
+
...props
|
|
43
|
+
}: GluestackUIProviderProps) {
|
|
44
|
+
const { colorScheme, setColorScheme } = useColorScheme();
|
|
45
|
+
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
setColorScheme(mode);
|
|
48
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
49
|
+
}, [mode]);
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<View
|
|
53
|
+
style={[
|
|
54
|
+
theme[colorScheme!],
|
|
55
|
+
{ flex: 1, height: '100%', width: '100%' },
|
|
56
|
+
props.style,
|
|
57
|
+
]}
|
|
58
|
+
>
|
|
59
|
+
<OverlayProvider>
|
|
60
|
+
<ToastProvider>{props.children}</ToastProvider>
|
|
61
|
+
</OverlayProvider>
|
|
62
|
+
</View>
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const GluestackUIProvider = createGluestackUIProvider(config);
|
package/design/documentation.xml
CHANGED
|
@@ -51,9 +51,66 @@ cannot own:
|
|
|
51
51
|
Use `npx flipova-design where` at any time to print the resolved paths, and
|
|
52
52
|
`npx flipova-design inject` to re-run only the injection.
|
|
53
53
|
|
|
54
|
-
If you deliberately want to
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
If you deliberately want to own the design system - your own branding, your own
|
|
55
|
+
scales and roles - run:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
npx flipova-design adopt
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
It copies the **registries only** (`manifest.xml`, `schema.xsd`, `tokens.xml`,
|
|
62
|
+
`themes.xml`, `documentation.xml`, `canonical.index.txt`) into `design/`. The
|
|
63
|
+
toolchain stays in `node_modules`: the package keeps generating, validating and
|
|
64
|
+
building, and only the source of truth moves to the app.
|
|
65
|
+
|
|
66
|
+
`adopt` also rewrites the manifest outputs to `theme/config.ts` and
|
|
67
|
+
`theme/tokens.js`, and creates `theme/provider.tsx`.
|
|
68
|
+
|
|
69
|
+
### Wire your own theme into the app
|
|
70
|
+
|
|
71
|
+
Two artifacts, two consumers:
|
|
72
|
+
|
|
73
|
+
```js
|
|
74
|
+
// tailwind.config.js
|
|
75
|
+
const tokens = require('./theme/tokens');
|
|
76
|
+
|
|
77
|
+
/** @type {import('tailwindcss').Config} */
|
|
78
|
+
module.exports = {
|
|
79
|
+
content: ['./app/**/*.{tsx,ts,jsx,js}'],
|
|
80
|
+
presets: [require('nativewind/preset')],
|
|
81
|
+
important: 'html',
|
|
82
|
+
theme: { extend: tokens.theme },
|
|
83
|
+
};
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```tsx
|
|
87
|
+
// theme/provider.tsx - created by `adopt`
|
|
88
|
+
import { createGluestackUIProvider } from '@flipova/foundation/ui';
|
|
89
|
+
import { config } from './config';
|
|
90
|
+
|
|
91
|
+
export const AppThemeProvider = createGluestackUIProvider(config);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
`createGluestackUIProvider` is the same provider the package exports, built
|
|
95
|
+
around *your* theme. `GluestackUIProvider` is that factory applied to the
|
|
96
|
+
package's own theme, so an app that never adopts anything keeps working
|
|
97
|
+
unchanged.
|
|
98
|
+
|
|
99
|
+
From then on the normal pipeline applies to your branding, on your files:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
npm run design:gen # design/*.xml -> theme/config.ts + theme/tokens.js
|
|
103
|
+
npm run design:verify # the registries are in step with the artifacts
|
|
104
|
+
npm run design:check # determinism rules + XSD, on YOUR registries
|
|
105
|
+
npm run design:lint
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
`npx flipova-design where` always says which side is in charge:
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
registries …/my-app/design (adopted by this project)
|
|
112
|
+
artifacts …/my-app/theme (owned by this project)
|
|
113
|
+
```
|
|
57
114
|
|
|
58
115
|
## Wire the theme into your Tailwind config
|
|
59
116
|
|
package/design/tools/design.js
CHANGED
|
@@ -43,7 +43,12 @@ const TOOLS_DIR = __dirname;
|
|
|
43
43
|
const DESIGN_DIR = process.env.FOUNDATION_DESIGN_DIR
|
|
44
44
|
? path.resolve(process.env.FOUNDATION_DESIGN_DIR)
|
|
45
45
|
: path.join(TOOLS_DIR, '..');
|
|
46
|
-
|
|
46
|
+
// The tools always come from the package that runs them. `DESIGN_DIR` is the
|
|
47
|
+
// registry root, and an app that adopts the registries owns them without owning
|
|
48
|
+
// the toolchain: deriving the sources from it meant `sources/` had to be copied
|
|
49
|
+
// too, which is the duplication the CLI exists to avoid - and a copy without
|
|
50
|
+
// `tools/` simply had no generator to run.
|
|
51
|
+
const SOURCES_DIR = path.join(TOOLS_DIR, 'sources');
|
|
47
52
|
const REPO_ROOT = process.env.FOUNDATION_PROJECT_ROOT
|
|
48
53
|
? path.resolve(process.env.FOUNDATION_PROJECT_ROOT)
|
|
49
54
|
: path.join(DESIGN_DIR, '..');
|
package/design/tools/npm.js
CHANGED
|
@@ -185,13 +185,110 @@ function inject(force) {
|
|
|
185
185
|
process.stdout.write(' 3. npx flipova-design lint # verify\n');
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
+
/* ------------------------------------------------------------------ *
|
|
189
|
+
* Adopting the registries (owning the design system)
|
|
190
|
+
* ------------------------------------------------------------------ */
|
|
191
|
+
|
|
192
|
+
// The registries and nothing else: the toolchain stays in the package, which is
|
|
193
|
+
// the whole point of the split. `tools/` is what must never be copied.
|
|
194
|
+
const REGISTRY_FILES = [
|
|
195
|
+
'manifest.xml',
|
|
196
|
+
'schema.xsd',
|
|
197
|
+
'tokens.xml',
|
|
198
|
+
'themes.xml',
|
|
199
|
+
'documentation.xml',
|
|
200
|
+
// The emitted index of the registries: without it `verify` reports the copy as
|
|
201
|
+
// drifting, which is the opposite of what adopting them should feel like.
|
|
202
|
+
'canonical.index.txt',
|
|
203
|
+
];
|
|
204
|
+
|
|
205
|
+
const ADOPTED_OUTPUTS = {
|
|
206
|
+
gluestackConfig: 'theme/config.ts',
|
|
207
|
+
gluestackTokens: 'theme/tokens.js',
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
const PROVIDER = `// theme/provider.tsx
|
|
211
|
+
// Generated by \`npx flipova-design adopt\` -- safe to edit.
|
|
212
|
+
//
|
|
213
|
+
// The theme below is regenerated from your own registries (design/*.xml) into
|
|
214
|
+
// theme/config.ts and theme/tokens.js. This provider is the wiring between them
|
|
215
|
+
// and the components of @flipova/foundation.
|
|
216
|
+
import { createGluestackUIProvider } from '@flipova/foundation/ui';
|
|
217
|
+
import { config } from './config';
|
|
218
|
+
|
|
219
|
+
export const AppThemeProvider = createGluestackUIProvider(config);
|
|
220
|
+
export default AppThemeProvider;
|
|
221
|
+
`;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Copy the registries into the project and point their outputs at the project.
|
|
225
|
+
*
|
|
226
|
+
* An app that adopts them owns its design system: it edits design/tokens.xml and
|
|
227
|
+
* design/themes.xml, runs the pipeline, and gets its own theme/config.ts and
|
|
228
|
+
* theme/tokens.js instead of the package's. The package still provides the
|
|
229
|
+
* components, the generator and every token it does not override.
|
|
230
|
+
*/
|
|
231
|
+
function adopt(force) {
|
|
232
|
+
if (fs.existsSync(PROJECT_DESIGN) && !force) {
|
|
233
|
+
process.stderr.write(`A design directory already exists at ${PROJECT_DESIGN}.\n`);
|
|
234
|
+
process.stderr.write('Nothing was copied. Remove it first, or pass --force to overwrite it.\n');
|
|
235
|
+
process.exit(2);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
fs.mkdirSync(PROJECT_DESIGN, { recursive: true });
|
|
239
|
+
const created = [];
|
|
240
|
+
for (const file of REGISTRY_FILES) {
|
|
241
|
+
const from = path.join(PACKAGE_DESIGN, file);
|
|
242
|
+
if (!fs.existsSync(from)) continue;
|
|
243
|
+
fs.copyFileSync(from, path.join(PROJECT_DESIGN, file));
|
|
244
|
+
created.push(`design/${file}`);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// The manifest keeps declaring the package's own outputs; a project that owns
|
|
248
|
+
// the registries must write its own artifacts, so the two paths are rewritten
|
|
249
|
+
// here rather than by hand afterwards.
|
|
250
|
+
const manifestPath = path.join(PROJECT_DESIGN, 'manifest.xml');
|
|
251
|
+
const manifest = fs.readFileSync(manifestPath, 'utf8');
|
|
252
|
+
const rewritten = manifest.replace(
|
|
253
|
+
/<(gluestackConfig|gluestackTokens)>[^<]*<\/\1>/g,
|
|
254
|
+
(line, kind) => `<${kind}>${ADOPTED_OUTPUTS[kind]}</${kind}>`,
|
|
255
|
+
);
|
|
256
|
+
if (rewritten !== manifest) {
|
|
257
|
+
fs.writeFileSync(manifestPath, rewritten, 'utf8');
|
|
258
|
+
created.push('design/manifest.xml (outputs -> theme/)');
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// The wiring the app-level files need, created only when missing for the same
|
|
262
|
+
// reason `init` never overwrites: these are the app's files.
|
|
263
|
+
fs.mkdirSync(path.join(PROJECT_ROOT, 'theme'), { recursive: true });
|
|
264
|
+
const providerPath = path.join(PROJECT_ROOT, 'theme', 'provider.tsx');
|
|
265
|
+
if (fs.existsSync(providerPath) && !force) created.push('theme/provider.tsx (kept)');
|
|
266
|
+
else {
|
|
267
|
+
fs.writeFileSync(providerPath, PROVIDER, 'utf8');
|
|
268
|
+
created.push('theme/provider.tsx');
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
process.stdout.write(`Adopted the design registries into ${PROJECT_DESIGN}\n`);
|
|
272
|
+
for (const what of created) process.stdout.write(` created : ${what}\n`);
|
|
273
|
+
process.stdout.write('\nNext steps:\n');
|
|
274
|
+
process.stdout.write(' 1. edit design/tokens.xml and design/themes.xml - that is now your design system\n');
|
|
275
|
+
process.stdout.write(' 2. npm run design:gen -> theme/config.ts + theme/tokens.js\n');
|
|
276
|
+
process.stdout.write(' 3. tailwind.config.js -> require(\'./theme/tokens\')\n');
|
|
277
|
+
process.stdout.write(' 4. wrap the app in <AppThemeProvider mode="system"> from ./theme/provider\n');
|
|
278
|
+
process.stdout.write(' 5. npm run design:verify -> the registries are in step with the artifacts\n');
|
|
279
|
+
}
|
|
280
|
+
|
|
188
281
|
function printWhere() {
|
|
189
282
|
const { override, designDir, outputRoot } = resolution();
|
|
190
283
|
process.stdout.write(`package ${PACKAGE_ROOT}\n`);
|
|
191
284
|
process.stdout.write(`version ${readPackageVersion()}\n`);
|
|
192
285
|
process.stdout.write(`project ${PROJECT_ROOT}\n`);
|
|
193
|
-
process.stdout.write(`registries ${designDir}${override ? ' (project
|
|
194
|
-
process.stdout.write(
|
|
286
|
+
process.stdout.write(`registries ${designDir}${override ? ' (adopted by this project)' : ' (node_modules)'}\n`);
|
|
287
|
+
process.stdout.write(
|
|
288
|
+
override
|
|
289
|
+
? `artifacts ${path.join(outputRoot, 'theme')} (owned by this project)\n`
|
|
290
|
+
: `artifacts ${path.join(outputRoot, 'components', 'ui', 'gluestack-ui-provider')}\n`,
|
|
291
|
+
);
|
|
195
292
|
process.stdout.write(`tool ${TOOL}\n`);
|
|
196
293
|
process.stdout.write(`python ${process.env.FOUNDATION_PYTHON || '(auto-detect)'}\n`);
|
|
197
294
|
}
|
|
@@ -232,9 +329,13 @@ function main() {
|
|
|
232
329
|
printWhere();
|
|
233
330
|
process.exit(0);
|
|
234
331
|
}
|
|
332
|
+
if (command === 'adopt') {
|
|
333
|
+
adopt(args.includes('--force'));
|
|
334
|
+
process.exit(0);
|
|
335
|
+
}
|
|
235
336
|
if (command === undefined) {
|
|
236
337
|
process.stderr.write(
|
|
237
|
-
'Usage: npx flipova-design <init|inject|where|gen|check|verify|canonical|lint|doc|edit|run|pipeline>\n');
|
|
338
|
+
'Usage: npx flipova-design <init|inject|adopt|where|gen|check|verify|canonical|lint|doc|edit|run|pipeline>\n');
|
|
238
339
|
process.exit(2);
|
|
239
340
|
}
|
|
240
341
|
runTool(command, args);
|
|
@@ -3887,26 +3887,29 @@ function useCalendarTheme() {
|
|
|
3887
3887
|
}
|
|
3888
3888
|
var useGluestackColors2 = useGluestackColors;
|
|
3889
3889
|
var useCalendarTheme2 = useCalendarTheme;
|
|
3890
|
-
function
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3890
|
+
function createGluestackUIProvider(theme) {
|
|
3891
|
+
return function ThemedProvider({
|
|
3892
|
+
mode = "light",
|
|
3893
|
+
...props
|
|
3894
|
+
}) {
|
|
3895
|
+
const { colorScheme, setColorScheme } = useColorScheme();
|
|
3896
|
+
useEffect(() => {
|
|
3897
|
+
setColorScheme(mode);
|
|
3898
|
+
}, [mode]);
|
|
3899
|
+
return /* @__PURE__ */ jsx(
|
|
3900
|
+
View,
|
|
3901
|
+
{
|
|
3902
|
+
style: [
|
|
3903
|
+
theme[colorScheme],
|
|
3904
|
+
{ flex: 1, height: "100%", width: "100%" },
|
|
3905
|
+
props.style
|
|
3906
|
+
],
|
|
3907
|
+
children: /* @__PURE__ */ jsx(OverlayProvider, { children: /* @__PURE__ */ jsx(ToastProvider, { children: props.children }) })
|
|
3908
|
+
}
|
|
3909
|
+
);
|
|
3910
|
+
};
|
|
3909
3911
|
}
|
|
3912
|
+
var GluestackUIProvider = createGluestackUIProvider(config);
|
|
3910
3913
|
var gridBaseStyle = isWeb ? "grid grid-cols-12" : "box-border flex-row flex-wrap justify-start";
|
|
3911
3914
|
var gridItemBaseStyle = isWeb ? "w-auto col-span-1" : "";
|
|
3912
3915
|
var gridStyle = tva({
|
|
@@ -9396,6 +9399,6 @@ var VStack = React48.forwardRef(
|
|
|
9396
9399
|
);
|
|
9397
9400
|
VStack.displayName = "VStack";
|
|
9398
9401
|
|
|
9399
|
-
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, Badge, BadgeIcon, BadgeText, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, Card, Center, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, DateTimePickerTrigger, Divider, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Fab, FabIcon, FabLabel, FavouriteIcon, FlatList3 as FlatList, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, GluestackUIProvider, Grid, GridItem, GripVerticalIcon, HStack, Heading, HelpCircleIcon, Icon, Image2 as Image, ImageBackground, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, ImageViewerTrigger, InfoIcon, Input, InputField, InputIcon, InputSlot, Link, LinkIcon, LinkText, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, Modal2 as Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Pressable18 as Pressable, Progress, ProgressFilledTrack, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RemoveIcon, Repeat1Icon, RepeatIcon, SearchIcon, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, Skeleton, SkeletonText, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Spinner, StarIcon, SunIcon, Switch, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, Text21 as Text, Textarea, TextareaInput, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon10 as UIIcon, UILink, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, VStack, createIconUI, useCalendarTheme2 as useCalendarTheme, useGluestackColors2 as useGluestackColors, useToast };
|
|
9400
|
-
//# sourceMappingURL=chunk-
|
|
9401
|
-
//# sourceMappingURL=chunk-
|
|
9402
|
+
export { Accordion, AccordionContent, AccordionContentText, AccordionHeader, AccordionIcon, AccordionItem, AccordionTitleText, AccordionTrigger, Actionsheet, ActionsheetBackdrop, ActionsheetContent, ActionsheetDragIndicator, ActionsheetDragIndicatorWrapper, ActionsheetFlatList, ActionsheetIcon, ActionsheetItem, ActionsheetItemText, ActionsheetScrollView, ActionsheetSectionHeaderText, ActionsheetSectionList, ActionsheetVirtualizedList, AddIcon, Alert, AlertCircleIcon, AlertDialog, AlertDialogBackdrop, AlertDialogBody, AlertDialogCloseButton, AlertDialogContent, AlertDialogFooter, AlertDialogHeader, AlertIcon, AlertText, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, AtSignIcon, Avatar, AvatarBadge, AvatarFallback, AvatarFallbackText, AvatarGroup, AvatarImage, Badge, BadgeIcon, BadgeText, BellIcon, BottomSheet, BottomSheetBackdrop, BottomSheetContent, BottomSheetDragIndicator, BottomSheetFlatList, BottomSheetFooter, BottomSheetItem, BottomSheetItemText, BottomSheetPortal, BottomSheetScrollView, BottomSheetSectionList, BottomSheetTextInput, BottomSheetTrigger, Box, Button, ButtonGroup, ButtonIcon, ButtonSpinner, ButtonText, Calendar, CalendarBody, CalendarDay, CalendarDayIndicator, CalendarDayText, CalendarDaysIcon, CalendarFooter, CalendarGrid, CalendarHeader, CalendarHeaderMonthSelect, CalendarHeaderNextButton, CalendarHeaderPrevButton, CalendarHeaderTitle, CalendarHeaderYearSelect, CalendarWeek, CalendarWeekDay, CalendarWeekDaysHeader, CalendarWeekNumber, Card, Center, CheckCircleIcon, CheckIcon, Checkbox, CheckboxGroup, CheckboxIcon, CheckboxIndicator, CheckboxLabel, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, ClockIcon, CloseCircleIcon, CloseIcon, CopyIcon, DateTimePicker, DateTimePickerIcon, DateTimePickerInput, DateTimePickerTrigger, Divider, DownloadIcon, Drawer, DrawerBackdrop, DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, EditIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, Fab, FabIcon, FabLabel, FavouriteIcon, FlatList3 as FlatList, FormControl, FormControlError, FormControlErrorIcon, FormControlErrorText, FormControlHelper, FormControlHelperText, FormControlLabel, FormControlLabelAstrick, FormControlLabelText, GlassContainer, GlassView, GlobeIcon, GluestackUIProvider, Grid, GridItem, GripVerticalIcon, HStack, Heading, HelpCircleIcon, Icon, Image2 as Image, ImageBackground, ImageViewer, ImageViewerCloseButton, ImageViewerContent, ImageViewerCounter, ImageViewerNavigation, ImageViewerTrigger, InfoIcon, Input, InputField, InputIcon, InputSlot, Link, LinkIcon, LinkText, LoaderIcon, LockIcon, MailIcon, Menu, MenuIcon, MenuItem, MenuItemLabel, MenuSeparator, MessageCircleIcon, Modal2 as Modal, ModalBackdrop, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, MoonIcon, PaperclipIcon, PhoneIcon, PlayIcon, Popover, PopoverArrow, PopoverBackdrop, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, Portal, Pressable18 as Pressable, Progress, ProgressFilledTrack, Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RemoveIcon, Repeat1Icon, RepeatIcon, SearchIcon, Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectFlatList, SelectIcon, SelectInput, SelectItem, SelectPortal, SelectScrollView, SelectSectionHeaderText, SelectSectionList, SelectTrigger, SelectVirtualizedList, SettingsIcon, ShareIcon, Skeleton, SkeletonText, SlashIcon, Slider, SliderFilledTrack, SliderThumb, SliderTrack, Spinner, StarIcon, SunIcon, Switch, Table, TableBody, TableCaption, TableData, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsContentWrapper, TabsIndicator, TabsList, TabsTrigger, TabsTriggerIcon, TabsTriggerText, Text21 as Text, Textarea, TextareaInput, ThreeDotsIcon, Toast, ToastDescription, ToastTitle, Tooltip, TooltipContent, TooltipText, TrashIcon, UIActionsheet, UIAlert, UIFormControl, UIIcon10 as UIIcon, UILink, UIMenu, UIProgress, UISlider, UITooltip, UnlockIcon, VStack, createGluestackUIProvider, createIconUI, useCalendarTheme2 as useCalendarTheme, useGluestackColors2 as useGluestackColors, useToast };
|
|
9403
|
+
//# sourceMappingURL=chunk-HF2IPXOT.mjs.map
|
|
9404
|
+
//# sourceMappingURL=chunk-HF2IPXOT.mjs.map
|