@flipova/foundation 1.12.0 → 1.13.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 +6 -0
- package/LICENSE +21 -21
- package/README.md +215 -197
- package/dist/chunk-2XORADW6.js +24552 -0
- package/dist/chunk-2XORADW6.js.map +1 -0
- package/dist/chunk-52BHHF5M.js +46 -0
- package/dist/chunk-52BHHF5M.js.map +1 -0
- package/dist/{chunk-NYZH4C27.mjs → chunk-5647JY7Z.mjs} +4 -4
- package/dist/chunk-5647JY7Z.mjs.map +1 -0
- package/dist/{chunk-O7UP2OZR.js → chunk-7QFZMGL6.js} +1971 -93
- package/dist/chunk-7QFZMGL6.js.map +1 -0
- package/dist/{chunk-4KNPSB67.js → chunk-ASZEP37D.js} +2 -2
- package/dist/chunk-ASZEP37D.js.map +1 -0
- package/dist/chunk-BH5SU2JQ.mjs +8282 -0
- package/dist/chunk-BH5SU2JQ.mjs.map +1 -0
- package/dist/{chunk-TZUCBWHN.mjs → chunk-BO65GO53.mjs} +3 -3
- package/dist/chunk-BO65GO53.mjs.map +1 -0
- package/dist/{chunk-DJP3T7OD.mjs → chunk-BSVXX52E.mjs} +2 -2
- package/dist/chunk-BSVXX52E.mjs.map +1 -0
- package/dist/chunk-EDTAMUO2.js +8310 -0
- package/dist/chunk-EDTAMUO2.js.map +1 -0
- package/dist/chunk-M3YLASM2.js +428 -0
- package/dist/chunk-M3YLASM2.js.map +1 -0
- package/dist/{chunk-4NPMHFKO.mjs → chunk-RQXQK3ZO.mjs} +1971 -94
- package/dist/chunk-RQXQK3ZO.mjs.map +1 -0
- package/dist/chunk-SR25V4EA.mjs +40 -0
- package/dist/chunk-SR25V4EA.mjs.map +1 -0
- package/dist/{chunk-JYGNIQUU.js → chunk-UB34WFEQ.js} +18 -18
- package/dist/chunk-UB34WFEQ.js.map +1 -0
- package/dist/chunk-ZBRWXKDF.mjs +24431 -0
- package/dist/chunk-ZBRWXKDF.mjs.map +1 -0
- package/dist/cli/ds.d.mts +1 -0
- package/dist/cli/ds.d.ts +1 -0
- package/dist/cli/ds.js +182 -7914
- package/dist/cli/ds.js.map +1 -0
- package/dist/cli/ds.mjs +579 -0
- package/dist/cli/ds.mjs.map +1 -0
- package/dist/cli/flipova.d.mts +1 -0
- package/dist/cli/flipova.d.ts +1 -0
- package/dist/cli/flipova.js +24 -4884
- package/dist/cli/flipova.js.map +1 -0
- package/dist/cli/flipova.mjs +154 -0
- package/dist/cli/flipova.mjs.map +1 -0
- package/dist/config/index.d.mts +12 -12
- package/dist/config/index.d.ts +12 -12
- package/dist/config/index.js +6 -6
- package/dist/config/index.mjs +1 -1
- package/dist/{index-CpBqkIpd.d.mts → index-CuaJA3gM.d.mts} +10 -10
- package/dist/{index-CpBqkIpd.d.ts → index-CuaJA3gM.d.ts} +10 -10
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +216 -212
- package/dist/index.mjs +5 -5
- package/dist/registry/index.d.mts +470 -3
- package/dist/registry/index.d.ts +470 -3
- package/dist/registry/index.js +100 -96
- package/dist/registry/index.mjs +1 -1
- package/dist/theme/index.d.mts +15 -25
- package/dist/theme/index.d.ts +15 -25
- package/dist/theme/index.js +6 -6
- package/dist/theme/index.mjs +1 -1
- package/dist/tokens/index.js +10 -10
- package/dist/tokens/index.mjs +1 -1
- package/dist/types/index.d.mts +23 -21
- package/dist/types/index.d.ts +23 -21
- package/dist/ui/index.d.mts +242 -84
- package/dist/ui/index.d.ts +242 -84
- package/dist/ui/index.js +182 -182
- package/dist/ui/index.mjs +2 -2
- package/package.json +29 -11
- package/dist/chunk-4KNPSB67.js.map +0 -1
- package/dist/chunk-4NPMHFKO.mjs.map +0 -1
- package/dist/chunk-5LRV4YZO.js +0 -7024
- package/dist/chunk-5LRV4YZO.js.map +0 -1
- package/dist/chunk-CKQBSIBR.mjs +0 -6900
- package/dist/chunk-CKQBSIBR.mjs.map +0 -1
- package/dist/chunk-DJP3T7OD.mjs.map +0 -1
- package/dist/chunk-JYGNIQUU.js.map +0 -1
- package/dist/chunk-NYZH4C27.mjs.map +0 -1
- package/dist/chunk-O7UP2OZR.js.map +0 -1
- package/dist/chunk-RPO7RKXJ.js +0 -428
- package/dist/chunk-RPO7RKXJ.js.map +0 -1
- package/dist/chunk-TZUCBWHN.mjs.map +0 -1
package/dist/registry/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ declare const BoxMeta: {
|
|
|
99
99
|
readonly group: "layout";
|
|
100
100
|
readonly options: readonly ["auto", "flex-start", "center", "flex-end", "stretch"];
|
|
101
101
|
}];
|
|
102
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Box, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BoxExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Box Example</Text>\n <Box />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
102
103
|
};
|
|
103
104
|
declare const CenterMeta: {
|
|
104
105
|
readonly id: "Center";
|
|
@@ -142,6 +143,7 @@ declare const CenterMeta: {
|
|
|
142
143
|
readonly type: "number";
|
|
143
144
|
readonly group: "layout";
|
|
144
145
|
}];
|
|
146
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Center, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function CenterExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Center Example</Text>\n <Center />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
145
147
|
};
|
|
146
148
|
declare const InlineMeta: {
|
|
147
149
|
readonly id: "Inline";
|
|
@@ -200,6 +202,7 @@ declare const InlineMeta: {
|
|
|
200
202
|
readonly group: "layout";
|
|
201
203
|
readonly default: false;
|
|
202
204
|
}];
|
|
205
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Inline, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function InlineExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Inline Example</Text>\n <Inline\n spacing={2}\n align=\"stretch\"\n justify=\"flex-start\"\n wrap={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
203
206
|
};
|
|
204
207
|
declare const ScrollMeta: {
|
|
205
208
|
readonly id: "Scroll";
|
|
@@ -246,6 +249,7 @@ declare const ScrollMeta: {
|
|
|
246
249
|
readonly type: "number";
|
|
247
250
|
readonly group: "layout";
|
|
248
251
|
}];
|
|
252
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Scroll, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ScrollExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Scroll Example</Text>\n <Scroll\n horizontal={false}\n showsScrollIndicator={true}\n scrollEnabled={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
249
253
|
};
|
|
250
254
|
declare const StackMeta: {
|
|
251
255
|
readonly id: "Stack";
|
|
@@ -286,8 +290,10 @@ declare const StackMeta: {
|
|
|
286
290
|
readonly type: "number";
|
|
287
291
|
readonly group: "layout";
|
|
288
292
|
}];
|
|
293
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Stack, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function StackExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Stack Example</Text>\n <Stack\n spacing={2}\n align=\"stretch\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
289
294
|
};
|
|
290
295
|
declare const BadgeWrapperMeta: {
|
|
296
|
+
readonly id: "BadgeWrapper";
|
|
291
297
|
readonly name: "BadgeWrapper";
|
|
292
298
|
readonly description: "Wraps an element and places a customizable notification badge in the top right corner.";
|
|
293
299
|
readonly props: readonly [{
|
|
@@ -306,8 +312,10 @@ declare const BadgeWrapperMeta: {
|
|
|
306
312
|
readonly description: "Badge background color";
|
|
307
313
|
readonly default: null;
|
|
308
314
|
}];
|
|
315
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BadgeWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BadgeWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">BadgeWrapper Example</Text>\n <BadgeWrapper\n count={0}\n showZero={false}\n color=\"Sample\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
309
316
|
};
|
|
310
317
|
declare const BlurWrapperMeta: {
|
|
318
|
+
readonly id: "BlurWrapper";
|
|
311
319
|
readonly name: "BlurWrapper";
|
|
312
320
|
readonly description: "Wraps children in a frosted glass/blur container.";
|
|
313
321
|
readonly props: readonly [{
|
|
@@ -321,8 +329,10 @@ declare const BlurWrapperMeta: {
|
|
|
321
329
|
readonly description: "Tint color (light, dark, default)";
|
|
322
330
|
readonly default: "default";
|
|
323
331
|
}];
|
|
332
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BlurWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BlurWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">BlurWrapper Example</Text>\n <BlurWrapper\n intensity={50}\n tint=\"default\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
324
333
|
};
|
|
325
334
|
declare const CollapsibleWrapperMeta: {
|
|
335
|
+
readonly id: "CollapsibleWrapper";
|
|
326
336
|
readonly name: "CollapsibleWrapper";
|
|
327
337
|
readonly description: "A container that smoothly expands or collapses its children height.";
|
|
328
338
|
readonly props: readonly [{
|
|
@@ -331,8 +341,10 @@ declare const CollapsibleWrapperMeta: {
|
|
|
331
341
|
readonly description: "Whether the container is expanded";
|
|
332
342
|
readonly default: false;
|
|
333
343
|
}];
|
|
344
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, CollapsibleWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function CollapsibleWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">CollapsibleWrapper Example</Text>\n <CollapsibleWrapper\n isExpanded={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
334
345
|
};
|
|
335
346
|
declare const FadeInWrapperMeta: {
|
|
347
|
+
readonly id: "FadeInWrapper";
|
|
336
348
|
readonly name: "FadeInWrapper";
|
|
337
349
|
readonly description: "Animates its children in with a smooth opacity fade on mount.";
|
|
338
350
|
readonly props: readonly [{
|
|
@@ -346,8 +358,10 @@ declare const FadeInWrapperMeta: {
|
|
|
346
358
|
readonly description: "Animation delay in ms";
|
|
347
359
|
readonly default: 0;
|
|
348
360
|
}];
|
|
361
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FadeInWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function FadeInWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">FadeInWrapper Example</Text>\n <FadeInWrapper\n duration={500}\n delay={0}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
349
362
|
};
|
|
350
363
|
declare const KeyboardAvoidWrapperMeta: {
|
|
364
|
+
readonly id: "KeyboardAvoidWrapper";
|
|
351
365
|
readonly name: "KeyboardAvoidWrapper";
|
|
352
366
|
readonly description: "Automatically handles keyboard layout shifting for its wrapped children.";
|
|
353
367
|
readonly props: readonly [{
|
|
@@ -356,8 +370,10 @@ declare const KeyboardAvoidWrapperMeta: {
|
|
|
356
370
|
readonly description: "Extra offset above keyboard";
|
|
357
371
|
readonly default: 20;
|
|
358
372
|
}];
|
|
373
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, KeyboardAvoidWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function KeyboardAvoidWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">KeyboardAvoidWrapper Example</Text>\n <KeyboardAvoidWrapper\n offset={20}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
359
374
|
};
|
|
360
375
|
declare const SafeAreaWrapperMeta: {
|
|
376
|
+
readonly id: "SafeAreaWrapper";
|
|
361
377
|
readonly name: "SafeAreaWrapper";
|
|
362
378
|
readonly description: "A convenient wrapper that applies safe area boundaries to specific sections of children.";
|
|
363
379
|
readonly props: readonly [{
|
|
@@ -366,8 +382,10 @@ declare const SafeAreaWrapperMeta: {
|
|
|
366
382
|
readonly description: "Edges to apply safe area (top, bottom, left, right)";
|
|
367
383
|
readonly default: readonly ["top", "bottom"];
|
|
368
384
|
}];
|
|
385
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SafeAreaWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SafeAreaWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">SafeAreaWrapper Example</Text>\n <SafeAreaWrapper />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
369
386
|
};
|
|
370
387
|
declare const ScalePressWrapperMeta: {
|
|
388
|
+
readonly id: "ScalePressWrapper";
|
|
371
389
|
readonly name: "ScalePressWrapper";
|
|
372
390
|
readonly description: "Wraps any element and adds a bouncy shrink effect when pressed.";
|
|
373
391
|
readonly props: readonly [{
|
|
@@ -376,8 +394,10 @@ declare const ScalePressWrapperMeta: {
|
|
|
376
394
|
readonly description: "Scale factor when pressed";
|
|
377
395
|
readonly default: 0.95;
|
|
378
396
|
}];
|
|
397
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ScalePressWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ScalePressWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">ScalePressWrapper Example</Text>\n <ScalePressWrapper\n scaleTo={0.95}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
379
398
|
};
|
|
380
399
|
declare const ShimmerWrapperMeta: {
|
|
400
|
+
readonly id: "ShimmerWrapper";
|
|
381
401
|
readonly name: "ShimmerWrapper";
|
|
382
402
|
readonly description: "Adds a shiny animated loading shimmer effect over its children.";
|
|
383
403
|
readonly props: readonly [{
|
|
@@ -386,8 +406,10 @@ declare const ShimmerWrapperMeta: {
|
|
|
386
406
|
readonly description: "Whether to show the shimmer";
|
|
387
407
|
readonly default: true;
|
|
388
408
|
}];
|
|
409
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ShimmerWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ShimmerWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">ShimmerWrapper Example</Text>\n <ShimmerWrapper\n isLoading={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
389
410
|
};
|
|
390
411
|
declare const SkeletonWrapperMeta: {
|
|
412
|
+
readonly id: "SkeletonWrapper";
|
|
391
413
|
readonly name: "SkeletonWrapper";
|
|
392
414
|
readonly description: "A wrapper component that measures its children and displays an animated shimmering skeleton outline when loading.";
|
|
393
415
|
readonly tags: readonly ["base", "wrapper", "loader", "skeleton", "shimmer"];
|
|
@@ -398,8 +420,10 @@ declare const SkeletonWrapperMeta: {
|
|
|
398
420
|
readonly required: true;
|
|
399
421
|
};
|
|
400
422
|
};
|
|
423
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SkeletonWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SkeletonWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">SkeletonWrapper Example</Text>\n <SkeletonWrapper\n isLoading={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
401
424
|
};
|
|
402
425
|
declare const SlideUpWrapperMeta: {
|
|
426
|
+
readonly id: "SlideUpWrapper";
|
|
403
427
|
readonly name: "SlideUpWrapper";
|
|
404
428
|
readonly description: "Animates its children sliding up from below on mount.";
|
|
405
429
|
readonly props: readonly [{
|
|
@@ -418,8 +442,10 @@ declare const SlideUpWrapperMeta: {
|
|
|
418
442
|
readonly description: "Distance to slide from in pixels";
|
|
419
443
|
readonly default: 50;
|
|
420
444
|
}];
|
|
445
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SlideUpWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SlideUpWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">SlideUpWrapper Example</Text>\n <SlideUpWrapper\n duration={500}\n delay={0}\n distance={50}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
421
446
|
};
|
|
422
447
|
declare const TooltipWrapperMeta: {
|
|
448
|
+
readonly id: "TooltipWrapper";
|
|
423
449
|
readonly name: "TooltipWrapper";
|
|
424
450
|
readonly description: "Wraps a component and displays a tooltip bubble near it.";
|
|
425
451
|
readonly props: readonly [{
|
|
@@ -433,6 +459,7 @@ declare const TooltipWrapperMeta: {
|
|
|
433
459
|
readonly description: "Whether tooltip is visible";
|
|
434
460
|
readonly default: false;
|
|
435
461
|
}];
|
|
462
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, TooltipWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function TooltipWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">TooltipWrapper Example</Text>\n <TooltipWrapper\n text=\"Sample\"\n isVisible={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
436
463
|
};
|
|
437
464
|
declare const AccordionMeta: {
|
|
438
465
|
readonly id: "Accordion";
|
|
@@ -480,8 +507,10 @@ declare const AccordionMeta: {
|
|
|
480
507
|
readonly group: "style";
|
|
481
508
|
readonly themeDefault: "border";
|
|
482
509
|
}];
|
|
510
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Accordion, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function AccordionExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Accordion Example</Text>\n <Accordion\n title=\"Section\"\n defaultOpen={false}\n borderRadius=\"lg\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
483
511
|
};
|
|
484
512
|
declare const AudioMeta: {
|
|
513
|
+
readonly id: "Audio";
|
|
485
514
|
readonly name: "Audio";
|
|
486
515
|
readonly description: "A base component for audio playback using expo-av.";
|
|
487
516
|
readonly tags: readonly ["base", "media", "audio", "player"];
|
|
@@ -497,6 +526,7 @@ declare const AudioMeta: {
|
|
|
497
526
|
readonly default: false;
|
|
498
527
|
};
|
|
499
528
|
};
|
|
529
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Audio, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function AudioExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Audio Example</Text>\n <Audio\n source=\"Sample\"\n autoPlay={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
500
530
|
};
|
|
501
531
|
declare const AvatarMeta: {
|
|
502
532
|
readonly id: "Avatar";
|
|
@@ -581,12 +611,15 @@ declare const AvatarMeta: {
|
|
|
581
611
|
readonly group: "style";
|
|
582
612
|
readonly themeDefault: "muted";
|
|
583
613
|
}];
|
|
614
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Avatar, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function AvatarExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Avatar Example</Text>\n <Avatar\n variant=\"circle\"\n size=\"md\"\n source=\"Image source\"\n initials=\"Initials\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
584
615
|
};
|
|
585
616
|
declare const AvatarPickerMeta: {
|
|
617
|
+
readonly id: "AvatarPicker";
|
|
586
618
|
readonly name: "AvatarPicker";
|
|
587
619
|
readonly description: "Allows users to select an avatar from a list of predefined options or upload one.";
|
|
588
620
|
readonly tags: readonly ["base", "input", "picker", "avatar"];
|
|
589
621
|
readonly props: readonly [];
|
|
622
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, AvatarPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function AvatarPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">AvatarPicker Example</Text>\n <AvatarPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
590
623
|
};
|
|
591
624
|
declare const BadgeMeta: {
|
|
592
625
|
readonly id: "Badge";
|
|
@@ -675,6 +708,7 @@ declare const BadgeMeta: {
|
|
|
675
708
|
readonly group: "style";
|
|
676
709
|
readonly default: "full";
|
|
677
710
|
}];
|
|
711
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Badge, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BadgeExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Badge Example</Text>\n <Badge\n label=\"Label\"\n variant=\"solid\"\n size=\"md\"\n color=\"primary\"\n borderRadius=\"full\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
678
712
|
};
|
|
679
713
|
declare const BlurViewMeta: {
|
|
680
714
|
readonly id: "BlurView";
|
|
@@ -712,12 +746,14 @@ declare const BlurViewMeta: {
|
|
|
712
746
|
readonly type: "spacing";
|
|
713
747
|
readonly group: "layout";
|
|
714
748
|
}];
|
|
749
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BlurView, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BlurViewExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Blur View Example</Text>\n <BlurView\n intensity={50}\n tint=\"default\"\n borderRadius=\"none\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
715
750
|
};
|
|
716
751
|
declare const ButtonMeta: {
|
|
717
752
|
readonly id: "Button";
|
|
718
753
|
readonly label: "Button";
|
|
719
754
|
readonly description: "Pressable button with variant and size support.";
|
|
720
755
|
readonly category: "action";
|
|
756
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Button, Inline, Stack, Text } from '@flipova/foundation';\n\nexport default function ButtonExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Stack spacing={4} style={{ padding: 20 }}>\n <Text variant=\"heading\" size=\"md\">Button Actions</Text>\n <Inline spacing={3} alignItems=\"center\">\n <Button\n label=\"Button\"\n variant=\"primary\"\n size=\"md\"\n disabled={false}\n loading={false}\n fullWidth={false}\n onPress={() => console.log('Button pressed')} />\n </Inline>\n </Stack>\n </FoundationProvider>\n );\n}";
|
|
721
757
|
readonly tags: readonly ["button", "cta", "action", "pressable"];
|
|
722
758
|
readonly themeMapping: {
|
|
723
759
|
readonly bg: "primary";
|
|
@@ -879,6 +915,7 @@ declare const CameraMeta: {
|
|
|
879
915
|
readonly group: "style";
|
|
880
916
|
readonly default: "lg";
|
|
881
917
|
}];
|
|
918
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Camera, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function CameraExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Camera Example</Text>\n <Camera\n facing=\"back\"\n flash=\"off\"\n enableTorch={false}\n height={300}\n borderRadius=\"lg\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
882
919
|
};
|
|
883
920
|
declare const CardMeta: {
|
|
884
921
|
readonly id: "Card";
|
|
@@ -921,6 +958,7 @@ declare const CardMeta: {
|
|
|
921
958
|
readonly group: "style";
|
|
922
959
|
readonly default: "md";
|
|
923
960
|
}];
|
|
961
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Card, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function CardExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Card Example</Text>\n <Card\n shadow=\"md\"\n interactive={false}\n padding={4}\n borderRadius=\"md\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
924
962
|
};
|
|
925
963
|
declare const CheckboxMeta: {
|
|
926
964
|
readonly id: "Checkbox";
|
|
@@ -986,6 +1024,7 @@ declare const CheckboxMeta: {
|
|
|
986
1024
|
readonly group: "behavior";
|
|
987
1025
|
readonly default: false;
|
|
988
1026
|
}];
|
|
1027
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Checkbox, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function CheckboxExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Checkbox Input</Text>\n <Checkbox\n variant=\"square\"\n size=\"md\"\n disabled={false}\n label=\"Label\"\n checked={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
989
1028
|
};
|
|
990
1029
|
declare const ChipMeta: {
|
|
991
1030
|
readonly id: "Chip";
|
|
@@ -1057,12 +1096,15 @@ declare const ChipMeta: {
|
|
|
1057
1096
|
readonly group: "style";
|
|
1058
1097
|
readonly default: "full";
|
|
1059
1098
|
}];
|
|
1099
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Chip, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function ChipExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Chip Input</Text>\n <Chip\n label=\"Label\"\n variant=\"filled\"\n size=\"md\"\n selected={false}\n closable={false}\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1060
1100
|
};
|
|
1061
1101
|
declare const ColorPickerMeta: {
|
|
1102
|
+
readonly id: "ColorPicker";
|
|
1062
1103
|
readonly name: "ColorPicker";
|
|
1063
1104
|
readonly description: "A visual grid of color swatches for choosing a theme or element color.";
|
|
1064
1105
|
readonly tags: readonly ["base", "input", "picker", "color"];
|
|
1065
1106
|
readonly props: readonly [];
|
|
1107
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ColorPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ColorPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">ColorPicker Example</Text>\n <ColorPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1066
1108
|
};
|
|
1067
1109
|
declare const DatePickerMeta: {
|
|
1068
1110
|
readonly id: "DatePicker";
|
|
@@ -1136,6 +1178,7 @@ declare const DatePickerMeta: {
|
|
|
1136
1178
|
readonly group: "style";
|
|
1137
1179
|
readonly default: "md";
|
|
1138
1180
|
}];
|
|
1181
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, DatePicker, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function DatePickerExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Date Picker Input</Text>\n <DatePicker\n size=\"md\"\n mode=\"date\"\n label=\"Label\"\n placeholder=\"Select date\"\n error=\"Error message\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1139
1182
|
};
|
|
1140
1183
|
declare const DividerMeta: {
|
|
1141
1184
|
readonly id: "Divider";
|
|
@@ -1167,12 +1210,15 @@ declare const DividerMeta: {
|
|
|
1167
1210
|
readonly type: "spacing";
|
|
1168
1211
|
readonly group: "layout";
|
|
1169
1212
|
}];
|
|
1213
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Divider, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function DividerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Divider Example</Text>\n <Divider\n vertical={false}\n thickness={1}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1170
1214
|
};
|
|
1171
1215
|
declare const EmojiPickerMeta: {
|
|
1216
|
+
readonly id: "EmojiPicker";
|
|
1172
1217
|
readonly name: "EmojiPicker";
|
|
1173
1218
|
readonly description: "A grid of emojis categorized by type.";
|
|
1174
1219
|
readonly tags: readonly ["base", "input", "picker", "emoji"];
|
|
1175
1220
|
readonly props: readonly [];
|
|
1221
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, EmojiPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function EmojiPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">EmojiPicker Example</Text>\n <EmojiPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1176
1222
|
};
|
|
1177
1223
|
declare const FilePickerMeta: {
|
|
1178
1224
|
readonly id: "FilePicker";
|
|
@@ -1243,12 +1289,14 @@ declare const FilePickerMeta: {
|
|
|
1243
1289
|
readonly group: "style";
|
|
1244
1290
|
readonly default: "md";
|
|
1245
1291
|
}];
|
|
1292
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, FilePicker, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function FilePickerExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">File Picker Input</Text>\n <FilePicker\n variant=\"button\"\n size=\"md\"\n accept=\"image/*\"\n multiple={false}\n label=\"Upload file\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1246
1293
|
};
|
|
1247
1294
|
declare const FlatListMeta: {
|
|
1248
1295
|
readonly id: "FlatList";
|
|
1249
1296
|
readonly label: "List";
|
|
1250
1297
|
readonly description: "Scrollable list with virtualization.";
|
|
1251
1298
|
readonly category: "display";
|
|
1299
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FlatList, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function FlatListExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">List Example</Text>\n <FlatList\n horizontal={false}\n numColumns={1}\n spacing={0}\n showsScrollIndicator={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1252
1300
|
readonly tags: readonly ["list", "flatlist", "scroll", "virtualized"];
|
|
1253
1301
|
readonly themeMapping: {
|
|
1254
1302
|
readonly bg: "background";
|
|
@@ -1289,10 +1337,12 @@ declare const FlatListMeta: {
|
|
|
1289
1337
|
}];
|
|
1290
1338
|
};
|
|
1291
1339
|
declare const GifPickerMeta: {
|
|
1340
|
+
readonly id: "GifPicker";
|
|
1292
1341
|
readonly name: "GifPicker";
|
|
1293
1342
|
readonly description: "A placeholder picker for GIFs.";
|
|
1294
1343
|
readonly tags: readonly ["base", "input", "picker", "gif"];
|
|
1295
1344
|
readonly props: readonly [];
|
|
1345
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, GifPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function GifPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">GifPicker Example</Text>\n <GifPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1296
1346
|
};
|
|
1297
1347
|
declare const GradientMeta: {
|
|
1298
1348
|
readonly id: "Gradient";
|
|
@@ -1341,6 +1391,7 @@ declare const GradientMeta: {
|
|
|
1341
1391
|
readonly type: "spacing";
|
|
1342
1392
|
readonly group: "layout";
|
|
1343
1393
|
}];
|
|
1394
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Gradient, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function GradientExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Gradient Example</Text>\n <Gradient\n startColor=\"#3b82f6\"\n endColor=\"#8b5cf6\"\n direction=\"vertical\"\n borderRadius=\"none\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1344
1395
|
};
|
|
1345
1396
|
declare const IconMeta: {
|
|
1346
1397
|
readonly id: "Icon";
|
|
@@ -1380,6 +1431,7 @@ declare const IconMeta: {
|
|
|
1380
1431
|
readonly group: "style";
|
|
1381
1432
|
readonly default: 2;
|
|
1382
1433
|
}];
|
|
1434
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Icon, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function IconExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Icon Example</Text>\n <Icon\n name=\"star\"\n size={24}\n strokeWidth={2}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1383
1435
|
};
|
|
1384
1436
|
declare const IconButtonMeta: {
|
|
1385
1437
|
readonly id: "IconButton";
|
|
@@ -1461,12 +1513,15 @@ declare const IconButtonMeta: {
|
|
|
1461
1513
|
readonly group: "style";
|
|
1462
1514
|
readonly themeDefault: "foreground";
|
|
1463
1515
|
}];
|
|
1516
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, IconButton, Inline, Stack, Text } from '@flipova/foundation';\n\nexport default function IconButtonExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Stack spacing={4} style={{ padding: 20 }}>\n <Text variant=\"heading\" size=\"md\">Icon Button Actions</Text>\n <Inline spacing={3} alignItems=\"center\">\n <IconButton\n variant=\"ghost\"\n size=\"md\"\n disabled={false}\n borderRadius=\"full\"\n onPress={() => console.log('IconButton pressed')} />\n </Inline>\n </Stack>\n </FoundationProvider>\n );\n}";
|
|
1464
1517
|
};
|
|
1465
1518
|
declare const IconPickerMeta: {
|
|
1519
|
+
readonly id: "IconPicker";
|
|
1466
1520
|
readonly name: "IconPicker";
|
|
1467
1521
|
readonly description: "A searchable grid of icons.";
|
|
1468
1522
|
readonly tags: readonly ["base", "input", "picker", "icon"];
|
|
1469
1523
|
readonly props: readonly [];
|
|
1524
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, IconPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function IconPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">IconPicker Example</Text>\n <IconPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1470
1525
|
};
|
|
1471
1526
|
declare const ImageMeta: {
|
|
1472
1527
|
readonly id: "Image";
|
|
@@ -1522,6 +1577,7 @@ declare const ImageMeta: {
|
|
|
1522
1577
|
readonly group: "style";
|
|
1523
1578
|
readonly themeDefault: "muted";
|
|
1524
1579
|
}];
|
|
1580
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Image, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ImageExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Image Example</Text>\n <Image\n source=\"Source URL\"\n alt=\"Alt text\"\n resizeMode=\"cover\"\n height={200}\n borderRadius=\"none\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1525
1581
|
};
|
|
1526
1582
|
declare const LottieAnimationMeta: {
|
|
1527
1583
|
readonly id: "LottieAnimation";
|
|
@@ -1570,6 +1626,7 @@ declare const LottieAnimationMeta: {
|
|
|
1570
1626
|
readonly group: "layout";
|
|
1571
1627
|
readonly default: 200;
|
|
1572
1628
|
}];
|
|
1629
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, LottieAnimation, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function LottieAnimationExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Lottie Example</Text>\n <LottieAnimation\n source=\"Source URL\"\n autoPlay={true}\n loop={true}\n speed={1}\n width={200}\n height={200}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1573
1630
|
};
|
|
1574
1631
|
declare const MapViewMeta: {
|
|
1575
1632
|
readonly id: "MapView";
|
|
@@ -1624,24 +1681,31 @@ declare const MapViewMeta: {
|
|
|
1624
1681
|
readonly group: "behavior";
|
|
1625
1682
|
readonly default: true;
|
|
1626
1683
|
}];
|
|
1684
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, MapView, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function MapViewExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Map Example</Text>\n <MapView\n latitude={48.8566}\n longitude={2.3522}\n zoom={12}\n height={300}\n borderRadius=\"lg\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1627
1685
|
};
|
|
1628
1686
|
declare const NumberInputMeta: {
|
|
1687
|
+
readonly id: "NumberInput";
|
|
1629
1688
|
readonly name: "NumberInput";
|
|
1630
1689
|
readonly description: "A specialized input for numbers with increment/decrement steppers.";
|
|
1631
1690
|
readonly tags: readonly ["base", "input", "number", "stepper"];
|
|
1632
1691
|
readonly props: readonly [];
|
|
1692
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, NumberInput, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function NumberInputExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">NumberInput Example</Text>\n <NumberInput />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1633
1693
|
};
|
|
1634
1694
|
declare const OTPInputMeta: {
|
|
1695
|
+
readonly id: "OTPInput";
|
|
1635
1696
|
readonly name: "OTPInput";
|
|
1636
1697
|
readonly description: "A multi-cell One-Time-Password input.";
|
|
1637
1698
|
readonly tags: readonly ["base", "input", "otp"];
|
|
1638
1699
|
readonly props: readonly [];
|
|
1700
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, OTPInput, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function OTPInputExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">OTPInput Example</Text>\n <OTPInput />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1639
1701
|
};
|
|
1640
1702
|
declare const PasswordInputMeta: {
|
|
1703
|
+
readonly id: "PasswordInput";
|
|
1641
1704
|
readonly name: "PasswordInput";
|
|
1642
1705
|
readonly description: "A secure text input with visibility toggle.";
|
|
1643
1706
|
readonly tags: readonly ["base", "input", "password", "secure"];
|
|
1644
1707
|
readonly props: readonly [];
|
|
1708
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, PasswordInput, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function PasswordInputExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">PasswordInput Example</Text>\n <PasswordInput />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1645
1709
|
};
|
|
1646
1710
|
declare const PressableMeta: {
|
|
1647
1711
|
readonly id: "Pressable";
|
|
@@ -1667,6 +1731,7 @@ declare const PressableMeta: {
|
|
|
1667
1731
|
readonly group: "style";
|
|
1668
1732
|
readonly default: 0.7;
|
|
1669
1733
|
}];
|
|
1734
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Pressable, Inline, Stack, Text } from '@flipova/foundation';\n\nexport default function PressableExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Stack spacing={4} style={{ padding: 20 }}>\n <Text variant=\"heading\" size=\"md\">Pressable Actions</Text>\n <Inline spacing={3} alignItems=\"center\">\n <Pressable\n disabled={false}\n opacity={0.7}\n onPress={() => console.log('Pressable pressed')} />\n </Inline>\n </Stack>\n </FoundationProvider>\n );\n}";
|
|
1670
1735
|
};
|
|
1671
1736
|
declare const ProgressBarMeta: {
|
|
1672
1737
|
readonly id: "ProgressBar";
|
|
@@ -1720,6 +1785,7 @@ declare const ProgressBarMeta: {
|
|
|
1720
1785
|
readonly group: "behavior";
|
|
1721
1786
|
readonly default: false;
|
|
1722
1787
|
}];
|
|
1788
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ProgressBar, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ProgressBarExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Progress Bar Example</Text>\n <ProgressBar\n progress={0.5}\n size=\"md\"\n borderRadius=\"full\"\n showLabel={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1723
1789
|
};
|
|
1724
1790
|
declare const RadioGroupMeta: {
|
|
1725
1791
|
readonly id: "RadioGroup";
|
|
@@ -1774,12 +1840,15 @@ declare const RadioGroupMeta: {
|
|
|
1774
1840
|
readonly group: "style";
|
|
1775
1841
|
readonly themeDefault: "primary";
|
|
1776
1842
|
}];
|
|
1843
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, RadioGroup, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function RadioGroupExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Radio Group Input</Text>\n <RadioGroup\n size=\"md\"\n label=\"Label\"\n direction=\"column\"\n spacing={2}\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1777
1844
|
};
|
|
1778
1845
|
declare const SearchInputMeta: {
|
|
1846
|
+
readonly id: "SearchInput";
|
|
1779
1847
|
readonly name: "SearchInput";
|
|
1780
1848
|
readonly description: "A specialized input for searching with a clear button.";
|
|
1781
1849
|
readonly tags: readonly ["base", "input", "search"];
|
|
1782
1850
|
readonly props: readonly [];
|
|
1851
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SearchInput, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SearchInputExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">SearchInput Example</Text>\n <SearchInput />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1783
1852
|
};
|
|
1784
1853
|
declare const SelectMeta: {
|
|
1785
1854
|
readonly id: "Select";
|
|
@@ -1876,6 +1945,7 @@ declare const SelectMeta: {
|
|
|
1876
1945
|
readonly group: "style";
|
|
1877
1946
|
readonly themeDefault: "input";
|
|
1878
1947
|
}];
|
|
1948
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Select, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function SelectExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Select Input</Text>\n <Select\n variant=\"outlined\"\n size=\"md\"\n label=\"Label\"\n placeholder=\"Select...\"\n error=\"Error message\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1879
1949
|
};
|
|
1880
1950
|
declare const SeparatorMeta: {
|
|
1881
1951
|
readonly id: "Separator";
|
|
@@ -1922,6 +1992,7 @@ declare const SeparatorMeta: {
|
|
|
1922
1992
|
readonly default: "horizontal";
|
|
1923
1993
|
readonly options: readonly ["horizontal", "vertical"];
|
|
1924
1994
|
}];
|
|
1995
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Separator, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SeparatorExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Separator Example</Text>\n <Separator\n label=\"Label\"\n thickness={1}\n spacing={4}\n orientation=\"horizontal\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
1925
1996
|
};
|
|
1926
1997
|
declare const SliderMeta: {
|
|
1927
1998
|
readonly id: "Slider";
|
|
@@ -1999,6 +2070,7 @@ declare const SliderMeta: {
|
|
|
1999
2070
|
readonly group: "style";
|
|
2000
2071
|
readonly themeDefault: "primary";
|
|
2001
2072
|
}];
|
|
2073
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Slider, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function SliderExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Slider Input</Text>\n <Slider\n size=\"md\"\n min={0}\n max={100}\n step={1}\n label=\"Label\"\n showValue={true}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2002
2074
|
};
|
|
2003
2075
|
declare const SpinnerMeta: {
|
|
2004
2076
|
readonly id: "Spinner";
|
|
@@ -2027,6 +2099,7 @@ declare const SpinnerMeta: {
|
|
|
2027
2099
|
readonly group: "style";
|
|
2028
2100
|
readonly themeDefault: "primary";
|
|
2029
2101
|
}];
|
|
2102
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Spinner, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SpinnerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Spinner Example</Text>\n <Spinner\n size=\"md\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2030
2103
|
};
|
|
2031
2104
|
declare const SwitchMeta: {
|
|
2032
2105
|
readonly id: "Switch";
|
|
@@ -2086,6 +2159,7 @@ declare const SwitchMeta: {
|
|
|
2086
2159
|
readonly group: "style";
|
|
2087
2160
|
readonly themeDefault: "muted";
|
|
2088
2161
|
}];
|
|
2162
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Switch, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function SwitchExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Switch Input</Text>\n <Switch\n size=\"md\"\n disabled={false}\n label=\"Label\"\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2089
2163
|
};
|
|
2090
2164
|
declare const TabsMeta: {
|
|
2091
2165
|
readonly id: "Tabs";
|
|
@@ -2128,6 +2202,7 @@ declare const TabsMeta: {
|
|
|
2128
2202
|
readonly default: "top";
|
|
2129
2203
|
readonly options: readonly ["top", "bottom"];
|
|
2130
2204
|
}];
|
|
2205
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Tabs, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function TabsExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Tabs Example</Text>\n <Tabs\n borderRadius=\"none\"\n position=\"top\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2131
2206
|
};
|
|
2132
2207
|
declare const TextMeta: {
|
|
2133
2208
|
readonly id: "Text";
|
|
@@ -2180,6 +2255,7 @@ declare const TextMeta: {
|
|
|
2180
2255
|
readonly type: "number";
|
|
2181
2256
|
readonly group: "behavior";
|
|
2182
2257
|
}];
|
|
2258
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Text, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function TextExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Text Example</Text>\n <Text\n text=\"Text\"\n fontSize={14}\n fontWeight=\"400\"\n textAlign=\"left\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2183
2259
|
};
|
|
2184
2260
|
declare const TextAreaMeta: {
|
|
2185
2261
|
readonly id: "TextArea";
|
|
@@ -2285,6 +2361,7 @@ declare const TextAreaMeta: {
|
|
|
2285
2361
|
readonly group: "style";
|
|
2286
2362
|
readonly themeDefault: "input";
|
|
2287
2363
|
}];
|
|
2364
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, TextArea, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function TextAreaExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Text Area Input</Text>\n <TextArea\n variant=\"outlined\"\n size=\"md\"\n placeholder=\"Placeholder\"\n label=\"Label\"\n error=\"Error message\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2288
2365
|
};
|
|
2289
2366
|
declare const TextInputMeta: {
|
|
2290
2367
|
readonly id: "TextInput";
|
|
@@ -2402,10 +2479,11 @@ declare const TextInputMeta: {
|
|
|
2402
2479
|
readonly group: "style";
|
|
2403
2480
|
readonly themeDefault: "border";
|
|
2404
2481
|
}];
|
|
2482
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, TextInput, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function TextInputExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Text Input Input</Text>\n <TextInput\n variant=\"outlined\"\n size=\"md\"\n placeholder=\"Placeholder\"\n label=\"Label\"\n error=\"Error message\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2405
2483
|
};
|
|
2406
2484
|
declare const VideoMeta: {
|
|
2407
2485
|
readonly id: "Video";
|
|
2408
|
-
readonly label: "
|
|
2486
|
+
readonly label: "Video";
|
|
2409
2487
|
readonly description: "Video player with controls, autoplay, and loop.";
|
|
2410
2488
|
readonly category: "media";
|
|
2411
2489
|
readonly tags: readonly ["video", "player", "media", "stream"];
|
|
@@ -2475,6 +2553,7 @@ declare const VideoMeta: {
|
|
|
2475
2553
|
readonly group: "style";
|
|
2476
2554
|
readonly default: "none";
|
|
2477
2555
|
}];
|
|
2556
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Video, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function VideoExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Video Example</Text>\n <Video\n source=\"Source URL\"\n poster=\"Poster URL\"\n autoplay={false}\n loop={false}\n muted={true}\n controls={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2478
2557
|
};
|
|
2479
2558
|
declare const WebViewMeta: {
|
|
2480
2559
|
readonly id: "WebView";
|
|
@@ -2519,8 +2598,10 @@ declare const WebViewMeta: {
|
|
|
2519
2598
|
readonly group: "style";
|
|
2520
2599
|
readonly default: "none";
|
|
2521
2600
|
}];
|
|
2601
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, WebView, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function WebViewExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">WebView Example</Text>\n <WebView\n url=\"https://expo.dev\"\n height={400}\n scrollEnabled={true}\n borderRadius=\"none\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2522
2602
|
};
|
|
2523
2603
|
declare const WheelPickerMeta: {
|
|
2604
|
+
readonly id: "WheelPicker";
|
|
2524
2605
|
readonly name: "WheelPicker";
|
|
2525
2606
|
readonly description: "A scrollable barrel wheel picker. If items exceed maxItemsInWheel, a \"More...\" option opens a submenu modal.";
|
|
2526
2607
|
readonly props: readonly [{
|
|
@@ -2548,6 +2629,7 @@ declare const WheelPickerMeta: {
|
|
|
2548
2629
|
readonly description: "Label for the \"More...\" option";
|
|
2549
2630
|
readonly default: "Plus...";
|
|
2550
2631
|
}];
|
|
2632
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, WheelPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function WheelPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">WheelPicker Example</Text>\n <WheelPicker\n value=\"Sample\"\n itemHeight={40}\n maxItemsInWheel={5}\n moreLabel=\"Plus...\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
2551
2633
|
};
|
|
2552
2634
|
declare const AuthLayoutMeta: {
|
|
2553
2635
|
readonly id: "AuthLayout";
|
|
@@ -2634,6 +2716,7 @@ declare const AuthLayoutMeta: {
|
|
|
2634
2716
|
readonly group: "layout";
|
|
2635
2717
|
readonly default: 4;
|
|
2636
2718
|
}];
|
|
2719
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, AuthLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function AuthLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <AuthLayout\n borderRadius=\"none\"\n spacing={0}\n brandingRatio={0.5}\n padding={5}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Authentication Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Authentication Section 2</Text>\n </Card>\n </AuthLayout>\n </FoundationProvider>\n );\n}";
|
|
2637
2720
|
};
|
|
2638
2721
|
declare const BentoLayoutMeta: {
|
|
2639
2722
|
readonly id: "BentoLayout";
|
|
@@ -2708,6 +2791,7 @@ declare const BentoLayoutMeta: {
|
|
|
2708
2791
|
readonly group: "content";
|
|
2709
2792
|
readonly default: readonly [];
|
|
2710
2793
|
}];
|
|
2794
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BentoLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function BentoLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <BentoLayout\n spacing={2}\n itemBorderRadius=\"none\"\n scrollable={true}\n maxWidth={1200}\n baseHeight={200}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Bento Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Bento Section 2</Text>\n </Card>\n </BentoLayout>\n </FoundationProvider>\n );\n}";
|
|
2711
2795
|
};
|
|
2712
2796
|
declare const BottomDrawerLayoutMeta: {
|
|
2713
2797
|
readonly id: "BottomDrawerLayout";
|
|
@@ -2827,6 +2911,7 @@ declare const BottomDrawerLayoutMeta: {
|
|
|
2827
2911
|
readonly group: "layout";
|
|
2828
2912
|
readonly default: 56;
|
|
2829
2913
|
}];
|
|
2914
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BottomDrawerLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function BottomDrawerLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <BottomDrawerLayout\n drawerHeight={400}\n scrollable={true}\n drawerBorderRadius=\"3xl\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Bottom Drawer Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Bottom Drawer Section 2</Text>\n </Card>\n </BottomDrawerLayout>\n </FoundationProvider>\n );\n}";
|
|
2830
2915
|
};
|
|
2831
2916
|
declare const CenteredLayoutMeta: {
|
|
2832
2917
|
readonly id: "CenteredLayout";
|
|
@@ -2895,6 +2980,7 @@ declare const CenteredLayoutMeta: {
|
|
|
2895
2980
|
readonly group: "layout";
|
|
2896
2981
|
readonly default: 6;
|
|
2897
2982
|
}];
|
|
2983
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, CenteredLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function CenteredLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <CenteredLayout\n maxWidth={500}\n padding={4}\n borderRadius=\"3xl\"\n shadowed={false}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Centered Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Centered Section 2</Text>\n </Card>\n </CenteredLayout>\n </FoundationProvider>\n );\n}";
|
|
2898
2984
|
};
|
|
2899
2985
|
declare const DashboardLayoutMeta: {
|
|
2900
2986
|
readonly id: "DashboardLayout";
|
|
@@ -3023,6 +3109,7 @@ declare const DashboardLayoutMeta: {
|
|
|
3023
3109
|
readonly group: "behavior";
|
|
3024
3110
|
readonly default: false;
|
|
3025
3111
|
}];
|
|
3112
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, DashboardLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function DashboardLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <DashboardLayout\n sidebarWidth={260}\n sidebarCollapsedWidth={70}\n headerHeight={70}\n footerHeight={60}\n spacing={0}\n borderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Dashboard Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Dashboard Section 2</Text>\n </Card>\n </DashboardLayout>\n </FoundationProvider>\n );\n}";
|
|
3026
3113
|
};
|
|
3027
3114
|
declare const DeckLayoutMeta: {
|
|
3028
3115
|
readonly id: "DeckLayout";
|
|
@@ -3127,6 +3214,7 @@ declare const DeckLayoutMeta: {
|
|
|
3127
3214
|
readonly group: "style";
|
|
3128
3215
|
readonly themeDefault: "background";
|
|
3129
3216
|
}];
|
|
3217
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, DeckLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function DeckLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <DeckLayout\n peekOffset={12}\n peekScale={0.05}\n cycle={false}\n cardShadow={true}\n cardBorderRadius={24}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Deck Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Deck Section 2</Text>\n </Card>\n </DeckLayout>\n </FoundationProvider>\n );\n}";
|
|
3130
3218
|
};
|
|
3131
3219
|
declare const FlexLayoutMeta: {
|
|
3132
3220
|
readonly id: "FlexLayout";
|
|
@@ -3207,6 +3295,7 @@ declare const FlexLayoutMeta: {
|
|
|
3207
3295
|
readonly group: "style";
|
|
3208
3296
|
readonly default: "none";
|
|
3209
3297
|
}];
|
|
3298
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FlexLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function FlexLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <FlexLayout\n direction=\"row\"\n wrap={false}\n spacing={4}\n align=\"stretch\"\n justify=\"flex-start\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Flex Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Flex Section 2</Text>\n </Card>\n </FlexLayout>\n </FoundationProvider>\n );\n}";
|
|
3210
3299
|
};
|
|
3211
3300
|
declare const FlipLayoutMeta: {
|
|
3212
3301
|
readonly id: "FlipLayout";
|
|
@@ -3330,6 +3419,7 @@ declare const FlipLayoutMeta: {
|
|
|
3330
3419
|
readonly group: "behavior";
|
|
3331
3420
|
readonly default: 140;
|
|
3332
3421
|
}];
|
|
3422
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FlipLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function FlipLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <FlipLayout\n borderRadius=\"none\"\n flipPerspective={1200}\n swipeThreshold={40}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Flip Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Flip Section 2</Text>\n </Card>\n </FlipLayout>\n </FoundationProvider>\n );\n}";
|
|
3333
3423
|
};
|
|
3334
3424
|
declare const FooterLayoutMeta: {
|
|
3335
3425
|
readonly id: "FooterLayout";
|
|
@@ -3431,6 +3521,7 @@ declare const FooterLayoutMeta: {
|
|
|
3431
3521
|
readonly group: "behavior";
|
|
3432
3522
|
readonly default: false;
|
|
3433
3523
|
}];
|
|
3524
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FooterLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function FooterLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <FooterLayout\n footerHeight={60}\n spacing={0}\n sticky={false}\n scrollable={true}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Footer Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Footer Section 2</Text>\n </Card>\n </FooterLayout>\n </FoundationProvider>\n );\n}";
|
|
3434
3525
|
};
|
|
3435
3526
|
declare const GridLayoutMeta: {
|
|
3436
3527
|
readonly id: "GridLayout";
|
|
@@ -3517,6 +3608,7 @@ declare const GridLayoutMeta: {
|
|
|
3517
3608
|
readonly group: "behavior";
|
|
3518
3609
|
readonly default: false;
|
|
3519
3610
|
}];
|
|
3611
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, GridLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function GridLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <GridLayout\n spacing={0}\n scrollable={false}\n padding={0}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Grid Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Grid Section 2</Text>\n </Card>\n </GridLayout>\n </FoundationProvider>\n );\n}";
|
|
3520
3612
|
};
|
|
3521
3613
|
declare const HeaderContentLayoutMeta: {
|
|
3522
3614
|
readonly id: "HeaderContentLayout";
|
|
@@ -3623,6 +3715,7 @@ declare const HeaderContentLayoutMeta: {
|
|
|
3623
3715
|
readonly group: "behavior";
|
|
3624
3716
|
readonly default: 16;
|
|
3625
3717
|
}];
|
|
3718
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, HeaderContentLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function HeaderContentLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <HeaderContentLayout\n headerHeight={150}\n headerCollapsedHeight={60}\n spacing={0}\n headerBorderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Collapsible Header Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Collapsible Header Section 2</Text>\n </Card>\n </HeaderContentLayout>\n </FoundationProvider>\n );\n}";
|
|
3626
3719
|
};
|
|
3627
3720
|
declare const LeftDrawerLayoutMeta: {
|
|
3628
3721
|
readonly id: "LeftDrawerLayout";
|
|
@@ -3742,6 +3835,7 @@ declare const LeftDrawerLayoutMeta: {
|
|
|
3742
3835
|
readonly group: "layout";
|
|
3743
3836
|
readonly default: 40;
|
|
3744
3837
|
}];
|
|
3838
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, LeftDrawerLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function LeftDrawerLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <LeftDrawerLayout\n drawerWidth={280}\n scrollable={true}\n drawerBorderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Left Drawer Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Left Drawer Section 2</Text>\n </Card>\n </LeftDrawerLayout>\n </FoundationProvider>\n );\n}";
|
|
3745
3839
|
};
|
|
3746
3840
|
declare const MasonryLayoutMeta: {
|
|
3747
3841
|
readonly id: "MasonryLayout";
|
|
@@ -3815,6 +3909,7 @@ declare const MasonryLayoutMeta: {
|
|
|
3815
3909
|
readonly type: "padding";
|
|
3816
3910
|
readonly group: "layout";
|
|
3817
3911
|
}];
|
|
3912
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, MasonryLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function MasonryLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <MasonryLayout\n columns={2}\n spacing={1}\n scrollable={true}\n background=\"transparent\"\n borderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Masonry Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Masonry Section 2</Text>\n </Card>\n </MasonryLayout>\n </FoundationProvider>\n );\n}";
|
|
3818
3913
|
};
|
|
3819
3914
|
declare const ParallaxLayoutMeta: {
|
|
3820
3915
|
readonly id: "ParallaxLayout";
|
|
@@ -3912,6 +4007,7 @@ declare const ParallaxLayoutMeta: {
|
|
|
3912
4007
|
readonly group: "behavior";
|
|
3913
4008
|
readonly default: 16;
|
|
3914
4009
|
}];
|
|
4010
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ParallaxLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function ParallaxLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <ParallaxLayout\n rowCount={3}\n itemWidth={200}\n spacing={4}\n itemSpacing={12}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Parallax Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Parallax Section 2</Text>\n </Card>\n </ParallaxLayout>\n </FoundationProvider>\n );\n}";
|
|
3915
4011
|
};
|
|
3916
4012
|
declare const ResponsiveLayoutMeta: {
|
|
3917
4013
|
readonly id: "ResponsiveLayout";
|
|
@@ -4058,6 +4154,7 @@ declare const ResponsiveLayoutMeta: {
|
|
|
4058
4154
|
readonly group: "layout";
|
|
4059
4155
|
readonly default: 320;
|
|
4060
4156
|
}];
|
|
4157
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ResponsiveLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function ResponsiveLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <ResponsiveLayout\n spacing={0}\n headerHeight={60}\n sidebarWidth={260}\n footerHeight={60}\n adaptiveMode=\"basic\"\n hideHeader={false}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Responsive Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Responsive Section 2</Text>\n </Card>\n </ResponsiveLayout>\n </FoundationProvider>\n );\n}";
|
|
4061
4158
|
};
|
|
4062
4159
|
declare const RootLayoutMeta: {
|
|
4063
4160
|
readonly id: "RootLayout";
|
|
@@ -4122,6 +4219,7 @@ declare const RootLayoutMeta: {
|
|
|
4122
4219
|
readonly group: "layout";
|
|
4123
4220
|
readonly default: 0;
|
|
4124
4221
|
}];
|
|
4222
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, RootLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function RootLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <RootLayout\n scrollable={true}\n padding={0}\n justifyContent=\"flex-start\"\n alignItems=\"stretch\"\n flexDirection=\"column\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Root Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Root Section 2</Text>\n </Card>\n </RootLayout>\n </FoundationProvider>\n );\n}";
|
|
4125
4223
|
};
|
|
4126
4224
|
declare const ScrollLayoutMeta: {
|
|
4127
4225
|
readonly id: "ScrollLayout";
|
|
@@ -4260,6 +4358,7 @@ declare const ScrollLayoutMeta: {
|
|
|
4260
4358
|
readonly group: "layout";
|
|
4261
4359
|
readonly default: 50;
|
|
4262
4360
|
}];
|
|
4361
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ScrollLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function ScrollLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <ScrollLayout\n spacing={4}\n useSafeAreaInsets={true}\n headerHeight={80}\n footerHeight={60}\n scrollDirection=\"vertical\"\n showScrollIndicator={false}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Scroll Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Scroll Section 2</Text>\n </Card>\n </ScrollLayout>\n </FoundationProvider>\n );\n}";
|
|
4263
4362
|
};
|
|
4264
4363
|
declare const SidebarLayoutMeta: {
|
|
4265
4364
|
readonly id: "SidebarLayout";
|
|
@@ -4367,6 +4466,7 @@ declare const SidebarLayoutMeta: {
|
|
|
4367
4466
|
readonly group: "layout";
|
|
4368
4467
|
readonly default: 600;
|
|
4369
4468
|
}];
|
|
4469
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SidebarLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SidebarLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SidebarLayout\n sidebarWidth={280}\n position=\"left\"\n collapsible={true}\n spacing={4}\n scrollable={true}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Sidebar Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Sidebar Section 2</Text>\n </Card>\n </SidebarLayout>\n </FoundationProvider>\n );\n}";
|
|
4370
4470
|
};
|
|
4371
4471
|
declare const SketchLayoutMeta: {
|
|
4372
4472
|
readonly id: "SketchLayout";
|
|
@@ -4384,8 +4484,10 @@ declare const SketchLayoutMeta: {
|
|
|
4384
4484
|
readonly group: "style";
|
|
4385
4485
|
readonly themeDefault: "background";
|
|
4386
4486
|
}];
|
|
4487
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SketchLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SketchLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SketchLayout >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Sketch (placeholder) Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Sketch (placeholder) Section 2</Text>\n </Card>\n </SketchLayout>\n </FoundationProvider>\n );\n}";
|
|
4387
4488
|
};
|
|
4388
4489
|
declare const SortableGridLayoutMeta: {
|
|
4490
|
+
readonly id: "SortableGridLayout";
|
|
4389
4491
|
readonly name: "SortableGridLayout";
|
|
4390
4492
|
readonly description: "A drag-and-drop reorderable grid layout for rendering interactive lists or grids.";
|
|
4391
4493
|
readonly tags: readonly ["layout", "grid", "drag-and-drop", "interactive", "reorderable"];
|
|
@@ -4406,6 +4508,7 @@ declare const SortableGridLayoutMeta: {
|
|
|
4406
4508
|
readonly default: 8;
|
|
4407
4509
|
};
|
|
4408
4510
|
};
|
|
4511
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SortableGridLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SortableGridLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SortableGridLayout\n columns={3}\n spacing={8}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">SortableGridLayout Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">SortableGridLayout Section 2</Text>\n </Card>\n </SortableGridLayout>\n </FoundationProvider>\n );\n}";
|
|
4409
4512
|
};
|
|
4410
4513
|
declare const SplitLayoutMeta: {
|
|
4411
4514
|
readonly id: "SplitLayout";
|
|
@@ -4500,6 +4603,7 @@ declare const SplitLayoutMeta: {
|
|
|
4500
4603
|
readonly group: "style";
|
|
4501
4604
|
readonly default: "none";
|
|
4502
4605
|
}];
|
|
4606
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SplitLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SplitLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SplitLayout\n spacing={0}\n ratio={0.5}\n orientation=\"horizontal\"\n hideLeftOnMobile={false}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Split Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Split Section 2</Text>\n </Card>\n </SplitLayout>\n </FoundationProvider>\n );\n}";
|
|
4503
4607
|
};
|
|
4504
4608
|
declare const Swipe2ScreenLayoutMeta: {
|
|
4505
4609
|
readonly id: "Swipe2ScreenLayout";
|
|
@@ -4558,6 +4662,7 @@ declare const Swipe2ScreenLayoutMeta: {
|
|
|
4558
4662
|
readonly group: "content";
|
|
4559
4663
|
readonly default: readonly [];
|
|
4560
4664
|
}];
|
|
4665
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Swipe2ScreenLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function Swipe2ScreenLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Swipe2ScreenLayout\n containerBackground=\"#000\"\n screenBackground=\"#fff\"\n swipeThreshold={100}\n projectedScale={0.8}\n animationDuration={300}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Swipe to Screen Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Swipe to Screen Section 2</Text>\n </Card>\n </Swipe2ScreenLayout>\n </FoundationProvider>\n );\n}";
|
|
4561
4666
|
};
|
|
4562
4667
|
declare const SwiperLayoutMeta: {
|
|
4563
4668
|
readonly id: "SwiperLayout";
|
|
@@ -4673,6 +4778,7 @@ declare const SwiperLayoutMeta: {
|
|
|
4673
4778
|
readonly group: "style";
|
|
4674
4779
|
readonly default: "#fff";
|
|
4675
4780
|
}];
|
|
4781
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SwiperLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SwiperLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SwiperLayout\n enableSwipeUp={false}\n enableSwipeDown={false}\n borderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Swiper Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Swiper Section 2</Text>\n </Card>\n </SwiperLayout>\n </FoundationProvider>\n );\n}";
|
|
4676
4782
|
};
|
|
4677
4783
|
declare const SystemLayoutMeta: {
|
|
4678
4784
|
readonly id: "SystemLayout";
|
|
@@ -4723,6 +4829,7 @@ declare const SystemLayoutMeta: {
|
|
|
4723
4829
|
readonly group: "style";
|
|
4724
4830
|
readonly themeDefault: "card";
|
|
4725
4831
|
}];
|
|
4832
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SystemLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SystemLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SystemLayout\n rootBackgroundColor=\"#0c3ddbff\"\n statusBarContentStyle=\"auto\"\n navigationBarContentStyle=\"light\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">System UI Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">System UI Section 2</Text>\n </Card>\n </SystemLayout>\n </FoundationProvider>\n );\n}";
|
|
4726
4833
|
};
|
|
4727
4834
|
declare const TopDrawerLayoutMeta: {
|
|
4728
4835
|
readonly id: "TopDrawerLayout";
|
|
@@ -4854,6 +4961,7 @@ declare const TopDrawerLayoutMeta: {
|
|
|
4854
4961
|
readonly group: "style";
|
|
4855
4962
|
readonly themeDefault: "mutedForeground";
|
|
4856
4963
|
}];
|
|
4964
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, TopDrawerLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function TopDrawerLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <TopDrawerLayout\n drawerHeight={600}\n scrollable={true}\n drawerBorderRadius=\"3xl\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Top Drawer Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Top Drawer Section 2</Text>\n </Card>\n </TopDrawerLayout>\n </FoundationProvider>\n );\n}";
|
|
4857
4965
|
};
|
|
4858
4966
|
declare const TutoLayoutMeta: {
|
|
4859
4967
|
readonly id: "TutoLayout";
|
|
@@ -4942,6 +5050,7 @@ declare const TutoLayoutMeta: {
|
|
|
4942
5050
|
readonly group: "content";
|
|
4943
5051
|
readonly default: readonly [];
|
|
4944
5052
|
}];
|
|
5053
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, TutoLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function TutoLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <TutoLayout\n overlayOpacity={0.78}\n showSkip={true}\n nextLabel=\"Next\"\n finishLabel=\"Finish\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">TutoLayout Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">TutoLayout Section 2</Text>\n </Card>\n </TutoLayout>\n </FoundationProvider>\n );\n}";
|
|
4945
5054
|
};
|
|
4946
5055
|
declare const VoidLayoutMeta: {
|
|
4947
5056
|
readonly id: "VoidLayout";
|
|
@@ -5005,8 +5114,167 @@ declare const VoidLayoutMeta: {
|
|
|
5005
5114
|
readonly group: "style";
|
|
5006
5115
|
readonly default: false;
|
|
5007
5116
|
}];
|
|
5117
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, VoidLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function VoidLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <VoidLayout\n scrollable={true}\n borderRadius=\"none\"\n spacing={0}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Void Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Void Section 2</Text>\n </Card>\n </VoidLayout>\n </FoundationProvider>\n );\n}";
|
|
5008
5118
|
};
|
|
5009
5119
|
declare const componentRegistry: readonly [{
|
|
5120
|
+
readonly id: "BadgeWrapper";
|
|
5121
|
+
readonly name: "BadgeWrapper";
|
|
5122
|
+
readonly description: "Wraps an element and places a customizable notification badge in the top right corner.";
|
|
5123
|
+
readonly props: readonly [{
|
|
5124
|
+
readonly name: "count";
|
|
5125
|
+
readonly type: "number";
|
|
5126
|
+
readonly description: "Number to display in badge. If 0, no badge is shown unless showZero is true.";
|
|
5127
|
+
readonly default: 0;
|
|
5128
|
+
}, {
|
|
5129
|
+
readonly name: "showZero";
|
|
5130
|
+
readonly type: "boolean";
|
|
5131
|
+
readonly description: "Show badge even if count is 0";
|
|
5132
|
+
readonly default: false;
|
|
5133
|
+
}, {
|
|
5134
|
+
readonly name: "color";
|
|
5135
|
+
readonly type: "string";
|
|
5136
|
+
readonly description: "Badge background color";
|
|
5137
|
+
readonly default: null;
|
|
5138
|
+
}];
|
|
5139
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BadgeWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BadgeWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">BadgeWrapper Example</Text>\n <BadgeWrapper\n count={0}\n showZero={false}\n color=\"Sample\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5140
|
+
}, {
|
|
5141
|
+
readonly id: "BlurWrapper";
|
|
5142
|
+
readonly name: "BlurWrapper";
|
|
5143
|
+
readonly description: "Wraps children in a frosted glass/blur container.";
|
|
5144
|
+
readonly props: readonly [{
|
|
5145
|
+
readonly name: "intensity";
|
|
5146
|
+
readonly type: "number";
|
|
5147
|
+
readonly description: "Blur intensity (1-100)";
|
|
5148
|
+
readonly default: 50;
|
|
5149
|
+
}, {
|
|
5150
|
+
readonly name: "tint";
|
|
5151
|
+
readonly type: "string";
|
|
5152
|
+
readonly description: "Tint color (light, dark, default)";
|
|
5153
|
+
readonly default: "default";
|
|
5154
|
+
}];
|
|
5155
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BlurWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BlurWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">BlurWrapper Example</Text>\n <BlurWrapper\n intensity={50}\n tint=\"default\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5156
|
+
}, {
|
|
5157
|
+
readonly id: "CollapsibleWrapper";
|
|
5158
|
+
readonly name: "CollapsibleWrapper";
|
|
5159
|
+
readonly description: "A container that smoothly expands or collapses its children height.";
|
|
5160
|
+
readonly props: readonly [{
|
|
5161
|
+
readonly name: "isExpanded";
|
|
5162
|
+
readonly type: "boolean";
|
|
5163
|
+
readonly description: "Whether the container is expanded";
|
|
5164
|
+
readonly default: false;
|
|
5165
|
+
}];
|
|
5166
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, CollapsibleWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function CollapsibleWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">CollapsibleWrapper Example</Text>\n <CollapsibleWrapper\n isExpanded={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5167
|
+
}, {
|
|
5168
|
+
readonly id: "FadeInWrapper";
|
|
5169
|
+
readonly name: "FadeInWrapper";
|
|
5170
|
+
readonly description: "Animates its children in with a smooth opacity fade on mount.";
|
|
5171
|
+
readonly props: readonly [{
|
|
5172
|
+
readonly name: "duration";
|
|
5173
|
+
readonly type: "number";
|
|
5174
|
+
readonly description: "Animation duration in ms";
|
|
5175
|
+
readonly default: 500;
|
|
5176
|
+
}, {
|
|
5177
|
+
readonly name: "delay";
|
|
5178
|
+
readonly type: "number";
|
|
5179
|
+
readonly description: "Animation delay in ms";
|
|
5180
|
+
readonly default: 0;
|
|
5181
|
+
}];
|
|
5182
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FadeInWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function FadeInWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">FadeInWrapper Example</Text>\n <FadeInWrapper\n duration={500}\n delay={0}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5183
|
+
}, {
|
|
5184
|
+
readonly id: "KeyboardAvoidWrapper";
|
|
5185
|
+
readonly name: "KeyboardAvoidWrapper";
|
|
5186
|
+
readonly description: "Automatically handles keyboard layout shifting for its wrapped children.";
|
|
5187
|
+
readonly props: readonly [{
|
|
5188
|
+
readonly name: "offset";
|
|
5189
|
+
readonly type: "number";
|
|
5190
|
+
readonly description: "Extra offset above keyboard";
|
|
5191
|
+
readonly default: 20;
|
|
5192
|
+
}];
|
|
5193
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, KeyboardAvoidWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function KeyboardAvoidWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">KeyboardAvoidWrapper Example</Text>\n <KeyboardAvoidWrapper\n offset={20}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5194
|
+
}, {
|
|
5195
|
+
readonly id: "SafeAreaWrapper";
|
|
5196
|
+
readonly name: "SafeAreaWrapper";
|
|
5197
|
+
readonly description: "A convenient wrapper that applies safe area boundaries to specific sections of children.";
|
|
5198
|
+
readonly props: readonly [{
|
|
5199
|
+
readonly name: "edges";
|
|
5200
|
+
readonly type: "array";
|
|
5201
|
+
readonly description: "Edges to apply safe area (top, bottom, left, right)";
|
|
5202
|
+
readonly default: readonly ["top", "bottom"];
|
|
5203
|
+
}];
|
|
5204
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SafeAreaWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SafeAreaWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">SafeAreaWrapper Example</Text>\n <SafeAreaWrapper />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5205
|
+
}, {
|
|
5206
|
+
readonly id: "ScalePressWrapper";
|
|
5207
|
+
readonly name: "ScalePressWrapper";
|
|
5208
|
+
readonly description: "Wraps any element and adds a bouncy shrink effect when pressed.";
|
|
5209
|
+
readonly props: readonly [{
|
|
5210
|
+
readonly name: "scaleTo";
|
|
5211
|
+
readonly type: "number";
|
|
5212
|
+
readonly description: "Scale factor when pressed";
|
|
5213
|
+
readonly default: 0.95;
|
|
5214
|
+
}];
|
|
5215
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ScalePressWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ScalePressWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">ScalePressWrapper Example</Text>\n <ScalePressWrapper\n scaleTo={0.95}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5216
|
+
}, {
|
|
5217
|
+
readonly id: "ShimmerWrapper";
|
|
5218
|
+
readonly name: "ShimmerWrapper";
|
|
5219
|
+
readonly description: "Adds a shiny animated loading shimmer effect over its children.";
|
|
5220
|
+
readonly props: readonly [{
|
|
5221
|
+
readonly name: "isLoading";
|
|
5222
|
+
readonly type: "boolean";
|
|
5223
|
+
readonly description: "Whether to show the shimmer";
|
|
5224
|
+
readonly default: true;
|
|
5225
|
+
}];
|
|
5226
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ShimmerWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ShimmerWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">ShimmerWrapper Example</Text>\n <ShimmerWrapper\n isLoading={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5227
|
+
}, {
|
|
5228
|
+
readonly id: "SkeletonWrapper";
|
|
5229
|
+
readonly name: "SkeletonWrapper";
|
|
5230
|
+
readonly description: "A wrapper component that measures its children and displays an animated shimmering skeleton outline when loading.";
|
|
5231
|
+
readonly tags: readonly ["base", "wrapper", "loader", "skeleton", "shimmer"];
|
|
5232
|
+
readonly props: {
|
|
5233
|
+
readonly isLoading: {
|
|
5234
|
+
readonly type: "boolean";
|
|
5235
|
+
readonly description: "Whether the component is currently loading. If true, shows skeleton.";
|
|
5236
|
+
readonly required: true;
|
|
5237
|
+
};
|
|
5238
|
+
};
|
|
5239
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SkeletonWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SkeletonWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">SkeletonWrapper Example</Text>\n <SkeletonWrapper\n isLoading={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5240
|
+
}, {
|
|
5241
|
+
readonly id: "SlideUpWrapper";
|
|
5242
|
+
readonly name: "SlideUpWrapper";
|
|
5243
|
+
readonly description: "Animates its children sliding up from below on mount.";
|
|
5244
|
+
readonly props: readonly [{
|
|
5245
|
+
readonly name: "duration";
|
|
5246
|
+
readonly type: "number";
|
|
5247
|
+
readonly description: "Animation duration in ms";
|
|
5248
|
+
readonly default: 500;
|
|
5249
|
+
}, {
|
|
5250
|
+
readonly name: "delay";
|
|
5251
|
+
readonly type: "number";
|
|
5252
|
+
readonly description: "Animation delay in ms";
|
|
5253
|
+
readonly default: 0;
|
|
5254
|
+
}, {
|
|
5255
|
+
readonly name: "distance";
|
|
5256
|
+
readonly type: "number";
|
|
5257
|
+
readonly description: "Distance to slide from in pixels";
|
|
5258
|
+
readonly default: 50;
|
|
5259
|
+
}];
|
|
5260
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SlideUpWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SlideUpWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">SlideUpWrapper Example</Text>\n <SlideUpWrapper\n duration={500}\n delay={0}\n distance={50}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5261
|
+
}, {
|
|
5262
|
+
readonly id: "TooltipWrapper";
|
|
5263
|
+
readonly name: "TooltipWrapper";
|
|
5264
|
+
readonly description: "Wraps a component and displays a tooltip bubble near it.";
|
|
5265
|
+
readonly props: readonly [{
|
|
5266
|
+
readonly name: "text";
|
|
5267
|
+
readonly type: "string";
|
|
5268
|
+
readonly description: "Tooltip text";
|
|
5269
|
+
readonly default: null;
|
|
5270
|
+
}, {
|
|
5271
|
+
readonly name: "isVisible";
|
|
5272
|
+
readonly type: "boolean";
|
|
5273
|
+
readonly description: "Whether tooltip is visible";
|
|
5274
|
+
readonly default: false;
|
|
5275
|
+
}];
|
|
5276
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, TooltipWrapper, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function TooltipWrapperExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">TooltipWrapper Example</Text>\n <TooltipWrapper\n text=\"Sample\"\n isVisible={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5277
|
+
}, {
|
|
5010
5278
|
readonly id: "Accordion";
|
|
5011
5279
|
readonly label: "Accordion";
|
|
5012
5280
|
readonly description: "Expandable/collapsible content section.";
|
|
@@ -5052,6 +5320,25 @@ declare const componentRegistry: readonly [{
|
|
|
5052
5320
|
readonly group: "style";
|
|
5053
5321
|
readonly themeDefault: "border";
|
|
5054
5322
|
}];
|
|
5323
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Accordion, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function AccordionExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Accordion Example</Text>\n <Accordion\n title=\"Section\"\n defaultOpen={false}\n borderRadius=\"lg\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5324
|
+
}, {
|
|
5325
|
+
readonly id: "Audio";
|
|
5326
|
+
readonly name: "Audio";
|
|
5327
|
+
readonly description: "A base component for audio playback using expo-av.";
|
|
5328
|
+
readonly tags: readonly ["base", "media", "audio", "player"];
|
|
5329
|
+
readonly props: {
|
|
5330
|
+
readonly source: {
|
|
5331
|
+
readonly type: "string";
|
|
5332
|
+
readonly description: "The source URI of the audio file";
|
|
5333
|
+
readonly required: true;
|
|
5334
|
+
};
|
|
5335
|
+
readonly autoPlay: {
|
|
5336
|
+
readonly type: "boolean";
|
|
5337
|
+
readonly description: "Whether the audio should auto-play";
|
|
5338
|
+
readonly default: false;
|
|
5339
|
+
};
|
|
5340
|
+
};
|
|
5341
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Audio, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function AudioExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Audio Example</Text>\n <Audio\n source=\"Sample\"\n autoPlay={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5055
5342
|
}, {
|
|
5056
5343
|
readonly id: "Avatar";
|
|
5057
5344
|
readonly label: "Avatar";
|
|
@@ -5135,6 +5422,14 @@ declare const componentRegistry: readonly [{
|
|
|
5135
5422
|
readonly group: "style";
|
|
5136
5423
|
readonly themeDefault: "muted";
|
|
5137
5424
|
}];
|
|
5425
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Avatar, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function AvatarExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Avatar Example</Text>\n <Avatar\n variant=\"circle\"\n size=\"md\"\n source=\"Image source\"\n initials=\"Initials\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5426
|
+
}, {
|
|
5427
|
+
readonly id: "AvatarPicker";
|
|
5428
|
+
readonly name: "AvatarPicker";
|
|
5429
|
+
readonly description: "Allows users to select an avatar from a list of predefined options or upload one.";
|
|
5430
|
+
readonly tags: readonly ["base", "input", "picker", "avatar"];
|
|
5431
|
+
readonly props: readonly [];
|
|
5432
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, AvatarPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function AvatarPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">AvatarPicker Example</Text>\n <AvatarPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5138
5433
|
}, {
|
|
5139
5434
|
readonly id: "Badge";
|
|
5140
5435
|
readonly label: "Badge";
|
|
@@ -5222,6 +5517,7 @@ declare const componentRegistry: readonly [{
|
|
|
5222
5517
|
readonly group: "style";
|
|
5223
5518
|
readonly default: "full";
|
|
5224
5519
|
}];
|
|
5520
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Badge, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BadgeExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Badge Example</Text>\n <Badge\n label=\"Label\"\n variant=\"solid\"\n size=\"md\"\n color=\"primary\"\n borderRadius=\"full\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5225
5521
|
}, {
|
|
5226
5522
|
readonly id: "BlurView";
|
|
5227
5523
|
readonly label: "Blur View";
|
|
@@ -5258,11 +5554,13 @@ declare const componentRegistry: readonly [{
|
|
|
5258
5554
|
readonly type: "spacing";
|
|
5259
5555
|
readonly group: "layout";
|
|
5260
5556
|
}];
|
|
5557
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BlurView, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BlurViewExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Blur View Example</Text>\n <BlurView\n intensity={50}\n tint=\"default\"\n borderRadius=\"none\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5261
5558
|
}, {
|
|
5262
5559
|
readonly id: "Button";
|
|
5263
5560
|
readonly label: "Button";
|
|
5264
5561
|
readonly description: "Pressable button with variant and size support.";
|
|
5265
5562
|
readonly category: "action";
|
|
5563
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Button, Inline, Stack, Text } from '@flipova/foundation';\n\nexport default function ButtonExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Stack spacing={4} style={{ padding: 20 }}>\n <Text variant=\"heading\" size=\"md\">Button Actions</Text>\n <Inline spacing={3} alignItems=\"center\">\n <Button\n label=\"Button\"\n variant=\"primary\"\n size=\"md\"\n disabled={false}\n loading={false}\n fullWidth={false}\n onPress={() => console.log('Button pressed')} />\n </Inline>\n </Stack>\n </FoundationProvider>\n );\n}";
|
|
5266
5564
|
readonly tags: readonly ["button", "cta", "action", "pressable"];
|
|
5267
5565
|
readonly themeMapping: {
|
|
5268
5566
|
readonly bg: "primary";
|
|
@@ -5423,6 +5721,7 @@ declare const componentRegistry: readonly [{
|
|
|
5423
5721
|
readonly group: "style";
|
|
5424
5722
|
readonly default: "lg";
|
|
5425
5723
|
}];
|
|
5724
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Camera, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function CameraExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Camera Example</Text>\n <Camera\n facing=\"back\"\n flash=\"off\"\n enableTorch={false}\n height={300}\n borderRadius=\"lg\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5426
5725
|
}, {
|
|
5427
5726
|
readonly id: "Card";
|
|
5428
5727
|
readonly label: "Card";
|
|
@@ -5464,6 +5763,7 @@ declare const componentRegistry: readonly [{
|
|
|
5464
5763
|
readonly group: "style";
|
|
5465
5764
|
readonly default: "md";
|
|
5466
5765
|
}];
|
|
5766
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Card, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function CardExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Card Example</Text>\n <Card\n shadow=\"md\"\n interactive={false}\n padding={4}\n borderRadius=\"md\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5467
5767
|
}, {
|
|
5468
5768
|
readonly id: "Checkbox";
|
|
5469
5769
|
readonly label: "Checkbox";
|
|
@@ -5528,6 +5828,7 @@ declare const componentRegistry: readonly [{
|
|
|
5528
5828
|
readonly group: "behavior";
|
|
5529
5829
|
readonly default: false;
|
|
5530
5830
|
}];
|
|
5831
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Checkbox, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function CheckboxExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Checkbox Input</Text>\n <Checkbox\n variant=\"square\"\n size=\"md\"\n disabled={false}\n label=\"Label\"\n checked={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5531
5832
|
}, {
|
|
5532
5833
|
readonly id: "Chip";
|
|
5533
5834
|
readonly label: "Chip";
|
|
@@ -5598,6 +5899,14 @@ declare const componentRegistry: readonly [{
|
|
|
5598
5899
|
readonly group: "style";
|
|
5599
5900
|
readonly default: "full";
|
|
5600
5901
|
}];
|
|
5902
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Chip, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function ChipExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Chip Input</Text>\n <Chip\n label=\"Label\"\n variant=\"filled\"\n size=\"md\"\n selected={false}\n closable={false}\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5903
|
+
}, {
|
|
5904
|
+
readonly id: "ColorPicker";
|
|
5905
|
+
readonly name: "ColorPicker";
|
|
5906
|
+
readonly description: "A visual grid of color swatches for choosing a theme or element color.";
|
|
5907
|
+
readonly tags: readonly ["base", "input", "picker", "color"];
|
|
5908
|
+
readonly props: readonly [];
|
|
5909
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ColorPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ColorPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">ColorPicker Example</Text>\n <ColorPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5601
5910
|
}, {
|
|
5602
5911
|
readonly id: "DatePicker";
|
|
5603
5912
|
readonly label: "Date Picker";
|
|
@@ -5670,6 +5979,14 @@ declare const componentRegistry: readonly [{
|
|
|
5670
5979
|
readonly group: "style";
|
|
5671
5980
|
readonly default: "md";
|
|
5672
5981
|
}];
|
|
5982
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, DatePicker, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function DatePickerExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Date Picker Input</Text>\n <DatePicker\n size=\"md\"\n mode=\"date\"\n label=\"Label\"\n placeholder=\"Select date\"\n error=\"Error message\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5983
|
+
}, {
|
|
5984
|
+
readonly id: "EmojiPicker";
|
|
5985
|
+
readonly name: "EmojiPicker";
|
|
5986
|
+
readonly description: "A grid of emojis categorized by type.";
|
|
5987
|
+
readonly tags: readonly ["base", "input", "picker", "emoji"];
|
|
5988
|
+
readonly props: readonly [];
|
|
5989
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, EmojiPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function EmojiPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">EmojiPicker Example</Text>\n <EmojiPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5673
5990
|
}, {
|
|
5674
5991
|
readonly id: "FilePicker";
|
|
5675
5992
|
readonly label: "File Picker";
|
|
@@ -5739,11 +6056,13 @@ declare const componentRegistry: readonly [{
|
|
|
5739
6056
|
readonly group: "style";
|
|
5740
6057
|
readonly default: "md";
|
|
5741
6058
|
}];
|
|
6059
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, FilePicker, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function FilePickerExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">File Picker Input</Text>\n <FilePicker\n variant=\"button\"\n size=\"md\"\n accept=\"image/*\"\n multiple={false}\n label=\"Upload file\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5742
6060
|
}, {
|
|
5743
6061
|
readonly id: "FlatList";
|
|
5744
6062
|
readonly label: "List";
|
|
5745
6063
|
readonly description: "Scrollable list with virtualization.";
|
|
5746
6064
|
readonly category: "display";
|
|
6065
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FlatList, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function FlatListExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">List Example</Text>\n <FlatList\n horizontal={false}\n numColumns={1}\n spacing={0}\n showsScrollIndicator={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5747
6066
|
readonly tags: readonly ["list", "flatlist", "scroll", "virtualized"];
|
|
5748
6067
|
readonly themeMapping: {
|
|
5749
6068
|
readonly bg: "background";
|
|
@@ -5782,6 +6101,13 @@ declare const componentRegistry: readonly [{
|
|
|
5782
6101
|
readonly type: "color";
|
|
5783
6102
|
readonly group: "style";
|
|
5784
6103
|
}];
|
|
6104
|
+
}, {
|
|
6105
|
+
readonly id: "GifPicker";
|
|
6106
|
+
readonly name: "GifPicker";
|
|
6107
|
+
readonly description: "A placeholder picker for GIFs.";
|
|
6108
|
+
readonly tags: readonly ["base", "input", "picker", "gif"];
|
|
6109
|
+
readonly props: readonly [];
|
|
6110
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, GifPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function GifPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">GifPicker Example</Text>\n <GifPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5785
6111
|
}, {
|
|
5786
6112
|
readonly id: "Gradient";
|
|
5787
6113
|
readonly label: "Gradient";
|
|
@@ -5829,6 +6155,7 @@ declare const componentRegistry: readonly [{
|
|
|
5829
6155
|
readonly type: "spacing";
|
|
5830
6156
|
readonly group: "layout";
|
|
5831
6157
|
}];
|
|
6158
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Gradient, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function GradientExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Gradient Example</Text>\n <Gradient\n startColor=\"#3b82f6\"\n endColor=\"#8b5cf6\"\n direction=\"vertical\"\n borderRadius=\"none\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5832
6159
|
}, {
|
|
5833
6160
|
readonly id: "Icon";
|
|
5834
6161
|
readonly label: "Icon";
|
|
@@ -5867,6 +6194,7 @@ declare const componentRegistry: readonly [{
|
|
|
5867
6194
|
readonly group: "style";
|
|
5868
6195
|
readonly default: 2;
|
|
5869
6196
|
}];
|
|
6197
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Icon, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function IconExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Icon Example</Text>\n <Icon\n name=\"star\"\n size={24}\n strokeWidth={2}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5870
6198
|
}, {
|
|
5871
6199
|
readonly id: "IconButton";
|
|
5872
6200
|
readonly label: "Icon Button";
|
|
@@ -5947,6 +6275,14 @@ declare const componentRegistry: readonly [{
|
|
|
5947
6275
|
readonly group: "style";
|
|
5948
6276
|
readonly themeDefault: "foreground";
|
|
5949
6277
|
}];
|
|
6278
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, IconButton, Inline, Stack, Text } from '@flipova/foundation';\n\nexport default function IconButtonExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Stack spacing={4} style={{ padding: 20 }}>\n <Text variant=\"heading\" size=\"md\">Icon Button Actions</Text>\n <Inline spacing={3} alignItems=\"center\">\n <IconButton\n variant=\"ghost\"\n size=\"md\"\n disabled={false}\n borderRadius=\"full\"\n onPress={() => console.log('IconButton pressed')} />\n </Inline>\n </Stack>\n </FoundationProvider>\n );\n}";
|
|
6279
|
+
}, {
|
|
6280
|
+
readonly id: "IconPicker";
|
|
6281
|
+
readonly name: "IconPicker";
|
|
6282
|
+
readonly description: "A searchable grid of icons.";
|
|
6283
|
+
readonly tags: readonly ["base", "input", "picker", "icon"];
|
|
6284
|
+
readonly props: readonly [];
|
|
6285
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, IconPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function IconPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">IconPicker Example</Text>\n <IconPicker />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
5950
6286
|
}, {
|
|
5951
6287
|
readonly id: "Image";
|
|
5952
6288
|
readonly label: "Image";
|
|
@@ -6001,6 +6337,7 @@ declare const componentRegistry: readonly [{
|
|
|
6001
6337
|
readonly group: "style";
|
|
6002
6338
|
readonly themeDefault: "muted";
|
|
6003
6339
|
}];
|
|
6340
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Image, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ImageExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Image Example</Text>\n <Image\n source=\"Source URL\"\n alt=\"Alt text\"\n resizeMode=\"cover\"\n height={200}\n borderRadius=\"none\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6004
6341
|
}, {
|
|
6005
6342
|
readonly id: "LottieAnimation";
|
|
6006
6343
|
readonly label: "Lottie";
|
|
@@ -6048,6 +6385,7 @@ declare const componentRegistry: readonly [{
|
|
|
6048
6385
|
readonly group: "layout";
|
|
6049
6386
|
readonly default: 200;
|
|
6050
6387
|
}];
|
|
6388
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, LottieAnimation, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function LottieAnimationExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Lottie Example</Text>\n <LottieAnimation\n source=\"Source URL\"\n autoPlay={true}\n loop={true}\n speed={1}\n width={200}\n height={200}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6051
6389
|
}, {
|
|
6052
6390
|
readonly id: "MapView";
|
|
6053
6391
|
readonly label: "Map";
|
|
@@ -6101,6 +6439,28 @@ declare const componentRegistry: readonly [{
|
|
|
6101
6439
|
readonly group: "behavior";
|
|
6102
6440
|
readonly default: true;
|
|
6103
6441
|
}];
|
|
6442
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, MapView, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function MapViewExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Map Example</Text>\n <MapView\n latitude={48.8566}\n longitude={2.3522}\n zoom={12}\n height={300}\n borderRadius=\"lg\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6443
|
+
}, {
|
|
6444
|
+
readonly id: "NumberInput";
|
|
6445
|
+
readonly name: "NumberInput";
|
|
6446
|
+
readonly description: "A specialized input for numbers with increment/decrement steppers.";
|
|
6447
|
+
readonly tags: readonly ["base", "input", "number", "stepper"];
|
|
6448
|
+
readonly props: readonly [];
|
|
6449
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, NumberInput, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function NumberInputExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">NumberInput Example</Text>\n <NumberInput />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6450
|
+
}, {
|
|
6451
|
+
readonly id: "OTPInput";
|
|
6452
|
+
readonly name: "OTPInput";
|
|
6453
|
+
readonly description: "A multi-cell One-Time-Password input.";
|
|
6454
|
+
readonly tags: readonly ["base", "input", "otp"];
|
|
6455
|
+
readonly props: readonly [];
|
|
6456
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, OTPInput, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function OTPInputExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">OTPInput Example</Text>\n <OTPInput />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6457
|
+
}, {
|
|
6458
|
+
readonly id: "PasswordInput";
|
|
6459
|
+
readonly name: "PasswordInput";
|
|
6460
|
+
readonly description: "A secure text input with visibility toggle.";
|
|
6461
|
+
readonly tags: readonly ["base", "input", "password", "secure"];
|
|
6462
|
+
readonly props: readonly [];
|
|
6463
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, PasswordInput, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function PasswordInputExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">PasswordInput Example</Text>\n <PasswordInput />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6104
6464
|
}, {
|
|
6105
6465
|
readonly id: "Pressable";
|
|
6106
6466
|
readonly label: "Pressable";
|
|
@@ -6125,6 +6485,7 @@ declare const componentRegistry: readonly [{
|
|
|
6125
6485
|
readonly group: "style";
|
|
6126
6486
|
readonly default: 0.7;
|
|
6127
6487
|
}];
|
|
6488
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Pressable, Inline, Stack, Text } from '@flipova/foundation';\n\nexport default function PressableExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Stack spacing={4} style={{ padding: 20 }}>\n <Text variant=\"heading\" size=\"md\">Pressable Actions</Text>\n <Inline spacing={3} alignItems=\"center\">\n <Pressable\n disabled={false}\n opacity={0.7}\n onPress={() => console.log('Pressable pressed')} />\n </Inline>\n </Stack>\n </FoundationProvider>\n );\n}";
|
|
6128
6489
|
}, {
|
|
6129
6490
|
readonly id: "ProgressBar";
|
|
6130
6491
|
readonly label: "Progress Bar";
|
|
@@ -6177,6 +6538,7 @@ declare const componentRegistry: readonly [{
|
|
|
6177
6538
|
readonly group: "behavior";
|
|
6178
6539
|
readonly default: false;
|
|
6179
6540
|
}];
|
|
6541
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ProgressBar, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ProgressBarExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Progress Bar Example</Text>\n <ProgressBar\n progress={0.5}\n size=\"md\"\n borderRadius=\"full\"\n showLabel={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6180
6542
|
}, {
|
|
6181
6543
|
readonly id: "RadioGroup";
|
|
6182
6544
|
readonly label: "Radio Group";
|
|
@@ -6230,6 +6592,14 @@ declare const componentRegistry: readonly [{
|
|
|
6230
6592
|
readonly group: "style";
|
|
6231
6593
|
readonly themeDefault: "primary";
|
|
6232
6594
|
}];
|
|
6595
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, RadioGroup, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function RadioGroupExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Radio Group Input</Text>\n <RadioGroup\n size=\"md\"\n label=\"Label\"\n direction=\"column\"\n spacing={2}\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6596
|
+
}, {
|
|
6597
|
+
readonly id: "SearchInput";
|
|
6598
|
+
readonly name: "SearchInput";
|
|
6599
|
+
readonly description: "A specialized input for searching with a clear button.";
|
|
6600
|
+
readonly tags: readonly ["base", "input", "search"];
|
|
6601
|
+
readonly props: readonly [];
|
|
6602
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SearchInput, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SearchInputExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">SearchInput Example</Text>\n <SearchInput />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6233
6603
|
}, {
|
|
6234
6604
|
readonly id: "Select";
|
|
6235
6605
|
readonly label: "Select";
|
|
@@ -6325,6 +6695,7 @@ declare const componentRegistry: readonly [{
|
|
|
6325
6695
|
readonly group: "style";
|
|
6326
6696
|
readonly themeDefault: "input";
|
|
6327
6697
|
}];
|
|
6698
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Select, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function SelectExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Select Input</Text>\n <Select\n variant=\"outlined\"\n size=\"md\"\n label=\"Label\"\n placeholder=\"Select...\"\n error=\"Error message\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6328
6699
|
}, {
|
|
6329
6700
|
readonly id: "Separator";
|
|
6330
6701
|
readonly label: "Separator";
|
|
@@ -6370,6 +6741,7 @@ declare const componentRegistry: readonly [{
|
|
|
6370
6741
|
readonly default: "horizontal";
|
|
6371
6742
|
readonly options: readonly ["horizontal", "vertical"];
|
|
6372
6743
|
}];
|
|
6744
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Separator, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SeparatorExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Separator Example</Text>\n <Separator\n label=\"Label\"\n thickness={1}\n spacing={4}\n orientation=\"horizontal\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6373
6745
|
}, {
|
|
6374
6746
|
readonly id: "Slider";
|
|
6375
6747
|
readonly label: "Slider";
|
|
@@ -6446,6 +6818,7 @@ declare const componentRegistry: readonly [{
|
|
|
6446
6818
|
readonly group: "style";
|
|
6447
6819
|
readonly themeDefault: "primary";
|
|
6448
6820
|
}];
|
|
6821
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Slider, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function SliderExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Slider Input</Text>\n <Slider\n size=\"md\"\n min={0}\n max={100}\n step={1}\n label=\"Label\"\n showValue={true}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6449
6822
|
}, {
|
|
6450
6823
|
readonly id: "Spinner";
|
|
6451
6824
|
readonly label: "Spinner";
|
|
@@ -6473,6 +6846,7 @@ declare const componentRegistry: readonly [{
|
|
|
6473
6846
|
readonly group: "style";
|
|
6474
6847
|
readonly themeDefault: "primary";
|
|
6475
6848
|
}];
|
|
6849
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Spinner, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function SpinnerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Spinner Example</Text>\n <Spinner\n size=\"md\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6476
6850
|
}, {
|
|
6477
6851
|
readonly id: "Switch";
|
|
6478
6852
|
readonly label: "Switch";
|
|
@@ -6531,6 +6905,7 @@ declare const componentRegistry: readonly [{
|
|
|
6531
6905
|
readonly group: "style";
|
|
6532
6906
|
readonly themeDefault: "muted";
|
|
6533
6907
|
}];
|
|
6908
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, Switch, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function SwitchExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Switch Input</Text>\n <Switch\n size=\"md\"\n disabled={false}\n label=\"Label\"\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6534
6909
|
}, {
|
|
6535
6910
|
readonly id: "Tabs";
|
|
6536
6911
|
readonly label: "Tabs";
|
|
@@ -6572,6 +6947,7 @@ declare const componentRegistry: readonly [{
|
|
|
6572
6947
|
readonly default: "top";
|
|
6573
6948
|
readonly options: readonly ["top", "bottom"];
|
|
6574
6949
|
}];
|
|
6950
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Tabs, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function TabsExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Tabs Example</Text>\n <Tabs\n borderRadius=\"none\"\n position=\"top\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6575
6951
|
}, {
|
|
6576
6952
|
readonly id: "Text";
|
|
6577
6953
|
readonly label: "Text";
|
|
@@ -6623,6 +6999,7 @@ declare const componentRegistry: readonly [{
|
|
|
6623
6999
|
readonly type: "number";
|
|
6624
7000
|
readonly group: "behavior";
|
|
6625
7001
|
}];
|
|
7002
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Text, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function TextExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Text Example</Text>\n <Text\n text=\"Text\"\n fontSize={14}\n fontWeight=\"400\"\n textAlign=\"left\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6626
7003
|
}, {
|
|
6627
7004
|
readonly id: "TextArea";
|
|
6628
7005
|
readonly label: "Text Area";
|
|
@@ -6727,6 +7104,7 @@ declare const componentRegistry: readonly [{
|
|
|
6727
7104
|
readonly group: "style";
|
|
6728
7105
|
readonly themeDefault: "input";
|
|
6729
7106
|
}];
|
|
7107
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, TextArea, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function TextAreaExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Text Area Input</Text>\n <TextArea\n variant=\"outlined\"\n size=\"md\"\n placeholder=\"Placeholder\"\n label=\"Label\"\n error=\"Error message\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6730
7108
|
}, {
|
|
6731
7109
|
readonly id: "TextInput";
|
|
6732
7110
|
readonly label: "Text Input";
|
|
@@ -6843,9 +7221,10 @@ declare const componentRegistry: readonly [{
|
|
|
6843
7221
|
readonly group: "style";
|
|
6844
7222
|
readonly themeDefault: "border";
|
|
6845
7223
|
}];
|
|
7224
|
+
readonly example: "import React, { useState } from 'react';\nimport { FoundationProvider, TextInput, Card, Stack, Text, Button } from '@flipova/foundation';\n\nexport default function TextInputExample() {\n const [value, setValue] = useState('');\n\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\" style={{ maxWidth: 400 }}>\n <Stack spacing={4}>\n <Text variant=\"heading\" size=\"md\">Text Input Input</Text>\n <TextInput\n variant=\"outlined\"\n size=\"md\"\n placeholder=\"Placeholder\"\n label=\"Label\"\n error=\"Error message\"\n disabled={false}\n value={value} onChangeText={setValue} />\n <Button variant=\"primary\" label=\"Submit\" onPress={() => console.log(value)} />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6846
7225
|
}, {
|
|
6847
7226
|
readonly id: "Video";
|
|
6848
|
-
readonly label: "
|
|
7227
|
+
readonly label: "Video";
|
|
6849
7228
|
readonly description: "Video player with controls, autoplay, and loop.";
|
|
6850
7229
|
readonly category: "media";
|
|
6851
7230
|
readonly tags: readonly ["video", "player", "media", "stream"];
|
|
@@ -6915,6 +7294,7 @@ declare const componentRegistry: readonly [{
|
|
|
6915
7294
|
readonly group: "style";
|
|
6916
7295
|
readonly default: "none";
|
|
6917
7296
|
}];
|
|
7297
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Video, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function VideoExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Video Example</Text>\n <Video\n source=\"Source URL\"\n poster=\"Poster URL\"\n autoplay={false}\n loop={false}\n muted={true}\n controls={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6918
7298
|
}, {
|
|
6919
7299
|
readonly id: "WebView";
|
|
6920
7300
|
readonly label: "WebView";
|
|
@@ -6958,6 +7338,37 @@ declare const componentRegistry: readonly [{
|
|
|
6958
7338
|
readonly group: "style";
|
|
6959
7339
|
readonly default: "none";
|
|
6960
7340
|
}];
|
|
7341
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, WebView, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function WebViewExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">WebView Example</Text>\n <WebView\n url=\"https://expo.dev\"\n height={400}\n scrollEnabled={true}\n borderRadius=\"none\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
7342
|
+
}, {
|
|
7343
|
+
readonly id: "WheelPicker";
|
|
7344
|
+
readonly name: "WheelPicker";
|
|
7345
|
+
readonly description: "A scrollable barrel wheel picker. If items exceed maxItemsInWheel, a \"More...\" option opens a submenu modal.";
|
|
7346
|
+
readonly props: readonly [{
|
|
7347
|
+
readonly name: "items";
|
|
7348
|
+
readonly type: "array";
|
|
7349
|
+
readonly description: "Array of items to pick from { label, value }";
|
|
7350
|
+
readonly required: true;
|
|
7351
|
+
}, {
|
|
7352
|
+
readonly name: "value";
|
|
7353
|
+
readonly type: "string";
|
|
7354
|
+
readonly description: "Currently selected value";
|
|
7355
|
+
}, {
|
|
7356
|
+
readonly name: "itemHeight";
|
|
7357
|
+
readonly type: "number";
|
|
7358
|
+
readonly description: "Height of a single item in pixels";
|
|
7359
|
+
readonly default: 40;
|
|
7360
|
+
}, {
|
|
7361
|
+
readonly name: "maxItemsInWheel";
|
|
7362
|
+
readonly type: "number";
|
|
7363
|
+
readonly description: "Maximum number of items to show in the wheel before moving the rest to a submenu";
|
|
7364
|
+
readonly default: 5;
|
|
7365
|
+
}, {
|
|
7366
|
+
readonly name: "moreLabel";
|
|
7367
|
+
readonly type: "string";
|
|
7368
|
+
readonly description: "Label for the \"More...\" option";
|
|
7369
|
+
readonly default: "Plus...";
|
|
7370
|
+
}];
|
|
7371
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, WheelPicker, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function WheelPickerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">WheelPicker Example</Text>\n <WheelPicker\n value=\"Sample\"\n itemHeight={40}\n maxItemsInWheel={5}\n moreLabel=\"Plus...\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
6961
7372
|
}];
|
|
6962
7373
|
declare const blockRegistry: readonly [];
|
|
6963
7374
|
declare const layoutRegistry: readonly [{
|
|
@@ -7045,6 +7456,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7045
7456
|
readonly group: "layout";
|
|
7046
7457
|
readonly default: 4;
|
|
7047
7458
|
}];
|
|
7459
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, AuthLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function AuthLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <AuthLayout\n borderRadius=\"none\"\n spacing={0}\n brandingRatio={0.5}\n padding={5}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Authentication Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Authentication Section 2</Text>\n </Card>\n </AuthLayout>\n </FoundationProvider>\n );\n}";
|
|
7048
7460
|
}, {
|
|
7049
7461
|
readonly id: "BentoLayout";
|
|
7050
7462
|
readonly label: "Bento";
|
|
@@ -7118,6 +7530,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7118
7530
|
readonly group: "content";
|
|
7119
7531
|
readonly default: readonly [];
|
|
7120
7532
|
}];
|
|
7533
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BentoLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function BentoLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <BentoLayout\n spacing={2}\n itemBorderRadius=\"none\"\n scrollable={true}\n maxWidth={1200}\n baseHeight={200}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Bento Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Bento Section 2</Text>\n </Card>\n </BentoLayout>\n </FoundationProvider>\n );\n}";
|
|
7121
7534
|
}, {
|
|
7122
7535
|
readonly id: "BottomDrawerLayout";
|
|
7123
7536
|
readonly label: "Bottom Drawer";
|
|
@@ -7236,6 +7649,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7236
7649
|
readonly group: "layout";
|
|
7237
7650
|
readonly default: 56;
|
|
7238
7651
|
}];
|
|
7652
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, BottomDrawerLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function BottomDrawerLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <BottomDrawerLayout\n drawerHeight={400}\n scrollable={true}\n drawerBorderRadius=\"3xl\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Bottom Drawer Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Bottom Drawer Section 2</Text>\n </Card>\n </BottomDrawerLayout>\n </FoundationProvider>\n );\n}";
|
|
7239
7653
|
}, {
|
|
7240
7654
|
readonly id: "CenteredLayout";
|
|
7241
7655
|
readonly label: "Centered";
|
|
@@ -7303,6 +7717,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7303
7717
|
readonly group: "layout";
|
|
7304
7718
|
readonly default: 6;
|
|
7305
7719
|
}];
|
|
7720
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, CenteredLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function CenteredLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <CenteredLayout\n maxWidth={500}\n padding={4}\n borderRadius=\"3xl\"\n shadowed={false}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Centered Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Centered Section 2</Text>\n </Card>\n </CenteredLayout>\n </FoundationProvider>\n );\n}";
|
|
7306
7721
|
}, {
|
|
7307
7722
|
readonly id: "DashboardLayout";
|
|
7308
7723
|
readonly label: "Dashboard";
|
|
@@ -7430,6 +7845,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7430
7845
|
readonly group: "behavior";
|
|
7431
7846
|
readonly default: false;
|
|
7432
7847
|
}];
|
|
7848
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, DashboardLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function DashboardLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <DashboardLayout\n sidebarWidth={260}\n sidebarCollapsedWidth={70}\n headerHeight={70}\n footerHeight={60}\n spacing={0}\n borderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Dashboard Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Dashboard Section 2</Text>\n </Card>\n </DashboardLayout>\n </FoundationProvider>\n );\n}";
|
|
7433
7849
|
}, {
|
|
7434
7850
|
readonly id: "DeckLayout";
|
|
7435
7851
|
readonly label: "Deck";
|
|
@@ -7533,6 +7949,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7533
7949
|
readonly group: "style";
|
|
7534
7950
|
readonly themeDefault: "background";
|
|
7535
7951
|
}];
|
|
7952
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, DeckLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function DeckLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <DeckLayout\n peekOffset={12}\n peekScale={0.05}\n cycle={false}\n cardShadow={true}\n cardBorderRadius={24}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Deck Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Deck Section 2</Text>\n </Card>\n </DeckLayout>\n </FoundationProvider>\n );\n}";
|
|
7536
7953
|
}, {
|
|
7537
7954
|
readonly id: "FlexLayout";
|
|
7538
7955
|
readonly label: "Flex";
|
|
@@ -7612,6 +8029,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7612
8029
|
readonly group: "style";
|
|
7613
8030
|
readonly default: "none";
|
|
7614
8031
|
}];
|
|
8032
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FlexLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function FlexLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <FlexLayout\n direction=\"row\"\n wrap={false}\n spacing={4}\n align=\"stretch\"\n justify=\"flex-start\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Flex Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Flex Section 2</Text>\n </Card>\n </FlexLayout>\n </FoundationProvider>\n );\n}";
|
|
7615
8033
|
}, {
|
|
7616
8034
|
readonly id: "FlipLayout";
|
|
7617
8035
|
readonly label: "Flip";
|
|
@@ -7734,6 +8152,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7734
8152
|
readonly group: "behavior";
|
|
7735
8153
|
readonly default: 140;
|
|
7736
8154
|
}];
|
|
8155
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FlipLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function FlipLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <FlipLayout\n borderRadius=\"none\"\n flipPerspective={1200}\n swipeThreshold={40}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Flip Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Flip Section 2</Text>\n </Card>\n </FlipLayout>\n </FoundationProvider>\n );\n}";
|
|
7737
8156
|
}, {
|
|
7738
8157
|
readonly id: "FooterLayout";
|
|
7739
8158
|
readonly label: "Footer";
|
|
@@ -7834,6 +8253,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7834
8253
|
readonly group: "behavior";
|
|
7835
8254
|
readonly default: false;
|
|
7836
8255
|
}];
|
|
8256
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, FooterLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function FooterLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <FooterLayout\n footerHeight={60}\n spacing={0}\n sticky={false}\n scrollable={true}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Footer Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Footer Section 2</Text>\n </Card>\n </FooterLayout>\n </FoundationProvider>\n );\n}";
|
|
7837
8257
|
}, {
|
|
7838
8258
|
readonly id: "GridLayout";
|
|
7839
8259
|
readonly label: "Grid";
|
|
@@ -7919,6 +8339,7 @@ declare const layoutRegistry: readonly [{
|
|
|
7919
8339
|
readonly group: "behavior";
|
|
7920
8340
|
readonly default: false;
|
|
7921
8341
|
}];
|
|
8342
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, GridLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function GridLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <GridLayout\n spacing={0}\n scrollable={false}\n padding={0}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Grid Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Grid Section 2</Text>\n </Card>\n </GridLayout>\n </FoundationProvider>\n );\n}";
|
|
7922
8343
|
}, {
|
|
7923
8344
|
readonly id: "HeaderContentLayout";
|
|
7924
8345
|
readonly label: "Collapsible Header";
|
|
@@ -8024,6 +8445,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8024
8445
|
readonly group: "behavior";
|
|
8025
8446
|
readonly default: 16;
|
|
8026
8447
|
}];
|
|
8448
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, HeaderContentLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function HeaderContentLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <HeaderContentLayout\n headerHeight={150}\n headerCollapsedHeight={60}\n spacing={0}\n headerBorderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Collapsible Header Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Collapsible Header Section 2</Text>\n </Card>\n </HeaderContentLayout>\n </FoundationProvider>\n );\n}";
|
|
8027
8449
|
}, {
|
|
8028
8450
|
readonly id: "LeftDrawerLayout";
|
|
8029
8451
|
readonly label: "Left Drawer";
|
|
@@ -8142,6 +8564,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8142
8564
|
readonly group: "layout";
|
|
8143
8565
|
readonly default: 40;
|
|
8144
8566
|
}];
|
|
8567
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, LeftDrawerLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function LeftDrawerLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <LeftDrawerLayout\n drawerWidth={280}\n scrollable={true}\n drawerBorderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Left Drawer Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Left Drawer Section 2</Text>\n </Card>\n </LeftDrawerLayout>\n </FoundationProvider>\n );\n}";
|
|
8145
8568
|
}, {
|
|
8146
8569
|
readonly id: "MasonryLayout";
|
|
8147
8570
|
readonly label: "Masonry";
|
|
@@ -8214,6 +8637,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8214
8637
|
readonly type: "padding";
|
|
8215
8638
|
readonly group: "layout";
|
|
8216
8639
|
}];
|
|
8640
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, MasonryLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function MasonryLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <MasonryLayout\n columns={2}\n spacing={1}\n scrollable={true}\n background=\"transparent\"\n borderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Masonry Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Masonry Section 2</Text>\n </Card>\n </MasonryLayout>\n </FoundationProvider>\n );\n}";
|
|
8217
8641
|
}, {
|
|
8218
8642
|
readonly id: "ParallaxLayout";
|
|
8219
8643
|
readonly label: "Parallax";
|
|
@@ -8310,6 +8734,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8310
8734
|
readonly group: "behavior";
|
|
8311
8735
|
readonly default: 16;
|
|
8312
8736
|
}];
|
|
8737
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ParallaxLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function ParallaxLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <ParallaxLayout\n rowCount={3}\n itemWidth={200}\n spacing={4}\n itemSpacing={12}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Parallax Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Parallax Section 2</Text>\n </Card>\n </ParallaxLayout>\n </FoundationProvider>\n );\n}";
|
|
8313
8738
|
}, {
|
|
8314
8739
|
readonly id: "ResponsiveLayout";
|
|
8315
8740
|
readonly label: "Responsive";
|
|
@@ -8455,6 +8880,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8455
8880
|
readonly group: "layout";
|
|
8456
8881
|
readonly default: 320;
|
|
8457
8882
|
}];
|
|
8883
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ResponsiveLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function ResponsiveLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <ResponsiveLayout\n spacing={0}\n headerHeight={60}\n sidebarWidth={260}\n footerHeight={60}\n adaptiveMode=\"basic\"\n hideHeader={false}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Responsive Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Responsive Section 2</Text>\n </Card>\n </ResponsiveLayout>\n </FoundationProvider>\n );\n}";
|
|
8458
8884
|
}, {
|
|
8459
8885
|
readonly id: "RootLayout";
|
|
8460
8886
|
readonly label: "Root";
|
|
@@ -8518,6 +8944,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8518
8944
|
readonly group: "layout";
|
|
8519
8945
|
readonly default: 0;
|
|
8520
8946
|
}];
|
|
8947
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, RootLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function RootLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <RootLayout\n scrollable={true}\n padding={0}\n justifyContent=\"flex-start\"\n alignItems=\"stretch\"\n flexDirection=\"column\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Root Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Root Section 2</Text>\n </Card>\n </RootLayout>\n </FoundationProvider>\n );\n}";
|
|
8521
8948
|
}, {
|
|
8522
8949
|
readonly id: "ScrollLayout";
|
|
8523
8950
|
readonly label: "Scroll";
|
|
@@ -8655,6 +9082,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8655
9082
|
readonly group: "layout";
|
|
8656
9083
|
readonly default: 50;
|
|
8657
9084
|
}];
|
|
9085
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, ScrollLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function ScrollLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <ScrollLayout\n spacing={4}\n useSafeAreaInsets={true}\n headerHeight={80}\n footerHeight={60}\n scrollDirection=\"vertical\"\n showScrollIndicator={false}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Scroll Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Scroll Section 2</Text>\n </Card>\n </ScrollLayout>\n </FoundationProvider>\n );\n}";
|
|
8658
9086
|
}, {
|
|
8659
9087
|
readonly id: "SidebarLayout";
|
|
8660
9088
|
readonly label: "Sidebar";
|
|
@@ -8761,6 +9189,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8761
9189
|
readonly group: "layout";
|
|
8762
9190
|
readonly default: 600;
|
|
8763
9191
|
}];
|
|
9192
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SidebarLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SidebarLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SidebarLayout\n sidebarWidth={280}\n position=\"left\"\n collapsible={true}\n spacing={4}\n scrollable={true}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Sidebar Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Sidebar Section 2</Text>\n </Card>\n </SidebarLayout>\n </FoundationProvider>\n );\n}";
|
|
8764
9193
|
}, {
|
|
8765
9194
|
readonly id: "SketchLayout";
|
|
8766
9195
|
readonly label: "Sketch (placeholder)";
|
|
@@ -8777,6 +9206,30 @@ declare const layoutRegistry: readonly [{
|
|
|
8777
9206
|
readonly group: "style";
|
|
8778
9207
|
readonly themeDefault: "background";
|
|
8779
9208
|
}];
|
|
9209
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SketchLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SketchLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SketchLayout >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Sketch (placeholder) Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Sketch (placeholder) Section 2</Text>\n </Card>\n </SketchLayout>\n </FoundationProvider>\n );\n}";
|
|
9210
|
+
}, {
|
|
9211
|
+
readonly id: "SortableGridLayout";
|
|
9212
|
+
readonly name: "SortableGridLayout";
|
|
9213
|
+
readonly description: "A drag-and-drop reorderable grid layout for rendering interactive lists or grids.";
|
|
9214
|
+
readonly tags: readonly ["layout", "grid", "drag-and-drop", "interactive", "reorderable"];
|
|
9215
|
+
readonly props: {
|
|
9216
|
+
readonly data: {
|
|
9217
|
+
readonly type: "array";
|
|
9218
|
+
readonly description: "The list of data items to render.";
|
|
9219
|
+
readonly required: true;
|
|
9220
|
+
};
|
|
9221
|
+
readonly columns: {
|
|
9222
|
+
readonly type: "number";
|
|
9223
|
+
readonly description: "Number of columns in the grid.";
|
|
9224
|
+
readonly default: 3;
|
|
9225
|
+
};
|
|
9226
|
+
readonly spacing: {
|
|
9227
|
+
readonly type: "number";
|
|
9228
|
+
readonly description: "Spacing between items.";
|
|
9229
|
+
readonly default: 8;
|
|
9230
|
+
};
|
|
9231
|
+
};
|
|
9232
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SortableGridLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SortableGridLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SortableGridLayout\n columns={3}\n spacing={8}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">SortableGridLayout Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">SortableGridLayout Section 2</Text>\n </Card>\n </SortableGridLayout>\n </FoundationProvider>\n );\n}";
|
|
8780
9233
|
}, {
|
|
8781
9234
|
readonly id: "SplitLayout";
|
|
8782
9235
|
readonly label: "Split";
|
|
@@ -8870,6 +9323,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8870
9323
|
readonly group: "style";
|
|
8871
9324
|
readonly default: "none";
|
|
8872
9325
|
}];
|
|
9326
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SplitLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SplitLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SplitLayout\n spacing={0}\n ratio={0.5}\n orientation=\"horizontal\"\n hideLeftOnMobile={false}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Split Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Split Section 2</Text>\n </Card>\n </SplitLayout>\n </FoundationProvider>\n );\n}";
|
|
8873
9327
|
}, {
|
|
8874
9328
|
readonly id: "Swipe2ScreenLayout";
|
|
8875
9329
|
readonly label: "Swipe to Screen";
|
|
@@ -8927,6 +9381,7 @@ declare const layoutRegistry: readonly [{
|
|
|
8927
9381
|
readonly group: "content";
|
|
8928
9382
|
readonly default: readonly [];
|
|
8929
9383
|
}];
|
|
9384
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Swipe2ScreenLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function Swipe2ScreenLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Swipe2ScreenLayout\n containerBackground=\"#000\"\n screenBackground=\"#fff\"\n swipeThreshold={100}\n projectedScale={0.8}\n animationDuration={300}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Swipe to Screen Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Swipe to Screen Section 2</Text>\n </Card>\n </Swipe2ScreenLayout>\n </FoundationProvider>\n );\n}";
|
|
8930
9385
|
}, {
|
|
8931
9386
|
readonly id: "SwiperLayout";
|
|
8932
9387
|
readonly label: "Swiper";
|
|
@@ -9041,6 +9496,7 @@ declare const layoutRegistry: readonly [{
|
|
|
9041
9496
|
readonly group: "style";
|
|
9042
9497
|
readonly default: "#fff";
|
|
9043
9498
|
}];
|
|
9499
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SwiperLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SwiperLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SwiperLayout\n enableSwipeUp={false}\n enableSwipeDown={false}\n borderRadius=\"none\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Swiper Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Swiper Section 2</Text>\n </Card>\n </SwiperLayout>\n </FoundationProvider>\n );\n}";
|
|
9044
9500
|
}, {
|
|
9045
9501
|
readonly id: "SystemLayout";
|
|
9046
9502
|
readonly label: "System UI";
|
|
@@ -9090,6 +9546,7 @@ declare const layoutRegistry: readonly [{
|
|
|
9090
9546
|
readonly group: "style";
|
|
9091
9547
|
readonly themeDefault: "card";
|
|
9092
9548
|
}];
|
|
9549
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, SystemLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function SystemLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <SystemLayout\n rootBackgroundColor=\"#0c3ddbff\"\n statusBarContentStyle=\"auto\"\n navigationBarContentStyle=\"light\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">System UI Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">System UI Section 2</Text>\n </Card>\n </SystemLayout>\n </FoundationProvider>\n );\n}";
|
|
9093
9550
|
}, {
|
|
9094
9551
|
readonly id: "TopDrawerLayout";
|
|
9095
9552
|
readonly label: "Top Drawer";
|
|
@@ -9220,6 +9677,7 @@ declare const layoutRegistry: readonly [{
|
|
|
9220
9677
|
readonly group: "style";
|
|
9221
9678
|
readonly themeDefault: "mutedForeground";
|
|
9222
9679
|
}];
|
|
9680
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, TopDrawerLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function TopDrawerLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <TopDrawerLayout\n drawerHeight={600}\n scrollable={true}\n drawerBorderRadius=\"3xl\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Top Drawer Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Top Drawer Section 2</Text>\n </Card>\n </TopDrawerLayout>\n </FoundationProvider>\n );\n}";
|
|
9223
9681
|
}, {
|
|
9224
9682
|
readonly id: "TutoLayout";
|
|
9225
9683
|
readonly lname: "TutoLayout";
|
|
@@ -9307,6 +9765,7 @@ declare const layoutRegistry: readonly [{
|
|
|
9307
9765
|
readonly group: "content";
|
|
9308
9766
|
readonly default: readonly [];
|
|
9309
9767
|
}];
|
|
9768
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, TutoLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function TutoLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <TutoLayout\n overlayOpacity={0.78}\n showSkip={true}\n nextLabel=\"Next\"\n finishLabel=\"Finish\"\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">TutoLayout Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">TutoLayout Section 2</Text>\n </Card>\n </TutoLayout>\n </FoundationProvider>\n );\n}";
|
|
9310
9769
|
}, {
|
|
9311
9770
|
readonly id: "VoidLayout";
|
|
9312
9771
|
readonly label: "Void";
|
|
@@ -9369,6 +9828,7 @@ declare const layoutRegistry: readonly [{
|
|
|
9369
9828
|
readonly group: "style";
|
|
9370
9829
|
readonly default: false;
|
|
9371
9830
|
}];
|
|
9831
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, VoidLayout, Card, Text, Stack } from '@flipova/foundation';\n\nexport default function VoidLayoutExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <VoidLayout\n scrollable={true}\n borderRadius=\"none\"\n spacing={0}\n >\n <Card p={4} variant=\"elevated\">\n <Stack spacing={2}>\n <Text variant=\"heading\" size=\"md\">Void Section 1</Text>\n <Text color=\"mutedForeground\">Content layout block powered by Flipova Foundation.</Text>\n </Stack>\n </Card>\n <Card p={4} variant=\"outlined\">\n <Text variant=\"heading\" size=\"md\">Void Section 2</Text>\n </Card>\n </VoidLayout>\n </FoundationProvider>\n );\n}";
|
|
9372
9832
|
}];
|
|
9373
9833
|
declare const primitiveRegistry: readonly [{
|
|
9374
9834
|
readonly id: "Box";
|
|
@@ -9471,6 +9931,7 @@ declare const primitiveRegistry: readonly [{
|
|
|
9471
9931
|
readonly group: "layout";
|
|
9472
9932
|
readonly options: readonly ["auto", "flex-start", "center", "flex-end", "stretch"];
|
|
9473
9933
|
}];
|
|
9934
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Box, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function BoxExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Box Example</Text>\n <Box />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
9474
9935
|
}, {
|
|
9475
9936
|
readonly id: "Center";
|
|
9476
9937
|
readonly label: "Center";
|
|
@@ -9513,6 +9974,7 @@ declare const primitiveRegistry: readonly [{
|
|
|
9513
9974
|
readonly type: "number";
|
|
9514
9975
|
readonly group: "layout";
|
|
9515
9976
|
}];
|
|
9977
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Center, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function CenterExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Center Example</Text>\n <Center />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
9516
9978
|
}, {
|
|
9517
9979
|
readonly id: "Inline";
|
|
9518
9980
|
readonly label: "Inline";
|
|
@@ -9570,6 +10032,7 @@ declare const primitiveRegistry: readonly [{
|
|
|
9570
10032
|
readonly group: "layout";
|
|
9571
10033
|
readonly default: false;
|
|
9572
10034
|
}];
|
|
10035
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Inline, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function InlineExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Inline Example</Text>\n <Inline\n spacing={2}\n align=\"stretch\"\n justify=\"flex-start\"\n wrap={false}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
9573
10036
|
}, {
|
|
9574
10037
|
readonly id: "Scroll";
|
|
9575
10038
|
readonly label: "Scroll";
|
|
@@ -9615,6 +10078,7 @@ declare const primitiveRegistry: readonly [{
|
|
|
9615
10078
|
readonly type: "number";
|
|
9616
10079
|
readonly group: "layout";
|
|
9617
10080
|
}];
|
|
10081
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Scroll, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function ScrollExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Scroll Example</Text>\n <Scroll\n horizontal={false}\n showsScrollIndicator={true}\n scrollEnabled={true}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
9618
10082
|
}, {
|
|
9619
10083
|
readonly id: "Stack";
|
|
9620
10084
|
readonly label: "Stack";
|
|
@@ -9654,6 +10118,7 @@ declare const primitiveRegistry: readonly [{
|
|
|
9654
10118
|
readonly type: "number";
|
|
9655
10119
|
readonly group: "layout";
|
|
9656
10120
|
}];
|
|
10121
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Stack, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function StackExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Stack Example</Text>\n <Stack\n spacing={2}\n align=\"stretch\"\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
9657
10122
|
}, {
|
|
9658
10123
|
readonly id: "Divider";
|
|
9659
10124
|
readonly label: "Divider";
|
|
@@ -9684,10 +10149,12 @@ declare const primitiveRegistry: readonly [{
|
|
|
9684
10149
|
readonly type: "spacing";
|
|
9685
10150
|
readonly group: "layout";
|
|
9686
10151
|
}];
|
|
10152
|
+
readonly example: "import React from 'react';\nimport { FoundationProvider, Divider, Card, Stack, Text } from '@flipova/foundation';\n\nexport default function DividerExample() {\n return (\n <FoundationProvider defaultTheme=\"dark\">\n <Card p={5} borderRadius=\"lg\" variant=\"elevated\">\n <Stack spacing={3}>\n <Text variant=\"heading\" size=\"md\">Divider Example</Text>\n <Divider\n vertical={false}\n thickness={1}\n />\n </Stack>\n </Card>\n </FoundationProvider>\n );\n}";
|
|
9687
10153
|
}];
|
|
9688
10154
|
declare function getComponentMeta(id: string): any;
|
|
9689
10155
|
declare function getBlockMeta(id: string): any;
|
|
9690
10156
|
declare function getLayoutMeta(id: string): any;
|
|
9691
10157
|
declare function getPrimitiveMeta(id: string): any;
|
|
10158
|
+
declare function getMeta(id: string): any;
|
|
9692
10159
|
|
|
9693
|
-
export { AccordionMeta, AudioMeta, AuthLayoutMeta, AvatarMeta, AvatarPickerMeta, BadgeMeta, BadgeWrapperMeta, BentoLayoutMeta, BlurViewMeta, BlurWrapperMeta, BottomDrawerLayoutMeta, BoxMeta, ButtonMeta, CameraMeta, CardMeta, CenterMeta, CenteredLayoutMeta, CheckboxMeta, ChipMeta, CollapsibleWrapperMeta, ColorPickerMeta, DashboardLayoutMeta, DatePickerMeta, DeckLayoutMeta, DividerMeta, EmojiPickerMeta, FadeInWrapperMeta, FilePickerMeta, FlatListMeta, FlexLayoutMeta, FlipLayoutMeta, FooterLayoutMeta, GifPickerMeta, GradientMeta, GridLayoutMeta, HeaderContentLayoutMeta, IconButtonMeta, IconMeta, IconPickerMeta, ImageMeta, InlineMeta, KeyboardAvoidWrapperMeta, LeftDrawerLayoutMeta, LottieAnimationMeta, MapViewMeta, MasonryLayoutMeta, NumberInputMeta, OTPInputMeta, ParallaxLayoutMeta, PasswordInputMeta, PressableMeta, ProgressBarMeta, RadioGroupMeta, ResponsiveLayoutMeta, RootLayoutMeta, SafeAreaWrapperMeta, ScalePressWrapperMeta, ScrollLayoutMeta, ScrollMeta, SearchInputMeta, SelectMeta, SeparatorMeta, ShimmerWrapperMeta, SidebarLayoutMeta, SkeletonWrapperMeta, SketchLayoutMeta, SlideUpWrapperMeta, SliderMeta, SortableGridLayoutMeta, SpinnerMeta, SplitLayoutMeta, StackMeta, Swipe2ScreenLayoutMeta, SwiperLayoutMeta, SwitchMeta, SystemLayoutMeta, TabsMeta, TextAreaMeta, TextInputMeta, TextMeta, TooltipWrapperMeta, TopDrawerLayoutMeta, TutoLayoutMeta, VideoMeta, VoidLayoutMeta, WebViewMeta, WheelPickerMeta, blockRegistry, componentRegistry, getBlockMeta, getComponentMeta, getLayoutMeta, getPrimitiveMeta, layoutRegistry, primitiveRegistry };
|
|
10160
|
+
export { AccordionMeta, AudioMeta, AuthLayoutMeta, AvatarMeta, AvatarPickerMeta, BadgeMeta, BadgeWrapperMeta, BentoLayoutMeta, BlurViewMeta, BlurWrapperMeta, BottomDrawerLayoutMeta, BoxMeta, ButtonMeta, CameraMeta, CardMeta, CenterMeta, CenteredLayoutMeta, CheckboxMeta, ChipMeta, CollapsibleWrapperMeta, ColorPickerMeta, DashboardLayoutMeta, DatePickerMeta, DeckLayoutMeta, DividerMeta, EmojiPickerMeta, FadeInWrapperMeta, FilePickerMeta, FlatListMeta, FlexLayoutMeta, FlipLayoutMeta, FooterLayoutMeta, GifPickerMeta, GradientMeta, GridLayoutMeta, HeaderContentLayoutMeta, IconButtonMeta, IconMeta, IconPickerMeta, ImageMeta, InlineMeta, KeyboardAvoidWrapperMeta, LeftDrawerLayoutMeta, LottieAnimationMeta, MapViewMeta, MasonryLayoutMeta, NumberInputMeta, OTPInputMeta, ParallaxLayoutMeta, PasswordInputMeta, PressableMeta, ProgressBarMeta, RadioGroupMeta, ResponsiveLayoutMeta, RootLayoutMeta, SafeAreaWrapperMeta, ScalePressWrapperMeta, ScrollLayoutMeta, ScrollMeta, SearchInputMeta, SelectMeta, SeparatorMeta, ShimmerWrapperMeta, SidebarLayoutMeta, SkeletonWrapperMeta, SketchLayoutMeta, SlideUpWrapperMeta, SliderMeta, SortableGridLayoutMeta, SpinnerMeta, SplitLayoutMeta, StackMeta, Swipe2ScreenLayoutMeta, SwiperLayoutMeta, SwitchMeta, SystemLayoutMeta, TabsMeta, TextAreaMeta, TextInputMeta, TextMeta, TooltipWrapperMeta, TopDrawerLayoutMeta, TutoLayoutMeta, VideoMeta, VoidLayoutMeta, WebViewMeta, WheelPickerMeta, blockRegistry, componentRegistry, getBlockMeta, getComponentMeta, getLayoutMeta, getMeta, getPrimitiveMeta, layoutRegistry, primitiveRegistry };
|