@flipova/foundation 1.12.1 → 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 +3 -4
- package/LICENSE +21 -21
- package/README.md +215 -197
- package/dist/{web/index.js → chunk-2XORADW6.js} +3584 -10205
- 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-MLFQD3PV.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-ETR75HWU.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-KOKOIY5E.js → chunk-UB34WFEQ.js} +18 -18
- package/dist/chunk-UB34WFEQ.js.map +1 -0
- package/dist/{web/index.mjs → chunk-ZBRWXKDF.mjs} +3317 -9828
- 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 +602 -0
- 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 +161 -0
- 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 +241 -83
- package/dist/ui/index.d.ts +241 -83
- package/dist/ui/index.js +182 -182
- package/dist/ui/index.mjs +2 -2
- package/package.json +29 -16
- package/dist/chunk-4KNPSB67.js.map +0 -1
- package/dist/chunk-4NPMHFKO.mjs.map +0 -1
- package/dist/chunk-DJP3T7OD.mjs.map +0 -1
- package/dist/chunk-ETR75HWU.mjs.map +0 -1
- package/dist/chunk-KGMGD6GU.js +0 -7024
- package/dist/chunk-KGMGD6GU.js.map +0 -1
- package/dist/chunk-KOKOIY5E.js.map +0 -1
- package/dist/chunk-MLFQD3PV.mjs.map +0 -1
- package/dist/chunk-O7UP2OZR.js.map +0 -1
- package/dist/chunk-RMLLGNWR.js +0 -428
- package/dist/chunk-RMLLGNWR.js.map +0 -1
- package/dist/chunk-XTYE5PNQ.mjs +0 -6900
- package/dist/chunk-XTYE5PNQ.mjs.map +0 -1
- package/dist/web/index.js.map +0 -1
- package/dist/web/index.mjs.map +0 -1
|
@@ -149,7 +149,22 @@ var BoxMeta = {
|
|
|
149
149
|
"stretch"
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
|
-
]
|
|
152
|
+
],
|
|
153
|
+
"example": `import React from 'react';
|
|
154
|
+
import { FoundationProvider, Box, Card, Stack, Text } from '@flipova/foundation';
|
|
155
|
+
|
|
156
|
+
export default function BoxExample() {
|
|
157
|
+
return (
|
|
158
|
+
<FoundationProvider defaultTheme="dark">
|
|
159
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
160
|
+
<Stack spacing={3}>
|
|
161
|
+
<Text variant="heading" size="md">Box Example</Text>
|
|
162
|
+
<Box />
|
|
163
|
+
</Stack>
|
|
164
|
+
</Card>
|
|
165
|
+
</FoundationProvider>
|
|
166
|
+
);
|
|
167
|
+
}`
|
|
153
168
|
};
|
|
154
169
|
var CenterMeta = {
|
|
155
170
|
"id": "Center",
|
|
@@ -205,7 +220,22 @@ var CenterMeta = {
|
|
|
205
220
|
"type": "number",
|
|
206
221
|
"group": "layout"
|
|
207
222
|
}
|
|
208
|
-
]
|
|
223
|
+
],
|
|
224
|
+
"example": `import React from 'react';
|
|
225
|
+
import { FoundationProvider, Center, Card, Stack, Text } from '@flipova/foundation';
|
|
226
|
+
|
|
227
|
+
export default function CenterExample() {
|
|
228
|
+
return (
|
|
229
|
+
<FoundationProvider defaultTheme="dark">
|
|
230
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
231
|
+
<Stack spacing={3}>
|
|
232
|
+
<Text variant="heading" size="md">Center Example</Text>
|
|
233
|
+
<Center />
|
|
234
|
+
</Stack>
|
|
235
|
+
</Card>
|
|
236
|
+
</FoundationProvider>
|
|
237
|
+
);
|
|
238
|
+
}`
|
|
209
239
|
};
|
|
210
240
|
var InlineMeta = {
|
|
211
241
|
"id": "Inline",
|
|
@@ -291,7 +321,27 @@ var InlineMeta = {
|
|
|
291
321
|
"group": "layout",
|
|
292
322
|
"default": false
|
|
293
323
|
}
|
|
294
|
-
]
|
|
324
|
+
],
|
|
325
|
+
"example": `import React from 'react';
|
|
326
|
+
import { FoundationProvider, Inline, Card, Stack, Text } from '@flipova/foundation';
|
|
327
|
+
|
|
328
|
+
export default function InlineExample() {
|
|
329
|
+
return (
|
|
330
|
+
<FoundationProvider defaultTheme="dark">
|
|
331
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
332
|
+
<Stack spacing={3}>
|
|
333
|
+
<Text variant="heading" size="md">Inline Example</Text>
|
|
334
|
+
<Inline
|
|
335
|
+
spacing={2}
|
|
336
|
+
align="stretch"
|
|
337
|
+
justify="flex-start"
|
|
338
|
+
wrap={false}
|
|
339
|
+
/>
|
|
340
|
+
</Stack>
|
|
341
|
+
</Card>
|
|
342
|
+
</FoundationProvider>
|
|
343
|
+
);
|
|
344
|
+
}`
|
|
295
345
|
};
|
|
296
346
|
var ScrollMeta = {
|
|
297
347
|
"id": "Scroll",
|
|
@@ -350,7 +400,26 @@ var ScrollMeta = {
|
|
|
350
400
|
"type": "number",
|
|
351
401
|
"group": "layout"
|
|
352
402
|
}
|
|
353
|
-
]
|
|
403
|
+
],
|
|
404
|
+
"example": `import React from 'react';
|
|
405
|
+
import { FoundationProvider, Scroll, Card, Stack, Text } from '@flipova/foundation';
|
|
406
|
+
|
|
407
|
+
export default function ScrollExample() {
|
|
408
|
+
return (
|
|
409
|
+
<FoundationProvider defaultTheme="dark">
|
|
410
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
411
|
+
<Stack spacing={3}>
|
|
412
|
+
<Text variant="heading" size="md">Scroll Example</Text>
|
|
413
|
+
<Scroll
|
|
414
|
+
horizontal={false}
|
|
415
|
+
showsScrollIndicator={true}
|
|
416
|
+
scrollEnabled={true}
|
|
417
|
+
/>
|
|
418
|
+
</Stack>
|
|
419
|
+
</Card>
|
|
420
|
+
</FoundationProvider>
|
|
421
|
+
);
|
|
422
|
+
}`
|
|
354
423
|
};
|
|
355
424
|
var StackMeta = {
|
|
356
425
|
"id": "Stack",
|
|
@@ -408,9 +477,28 @@ var StackMeta = {
|
|
|
408
477
|
"type": "number",
|
|
409
478
|
"group": "layout"
|
|
410
479
|
}
|
|
411
|
-
]
|
|
480
|
+
],
|
|
481
|
+
"example": `import React from 'react';
|
|
482
|
+
import { FoundationProvider, Stack, Card, Stack, Text } from '@flipova/foundation';
|
|
483
|
+
|
|
484
|
+
export default function StackExample() {
|
|
485
|
+
return (
|
|
486
|
+
<FoundationProvider defaultTheme="dark">
|
|
487
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
488
|
+
<Stack spacing={3}>
|
|
489
|
+
<Text variant="heading" size="md">Stack Example</Text>
|
|
490
|
+
<Stack
|
|
491
|
+
spacing={2}
|
|
492
|
+
align="stretch"
|
|
493
|
+
/>
|
|
494
|
+
</Stack>
|
|
495
|
+
</Card>
|
|
496
|
+
</FoundationProvider>
|
|
497
|
+
);
|
|
498
|
+
}`
|
|
412
499
|
};
|
|
413
500
|
var BadgeWrapperMeta = {
|
|
501
|
+
"id": "BadgeWrapper",
|
|
414
502
|
"name": "BadgeWrapper",
|
|
415
503
|
"description": "Wraps an element and places a customizable notification badge in the top right corner.",
|
|
416
504
|
"props": [
|
|
@@ -432,9 +520,29 @@ var BadgeWrapperMeta = {
|
|
|
432
520
|
"description": "Badge background color",
|
|
433
521
|
"default": null
|
|
434
522
|
}
|
|
435
|
-
]
|
|
523
|
+
],
|
|
524
|
+
"example": `import React from 'react';
|
|
525
|
+
import { FoundationProvider, BadgeWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
526
|
+
|
|
527
|
+
export default function BadgeWrapperExample() {
|
|
528
|
+
return (
|
|
529
|
+
<FoundationProvider defaultTheme="dark">
|
|
530
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
531
|
+
<Stack spacing={3}>
|
|
532
|
+
<Text variant="heading" size="md">BadgeWrapper Example</Text>
|
|
533
|
+
<BadgeWrapper
|
|
534
|
+
count={0}
|
|
535
|
+
showZero={false}
|
|
536
|
+
color="Sample"
|
|
537
|
+
/>
|
|
538
|
+
</Stack>
|
|
539
|
+
</Card>
|
|
540
|
+
</FoundationProvider>
|
|
541
|
+
);
|
|
542
|
+
}`
|
|
436
543
|
};
|
|
437
544
|
var BlurWrapperMeta = {
|
|
545
|
+
"id": "BlurWrapper",
|
|
438
546
|
"name": "BlurWrapper",
|
|
439
547
|
"description": "Wraps children in a frosted glass/blur container.",
|
|
440
548
|
"props": [
|
|
@@ -450,9 +558,28 @@ var BlurWrapperMeta = {
|
|
|
450
558
|
"description": "Tint color (light, dark, default)",
|
|
451
559
|
"default": "default"
|
|
452
560
|
}
|
|
453
|
-
]
|
|
561
|
+
],
|
|
562
|
+
"example": `import React from 'react';
|
|
563
|
+
import { FoundationProvider, BlurWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
564
|
+
|
|
565
|
+
export default function BlurWrapperExample() {
|
|
566
|
+
return (
|
|
567
|
+
<FoundationProvider defaultTheme="dark">
|
|
568
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
569
|
+
<Stack spacing={3}>
|
|
570
|
+
<Text variant="heading" size="md">BlurWrapper Example</Text>
|
|
571
|
+
<BlurWrapper
|
|
572
|
+
intensity={50}
|
|
573
|
+
tint="default"
|
|
574
|
+
/>
|
|
575
|
+
</Stack>
|
|
576
|
+
</Card>
|
|
577
|
+
</FoundationProvider>
|
|
578
|
+
);
|
|
579
|
+
}`
|
|
454
580
|
};
|
|
455
581
|
var CollapsibleWrapperMeta = {
|
|
582
|
+
"id": "CollapsibleWrapper",
|
|
456
583
|
"name": "CollapsibleWrapper",
|
|
457
584
|
"description": "A container that smoothly expands or collapses its children height.",
|
|
458
585
|
"props": [
|
|
@@ -462,9 +589,27 @@ var CollapsibleWrapperMeta = {
|
|
|
462
589
|
"description": "Whether the container is expanded",
|
|
463
590
|
"default": false
|
|
464
591
|
}
|
|
465
|
-
]
|
|
592
|
+
],
|
|
593
|
+
"example": `import React from 'react';
|
|
594
|
+
import { FoundationProvider, CollapsibleWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
595
|
+
|
|
596
|
+
export default function CollapsibleWrapperExample() {
|
|
597
|
+
return (
|
|
598
|
+
<FoundationProvider defaultTheme="dark">
|
|
599
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
600
|
+
<Stack spacing={3}>
|
|
601
|
+
<Text variant="heading" size="md">CollapsibleWrapper Example</Text>
|
|
602
|
+
<CollapsibleWrapper
|
|
603
|
+
isExpanded={false}
|
|
604
|
+
/>
|
|
605
|
+
</Stack>
|
|
606
|
+
</Card>
|
|
607
|
+
</FoundationProvider>
|
|
608
|
+
);
|
|
609
|
+
}`
|
|
466
610
|
};
|
|
467
611
|
var FadeInWrapperMeta = {
|
|
612
|
+
"id": "FadeInWrapper",
|
|
468
613
|
"name": "FadeInWrapper",
|
|
469
614
|
"description": "Animates its children in with a smooth opacity fade on mount.",
|
|
470
615
|
"props": [
|
|
@@ -480,9 +625,28 @@ var FadeInWrapperMeta = {
|
|
|
480
625
|
"description": "Animation delay in ms",
|
|
481
626
|
"default": 0
|
|
482
627
|
}
|
|
483
|
-
]
|
|
628
|
+
],
|
|
629
|
+
"example": `import React from 'react';
|
|
630
|
+
import { FoundationProvider, FadeInWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
631
|
+
|
|
632
|
+
export default function FadeInWrapperExample() {
|
|
633
|
+
return (
|
|
634
|
+
<FoundationProvider defaultTheme="dark">
|
|
635
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
636
|
+
<Stack spacing={3}>
|
|
637
|
+
<Text variant="heading" size="md">FadeInWrapper Example</Text>
|
|
638
|
+
<FadeInWrapper
|
|
639
|
+
duration={500}
|
|
640
|
+
delay={0}
|
|
641
|
+
/>
|
|
642
|
+
</Stack>
|
|
643
|
+
</Card>
|
|
644
|
+
</FoundationProvider>
|
|
645
|
+
);
|
|
646
|
+
}`
|
|
484
647
|
};
|
|
485
648
|
var KeyboardAvoidWrapperMeta = {
|
|
649
|
+
"id": "KeyboardAvoidWrapper",
|
|
486
650
|
"name": "KeyboardAvoidWrapper",
|
|
487
651
|
"description": "Automatically handles keyboard layout shifting for its wrapped children.",
|
|
488
652
|
"props": [
|
|
@@ -492,9 +656,27 @@ var KeyboardAvoidWrapperMeta = {
|
|
|
492
656
|
"description": "Extra offset above keyboard",
|
|
493
657
|
"default": 20
|
|
494
658
|
}
|
|
495
|
-
]
|
|
659
|
+
],
|
|
660
|
+
"example": `import React from 'react';
|
|
661
|
+
import { FoundationProvider, KeyboardAvoidWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
662
|
+
|
|
663
|
+
export default function KeyboardAvoidWrapperExample() {
|
|
664
|
+
return (
|
|
665
|
+
<FoundationProvider defaultTheme="dark">
|
|
666
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
667
|
+
<Stack spacing={3}>
|
|
668
|
+
<Text variant="heading" size="md">KeyboardAvoidWrapper Example</Text>
|
|
669
|
+
<KeyboardAvoidWrapper
|
|
670
|
+
offset={20}
|
|
671
|
+
/>
|
|
672
|
+
</Stack>
|
|
673
|
+
</Card>
|
|
674
|
+
</FoundationProvider>
|
|
675
|
+
);
|
|
676
|
+
}`
|
|
496
677
|
};
|
|
497
678
|
var SafeAreaWrapperMeta = {
|
|
679
|
+
"id": "SafeAreaWrapper",
|
|
498
680
|
"name": "SafeAreaWrapper",
|
|
499
681
|
"description": "A convenient wrapper that applies safe area boundaries to specific sections of children.",
|
|
500
682
|
"props": [
|
|
@@ -507,9 +689,25 @@ var SafeAreaWrapperMeta = {
|
|
|
507
689
|
"bottom"
|
|
508
690
|
]
|
|
509
691
|
}
|
|
510
|
-
]
|
|
692
|
+
],
|
|
693
|
+
"example": `import React from 'react';
|
|
694
|
+
import { FoundationProvider, SafeAreaWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
695
|
+
|
|
696
|
+
export default function SafeAreaWrapperExample() {
|
|
697
|
+
return (
|
|
698
|
+
<FoundationProvider defaultTheme="dark">
|
|
699
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
700
|
+
<Stack spacing={3}>
|
|
701
|
+
<Text variant="heading" size="md">SafeAreaWrapper Example</Text>
|
|
702
|
+
<SafeAreaWrapper />
|
|
703
|
+
</Stack>
|
|
704
|
+
</Card>
|
|
705
|
+
</FoundationProvider>
|
|
706
|
+
);
|
|
707
|
+
}`
|
|
511
708
|
};
|
|
512
709
|
var ScalePressWrapperMeta = {
|
|
710
|
+
"id": "ScalePressWrapper",
|
|
513
711
|
"name": "ScalePressWrapper",
|
|
514
712
|
"description": "Wraps any element and adds a bouncy shrink effect when pressed.",
|
|
515
713
|
"props": [
|
|
@@ -519,9 +717,27 @@ var ScalePressWrapperMeta = {
|
|
|
519
717
|
"description": "Scale factor when pressed",
|
|
520
718
|
"default": 0.95
|
|
521
719
|
}
|
|
522
|
-
]
|
|
720
|
+
],
|
|
721
|
+
"example": `import React from 'react';
|
|
722
|
+
import { FoundationProvider, ScalePressWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
723
|
+
|
|
724
|
+
export default function ScalePressWrapperExample() {
|
|
725
|
+
return (
|
|
726
|
+
<FoundationProvider defaultTheme="dark">
|
|
727
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
728
|
+
<Stack spacing={3}>
|
|
729
|
+
<Text variant="heading" size="md">ScalePressWrapper Example</Text>
|
|
730
|
+
<ScalePressWrapper
|
|
731
|
+
scaleTo={0.95}
|
|
732
|
+
/>
|
|
733
|
+
</Stack>
|
|
734
|
+
</Card>
|
|
735
|
+
</FoundationProvider>
|
|
736
|
+
);
|
|
737
|
+
}`
|
|
523
738
|
};
|
|
524
739
|
var ShimmerWrapperMeta = {
|
|
740
|
+
"id": "ShimmerWrapper",
|
|
525
741
|
"name": "ShimmerWrapper",
|
|
526
742
|
"description": "Adds a shiny animated loading shimmer effect over its children.",
|
|
527
743
|
"props": [
|
|
@@ -531,9 +747,27 @@ var ShimmerWrapperMeta = {
|
|
|
531
747
|
"description": "Whether to show the shimmer",
|
|
532
748
|
"default": true
|
|
533
749
|
}
|
|
534
|
-
]
|
|
750
|
+
],
|
|
751
|
+
"example": `import React from 'react';
|
|
752
|
+
import { FoundationProvider, ShimmerWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
753
|
+
|
|
754
|
+
export default function ShimmerWrapperExample() {
|
|
755
|
+
return (
|
|
756
|
+
<FoundationProvider defaultTheme="dark">
|
|
757
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
758
|
+
<Stack spacing={3}>
|
|
759
|
+
<Text variant="heading" size="md">ShimmerWrapper Example</Text>
|
|
760
|
+
<ShimmerWrapper
|
|
761
|
+
isLoading={true}
|
|
762
|
+
/>
|
|
763
|
+
</Stack>
|
|
764
|
+
</Card>
|
|
765
|
+
</FoundationProvider>
|
|
766
|
+
);
|
|
767
|
+
}`
|
|
535
768
|
};
|
|
536
769
|
var SkeletonWrapperMeta = {
|
|
770
|
+
"id": "SkeletonWrapper",
|
|
537
771
|
"name": "SkeletonWrapper",
|
|
538
772
|
"description": "A wrapper component that measures its children and displays an animated shimmering skeleton outline when loading.",
|
|
539
773
|
"tags": [
|
|
@@ -549,9 +783,27 @@ var SkeletonWrapperMeta = {
|
|
|
549
783
|
"description": "Whether the component is currently loading. If true, shows skeleton.",
|
|
550
784
|
"required": true
|
|
551
785
|
}
|
|
552
|
-
}
|
|
786
|
+
},
|
|
787
|
+
"example": `import React from 'react';
|
|
788
|
+
import { FoundationProvider, SkeletonWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
789
|
+
|
|
790
|
+
export default function SkeletonWrapperExample() {
|
|
791
|
+
return (
|
|
792
|
+
<FoundationProvider defaultTheme="dark">
|
|
793
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
794
|
+
<Stack spacing={3}>
|
|
795
|
+
<Text variant="heading" size="md">SkeletonWrapper Example</Text>
|
|
796
|
+
<SkeletonWrapper
|
|
797
|
+
isLoading={true}
|
|
798
|
+
/>
|
|
799
|
+
</Stack>
|
|
800
|
+
</Card>
|
|
801
|
+
</FoundationProvider>
|
|
802
|
+
);
|
|
803
|
+
}`
|
|
553
804
|
};
|
|
554
805
|
var SlideUpWrapperMeta = {
|
|
806
|
+
"id": "SlideUpWrapper",
|
|
555
807
|
"name": "SlideUpWrapper",
|
|
556
808
|
"description": "Animates its children sliding up from below on mount.",
|
|
557
809
|
"props": [
|
|
@@ -573,9 +825,29 @@ var SlideUpWrapperMeta = {
|
|
|
573
825
|
"description": "Distance to slide from in pixels",
|
|
574
826
|
"default": 50
|
|
575
827
|
}
|
|
576
|
-
]
|
|
828
|
+
],
|
|
829
|
+
"example": `import React from 'react';
|
|
830
|
+
import { FoundationProvider, SlideUpWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
831
|
+
|
|
832
|
+
export default function SlideUpWrapperExample() {
|
|
833
|
+
return (
|
|
834
|
+
<FoundationProvider defaultTheme="dark">
|
|
835
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
836
|
+
<Stack spacing={3}>
|
|
837
|
+
<Text variant="heading" size="md">SlideUpWrapper Example</Text>
|
|
838
|
+
<SlideUpWrapper
|
|
839
|
+
duration={500}
|
|
840
|
+
delay={0}
|
|
841
|
+
distance={50}
|
|
842
|
+
/>
|
|
843
|
+
</Stack>
|
|
844
|
+
</Card>
|
|
845
|
+
</FoundationProvider>
|
|
846
|
+
);
|
|
847
|
+
}`
|
|
577
848
|
};
|
|
578
849
|
var TooltipWrapperMeta = {
|
|
850
|
+
"id": "TooltipWrapper",
|
|
579
851
|
"name": "TooltipWrapper",
|
|
580
852
|
"description": "Wraps a component and displays a tooltip bubble near it.",
|
|
581
853
|
"props": [
|
|
@@ -591,7 +863,25 @@ var TooltipWrapperMeta = {
|
|
|
591
863
|
"description": "Whether tooltip is visible",
|
|
592
864
|
"default": false
|
|
593
865
|
}
|
|
594
|
-
]
|
|
866
|
+
],
|
|
867
|
+
"example": `import React from 'react';
|
|
868
|
+
import { FoundationProvider, TooltipWrapper, Card, Stack, Text } from '@flipova/foundation';
|
|
869
|
+
|
|
870
|
+
export default function TooltipWrapperExample() {
|
|
871
|
+
return (
|
|
872
|
+
<FoundationProvider defaultTheme="dark">
|
|
873
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
874
|
+
<Stack spacing={3}>
|
|
875
|
+
<Text variant="heading" size="md">TooltipWrapper Example</Text>
|
|
876
|
+
<TooltipWrapper
|
|
877
|
+
text="Sample"
|
|
878
|
+
isVisible={false}
|
|
879
|
+
/>
|
|
880
|
+
</Stack>
|
|
881
|
+
</Card>
|
|
882
|
+
</FoundationProvider>
|
|
883
|
+
);
|
|
884
|
+
}`
|
|
595
885
|
};
|
|
596
886
|
var AccordionMeta = {
|
|
597
887
|
"id": "Accordion",
|
|
@@ -649,9 +939,29 @@ var AccordionMeta = {
|
|
|
649
939
|
"group": "style",
|
|
650
940
|
"themeDefault": "border"
|
|
651
941
|
}
|
|
652
|
-
]
|
|
942
|
+
],
|
|
943
|
+
"example": `import React from 'react';
|
|
944
|
+
import { FoundationProvider, Accordion, Card, Stack, Text } from '@flipova/foundation';
|
|
945
|
+
|
|
946
|
+
export default function AccordionExample() {
|
|
947
|
+
return (
|
|
948
|
+
<FoundationProvider defaultTheme="dark">
|
|
949
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
950
|
+
<Stack spacing={3}>
|
|
951
|
+
<Text variant="heading" size="md">Accordion Example</Text>
|
|
952
|
+
<Accordion
|
|
953
|
+
title="Section"
|
|
954
|
+
defaultOpen={false}
|
|
955
|
+
borderRadius="lg"
|
|
956
|
+
/>
|
|
957
|
+
</Stack>
|
|
958
|
+
</Card>
|
|
959
|
+
</FoundationProvider>
|
|
960
|
+
);
|
|
961
|
+
}`
|
|
653
962
|
};
|
|
654
963
|
var AudioMeta = {
|
|
964
|
+
"id": "Audio",
|
|
655
965
|
"name": "Audio",
|
|
656
966
|
"description": "A base component for audio playback using expo-av.",
|
|
657
967
|
"tags": [
|
|
@@ -671,7 +981,25 @@ var AudioMeta = {
|
|
|
671
981
|
"description": "Whether the audio should auto-play",
|
|
672
982
|
"default": false
|
|
673
983
|
}
|
|
674
|
-
}
|
|
984
|
+
},
|
|
985
|
+
"example": `import React from 'react';
|
|
986
|
+
import { FoundationProvider, Audio, Card, Stack, Text } from '@flipova/foundation';
|
|
987
|
+
|
|
988
|
+
export default function AudioExample() {
|
|
989
|
+
return (
|
|
990
|
+
<FoundationProvider defaultTheme="dark">
|
|
991
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
992
|
+
<Stack spacing={3}>
|
|
993
|
+
<Text variant="heading" size="md">Audio Example</Text>
|
|
994
|
+
<Audio
|
|
995
|
+
source="Sample"
|
|
996
|
+
autoPlay={false}
|
|
997
|
+
/>
|
|
998
|
+
</Stack>
|
|
999
|
+
</Card>
|
|
1000
|
+
</FoundationProvider>
|
|
1001
|
+
);
|
|
1002
|
+
}`
|
|
675
1003
|
};
|
|
676
1004
|
var AvatarMeta = {
|
|
677
1005
|
"id": "Avatar",
|
|
@@ -784,9 +1112,30 @@ var AvatarMeta = {
|
|
|
784
1112
|
"group": "style",
|
|
785
1113
|
"themeDefault": "muted"
|
|
786
1114
|
}
|
|
787
|
-
]
|
|
1115
|
+
],
|
|
1116
|
+
"example": `import React from 'react';
|
|
1117
|
+
import { FoundationProvider, Avatar, Card, Stack, Text } from '@flipova/foundation';
|
|
1118
|
+
|
|
1119
|
+
export default function AvatarExample() {
|
|
1120
|
+
return (
|
|
1121
|
+
<FoundationProvider defaultTheme="dark">
|
|
1122
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
1123
|
+
<Stack spacing={3}>
|
|
1124
|
+
<Text variant="heading" size="md">Avatar Example</Text>
|
|
1125
|
+
<Avatar
|
|
1126
|
+
variant="circle"
|
|
1127
|
+
size="md"
|
|
1128
|
+
source="Image source"
|
|
1129
|
+
initials="Initials"
|
|
1130
|
+
/>
|
|
1131
|
+
</Stack>
|
|
1132
|
+
</Card>
|
|
1133
|
+
</FoundationProvider>
|
|
1134
|
+
);
|
|
1135
|
+
}`
|
|
788
1136
|
};
|
|
789
1137
|
var AvatarPickerMeta = {
|
|
1138
|
+
"id": "AvatarPicker",
|
|
790
1139
|
"name": "AvatarPicker",
|
|
791
1140
|
"description": "Allows users to select an avatar from a list of predefined options or upload one.",
|
|
792
1141
|
"tags": [
|
|
@@ -795,7 +1144,22 @@ var AvatarPickerMeta = {
|
|
|
795
1144
|
"picker",
|
|
796
1145
|
"avatar"
|
|
797
1146
|
],
|
|
798
|
-
"props": []
|
|
1147
|
+
"props": [],
|
|
1148
|
+
"example": `import React from 'react';
|
|
1149
|
+
import { FoundationProvider, AvatarPicker, Card, Stack, Text } from '@flipova/foundation';
|
|
1150
|
+
|
|
1151
|
+
export default function AvatarPickerExample() {
|
|
1152
|
+
return (
|
|
1153
|
+
<FoundationProvider defaultTheme="dark">
|
|
1154
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
1155
|
+
<Stack spacing={3}>
|
|
1156
|
+
<Text variant="heading" size="md">AvatarPicker Example</Text>
|
|
1157
|
+
<AvatarPicker />
|
|
1158
|
+
</Stack>
|
|
1159
|
+
</Card>
|
|
1160
|
+
</FoundationProvider>
|
|
1161
|
+
);
|
|
1162
|
+
}`
|
|
799
1163
|
};
|
|
800
1164
|
var BadgeMeta = {
|
|
801
1165
|
"id": "Badge",
|
|
@@ -951,7 +1315,28 @@ var BadgeMeta = {
|
|
|
951
1315
|
"group": "style",
|
|
952
1316
|
"default": "full"
|
|
953
1317
|
}
|
|
954
|
-
]
|
|
1318
|
+
],
|
|
1319
|
+
"example": `import React from 'react';
|
|
1320
|
+
import { FoundationProvider, Badge, Card, Stack, Text } from '@flipova/foundation';
|
|
1321
|
+
|
|
1322
|
+
export default function BadgeExample() {
|
|
1323
|
+
return (
|
|
1324
|
+
<FoundationProvider defaultTheme="dark">
|
|
1325
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
1326
|
+
<Stack spacing={3}>
|
|
1327
|
+
<Text variant="heading" size="md">Badge Example</Text>
|
|
1328
|
+
<Badge
|
|
1329
|
+
label="Label"
|
|
1330
|
+
variant="solid"
|
|
1331
|
+
size="md"
|
|
1332
|
+
color="primary"
|
|
1333
|
+
borderRadius="full"
|
|
1334
|
+
/>
|
|
1335
|
+
</Stack>
|
|
1336
|
+
</Card>
|
|
1337
|
+
</FoundationProvider>
|
|
1338
|
+
);
|
|
1339
|
+
}`
|
|
955
1340
|
};
|
|
956
1341
|
var BlurViewMeta = {
|
|
957
1342
|
"id": "BlurView",
|
|
@@ -1002,13 +1387,54 @@ var BlurViewMeta = {
|
|
|
1002
1387
|
"type": "spacing",
|
|
1003
1388
|
"group": "layout"
|
|
1004
1389
|
}
|
|
1005
|
-
]
|
|
1390
|
+
],
|
|
1391
|
+
"example": `import React from 'react';
|
|
1392
|
+
import { FoundationProvider, BlurView, Card, Stack, Text } from '@flipova/foundation';
|
|
1393
|
+
|
|
1394
|
+
export default function BlurViewExample() {
|
|
1395
|
+
return (
|
|
1396
|
+
<FoundationProvider defaultTheme="dark">
|
|
1397
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
1398
|
+
<Stack spacing={3}>
|
|
1399
|
+
<Text variant="heading" size="md">Blur View Example</Text>
|
|
1400
|
+
<BlurView
|
|
1401
|
+
intensity={50}
|
|
1402
|
+
tint="default"
|
|
1403
|
+
borderRadius="none"
|
|
1404
|
+
/>
|
|
1405
|
+
</Stack>
|
|
1406
|
+
</Card>
|
|
1407
|
+
</FoundationProvider>
|
|
1408
|
+
);
|
|
1409
|
+
}`
|
|
1006
1410
|
};
|
|
1007
1411
|
var ButtonMeta = {
|
|
1008
1412
|
"id": "Button",
|
|
1009
1413
|
"label": "Button",
|
|
1010
1414
|
"description": "Pressable button with variant and size support.",
|
|
1011
1415
|
"category": "action",
|
|
1416
|
+
"example": `import React from 'react';
|
|
1417
|
+
import { FoundationProvider, Button, Inline, Stack, Text } from '@flipova/foundation';
|
|
1418
|
+
|
|
1419
|
+
export default function ButtonExample() {
|
|
1420
|
+
return (
|
|
1421
|
+
<FoundationProvider defaultTheme="dark">
|
|
1422
|
+
<Stack spacing={4} style={{ padding: 20 }}>
|
|
1423
|
+
<Text variant="heading" size="md">Button Actions</Text>
|
|
1424
|
+
<Inline spacing={3} alignItems="center">
|
|
1425
|
+
<Button
|
|
1426
|
+
label="Button"
|
|
1427
|
+
variant="primary"
|
|
1428
|
+
size="md"
|
|
1429
|
+
disabled={false}
|
|
1430
|
+
loading={false}
|
|
1431
|
+
fullWidth={false}
|
|
1432
|
+
onPress={() => console.log('Button pressed')} />
|
|
1433
|
+
</Inline>
|
|
1434
|
+
</Stack>
|
|
1435
|
+
</FoundationProvider>
|
|
1436
|
+
);
|
|
1437
|
+
}`,
|
|
1012
1438
|
"tags": [
|
|
1013
1439
|
"button",
|
|
1014
1440
|
"cta",
|
|
@@ -1225,7 +1651,28 @@ var CameraMeta = {
|
|
|
1225
1651
|
"group": "style",
|
|
1226
1652
|
"default": "lg"
|
|
1227
1653
|
}
|
|
1228
|
-
]
|
|
1654
|
+
],
|
|
1655
|
+
"example": `import React from 'react';
|
|
1656
|
+
import { FoundationProvider, Camera, Card, Stack, Text } from '@flipova/foundation';
|
|
1657
|
+
|
|
1658
|
+
export default function CameraExample() {
|
|
1659
|
+
return (
|
|
1660
|
+
<FoundationProvider defaultTheme="dark">
|
|
1661
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
1662
|
+
<Stack spacing={3}>
|
|
1663
|
+
<Text variant="heading" size="md">Camera Example</Text>
|
|
1664
|
+
<Camera
|
|
1665
|
+
facing="back"
|
|
1666
|
+
flash="off"
|
|
1667
|
+
enableTorch={false}
|
|
1668
|
+
height={300}
|
|
1669
|
+
borderRadius="lg"
|
|
1670
|
+
/>
|
|
1671
|
+
</Stack>
|
|
1672
|
+
</Card>
|
|
1673
|
+
</FoundationProvider>
|
|
1674
|
+
);
|
|
1675
|
+
}`
|
|
1229
1676
|
};
|
|
1230
1677
|
var CardMeta = {
|
|
1231
1678
|
"id": "Card",
|
|
@@ -1282,7 +1729,27 @@ var CardMeta = {
|
|
|
1282
1729
|
"group": "style",
|
|
1283
1730
|
"default": "md"
|
|
1284
1731
|
}
|
|
1285
|
-
]
|
|
1732
|
+
],
|
|
1733
|
+
"example": `import React from 'react';
|
|
1734
|
+
import { FoundationProvider, Card, Card, Stack, Text } from '@flipova/foundation';
|
|
1735
|
+
|
|
1736
|
+
export default function CardExample() {
|
|
1737
|
+
return (
|
|
1738
|
+
<FoundationProvider defaultTheme="dark">
|
|
1739
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
1740
|
+
<Stack spacing={3}>
|
|
1741
|
+
<Text variant="heading" size="md">Card Example</Text>
|
|
1742
|
+
<Card
|
|
1743
|
+
shadow="md"
|
|
1744
|
+
interactive={false}
|
|
1745
|
+
padding={4}
|
|
1746
|
+
borderRadius="md"
|
|
1747
|
+
/>
|
|
1748
|
+
</Stack>
|
|
1749
|
+
</Card>
|
|
1750
|
+
</FoundationProvider>
|
|
1751
|
+
);
|
|
1752
|
+
}`
|
|
1286
1753
|
};
|
|
1287
1754
|
var CheckboxMeta = {
|
|
1288
1755
|
"id": "Checkbox",
|
|
@@ -1371,7 +1838,31 @@ var CheckboxMeta = {
|
|
|
1371
1838
|
"group": "behavior",
|
|
1372
1839
|
"default": false
|
|
1373
1840
|
}
|
|
1374
|
-
]
|
|
1841
|
+
],
|
|
1842
|
+
"example": `import React, { useState } from 'react';
|
|
1843
|
+
import { FoundationProvider, Checkbox, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
1844
|
+
|
|
1845
|
+
export default function CheckboxExample() {
|
|
1846
|
+
const [value, setValue] = useState('');
|
|
1847
|
+
|
|
1848
|
+
return (
|
|
1849
|
+
<FoundationProvider defaultTheme="dark">
|
|
1850
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
1851
|
+
<Stack spacing={4}>
|
|
1852
|
+
<Text variant="heading" size="md">Checkbox Input</Text>
|
|
1853
|
+
<Checkbox
|
|
1854
|
+
variant="square"
|
|
1855
|
+
size="md"
|
|
1856
|
+
disabled={false}
|
|
1857
|
+
label="Label"
|
|
1858
|
+
checked={false}
|
|
1859
|
+
value={value} onChangeText={setValue} />
|
|
1860
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
1861
|
+
</Stack>
|
|
1862
|
+
</Card>
|
|
1863
|
+
</FoundationProvider>
|
|
1864
|
+
);
|
|
1865
|
+
}`
|
|
1375
1866
|
};
|
|
1376
1867
|
var ChipMeta = {
|
|
1377
1868
|
"id": "Chip",
|
|
@@ -1467,9 +1958,35 @@ var ChipMeta = {
|
|
|
1467
1958
|
"group": "style",
|
|
1468
1959
|
"default": "full"
|
|
1469
1960
|
}
|
|
1470
|
-
]
|
|
1961
|
+
],
|
|
1962
|
+
"example": `import React, { useState } from 'react';
|
|
1963
|
+
import { FoundationProvider, Chip, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
1964
|
+
|
|
1965
|
+
export default function ChipExample() {
|
|
1966
|
+
const [value, setValue] = useState('');
|
|
1967
|
+
|
|
1968
|
+
return (
|
|
1969
|
+
<FoundationProvider defaultTheme="dark">
|
|
1970
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
1971
|
+
<Stack spacing={4}>
|
|
1972
|
+
<Text variant="heading" size="md">Chip Input</Text>
|
|
1973
|
+
<Chip
|
|
1974
|
+
label="Label"
|
|
1975
|
+
variant="filled"
|
|
1976
|
+
size="md"
|
|
1977
|
+
selected={false}
|
|
1978
|
+
closable={false}
|
|
1979
|
+
disabled={false}
|
|
1980
|
+
value={value} onChangeText={setValue} />
|
|
1981
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
1982
|
+
</Stack>
|
|
1983
|
+
</Card>
|
|
1984
|
+
</FoundationProvider>
|
|
1985
|
+
);
|
|
1986
|
+
}`
|
|
1471
1987
|
};
|
|
1472
1988
|
var ColorPickerMeta = {
|
|
1989
|
+
"id": "ColorPicker",
|
|
1473
1990
|
"name": "ColorPicker",
|
|
1474
1991
|
"description": "A visual grid of color swatches for choosing a theme or element color.",
|
|
1475
1992
|
"tags": [
|
|
@@ -1478,7 +1995,22 @@ var ColorPickerMeta = {
|
|
|
1478
1995
|
"picker",
|
|
1479
1996
|
"color"
|
|
1480
1997
|
],
|
|
1481
|
-
"props": []
|
|
1998
|
+
"props": [],
|
|
1999
|
+
"example": `import React from 'react';
|
|
2000
|
+
import { FoundationProvider, ColorPicker, Card, Stack, Text } from '@flipova/foundation';
|
|
2001
|
+
|
|
2002
|
+
export default function ColorPickerExample() {
|
|
2003
|
+
return (
|
|
2004
|
+
<FoundationProvider defaultTheme="dark">
|
|
2005
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2006
|
+
<Stack spacing={3}>
|
|
2007
|
+
<Text variant="heading" size="md">ColorPicker Example</Text>
|
|
2008
|
+
<ColorPicker />
|
|
2009
|
+
</Stack>
|
|
2010
|
+
</Card>
|
|
2011
|
+
</FoundationProvider>
|
|
2012
|
+
);
|
|
2013
|
+
}`
|
|
1482
2014
|
};
|
|
1483
2015
|
var DatePickerMeta = {
|
|
1484
2016
|
"id": "DatePicker",
|
|
@@ -1577,7 +2109,32 @@ var DatePickerMeta = {
|
|
|
1577
2109
|
"group": "style",
|
|
1578
2110
|
"default": "md"
|
|
1579
2111
|
}
|
|
1580
|
-
]
|
|
2112
|
+
],
|
|
2113
|
+
"example": `import React, { useState } from 'react';
|
|
2114
|
+
import { FoundationProvider, DatePicker, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
2115
|
+
|
|
2116
|
+
export default function DatePickerExample() {
|
|
2117
|
+
const [value, setValue] = useState('');
|
|
2118
|
+
|
|
2119
|
+
return (
|
|
2120
|
+
<FoundationProvider defaultTheme="dark">
|
|
2121
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
2122
|
+
<Stack spacing={4}>
|
|
2123
|
+
<Text variant="heading" size="md">Date Picker Input</Text>
|
|
2124
|
+
<DatePicker
|
|
2125
|
+
size="md"
|
|
2126
|
+
mode="date"
|
|
2127
|
+
label="Label"
|
|
2128
|
+
placeholder="Select date"
|
|
2129
|
+
error="Error message"
|
|
2130
|
+
disabled={false}
|
|
2131
|
+
value={value} onChangeText={setValue} />
|
|
2132
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
2133
|
+
</Stack>
|
|
2134
|
+
</Card>
|
|
2135
|
+
</FoundationProvider>
|
|
2136
|
+
);
|
|
2137
|
+
}`
|
|
1581
2138
|
};
|
|
1582
2139
|
var DividerMeta = {
|
|
1583
2140
|
"id": "Divider",
|
|
@@ -1618,9 +2175,28 @@ var DividerMeta = {
|
|
|
1618
2175
|
"type": "spacing",
|
|
1619
2176
|
"group": "layout"
|
|
1620
2177
|
}
|
|
1621
|
-
]
|
|
2178
|
+
],
|
|
2179
|
+
"example": `import React from 'react';
|
|
2180
|
+
import { FoundationProvider, Divider, Card, Stack, Text } from '@flipova/foundation';
|
|
2181
|
+
|
|
2182
|
+
export default function DividerExample() {
|
|
2183
|
+
return (
|
|
2184
|
+
<FoundationProvider defaultTheme="dark">
|
|
2185
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2186
|
+
<Stack spacing={3}>
|
|
2187
|
+
<Text variant="heading" size="md">Divider Example</Text>
|
|
2188
|
+
<Divider
|
|
2189
|
+
vertical={false}
|
|
2190
|
+
thickness={1}
|
|
2191
|
+
/>
|
|
2192
|
+
</Stack>
|
|
2193
|
+
</Card>
|
|
2194
|
+
</FoundationProvider>
|
|
2195
|
+
);
|
|
2196
|
+
}`
|
|
1622
2197
|
};
|
|
1623
2198
|
var EmojiPickerMeta = {
|
|
2199
|
+
"id": "EmojiPicker",
|
|
1624
2200
|
"name": "EmojiPicker",
|
|
1625
2201
|
"description": "A grid of emojis categorized by type.",
|
|
1626
2202
|
"tags": [
|
|
@@ -1629,7 +2205,22 @@ var EmojiPickerMeta = {
|
|
|
1629
2205
|
"picker",
|
|
1630
2206
|
"emoji"
|
|
1631
2207
|
],
|
|
1632
|
-
"props": []
|
|
2208
|
+
"props": [],
|
|
2209
|
+
"example": `import React from 'react';
|
|
2210
|
+
import { FoundationProvider, EmojiPicker, Card, Stack, Text } from '@flipova/foundation';
|
|
2211
|
+
|
|
2212
|
+
export default function EmojiPickerExample() {
|
|
2213
|
+
return (
|
|
2214
|
+
<FoundationProvider defaultTheme="dark">
|
|
2215
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2216
|
+
<Stack spacing={3}>
|
|
2217
|
+
<Text variant="heading" size="md">EmojiPicker Example</Text>
|
|
2218
|
+
<EmojiPicker />
|
|
2219
|
+
</Stack>
|
|
2220
|
+
</Card>
|
|
2221
|
+
</FoundationProvider>
|
|
2222
|
+
);
|
|
2223
|
+
}`
|
|
1633
2224
|
};
|
|
1634
2225
|
var FilePickerMeta = {
|
|
1635
2226
|
"id": "FilePicker",
|
|
@@ -1727,13 +2318,58 @@ var FilePickerMeta = {
|
|
|
1727
2318
|
"group": "style",
|
|
1728
2319
|
"default": "md"
|
|
1729
2320
|
}
|
|
1730
|
-
]
|
|
2321
|
+
],
|
|
2322
|
+
"example": `import React, { useState } from 'react';
|
|
2323
|
+
import { FoundationProvider, FilePicker, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
2324
|
+
|
|
2325
|
+
export default function FilePickerExample() {
|
|
2326
|
+
const [value, setValue] = useState('');
|
|
2327
|
+
|
|
2328
|
+
return (
|
|
2329
|
+
<FoundationProvider defaultTheme="dark">
|
|
2330
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
2331
|
+
<Stack spacing={4}>
|
|
2332
|
+
<Text variant="heading" size="md">File Picker Input</Text>
|
|
2333
|
+
<FilePicker
|
|
2334
|
+
variant="button"
|
|
2335
|
+
size="md"
|
|
2336
|
+
accept="image/*"
|
|
2337
|
+
multiple={false}
|
|
2338
|
+
label="Upload file"
|
|
2339
|
+
disabled={false}
|
|
2340
|
+
value={value} onChangeText={setValue} />
|
|
2341
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
2342
|
+
</Stack>
|
|
2343
|
+
</Card>
|
|
2344
|
+
</FoundationProvider>
|
|
2345
|
+
);
|
|
2346
|
+
}`
|
|
1731
2347
|
};
|
|
1732
2348
|
var FlatListMeta = {
|
|
1733
2349
|
"id": "FlatList",
|
|
1734
2350
|
"label": "List",
|
|
1735
2351
|
"description": "Scrollable list with virtualization.",
|
|
1736
2352
|
"category": "display",
|
|
2353
|
+
"example": `import React from 'react';
|
|
2354
|
+
import { FoundationProvider, FlatList, Card, Stack, Text } from '@flipova/foundation';
|
|
2355
|
+
|
|
2356
|
+
export default function FlatListExample() {
|
|
2357
|
+
return (
|
|
2358
|
+
<FoundationProvider defaultTheme="dark">
|
|
2359
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2360
|
+
<Stack spacing={3}>
|
|
2361
|
+
<Text variant="heading" size="md">List Example</Text>
|
|
2362
|
+
<FlatList
|
|
2363
|
+
horizontal={false}
|
|
2364
|
+
numColumns={1}
|
|
2365
|
+
spacing={0}
|
|
2366
|
+
showsScrollIndicator={true}
|
|
2367
|
+
/>
|
|
2368
|
+
</Stack>
|
|
2369
|
+
</Card>
|
|
2370
|
+
</FoundationProvider>
|
|
2371
|
+
);
|
|
2372
|
+
}`,
|
|
1737
2373
|
"tags": [
|
|
1738
2374
|
"list",
|
|
1739
2375
|
"flatlist",
|
|
@@ -1785,6 +2421,7 @@ var FlatListMeta = {
|
|
|
1785
2421
|
]
|
|
1786
2422
|
};
|
|
1787
2423
|
var GifPickerMeta = {
|
|
2424
|
+
"id": "GifPicker",
|
|
1788
2425
|
"name": "GifPicker",
|
|
1789
2426
|
"description": "A placeholder picker for GIFs.",
|
|
1790
2427
|
"tags": [
|
|
@@ -1793,7 +2430,22 @@ var GifPickerMeta = {
|
|
|
1793
2430
|
"picker",
|
|
1794
2431
|
"gif"
|
|
1795
2432
|
],
|
|
1796
|
-
"props": []
|
|
2433
|
+
"props": [],
|
|
2434
|
+
"example": `import React from 'react';
|
|
2435
|
+
import { FoundationProvider, GifPicker, Card, Stack, Text } from '@flipova/foundation';
|
|
2436
|
+
|
|
2437
|
+
export default function GifPickerExample() {
|
|
2438
|
+
return (
|
|
2439
|
+
<FoundationProvider defaultTheme="dark">
|
|
2440
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2441
|
+
<Stack spacing={3}>
|
|
2442
|
+
<Text variant="heading" size="md">GifPicker Example</Text>
|
|
2443
|
+
<GifPicker />
|
|
2444
|
+
</Stack>
|
|
2445
|
+
</Card>
|
|
2446
|
+
</FoundationProvider>
|
|
2447
|
+
);
|
|
2448
|
+
}`
|
|
1797
2449
|
};
|
|
1798
2450
|
var GradientMeta = {
|
|
1799
2451
|
"id": "Gradient",
|
|
@@ -1857,7 +2509,27 @@ var GradientMeta = {
|
|
|
1857
2509
|
"type": "spacing",
|
|
1858
2510
|
"group": "layout"
|
|
1859
2511
|
}
|
|
1860
|
-
]
|
|
2512
|
+
],
|
|
2513
|
+
"example": `import React from 'react';
|
|
2514
|
+
import { FoundationProvider, Gradient, Card, Stack, Text } from '@flipova/foundation';
|
|
2515
|
+
|
|
2516
|
+
export default function GradientExample() {
|
|
2517
|
+
return (
|
|
2518
|
+
<FoundationProvider defaultTheme="dark">
|
|
2519
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2520
|
+
<Stack spacing={3}>
|
|
2521
|
+
<Text variant="heading" size="md">Gradient Example</Text>
|
|
2522
|
+
<Gradient
|
|
2523
|
+
startColor="#3b82f6"
|
|
2524
|
+
endColor="#8b5cf6"
|
|
2525
|
+
direction="vertical"
|
|
2526
|
+
borderRadius="none"
|
|
2527
|
+
/>
|
|
2528
|
+
</Stack>
|
|
2529
|
+
</Card>
|
|
2530
|
+
</FoundationProvider>
|
|
2531
|
+
);
|
|
2532
|
+
}`
|
|
1861
2533
|
};
|
|
1862
2534
|
var IconMeta = {
|
|
1863
2535
|
"id": "Icon",
|
|
@@ -1910,7 +2582,26 @@ var IconMeta = {
|
|
|
1910
2582
|
"group": "style",
|
|
1911
2583
|
"default": 2
|
|
1912
2584
|
}
|
|
1913
|
-
]
|
|
2585
|
+
],
|
|
2586
|
+
"example": `import React from 'react';
|
|
2587
|
+
import { FoundationProvider, Icon, Card, Stack, Text } from '@flipova/foundation';
|
|
2588
|
+
|
|
2589
|
+
export default function IconExample() {
|
|
2590
|
+
return (
|
|
2591
|
+
<FoundationProvider defaultTheme="dark">
|
|
2592
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2593
|
+
<Stack spacing={3}>
|
|
2594
|
+
<Text variant="heading" size="md">Icon Example</Text>
|
|
2595
|
+
<Icon
|
|
2596
|
+
name="star"
|
|
2597
|
+
size={24}
|
|
2598
|
+
strokeWidth={2}
|
|
2599
|
+
/>
|
|
2600
|
+
</Stack>
|
|
2601
|
+
</Card>
|
|
2602
|
+
</FoundationProvider>
|
|
2603
|
+
);
|
|
2604
|
+
}`
|
|
1914
2605
|
};
|
|
1915
2606
|
var IconButtonMeta = {
|
|
1916
2607
|
"id": "IconButton",
|
|
@@ -2017,9 +2708,30 @@ var IconButtonMeta = {
|
|
|
2017
2708
|
"group": "style",
|
|
2018
2709
|
"themeDefault": "foreground"
|
|
2019
2710
|
}
|
|
2020
|
-
]
|
|
2711
|
+
],
|
|
2712
|
+
"example": `import React from 'react';
|
|
2713
|
+
import { FoundationProvider, IconButton, Inline, Stack, Text } from '@flipova/foundation';
|
|
2714
|
+
|
|
2715
|
+
export default function IconButtonExample() {
|
|
2716
|
+
return (
|
|
2717
|
+
<FoundationProvider defaultTheme="dark">
|
|
2718
|
+
<Stack spacing={4} style={{ padding: 20 }}>
|
|
2719
|
+
<Text variant="heading" size="md">Icon Button Actions</Text>
|
|
2720
|
+
<Inline spacing={3} alignItems="center">
|
|
2721
|
+
<IconButton
|
|
2722
|
+
variant="ghost"
|
|
2723
|
+
size="md"
|
|
2724
|
+
disabled={false}
|
|
2725
|
+
borderRadius="full"
|
|
2726
|
+
onPress={() => console.log('IconButton pressed')} />
|
|
2727
|
+
</Inline>
|
|
2728
|
+
</Stack>
|
|
2729
|
+
</FoundationProvider>
|
|
2730
|
+
);
|
|
2731
|
+
}`
|
|
2021
2732
|
};
|
|
2022
2733
|
var IconPickerMeta = {
|
|
2734
|
+
"id": "IconPicker",
|
|
2023
2735
|
"name": "IconPicker",
|
|
2024
2736
|
"description": "A searchable grid of icons.",
|
|
2025
2737
|
"tags": [
|
|
@@ -2028,7 +2740,22 @@ var IconPickerMeta = {
|
|
|
2028
2740
|
"picker",
|
|
2029
2741
|
"icon"
|
|
2030
2742
|
],
|
|
2031
|
-
"props": []
|
|
2743
|
+
"props": [],
|
|
2744
|
+
"example": `import React from 'react';
|
|
2745
|
+
import { FoundationProvider, IconPicker, Card, Stack, Text } from '@flipova/foundation';
|
|
2746
|
+
|
|
2747
|
+
export default function IconPickerExample() {
|
|
2748
|
+
return (
|
|
2749
|
+
<FoundationProvider defaultTheme="dark">
|
|
2750
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2751
|
+
<Stack spacing={3}>
|
|
2752
|
+
<Text variant="heading" size="md">IconPicker Example</Text>
|
|
2753
|
+
<IconPicker />
|
|
2754
|
+
</Stack>
|
|
2755
|
+
</Card>
|
|
2756
|
+
</FoundationProvider>
|
|
2757
|
+
);
|
|
2758
|
+
}`
|
|
2032
2759
|
};
|
|
2033
2760
|
var ImageMeta = {
|
|
2034
2761
|
"id": "Image",
|
|
@@ -2101,7 +2828,28 @@ var ImageMeta = {
|
|
|
2101
2828
|
"group": "style",
|
|
2102
2829
|
"themeDefault": "muted"
|
|
2103
2830
|
}
|
|
2104
|
-
]
|
|
2831
|
+
],
|
|
2832
|
+
"example": `import React from 'react';
|
|
2833
|
+
import { FoundationProvider, Image, Card, Stack, Text } from '@flipova/foundation';
|
|
2834
|
+
|
|
2835
|
+
export default function ImageExample() {
|
|
2836
|
+
return (
|
|
2837
|
+
<FoundationProvider defaultTheme="dark">
|
|
2838
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2839
|
+
<Stack spacing={3}>
|
|
2840
|
+
<Text variant="heading" size="md">Image Example</Text>
|
|
2841
|
+
<Image
|
|
2842
|
+
source="Source URL"
|
|
2843
|
+
alt="Alt text"
|
|
2844
|
+
resizeMode="cover"
|
|
2845
|
+
height={200}
|
|
2846
|
+
borderRadius="none"
|
|
2847
|
+
/>
|
|
2848
|
+
</Stack>
|
|
2849
|
+
</Card>
|
|
2850
|
+
</FoundationProvider>
|
|
2851
|
+
);
|
|
2852
|
+
}`
|
|
2105
2853
|
};
|
|
2106
2854
|
var LottieAnimationMeta = {
|
|
2107
2855
|
"id": "LottieAnimation",
|
|
@@ -2161,7 +2909,29 @@ var LottieAnimationMeta = {
|
|
|
2161
2909
|
"group": "layout",
|
|
2162
2910
|
"default": 200
|
|
2163
2911
|
}
|
|
2164
|
-
]
|
|
2912
|
+
],
|
|
2913
|
+
"example": `import React from 'react';
|
|
2914
|
+
import { FoundationProvider, LottieAnimation, Card, Stack, Text } from '@flipova/foundation';
|
|
2915
|
+
|
|
2916
|
+
export default function LottieAnimationExample() {
|
|
2917
|
+
return (
|
|
2918
|
+
<FoundationProvider defaultTheme="dark">
|
|
2919
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
2920
|
+
<Stack spacing={3}>
|
|
2921
|
+
<Text variant="heading" size="md">Lottie Example</Text>
|
|
2922
|
+
<LottieAnimation
|
|
2923
|
+
source="Source URL"
|
|
2924
|
+
autoPlay={true}
|
|
2925
|
+
loop={true}
|
|
2926
|
+
speed={1}
|
|
2927
|
+
width={200}
|
|
2928
|
+
height={200}
|
|
2929
|
+
/>
|
|
2930
|
+
</Stack>
|
|
2931
|
+
</Card>
|
|
2932
|
+
</FoundationProvider>
|
|
2933
|
+
);
|
|
2934
|
+
}`
|
|
2165
2935
|
};
|
|
2166
2936
|
var MapViewMeta = {
|
|
2167
2937
|
"id": "MapView",
|
|
@@ -2228,9 +2998,31 @@ var MapViewMeta = {
|
|
|
2228
2998
|
"group": "behavior",
|
|
2229
2999
|
"default": true
|
|
2230
3000
|
}
|
|
2231
|
-
]
|
|
3001
|
+
],
|
|
3002
|
+
"example": `import React from 'react';
|
|
3003
|
+
import { FoundationProvider, MapView, Card, Stack, Text } from '@flipova/foundation';
|
|
3004
|
+
|
|
3005
|
+
export default function MapViewExample() {
|
|
3006
|
+
return (
|
|
3007
|
+
<FoundationProvider defaultTheme="dark">
|
|
3008
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3009
|
+
<Stack spacing={3}>
|
|
3010
|
+
<Text variant="heading" size="md">Map Example</Text>
|
|
3011
|
+
<MapView
|
|
3012
|
+
latitude={48.8566}
|
|
3013
|
+
longitude={2.3522}
|
|
3014
|
+
zoom={12}
|
|
3015
|
+
height={300}
|
|
3016
|
+
borderRadius="lg"
|
|
3017
|
+
/>
|
|
3018
|
+
</Stack>
|
|
3019
|
+
</Card>
|
|
3020
|
+
</FoundationProvider>
|
|
3021
|
+
);
|
|
3022
|
+
}`
|
|
2232
3023
|
};
|
|
2233
3024
|
var NumberInputMeta = {
|
|
3025
|
+
"id": "NumberInput",
|
|
2234
3026
|
"name": "NumberInput",
|
|
2235
3027
|
"description": "A specialized input for numbers with increment/decrement steppers.",
|
|
2236
3028
|
"tags": [
|
|
@@ -2239,9 +3031,25 @@ var NumberInputMeta = {
|
|
|
2239
3031
|
"number",
|
|
2240
3032
|
"stepper"
|
|
2241
3033
|
],
|
|
2242
|
-
"props": []
|
|
3034
|
+
"props": [],
|
|
3035
|
+
"example": `import React from 'react';
|
|
3036
|
+
import { FoundationProvider, NumberInput, Card, Stack, Text } from '@flipova/foundation';
|
|
3037
|
+
|
|
3038
|
+
export default function NumberInputExample() {
|
|
3039
|
+
return (
|
|
3040
|
+
<FoundationProvider defaultTheme="dark">
|
|
3041
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3042
|
+
<Stack spacing={3}>
|
|
3043
|
+
<Text variant="heading" size="md">NumberInput Example</Text>
|
|
3044
|
+
<NumberInput />
|
|
3045
|
+
</Stack>
|
|
3046
|
+
</Card>
|
|
3047
|
+
</FoundationProvider>
|
|
3048
|
+
);
|
|
3049
|
+
}`
|
|
2243
3050
|
};
|
|
2244
3051
|
var OTPInputMeta = {
|
|
3052
|
+
"id": "OTPInput",
|
|
2245
3053
|
"name": "OTPInput",
|
|
2246
3054
|
"description": "A multi-cell One-Time-Password input.",
|
|
2247
3055
|
"tags": [
|
|
@@ -2249,9 +3057,25 @@ var OTPInputMeta = {
|
|
|
2249
3057
|
"input",
|
|
2250
3058
|
"otp"
|
|
2251
3059
|
],
|
|
2252
|
-
"props": []
|
|
3060
|
+
"props": [],
|
|
3061
|
+
"example": `import React from 'react';
|
|
3062
|
+
import { FoundationProvider, OTPInput, Card, Stack, Text } from '@flipova/foundation';
|
|
3063
|
+
|
|
3064
|
+
export default function OTPInputExample() {
|
|
3065
|
+
return (
|
|
3066
|
+
<FoundationProvider defaultTheme="dark">
|
|
3067
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3068
|
+
<Stack spacing={3}>
|
|
3069
|
+
<Text variant="heading" size="md">OTPInput Example</Text>
|
|
3070
|
+
<OTPInput />
|
|
3071
|
+
</Stack>
|
|
3072
|
+
</Card>
|
|
3073
|
+
</FoundationProvider>
|
|
3074
|
+
);
|
|
3075
|
+
}`
|
|
2253
3076
|
};
|
|
2254
3077
|
var PasswordInputMeta = {
|
|
3078
|
+
"id": "PasswordInput",
|
|
2255
3079
|
"name": "PasswordInput",
|
|
2256
3080
|
"description": "A secure text input with visibility toggle.",
|
|
2257
3081
|
"tags": [
|
|
@@ -2260,7 +3084,22 @@ var PasswordInputMeta = {
|
|
|
2260
3084
|
"password",
|
|
2261
3085
|
"secure"
|
|
2262
3086
|
],
|
|
2263
|
-
"props": []
|
|
3087
|
+
"props": [],
|
|
3088
|
+
"example": `import React from 'react';
|
|
3089
|
+
import { FoundationProvider, PasswordInput, Card, Stack, Text } from '@flipova/foundation';
|
|
3090
|
+
|
|
3091
|
+
export default function PasswordInputExample() {
|
|
3092
|
+
return (
|
|
3093
|
+
<FoundationProvider defaultTheme="dark">
|
|
3094
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3095
|
+
<Stack spacing={3}>
|
|
3096
|
+
<Text variant="heading" size="md">PasswordInput Example</Text>
|
|
3097
|
+
<PasswordInput />
|
|
3098
|
+
</Stack>
|
|
3099
|
+
</Card>
|
|
3100
|
+
</FoundationProvider>
|
|
3101
|
+
);
|
|
3102
|
+
}`
|
|
2264
3103
|
};
|
|
2265
3104
|
var PressableMeta = {
|
|
2266
3105
|
"id": "Pressable",
|
|
@@ -2293,7 +3132,25 @@ var PressableMeta = {
|
|
|
2293
3132
|
"group": "style",
|
|
2294
3133
|
"default": 0.7
|
|
2295
3134
|
}
|
|
2296
|
-
]
|
|
3135
|
+
],
|
|
3136
|
+
"example": `import React from 'react';
|
|
3137
|
+
import { FoundationProvider, Pressable, Inline, Stack, Text } from '@flipova/foundation';
|
|
3138
|
+
|
|
3139
|
+
export default function PressableExample() {
|
|
3140
|
+
return (
|
|
3141
|
+
<FoundationProvider defaultTheme="dark">
|
|
3142
|
+
<Stack spacing={4} style={{ padding: 20 }}>
|
|
3143
|
+
<Text variant="heading" size="md">Pressable Actions</Text>
|
|
3144
|
+
<Inline spacing={3} alignItems="center">
|
|
3145
|
+
<Pressable
|
|
3146
|
+
disabled={false}
|
|
3147
|
+
opacity={0.7}
|
|
3148
|
+
onPress={() => console.log('Pressable pressed')} />
|
|
3149
|
+
</Inline>
|
|
3150
|
+
</Stack>
|
|
3151
|
+
</FoundationProvider>
|
|
3152
|
+
);
|
|
3153
|
+
}`
|
|
2297
3154
|
};
|
|
2298
3155
|
var ProgressBarMeta = {
|
|
2299
3156
|
"id": "ProgressBar",
|
|
@@ -2364,7 +3221,27 @@ var ProgressBarMeta = {
|
|
|
2364
3221
|
"group": "behavior",
|
|
2365
3222
|
"default": false
|
|
2366
3223
|
}
|
|
2367
|
-
]
|
|
3224
|
+
],
|
|
3225
|
+
"example": `import React from 'react';
|
|
3226
|
+
import { FoundationProvider, ProgressBar, Card, Stack, Text } from '@flipova/foundation';
|
|
3227
|
+
|
|
3228
|
+
export default function ProgressBarExample() {
|
|
3229
|
+
return (
|
|
3230
|
+
<FoundationProvider defaultTheme="dark">
|
|
3231
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3232
|
+
<Stack spacing={3}>
|
|
3233
|
+
<Text variant="heading" size="md">Progress Bar Example</Text>
|
|
3234
|
+
<ProgressBar
|
|
3235
|
+
progress={0.5}
|
|
3236
|
+
size="md"
|
|
3237
|
+
borderRadius="full"
|
|
3238
|
+
showLabel={false}
|
|
3239
|
+
/>
|
|
3240
|
+
</Stack>
|
|
3241
|
+
</Card>
|
|
3242
|
+
</FoundationProvider>
|
|
3243
|
+
);
|
|
3244
|
+
}`
|
|
2368
3245
|
};
|
|
2369
3246
|
var RadioGroupMeta = {
|
|
2370
3247
|
"id": "RadioGroup",
|
|
@@ -2439,9 +3316,34 @@ var RadioGroupMeta = {
|
|
|
2439
3316
|
"group": "style",
|
|
2440
3317
|
"themeDefault": "primary"
|
|
2441
3318
|
}
|
|
2442
|
-
]
|
|
3319
|
+
],
|
|
3320
|
+
"example": `import React, { useState } from 'react';
|
|
3321
|
+
import { FoundationProvider, RadioGroup, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
3322
|
+
|
|
3323
|
+
export default function RadioGroupExample() {
|
|
3324
|
+
const [value, setValue] = useState('');
|
|
3325
|
+
|
|
3326
|
+
return (
|
|
3327
|
+
<FoundationProvider defaultTheme="dark">
|
|
3328
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
3329
|
+
<Stack spacing={4}>
|
|
3330
|
+
<Text variant="heading" size="md">Radio Group Input</Text>
|
|
3331
|
+
<RadioGroup
|
|
3332
|
+
size="md"
|
|
3333
|
+
label="Label"
|
|
3334
|
+
direction="column"
|
|
3335
|
+
spacing={2}
|
|
3336
|
+
disabled={false}
|
|
3337
|
+
value={value} onChangeText={setValue} />
|
|
3338
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
3339
|
+
</Stack>
|
|
3340
|
+
</Card>
|
|
3341
|
+
</FoundationProvider>
|
|
3342
|
+
);
|
|
3343
|
+
}`
|
|
2443
3344
|
};
|
|
2444
3345
|
var SearchInputMeta = {
|
|
3346
|
+
"id": "SearchInput",
|
|
2445
3347
|
"name": "SearchInput",
|
|
2446
3348
|
"description": "A specialized input for searching with a clear button.",
|
|
2447
3349
|
"tags": [
|
|
@@ -2449,7 +3351,22 @@ var SearchInputMeta = {
|
|
|
2449
3351
|
"input",
|
|
2450
3352
|
"search"
|
|
2451
3353
|
],
|
|
2452
|
-
"props": []
|
|
3354
|
+
"props": [],
|
|
3355
|
+
"example": `import React from 'react';
|
|
3356
|
+
import { FoundationProvider, SearchInput, Card, Stack, Text } from '@flipova/foundation';
|
|
3357
|
+
|
|
3358
|
+
export default function SearchInputExample() {
|
|
3359
|
+
return (
|
|
3360
|
+
<FoundationProvider defaultTheme="dark">
|
|
3361
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3362
|
+
<Stack spacing={3}>
|
|
3363
|
+
<Text variant="heading" size="md">SearchInput Example</Text>
|
|
3364
|
+
<SearchInput />
|
|
3365
|
+
</Stack>
|
|
3366
|
+
</Card>
|
|
3367
|
+
</FoundationProvider>
|
|
3368
|
+
);
|
|
3369
|
+
}`
|
|
2453
3370
|
};
|
|
2454
3371
|
var SelectMeta = {
|
|
2455
3372
|
"id": "Select",
|
|
@@ -2573,7 +3490,32 @@ var SelectMeta = {
|
|
|
2573
3490
|
"group": "style",
|
|
2574
3491
|
"themeDefault": "input"
|
|
2575
3492
|
}
|
|
2576
|
-
]
|
|
3493
|
+
],
|
|
3494
|
+
"example": `import React, { useState } from 'react';
|
|
3495
|
+
import { FoundationProvider, Select, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
3496
|
+
|
|
3497
|
+
export default function SelectExample() {
|
|
3498
|
+
const [value, setValue] = useState('');
|
|
3499
|
+
|
|
3500
|
+
return (
|
|
3501
|
+
<FoundationProvider defaultTheme="dark">
|
|
3502
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
3503
|
+
<Stack spacing={4}>
|
|
3504
|
+
<Text variant="heading" size="md">Select Input</Text>
|
|
3505
|
+
<Select
|
|
3506
|
+
variant="outlined"
|
|
3507
|
+
size="md"
|
|
3508
|
+
label="Label"
|
|
3509
|
+
placeholder="Select..."
|
|
3510
|
+
error="Error message"
|
|
3511
|
+
disabled={false}
|
|
3512
|
+
value={value} onChangeText={setValue} />
|
|
3513
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
3514
|
+
</Stack>
|
|
3515
|
+
</Card>
|
|
3516
|
+
</FoundationProvider>
|
|
3517
|
+
);
|
|
3518
|
+
}`
|
|
2577
3519
|
};
|
|
2578
3520
|
var SeparatorMeta = {
|
|
2579
3521
|
"id": "Separator",
|
|
@@ -2633,7 +3575,27 @@ var SeparatorMeta = {
|
|
|
2633
3575
|
"vertical"
|
|
2634
3576
|
]
|
|
2635
3577
|
}
|
|
2636
|
-
]
|
|
3578
|
+
],
|
|
3579
|
+
"example": `import React from 'react';
|
|
3580
|
+
import { FoundationProvider, Separator, Card, Stack, Text } from '@flipova/foundation';
|
|
3581
|
+
|
|
3582
|
+
export default function SeparatorExample() {
|
|
3583
|
+
return (
|
|
3584
|
+
<FoundationProvider defaultTheme="dark">
|
|
3585
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3586
|
+
<Stack spacing={3}>
|
|
3587
|
+
<Text variant="heading" size="md">Separator Example</Text>
|
|
3588
|
+
<Separator
|
|
3589
|
+
label="Label"
|
|
3590
|
+
thickness={1}
|
|
3591
|
+
spacing={4}
|
|
3592
|
+
orientation="horizontal"
|
|
3593
|
+
/>
|
|
3594
|
+
</Stack>
|
|
3595
|
+
</Card>
|
|
3596
|
+
</FoundationProvider>
|
|
3597
|
+
);
|
|
3598
|
+
}`
|
|
2637
3599
|
};
|
|
2638
3600
|
var SliderMeta = {
|
|
2639
3601
|
"id": "Slider",
|
|
@@ -2730,7 +3692,32 @@ var SliderMeta = {
|
|
|
2730
3692
|
"group": "style",
|
|
2731
3693
|
"themeDefault": "primary"
|
|
2732
3694
|
}
|
|
2733
|
-
]
|
|
3695
|
+
],
|
|
3696
|
+
"example": `import React, { useState } from 'react';
|
|
3697
|
+
import { FoundationProvider, Slider, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
3698
|
+
|
|
3699
|
+
export default function SliderExample() {
|
|
3700
|
+
const [value, setValue] = useState('');
|
|
3701
|
+
|
|
3702
|
+
return (
|
|
3703
|
+
<FoundationProvider defaultTheme="dark">
|
|
3704
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
3705
|
+
<Stack spacing={4}>
|
|
3706
|
+
<Text variant="heading" size="md">Slider Input</Text>
|
|
3707
|
+
<Slider
|
|
3708
|
+
size="md"
|
|
3709
|
+
min={0}
|
|
3710
|
+
max={100}
|
|
3711
|
+
step={1}
|
|
3712
|
+
label="Label"
|
|
3713
|
+
showValue={true}
|
|
3714
|
+
value={value} onChangeText={setValue} />
|
|
3715
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
3716
|
+
</Stack>
|
|
3717
|
+
</Card>
|
|
3718
|
+
</FoundationProvider>
|
|
3719
|
+
);
|
|
3720
|
+
}`
|
|
2734
3721
|
};
|
|
2735
3722
|
var SpinnerMeta = {
|
|
2736
3723
|
"id": "Spinner",
|
|
@@ -2773,7 +3760,24 @@ var SpinnerMeta = {
|
|
|
2773
3760
|
"group": "style",
|
|
2774
3761
|
"themeDefault": "primary"
|
|
2775
3762
|
}
|
|
2776
|
-
]
|
|
3763
|
+
],
|
|
3764
|
+
"example": `import React from 'react';
|
|
3765
|
+
import { FoundationProvider, Spinner, Card, Stack, Text } from '@flipova/foundation';
|
|
3766
|
+
|
|
3767
|
+
export default function SpinnerExample() {
|
|
3768
|
+
return (
|
|
3769
|
+
<FoundationProvider defaultTheme="dark">
|
|
3770
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3771
|
+
<Stack spacing={3}>
|
|
3772
|
+
<Text variant="heading" size="md">Spinner Example</Text>
|
|
3773
|
+
<Spinner
|
|
3774
|
+
size="md"
|
|
3775
|
+
/>
|
|
3776
|
+
</Stack>
|
|
3777
|
+
</Card>
|
|
3778
|
+
</FoundationProvider>
|
|
3779
|
+
);
|
|
3780
|
+
}`
|
|
2777
3781
|
};
|
|
2778
3782
|
var SwitchMeta = {
|
|
2779
3783
|
"id": "Switch",
|
|
@@ -2848,7 +3852,29 @@ var SwitchMeta = {
|
|
|
2848
3852
|
"group": "style",
|
|
2849
3853
|
"themeDefault": "muted"
|
|
2850
3854
|
}
|
|
2851
|
-
]
|
|
3855
|
+
],
|
|
3856
|
+
"example": `import React, { useState } from 'react';
|
|
3857
|
+
import { FoundationProvider, Switch, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
3858
|
+
|
|
3859
|
+
export default function SwitchExample() {
|
|
3860
|
+
const [value, setValue] = useState('');
|
|
3861
|
+
|
|
3862
|
+
return (
|
|
3863
|
+
<FoundationProvider defaultTheme="dark">
|
|
3864
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
3865
|
+
<Stack spacing={4}>
|
|
3866
|
+
<Text variant="heading" size="md">Switch Input</Text>
|
|
3867
|
+
<Switch
|
|
3868
|
+
size="md"
|
|
3869
|
+
disabled={false}
|
|
3870
|
+
label="Label"
|
|
3871
|
+
value={value} onChangeText={setValue} />
|
|
3872
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
3873
|
+
</Stack>
|
|
3874
|
+
</Card>
|
|
3875
|
+
</FoundationProvider>
|
|
3876
|
+
);
|
|
3877
|
+
}`
|
|
2852
3878
|
};
|
|
2853
3879
|
var TabsMeta = {
|
|
2854
3880
|
"id": "Tabs",
|
|
@@ -2903,7 +3929,25 @@ var TabsMeta = {
|
|
|
2903
3929
|
"bottom"
|
|
2904
3930
|
]
|
|
2905
3931
|
}
|
|
2906
|
-
]
|
|
3932
|
+
],
|
|
3933
|
+
"example": `import React from 'react';
|
|
3934
|
+
import { FoundationProvider, Tabs, Card, Stack, Text } from '@flipova/foundation';
|
|
3935
|
+
|
|
3936
|
+
export default function TabsExample() {
|
|
3937
|
+
return (
|
|
3938
|
+
<FoundationProvider defaultTheme="dark">
|
|
3939
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
3940
|
+
<Stack spacing={3}>
|
|
3941
|
+
<Text variant="heading" size="md">Tabs Example</Text>
|
|
3942
|
+
<Tabs
|
|
3943
|
+
borderRadius="none"
|
|
3944
|
+
position="top"
|
|
3945
|
+
/>
|
|
3946
|
+
</Stack>
|
|
3947
|
+
</Card>
|
|
3948
|
+
</FoundationProvider>
|
|
3949
|
+
);
|
|
3950
|
+
}`
|
|
2907
3951
|
};
|
|
2908
3952
|
var TextMeta = {
|
|
2909
3953
|
"id": "Text",
|
|
@@ -2979,7 +4023,27 @@ var TextMeta = {
|
|
|
2979
4023
|
"type": "number",
|
|
2980
4024
|
"group": "behavior"
|
|
2981
4025
|
}
|
|
2982
|
-
]
|
|
4026
|
+
],
|
|
4027
|
+
"example": `import React from 'react';
|
|
4028
|
+
import { FoundationProvider, Text, Card, Stack, Text } from '@flipova/foundation';
|
|
4029
|
+
|
|
4030
|
+
export default function TextExample() {
|
|
4031
|
+
return (
|
|
4032
|
+
<FoundationProvider defaultTheme="dark">
|
|
4033
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
4034
|
+
<Stack spacing={3}>
|
|
4035
|
+
<Text variant="heading" size="md">Text Example</Text>
|
|
4036
|
+
<Text
|
|
4037
|
+
text="Text"
|
|
4038
|
+
fontSize={14}
|
|
4039
|
+
fontWeight="400"
|
|
4040
|
+
textAlign="left"
|
|
4041
|
+
/>
|
|
4042
|
+
</Stack>
|
|
4043
|
+
</Card>
|
|
4044
|
+
</FoundationProvider>
|
|
4045
|
+
);
|
|
4046
|
+
}`
|
|
2983
4047
|
};
|
|
2984
4048
|
var TextAreaMeta = {
|
|
2985
4049
|
"id": "TextArea",
|
|
@@ -3113,7 +4177,32 @@ var TextAreaMeta = {
|
|
|
3113
4177
|
"group": "style",
|
|
3114
4178
|
"themeDefault": "input"
|
|
3115
4179
|
}
|
|
3116
|
-
]
|
|
4180
|
+
],
|
|
4181
|
+
"example": `import React, { useState } from 'react';
|
|
4182
|
+
import { FoundationProvider, TextArea, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
4183
|
+
|
|
4184
|
+
export default function TextAreaExample() {
|
|
4185
|
+
const [value, setValue] = useState('');
|
|
4186
|
+
|
|
4187
|
+
return (
|
|
4188
|
+
<FoundationProvider defaultTheme="dark">
|
|
4189
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
4190
|
+
<Stack spacing={4}>
|
|
4191
|
+
<Text variant="heading" size="md">Text Area Input</Text>
|
|
4192
|
+
<TextArea
|
|
4193
|
+
variant="outlined"
|
|
4194
|
+
size="md"
|
|
4195
|
+
placeholder="Placeholder"
|
|
4196
|
+
label="Label"
|
|
4197
|
+
error="Error message"
|
|
4198
|
+
disabled={false}
|
|
4199
|
+
value={value} onChangeText={setValue} />
|
|
4200
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
4201
|
+
</Stack>
|
|
4202
|
+
</Card>
|
|
4203
|
+
</FoundationProvider>
|
|
4204
|
+
);
|
|
4205
|
+
}`
|
|
3117
4206
|
};
|
|
3118
4207
|
var TextInputMeta = {
|
|
3119
4208
|
"id": "TextInput",
|
|
@@ -3262,11 +4351,36 @@ var TextInputMeta = {
|
|
|
3262
4351
|
"group": "style",
|
|
3263
4352
|
"themeDefault": "border"
|
|
3264
4353
|
}
|
|
3265
|
-
]
|
|
4354
|
+
],
|
|
4355
|
+
"example": `import React, { useState } from 'react';
|
|
4356
|
+
import { FoundationProvider, TextInput, Card, Stack, Text, Button } from '@flipova/foundation';
|
|
4357
|
+
|
|
4358
|
+
export default function TextInputExample() {
|
|
4359
|
+
const [value, setValue] = useState('');
|
|
4360
|
+
|
|
4361
|
+
return (
|
|
4362
|
+
<FoundationProvider defaultTheme="dark">
|
|
4363
|
+
<Card p={5} borderRadius="lg" variant="elevated" style={{ maxWidth: 400 }}>
|
|
4364
|
+
<Stack spacing={4}>
|
|
4365
|
+
<Text variant="heading" size="md">Text Input Input</Text>
|
|
4366
|
+
<TextInput
|
|
4367
|
+
variant="outlined"
|
|
4368
|
+
size="md"
|
|
4369
|
+
placeholder="Placeholder"
|
|
4370
|
+
label="Label"
|
|
4371
|
+
error="Error message"
|
|
4372
|
+
disabled={false}
|
|
4373
|
+
value={value} onChangeText={setValue} />
|
|
4374
|
+
<Button variant="primary" label="Submit" onPress={() => console.log(value)} />
|
|
4375
|
+
</Stack>
|
|
4376
|
+
</Card>
|
|
4377
|
+
</FoundationProvider>
|
|
4378
|
+
);
|
|
4379
|
+
}`
|
|
3266
4380
|
};
|
|
3267
4381
|
var VideoMeta = {
|
|
3268
4382
|
"id": "Video",
|
|
3269
|
-
"label": "
|
|
4383
|
+
"label": "Video",
|
|
3270
4384
|
"description": "Video player with controls, autoplay, and loop.",
|
|
3271
4385
|
"category": "media",
|
|
3272
4386
|
"tags": [
|
|
@@ -3355,7 +4469,29 @@ var VideoMeta = {
|
|
|
3355
4469
|
"group": "style",
|
|
3356
4470
|
"default": "none"
|
|
3357
4471
|
}
|
|
3358
|
-
]
|
|
4472
|
+
],
|
|
4473
|
+
"example": `import React from 'react';
|
|
4474
|
+
import { FoundationProvider, Video, Card, Stack, Text } from '@flipova/foundation';
|
|
4475
|
+
|
|
4476
|
+
export default function VideoExample() {
|
|
4477
|
+
return (
|
|
4478
|
+
<FoundationProvider defaultTheme="dark">
|
|
4479
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
4480
|
+
<Stack spacing={3}>
|
|
4481
|
+
<Text variant="heading" size="md">Video Example</Text>
|
|
4482
|
+
<Video
|
|
4483
|
+
source="Source URL"
|
|
4484
|
+
poster="Poster URL"
|
|
4485
|
+
autoplay={false}
|
|
4486
|
+
loop={false}
|
|
4487
|
+
muted={true}
|
|
4488
|
+
controls={true}
|
|
4489
|
+
/>
|
|
4490
|
+
</Stack>
|
|
4491
|
+
</Card>
|
|
4492
|
+
</FoundationProvider>
|
|
4493
|
+
);
|
|
4494
|
+
}`
|
|
3359
4495
|
};
|
|
3360
4496
|
var WebViewMeta = {
|
|
3361
4497
|
"id": "WebView",
|
|
@@ -3410,9 +4546,30 @@ var WebViewMeta = {
|
|
|
3410
4546
|
"group": "style",
|
|
3411
4547
|
"default": "none"
|
|
3412
4548
|
}
|
|
3413
|
-
]
|
|
4549
|
+
],
|
|
4550
|
+
"example": `import React from 'react';
|
|
4551
|
+
import { FoundationProvider, WebView, Card, Stack, Text } from '@flipova/foundation';
|
|
4552
|
+
|
|
4553
|
+
export default function WebViewExample() {
|
|
4554
|
+
return (
|
|
4555
|
+
<FoundationProvider defaultTheme="dark">
|
|
4556
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
4557
|
+
<Stack spacing={3}>
|
|
4558
|
+
<Text variant="heading" size="md">WebView Example</Text>
|
|
4559
|
+
<WebView
|
|
4560
|
+
url="https://expo.dev"
|
|
4561
|
+
height={400}
|
|
4562
|
+
scrollEnabled={true}
|
|
4563
|
+
borderRadius="none"
|
|
4564
|
+
/>
|
|
4565
|
+
</Stack>
|
|
4566
|
+
</Card>
|
|
4567
|
+
</FoundationProvider>
|
|
4568
|
+
);
|
|
4569
|
+
}`
|
|
3414
4570
|
};
|
|
3415
4571
|
var WheelPickerMeta = {
|
|
4572
|
+
"id": "WheelPicker",
|
|
3416
4573
|
"name": "WheelPicker",
|
|
3417
4574
|
"description": 'A scrollable barrel wheel picker. If items exceed maxItemsInWheel, a "More..." option opens a submenu modal.',
|
|
3418
4575
|
"props": [
|
|
@@ -3445,7 +4602,27 @@ var WheelPickerMeta = {
|
|
|
3445
4602
|
"description": 'Label for the "More..." option',
|
|
3446
4603
|
"default": "Plus..."
|
|
3447
4604
|
}
|
|
3448
|
-
]
|
|
4605
|
+
],
|
|
4606
|
+
"example": `import React from 'react';
|
|
4607
|
+
import { FoundationProvider, WheelPicker, Card, Stack, Text } from '@flipova/foundation';
|
|
4608
|
+
|
|
4609
|
+
export default function WheelPickerExample() {
|
|
4610
|
+
return (
|
|
4611
|
+
<FoundationProvider defaultTheme="dark">
|
|
4612
|
+
<Card p={5} borderRadius="lg" variant="elevated">
|
|
4613
|
+
<Stack spacing={3}>
|
|
4614
|
+
<Text variant="heading" size="md">WheelPicker Example</Text>
|
|
4615
|
+
<WheelPicker
|
|
4616
|
+
value="Sample"
|
|
4617
|
+
itemHeight={40}
|
|
4618
|
+
maxItemsInWheel={5}
|
|
4619
|
+
moreLabel="Plus..."
|
|
4620
|
+
/>
|
|
4621
|
+
</Stack>
|
|
4622
|
+
</Card>
|
|
4623
|
+
</FoundationProvider>
|
|
4624
|
+
);
|
|
4625
|
+
}`
|
|
3449
4626
|
};
|
|
3450
4627
|
var AuthLayoutMeta = {
|
|
3451
4628
|
"id": "AuthLayout",
|
|
@@ -3550,7 +4727,32 @@ var AuthLayoutMeta = {
|
|
|
3550
4727
|
"group": "layout",
|
|
3551
4728
|
"default": 4
|
|
3552
4729
|
}
|
|
3553
|
-
]
|
|
4730
|
+
],
|
|
4731
|
+
"example": `import React from 'react';
|
|
4732
|
+
import { FoundationProvider, AuthLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
4733
|
+
|
|
4734
|
+
export default function AuthLayoutExample() {
|
|
4735
|
+
return (
|
|
4736
|
+
<FoundationProvider defaultTheme="dark">
|
|
4737
|
+
<AuthLayout
|
|
4738
|
+
borderRadius="none"
|
|
4739
|
+
spacing={0}
|
|
4740
|
+
brandingRatio={0.5}
|
|
4741
|
+
padding={5}
|
|
4742
|
+
>
|
|
4743
|
+
<Card p={4} variant="elevated">
|
|
4744
|
+
<Stack spacing={2}>
|
|
4745
|
+
<Text variant="heading" size="md">Authentication Section 1</Text>
|
|
4746
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
4747
|
+
</Stack>
|
|
4748
|
+
</Card>
|
|
4749
|
+
<Card p={4} variant="outlined">
|
|
4750
|
+
<Text variant="heading" size="md">Authentication Section 2</Text>
|
|
4751
|
+
</Card>
|
|
4752
|
+
</AuthLayout>
|
|
4753
|
+
</FoundationProvider>
|
|
4754
|
+
);
|
|
4755
|
+
}`
|
|
3554
4756
|
};
|
|
3555
4757
|
var BentoLayoutMeta = {
|
|
3556
4758
|
"id": "BentoLayout",
|
|
@@ -3641,7 +4843,33 @@ var BentoLayoutMeta = {
|
|
|
3641
4843
|
"group": "content",
|
|
3642
4844
|
"default": []
|
|
3643
4845
|
}
|
|
3644
|
-
]
|
|
4846
|
+
],
|
|
4847
|
+
"example": `import React from 'react';
|
|
4848
|
+
import { FoundationProvider, BentoLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
4849
|
+
|
|
4850
|
+
export default function BentoLayoutExample() {
|
|
4851
|
+
return (
|
|
4852
|
+
<FoundationProvider defaultTheme="dark">
|
|
4853
|
+
<BentoLayout
|
|
4854
|
+
spacing={2}
|
|
4855
|
+
itemBorderRadius="none"
|
|
4856
|
+
scrollable={true}
|
|
4857
|
+
maxWidth={1200}
|
|
4858
|
+
baseHeight={200}
|
|
4859
|
+
>
|
|
4860
|
+
<Card p={4} variant="elevated">
|
|
4861
|
+
<Stack spacing={2}>
|
|
4862
|
+
<Text variant="heading" size="md">Bento Section 1</Text>
|
|
4863
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
4864
|
+
</Stack>
|
|
4865
|
+
</Card>
|
|
4866
|
+
<Card p={4} variant="outlined">
|
|
4867
|
+
<Text variant="heading" size="md">Bento Section 2</Text>
|
|
4868
|
+
</Card>
|
|
4869
|
+
</BentoLayout>
|
|
4870
|
+
</FoundationProvider>
|
|
4871
|
+
);
|
|
4872
|
+
}`
|
|
3645
4873
|
};
|
|
3646
4874
|
var BottomDrawerLayoutMeta = {
|
|
3647
4875
|
"id": "BottomDrawerLayout",
|
|
@@ -3786,7 +5014,31 @@ var BottomDrawerLayoutMeta = {
|
|
|
3786
5014
|
"group": "layout",
|
|
3787
5015
|
"default": 56
|
|
3788
5016
|
}
|
|
3789
|
-
]
|
|
5017
|
+
],
|
|
5018
|
+
"example": `import React from 'react';
|
|
5019
|
+
import { FoundationProvider, BottomDrawerLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
5020
|
+
|
|
5021
|
+
export default function BottomDrawerLayoutExample() {
|
|
5022
|
+
return (
|
|
5023
|
+
<FoundationProvider defaultTheme="dark">
|
|
5024
|
+
<BottomDrawerLayout
|
|
5025
|
+
drawerHeight={400}
|
|
5026
|
+
scrollable={true}
|
|
5027
|
+
drawerBorderRadius="3xl"
|
|
5028
|
+
>
|
|
5029
|
+
<Card p={4} variant="elevated">
|
|
5030
|
+
<Stack spacing={2}>
|
|
5031
|
+
<Text variant="heading" size="md">Bottom Drawer Section 1</Text>
|
|
5032
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
5033
|
+
</Stack>
|
|
5034
|
+
</Card>
|
|
5035
|
+
<Card p={4} variant="outlined">
|
|
5036
|
+
<Text variant="heading" size="md">Bottom Drawer Section 2</Text>
|
|
5037
|
+
</Card>
|
|
5038
|
+
</BottomDrawerLayout>
|
|
5039
|
+
</FoundationProvider>
|
|
5040
|
+
);
|
|
5041
|
+
}`
|
|
3790
5042
|
};
|
|
3791
5043
|
var CenteredLayoutMeta = {
|
|
3792
5044
|
"id": "CenteredLayout",
|
|
@@ -3870,7 +5122,32 @@ var CenteredLayoutMeta = {
|
|
|
3870
5122
|
"group": "layout",
|
|
3871
5123
|
"default": 6
|
|
3872
5124
|
}
|
|
3873
|
-
]
|
|
5125
|
+
],
|
|
5126
|
+
"example": `import React from 'react';
|
|
5127
|
+
import { FoundationProvider, CenteredLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
5128
|
+
|
|
5129
|
+
export default function CenteredLayoutExample() {
|
|
5130
|
+
return (
|
|
5131
|
+
<FoundationProvider defaultTheme="dark">
|
|
5132
|
+
<CenteredLayout
|
|
5133
|
+
maxWidth={500}
|
|
5134
|
+
padding={4}
|
|
5135
|
+
borderRadius="3xl"
|
|
5136
|
+
shadowed={false}
|
|
5137
|
+
>
|
|
5138
|
+
<Card p={4} variant="elevated">
|
|
5139
|
+
<Stack spacing={2}>
|
|
5140
|
+
<Text variant="heading" size="md">Centered Section 1</Text>
|
|
5141
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
5142
|
+
</Stack>
|
|
5143
|
+
</Card>
|
|
5144
|
+
<Card p={4} variant="outlined">
|
|
5145
|
+
<Text variant="heading" size="md">Centered Section 2</Text>
|
|
5146
|
+
</Card>
|
|
5147
|
+
</CenteredLayout>
|
|
5148
|
+
</FoundationProvider>
|
|
5149
|
+
);
|
|
5150
|
+
}`
|
|
3874
5151
|
};
|
|
3875
5152
|
var DashboardLayoutMeta = {
|
|
3876
5153
|
"id": "DashboardLayout",
|
|
@@ -4026,7 +5303,34 @@ var DashboardLayoutMeta = {
|
|
|
4026
5303
|
"group": "behavior",
|
|
4027
5304
|
"default": false
|
|
4028
5305
|
}
|
|
4029
|
-
]
|
|
5306
|
+
],
|
|
5307
|
+
"example": `import React from 'react';
|
|
5308
|
+
import { FoundationProvider, DashboardLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
5309
|
+
|
|
5310
|
+
export default function DashboardLayoutExample() {
|
|
5311
|
+
return (
|
|
5312
|
+
<FoundationProvider defaultTheme="dark">
|
|
5313
|
+
<DashboardLayout
|
|
5314
|
+
sidebarWidth={260}
|
|
5315
|
+
sidebarCollapsedWidth={70}
|
|
5316
|
+
headerHeight={70}
|
|
5317
|
+
footerHeight={60}
|
|
5318
|
+
spacing={0}
|
|
5319
|
+
borderRadius="none"
|
|
5320
|
+
>
|
|
5321
|
+
<Card p={4} variant="elevated">
|
|
5322
|
+
<Stack spacing={2}>
|
|
5323
|
+
<Text variant="heading" size="md">Dashboard Section 1</Text>
|
|
5324
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
5325
|
+
</Stack>
|
|
5326
|
+
</Card>
|
|
5327
|
+
<Card p={4} variant="outlined">
|
|
5328
|
+
<Text variant="heading" size="md">Dashboard Section 2</Text>
|
|
5329
|
+
</Card>
|
|
5330
|
+
</DashboardLayout>
|
|
5331
|
+
</FoundationProvider>
|
|
5332
|
+
);
|
|
5333
|
+
}`
|
|
4030
5334
|
};
|
|
4031
5335
|
var DeckLayoutMeta = {
|
|
4032
5336
|
"id": "DeckLayout",
|
|
@@ -4158,7 +5462,33 @@ var DeckLayoutMeta = {
|
|
|
4158
5462
|
"group": "style",
|
|
4159
5463
|
"themeDefault": "background"
|
|
4160
5464
|
}
|
|
4161
|
-
]
|
|
5465
|
+
],
|
|
5466
|
+
"example": `import React from 'react';
|
|
5467
|
+
import { FoundationProvider, DeckLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
5468
|
+
|
|
5469
|
+
export default function DeckLayoutExample() {
|
|
5470
|
+
return (
|
|
5471
|
+
<FoundationProvider defaultTheme="dark">
|
|
5472
|
+
<DeckLayout
|
|
5473
|
+
peekOffset={12}
|
|
5474
|
+
peekScale={0.05}
|
|
5475
|
+
cycle={false}
|
|
5476
|
+
cardShadow={true}
|
|
5477
|
+
cardBorderRadius={24}
|
|
5478
|
+
>
|
|
5479
|
+
<Card p={4} variant="elevated">
|
|
5480
|
+
<Stack spacing={2}>
|
|
5481
|
+
<Text variant="heading" size="md">Deck Section 1</Text>
|
|
5482
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
5483
|
+
</Stack>
|
|
5484
|
+
</Card>
|
|
5485
|
+
<Card p={4} variant="outlined">
|
|
5486
|
+
<Text variant="heading" size="md">Deck Section 2</Text>
|
|
5487
|
+
</Card>
|
|
5488
|
+
</DeckLayout>
|
|
5489
|
+
</FoundationProvider>
|
|
5490
|
+
);
|
|
5491
|
+
}`
|
|
4162
5492
|
};
|
|
4163
5493
|
var FlexLayoutMeta = {
|
|
4164
5494
|
"id": "FlexLayout",
|
|
@@ -4273,7 +5603,33 @@ var FlexLayoutMeta = {
|
|
|
4273
5603
|
"group": "style",
|
|
4274
5604
|
"default": "none"
|
|
4275
5605
|
}
|
|
4276
|
-
]
|
|
5606
|
+
],
|
|
5607
|
+
"example": `import React from 'react';
|
|
5608
|
+
import { FoundationProvider, FlexLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
5609
|
+
|
|
5610
|
+
export default function FlexLayoutExample() {
|
|
5611
|
+
return (
|
|
5612
|
+
<FoundationProvider defaultTheme="dark">
|
|
5613
|
+
<FlexLayout
|
|
5614
|
+
direction="row"
|
|
5615
|
+
wrap={false}
|
|
5616
|
+
spacing={4}
|
|
5617
|
+
align="stretch"
|
|
5618
|
+
justify="flex-start"
|
|
5619
|
+
>
|
|
5620
|
+
<Card p={4} variant="elevated">
|
|
5621
|
+
<Stack spacing={2}>
|
|
5622
|
+
<Text variant="heading" size="md">Flex Section 1</Text>
|
|
5623
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
5624
|
+
</Stack>
|
|
5625
|
+
</Card>
|
|
5626
|
+
<Card p={4} variant="outlined">
|
|
5627
|
+
<Text variant="heading" size="md">Flex Section 2</Text>
|
|
5628
|
+
</Card>
|
|
5629
|
+
</FlexLayout>
|
|
5630
|
+
</FoundationProvider>
|
|
5631
|
+
);
|
|
5632
|
+
}`
|
|
4277
5633
|
};
|
|
4278
5634
|
var FlipLayoutMeta = {
|
|
4279
5635
|
"id": "FlipLayout",
|
|
@@ -4421,7 +5777,31 @@ var FlipLayoutMeta = {
|
|
|
4421
5777
|
"group": "behavior",
|
|
4422
5778
|
"default": 140
|
|
4423
5779
|
}
|
|
4424
|
-
]
|
|
5780
|
+
],
|
|
5781
|
+
"example": `import React from 'react';
|
|
5782
|
+
import { FoundationProvider, FlipLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
5783
|
+
|
|
5784
|
+
export default function FlipLayoutExample() {
|
|
5785
|
+
return (
|
|
5786
|
+
<FoundationProvider defaultTheme="dark">
|
|
5787
|
+
<FlipLayout
|
|
5788
|
+
borderRadius="none"
|
|
5789
|
+
flipPerspective={1200}
|
|
5790
|
+
swipeThreshold={40}
|
|
5791
|
+
>
|
|
5792
|
+
<Card p={4} variant="elevated">
|
|
5793
|
+
<Stack spacing={2}>
|
|
5794
|
+
<Text variant="heading" size="md">Flip Section 1</Text>
|
|
5795
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
5796
|
+
</Stack>
|
|
5797
|
+
</Card>
|
|
5798
|
+
<Card p={4} variant="outlined">
|
|
5799
|
+
<Text variant="heading" size="md">Flip Section 2</Text>
|
|
5800
|
+
</Card>
|
|
5801
|
+
</FlipLayout>
|
|
5802
|
+
</FoundationProvider>
|
|
5803
|
+
);
|
|
5804
|
+
}`
|
|
4425
5805
|
};
|
|
4426
5806
|
var FooterLayoutMeta = {
|
|
4427
5807
|
"id": "FooterLayout",
|
|
@@ -4543,7 +5923,32 @@ var FooterLayoutMeta = {
|
|
|
4543
5923
|
"group": "behavior",
|
|
4544
5924
|
"default": false
|
|
4545
5925
|
}
|
|
4546
|
-
]
|
|
5926
|
+
],
|
|
5927
|
+
"example": `import React from 'react';
|
|
5928
|
+
import { FoundationProvider, FooterLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
5929
|
+
|
|
5930
|
+
export default function FooterLayoutExample() {
|
|
5931
|
+
return (
|
|
5932
|
+
<FoundationProvider defaultTheme="dark">
|
|
5933
|
+
<FooterLayout
|
|
5934
|
+
footerHeight={60}
|
|
5935
|
+
spacing={0}
|
|
5936
|
+
sticky={false}
|
|
5937
|
+
scrollable={true}
|
|
5938
|
+
>
|
|
5939
|
+
<Card p={4} variant="elevated">
|
|
5940
|
+
<Stack spacing={2}>
|
|
5941
|
+
<Text variant="heading" size="md">Footer Section 1</Text>
|
|
5942
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
5943
|
+
</Stack>
|
|
5944
|
+
</Card>
|
|
5945
|
+
<Card p={4} variant="outlined">
|
|
5946
|
+
<Text variant="heading" size="md">Footer Section 2</Text>
|
|
5947
|
+
</Card>
|
|
5948
|
+
</FooterLayout>
|
|
5949
|
+
</FoundationProvider>
|
|
5950
|
+
);
|
|
5951
|
+
}`
|
|
4547
5952
|
};
|
|
4548
5953
|
var GridLayoutMeta = {
|
|
4549
5954
|
"id": "GridLayout",
|
|
@@ -4647,7 +6052,31 @@ var GridLayoutMeta = {
|
|
|
4647
6052
|
"group": "behavior",
|
|
4648
6053
|
"default": false
|
|
4649
6054
|
}
|
|
4650
|
-
]
|
|
6055
|
+
],
|
|
6056
|
+
"example": `import React from 'react';
|
|
6057
|
+
import { FoundationProvider, GridLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
6058
|
+
|
|
6059
|
+
export default function GridLayoutExample() {
|
|
6060
|
+
return (
|
|
6061
|
+
<FoundationProvider defaultTheme="dark">
|
|
6062
|
+
<GridLayout
|
|
6063
|
+
spacing={0}
|
|
6064
|
+
scrollable={false}
|
|
6065
|
+
padding={0}
|
|
6066
|
+
>
|
|
6067
|
+
<Card p={4} variant="elevated">
|
|
6068
|
+
<Stack spacing={2}>
|
|
6069
|
+
<Text variant="heading" size="md">Grid Section 1</Text>
|
|
6070
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
6071
|
+
</Stack>
|
|
6072
|
+
</Card>
|
|
6073
|
+
<Card p={4} variant="outlined">
|
|
6074
|
+
<Text variant="heading" size="md">Grid Section 2</Text>
|
|
6075
|
+
</Card>
|
|
6076
|
+
</GridLayout>
|
|
6077
|
+
</FoundationProvider>
|
|
6078
|
+
);
|
|
6079
|
+
}`
|
|
4651
6080
|
};
|
|
4652
6081
|
var HeaderContentLayoutMeta = {
|
|
4653
6082
|
"id": "HeaderContentLayout",
|
|
@@ -4777,7 +6206,32 @@ var HeaderContentLayoutMeta = {
|
|
|
4777
6206
|
"group": "behavior",
|
|
4778
6207
|
"default": 16
|
|
4779
6208
|
}
|
|
4780
|
-
]
|
|
6209
|
+
],
|
|
6210
|
+
"example": `import React from 'react';
|
|
6211
|
+
import { FoundationProvider, HeaderContentLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
6212
|
+
|
|
6213
|
+
export default function HeaderContentLayoutExample() {
|
|
6214
|
+
return (
|
|
6215
|
+
<FoundationProvider defaultTheme="dark">
|
|
6216
|
+
<HeaderContentLayout
|
|
6217
|
+
headerHeight={150}
|
|
6218
|
+
headerCollapsedHeight={60}
|
|
6219
|
+
spacing={0}
|
|
6220
|
+
headerBorderRadius="none"
|
|
6221
|
+
>
|
|
6222
|
+
<Card p={4} variant="elevated">
|
|
6223
|
+
<Stack spacing={2}>
|
|
6224
|
+
<Text variant="heading" size="md">Collapsible Header Section 1</Text>
|
|
6225
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
6226
|
+
</Stack>
|
|
6227
|
+
</Card>
|
|
6228
|
+
<Card p={4} variant="outlined">
|
|
6229
|
+
<Text variant="heading" size="md">Collapsible Header Section 2</Text>
|
|
6230
|
+
</Card>
|
|
6231
|
+
</HeaderContentLayout>
|
|
6232
|
+
</FoundationProvider>
|
|
6233
|
+
);
|
|
6234
|
+
}`
|
|
4781
6235
|
};
|
|
4782
6236
|
var LeftDrawerLayoutMeta = {
|
|
4783
6237
|
"id": "LeftDrawerLayout",
|
|
@@ -4922,7 +6376,31 @@ var LeftDrawerLayoutMeta = {
|
|
|
4922
6376
|
"group": "layout",
|
|
4923
6377
|
"default": 40
|
|
4924
6378
|
}
|
|
4925
|
-
]
|
|
6379
|
+
],
|
|
6380
|
+
"example": `import React from 'react';
|
|
6381
|
+
import { FoundationProvider, LeftDrawerLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
6382
|
+
|
|
6383
|
+
export default function LeftDrawerLayoutExample() {
|
|
6384
|
+
return (
|
|
6385
|
+
<FoundationProvider defaultTheme="dark">
|
|
6386
|
+
<LeftDrawerLayout
|
|
6387
|
+
drawerWidth={280}
|
|
6388
|
+
scrollable={true}
|
|
6389
|
+
drawerBorderRadius="none"
|
|
6390
|
+
>
|
|
6391
|
+
<Card p={4} variant="elevated">
|
|
6392
|
+
<Stack spacing={2}>
|
|
6393
|
+
<Text variant="heading" size="md">Left Drawer Section 1</Text>
|
|
6394
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
6395
|
+
</Stack>
|
|
6396
|
+
</Card>
|
|
6397
|
+
<Card p={4} variant="outlined">
|
|
6398
|
+
<Text variant="heading" size="md">Left Drawer Section 2</Text>
|
|
6399
|
+
</Card>
|
|
6400
|
+
</LeftDrawerLayout>
|
|
6401
|
+
</FoundationProvider>
|
|
6402
|
+
);
|
|
6403
|
+
}`
|
|
4926
6404
|
};
|
|
4927
6405
|
var MasonryLayoutMeta = {
|
|
4928
6406
|
"id": "MasonryLayout",
|
|
@@ -5011,7 +6489,33 @@ var MasonryLayoutMeta = {
|
|
|
5011
6489
|
"type": "padding",
|
|
5012
6490
|
"group": "layout"
|
|
5013
6491
|
}
|
|
5014
|
-
]
|
|
6492
|
+
],
|
|
6493
|
+
"example": `import React from 'react';
|
|
6494
|
+
import { FoundationProvider, MasonryLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
6495
|
+
|
|
6496
|
+
export default function MasonryLayoutExample() {
|
|
6497
|
+
return (
|
|
6498
|
+
<FoundationProvider defaultTheme="dark">
|
|
6499
|
+
<MasonryLayout
|
|
6500
|
+
columns={2}
|
|
6501
|
+
spacing={1}
|
|
6502
|
+
scrollable={true}
|
|
6503
|
+
background="transparent"
|
|
6504
|
+
borderRadius="none"
|
|
6505
|
+
>
|
|
6506
|
+
<Card p={4} variant="elevated">
|
|
6507
|
+
<Stack spacing={2}>
|
|
6508
|
+
<Text variant="heading" size="md">Masonry Section 1</Text>
|
|
6509
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
6510
|
+
</Stack>
|
|
6511
|
+
</Card>
|
|
6512
|
+
<Card p={4} variant="outlined">
|
|
6513
|
+
<Text variant="heading" size="md">Masonry Section 2</Text>
|
|
6514
|
+
</Card>
|
|
6515
|
+
</MasonryLayout>
|
|
6516
|
+
</FoundationProvider>
|
|
6517
|
+
);
|
|
6518
|
+
}`
|
|
5015
6519
|
};
|
|
5016
6520
|
var ParallaxLayoutMeta = {
|
|
5017
6521
|
"id": "ParallaxLayout",
|
|
@@ -5131,7 +6635,32 @@ var ParallaxLayoutMeta = {
|
|
|
5131
6635
|
"group": "behavior",
|
|
5132
6636
|
"default": 16
|
|
5133
6637
|
}
|
|
5134
|
-
]
|
|
6638
|
+
],
|
|
6639
|
+
"example": `import React from 'react';
|
|
6640
|
+
import { FoundationProvider, ParallaxLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
6641
|
+
|
|
6642
|
+
export default function ParallaxLayoutExample() {
|
|
6643
|
+
return (
|
|
6644
|
+
<FoundationProvider defaultTheme="dark">
|
|
6645
|
+
<ParallaxLayout
|
|
6646
|
+
rowCount={3}
|
|
6647
|
+
itemWidth={200}
|
|
6648
|
+
spacing={4}
|
|
6649
|
+
itemSpacing={12}
|
|
6650
|
+
>
|
|
6651
|
+
<Card p={4} variant="elevated">
|
|
6652
|
+
<Stack spacing={2}>
|
|
6653
|
+
<Text variant="heading" size="md">Parallax Section 1</Text>
|
|
6654
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
6655
|
+
</Stack>
|
|
6656
|
+
</Card>
|
|
6657
|
+
<Card p={4} variant="outlined">
|
|
6658
|
+
<Text variant="heading" size="md">Parallax Section 2</Text>
|
|
6659
|
+
</Card>
|
|
6660
|
+
</ParallaxLayout>
|
|
6661
|
+
</FoundationProvider>
|
|
6662
|
+
);
|
|
6663
|
+
}`
|
|
5135
6664
|
};
|
|
5136
6665
|
var ResponsiveLayoutMeta = {
|
|
5137
6666
|
"id": "ResponsiveLayout",
|
|
@@ -5312,7 +6841,34 @@ var ResponsiveLayoutMeta = {
|
|
|
5312
6841
|
"group": "layout",
|
|
5313
6842
|
"default": 320
|
|
5314
6843
|
}
|
|
5315
|
-
]
|
|
6844
|
+
],
|
|
6845
|
+
"example": `import React from 'react';
|
|
6846
|
+
import { FoundationProvider, ResponsiveLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
6847
|
+
|
|
6848
|
+
export default function ResponsiveLayoutExample() {
|
|
6849
|
+
return (
|
|
6850
|
+
<FoundationProvider defaultTheme="dark">
|
|
6851
|
+
<ResponsiveLayout
|
|
6852
|
+
spacing={0}
|
|
6853
|
+
headerHeight={60}
|
|
6854
|
+
sidebarWidth={260}
|
|
6855
|
+
footerHeight={60}
|
|
6856
|
+
adaptiveMode="basic"
|
|
6857
|
+
hideHeader={false}
|
|
6858
|
+
>
|
|
6859
|
+
<Card p={4} variant="elevated">
|
|
6860
|
+
<Stack spacing={2}>
|
|
6861
|
+
<Text variant="heading" size="md">Responsive Section 1</Text>
|
|
6862
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
6863
|
+
</Stack>
|
|
6864
|
+
</Card>
|
|
6865
|
+
<Card p={4} variant="outlined">
|
|
6866
|
+
<Text variant="heading" size="md">Responsive Section 2</Text>
|
|
6867
|
+
</Card>
|
|
6868
|
+
</ResponsiveLayout>
|
|
6869
|
+
</FoundationProvider>
|
|
6870
|
+
);
|
|
6871
|
+
}`
|
|
5316
6872
|
};
|
|
5317
6873
|
var RootLayoutMeta = {
|
|
5318
6874
|
"id": "RootLayout",
|
|
@@ -5407,7 +6963,33 @@ var RootLayoutMeta = {
|
|
|
5407
6963
|
"group": "layout",
|
|
5408
6964
|
"default": 0
|
|
5409
6965
|
}
|
|
5410
|
-
]
|
|
6966
|
+
],
|
|
6967
|
+
"example": `import React from 'react';
|
|
6968
|
+
import { FoundationProvider, RootLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
6969
|
+
|
|
6970
|
+
export default function RootLayoutExample() {
|
|
6971
|
+
return (
|
|
6972
|
+
<FoundationProvider defaultTheme="dark">
|
|
6973
|
+
<RootLayout
|
|
6974
|
+
scrollable={true}
|
|
6975
|
+
padding={0}
|
|
6976
|
+
justifyContent="flex-start"
|
|
6977
|
+
alignItems="stretch"
|
|
6978
|
+
flexDirection="column"
|
|
6979
|
+
>
|
|
6980
|
+
<Card p={4} variant="elevated">
|
|
6981
|
+
<Stack spacing={2}>
|
|
6982
|
+
<Text variant="heading" size="md">Root Section 1</Text>
|
|
6983
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
6984
|
+
</Stack>
|
|
6985
|
+
</Card>
|
|
6986
|
+
<Card p={4} variant="outlined">
|
|
6987
|
+
<Text variant="heading" size="md">Root Section 2</Text>
|
|
6988
|
+
</Card>
|
|
6989
|
+
</RootLayout>
|
|
6990
|
+
</FoundationProvider>
|
|
6991
|
+
);
|
|
6992
|
+
}`
|
|
5411
6993
|
};
|
|
5412
6994
|
var ScrollLayoutMeta = {
|
|
5413
6995
|
"id": "ScrollLayout",
|
|
@@ -5578,7 +7160,34 @@ var ScrollLayoutMeta = {
|
|
|
5578
7160
|
"group": "layout",
|
|
5579
7161
|
"default": 50
|
|
5580
7162
|
}
|
|
5581
|
-
]
|
|
7163
|
+
],
|
|
7164
|
+
"example": `import React from 'react';
|
|
7165
|
+
import { FoundationProvider, ScrollLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
7166
|
+
|
|
7167
|
+
export default function ScrollLayoutExample() {
|
|
7168
|
+
return (
|
|
7169
|
+
<FoundationProvider defaultTheme="dark">
|
|
7170
|
+
<ScrollLayout
|
|
7171
|
+
spacing={4}
|
|
7172
|
+
useSafeAreaInsets={true}
|
|
7173
|
+
headerHeight={80}
|
|
7174
|
+
footerHeight={60}
|
|
7175
|
+
scrollDirection="vertical"
|
|
7176
|
+
showScrollIndicator={false}
|
|
7177
|
+
>
|
|
7178
|
+
<Card p={4} variant="elevated">
|
|
7179
|
+
<Stack spacing={2}>
|
|
7180
|
+
<Text variant="heading" size="md">Scroll Section 1</Text>
|
|
7181
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
7182
|
+
</Stack>
|
|
7183
|
+
</Card>
|
|
7184
|
+
<Card p={4} variant="outlined">
|
|
7185
|
+
<Text variant="heading" size="md">Scroll Section 2</Text>
|
|
7186
|
+
</Card>
|
|
7187
|
+
</ScrollLayout>
|
|
7188
|
+
</FoundationProvider>
|
|
7189
|
+
);
|
|
7190
|
+
}`
|
|
5582
7191
|
};
|
|
5583
7192
|
var SidebarLayoutMeta = {
|
|
5584
7193
|
"id": "SidebarLayout",
|
|
@@ -5711,7 +7320,33 @@ var SidebarLayoutMeta = {
|
|
|
5711
7320
|
"group": "layout",
|
|
5712
7321
|
"default": 600
|
|
5713
7322
|
}
|
|
5714
|
-
]
|
|
7323
|
+
],
|
|
7324
|
+
"example": `import React from 'react';
|
|
7325
|
+
import { FoundationProvider, SidebarLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
7326
|
+
|
|
7327
|
+
export default function SidebarLayoutExample() {
|
|
7328
|
+
return (
|
|
7329
|
+
<FoundationProvider defaultTheme="dark">
|
|
7330
|
+
<SidebarLayout
|
|
7331
|
+
sidebarWidth={280}
|
|
7332
|
+
position="left"
|
|
7333
|
+
collapsible={true}
|
|
7334
|
+
spacing={4}
|
|
7335
|
+
scrollable={true}
|
|
7336
|
+
>
|
|
7337
|
+
<Card p={4} variant="elevated">
|
|
7338
|
+
<Stack spacing={2}>
|
|
7339
|
+
<Text variant="heading" size="md">Sidebar Section 1</Text>
|
|
7340
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
7341
|
+
</Stack>
|
|
7342
|
+
</Card>
|
|
7343
|
+
<Card p={4} variant="outlined">
|
|
7344
|
+
<Text variant="heading" size="md">Sidebar Section 2</Text>
|
|
7345
|
+
</Card>
|
|
7346
|
+
</SidebarLayout>
|
|
7347
|
+
</FoundationProvider>
|
|
7348
|
+
);
|
|
7349
|
+
}`
|
|
5715
7350
|
};
|
|
5716
7351
|
var SketchLayoutMeta = {
|
|
5717
7352
|
"id": "SketchLayout",
|
|
@@ -5735,9 +7370,30 @@ var SketchLayoutMeta = {
|
|
|
5735
7370
|
"group": "style",
|
|
5736
7371
|
"themeDefault": "background"
|
|
5737
7372
|
}
|
|
5738
|
-
]
|
|
7373
|
+
],
|
|
7374
|
+
"example": `import React from 'react';
|
|
7375
|
+
import { FoundationProvider, SketchLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
7376
|
+
|
|
7377
|
+
export default function SketchLayoutExample() {
|
|
7378
|
+
return (
|
|
7379
|
+
<FoundationProvider defaultTheme="dark">
|
|
7380
|
+
<SketchLayout >
|
|
7381
|
+
<Card p={4} variant="elevated">
|
|
7382
|
+
<Stack spacing={2}>
|
|
7383
|
+
<Text variant="heading" size="md">Sketch (placeholder) Section 1</Text>
|
|
7384
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
7385
|
+
</Stack>
|
|
7386
|
+
</Card>
|
|
7387
|
+
<Card p={4} variant="outlined">
|
|
7388
|
+
<Text variant="heading" size="md">Sketch (placeholder) Section 2</Text>
|
|
7389
|
+
</Card>
|
|
7390
|
+
</SketchLayout>
|
|
7391
|
+
</FoundationProvider>
|
|
7392
|
+
);
|
|
7393
|
+
}`
|
|
5739
7394
|
};
|
|
5740
7395
|
var SortableGridLayoutMeta = {
|
|
7396
|
+
"id": "SortableGridLayout",
|
|
5741
7397
|
"name": "SortableGridLayout",
|
|
5742
7398
|
"description": "A drag-and-drop reorderable grid layout for rendering interactive lists or grids.",
|
|
5743
7399
|
"tags": [
|
|
@@ -5763,7 +7419,30 @@ var SortableGridLayoutMeta = {
|
|
|
5763
7419
|
"description": "Spacing between items.",
|
|
5764
7420
|
"default": 8
|
|
5765
7421
|
}
|
|
5766
|
-
}
|
|
7422
|
+
},
|
|
7423
|
+
"example": `import React from 'react';
|
|
7424
|
+
import { FoundationProvider, SortableGridLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
7425
|
+
|
|
7426
|
+
export default function SortableGridLayoutExample() {
|
|
7427
|
+
return (
|
|
7428
|
+
<FoundationProvider defaultTheme="dark">
|
|
7429
|
+
<SortableGridLayout
|
|
7430
|
+
columns={3}
|
|
7431
|
+
spacing={8}
|
|
7432
|
+
>
|
|
7433
|
+
<Card p={4} variant="elevated">
|
|
7434
|
+
<Stack spacing={2}>
|
|
7435
|
+
<Text variant="heading" size="md">SortableGridLayout Section 1</Text>
|
|
7436
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
7437
|
+
</Stack>
|
|
7438
|
+
</Card>
|
|
7439
|
+
<Card p={4} variant="outlined">
|
|
7440
|
+
<Text variant="heading" size="md">SortableGridLayout Section 2</Text>
|
|
7441
|
+
</Card>
|
|
7442
|
+
</SortableGridLayout>
|
|
7443
|
+
</FoundationProvider>
|
|
7444
|
+
);
|
|
7445
|
+
}`
|
|
5767
7446
|
};
|
|
5768
7447
|
var SplitLayoutMeta = {
|
|
5769
7448
|
"id": "SplitLayout",
|
|
@@ -5879,7 +7558,32 @@ var SplitLayoutMeta = {
|
|
|
5879
7558
|
"group": "style",
|
|
5880
7559
|
"default": "none"
|
|
5881
7560
|
}
|
|
5882
|
-
]
|
|
7561
|
+
],
|
|
7562
|
+
"example": `import React from 'react';
|
|
7563
|
+
import { FoundationProvider, SplitLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
7564
|
+
|
|
7565
|
+
export default function SplitLayoutExample() {
|
|
7566
|
+
return (
|
|
7567
|
+
<FoundationProvider defaultTheme="dark">
|
|
7568
|
+
<SplitLayout
|
|
7569
|
+
spacing={0}
|
|
7570
|
+
ratio={0.5}
|
|
7571
|
+
orientation="horizontal"
|
|
7572
|
+
hideLeftOnMobile={false}
|
|
7573
|
+
>
|
|
7574
|
+
<Card p={4} variant="elevated">
|
|
7575
|
+
<Stack spacing={2}>
|
|
7576
|
+
<Text variant="heading" size="md">Split Section 1</Text>
|
|
7577
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
7578
|
+
</Stack>
|
|
7579
|
+
</Card>
|
|
7580
|
+
<Card p={4} variant="outlined">
|
|
7581
|
+
<Text variant="heading" size="md">Split Section 2</Text>
|
|
7582
|
+
</Card>
|
|
7583
|
+
</SplitLayout>
|
|
7584
|
+
</FoundationProvider>
|
|
7585
|
+
);
|
|
7586
|
+
}`
|
|
5883
7587
|
};
|
|
5884
7588
|
var Swipe2ScreenLayoutMeta = {
|
|
5885
7589
|
"id": "Swipe2ScreenLayout",
|
|
@@ -5955,7 +7659,33 @@ var Swipe2ScreenLayoutMeta = {
|
|
|
5955
7659
|
"group": "content",
|
|
5956
7660
|
"default": []
|
|
5957
7661
|
}
|
|
5958
|
-
]
|
|
7662
|
+
],
|
|
7663
|
+
"example": `import React from 'react';
|
|
7664
|
+
import { FoundationProvider, Swipe2ScreenLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
7665
|
+
|
|
7666
|
+
export default function Swipe2ScreenLayoutExample() {
|
|
7667
|
+
return (
|
|
7668
|
+
<FoundationProvider defaultTheme="dark">
|
|
7669
|
+
<Swipe2ScreenLayout
|
|
7670
|
+
containerBackground="#000"
|
|
7671
|
+
screenBackground="#fff"
|
|
7672
|
+
swipeThreshold={100}
|
|
7673
|
+
projectedScale={0.8}
|
|
7674
|
+
animationDuration={300}
|
|
7675
|
+
>
|
|
7676
|
+
<Card p={4} variant="elevated">
|
|
7677
|
+
<Stack spacing={2}>
|
|
7678
|
+
<Text variant="heading" size="md">Swipe to Screen Section 1</Text>
|
|
7679
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
7680
|
+
</Stack>
|
|
7681
|
+
</Card>
|
|
7682
|
+
<Card p={4} variant="outlined">
|
|
7683
|
+
<Text variant="heading" size="md">Swipe to Screen Section 2</Text>
|
|
7684
|
+
</Card>
|
|
7685
|
+
</Swipe2ScreenLayout>
|
|
7686
|
+
</FoundationProvider>
|
|
7687
|
+
);
|
|
7688
|
+
}`
|
|
5959
7689
|
};
|
|
5960
7690
|
var SwiperLayoutMeta = {
|
|
5961
7691
|
"id": "SwiperLayout",
|
|
@@ -6096,7 +7826,31 @@ var SwiperLayoutMeta = {
|
|
|
6096
7826
|
"group": "style",
|
|
6097
7827
|
"default": "#fff"
|
|
6098
7828
|
}
|
|
6099
|
-
]
|
|
7829
|
+
],
|
|
7830
|
+
"example": `import React from 'react';
|
|
7831
|
+
import { FoundationProvider, SwiperLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
7832
|
+
|
|
7833
|
+
export default function SwiperLayoutExample() {
|
|
7834
|
+
return (
|
|
7835
|
+
<FoundationProvider defaultTheme="dark">
|
|
7836
|
+
<SwiperLayout
|
|
7837
|
+
enableSwipeUp={false}
|
|
7838
|
+
enableSwipeDown={false}
|
|
7839
|
+
borderRadius="none"
|
|
7840
|
+
>
|
|
7841
|
+
<Card p={4} variant="elevated">
|
|
7842
|
+
<Stack spacing={2}>
|
|
7843
|
+
<Text variant="heading" size="md">Swiper Section 1</Text>
|
|
7844
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
7845
|
+
</Stack>
|
|
7846
|
+
</Card>
|
|
7847
|
+
<Card p={4} variant="outlined">
|
|
7848
|
+
<Text variant="heading" size="md">Swiper Section 2</Text>
|
|
7849
|
+
</Card>
|
|
7850
|
+
</SwiperLayout>
|
|
7851
|
+
</FoundationProvider>
|
|
7852
|
+
);
|
|
7853
|
+
}`
|
|
6100
7854
|
};
|
|
6101
7855
|
var SystemLayoutMeta = {
|
|
6102
7856
|
"id": "SystemLayout",
|
|
@@ -6174,7 +7928,31 @@ var SystemLayoutMeta = {
|
|
|
6174
7928
|
"group": "style",
|
|
6175
7929
|
"themeDefault": "card"
|
|
6176
7930
|
}
|
|
6177
|
-
]
|
|
7931
|
+
],
|
|
7932
|
+
"example": `import React from 'react';
|
|
7933
|
+
import { FoundationProvider, SystemLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
7934
|
+
|
|
7935
|
+
export default function SystemLayoutExample() {
|
|
7936
|
+
return (
|
|
7937
|
+
<FoundationProvider defaultTheme="dark">
|
|
7938
|
+
<SystemLayout
|
|
7939
|
+
rootBackgroundColor="#0c3ddbff"
|
|
7940
|
+
statusBarContentStyle="auto"
|
|
7941
|
+
navigationBarContentStyle="light"
|
|
7942
|
+
>
|
|
7943
|
+
<Card p={4} variant="elevated">
|
|
7944
|
+
<Stack spacing={2}>
|
|
7945
|
+
<Text variant="heading" size="md">System UI Section 1</Text>
|
|
7946
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
7947
|
+
</Stack>
|
|
7948
|
+
</Card>
|
|
7949
|
+
<Card p={4} variant="outlined">
|
|
7950
|
+
<Text variant="heading" size="md">System UI Section 2</Text>
|
|
7951
|
+
</Card>
|
|
7952
|
+
</SystemLayout>
|
|
7953
|
+
</FoundationProvider>
|
|
7954
|
+
);
|
|
7955
|
+
}`
|
|
6178
7956
|
};
|
|
6179
7957
|
var TopDrawerLayoutMeta = {
|
|
6180
7958
|
"id": "TopDrawerLayout",
|
|
@@ -6333,7 +8111,31 @@ var TopDrawerLayoutMeta = {
|
|
|
6333
8111
|
"group": "style",
|
|
6334
8112
|
"themeDefault": "mutedForeground"
|
|
6335
8113
|
}
|
|
6336
|
-
]
|
|
8114
|
+
],
|
|
8115
|
+
"example": `import React from 'react';
|
|
8116
|
+
import { FoundationProvider, TopDrawerLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
8117
|
+
|
|
8118
|
+
export default function TopDrawerLayoutExample() {
|
|
8119
|
+
return (
|
|
8120
|
+
<FoundationProvider defaultTheme="dark">
|
|
8121
|
+
<TopDrawerLayout
|
|
8122
|
+
drawerHeight={600}
|
|
8123
|
+
scrollable={true}
|
|
8124
|
+
drawerBorderRadius="3xl"
|
|
8125
|
+
>
|
|
8126
|
+
<Card p={4} variant="elevated">
|
|
8127
|
+
<Stack spacing={2}>
|
|
8128
|
+
<Text variant="heading" size="md">Top Drawer Section 1</Text>
|
|
8129
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
8130
|
+
</Stack>
|
|
8131
|
+
</Card>
|
|
8132
|
+
<Card p={4} variant="outlined">
|
|
8133
|
+
<Text variant="heading" size="md">Top Drawer Section 2</Text>
|
|
8134
|
+
</Card>
|
|
8135
|
+
</TopDrawerLayout>
|
|
8136
|
+
</FoundationProvider>
|
|
8137
|
+
);
|
|
8138
|
+
}`
|
|
6337
8139
|
};
|
|
6338
8140
|
var TutoLayoutMeta = {
|
|
6339
8141
|
"id": "TutoLayout",
|
|
@@ -6441,7 +8243,32 @@ var TutoLayoutMeta = {
|
|
|
6441
8243
|
"group": "content",
|
|
6442
8244
|
"default": []
|
|
6443
8245
|
}
|
|
6444
|
-
]
|
|
8246
|
+
],
|
|
8247
|
+
"example": `import React from 'react';
|
|
8248
|
+
import { FoundationProvider, TutoLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
8249
|
+
|
|
8250
|
+
export default function TutoLayoutExample() {
|
|
8251
|
+
return (
|
|
8252
|
+
<FoundationProvider defaultTheme="dark">
|
|
8253
|
+
<TutoLayout
|
|
8254
|
+
overlayOpacity={0.78}
|
|
8255
|
+
showSkip={true}
|
|
8256
|
+
nextLabel="Next"
|
|
8257
|
+
finishLabel="Finish"
|
|
8258
|
+
>
|
|
8259
|
+
<Card p={4} variant="elevated">
|
|
8260
|
+
<Stack spacing={2}>
|
|
8261
|
+
<Text variant="heading" size="md">TutoLayout Section 1</Text>
|
|
8262
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
8263
|
+
</Stack>
|
|
8264
|
+
</Card>
|
|
8265
|
+
<Card p={4} variant="outlined">
|
|
8266
|
+
<Text variant="heading" size="md">TutoLayout Section 2</Text>
|
|
8267
|
+
</Card>
|
|
8268
|
+
</TutoLayout>
|
|
8269
|
+
</FoundationProvider>
|
|
8270
|
+
);
|
|
8271
|
+
}`
|
|
6445
8272
|
};
|
|
6446
8273
|
var VoidLayoutMeta = {
|
|
6447
8274
|
"id": "VoidLayout",
|
|
@@ -6520,11 +8347,48 @@ var VoidLayoutMeta = {
|
|
|
6520
8347
|
"group": "style",
|
|
6521
8348
|
"default": false
|
|
6522
8349
|
}
|
|
6523
|
-
]
|
|
8350
|
+
],
|
|
8351
|
+
"example": `import React from 'react';
|
|
8352
|
+
import { FoundationProvider, VoidLayout, Card, Text, Stack } from '@flipova/foundation';
|
|
8353
|
+
|
|
8354
|
+
export default function VoidLayoutExample() {
|
|
8355
|
+
return (
|
|
8356
|
+
<FoundationProvider defaultTheme="dark">
|
|
8357
|
+
<VoidLayout
|
|
8358
|
+
scrollable={true}
|
|
8359
|
+
borderRadius="none"
|
|
8360
|
+
spacing={0}
|
|
8361
|
+
>
|
|
8362
|
+
<Card p={4} variant="elevated">
|
|
8363
|
+
<Stack spacing={2}>
|
|
8364
|
+
<Text variant="heading" size="md">Void Section 1</Text>
|
|
8365
|
+
<Text color="mutedForeground">Content layout block powered by Flipova Foundation.</Text>
|
|
8366
|
+
</Stack>
|
|
8367
|
+
</Card>
|
|
8368
|
+
<Card p={4} variant="outlined">
|
|
8369
|
+
<Text variant="heading" size="md">Void Section 2</Text>
|
|
8370
|
+
</Card>
|
|
8371
|
+
</VoidLayout>
|
|
8372
|
+
</FoundationProvider>
|
|
8373
|
+
);
|
|
8374
|
+
}`
|
|
6524
8375
|
};
|
|
6525
8376
|
var componentRegistry = [
|
|
8377
|
+
BadgeWrapperMeta,
|
|
8378
|
+
BlurWrapperMeta,
|
|
8379
|
+
CollapsibleWrapperMeta,
|
|
8380
|
+
FadeInWrapperMeta,
|
|
8381
|
+
KeyboardAvoidWrapperMeta,
|
|
8382
|
+
SafeAreaWrapperMeta,
|
|
8383
|
+
ScalePressWrapperMeta,
|
|
8384
|
+
ShimmerWrapperMeta,
|
|
8385
|
+
SkeletonWrapperMeta,
|
|
8386
|
+
SlideUpWrapperMeta,
|
|
8387
|
+
TooltipWrapperMeta,
|
|
6526
8388
|
AccordionMeta,
|
|
8389
|
+
AudioMeta,
|
|
6527
8390
|
AvatarMeta,
|
|
8391
|
+
AvatarPickerMeta,
|
|
6528
8392
|
BadgeMeta,
|
|
6529
8393
|
BlurViewMeta,
|
|
6530
8394
|
ButtonMeta,
|
|
@@ -6532,18 +8396,26 @@ var componentRegistry = [
|
|
|
6532
8396
|
CardMeta,
|
|
6533
8397
|
CheckboxMeta,
|
|
6534
8398
|
ChipMeta,
|
|
8399
|
+
ColorPickerMeta,
|
|
6535
8400
|
DatePickerMeta,
|
|
8401
|
+
EmojiPickerMeta,
|
|
6536
8402
|
FilePickerMeta,
|
|
6537
8403
|
FlatListMeta,
|
|
8404
|
+
GifPickerMeta,
|
|
6538
8405
|
GradientMeta,
|
|
6539
8406
|
IconMeta,
|
|
6540
8407
|
IconButtonMeta,
|
|
8408
|
+
IconPickerMeta,
|
|
6541
8409
|
ImageMeta,
|
|
6542
8410
|
LottieAnimationMeta,
|
|
6543
8411
|
MapViewMeta,
|
|
8412
|
+
NumberInputMeta,
|
|
8413
|
+
OTPInputMeta,
|
|
8414
|
+
PasswordInputMeta,
|
|
6544
8415
|
PressableMeta,
|
|
6545
8416
|
ProgressBarMeta,
|
|
6546
8417
|
RadioGroupMeta,
|
|
8418
|
+
SearchInputMeta,
|
|
6547
8419
|
SelectMeta,
|
|
6548
8420
|
SeparatorMeta,
|
|
6549
8421
|
SliderMeta,
|
|
@@ -6554,7 +8426,8 @@ var componentRegistry = [
|
|
|
6554
8426
|
TextAreaMeta,
|
|
6555
8427
|
TextInputMeta,
|
|
6556
8428
|
VideoMeta,
|
|
6557
|
-
WebViewMeta
|
|
8429
|
+
WebViewMeta,
|
|
8430
|
+
WheelPickerMeta
|
|
6558
8431
|
];
|
|
6559
8432
|
var blockRegistry = [];
|
|
6560
8433
|
var layoutRegistry = [
|
|
@@ -6577,6 +8450,7 @@ var layoutRegistry = [
|
|
|
6577
8450
|
ScrollLayoutMeta,
|
|
6578
8451
|
SidebarLayoutMeta,
|
|
6579
8452
|
SketchLayoutMeta,
|
|
8453
|
+
SortableGridLayoutMeta,
|
|
6580
8454
|
SplitLayoutMeta,
|
|
6581
8455
|
Swipe2ScreenLayoutMeta,
|
|
6582
8456
|
SwiperLayoutMeta,
|
|
@@ -6594,16 +8468,19 @@ var primitiveRegistry = [
|
|
|
6594
8468
|
DividerMeta
|
|
6595
8469
|
];
|
|
6596
8470
|
function getComponentMeta(id) {
|
|
6597
|
-
return componentRegistry.find((m) => m.id === id);
|
|
8471
|
+
return componentRegistry.find((m) => m.id === id) || layoutRegistry.find((m) => m.id === id) || primitiveRegistry.find((m) => m.id === id) || blockRegistry.find((m) => m.id === id);
|
|
6598
8472
|
}
|
|
6599
8473
|
function getBlockMeta(id) {
|
|
6600
|
-
return blockRegistry.find((m) => m.id === id);
|
|
8474
|
+
return blockRegistry.find((m) => m.id === id) || getComponentMeta(id);
|
|
6601
8475
|
}
|
|
6602
8476
|
function getLayoutMeta(id) {
|
|
6603
|
-
return layoutRegistry.find((m) => m.id === id);
|
|
8477
|
+
return layoutRegistry.find((m) => m.id === id) || getComponentMeta(id);
|
|
6604
8478
|
}
|
|
6605
8479
|
function getPrimitiveMeta(id) {
|
|
6606
|
-
return primitiveRegistry.find((m) => m.id === id);
|
|
8480
|
+
return primitiveRegistry.find((m) => m.id === id) || getComponentMeta(id);
|
|
8481
|
+
}
|
|
8482
|
+
function getMeta(id) {
|
|
8483
|
+
return getComponentMeta(id);
|
|
6607
8484
|
}
|
|
6608
8485
|
|
|
6609
8486
|
exports.AccordionMeta = AccordionMeta;
|
|
@@ -6698,8 +8575,9 @@ exports.componentRegistry = componentRegistry;
|
|
|
6698
8575
|
exports.getBlockMeta = getBlockMeta;
|
|
6699
8576
|
exports.getComponentMeta = getComponentMeta;
|
|
6700
8577
|
exports.getLayoutMeta = getLayoutMeta;
|
|
8578
|
+
exports.getMeta = getMeta;
|
|
6701
8579
|
exports.getPrimitiveMeta = getPrimitiveMeta;
|
|
6702
8580
|
exports.layoutRegistry = layoutRegistry;
|
|
6703
8581
|
exports.primitiveRegistry = primitiveRegistry;
|
|
6704
|
-
//# sourceMappingURL=chunk-
|
|
6705
|
-
//# sourceMappingURL=chunk-
|
|
8582
|
+
//# sourceMappingURL=chunk-7QFZMGL6.js.map
|
|
8583
|
+
//# sourceMappingURL=chunk-7QFZMGL6.js.map
|