@flipova/foundation 1.9.0 → 1.10.1
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 +26 -0
- package/README.md +64 -1
- package/dist/{chunk-3PYMFFVP.mjs → chunk-32VWREEH.mjs} +2289 -7
- package/dist/chunk-32VWREEH.mjs.map +1 -0
- package/dist/{chunk-5ZDSYOFL.js → chunk-3RJREGCN.js} +2604 -309
- package/dist/chunk-3RJREGCN.js.map +1 -0
- package/dist/{chunk-MWRMHYW2.js → chunk-D4QJYQOK.js} +17 -17
- package/dist/{chunk-MWRMHYW2.js.map → chunk-D4QJYQOK.js.map} +1 -1
- package/dist/{chunk-GZPFYWMA.mjs → chunk-IKVONTJC.mjs} +10 -3
- package/dist/chunk-IKVONTJC.mjs.map +1 -0
- package/dist/{chunk-RRZSROIT.mjs → chunk-RRV2Q4SS.mjs} +3 -3
- package/dist/{chunk-RRZSROIT.mjs.map → chunk-RRV2Q4SS.mjs.map} +1 -1
- package/dist/chunk-RUZBEFDO.js +669 -0
- package/dist/{chunk-T7V6TILB.js.map → chunk-RUZBEFDO.js.map} +1 -1
- package/dist/{chunk-45NSZH5Z.js → chunk-UBZMVSIN.js} +10 -2
- package/dist/chunk-UBZMVSIN.js.map +1 -0
- package/dist/{chunk-SYHGZT2M.mjs → chunk-YTD4AWV2.mjs} +4 -4
- package/dist/{chunk-SYHGZT2M.mjs.map → chunk-YTD4AWV2.mjs.map} +1 -1
- package/dist/config/index.js +6 -6
- package/dist/config/index.mjs +1 -1
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +200 -201
- package/dist/index.mjs +4 -5
- package/dist/layout/index.d.mts +192 -3
- package/dist/layout/index.d.ts +192 -3
- package/dist/layout/index.js +159 -160
- package/dist/layout/index.mjs +1 -2
- package/dist/studio-v2/cli/index.js +96 -0
- package/dist/theme/index.js +14 -14
- package/dist/theme/index.mjs +1 -1
- package/dist/tokens/index.js +14 -14
- package/dist/tokens/index.mjs +1 -1
- package/dist/web/index.js +3639 -363
- package/dist/web/index.js.map +1 -1
- package/dist/web/index.mjs +3463 -61
- package/dist/web/index.mjs.map +1 -1
- package/package.json +15 -8
- package/studio-v2/apps/web/CHANGELOG.md +7 -0
- package/studio-v2/apps/web/LICENSE +21 -0
- package/studio-v2/apps/web/README.md +56 -0
- package/studio-v2/apps/web/dist/+not-found.html +793 -0
- package/studio-v2/apps/web/dist/_expo/.routes.json +3 -0
- package/studio-v2/apps/web/dist/_expo/static/css/global-a4717de456877faacb88ee482aa99653.css +1 -0
- package/{studio/app/dist/_expo/static/js/web/entry-77f601f6b9353e7b6e3b18cdbe63ac99.js → studio-v2/apps/web/dist/_expo/static/js/web/entry-5d96588cc8f2ee5c00754cef9ac6481d.js} +3707 -17257
- package/studio-v2/apps/web/dist/_expo/static/js/web/index-470f33f64d8c4f7b8d8da2632b2959c2.js +4 -0
- package/{studio/app/dist/_expo/static/js/web/index-ac88f7a39991e452f0b4323da9aa4367.js → studio-v2/apps/web/dist/_expo/static/js/web/index-f7fcd21ae9d8dacf4c88ea5796614af0.js} +3 -3
- package/studio-v2/apps/web/dist/_sitemap.html +793 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/drawer/lib/module/views/assets/toggle-drawer-icon.ae74bb20586a731af545e6b00fe14a09.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
- package/studio-v2/apps/web/dist/assets/___node_modules/expo-router/assets/react-navigation/elements/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
- package/studio-v2/apps/web/dist/index.html +793 -0
- package/dist/chunk-3PYMFFVP.mjs.map +0 -1
- package/dist/chunk-45NSZH5Z.js.map +0 -1
- package/dist/chunk-4QTEZKXE.mjs +0 -2287
- package/dist/chunk-4QTEZKXE.mjs.map +0 -1
- package/dist/chunk-5ZDSYOFL.js.map +0 -1
- package/dist/chunk-BJTO5JO5.mjs +0 -10
- package/dist/chunk-BJTO5JO5.mjs.map +0 -1
- package/dist/chunk-DGUM43GV.js +0 -12
- package/dist/chunk-DGUM43GV.js.map +0 -1
- package/dist/chunk-ECBM426M.mjs +0 -2647
- package/dist/chunk-ECBM426M.mjs.map +0 -1
- package/dist/chunk-EIWDEXBO.js +0 -2690
- package/dist/chunk-EIWDEXBO.js.map +0 -1
- package/dist/chunk-FLEEJX7L.js +0 -2301
- package/dist/chunk-FLEEJX7L.js.map +0 -1
- package/dist/chunk-GZPFYWMA.mjs.map +0 -1
- package/dist/chunk-T7V6TILB.js +0 -669
- package/dist/primitives-DVX2q5St.d.mts +0 -195
- package/dist/primitives-nj-4at-g.d.ts +0 -195
- package/dist/studio/cli/index.d.mts +0 -1
- package/dist/studio/cli/index.d.ts +0 -1
- package/dist/studio/cli/index.js +0 -42
- package/dist/studio/cli/index.js.map +0 -1
- package/dist/studio/cli/index.mjs +0 -35
- package/dist/studio/cli/index.mjs.map +0 -1
- package/dist/studio/index.d.mts +0 -441
- package/dist/studio/index.d.ts +0 -441
- package/dist/studio/index.js +0 -84
- package/dist/studio/index.js.map +0 -1
- package/dist/studio/index.mjs +0 -3
- package/dist/studio/index.mjs.map +0 -1
- package/dist/web/index.d.mts +0 -778
- package/dist/web/index.d.ts +0 -778
- package/studio/README.md +0 -154
- package/studio/app/dist/_expo/static/js/web/index-9587ee2e3c02826ac2da47e86fefe882.js +0 -4
- package/studio/app/dist/index.html +0 -37
- package/studio/app/dist/metadata.json +0 -1
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/AntDesign.3f78af31cca60105799838a1a7a59fbd.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Entypo.31b5ffea3daddc69dd01a1f3d6cf63c5.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/EvilIcons.140c53a7643ea949007aa9a282153849.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Feather.ca4b48e04dc1ce10bfbddb262c8b835f.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome.b06871f281fee6b241d60582ae9369b9.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Brands.3b89dd103490708d19a95adcae52210e.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Regular.1f77739ca9ff2188b539c36f30ffa2be.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome5_Solid.605ed7926cf39a2ad5ec2d1f9d391d3d.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Brands.56c8d80832e37783f12c05db7c8849e2.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Regular.370dd5af19f8364907b6e2c41f45dbbf.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/FontAwesome6_Solid.adec7d6f310bc577f05e8fe06a5daccf.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Fontisto.b49ae8ab2dbccb02c4d11caaacf09eab.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Foundation.e20945d7c929279ef7a6f1db184a4470.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Ionicons.b4eb097d35f44ed943676fd56f6bdc51.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialCommunityIcons.6e435534bd35da5fef04168860a9b8fa.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/MaterialIcons.4e85bc9ebe07e0340c9c4fc2f6c38908.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Octicons.871378c6eab492a3e689a9385dc45a12.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/SimpleLineIcons.d2285965fe34b05465047401b8595dd0.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/@expo/vector-icons/build/vendor/react-native-vector-icons/Fonts/Zocial.1681f34aaca71b8dfb70756bca331eb2.ttf +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/back-icon-mask.0a328cd9c1afd0afe8e3b1ec5165b1b4.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/back-icon.35ba0eaec5a4f5ed12ca16fabeae451d.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@2x.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@3x.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/clear-icon.c94f6478e7ae0cdd9f15de1fcb9e5e55@4x.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@2x.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@3x.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/close-icon.808e1b1b9b53114ec2838071a7e6daa7@4x.png +0 -0
- /package/{studio/app/dist/assets/__node_modules/expo-router/assets/react-navigation/elements → studio-v2/apps/web/dist/assets/___node_modules/@react-navigation/elements/lib/module/assets}/search-icon.286d67d3f74808a60a78d3ebf1a5fb57.png +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/arrow_down.017bc6ba3fc25503e5eb5e53826d48a8.png +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/error.d1ea1496f9057eb392d5bbf3732a61b7.png +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/file.19eeb73b9593a38f8e9f418337fc7d10.png +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/forward.d8b800c443b8972542883e0b9de2bdc6.png +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/pkg.ab19f4cbc543357183a20571f68380a3.png +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/sitemap.412dd9275b6b48ad28f5e3d81bb1f626.png +0 -0
- /package/{studio/app/dist/assets/__node_modules → studio-v2/apps/web/dist/assets/___node_modules}/expo-router/assets/unmatched.20e71bdf79e3a97bf55fd9e164041578.png +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { useTheme } from './chunk-
|
|
2
|
-
import { spacing, radii, shadows, breakpoints } from './chunk-
|
|
3
|
-
import { getLayoutMeta, getConstants, applyDefaults, getComponentMeta, getBlockMeta } from './chunk-4QTEZKXE.mjs';
|
|
4
|
-
import { __require } from './chunk-BJTO5JO5.mjs';
|
|
1
|
+
import { useTheme } from './chunk-RRV2Q4SS.mjs';
|
|
2
|
+
import { __require, spacing, radii, shadows, breakpoints } from './chunk-IKVONTJC.mjs';
|
|
5
3
|
import React12, { createContext, useState, useCallback, useImperativeHandle, useMemo, useEffect, useContext, useRef } from 'react';
|
|
6
4
|
import { StyleSheet, Platform, Pressable, Dimensions, Text, View, ScrollView, TouchableOpacity, FlatList, useWindowDimensions, StatusBar, PanResponder, Modal, ActivityIndicator, TextInput, Switch, Image, Linking } from 'react-native';
|
|
7
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -477,6 +475,2290 @@ var Stack = ({
|
|
|
477
475
|
return /* @__PURE__ */ jsx(Box_default, { ...layoutProps, style: resolvedStyle, ...rest, children });
|
|
478
476
|
};
|
|
479
477
|
var Stack_default = Stack;
|
|
478
|
+
|
|
479
|
+
// foundation/layout/registry/defaults.ts
|
|
480
|
+
function extractDefaults(meta) {
|
|
481
|
+
const defaults = {};
|
|
482
|
+
for (const prop of meta.props) {
|
|
483
|
+
if (prop.default !== void 0) {
|
|
484
|
+
defaults[prop.name] = prop.default;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
return defaults;
|
|
488
|
+
}
|
|
489
|
+
function resolveThemeDefaults(meta, theme) {
|
|
490
|
+
const resolved = {};
|
|
491
|
+
for (const prop of meta.props) {
|
|
492
|
+
if (prop.themeDefault) {
|
|
493
|
+
resolved[prop.name] = theme[prop.themeDefault];
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
return resolved;
|
|
497
|
+
}
|
|
498
|
+
function applyDefaults(props, meta, theme) {
|
|
499
|
+
const themeDefaults = theme ? resolveThemeDefaults(meta, theme) : {};
|
|
500
|
+
const staticDefaults = extractDefaults(meta);
|
|
501
|
+
const result = { ...themeDefaults, ...staticDefaults };
|
|
502
|
+
for (const key of Object.keys(props)) {
|
|
503
|
+
const value = props[key];
|
|
504
|
+
if (value !== void 0) {
|
|
505
|
+
result[key] = value;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
return result;
|
|
509
|
+
}
|
|
510
|
+
function applyVariant(props, variant) {
|
|
511
|
+
const result = { ...variant.overrides };
|
|
512
|
+
for (const key of Object.keys(props)) {
|
|
513
|
+
const value = props[key];
|
|
514
|
+
if (value !== void 0) {
|
|
515
|
+
result[key] = value;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return result;
|
|
519
|
+
}
|
|
520
|
+
function getConstants(meta) {
|
|
521
|
+
return meta.constants ?? {};
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
// foundation/layout/registry/layouts.ts
|
|
525
|
+
function getLayoutMeta(id) {
|
|
526
|
+
return layoutRegistry.find((m) => m.id === id);
|
|
527
|
+
}
|
|
528
|
+
var layoutRegistry = [
|
|
529
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
530
|
+
// PAGE
|
|
531
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
532
|
+
{
|
|
533
|
+
id: "RootLayout",
|
|
534
|
+
label: "Root",
|
|
535
|
+
description: "Root page container with direct flex control. Ideal as the base of every page.",
|
|
536
|
+
category: "page",
|
|
537
|
+
slots: [{ name: "children", label: "Content", required: true, kind: "children" }],
|
|
538
|
+
responsive: false,
|
|
539
|
+
animated: false,
|
|
540
|
+
tags: ["root", "page", "container", "flex"],
|
|
541
|
+
themeMapping: { root: "background" },
|
|
542
|
+
props: [
|
|
543
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "background" },
|
|
544
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
545
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 0 },
|
|
546
|
+
{ name: "justifyContent", label: "Justify", type: "enum", group: "layout", default: "flex-start", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
|
|
547
|
+
{ name: "alignItems", label: "Align Items", type: "enum", group: "layout", default: "stretch", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
|
|
548
|
+
{ name: "flexDirection", label: "Direction", type: "enum", group: "layout", default: "column", options: ["column", "row"] },
|
|
549
|
+
{ name: "gap", label: "Gap", type: "number", group: "layout", default: 0 }
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
id: "VoidLayout",
|
|
554
|
+
label: "Vide",
|
|
555
|
+
description: "Conteneur minimal avec scroll, padding et maxWidth optionnels.",
|
|
556
|
+
category: "page",
|
|
557
|
+
slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
|
|
558
|
+
responsive: false,
|
|
559
|
+
animated: false,
|
|
560
|
+
tags: ["blank", "empty", "minimal", "wrapper"],
|
|
561
|
+
props: [
|
|
562
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout", description: "Largeur maximale du conteneur" },
|
|
563
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
564
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
565
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
566
|
+
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
567
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
568
|
+
{ name: "centerContent", label: "Centrer contenu", type: "boolean", group: "layout", default: false },
|
|
569
|
+
{ name: "showBorder", label: "Bordure visible", type: "boolean", group: "style", default: false }
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
id: "CenteredLayout",
|
|
574
|
+
label: "Centr\xE9",
|
|
575
|
+
description: "Contenu centr\xE9 avec carte optionnelle et maxWidth.",
|
|
576
|
+
category: "page",
|
|
577
|
+
slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
|
|
578
|
+
responsive: true,
|
|
579
|
+
animated: false,
|
|
580
|
+
tags: ["centered", "form", "onboarding", "modal"],
|
|
581
|
+
themeMapping: { root: "background", surface: "card" },
|
|
582
|
+
props: [
|
|
583
|
+
{ name: "maxWidth", label: "Largeur max carte", type: "number", group: "layout", default: 500 },
|
|
584
|
+
{ name: "padding", label: "Padding carte", type: "spacing", group: "layout", default: 4 },
|
|
585
|
+
{ name: "background", label: "Fond page", type: "color", group: "style", themeDefault: "background" },
|
|
586
|
+
{ name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
|
|
587
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "3xl" },
|
|
588
|
+
{ name: "shadowed", label: "Ombre carte", type: "boolean", group: "style", default: false },
|
|
589
|
+
{ name: "mobilePadding", label: "Padding mobile", type: "spacing", group: "layout", default: 4 },
|
|
590
|
+
{ name: "desktopPadding", label: "Padding desktop", type: "spacing", group: "layout", default: 6 }
|
|
591
|
+
]
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
id: "AuthLayout",
|
|
595
|
+
label: "Authentification",
|
|
596
|
+
description: "Panel branding (desktop) + formulaire centr\xE9. Mobile : plein \xE9cran.",
|
|
597
|
+
category: "page",
|
|
598
|
+
themeMapping: { root: "background", surface: "card" },
|
|
599
|
+
slots: [
|
|
600
|
+
{ name: "children", label: "Formulaire", required: true, kind: "children" },
|
|
601
|
+
{ name: "branding", label: "Panel branding", required: false, kind: "named" }
|
|
602
|
+
],
|
|
603
|
+
responsive: true,
|
|
604
|
+
animated: false,
|
|
605
|
+
tags: ["auth", "login", "signup", "onboarding"],
|
|
606
|
+
props: [
|
|
607
|
+
{ name: "brandingBackground", label: "Fond branding", type: "color", group: "style", themeDefault: "card" },
|
|
608
|
+
{ name: "background", label: "Fond", type: "background", group: "style" },
|
|
609
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
610
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
611
|
+
{ name: "brandingRatio", label: "Ratio branding", type: "ratio", group: "layout", default: 0.5, min: 0, max: 1 },
|
|
612
|
+
{ name: "padding", label: "Padding formulaire", type: "spacing", group: "layout", default: 5 },
|
|
613
|
+
{ name: "shadowed", label: "Ombre mobile", type: "boolean", group: "style", default: true },
|
|
614
|
+
{ name: "formMaxWidth", label: "Largeur max formulaire", type: "number", group: "layout", default: 520 },
|
|
615
|
+
{ name: "formScrollPaddingY", label: "Padding scroll Y", type: "spacing", group: "layout", default: 8 },
|
|
616
|
+
{ name: "formScrollPaddingX", label: "Padding scroll X", type: "spacing", group: "layout", default: 4 }
|
|
617
|
+
]
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
id: "DashboardLayout",
|
|
621
|
+
label: "Dashboard",
|
|
622
|
+
description: "Header fixe, sidebar collapsible, contenu scrollable, footer optionnel.",
|
|
623
|
+
category: "page",
|
|
624
|
+
themeMapping: { root: "background", surface: "card" },
|
|
625
|
+
slots: [
|
|
626
|
+
{ name: "header", label: "Header", required: true, kind: "named" },
|
|
627
|
+
{ name: "content", label: "Contenu", required: true, kind: "named" },
|
|
628
|
+
{ name: "sidebar", label: "Sidebar", required: false, kind: "named" },
|
|
629
|
+
{ name: "footer", label: "Footer", required: false, kind: "named" }
|
|
630
|
+
],
|
|
631
|
+
responsive: true,
|
|
632
|
+
animated: true,
|
|
633
|
+
dependencies: ["react-native-reanimated"],
|
|
634
|
+
tags: ["dashboard", "admin", "sidebar", "header"],
|
|
635
|
+
props: [
|
|
636
|
+
{ name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 260 },
|
|
637
|
+
{ name: "sidebarCollapsedWidth", label: "Largeur sidebar r\xE9duite", type: "number", group: "layout", default: 70 },
|
|
638
|
+
{ name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 70 },
|
|
639
|
+
{ name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
|
|
640
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
641
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
642
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
643
|
+
{ name: "disableContentScroll", label: "D\xE9sactiver scroll contenu", type: "boolean", group: "behavior", default: false },
|
|
644
|
+
{ name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
|
|
645
|
+
{ name: "sidebarBackground", label: "Fond sidebar", type: "color", group: "style", themeDefault: "card" },
|
|
646
|
+
{ name: "contentBackground", label: "Fond contenu", type: "color", group: "style", themeDefault: "card" },
|
|
647
|
+
{ name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "card" },
|
|
648
|
+
{ name: "headerPaddingX", label: "Padding X header", type: "spacing", group: "layout", default: 4 },
|
|
649
|
+
{ name: "mobileHeaderMinHeight", label: "Hauteur min header mobile", type: "number", group: "layout", default: 60 }
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
id: "ResponsiveLayout",
|
|
654
|
+
label: "Responsive",
|
|
655
|
+
description: "Layout adaptatif header/sidebar/content/footer avec 3 modes.",
|
|
656
|
+
category: "page",
|
|
657
|
+
themeMapping: { root: "background" },
|
|
658
|
+
slots: [
|
|
659
|
+
{ name: "content", label: "Contenu", required: true, kind: "named" },
|
|
660
|
+
{ name: "header", label: "Header", required: false, kind: "named" },
|
|
661
|
+
{ name: "sidebar", label: "Sidebar", required: false, kind: "named" },
|
|
662
|
+
{ name: "footer", label: "Footer", required: false, kind: "named" }
|
|
663
|
+
],
|
|
664
|
+
responsive: true,
|
|
665
|
+
animated: false,
|
|
666
|
+
tags: ["responsive", "adaptive", "header", "sidebar", "footer"],
|
|
667
|
+
props: [
|
|
668
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
669
|
+
{ name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 60 },
|
|
670
|
+
{ name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 260 },
|
|
671
|
+
{ name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
|
|
672
|
+
{ name: "adaptiveMode", label: "Mode adaptatif", type: "enum", group: "behavior", default: "basic", options: ["basic", "sidebar", "full"] },
|
|
673
|
+
{ name: "hideHeader", label: "Cacher header", type: "boolean", group: "behavior", default: false },
|
|
674
|
+
{ name: "hideFooter", label: "Cacher footer", type: "boolean", group: "behavior", default: false },
|
|
675
|
+
{ name: "collapseFooterOnTablet", label: "Footer compact tablette", type: "boolean", group: "behavior", default: false },
|
|
676
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
677
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
678
|
+
{ name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "background" },
|
|
679
|
+
{ name: "sidebarBackground", label: "Fond sidebar", type: "color", group: "style", themeDefault: "background" },
|
|
680
|
+
{ name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "background" },
|
|
681
|
+
{ name: "contentBackground", label: "Fond contenu", type: "color", group: "style" },
|
|
682
|
+
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
683
|
+
{ name: "contentPadding", label: "Padding contenu", type: "padding", group: "layout" },
|
|
684
|
+
{ name: "mobileHeaderHeight", label: "Hauteur header mobile", type: "number", group: "layout", default: 56 },
|
|
685
|
+
{ name: "tabletFooterHeight", label: "Hauteur footer tablette", type: "number", group: "layout", default: 48 },
|
|
686
|
+
{ name: "sidebarMaxWidth", label: "Largeur max sidebar", type: "number", group: "layout", default: 320 }
|
|
687
|
+
]
|
|
688
|
+
},
|
|
689
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
690
|
+
// CONTENT
|
|
691
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
692
|
+
{
|
|
693
|
+
id: "FlexLayout",
|
|
694
|
+
label: "Flex",
|
|
695
|
+
description: "Direction, wrap et espacement adaptatifs. Scroll optionnel.",
|
|
696
|
+
category: "content",
|
|
697
|
+
themeMapping: { root: "background" },
|
|
698
|
+
slots: [{ name: "children", label: "\xC9l\xE9ments", required: true, kind: "children" }],
|
|
699
|
+
responsive: true,
|
|
700
|
+
animated: false,
|
|
701
|
+
tags: ["flex", "row", "column", "wrap", "adaptive"],
|
|
702
|
+
props: [
|
|
703
|
+
{ name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
|
|
704
|
+
{ name: "wrap", label: "Retour \xE0 la ligne", type: "boolean", group: "layout", default: false },
|
|
705
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
|
|
706
|
+
{ name: "align", label: "Align Items", type: "enum", group: "layout", default: "stretch", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
|
|
707
|
+
{ name: "justify", label: "Justify Content", type: "enum", group: "layout", default: "flex-start", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
|
|
708
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
709
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: false },
|
|
710
|
+
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
711
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
712
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" }
|
|
713
|
+
]
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
id: "GridLayout",
|
|
717
|
+
label: "Grille",
|
|
718
|
+
description: "Grille responsive avec colonnes adaptatives.",
|
|
719
|
+
category: "content",
|
|
720
|
+
themeMapping: { root: "background", surface: "card" },
|
|
721
|
+
slots: [{ name: "items", label: "Cellules", required: true, kind: "items" }],
|
|
722
|
+
responsive: true,
|
|
723
|
+
animated: false,
|
|
724
|
+
previewItemCount: 6,
|
|
725
|
+
tags: ["grid", "columns", "responsive"],
|
|
726
|
+
props: [
|
|
727
|
+
{ name: "columns", label: "Colonnes", type: "number", group: "layout", description: "Nombre de colonnes (auto si omis)" },
|
|
728
|
+
{ name: "cellHeight", label: "Hauteur cellule", type: "number", group: "layout", description: "Hauteur fixe en px \u2014 omis = adaptatif au contenu" },
|
|
729
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
730
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
731
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: false },
|
|
732
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 0 },
|
|
733
|
+
{ name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
|
|
734
|
+
{ name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
|
|
735
|
+
{ name: "background", label: "Fond", type: "color", group: "style", default: "transparent" },
|
|
736
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
737
|
+
{ name: "compact", label: "Mode compact", type: "boolean", group: "behavior", default: false }
|
|
738
|
+
]
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
id: "BentoLayout",
|
|
742
|
+
label: "Bento",
|
|
743
|
+
description: "Grille bento box avec cellules de tailles vari\xE9es.",
|
|
744
|
+
category: "content",
|
|
745
|
+
themeMapping: { root: "background" },
|
|
746
|
+
slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
|
|
747
|
+
responsive: true,
|
|
748
|
+
animated: false,
|
|
749
|
+
previewItemCount: 5,
|
|
750
|
+
tags: ["bento", "grid", "mosaic", "dashboard"],
|
|
751
|
+
props: [
|
|
752
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 2 },
|
|
753
|
+
{ name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
|
|
754
|
+
{ name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
|
|
755
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
756
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout", default: 1200 },
|
|
757
|
+
{ name: "baseHeight", label: "Hauteur de base", type: "number", group: "layout", default: 200 },
|
|
758
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
759
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
760
|
+
{ name: "cellConfig", label: "Config cellules", type: "json", group: "content", default: [] }
|
|
761
|
+
]
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
id: "MasonryLayout",
|
|
765
|
+
label: "Masonry",
|
|
766
|
+
description: "Grille masonry multi-colonnes.",
|
|
767
|
+
category: "content",
|
|
768
|
+
themeMapping: { root: "background", surface: "card" },
|
|
769
|
+
slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
|
|
770
|
+
responsive: false,
|
|
771
|
+
animated: false,
|
|
772
|
+
previewItemCount: 6,
|
|
773
|
+
tags: ["masonry", "pinterest", "waterfall"],
|
|
774
|
+
props: [
|
|
775
|
+
{ name: "columns", label: "Colonnes", type: "number", group: "layout", default: 2 },
|
|
776
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 1 },
|
|
777
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
778
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
779
|
+
{ name: "background", label: "Fond", type: "color", group: "style", default: "transparent" },
|
|
780
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
781
|
+
{ name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
|
|
782
|
+
{ name: "itemBorderRadius", label: "Rayon items", type: "radius", group: "style", default: "none" },
|
|
783
|
+
{ name: "padding", label: "Padding", type: "padding", group: "layout" }
|
|
784
|
+
]
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
id: "SplitLayout",
|
|
788
|
+
label: "Split",
|
|
789
|
+
description: "Deux panneaux (gauche/droite ou haut/bas) avec scroll ind\xE9pendant.",
|
|
790
|
+
category: "content",
|
|
791
|
+
themeMapping: { root: "background", left: "card", right: "card" },
|
|
792
|
+
slots: [
|
|
793
|
+
{ name: "left", label: "Panneau gauche", required: true, kind: "named" },
|
|
794
|
+
{ name: "right", label: "Panneau droit", required: true, kind: "named" }
|
|
795
|
+
],
|
|
796
|
+
responsive: true,
|
|
797
|
+
animated: false,
|
|
798
|
+
tags: ["split", "two-pane", "master-detail"],
|
|
799
|
+
props: [
|
|
800
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
801
|
+
{ name: "leftWidth", label: "Largeur gauche fixe", type: "number", group: "layout" },
|
|
802
|
+
{ name: "ratio", label: "Ratio gauche", type: "ratio", group: "layout", default: 0.5, min: 0, max: 1 },
|
|
803
|
+
{ name: "orientation", label: "Orientation", type: "enum", group: "layout", default: "horizontal", options: ["horizontal", "vertical"] },
|
|
804
|
+
{ name: "hideLeftOnMobile", label: "Cacher gauche mobile", type: "boolean", group: "behavior", default: false },
|
|
805
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
806
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
807
|
+
{ name: "leftBackground", label: "Fond gauche", type: "color", group: "style", themeDefault: "card" },
|
|
808
|
+
{ name: "rightBackground", label: "Fond droit", type: "color", group: "style", themeDefault: "card" },
|
|
809
|
+
{ name: "leftBorderRadius", label: "Rayon gauche", type: "radius", group: "style", default: "none" },
|
|
810
|
+
{ name: "rightBorderRadius", label: "Rayon droit", type: "radius", group: "style", default: "none" }
|
|
811
|
+
]
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
id: "FooterLayout",
|
|
815
|
+
label: "Footer",
|
|
816
|
+
description: "Contenu principal avec footer fixe ou scrollable.",
|
|
817
|
+
category: "content",
|
|
818
|
+
themeMapping: { root: "background" },
|
|
819
|
+
slots: [
|
|
820
|
+
{ name: "content", label: "Contenu", required: true, kind: "named" },
|
|
821
|
+
{ name: "footer", label: "Footer", required: true, kind: "named" }
|
|
822
|
+
],
|
|
823
|
+
responsive: false,
|
|
824
|
+
animated: false,
|
|
825
|
+
tags: ["footer", "sticky", "bottom-bar"],
|
|
826
|
+
props: [
|
|
827
|
+
{ name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
|
|
828
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
829
|
+
{ name: "sticky", label: "Footer sticky", type: "boolean", group: "behavior", default: false },
|
|
830
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
831
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
832
|
+
{ name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "background" },
|
|
833
|
+
{ name: "footerBorderRadius", label: "Rayon footer", type: "radius", group: "style", default: "none" },
|
|
834
|
+
{ name: "contentBorderRadius", label: "Rayon contenu", type: "radius", group: "style", default: "none" },
|
|
835
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
836
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
837
|
+
{ name: "padding", label: "Padding contenu", type: "spacing", group: "layout", default: 5 },
|
|
838
|
+
{ name: "footerPadding", label: "Padding footer", type: "spacing", group: "layout", default: 5 },
|
|
839
|
+
{ name: "compact", label: "Mode compact", type: "boolean", group: "behavior", default: false }
|
|
840
|
+
]
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
id: "CrossTabLayout",
|
|
844
|
+
label: "Cross Tab",
|
|
845
|
+
description: "Grille r\xE9ordonnnable par drag & drop.",
|
|
846
|
+
category: "content",
|
|
847
|
+
themeMapping: { surface: "card" },
|
|
848
|
+
constants: {
|
|
849
|
+
springConfig: { damping: 18, stiffness: 120, mass: 0.5 }
|
|
850
|
+
},
|
|
851
|
+
slots: [{ name: "items", label: "Widgets", required: true, kind: "items" }],
|
|
852
|
+
responsive: false,
|
|
853
|
+
animated: true,
|
|
854
|
+
previewItemCount: 4,
|
|
855
|
+
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
856
|
+
tags: ["drag", "drop", "reorder", "widgets", "grid"],
|
|
857
|
+
props: [
|
|
858
|
+
{ name: "columns", label: "Colonnes", type: "number", group: "layout", default: 2 },
|
|
859
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
|
|
860
|
+
{ name: "itemBackground", label: "Fond items", type: "color", group: "style", themeDefault: "card" },
|
|
861
|
+
{ name: "itemBorderRadius", label: "Rayon items", type: "number", group: "style", default: 28 },
|
|
862
|
+
{ name: "scrollEnabled", label: "Scroll activ\xE9", type: "boolean", group: "behavior", default: true },
|
|
863
|
+
{ name: "springDamping", label: "Amortissement spring", type: "number", group: "behavior", default: 18 },
|
|
864
|
+
{ name: "springStiffness", label: "Raideur spring", type: "number", group: "behavior", default: 120 },
|
|
865
|
+
{ name: "longPressDuration", label: "Dur\xE9e long-press", type: "number", group: "behavior", default: 250 },
|
|
866
|
+
{ name: "dragScale", label: "\xC9chelle drag", type: "ratio", group: "behavior", default: 1.05, min: 1, max: 1.5 },
|
|
867
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
|
|
868
|
+
]
|
|
869
|
+
},
|
|
870
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
871
|
+
// NAVIGATION
|
|
872
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
873
|
+
{
|
|
874
|
+
id: "SidebarLayout",
|
|
875
|
+
label: "Sidebar",
|
|
876
|
+
description: "Contenu avec sidebar lat\xE9rale, collapsible sur mobile.",
|
|
877
|
+
category: "navigation",
|
|
878
|
+
themeMapping: { root: "background", sidebar: "card", border: "border" },
|
|
879
|
+
slots: [
|
|
880
|
+
{ name: "sidebar", label: "Sidebar", required: true, kind: "named" },
|
|
881
|
+
{ name: "content", label: "Contenu", required: true, kind: "named" }
|
|
882
|
+
],
|
|
883
|
+
responsive: true,
|
|
884
|
+
animated: false,
|
|
885
|
+
tags: ["sidebar", "navigation", "menu", "resizable"],
|
|
886
|
+
props: [
|
|
887
|
+
{ name: "sidebarWidth", label: "Largeur sidebar", type: "number", group: "layout", default: 280 },
|
|
888
|
+
{ name: "position", label: "Position sidebar", type: "enum", group: "layout", default: "left", options: ["left", "right"] },
|
|
889
|
+
{ name: "collapsible", label: "Collapsible mobile", type: "boolean", group: "behavior", default: true },
|
|
890
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
|
|
891
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
892
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
893
|
+
{ name: "background", label: "Fond", type: "background", group: "style" },
|
|
894
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
895
|
+
{ name: "sidebarBackground", label: "Fond sidebar", type: "background", group: "style" },
|
|
896
|
+
{ name: "sidebarBorderRadius", label: "Rayon sidebar", type: "radius", group: "style", default: "none" },
|
|
897
|
+
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
898
|
+
{ name: "resizable", label: "Redimensionnable", type: "boolean", group: "behavior", default: false },
|
|
899
|
+
{ name: "sidebarMinWidth", label: "Largeur min sidebar", type: "number", group: "layout", default: 150 },
|
|
900
|
+
{ name: "sidebarMaxWidth", label: "Largeur max sidebar", type: "number", group: "layout", default: 600 }
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
id: "BottomDrawerLayout",
|
|
905
|
+
label: "Tiroir bas",
|
|
906
|
+
description: "Tiroir inf\xE9rieur anim\xE9 avec geste de swipe.",
|
|
907
|
+
category: "navigation",
|
|
908
|
+
themeMapping: { root: "background", drawer: "background", accent: "primary", border: "border" },
|
|
909
|
+
constants: {
|
|
910
|
+
springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
|
|
911
|
+
},
|
|
912
|
+
slots: [
|
|
913
|
+
{ name: "content", label: "Contenu principal", required: true, kind: "named" },
|
|
914
|
+
{ name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
|
|
915
|
+
],
|
|
916
|
+
responsive: true,
|
|
917
|
+
animated: true,
|
|
918
|
+
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
919
|
+
tags: ["drawer", "bottom-sheet", "swipe", "modal"],
|
|
920
|
+
props: [
|
|
921
|
+
{ name: "drawerHeight", label: "Hauteur tiroir", type: "number", group: "layout", default: 400 },
|
|
922
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
923
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
924
|
+
{ name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
|
|
925
|
+
{ name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "3xl" },
|
|
926
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
927
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
928
|
+
{ name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
|
|
929
|
+
{ name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "primary" },
|
|
930
|
+
{ name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
|
|
931
|
+
{ name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.95, min: 0.5, max: 1 },
|
|
932
|
+
{ name: "handleBarColor", label: "Couleur barre handle", type: "color", group: "style", themeDefault: "border" },
|
|
933
|
+
{ name: "handleButtonSize", label: "Taille bouton handle", type: "number", group: "layout", default: 56 }
|
|
934
|
+
]
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
id: "TopDrawerLayout",
|
|
938
|
+
label: "Tiroir haut",
|
|
939
|
+
description: "Tiroir sup\xE9rieur anim\xE9 avec geste de swipe.",
|
|
940
|
+
category: "navigation",
|
|
941
|
+
themeMapping: { root: "background", drawer: "background", border: "border", muted: "muted" },
|
|
942
|
+
constants: {
|
|
943
|
+
springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
|
|
944
|
+
},
|
|
945
|
+
slots: [
|
|
946
|
+
{ name: "content", label: "Contenu principal", required: true, kind: "named" },
|
|
947
|
+
{ name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
|
|
948
|
+
],
|
|
949
|
+
responsive: false,
|
|
950
|
+
animated: true,
|
|
951
|
+
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
952
|
+
tags: ["drawer", "top-sheet", "swipe", "notification"],
|
|
953
|
+
props: [
|
|
954
|
+
{ name: "drawerHeight", label: "Hauteur tiroir", type: "number", group: "layout", default: 600 },
|
|
955
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
956
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
957
|
+
{ name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
|
|
958
|
+
{ name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "3xl" },
|
|
959
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
960
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
961
|
+
{ name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
|
|
962
|
+
{ name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "border" },
|
|
963
|
+
{ name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
|
|
964
|
+
{ name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.95, min: 0.5, max: 1 },
|
|
965
|
+
{ name: "closeButtonBackground", label: "Fond bouton fermer", type: "color", group: "style", themeDefault: "muted" },
|
|
966
|
+
{ name: "closeButtonSize", label: "Taille bouton fermer", type: "number", group: "layout", default: 36 },
|
|
967
|
+
{ name: "closeButtonBorderColor", label: "Bordure bouton fermer", type: "color", group: "style", themeDefault: "border" },
|
|
968
|
+
{ name: "closeButtonTextColor", label: "Texte bouton fermer", type: "color", group: "style", themeDefault: "mutedForeground" }
|
|
969
|
+
]
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
id: "LeftDrawerLayout",
|
|
973
|
+
label: "Tiroir gauche",
|
|
974
|
+
description: "Tiroir lat\xE9ral gauche anim\xE9 avec geste de swipe.",
|
|
975
|
+
category: "navigation",
|
|
976
|
+
themeMapping: { root: "background", drawer: "background", accent: "primary", border: "border" },
|
|
977
|
+
constants: {
|
|
978
|
+
springConfig: { damping: 25, stiffness: 200, mass: 0.5, overshootClamping: true }
|
|
979
|
+
},
|
|
980
|
+
slots: [
|
|
981
|
+
{ name: "content", label: "Contenu principal", required: true, kind: "named" },
|
|
982
|
+
{ name: "drawerContent", label: "Contenu du tiroir", required: true, kind: "named" }
|
|
983
|
+
],
|
|
984
|
+
responsive: false,
|
|
985
|
+
animated: true,
|
|
986
|
+
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
987
|
+
tags: ["drawer", "side-menu", "swipe", "navigation"],
|
|
988
|
+
props: [
|
|
989
|
+
{ name: "drawerWidth", label: "Largeur tiroir", type: "number", group: "layout", default: 280 },
|
|
990
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
991
|
+
{ name: "scrollable", label: "Scrollable", type: "boolean", group: "behavior", default: true },
|
|
992
|
+
{ name: "drawerBackground", label: "Fond tiroir", type: "color", group: "style", themeDefault: "background" },
|
|
993
|
+
{ name: "drawerBorderRadius", label: "Rayon tiroir", type: "radius", group: "style", default: "none" },
|
|
994
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
995
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
996
|
+
{ name: "defaultOpen", label: "Ouvert par d\xE9faut", type: "boolean", group: "behavior", default: false },
|
|
997
|
+
{ name: "handleColor", label: "Couleur handle", type: "color", group: "style", themeDefault: "primary" },
|
|
998
|
+
{ name: "backdropOpacity", label: "Opacit\xE9 backdrop", type: "ratio", group: "style", default: 0.4, min: 0, max: 1 },
|
|
999
|
+
{ name: "contentScaleWhenOpen", label: "Scale contenu ouvert", type: "ratio", group: "behavior", default: 0.98, min: 0.5, max: 1 },
|
|
1000
|
+
{ name: "handleBarColor", label: "Couleur barre handle", type: "color", group: "style", themeDefault: "border" },
|
|
1001
|
+
{ name: "handleBarWidth", label: "Largeur zone geste", type: "number", group: "layout", default: 40 }
|
|
1002
|
+
]
|
|
1003
|
+
},
|
|
1004
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
1005
|
+
// CARD
|
|
1006
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
1007
|
+
{
|
|
1008
|
+
id: "DeckLayout",
|
|
1009
|
+
label: "Deck",
|
|
1010
|
+
description: "Stack de cartes swipeable avec effet de profondeur.",
|
|
1011
|
+
category: "card",
|
|
1012
|
+
constants: {
|
|
1013
|
+
swipeThreshold: 60,
|
|
1014
|
+
exitDistance: 450,
|
|
1015
|
+
springConfig: { damping: 20, stiffness: 200, mass: 0.5 }
|
|
1016
|
+
},
|
|
1017
|
+
slots: [{ name: "items", label: "Cartes", required: true, kind: "items" }],
|
|
1018
|
+
responsive: false,
|
|
1019
|
+
animated: true,
|
|
1020
|
+
previewItemCount: 4,
|
|
1021
|
+
dependencies: ["react-native-reanimated", "react-native-gesture-handler", "expo-haptics"],
|
|
1022
|
+
tags: ["deck", "cards", "swipe", "tinder", "stack"],
|
|
1023
|
+
props: [
|
|
1024
|
+
{ name: "peekOffset", label: "D\xE9calage peek", type: "number", group: "layout", default: 12 },
|
|
1025
|
+
{ name: "peekScale", label: "\xC9chelle peek", type: "ratio", group: "layout", default: 0.05, min: 0, max: 0.2 },
|
|
1026
|
+
{ name: "cycle", label: "Boucle", type: "boolean", group: "behavior", default: false },
|
|
1027
|
+
{ name: "cardShadow", label: "Ombre cartes", type: "boolean", group: "style", default: true },
|
|
1028
|
+
{ name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
|
|
1029
|
+
{ name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: 24 },
|
|
1030
|
+
{ name: "containerWidth", label: "Largeur container", type: "string", group: "layout", default: "90%" },
|
|
1031
|
+
{ name: "containerHeight", label: "Hauteur container", type: "string", group: "layout", default: "75%" },
|
|
1032
|
+
{ name: "peekCount", label: "Cartes en arri\xE8re", type: "number", group: "layout", default: 2 },
|
|
1033
|
+
{ name: "peekRotation", label: "Rotation peek", type: "number", group: "layout", default: 0 },
|
|
1034
|
+
{ name: "direction", label: "Direction", type: "enum", group: "behavior", default: "horizontal", options: ["horizontal", "vertical"] },
|
|
1035
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
|
|
1036
|
+
]
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
id: "FlipLayout",
|
|
1040
|
+
label: "Flip",
|
|
1041
|
+
description: "Carousel avec flip recto/verso et swipe horizontal.",
|
|
1042
|
+
category: "card",
|
|
1043
|
+
themeMapping: { root: "background", surface: "card" },
|
|
1044
|
+
constants: {
|
|
1045
|
+
flipThreshold: 22,
|
|
1046
|
+
scaleFactor: 0.92,
|
|
1047
|
+
flipScaleFactor: 0.9,
|
|
1048
|
+
springNoBounce: { damping: 30, stiffness: 240, mass: 0.6 },
|
|
1049
|
+
springSnap: { damping: 35, stiffness: 300, mass: 0.5 },
|
|
1050
|
+
exitLeft: -700,
|
|
1051
|
+
exitRight: 700
|
|
1052
|
+
},
|
|
1053
|
+
slots: [
|
|
1054
|
+
{ name: "items", label: "Faces recto", required: true, kind: "items" },
|
|
1055
|
+
{ name: "backContent", label: "Faces verso", required: false, kind: "named-array" }
|
|
1056
|
+
],
|
|
1057
|
+
responsive: false,
|
|
1058
|
+
animated: true,
|
|
1059
|
+
previewItemCount: 3,
|
|
1060
|
+
dependencies: ["react-native-reanimated", "react-native-gesture-handler"],
|
|
1061
|
+
tags: ["flip", "card", "recto-verso", "flashcard"],
|
|
1062
|
+
props: [
|
|
1063
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1064
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1065
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1066
|
+
{ name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
|
|
1067
|
+
{ name: "flipPerspective", label: "Perspective flip", type: "number", group: "layout", default: 1200 },
|
|
1068
|
+
{ name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 40 },
|
|
1069
|
+
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
1070
|
+
{ name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: 20 },
|
|
1071
|
+
{ name: "cardAspectRatio", label: "Ratio carte (web)", type: "number", group: "layout", default: 0.5625, description: "Ratio largeur/hauteur sur web \u2014 omis = adaptatif" },
|
|
1072
|
+
{ name: "cardMaxHeight", label: "Hauteur max carte", type: "number", group: "layout", description: "Hauteur max en px \u2014 omis = pas de limite" },
|
|
1073
|
+
{ name: "dezoomDuration", label: "Dur\xE9e d\xE9zoom", type: "number", group: "behavior", default: 120 },
|
|
1074
|
+
{ name: "flipDuration", label: "Dur\xE9e flip", type: "number", group: "behavior", default: 320 },
|
|
1075
|
+
{ name: "slideOutDuration", label: "Dur\xE9e slide out", type: "number", group: "behavior", default: 140 }
|
|
1076
|
+
]
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
id: "SwiperLayout",
|
|
1080
|
+
label: "Swiper",
|
|
1081
|
+
description: "Carousel swipeable multi-directionnel avec pr\xE9chargement.",
|
|
1082
|
+
category: "card",
|
|
1083
|
+
themeMapping: { root: "background", surface: "card" },
|
|
1084
|
+
constants: {
|
|
1085
|
+
scaleFactor: 0.85
|
|
1086
|
+
},
|
|
1087
|
+
slots: [{ name: "items", label: "Slides", required: true, kind: "items" }],
|
|
1088
|
+
responsive: false,
|
|
1089
|
+
animated: true,
|
|
1090
|
+
previewItemCount: 4,
|
|
1091
|
+
dependencies: ["react-native-reanimated", "react-native-gesture-handler"],
|
|
1092
|
+
tags: ["swiper", "carousel", "slides", "stories"],
|
|
1093
|
+
props: [
|
|
1094
|
+
{ name: "enableSwipeUp", label: "Swipe haut", type: "boolean", group: "behavior", default: false },
|
|
1095
|
+
{ name: "enableSwipeDown", label: "Swipe bas", type: "boolean", group: "behavior", default: false },
|
|
1096
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1097
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1098
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1099
|
+
{ name: "cardBackground", label: "Fond carte", type: "color", group: "style", themeDefault: "card" },
|
|
1100
|
+
{ name: "cardBorderRadius", label: "Rayon carte", type: "radius", group: "style", default: "none" },
|
|
1101
|
+
{ name: "showCardCount", label: "Compteur cartes", type: "boolean", group: "behavior", default: false },
|
|
1102
|
+
{ name: "preloadRange", label: "Pr\xE9chargement", type: "number", group: "behavior", default: 2 },
|
|
1103
|
+
{ name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 40 },
|
|
1104
|
+
{ name: "padding", label: "Padding", type: "padding", group: "layout" },
|
|
1105
|
+
{ name: "springDamping", label: "Amortissement spring", type: "number", group: "behavior", default: 12 },
|
|
1106
|
+
{ name: "springStiffness", label: "Raideur spring", type: "number", group: "behavior", default: 160 },
|
|
1107
|
+
{ name: "cardCountBackground", label: "Fond compteur", type: "color", group: "style", default: "rgba(0,0,0,0.6)" },
|
|
1108
|
+
{ name: "cardCountTextColor", label: "Texte compteur", type: "color", group: "style", default: "#fff" }
|
|
1109
|
+
]
|
|
1110
|
+
},
|
|
1111
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
1112
|
+
// SCROLL
|
|
1113
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
1114
|
+
{
|
|
1115
|
+
id: "ScrollLayout",
|
|
1116
|
+
label: "Scroll",
|
|
1117
|
+
description: "Structure scrollable avec header/footer sticky ou inline.",
|
|
1118
|
+
category: "scroll",
|
|
1119
|
+
themeMapping: { root: "background", surface: "card" },
|
|
1120
|
+
slots: [
|
|
1121
|
+
{ name: "content", label: "Contenu", required: true, kind: "named" },
|
|
1122
|
+
{ name: "header", label: "Header", required: false, kind: "named" },
|
|
1123
|
+
{ name: "footer", label: "Footer", required: false, kind: "named" }
|
|
1124
|
+
],
|
|
1125
|
+
responsive: true,
|
|
1126
|
+
animated: false,
|
|
1127
|
+
tags: ["scroll", "sticky", "header", "footer", "safe-area"],
|
|
1128
|
+
props: [
|
|
1129
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 4 },
|
|
1130
|
+
{ name: "useSafeAreaInsets", label: "Safe area", type: "boolean", group: "behavior", default: true },
|
|
1131
|
+
{ name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 80 },
|
|
1132
|
+
{ name: "footerHeight", label: "Hauteur footer", type: "number", group: "layout", default: 60 },
|
|
1133
|
+
{ name: "scrollDirection", label: "Direction scroll", type: "enum", group: "behavior", default: "vertical", options: ["vertical", "horizontal", "both"] },
|
|
1134
|
+
{ name: "showScrollIndicator", label: "Indicateur scroll", type: "boolean", group: "behavior", default: false },
|
|
1135
|
+
{ name: "enableBounces", label: "Rebond", type: "boolean", group: "behavior", default: true },
|
|
1136
|
+
{ name: "stickyHeader", label: "Header sticky", type: "boolean", group: "behavior", default: false },
|
|
1137
|
+
{ name: "stickyFooter", label: "Footer sticky", type: "boolean", group: "behavior", default: false },
|
|
1138
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1139
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1140
|
+
{ name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
|
|
1141
|
+
{ name: "footerBackground", label: "Fond footer", type: "color", group: "style", themeDefault: "card" },
|
|
1142
|
+
{ name: "contentBackground", label: "Fond contenu", type: "color", group: "style" },
|
|
1143
|
+
{ name: "headerPadding", label: "Padding header", type: "spacing", group: "layout", default: 4 },
|
|
1144
|
+
{ name: "footerPadding", label: "Padding footer", type: "spacing", group: "layout", default: 4 },
|
|
1145
|
+
{ name: "mobileHeaderHeight", label: "Hauteur header mobile", type: "number", group: "layout", default: 60 },
|
|
1146
|
+
{ name: "mobileFooterHeight", label: "Hauteur footer mobile", type: "number", group: "layout", default: 50 }
|
|
1147
|
+
]
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
id: "HeaderContentLayout",
|
|
1151
|
+
label: "Header collapsible",
|
|
1152
|
+
description: "Header qui se r\xE9duit au scroll avec contenu principal.",
|
|
1153
|
+
category: "scroll",
|
|
1154
|
+
themeMapping: { root: "background", header: "card", content: "card" },
|
|
1155
|
+
slots: [
|
|
1156
|
+
{ name: "header", label: "Header", required: true, kind: "named" },
|
|
1157
|
+
{ name: "content", label: "Contenu", required: true, kind: "named" }
|
|
1158
|
+
],
|
|
1159
|
+
responsive: false,
|
|
1160
|
+
animated: true,
|
|
1161
|
+
dependencies: ["react-native-reanimated"],
|
|
1162
|
+
tags: ["header", "collapsible", "scroll", "parallax"],
|
|
1163
|
+
props: [
|
|
1164
|
+
{ name: "headerHeight", label: "Hauteur header", type: "number", group: "layout", default: 150 },
|
|
1165
|
+
{ name: "headerCollapsedHeight", label: "Hauteur header r\xE9duit", type: "number", group: "layout", default: 60 },
|
|
1166
|
+
{ name: "spacing", label: "Espacement", type: "spacing", group: "layout", default: 0 },
|
|
1167
|
+
{ name: "maxWidth", label: "Largeur max", type: "number", group: "layout" },
|
|
1168
|
+
{ name: "headerBackground", label: "Fond header", type: "color", group: "style", themeDefault: "card" },
|
|
1169
|
+
{ name: "headerBorderRadius", label: "Rayon header", type: "radius", group: "style", default: "none" },
|
|
1170
|
+
{ name: "contentBackground", label: "Fond contenu", type: "color", group: "style", themeDefault: "card" },
|
|
1171
|
+
{ name: "contentBorderRadius", label: "Rayon contenu", type: "radius", group: "style", default: "none" },
|
|
1172
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1173
|
+
{ name: "borderRadius", label: "Rayon bordure", type: "radius", group: "style", default: "none" },
|
|
1174
|
+
{ name: "padding", label: "Padding contenu", type: "spacing", group: "layout", default: 5 },
|
|
1175
|
+
{ name: "headerPadding", label: "Padding header", type: "spacing", group: "layout", default: 5 },
|
|
1176
|
+
{ name: "scrollEventThrottle", label: "Throttle scroll event", type: "number", group: "behavior", default: 16 }
|
|
1177
|
+
]
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
id: "ParallaxLayout",
|
|
1181
|
+
label: "Parallax",
|
|
1182
|
+
description: "Rang\xE9es horizontales scrollables avec synchronisation parallaxe. Les items sont distribu\xE9s automatiquement en rang\xE9es selon itemsPerRow.",
|
|
1183
|
+
category: "scroll",
|
|
1184
|
+
slots: [{ name: "items", label: "Items", required: true, kind: "items" }],
|
|
1185
|
+
responsive: false,
|
|
1186
|
+
animated: true,
|
|
1187
|
+
previewItemCount: 9,
|
|
1188
|
+
dependencies: ["react-native-reanimated"],
|
|
1189
|
+
tags: ["parallax", "horizontal", "sync", "showcase"],
|
|
1190
|
+
props: [
|
|
1191
|
+
// Layout
|
|
1192
|
+
{ name: "rowCount", label: "Nombre de rang\xE9es", type: "number", group: "layout", default: 3 },
|
|
1193
|
+
{ name: "itemWidth", label: "Largeur item", type: "number", group: "layout", default: 200 },
|
|
1194
|
+
{ name: "spacing", label: "Espacement vertical", type: "spacing", group: "layout", default: 4 },
|
|
1195
|
+
{ name: "itemSpacing", label: "Espacement items", type: "number", group: "layout", default: 12 },
|
|
1196
|
+
// Style
|
|
1197
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" },
|
|
1198
|
+
{ name: "rowBackground", label: "Fond rang\xE9e", type: "color", group: "style" },
|
|
1199
|
+
{ name: "itemBackground", label: "Fond item", type: "color", group: "style", themeDefault: "card" },
|
|
1200
|
+
{ name: "itemBorderRadius", label: "Rayon item", type: "radius", group: "style", default: "none" },
|
|
1201
|
+
{ name: "rowBorderRadius", label: "Rayon rang\xE9e", type: "radius", group: "style", default: "none" },
|
|
1202
|
+
// Behavior
|
|
1203
|
+
{ name: "alternateDirection", label: "Direction altern\xE9e", type: "boolean", group: "behavior", default: true },
|
|
1204
|
+
{ name: "bounces", label: "Rebond scroll", type: "boolean", group: "behavior", default: false },
|
|
1205
|
+
{ name: "showScrollIndicator", label: "Indicateur scroll", type: "boolean", group: "behavior", default: false },
|
|
1206
|
+
{ name: "scrollEventThrottle", label: "Throttle scroll", type: "number", group: "behavior", default: 16 }
|
|
1207
|
+
]
|
|
1208
|
+
},
|
|
1209
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
1210
|
+
// SPECIAL
|
|
1211
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
1212
|
+
{
|
|
1213
|
+
id: "TutoLayout",
|
|
1214
|
+
label: "Tutoriel",
|
|
1215
|
+
description: "Overlay de tutoriel avec zones highlight et gestes.",
|
|
1216
|
+
category: "special",
|
|
1217
|
+
themeMapping: { root: "background", accent: "primary", text: "foreground" },
|
|
1218
|
+
constants: {
|
|
1219
|
+
swipeThreshold: 40
|
|
1220
|
+
},
|
|
1221
|
+
slots: [{ name: "children", label: "Contenu \xE0 annoter", required: true, kind: "children" }],
|
|
1222
|
+
responsive: false,
|
|
1223
|
+
animated: true,
|
|
1224
|
+
dependencies: ["react-native-reanimated"],
|
|
1225
|
+
tags: ["tutorial", "onboarding", "highlight", "walkthrough"],
|
|
1226
|
+
props: [
|
|
1227
|
+
{ name: "overlayOpacity", label: "Opacit\xE9 overlay", type: "ratio", group: "style", default: 0.78, min: 0, max: 1 },
|
|
1228
|
+
{ name: "overlayColor", label: "Couleur overlay", type: "color", group: "style" },
|
|
1229
|
+
{ name: "showSkip", label: "Bouton ignorer", type: "boolean", group: "behavior", default: true },
|
|
1230
|
+
{ name: "nextLabel", label: "Label suivant", type: "string", group: "content", default: "Suivant" },
|
|
1231
|
+
{ name: "finishLabel", label: "Label terminer", type: "string", group: "content", default: "Terminer" },
|
|
1232
|
+
{ name: "accentColor", label: "Couleur accent", type: "color", group: "style", themeDefault: "primary" },
|
|
1233
|
+
{ name: "textBackground", label: "Fond texte", type: "color", group: "style", themeDefault: "background" },
|
|
1234
|
+
{ name: "textColor", label: "Couleur texte", type: "color", group: "style", themeDefault: "foreground" },
|
|
1235
|
+
{ name: "mutedTextColor", label: "Texte secondaire", type: "color", group: "style", themeDefault: "mutedForeground" },
|
|
1236
|
+
{ name: "steps", label: "\xC9tapes", type: "json", group: "content", default: [] }
|
|
1237
|
+
]
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
id: "SketchLayout",
|
|
1241
|
+
label: "Sketch (placeholder)",
|
|
1242
|
+
description: "Placeholder pour un canvas de dessin.",
|
|
1243
|
+
category: "special",
|
|
1244
|
+
slots: [],
|
|
1245
|
+
responsive: false,
|
|
1246
|
+
animated: false,
|
|
1247
|
+
tags: ["sketch", "draw", "canvas", "placeholder"],
|
|
1248
|
+
props: [
|
|
1249
|
+
{ name: "background", label: "Fond", type: "color", group: "style", themeDefault: "background" }
|
|
1250
|
+
]
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
id: "Swipe2ScreenLayout",
|
|
1254
|
+
label: "Swipe to Screen",
|
|
1255
|
+
description: "Layout de pr\xE9sentation avec swipe vers un \xE9cran projet\xE9 et QR code.",
|
|
1256
|
+
category: "special",
|
|
1257
|
+
slots: [{ name: "items", label: "Slides", required: true, kind: "items" }],
|
|
1258
|
+
responsive: false,
|
|
1259
|
+
animated: true,
|
|
1260
|
+
previewItemCount: 3,
|
|
1261
|
+
dependencies: ["react-native-gesture-handler", "expo-camera", "expo-haptics"],
|
|
1262
|
+
tags: ["swipe", "projection", "qr", "slides"],
|
|
1263
|
+
props: [
|
|
1264
|
+
{ name: "containerBackground", label: "Fond container", type: "color", group: "style", default: "#000" },
|
|
1265
|
+
{ name: "screenBackground", label: "Fond \xE9cran", type: "color", group: "style", default: "#fff" },
|
|
1266
|
+
{ name: "swipeThreshold", label: "Seuil swipe", type: "number", group: "behavior", default: 100 },
|
|
1267
|
+
{ name: "projectedScale", label: "Scale projet\xE9", type: "ratio", group: "behavior", default: 0.8, min: 0.5, max: 1 },
|
|
1268
|
+
{ name: "animationDuration", label: "Dur\xE9e animation", type: "number", group: "behavior", default: 300 },
|
|
1269
|
+
{ name: "slides", label: "Slides", type: "json", group: "content", default: [] }
|
|
1270
|
+
]
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
id: "SystemLayout",
|
|
1274
|
+
label: "System UI",
|
|
1275
|
+
description: "Wrapper syst\xE8me g\xE9rant StatusBar, SafeAreaView et NavigationBar.",
|
|
1276
|
+
category: "special",
|
|
1277
|
+
slots: [{ name: "children", label: "Contenu", required: true, kind: "children" }],
|
|
1278
|
+
responsive: false,
|
|
1279
|
+
animated: false,
|
|
1280
|
+
dependencies: ["expo-status-bar", "react-native-safe-area-context"],
|
|
1281
|
+
tags: ["system", "statusbar", "navigation-bar", "safe-area"],
|
|
1282
|
+
props: [
|
|
1283
|
+
{ name: "rootBackgroundColor", label: "Couleur fond racine", type: "color", group: "style", default: "#0c3ddbff" },
|
|
1284
|
+
{ name: "statusBarContentStyle", label: "Style barre statut", type: "enum", group: "behavior", default: "auto", options: ["light", "dark", "auto"] },
|
|
1285
|
+
{ name: "edges", label: "Bords safe area", type: "json", group: "behavior", default: ["top", "bottom", "left", "right"] },
|
|
1286
|
+
{ name: "navigationBarContentStyle", label: "Style barre navigation", type: "enum", group: "behavior", options: ["light", "dark"] }
|
|
1287
|
+
]
|
|
1288
|
+
}
|
|
1289
|
+
];
|
|
1290
|
+
|
|
1291
|
+
// foundation/layout/registry/components.ts
|
|
1292
|
+
function getComponentMeta(id) {
|
|
1293
|
+
return componentRegistry.find((m) => m.id === id);
|
|
1294
|
+
}
|
|
1295
|
+
var componentRegistry = [
|
|
1296
|
+
{
|
|
1297
|
+
id: "Button",
|
|
1298
|
+
label: "Button",
|
|
1299
|
+
description: "Pressable button with variant and size support.",
|
|
1300
|
+
category: "action",
|
|
1301
|
+
tags: ["button", "cta", "action", "pressable"],
|
|
1302
|
+
themeMapping: { bg: "primary", text: "primaryForeground" },
|
|
1303
|
+
sizes: ["sm", "md", "lg"],
|
|
1304
|
+
variants: [
|
|
1305
|
+
{
|
|
1306
|
+
name: "primary",
|
|
1307
|
+
label: "Primary",
|
|
1308
|
+
overrides: { bg: void 0, color: void 0, borderWidth: 0 }
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
name: "secondary",
|
|
1312
|
+
label: "Secondary",
|
|
1313
|
+
overrides: { bg: void 0, color: void 0, borderWidth: 0 }
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
name: "outline",
|
|
1317
|
+
label: "Outline",
|
|
1318
|
+
overrides: { bg: "transparent", borderWidth: 1 }
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
name: "ghost",
|
|
1322
|
+
label: "Ghost",
|
|
1323
|
+
overrides: { bg: "transparent", borderWidth: 0 }
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
name: "destructive",
|
|
1327
|
+
label: "Destructive",
|
|
1328
|
+
overrides: { bg: void 0, color: void 0, borderWidth: 0 }
|
|
1329
|
+
}
|
|
1330
|
+
],
|
|
1331
|
+
props: [
|
|
1332
|
+
{ name: "label", label: "Label", type: "string", group: "content", default: "Button" },
|
|
1333
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline", "ghost", "destructive"] },
|
|
1334
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
1335
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1336
|
+
{ name: "loading", label: "Loading", type: "boolean", group: "behavior", default: false },
|
|
1337
|
+
{ name: "fullWidth", label: "Full width", type: "boolean", group: "layout", default: false },
|
|
1338
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
|
|
1339
|
+
{ name: "iconPosition", label: "Icon position", type: "enum", group: "layout", default: "left", options: ["left", "right"] }
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
id: "TextInput",
|
|
1344
|
+
label: "Text Input",
|
|
1345
|
+
description: "Single-line text input with label, error state, and icon support.",
|
|
1346
|
+
category: "input",
|
|
1347
|
+
tags: ["input", "text", "field", "form"],
|
|
1348
|
+
themeMapping: { bg: "input", text: "foreground", border: "border", placeholder: "mutedForeground" },
|
|
1349
|
+
sizes: ["sm", "md", "lg"],
|
|
1350
|
+
variants: [
|
|
1351
|
+
{ name: "outlined", label: "Outlined", overrides: { borderWidth: 1, bg: "transparent" } },
|
|
1352
|
+
{ name: "filled", label: "Filled", overrides: { borderWidth: 0 } },
|
|
1353
|
+
{ name: "underline", label: "Underline", overrides: { borderWidth: 0, borderBottomWidth: 1, borderRadius: "none" } }
|
|
1354
|
+
],
|
|
1355
|
+
props: [
|
|
1356
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled", "underline"] },
|
|
1357
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
1358
|
+
{ name: "placeholder", label: "Placeholder", type: "string", group: "content" },
|
|
1359
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1360
|
+
{ name: "error", label: "Error message", type: "string", group: "content" },
|
|
1361
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1362
|
+
{ name: "secureEntry", label: "Password", type: "boolean", group: "behavior", default: false },
|
|
1363
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
|
|
1364
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
|
|
1365
|
+
{ name: "borderColor", label: "Border color", type: "color", group: "style", themeDefault: "border" }
|
|
1366
|
+
]
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
id: "TextArea",
|
|
1370
|
+
label: "Text Area",
|
|
1371
|
+
description: "Multi-line text input.",
|
|
1372
|
+
category: "input",
|
|
1373
|
+
tags: ["textarea", "multiline", "input", "form"],
|
|
1374
|
+
themeMapping: { bg: "input", text: "foreground", border: "border" },
|
|
1375
|
+
sizes: ["sm", "md", "lg"],
|
|
1376
|
+
variants: [
|
|
1377
|
+
{ name: "outlined", label: "Outlined", overrides: { borderWidth: 1, bg: "transparent" } },
|
|
1378
|
+
{ name: "filled", label: "Filled", overrides: { borderWidth: 0 } }
|
|
1379
|
+
],
|
|
1380
|
+
props: [
|
|
1381
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled"] },
|
|
1382
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
1383
|
+
{ name: "placeholder", label: "Placeholder", type: "string", group: "content" },
|
|
1384
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1385
|
+
{ name: "error", label: "Error message", type: "string", group: "content" },
|
|
1386
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1387
|
+
{ name: "numberOfLines", label: "Lines", type: "number", group: "layout", default: 4 },
|
|
1388
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
|
|
1389
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
|
|
1390
|
+
]
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
id: "Checkbox",
|
|
1394
|
+
label: "Checkbox",
|
|
1395
|
+
description: "Toggle checkbox with label.",
|
|
1396
|
+
category: "input",
|
|
1397
|
+
tags: ["checkbox", "toggle", "form", "boolean"],
|
|
1398
|
+
themeMapping: { active: "primary", border: "border" },
|
|
1399
|
+
sizes: ["sm", "md"],
|
|
1400
|
+
variants: [
|
|
1401
|
+
{ name: "square", label: "Square", overrides: { borderRadius: "sm" } },
|
|
1402
|
+
{ name: "rounded", label: "Rounded", overrides: { borderRadius: "full" } }
|
|
1403
|
+
],
|
|
1404
|
+
props: [
|
|
1405
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "square", options: ["square", "rounded"] },
|
|
1406
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
1407
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1408
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1409
|
+
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
|
|
1410
|
+
]
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
id: "Switch",
|
|
1414
|
+
label: "Switch",
|
|
1415
|
+
description: "Toggle switch.",
|
|
1416
|
+
category: "input",
|
|
1417
|
+
tags: ["switch", "toggle", "boolean"],
|
|
1418
|
+
themeMapping: { active: "primary", track: "muted" },
|
|
1419
|
+
sizes: ["sm", "md"],
|
|
1420
|
+
variants: [],
|
|
1421
|
+
props: [
|
|
1422
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
1423
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1424
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1425
|
+
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" },
|
|
1426
|
+
{ name: "trackColor", label: "Track color", type: "color", group: "style", themeDefault: "muted" }
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
id: "Badge",
|
|
1431
|
+
label: "Badge",
|
|
1432
|
+
description: "Small status indicator or label.",
|
|
1433
|
+
category: "display",
|
|
1434
|
+
tags: ["badge", "tag", "label", "status"],
|
|
1435
|
+
themeMapping: { bg: "primary", text: "primaryForeground" },
|
|
1436
|
+
sizes: ["sm", "md"],
|
|
1437
|
+
variants: [
|
|
1438
|
+
{ name: "solid", label: "Solid", overrides: {} },
|
|
1439
|
+
{ name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } },
|
|
1440
|
+
{ name: "subtle", label: "Subtle", overrides: {} }
|
|
1441
|
+
],
|
|
1442
|
+
props: [
|
|
1443
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1444
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "solid", options: ["solid", "outline", "subtle"] },
|
|
1445
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
1446
|
+
{ name: "color", label: "Color scheme", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "success", "warning", "error", "info"] },
|
|
1447
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" }
|
|
1448
|
+
]
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
id: "Avatar",
|
|
1452
|
+
label: "Avatar",
|
|
1453
|
+
description: "User avatar with image, initials, or icon fallback.",
|
|
1454
|
+
category: "display",
|
|
1455
|
+
tags: ["avatar", "user", "profile", "image"],
|
|
1456
|
+
themeMapping: { bg: "muted", text: "mutedForeground" },
|
|
1457
|
+
sizes: ["xs", "sm", "md", "lg", "xl"],
|
|
1458
|
+
variants: [
|
|
1459
|
+
{ name: "circle", label: "Circle", overrides: { borderRadius: "full" } },
|
|
1460
|
+
{ name: "square", label: "Square", overrides: { borderRadius: "md" } }
|
|
1461
|
+
],
|
|
1462
|
+
props: [
|
|
1463
|
+
{ name: "variant", label: "Shape", type: "enum", group: "style", default: "circle", options: ["circle", "square"] },
|
|
1464
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["xs", "sm", "md", "lg", "xl"] },
|
|
1465
|
+
{ name: "source", label: "Image source", type: "string", group: "content" },
|
|
1466
|
+
{ name: "initials", label: "Initials", type: "string", group: "content" },
|
|
1467
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" }
|
|
1468
|
+
]
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
id: "IconButton",
|
|
1472
|
+
label: "Icon Button",
|
|
1473
|
+
description: "Pressable icon-only button.",
|
|
1474
|
+
category: "action",
|
|
1475
|
+
tags: ["icon", "button", "action"],
|
|
1476
|
+
themeMapping: { bg: "muted", icon: "foreground" },
|
|
1477
|
+
sizes: ["sm", "md", "lg"],
|
|
1478
|
+
variants: [
|
|
1479
|
+
{ name: "filled", label: "Filled", overrides: {} },
|
|
1480
|
+
{ name: "ghost", label: "Ghost", overrides: { bg: "transparent" } },
|
|
1481
|
+
{ name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } }
|
|
1482
|
+
],
|
|
1483
|
+
props: [
|
|
1484
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "ghost", options: ["filled", "ghost", "outline"] },
|
|
1485
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
1486
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1487
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
|
|
1488
|
+
{ name: "color", label: "Icon color", type: "color", group: "style", themeDefault: "foreground" }
|
|
1489
|
+
]
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
id: "Chip",
|
|
1493
|
+
label: "Chip",
|
|
1494
|
+
description: "Selectable chip / tag with optional close action.",
|
|
1495
|
+
category: "input",
|
|
1496
|
+
tags: ["chip", "tag", "filter", "selectable"],
|
|
1497
|
+
themeMapping: { bg: "muted", text: "foreground", active: "primary" },
|
|
1498
|
+
sizes: ["sm", "md"],
|
|
1499
|
+
variants: [
|
|
1500
|
+
{ name: "filled", label: "Filled", overrides: {} },
|
|
1501
|
+
{ name: "outline", label: "Outline", overrides: { bg: "transparent", borderWidth: 1 } }
|
|
1502
|
+
],
|
|
1503
|
+
props: [
|
|
1504
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1505
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "filled", options: ["filled", "outline"] },
|
|
1506
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
1507
|
+
{ name: "selected", label: "Selected", type: "boolean", group: "behavior", default: false },
|
|
1508
|
+
{ name: "closable", label: "Closable", type: "boolean", group: "behavior", default: false },
|
|
1509
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1510
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" }
|
|
1511
|
+
]
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
id: "Spinner",
|
|
1515
|
+
label: "Spinner",
|
|
1516
|
+
description: "Loading indicator.",
|
|
1517
|
+
category: "feedback",
|
|
1518
|
+
tags: ["spinner", "loading", "indicator"],
|
|
1519
|
+
themeMapping: { color: "primary" },
|
|
1520
|
+
sizes: ["sm", "md", "lg"],
|
|
1521
|
+
variants: [],
|
|
1522
|
+
props: [
|
|
1523
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
1524
|
+
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" }
|
|
1525
|
+
]
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
id: "Select",
|
|
1529
|
+
label: "Select",
|
|
1530
|
+
description: "Dropdown select input with options.",
|
|
1531
|
+
category: "input",
|
|
1532
|
+
tags: ["select", "dropdown", "picker", "form"],
|
|
1533
|
+
themeMapping: { bg: "input", text: "foreground", border: "border" },
|
|
1534
|
+
sizes: ["sm", "md", "lg"],
|
|
1535
|
+
variants: [
|
|
1536
|
+
{ name: "outlined", label: "Outlined", overrides: { borderWidth: 1 } },
|
|
1537
|
+
{ name: "filled", label: "Filled", overrides: { borderWidth: 0 } }
|
|
1538
|
+
],
|
|
1539
|
+
props: [
|
|
1540
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled"] },
|
|
1541
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
1542
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1543
|
+
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Select..." },
|
|
1544
|
+
{ name: "error", label: "Error message", type: "string", group: "content" },
|
|
1545
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1546
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" },
|
|
1547
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
|
|
1548
|
+
]
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
id: "RadioGroup",
|
|
1552
|
+
label: "Radio Group",
|
|
1553
|
+
description: "Group of radio buttons for single selection.",
|
|
1554
|
+
category: "input",
|
|
1555
|
+
tags: ["radio", "group", "select", "form"],
|
|
1556
|
+
themeMapping: { active: "primary", border: "border", text: "foreground" },
|
|
1557
|
+
sizes: ["sm", "md"],
|
|
1558
|
+
variants: [],
|
|
1559
|
+
props: [
|
|
1560
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
1561
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1562
|
+
{ name: "direction", label: "Direction", type: "enum", group: "layout", default: "column", options: ["column", "row"] },
|
|
1563
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
|
|
1564
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1565
|
+
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
|
|
1566
|
+
]
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
id: "DatePicker",
|
|
1570
|
+
label: "Date Picker",
|
|
1571
|
+
description: "Date/time picker input.",
|
|
1572
|
+
category: "input",
|
|
1573
|
+
tags: ["date", "time", "picker", "calendar", "form"],
|
|
1574
|
+
themeMapping: { bg: "input", text: "foreground", border: "border", accent: "primary" },
|
|
1575
|
+
sizes: ["sm", "md", "lg"],
|
|
1576
|
+
variants: [],
|
|
1577
|
+
props: [
|
|
1578
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
1579
|
+
{ name: "mode", label: "Mode", type: "enum", group: "behavior", default: "date", options: ["date", "time", "datetime"] },
|
|
1580
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1581
|
+
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Select date" },
|
|
1582
|
+
{ name: "error", label: "Error message", type: "string", group: "content" },
|
|
1583
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1584
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" }
|
|
1585
|
+
]
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
id: "FilePicker",
|
|
1589
|
+
label: "File Picker",
|
|
1590
|
+
description: "File/image upload input.",
|
|
1591
|
+
category: "input",
|
|
1592
|
+
tags: ["file", "upload", "image", "picker", "form"],
|
|
1593
|
+
themeMapping: { bg: "muted", text: "foreground", border: "border", accent: "primary" },
|
|
1594
|
+
sizes: ["sm", "md", "lg"],
|
|
1595
|
+
variants: [
|
|
1596
|
+
{ name: "button", label: "Button", overrides: {} },
|
|
1597
|
+
{ name: "dropzone", label: "Drop Zone", overrides: {} }
|
|
1598
|
+
],
|
|
1599
|
+
props: [
|
|
1600
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "button", options: ["button", "dropzone"] },
|
|
1601
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
1602
|
+
{ name: "accept", label: "Accept types", type: "string", group: "behavior", default: "image/*" },
|
|
1603
|
+
{ name: "multiple", label: "Multiple", type: "boolean", group: "behavior", default: false },
|
|
1604
|
+
{ name: "label", label: "Label", type: "string", group: "content", default: "Upload file" },
|
|
1605
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1606
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "md" }
|
|
1607
|
+
]
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
id: "Slider",
|
|
1611
|
+
label: "Slider",
|
|
1612
|
+
description: "Range slider input.",
|
|
1613
|
+
category: "input",
|
|
1614
|
+
tags: ["slider", "range", "input", "form"],
|
|
1615
|
+
themeMapping: { active: "primary", track: "muted" },
|
|
1616
|
+
sizes: ["sm", "md"],
|
|
1617
|
+
variants: [],
|
|
1618
|
+
props: [
|
|
1619
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
1620
|
+
{ name: "min", label: "Min", type: "number", group: "behavior", default: 0 },
|
|
1621
|
+
{ name: "max", label: "Max", type: "number", group: "behavior", default: 100 },
|
|
1622
|
+
{ name: "step", label: "Step", type: "number", group: "behavior", default: 1 },
|
|
1623
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1624
|
+
{ name: "showValue", label: "Show value", type: "boolean", group: "behavior", default: true },
|
|
1625
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1626
|
+
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" }
|
|
1627
|
+
]
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
id: "Image",
|
|
1631
|
+
label: "Image",
|
|
1632
|
+
description: "Image component with source, resize mode, and placeholder.",
|
|
1633
|
+
category: "display",
|
|
1634
|
+
tags: ["image", "photo", "picture", "media"],
|
|
1635
|
+
themeMapping: { bg: "muted" },
|
|
1636
|
+
sizes: [],
|
|
1637
|
+
variants: [],
|
|
1638
|
+
props: [
|
|
1639
|
+
{ name: "source", label: "Source URL", type: "string", group: "content" },
|
|
1640
|
+
{ name: "alt", label: "Alt text", type: "string", group: "content" },
|
|
1641
|
+
{ name: "resizeMode", label: "Resize mode", type: "enum", group: "style", default: "cover", options: ["cover", "contain", "stretch", "center"] },
|
|
1642
|
+
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
1643
|
+
{ name: "height", label: "Height", type: "number", group: "layout", default: 200 },
|
|
1644
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
|
|
1645
|
+
{ name: "background", label: "Placeholder bg", type: "color", group: "style", themeDefault: "muted" }
|
|
1646
|
+
]
|
|
1647
|
+
},
|
|
1648
|
+
{
|
|
1649
|
+
id: "Icon",
|
|
1650
|
+
label: "Icon",
|
|
1651
|
+
description: "Vector icon from Feather icon set.",
|
|
1652
|
+
category: "display",
|
|
1653
|
+
tags: ["icon", "feather", "vector", "symbol"],
|
|
1654
|
+
themeMapping: { color: "foreground" },
|
|
1655
|
+
sizes: ["sm", "md", "lg"],
|
|
1656
|
+
variants: [],
|
|
1657
|
+
props: [
|
|
1658
|
+
{ name: "name", label: "Icon name", type: "string", group: "content", default: "star" },
|
|
1659
|
+
{ name: "size", label: "Size", type: "number", group: "style", default: 24 },
|
|
1660
|
+
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" }
|
|
1661
|
+
]
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
id: "Gradient",
|
|
1665
|
+
label: "Gradient",
|
|
1666
|
+
description: "Linear gradient background container.",
|
|
1667
|
+
category: "display",
|
|
1668
|
+
tags: ["gradient", "linear", "background", "color"],
|
|
1669
|
+
themeMapping: {},
|
|
1670
|
+
sizes: [],
|
|
1671
|
+
variants: [],
|
|
1672
|
+
props: [
|
|
1673
|
+
{ name: "startColor", label: "Start color", type: "color", group: "style", default: "#3b82f6" },
|
|
1674
|
+
{ name: "endColor", label: "End color", type: "color", group: "style", default: "#8b5cf6" },
|
|
1675
|
+
{ name: "direction", label: "Direction", type: "enum", group: "style", default: "vertical", options: ["vertical", "horizontal", "diagonal"] },
|
|
1676
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
|
|
1677
|
+
{ name: "height", label: "Height", type: "number", group: "layout" },
|
|
1678
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout" }
|
|
1679
|
+
]
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
id: "Separator",
|
|
1683
|
+
label: "Separator",
|
|
1684
|
+
description: "Visual separator with optional label.",
|
|
1685
|
+
category: "display",
|
|
1686
|
+
tags: ["separator", "divider", "or", "line"],
|
|
1687
|
+
themeMapping: { color: "border", text: "mutedForeground" },
|
|
1688
|
+
sizes: [],
|
|
1689
|
+
variants: [],
|
|
1690
|
+
props: [
|
|
1691
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
1692
|
+
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "border" },
|
|
1693
|
+
{ name: "thickness", label: "Thickness", type: "number", group: "style", default: 1 },
|
|
1694
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 }
|
|
1695
|
+
]
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
id: "Text",
|
|
1699
|
+
label: "Text",
|
|
1700
|
+
description: "Text display component with typography control.",
|
|
1701
|
+
category: "display",
|
|
1702
|
+
tags: ["text", "label", "paragraph", "heading", "typography"],
|
|
1703
|
+
themeMapping: { color: "foreground" },
|
|
1704
|
+
sizes: [],
|
|
1705
|
+
variants: [],
|
|
1706
|
+
props: [
|
|
1707
|
+
{ name: "text", label: "Text", type: "string", group: "content", default: "Text" },
|
|
1708
|
+
{ name: "fontSize", label: "Font size", type: "number", group: "style", default: 14 },
|
|
1709
|
+
{ name: "fontWeight", label: "Font weight", type: "enum", group: "style", default: "400", options: ["300", "400", "500", "600", "700", "800"] },
|
|
1710
|
+
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" },
|
|
1711
|
+
{ name: "textAlign", label: "Align", type: "enum", group: "style", default: "left", options: ["left", "center", "right"] },
|
|
1712
|
+
{ name: "numberOfLines", label: "Max lines", type: "number", group: "behavior" }
|
|
1713
|
+
]
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
id: "Video",
|
|
1717
|
+
label: "Video",
|
|
1718
|
+
description: "Video player with controls, autoplay, and loop.",
|
|
1719
|
+
category: "media",
|
|
1720
|
+
tags: ["video", "player", "media", "stream"],
|
|
1721
|
+
themeMapping: { bg: "muted" },
|
|
1722
|
+
sizes: [],
|
|
1723
|
+
variants: [],
|
|
1724
|
+
props: [
|
|
1725
|
+
{ name: "source", label: "Source URL", type: "string", group: "content" },
|
|
1726
|
+
{ name: "poster", label: "Poster URL", type: "string", group: "content" },
|
|
1727
|
+
{ name: "autoplay", label: "Autoplay", type: "boolean", group: "behavior", default: false },
|
|
1728
|
+
{ name: "loop", label: "Loop", type: "boolean", group: "behavior", default: false },
|
|
1729
|
+
{ name: "muted", label: "Muted", type: "boolean", group: "behavior", default: true },
|
|
1730
|
+
{ name: "controls", label: "Show controls", type: "boolean", group: "behavior", default: true },
|
|
1731
|
+
{ name: "resizeMode", label: "Resize mode", type: "enum", group: "style", default: "contain", options: ["cover", "contain", "stretch"] },
|
|
1732
|
+
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
1733
|
+
{ name: "height", label: "Height", type: "number", group: "layout", default: 220 },
|
|
1734
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" }
|
|
1735
|
+
]
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
id: "Camera",
|
|
1739
|
+
label: "Camera",
|
|
1740
|
+
description: "Camera viewfinder for photo/video capture.",
|
|
1741
|
+
category: "media",
|
|
1742
|
+
tags: ["camera", "photo", "capture", "scan"],
|
|
1743
|
+
themeMapping: { bg: "muted" },
|
|
1744
|
+
sizes: [],
|
|
1745
|
+
variants: [],
|
|
1746
|
+
props: [
|
|
1747
|
+
{ name: "facing", label: "Facing", type: "enum", group: "behavior", default: "back", options: ["front", "back"] },
|
|
1748
|
+
{ name: "flash", label: "Flash", type: "enum", group: "behavior", default: "off", options: ["off", "on", "auto"] },
|
|
1749
|
+
{ name: "enableTorch", label: "Torch", type: "boolean", group: "behavior", default: false },
|
|
1750
|
+
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
1751
|
+
{ name: "height", label: "Height", type: "number", group: "layout", default: 300 },
|
|
1752
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
|
|
1753
|
+
]
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
id: "WebView",
|
|
1757
|
+
label: "WebView",
|
|
1758
|
+
description: "Embedded web browser view.",
|
|
1759
|
+
category: "media",
|
|
1760
|
+
tags: ["webview", "browser", "iframe", "embed"],
|
|
1761
|
+
themeMapping: { bg: "muted" },
|
|
1762
|
+
sizes: [],
|
|
1763
|
+
variants: [],
|
|
1764
|
+
props: [
|
|
1765
|
+
{ name: "url", label: "URL", type: "string", group: "content", default: "https://expo.dev" },
|
|
1766
|
+
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
1767
|
+
{ name: "height", label: "Height", type: "number", group: "layout", default: 400 },
|
|
1768
|
+
{ name: "scrollEnabled", label: "Scroll", type: "boolean", group: "behavior", default: true },
|
|
1769
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" }
|
|
1770
|
+
]
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
id: "MapView",
|
|
1774
|
+
label: "Map",
|
|
1775
|
+
description: "Interactive map view with markers.",
|
|
1776
|
+
category: "media",
|
|
1777
|
+
tags: ["map", "location", "gps", "marker"],
|
|
1778
|
+
themeMapping: {},
|
|
1779
|
+
sizes: [],
|
|
1780
|
+
variants: [],
|
|
1781
|
+
props: [
|
|
1782
|
+
{ name: "latitude", label: "Latitude", type: "number", group: "content", default: 48.8566 },
|
|
1783
|
+
{ name: "longitude", label: "Longitude", type: "number", group: "content", default: 2.3522 },
|
|
1784
|
+
{ name: "zoom", label: "Zoom", type: "number", group: "content", default: 12 },
|
|
1785
|
+
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
1786
|
+
{ name: "height", label: "Height", type: "number", group: "layout", default: 300 },
|
|
1787
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
|
|
1788
|
+
{ name: "showsUserLocation", label: "User location", type: "boolean", group: "behavior", default: true }
|
|
1789
|
+
]
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
id: "BlurView",
|
|
1793
|
+
label: "Blur View",
|
|
1794
|
+
description: "Blurred background overlay container.",
|
|
1795
|
+
category: "display",
|
|
1796
|
+
tags: ["blur", "glass", "frosted", "overlay"],
|
|
1797
|
+
themeMapping: {},
|
|
1798
|
+
sizes: [],
|
|
1799
|
+
variants: [],
|
|
1800
|
+
props: [
|
|
1801
|
+
{ name: "intensity", label: "Intensity", type: "number", group: "style", default: 50 },
|
|
1802
|
+
{ name: "tint", label: "Tint", type: "enum", group: "style", default: "default", options: ["default", "light", "dark"] },
|
|
1803
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
|
|
1804
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout" }
|
|
1805
|
+
]
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
id: "LottieAnimation",
|
|
1809
|
+
label: "Lottie",
|
|
1810
|
+
description: "Lottie animation player.",
|
|
1811
|
+
category: "media",
|
|
1812
|
+
tags: ["lottie", "animation", "motion", "json"],
|
|
1813
|
+
themeMapping: {},
|
|
1814
|
+
sizes: [],
|
|
1815
|
+
variants: [],
|
|
1816
|
+
props: [
|
|
1817
|
+
{ name: "source", label: "Source URL", type: "string", group: "content" },
|
|
1818
|
+
{ name: "autoPlay", label: "Auto play", type: "boolean", group: "behavior", default: true },
|
|
1819
|
+
{ name: "loop", label: "Loop", type: "boolean", group: "behavior", default: true },
|
|
1820
|
+
{ name: "speed", label: "Speed", type: "number", group: "behavior", default: 1 },
|
|
1821
|
+
{ name: "width", label: "Width", type: "number", group: "layout", default: 200 },
|
|
1822
|
+
{ name: "height", label: "Height", type: "number", group: "layout", default: 200 }
|
|
1823
|
+
]
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
id: "ProgressBar",
|
|
1827
|
+
label: "Progress Bar",
|
|
1828
|
+
description: "Horizontal progress indicator.",
|
|
1829
|
+
category: "feedback",
|
|
1830
|
+
tags: ["progress", "bar", "loading", "percentage"],
|
|
1831
|
+
themeMapping: { active: "primary", track: "muted" },
|
|
1832
|
+
sizes: ["sm", "md"],
|
|
1833
|
+
variants: [],
|
|
1834
|
+
props: [
|
|
1835
|
+
{ name: "progress", label: "Progress (0-1)", type: "number", group: "content", default: 0.5 },
|
|
1836
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md"] },
|
|
1837
|
+
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" },
|
|
1838
|
+
{ name: "trackColor", label: "Track color", type: "color", group: "style", themeDefault: "muted" },
|
|
1839
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
|
|
1840
|
+
{ name: "showLabel", label: "Show label", type: "boolean", group: "behavior", default: false }
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
id: "Accordion",
|
|
1845
|
+
label: "Accordion",
|
|
1846
|
+
description: "Expandable/collapsible content section.",
|
|
1847
|
+
category: "display",
|
|
1848
|
+
tags: ["accordion", "collapse", "expand", "faq"],
|
|
1849
|
+
themeMapping: { bg: "card", text: "foreground", border: "border" },
|
|
1850
|
+
sizes: [],
|
|
1851
|
+
variants: [],
|
|
1852
|
+
props: [
|
|
1853
|
+
{ name: "title", label: "Title", type: "string", group: "content", default: "Section" },
|
|
1854
|
+
{ name: "defaultOpen", label: "Default open", type: "boolean", group: "behavior", default: false },
|
|
1855
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
1856
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
|
|
1857
|
+
{ name: "borderColor", label: "Border color", type: "color", group: "style", themeDefault: "border" }
|
|
1858
|
+
]
|
|
1859
|
+
},
|
|
1860
|
+
{
|
|
1861
|
+
id: "Tabs",
|
|
1862
|
+
label: "Tabs",
|
|
1863
|
+
description: "Tab navigation with content panels.",
|
|
1864
|
+
category: "navigation",
|
|
1865
|
+
tags: ["tabs", "navigation", "panel", "switch"],
|
|
1866
|
+
themeMapping: { active: "primary", bg: "card", border: "border" },
|
|
1867
|
+
sizes: [],
|
|
1868
|
+
variants: [],
|
|
1869
|
+
props: [
|
|
1870
|
+
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "primary" },
|
|
1871
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
1872
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "none" },
|
|
1873
|
+
{ name: "position", label: "Position", type: "enum", group: "layout", default: "top", options: ["top", "bottom"] }
|
|
1874
|
+
]
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
id: "Pressable",
|
|
1878
|
+
label: "Pressable",
|
|
1879
|
+
description: "Generic pressable wrapper with feedback.",
|
|
1880
|
+
category: "action",
|
|
1881
|
+
tags: ["pressable", "touchable", "tap", "click"],
|
|
1882
|
+
themeMapping: {},
|
|
1883
|
+
sizes: [],
|
|
1884
|
+
variants: [],
|
|
1885
|
+
props: [
|
|
1886
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
1887
|
+
{ name: "opacity", label: "Press opacity", type: "number", group: "style", default: 0.7 }
|
|
1888
|
+
]
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
id: "FlatList",
|
|
1892
|
+
label: "List",
|
|
1893
|
+
description: "Scrollable list with virtualization.",
|
|
1894
|
+
category: "display",
|
|
1895
|
+
tags: ["list", "flatlist", "scroll", "virtualized"],
|
|
1896
|
+
themeMapping: { bg: "background" },
|
|
1897
|
+
sizes: [],
|
|
1898
|
+
variants: [],
|
|
1899
|
+
props: [
|
|
1900
|
+
{ name: "horizontal", label: "Horizontal", type: "boolean", group: "layout", default: false },
|
|
1901
|
+
{ name: "numColumns", label: "Columns", type: "number", group: "layout", default: 1 },
|
|
1902
|
+
{ name: "spacing", label: "Item spacing", type: "spacing", group: "layout", default: 0 },
|
|
1903
|
+
{ name: "showsScrollIndicator", label: "Scroll indicator", type: "boolean", group: "behavior", default: true },
|
|
1904
|
+
{ name: "background", label: "Background", type: "color", group: "style" }
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
];
|
|
1908
|
+
|
|
1909
|
+
// foundation/layout/registry/blocks/existing.ts
|
|
1910
|
+
var existingBlocks = [
|
|
1911
|
+
{
|
|
1912
|
+
id: "AuthFormBlock",
|
|
1913
|
+
label: "Auth Form",
|
|
1914
|
+
description: "Login/signup form with email, password, submit button, and optional social providers.",
|
|
1915
|
+
category: "auth",
|
|
1916
|
+
tags: ["auth", "login", "signup", "form", "email", "password"],
|
|
1917
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary" },
|
|
1918
|
+
components: ["TextInput", "Button"],
|
|
1919
|
+
slots: [
|
|
1920
|
+
{ name: "header", label: "Header (logo/title)", required: false, kind: "named" },
|
|
1921
|
+
{ name: "footer", label: "Footer (links)", required: false, kind: "named" },
|
|
1922
|
+
{ name: "social", label: "Social providers", required: false, kind: "named-array" }
|
|
1923
|
+
],
|
|
1924
|
+
props: [
|
|
1925
|
+
{ name: "mode", label: "Mode", type: "enum", group: "behavior", default: "login", options: ["login", "signup", "forgot"] },
|
|
1926
|
+
{ name: "showRemember", label: "Remember me", type: "boolean", group: "behavior", default: true },
|
|
1927
|
+
{ name: "showForgot", label: "Forgot password", type: "boolean", group: "behavior", default: true },
|
|
1928
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
|
|
1929
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
1930
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
1931
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
|
|
1932
|
+
{ name: "buttonVariant", label: "Button variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline"] },
|
|
1933
|
+
{ name: "inputVariant", label: "Input variant", type: "enum", group: "style", default: "outlined", options: ["outlined", "filled", "underline"] },
|
|
1934
|
+
{ name: "submitLabel", label: "Submit label", type: "string", group: "content", default: "Sign In" },
|
|
1935
|
+
{ name: "forgotLabel", label: "Forgot label", type: "string", group: "content", default: "Forgot password?" }
|
|
1936
|
+
]
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
id: "AvatarBlock",
|
|
1940
|
+
label: "Avatar Block",
|
|
1941
|
+
description: "Avatar with name, subtitle, and optional action.",
|
|
1942
|
+
category: "profile",
|
|
1943
|
+
tags: ["avatar", "user", "profile", "name"],
|
|
1944
|
+
themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground" },
|
|
1945
|
+
components: ["Avatar"],
|
|
1946
|
+
slots: [{ name: "action", label: "Action button", required: false, kind: "named" }],
|
|
1947
|
+
props: [
|
|
1948
|
+
{ name: "name", label: "Name", type: "string", group: "content" },
|
|
1949
|
+
{ name: "subtitle", label: "Subtitle", type: "string", group: "content" },
|
|
1950
|
+
{ name: "source", label: "Image URL", type: "string", group: "content" },
|
|
1951
|
+
{ name: "initials", label: "Initials", type: "string", group: "content" },
|
|
1952
|
+
{ name: "size", label: "Avatar size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg", "xl"] },
|
|
1953
|
+
{ name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
|
|
1954
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
1955
|
+
{ name: "showSubtitle", label: "Show subtitle", type: "boolean", group: "behavior", default: true }
|
|
1956
|
+
]
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
id: "HeaderBlock",
|
|
1960
|
+
label: "Header Bar",
|
|
1961
|
+
description: "Top navigation bar with title, back button, and right actions.",
|
|
1962
|
+
category: "navigation",
|
|
1963
|
+
tags: ["header", "navbar", "topbar", "navigation", "back"],
|
|
1964
|
+
themeMapping: { bg: "card", text: "foreground", border: "border" },
|
|
1965
|
+
components: ["IconButton"],
|
|
1966
|
+
slots: [
|
|
1967
|
+
{ name: "left", label: "Left actions", required: false, kind: "named" },
|
|
1968
|
+
{ name: "title", label: "Title area", required: true, kind: "named" },
|
|
1969
|
+
{ name: "right", label: "Right actions", required: false, kind: "named-array" }
|
|
1970
|
+
],
|
|
1971
|
+
props: [
|
|
1972
|
+
{ name: "height", label: "Height", type: "number", group: "layout", default: 56 },
|
|
1973
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
1974
|
+
{ name: "borderBottom", label: "Bottom border", type: "boolean", group: "style", default: true },
|
|
1975
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
1976
|
+
{ name: "transparent", label: "Transparent", type: "boolean", group: "style", default: false }
|
|
1977
|
+
]
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
id: "SearchBarBlock",
|
|
1981
|
+
label: "Search Bar",
|
|
1982
|
+
description: "Search input with icon and optional filter button.",
|
|
1983
|
+
category: "navigation",
|
|
1984
|
+
tags: ["search", "input", "filter", "bar"],
|
|
1985
|
+
themeMapping: { bg: "muted", text: "foreground", placeholder: "mutedForeground" },
|
|
1986
|
+
components: ["TextInput", "IconButton"],
|
|
1987
|
+
slots: [{ name: "filters", label: "Filter actions", required: false, kind: "named-array" }],
|
|
1988
|
+
props: [
|
|
1989
|
+
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Search..." },
|
|
1990
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
|
|
1991
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
|
|
1992
|
+
{ name: "showFilter", label: "Show filter", type: "boolean", group: "behavior", default: false },
|
|
1993
|
+
{ name: "inputVariant", label: "Input variant", type: "enum", group: "style", default: "filled", options: ["outlined", "filled"] }
|
|
1994
|
+
]
|
|
1995
|
+
},
|
|
1996
|
+
{
|
|
1997
|
+
id: "StatCardBlock",
|
|
1998
|
+
label: "Stat Card",
|
|
1999
|
+
description: "Metric card with value, label, trend indicator, and optional icon.",
|
|
2000
|
+
category: "data",
|
|
2001
|
+
tags: ["stat", "metric", "card", "kpi", "dashboard"],
|
|
2002
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
2003
|
+
components: ["Badge"],
|
|
2004
|
+
slots: [{ name: "icon", label: "Icon", required: false, kind: "named" }],
|
|
2005
|
+
props: [
|
|
2006
|
+
{ name: "value", label: "Value", type: "string", group: "content" },
|
|
2007
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2008
|
+
{ name: "trend", label: "Trend", type: "string", group: "content" },
|
|
2009
|
+
{ name: "trendUp", label: "Trend up", type: "boolean", group: "content", default: true },
|
|
2010
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2011
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2012
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
2013
|
+
{ name: "showTrend", label: "Show trend", type: "boolean", group: "behavior", default: true },
|
|
2014
|
+
{ name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" }
|
|
2015
|
+
]
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
id: "EmptyStateBlock",
|
|
2019
|
+
label: "Empty State",
|
|
2020
|
+
description: "Placeholder for empty lists or screens with icon, title, description, and action.",
|
|
2021
|
+
category: "feedback",
|
|
2022
|
+
tags: ["empty", "placeholder", "no-data", "illustration"],
|
|
2023
|
+
themeMapping: { text: "mutedForeground", accent: "primary" },
|
|
2024
|
+
components: ["Button"],
|
|
2025
|
+
slots: [{ name: "illustration", label: "Illustration", required: false, kind: "named" }],
|
|
2026
|
+
props: [
|
|
2027
|
+
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2028
|
+
{ name: "description", label: "Description", type: "string", group: "content" },
|
|
2029
|
+
{ name: "actionLabel", label: "Action label", type: "string", group: "content", default: "Get started" },
|
|
2030
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
|
|
2031
|
+
{ name: "showAction", label: "Show action", type: "boolean", group: "behavior", default: true },
|
|
2032
|
+
{ name: "actionVariant", label: "Action variant", type: "enum", group: "style", default: "primary", options: ["primary", "outline", "ghost"] }
|
|
2033
|
+
]
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
id: "ListItemBlock",
|
|
2037
|
+
label: "List Item",
|
|
2038
|
+
description: "Standard list row with leading icon/avatar, title, subtitle, and trailing action.",
|
|
2039
|
+
category: "content",
|
|
2040
|
+
tags: ["list", "item", "row", "cell"],
|
|
2041
|
+
themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground", border: "border" },
|
|
2042
|
+
components: ["Avatar", "IconButton"],
|
|
2043
|
+
slots: [
|
|
2044
|
+
{ name: "leading", label: "Leading element", required: false, kind: "named" },
|
|
2045
|
+
{ name: "trailing", label: "Trailing element", required: false, kind: "named" }
|
|
2046
|
+
],
|
|
2047
|
+
props: [
|
|
2048
|
+
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2049
|
+
{ name: "subtitle", label: "Subtitle", type: "string", group: "content" },
|
|
2050
|
+
{ name: "height", label: "Height", type: "number", group: "layout", default: 56 },
|
|
2051
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
2052
|
+
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
|
|
2053
|
+
{ name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true },
|
|
2054
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2055
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 }
|
|
2056
|
+
]
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
id: "FormBlock",
|
|
2060
|
+
label: "Form",
|
|
2061
|
+
description: "Form container with validation, submit handling, and field layout.",
|
|
2062
|
+
category: "form",
|
|
2063
|
+
tags: ["form", "validation", "submit", "fields"],
|
|
2064
|
+
themeMapping: { bg: "card", text: "foreground", error: "destructive" },
|
|
2065
|
+
components: ["TextInput", "Button", "Select", "Checkbox", "Switch"],
|
|
2066
|
+
slots: [
|
|
2067
|
+
{ name: "children", label: "Form fields", required: true, kind: "children" },
|
|
2068
|
+
{ name: "header", label: "Form header", required: false, kind: "named" },
|
|
2069
|
+
{ name: "footer", label: "Form footer", required: false, kind: "named" }
|
|
2070
|
+
],
|
|
2071
|
+
props: [
|
|
2072
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 4 },
|
|
2073
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
2074
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2075
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2076
|
+
{ name: "showReset", label: "Show reset", type: "boolean", group: "behavior", default: false },
|
|
2077
|
+
{ name: "submitLabel", label: "Submit label", type: "string", group: "content", default: "Submit" },
|
|
2078
|
+
{ name: "submitVariant", label: "Submit variant", type: "enum", group: "style", default: "primary", options: ["primary", "secondary", "outline"] },
|
|
2079
|
+
{ name: "validateOnBlur", label: "Validate on blur", type: "boolean", group: "behavior", default: true },
|
|
2080
|
+
{ name: "resetLabel", label: "Reset label", type: "string", group: "content", default: "Reset" }
|
|
2081
|
+
]
|
|
2082
|
+
},
|
|
2083
|
+
{
|
|
2084
|
+
id: "CardBlock",
|
|
2085
|
+
label: "Card",
|
|
2086
|
+
description: "Content card with optional image, title, description, and actions.",
|
|
2087
|
+
category: "content",
|
|
2088
|
+
tags: ["card", "content", "media", "article"],
|
|
2089
|
+
themeMapping: { bg: "card", text: "foreground", subtitle: "mutedForeground" },
|
|
2090
|
+
components: ["Button", "Badge"],
|
|
2091
|
+
slots: [
|
|
2092
|
+
{ name: "media", label: "Media (image/video)", required: false, kind: "named" },
|
|
2093
|
+
{ name: "actions", label: "Action buttons", required: false, kind: "named-array" }
|
|
2094
|
+
],
|
|
2095
|
+
props: [
|
|
2096
|
+
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2097
|
+
{ name: "description", label: "Description", type: "string", group: "content" },
|
|
2098
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
2099
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
2100
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2101
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2102
|
+
{ name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" },
|
|
2103
|
+
{ name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: false }
|
|
2104
|
+
]
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
id: "ModalBlock",
|
|
2108
|
+
label: "Modal",
|
|
2109
|
+
description: "Modal overlay with content, close button, and backdrop.",
|
|
2110
|
+
category: "overlay",
|
|
2111
|
+
tags: ["modal", "dialog", "popup", "overlay"],
|
|
2112
|
+
themeMapping: { bg: "card", text: "foreground", backdrop: "background" },
|
|
2113
|
+
components: ["IconButton"],
|
|
2114
|
+
slots: [
|
|
2115
|
+
{ name: "children", label: "Content", required: true, kind: "children" },
|
|
2116
|
+
{ name: "footer", label: "Footer actions", required: false, kind: "named" }
|
|
2117
|
+
],
|
|
2118
|
+
props: [
|
|
2119
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
|
|
2120
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2121
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "2xl" },
|
|
2122
|
+
{ name: "maxWidth", label: "Max width", type: "number", group: "layout", default: 500 },
|
|
2123
|
+
{ name: "showClose", label: "Show close", type: "boolean", group: "behavior", default: true },
|
|
2124
|
+
{ name: "backdropClose", label: "Close on backdrop", type: "boolean", group: "behavior", default: true }
|
|
2125
|
+
]
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
id: "ToastBlock",
|
|
2129
|
+
label: "Toast",
|
|
2130
|
+
description: "Notification toast with icon, message, and auto-dismiss.",
|
|
2131
|
+
category: "feedback",
|
|
2132
|
+
tags: ["toast", "notification", "snackbar", "alert"],
|
|
2133
|
+
themeMapping: { bg: "card", text: "foreground" },
|
|
2134
|
+
components: ["IconButton"],
|
|
2135
|
+
slots: [],
|
|
2136
|
+
props: [
|
|
2137
|
+
{ name: "message", label: "Message", type: "string", group: "content" },
|
|
2138
|
+
{ name: "type", label: "Type", type: "enum", group: "style", default: "info", options: ["info", "success", "warning", "error"] },
|
|
2139
|
+
{ name: "position", label: "Position", type: "enum", group: "layout", default: "top", options: ["top", "bottom"] },
|
|
2140
|
+
{ name: "duration", label: "Duration (ms)", type: "number", group: "behavior", default: 3e3 },
|
|
2141
|
+
{ name: "showIcon", label: "Show icon", type: "boolean", group: "behavior", default: true },
|
|
2142
|
+
{ name: "dismissible", label: "Dismissible", type: "boolean", group: "behavior", default: true },
|
|
2143
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
|
|
2144
|
+
]
|
|
2145
|
+
}
|
|
2146
|
+
];
|
|
2147
|
+
|
|
2148
|
+
// foundation/layout/registry/blocks/new.ts
|
|
2149
|
+
var newBlocks = [
|
|
2150
|
+
{
|
|
2151
|
+
id: "SocialLinksBlock",
|
|
2152
|
+
label: "Social Links",
|
|
2153
|
+
description: "Row of social network icon buttons with optional labels and customizable layout.",
|
|
2154
|
+
category: "social",
|
|
2155
|
+
tags: ["social", "links", "icons", "network", "share"],
|
|
2156
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary" },
|
|
2157
|
+
components: ["Pressable"],
|
|
2158
|
+
slots: [],
|
|
2159
|
+
props: [
|
|
2160
|
+
{ name: "links", label: "Links", type: "string", group: "content" },
|
|
2161
|
+
{ name: "direction", label: "Direction", type: "enum", group: "layout", default: "row", options: ["row", "column"] },
|
|
2162
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2163
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "icon", options: ["icon", "icon-label", "label"] },
|
|
2164
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
|
|
2165
|
+
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "foreground" },
|
|
2166
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2167
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "full" },
|
|
2168
|
+
{ name: "showLabels", label: "Show labels", type: "boolean", group: "behavior", default: false }
|
|
2169
|
+
]
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
id: "ProductCardBlock",
|
|
2173
|
+
label: "Product Card",
|
|
2174
|
+
description: "E-commerce product card with image, name, price, rating, and add-to-cart button.",
|
|
2175
|
+
category: "ecommerce",
|
|
2176
|
+
tags: ["product", "card", "ecommerce", "shop", "price", "rating"],
|
|
2177
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
2178
|
+
components: ["Button", "Badge"],
|
|
2179
|
+
slots: [
|
|
2180
|
+
{ name: "image", label: "Product image", required: false, kind: "named" }
|
|
2181
|
+
],
|
|
2182
|
+
props: [
|
|
2183
|
+
{ name: "name", label: "Name", type: "string", group: "content" },
|
|
2184
|
+
{ name: "price", label: "Price", type: "string", group: "content" },
|
|
2185
|
+
{ name: "originalPrice", label: "Original price", type: "string", group: "content" },
|
|
2186
|
+
{ name: "imageUrl", label: "Image URL", type: "string", group: "content" },
|
|
2187
|
+
{ name: "rating", label: "Rating", type: "number", group: "content" },
|
|
2188
|
+
{ name: "reviewCount", label: "Review count", type: "number", group: "content" },
|
|
2189
|
+
{ name: "badge", label: "Badge", type: "string", group: "content" },
|
|
2190
|
+
{ name: "inStock", label: "In stock", type: "boolean", group: "behavior", default: true },
|
|
2191
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2192
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2193
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
2194
|
+
{ name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "sm" }
|
|
2195
|
+
]
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
id: "NotificationItemBlock",
|
|
2199
|
+
label: "Notification Item",
|
|
2200
|
+
description: "Notification row with icon, title, body, timestamp, and read state.",
|
|
2201
|
+
category: "feedback",
|
|
2202
|
+
tags: ["notification", "alert", "item", "row", "unread"],
|
|
2203
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
|
|
2204
|
+
components: ["IconButton"],
|
|
2205
|
+
slots: [],
|
|
2206
|
+
props: [
|
|
2207
|
+
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2208
|
+
{ name: "body", label: "Body", type: "string", group: "content" },
|
|
2209
|
+
{ name: "timestamp", label: "Timestamp", type: "string", group: "content" },
|
|
2210
|
+
{ name: "read", label: "Read", type: "boolean", group: "behavior", default: false },
|
|
2211
|
+
{ name: "iconName", label: "Icon name", type: "string", group: "content", default: "bell" },
|
|
2212
|
+
{ name: "iconColor", label: "Icon color", type: "color", group: "style", themeDefault: "primary" },
|
|
2213
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2214
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
2215
|
+
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
|
|
2216
|
+
{ name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true }
|
|
2217
|
+
]
|
|
2218
|
+
},
|
|
2219
|
+
{
|
|
2220
|
+
id: "PricingCardBlock",
|
|
2221
|
+
label: "Pricing Card",
|
|
2222
|
+
description: "Pricing plan card with features list, price, period, and CTA button.",
|
|
2223
|
+
category: "ecommerce",
|
|
2224
|
+
tags: ["pricing", "plan", "card", "subscription", "features"],
|
|
2225
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary" },
|
|
2226
|
+
components: ["Button", "Badge"],
|
|
2227
|
+
slots: [],
|
|
2228
|
+
props: [
|
|
2229
|
+
{ name: "planName", label: "Plan name", type: "string", group: "content" },
|
|
2230
|
+
{ name: "price", label: "Price", type: "string", group: "content" },
|
|
2231
|
+
{ name: "period", label: "Period", type: "string", group: "content", default: "mo" },
|
|
2232
|
+
{ name: "description", label: "Description", type: "string", group: "content" },
|
|
2233
|
+
{ name: "features", label: "Features", type: "string", group: "content" },
|
|
2234
|
+
{ name: "ctaLabel", label: "CTA label", type: "string", group: "content", default: "Get started" },
|
|
2235
|
+
{ name: "highlighted", label: "Highlighted", type: "boolean", group: "style", default: false },
|
|
2236
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2237
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2238
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2239
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 5 },
|
|
2240
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
2241
|
+
{ name: "shadow", label: "Shadow", type: "shadow", group: "style", default: "md" }
|
|
2242
|
+
]
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
id: "TransactionItemBlock",
|
|
2246
|
+
label: "Transaction Item",
|
|
2247
|
+
description: "Financial transaction row with icon, merchant, amount, date, and status badge.",
|
|
2248
|
+
category: "finance",
|
|
2249
|
+
tags: ["transaction", "finance", "payment", "row", "amount"],
|
|
2250
|
+
themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
|
|
2251
|
+
components: [],
|
|
2252
|
+
slots: [],
|
|
2253
|
+
props: [
|
|
2254
|
+
{ name: "merchant", label: "Merchant", type: "string", group: "content" },
|
|
2255
|
+
{ name: "category", label: "Category", type: "string", group: "content" },
|
|
2256
|
+
{ name: "amount", label: "Amount", type: "string", group: "content" },
|
|
2257
|
+
{ name: "date", label: "Date", type: "string", group: "content" },
|
|
2258
|
+
{ name: "type", label: "Type", type: "enum", group: "behavior", default: "debit", options: ["debit", "credit"] },
|
|
2259
|
+
{ name: "status", label: "Status", type: "enum", group: "behavior", default: "completed", options: ["completed", "pending", "failed"] },
|
|
2260
|
+
{ name: "iconName", label: "Icon name", type: "string", group: "content", default: "credit-card" },
|
|
2261
|
+
{ name: "iconColor", label: "Icon color", type: "color", group: "style", themeDefault: "primary" },
|
|
2262
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2263
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
2264
|
+
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true }
|
|
2265
|
+
]
|
|
2266
|
+
},
|
|
2267
|
+
{
|
|
2268
|
+
id: "OnboardingSlideBlock",
|
|
2269
|
+
label: "Onboarding Slide",
|
|
2270
|
+
description: "Single onboarding slide with illustration, title, description, dots, and CTA.",
|
|
2271
|
+
category: "onboarding",
|
|
2272
|
+
tags: ["onboarding", "slide", "intro", "welcome", "tutorial"],
|
|
2273
|
+
themeMapping: { bg: "background", text: "foreground", accent: "primary" },
|
|
2274
|
+
components: ["Button"],
|
|
2275
|
+
slots: [
|
|
2276
|
+
{ name: "illustration", label: "Illustration", required: false, kind: "named" }
|
|
2277
|
+
],
|
|
2278
|
+
props: [
|
|
2279
|
+
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2280
|
+
{ name: "description", label: "Description", type: "string", group: "content" },
|
|
2281
|
+
{ name: "totalSlides", label: "Total slides", type: "number", group: "behavior", default: 3 },
|
|
2282
|
+
{ name: "currentSlide", label: "Current slide", type: "number", group: "behavior", default: 0 },
|
|
2283
|
+
{ name: "ctaLabel", label: "CTA label", type: "string", group: "content", default: "Get started" },
|
|
2284
|
+
{ name: "skipLabel", label: "Skip label", type: "string", group: "content", default: "Skip" },
|
|
2285
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2286
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "background" },
|
|
2287
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 6 }
|
|
2288
|
+
]
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
id: "ChatBubbleBlock",
|
|
2292
|
+
label: "Chat Bubble",
|
|
2293
|
+
description: "Chat message bubble with sender/receiver layout, timestamp, and read status.",
|
|
2294
|
+
category: "messaging",
|
|
2295
|
+
tags: ["chat", "message", "bubble", "conversation", "messaging"],
|
|
2296
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
2297
|
+
components: ["Avatar"],
|
|
2298
|
+
slots: [],
|
|
2299
|
+
props: [
|
|
2300
|
+
{ name: "message", label: "Message", type: "string", group: "content" },
|
|
2301
|
+
{ name: "timestamp", label: "Timestamp", type: "string", group: "content" },
|
|
2302
|
+
{ name: "isSent", label: "Is sent", type: "boolean", group: "behavior", default: false },
|
|
2303
|
+
{ name: "isRead", label: "Is read", type: "boolean", group: "behavior", default: false },
|
|
2304
|
+
{ name: "senderName", label: "Sender name", type: "string", group: "content" },
|
|
2305
|
+
{ name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
|
|
2306
|
+
{ name: "showAvatar", label: "Show avatar", type: "boolean", group: "behavior", default: true },
|
|
2307
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2308
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2309
|
+
{ name: "maxWidth", label: "Max width", type: "number", group: "layout", default: 280 }
|
|
2310
|
+
]
|
|
2311
|
+
},
|
|
2312
|
+
{
|
|
2313
|
+
id: "CalendarEventBlock",
|
|
2314
|
+
label: "Calendar Event",
|
|
2315
|
+
description: "Event card with date badge, title, time range, location, and attendee count.",
|
|
2316
|
+
category: "calendar",
|
|
2317
|
+
tags: ["calendar", "event", "date", "schedule", "meeting"],
|
|
2318
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
2319
|
+
components: [],
|
|
2320
|
+
slots: [],
|
|
2321
|
+
props: [
|
|
2322
|
+
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2323
|
+
{ name: "date", label: "Date", type: "string", group: "content" },
|
|
2324
|
+
{ name: "dayNumber", label: "Day number", type: "string", group: "content" },
|
|
2325
|
+
{ name: "month", label: "Month", type: "string", group: "content" },
|
|
2326
|
+
{ name: "startTime", label: "Start time", type: "string", group: "content" },
|
|
2327
|
+
{ name: "endTime", label: "End time", type: "string", group: "content" },
|
|
2328
|
+
{ name: "location", label: "Location", type: "string", group: "content" },
|
|
2329
|
+
{ name: "attendeeCount", label: "Attendee count", type: "number", group: "content" },
|
|
2330
|
+
{ name: "color", label: "Color", type: "color", group: "style", themeDefault: "primary" },
|
|
2331
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2332
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2333
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 }
|
|
2334
|
+
]
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
id: "FileItemBlock",
|
|
2338
|
+
label: "File Item",
|
|
2339
|
+
description: "File list item with icon, name, size, type badge, and download/delete actions.",
|
|
2340
|
+
category: "files",
|
|
2341
|
+
tags: ["file", "item", "row", "document", "attachment"],
|
|
2342
|
+
themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
|
|
2343
|
+
components: [],
|
|
2344
|
+
slots: [],
|
|
2345
|
+
props: [
|
|
2346
|
+
{ name: "name", label: "Name", type: "string", group: "content" },
|
|
2347
|
+
{ name: "size", label: "Size", type: "string", group: "content" },
|
|
2348
|
+
{ name: "type", label: "Type", type: "string", group: "content" },
|
|
2349
|
+
{ name: "updatedAt", label: "Updated at", type: "string", group: "content" },
|
|
2350
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2351
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
2352
|
+
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true },
|
|
2353
|
+
{ name: "pressable", label: "Pressable", type: "boolean", group: "behavior", default: true }
|
|
2354
|
+
]
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
id: "ContactCardBlock",
|
|
2358
|
+
label: "Contact Card",
|
|
2359
|
+
description: "Contact card with avatar, name, role, company, and action buttons (call, email, web).",
|
|
2360
|
+
category: "profile",
|
|
2361
|
+
tags: ["contact", "card", "profile", "person", "address-book"],
|
|
2362
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
2363
|
+
components: ["Avatar"],
|
|
2364
|
+
slots: [],
|
|
2365
|
+
props: [
|
|
2366
|
+
{ name: "name", label: "Name", type: "string", group: "content" },
|
|
2367
|
+
{ name: "role", label: "Role", type: "string", group: "content" },
|
|
2368
|
+
{ name: "company", label: "Company", type: "string", group: "content" },
|
|
2369
|
+
{ name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
|
|
2370
|
+
{ name: "initials", label: "Initials", type: "string", group: "content" },
|
|
2371
|
+
{ name: "phone", label: "Phone", type: "string", group: "content" },
|
|
2372
|
+
{ name: "email", label: "Email", type: "string", group: "content" },
|
|
2373
|
+
{ name: "website", label: "Website", type: "string", group: "content" },
|
|
2374
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2375
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2376
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2377
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
2378
|
+
{ name: "showActions", label: "Show actions", type: "boolean", group: "behavior", default: true }
|
|
2379
|
+
]
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
id: "MapPinBlock",
|
|
2383
|
+
label: "Map Pin",
|
|
2384
|
+
description: "Location display card with address, coordinates, and open-in-maps action.",
|
|
2385
|
+
category: "location",
|
|
2386
|
+
tags: ["map", "location", "address", "pin", "geo"],
|
|
2387
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
|
|
2388
|
+
components: [],
|
|
2389
|
+
slots: [],
|
|
2390
|
+
props: [
|
|
2391
|
+
{ name: "address", label: "Address", type: "string", group: "content" },
|
|
2392
|
+
{ name: "city", label: "City", type: "string", group: "content" },
|
|
2393
|
+
{ name: "country", label: "Country", type: "string", group: "content" },
|
|
2394
|
+
{ name: "latitude", label: "Latitude", type: "number", group: "content" },
|
|
2395
|
+
{ name: "longitude", label: "Longitude", type: "number", group: "content" },
|
|
2396
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2397
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2398
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2399
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2400
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
2401
|
+
{ name: "showCoordinates", label: "Show coordinates", type: "boolean", group: "behavior", default: false },
|
|
2402
|
+
{ name: "showOpenButton", label: "Show open button", type: "boolean", group: "behavior", default: true }
|
|
2403
|
+
]
|
|
2404
|
+
},
|
|
2405
|
+
{
|
|
2406
|
+
id: "PasswordStrengthBlock",
|
|
2407
|
+
label: "Password Strength",
|
|
2408
|
+
description: "Password input with strength meter and requirements checklist.",
|
|
2409
|
+
category: "form",
|
|
2410
|
+
tags: ["password", "strength", "input", "form", "security"],
|
|
2411
|
+
themeMapping: { bg: "input", text: "foreground", border: "border", muted: "mutedForeground" },
|
|
2412
|
+
components: ["TextInput"],
|
|
2413
|
+
slots: [],
|
|
2414
|
+
props: [
|
|
2415
|
+
{ name: "value", label: "Value", type: "string", group: "content" },
|
|
2416
|
+
{ name: "label", label: "Label", type: "string", group: "content", default: "Password" },
|
|
2417
|
+
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Enter password" },
|
|
2418
|
+
{ name: "showRequirements", label: "Show requirements", type: "boolean", group: "behavior", default: true },
|
|
2419
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
|
|
2420
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
|
|
2421
|
+
]
|
|
2422
|
+
},
|
|
2423
|
+
{
|
|
2424
|
+
id: "MediaPickerBlock",
|
|
2425
|
+
label: "Media Picker",
|
|
2426
|
+
description: "Image/video picker with preview grid and add button.",
|
|
2427
|
+
category: "media",
|
|
2428
|
+
tags: ["media", "picker", "image", "video", "upload", "gallery"],
|
|
2429
|
+
themeMapping: { bg: "muted", text: "foreground", accent: "primary" },
|
|
2430
|
+
components: [],
|
|
2431
|
+
slots: [],
|
|
2432
|
+
props: [
|
|
2433
|
+
{ name: "items", label: "Items", type: "string", group: "content" },
|
|
2434
|
+
{ name: "maxItems", label: "Max items", type: "number", group: "behavior", default: 9 },
|
|
2435
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2436
|
+
{ name: "columns", label: "Columns", type: "number", group: "layout", default: 3 },
|
|
2437
|
+
{ name: "itemSize", label: "Item size", type: "number", group: "layout", default: 100 },
|
|
2438
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
|
|
2439
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" }
|
|
2440
|
+
]
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
id: "BannerBlock",
|
|
2444
|
+
label: "Banner",
|
|
2445
|
+
description: "Dismissible info/warning/error/success banner with icon and optional action.",
|
|
2446
|
+
category: "feedback",
|
|
2447
|
+
tags: ["banner", "alert", "info", "warning", "error", "success"],
|
|
2448
|
+
themeMapping: { text: "foreground", border: "border" },
|
|
2449
|
+
components: [],
|
|
2450
|
+
slots: [],
|
|
2451
|
+
props: [
|
|
2452
|
+
{ name: "type", label: "Type", type: "enum", group: "style", default: "info", options: ["info", "success", "warning", "error"] },
|
|
2453
|
+
{ name: "title", label: "Title", type: "string", group: "content" },
|
|
2454
|
+
{ name: "message", label: "Message", type: "string", group: "content" },
|
|
2455
|
+
{ name: "actionLabel", label: "Action label", type: "string", group: "content" },
|
|
2456
|
+
{ name: "dismissible", label: "Dismissible", type: "boolean", group: "behavior", default: true },
|
|
2457
|
+
{ name: "icon", label: "Icon", type: "string", group: "content" },
|
|
2458
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" },
|
|
2459
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 }
|
|
2460
|
+
]
|
|
2461
|
+
},
|
|
2462
|
+
{
|
|
2463
|
+
id: "CommentBlock",
|
|
2464
|
+
label: "Comment",
|
|
2465
|
+
description: "Comment/review item with avatar, author, content, timestamp, and like/reply actions.",
|
|
2466
|
+
category: "social",
|
|
2467
|
+
tags: ["comment", "review", "social", "like", "reply"],
|
|
2468
|
+
themeMapping: { bg: "card", text: "foreground", border: "border", muted: "mutedForeground" },
|
|
2469
|
+
components: ["Avatar"],
|
|
2470
|
+
slots: [],
|
|
2471
|
+
props: [
|
|
2472
|
+
{ name: "author", label: "Author", type: "string", group: "content" },
|
|
2473
|
+
{ name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
|
|
2474
|
+
{ name: "initials", label: "Initials", type: "string", group: "content" },
|
|
2475
|
+
{ name: "content", label: "Content", type: "string", group: "content" },
|
|
2476
|
+
{ name: "timestamp", label: "Timestamp", type: "string", group: "content" },
|
|
2477
|
+
{ name: "likeCount", label: "Like count", type: "number", group: "content", default: 0 },
|
|
2478
|
+
{ name: "liked", label: "Liked", type: "boolean", group: "behavior", default: false },
|
|
2479
|
+
{ name: "replyCount", label: "Reply count", type: "number", group: "content", default: 0 },
|
|
2480
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2481
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 3 },
|
|
2482
|
+
{ name: "showDivider", label: "Show divider", type: "boolean", group: "style", default: true }
|
|
2483
|
+
]
|
|
2484
|
+
},
|
|
2485
|
+
{
|
|
2486
|
+
id: "OTPInputBlock",
|
|
2487
|
+
label: "OTP Input",
|
|
2488
|
+
description: "One-time password input with N digit boxes and auto-focus progression.",
|
|
2489
|
+
category: "form",
|
|
2490
|
+
tags: ["otp", "code", "input", "verification", "form"],
|
|
2491
|
+
themeMapping: { bg: "input", text: "foreground", accent: "primary", border: "border" },
|
|
2492
|
+
components: ["TextInput"],
|
|
2493
|
+
slots: [],
|
|
2494
|
+
props: [
|
|
2495
|
+
{ name: "length", label: "Length", type: "number", group: "behavior", default: 6 },
|
|
2496
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2497
|
+
{ name: "error", label: "Error", type: "string", group: "content" },
|
|
2498
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false },
|
|
2499
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2500
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2501
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" }
|
|
2502
|
+
]
|
|
2503
|
+
},
|
|
2504
|
+
{
|
|
2505
|
+
id: "TagInputBlock",
|
|
2506
|
+
label: "Tag Input",
|
|
2507
|
+
description: "Input field that creates removable tags/chips on Enter.",
|
|
2508
|
+
category: "form",
|
|
2509
|
+
tags: ["tag", "chip", "input", "form", "multi-select"],
|
|
2510
|
+
themeMapping: { bg: "input", text: "foreground", accent: "primary", border: "border" },
|
|
2511
|
+
components: ["TextInput"],
|
|
2512
|
+
slots: [],
|
|
2513
|
+
props: [
|
|
2514
|
+
{ name: "tags", label: "Tags", type: "string", group: "content" },
|
|
2515
|
+
{ name: "placeholder", label: "Placeholder", type: "string", group: "content", default: "Add tag..." },
|
|
2516
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2517
|
+
{ name: "maxTags", label: "Max tags", type: "number", group: "behavior", default: 10 },
|
|
2518
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "input" },
|
|
2519
|
+
{ name: "tagColor", label: "Tag color", type: "color", group: "style", themeDefault: "primary" },
|
|
2520
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "lg" }
|
|
2521
|
+
]
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
id: "StepperBlock",
|
|
2525
|
+
label: "Stepper",
|
|
2526
|
+
description: "Multi-step progress indicator with labels, descriptions, and active state.",
|
|
2527
|
+
category: "navigation",
|
|
2528
|
+
tags: ["stepper", "steps", "progress", "wizard", "navigation"],
|
|
2529
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
|
|
2530
|
+
components: [],
|
|
2531
|
+
slots: [],
|
|
2532
|
+
props: [
|
|
2533
|
+
{ name: "steps", label: "Steps", type: "string", group: "content" },
|
|
2534
|
+
{ name: "currentStep", label: "Current step", type: "number", group: "behavior", default: 0 },
|
|
2535
|
+
{ name: "orientation", label: "Orientation", type: "enum", group: "layout", default: "horizontal", options: ["horizontal", "vertical"] },
|
|
2536
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2537
|
+
{ name: "completedColor", label: "Completed color", type: "color", group: "style", themeDefault: "primary" },
|
|
2538
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2539
|
+
{ name: "showLabels", label: "Show labels", type: "boolean", group: "behavior", default: true },
|
|
2540
|
+
{ name: "showDescriptions", label: "Show descriptions", type: "boolean", group: "behavior", default: false },
|
|
2541
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] }
|
|
2542
|
+
]
|
|
2543
|
+
},
|
|
2544
|
+
{
|
|
2545
|
+
id: "RatingBlock",
|
|
2546
|
+
label: "Rating",
|
|
2547
|
+
description: "Star rating input or display with configurable max stars and colors.",
|
|
2548
|
+
category: "feedback",
|
|
2549
|
+
tags: ["rating", "stars", "review", "score", "feedback"],
|
|
2550
|
+
themeMapping: { text: "foreground", muted: "mutedForeground" },
|
|
2551
|
+
components: [],
|
|
2552
|
+
slots: [],
|
|
2553
|
+
props: [
|
|
2554
|
+
{ name: "value", label: "Value", type: "number", group: "content", default: 0 },
|
|
2555
|
+
{ name: "maxStars", label: "Max stars", type: "number", group: "behavior", default: 5 },
|
|
2556
|
+
{ name: "readonly", label: "Readonly", type: "boolean", group: "behavior", default: false },
|
|
2557
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2558
|
+
{ name: "activeColor", label: "Active color", type: "color", group: "style", default: "#f59e0b" },
|
|
2559
|
+
{ name: "inactiveColor", label: "Inactive color", type: "color", group: "style", themeDefault: "muted" },
|
|
2560
|
+
{ name: "showValue", label: "Show value", type: "boolean", group: "behavior", default: false },
|
|
2561
|
+
{ name: "label", label: "Label", type: "string", group: "content" }
|
|
2562
|
+
]
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
id: "QuoteBlock",
|
|
2566
|
+
label: "Quote",
|
|
2567
|
+
description: "Stylized quote/testimonial with author, avatar, and accent bar.",
|
|
2568
|
+
category: "content",
|
|
2569
|
+
tags: ["quote", "testimonial", "blockquote", "author", "review"],
|
|
2570
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", muted: "mutedForeground" },
|
|
2571
|
+
components: ["Avatar"],
|
|
2572
|
+
slots: [],
|
|
2573
|
+
props: [
|
|
2574
|
+
{ name: "quote", label: "Quote", type: "string", group: "content" },
|
|
2575
|
+
{ name: "author", label: "Author", type: "string", group: "content" },
|
|
2576
|
+
{ name: "role", label: "Role", type: "string", group: "content" },
|
|
2577
|
+
{ name: "avatarUrl", label: "Avatar URL", type: "string", group: "content" },
|
|
2578
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2579
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2580
|
+
{ name: "borderRadius", label: "Border radius", type: "radius", group: "style", default: "xl" },
|
|
2581
|
+
{ name: "padding", label: "Padding", type: "spacing", group: "layout", default: 4 },
|
|
2582
|
+
{ name: "showQuoteIcon", label: "Show quote icon", type: "boolean", group: "behavior", default: true },
|
|
2583
|
+
{ name: "variant", label: "Variant", type: "enum", group: "style", default: "card", options: ["left-bar", "card", "minimal"] }
|
|
2584
|
+
]
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
id: "TimelineBlock",
|
|
2588
|
+
label: "Timeline",
|
|
2589
|
+
description: "Vertical timeline with events, icons, timestamps, and connector lines.",
|
|
2590
|
+
category: "content",
|
|
2591
|
+
tags: ["timeline", "events", "history", "steps", "vertical"],
|
|
2592
|
+
themeMapping: { text: "foreground", accent: "primary", border: "border", muted: "mutedForeground" },
|
|
2593
|
+
components: [],
|
|
2594
|
+
slots: [],
|
|
2595
|
+
props: [
|
|
2596
|
+
{ name: "events", label: "Events", type: "string", group: "content" },
|
|
2597
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2598
|
+
{ name: "lineColor", label: "Line color", type: "color", group: "style", themeDefault: "border" },
|
|
2599
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 3 },
|
|
2600
|
+
{ name: "showConnector", label: "Show connector", type: "boolean", group: "behavior", default: true }
|
|
2601
|
+
]
|
|
2602
|
+
},
|
|
2603
|
+
{
|
|
2604
|
+
id: "CounterBlock",
|
|
2605
|
+
label: "Counter",
|
|
2606
|
+
description: "Number counter with increment/decrement controls, min/max bounds, and step.",
|
|
2607
|
+
category: "form",
|
|
2608
|
+
tags: ["counter", "number", "input", "increment", "decrement"],
|
|
2609
|
+
themeMapping: { bg: "card", text: "foreground", accent: "primary", border: "border" },
|
|
2610
|
+
components: [],
|
|
2611
|
+
slots: [],
|
|
2612
|
+
props: [
|
|
2613
|
+
{ name: "value", label: "Value", type: "number", group: "content", default: 0 },
|
|
2614
|
+
{ name: "min", label: "Min", type: "number", group: "behavior", default: 0 },
|
|
2615
|
+
{ name: "max", label: "Max", type: "number", group: "behavior", default: 100 },
|
|
2616
|
+
{ name: "step", label: "Step", type: "number", group: "behavior", default: 1 },
|
|
2617
|
+
{ name: "label", label: "Label", type: "string", group: "content" },
|
|
2618
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2619
|
+
{ name: "accentColor", label: "Accent color", type: "color", group: "style", themeDefault: "primary" },
|
|
2620
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "card" },
|
|
2621
|
+
{ name: "disabled", label: "Disabled", type: "boolean", group: "behavior", default: false }
|
|
2622
|
+
]
|
|
2623
|
+
},
|
|
2624
|
+
{
|
|
2625
|
+
id: "SegmentedControlBlock",
|
|
2626
|
+
label: "Segmented Control",
|
|
2627
|
+
description: "iOS-style segmented control / tab switcher with customizable colors and sizes.",
|
|
2628
|
+
category: "navigation",
|
|
2629
|
+
tags: ["segmented", "control", "tabs", "switcher", "navigation"],
|
|
2630
|
+
themeMapping: { bg: "muted", text: "foreground", accent: "primary" },
|
|
2631
|
+
components: [],
|
|
2632
|
+
slots: [],
|
|
2633
|
+
props: [
|
|
2634
|
+
{ name: "segments", label: "Segments", type: "string", group: "content" },
|
|
2635
|
+
{ name: "value", label: "Value", type: "string", group: "behavior" },
|
|
2636
|
+
{ name: "background", label: "Background", type: "color", group: "style", themeDefault: "muted" },
|
|
2637
|
+
{ name: "activeBackground", label: "Active background", type: "color", group: "style", themeDefault: "card" },
|
|
2638
|
+
{ name: "activeColor", label: "Active color", type: "color", group: "style", themeDefault: "foreground" },
|
|
2639
|
+
{ name: "inactiveColor", label: "Inactive color", type: "color", group: "style", themeDefault: "mutedForeground" },
|
|
2640
|
+
{ name: "size", label: "Size", type: "enum", group: "style", default: "md", options: ["sm", "md", "lg"] },
|
|
2641
|
+
{ name: "fullWidth", label: "Full width", type: "boolean", group: "layout", default: false }
|
|
2642
|
+
]
|
|
2643
|
+
}
|
|
2644
|
+
];
|
|
2645
|
+
|
|
2646
|
+
// foundation/layout/registry/blocks.ts
|
|
2647
|
+
var blockRegistry = [...existingBlocks, ...newBlocks];
|
|
2648
|
+
function getBlockMeta(id) {
|
|
2649
|
+
return blockRegistry.find((m) => m.id === id);
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
// foundation/layout/registry/primitives.ts
|
|
2653
|
+
function getPrimitiveMeta(id) {
|
|
2654
|
+
return primitiveRegistry.find((m) => m.id === id);
|
|
2655
|
+
}
|
|
2656
|
+
var primitiveRegistry = [
|
|
2657
|
+
{
|
|
2658
|
+
id: "Box",
|
|
2659
|
+
label: "Box",
|
|
2660
|
+
description: "Flexible container with spacing, background, and border support.",
|
|
2661
|
+
category: "primitive",
|
|
2662
|
+
tags: ["box", "container", "view", "div"],
|
|
2663
|
+
slots: [{ name: "children", label: "Content", required: false }],
|
|
2664
|
+
props: [
|
|
2665
|
+
{ name: "flex", label: "Flex", type: "number", group: "layout" },
|
|
2666
|
+
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
2667
|
+
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
2668
|
+
{ name: "px", label: "Padding X", type: "spacing", group: "layout" },
|
|
2669
|
+
{ name: "py", label: "Padding Y", type: "spacing", group: "layout" },
|
|
2670
|
+
{ name: "m", label: "Margin", type: "spacing", group: "layout" },
|
|
2671
|
+
{ name: "mx", label: "Margin X", type: "spacing", group: "layout" },
|
|
2672
|
+
{ name: "my", label: "Margin Y", type: "spacing", group: "layout" },
|
|
2673
|
+
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
2674
|
+
{ name: "height", label: "Height", type: "number", group: "layout" },
|
|
2675
|
+
{ name: "maxWidth", label: "Max Width", type: "number", group: "layout" },
|
|
2676
|
+
{ name: "minHeight", label: "Min Height", type: "number", group: "layout" },
|
|
2677
|
+
{ name: "borderRadius", label: "Border Radius", type: "radius", group: "style" },
|
|
2678
|
+
{ name: "overflow", label: "Overflow", type: "enum", group: "style", options: ["visible", "hidden", "scroll"] },
|
|
2679
|
+
{ name: "justifyContent", label: "Justify", type: "enum", group: "layout", options: ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"] },
|
|
2680
|
+
{ name: "alignItems", label: "Align Items", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
|
|
2681
|
+
{ name: "alignSelf", label: "Align Self", type: "enum", group: "layout", options: ["auto", "flex-start", "center", "flex-end", "stretch"] }
|
|
2682
|
+
]
|
|
2683
|
+
},
|
|
2684
|
+
{
|
|
2685
|
+
id: "Stack",
|
|
2686
|
+
label: "Stack",
|
|
2687
|
+
description: "Vertical stack with consistent spacing between children.",
|
|
2688
|
+
category: "primitive",
|
|
2689
|
+
tags: ["stack", "vertical", "column", "vstack"],
|
|
2690
|
+
slots: [{ name: "children", label: "Content", required: false }],
|
|
2691
|
+
props: [
|
|
2692
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
|
|
2693
|
+
{ name: "align", label: "Align", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end"] },
|
|
2694
|
+
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
2695
|
+
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
2696
|
+
{ name: "flex", label: "Flex", type: "number", group: "layout" }
|
|
2697
|
+
]
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
id: "Inline",
|
|
2701
|
+
label: "Inline",
|
|
2702
|
+
description: "Horizontal row with spacing and alignment.",
|
|
2703
|
+
category: "primitive",
|
|
2704
|
+
tags: ["inline", "horizontal", "row", "hstack"],
|
|
2705
|
+
slots: [{ name: "children", label: "Content", required: false }],
|
|
2706
|
+
props: [
|
|
2707
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout", default: 2 },
|
|
2708
|
+
{ name: "align", label: "Align", type: "enum", group: "layout", options: ["stretch", "flex-start", "center", "flex-end", "baseline"] },
|
|
2709
|
+
{ name: "justify", label: "Justify", type: "enum", group: "layout", options: ["flex-start", "center", "flex-end", "space-between", "space-around"] },
|
|
2710
|
+
{ name: "wrap", label: "Wrap", type: "boolean", group: "layout", default: false },
|
|
2711
|
+
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
2712
|
+
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
2713
|
+
{ name: "flex", label: "Flex", type: "number", group: "layout" },
|
|
2714
|
+
{ name: "fillWidth", label: "Fill Width", type: "boolean", group: "layout", default: false }
|
|
2715
|
+
]
|
|
2716
|
+
},
|
|
2717
|
+
{
|
|
2718
|
+
id: "Center",
|
|
2719
|
+
label: "Center",
|
|
2720
|
+
description: "Centers content both horizontally and vertically.",
|
|
2721
|
+
category: "primitive",
|
|
2722
|
+
tags: ["center", "align", "middle"],
|
|
2723
|
+
slots: [{ name: "children", label: "Content", required: false }],
|
|
2724
|
+
props: [
|
|
2725
|
+
{ name: "flex", label: "Flex", type: "number", group: "layout" },
|
|
2726
|
+
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
2727
|
+
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
2728
|
+
{ name: "py", label: "Padding Y", type: "spacing", group: "layout" },
|
|
2729
|
+
{ name: "width", label: "Width", type: "number", group: "layout" },
|
|
2730
|
+
{ name: "height", label: "Height", type: "number", group: "layout" }
|
|
2731
|
+
]
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
id: "Scroll",
|
|
2735
|
+
label: "Scroll",
|
|
2736
|
+
description: "Scrollable container.",
|
|
2737
|
+
category: "primitive",
|
|
2738
|
+
tags: ["scroll", "scrollview", "overflow"],
|
|
2739
|
+
slots: [{ name: "children", label: "Content", required: false }],
|
|
2740
|
+
props: [
|
|
2741
|
+
{ name: "horizontal", label: "Horizontal", type: "boolean", group: "layout", default: false },
|
|
2742
|
+
{ name: "showsScrollIndicator", label: "Show Indicator", type: "boolean", group: "behavior", default: true },
|
|
2743
|
+
{ name: "bg", label: "Background", type: "color", group: "style" },
|
|
2744
|
+
{ name: "p", label: "Padding", type: "spacing", group: "layout" },
|
|
2745
|
+
{ name: "flex", label: "Flex", type: "number", group: "layout" }
|
|
2746
|
+
]
|
|
2747
|
+
},
|
|
2748
|
+
{
|
|
2749
|
+
id: "Divider",
|
|
2750
|
+
label: "Divider",
|
|
2751
|
+
description: "Horizontal or vertical divider line.",
|
|
2752
|
+
category: "primitive",
|
|
2753
|
+
tags: ["divider", "separator", "line", "hr"],
|
|
2754
|
+
props: [
|
|
2755
|
+
{ name: "vertical", label: "Vertical", type: "boolean", group: "layout", default: false },
|
|
2756
|
+
{ name: "color", label: "Color", type: "color", group: "style" },
|
|
2757
|
+
{ name: "thickness", label: "Thickness", type: "number", group: "style", default: 1 },
|
|
2758
|
+
{ name: "spacing", label: "Spacing", type: "spacing", group: "layout" }
|
|
2759
|
+
]
|
|
2760
|
+
}
|
|
2761
|
+
];
|
|
480
2762
|
var META = getLayoutMeta("RootLayout");
|
|
481
2763
|
var RootLayout = (rawProps) => {
|
|
482
2764
|
const { theme } = useTheme();
|
|
@@ -5969,6 +8251,6 @@ function resolveBackground(background) {
|
|
|
5969
8251
|
return { bg: background };
|
|
5970
8252
|
}
|
|
5971
8253
|
|
|
5972
|
-
export { Accordion_default, AuthFormBlock_default, AuthLayout_default, AvatarBlock_default, Avatar_default, Badge_default, BannerBlock_default, BentoLayout_default, BottomDrawerLayout_default, Box_default, Button_default, CalendarEventBlock_default, CameraComp_default, CardBlock_default, Center_default, CenteredLayout_default, ChatBubbleBlock_default, Checkbox_default, Chip_default, CommentBlock_default, ContactCardBlock_default, CounterBlock_default, CrossTabLayout_default, DashboardLayout_default, DatePicker_default, DeckLayout_default, Divider_default, EmptyStateBlock_default, FileItemBlock_default, FilePicker_default, FlexLayout_default, FlipLayout_default, FooterLayout_default, FormBlock_default, GradientComp_default, GridLayout_default, HeaderBlock_default, HeaderContentLayout_default, IconButton_default, IconComp_default, ImageComp_default, Inline_default, LeftDrawerLayout_default, ListItemBlock_default, MapPinBlock_default, MapViewComp_default, MasonryLayout_default, MediaPickerBlock_default, ModalBlock_default, NotificationItemBlock_default, OTPInputBlock_default, OnboardingSlideBlock_default, ParallaxLayout_default, PasswordStrengthBlock_default, PlatformOverrideProvider, PricingCardBlock_default, ProductCardBlock_default, ProgressBar_default, QuoteBlock_default, RadioGroup_default, RatingBlock_default, ResponsiveLayout_default, RootLayout_default, ScrollLayout_default, Scroll_default, SearchBarBlock_default, SegmentedControlBlock_default, Select_default, SeparatorComp_default, SidebarLayout_default, SketchLayout_default, Slider_default, SocialLinksBlock_default, Spinner_default, SplitLayout_default, Stack_default, StatCardBlock_default, StepperBlock_default, Swipe2ScreenLayout_default, SwiperLayout_default, Switch_default, SystemUIWrapper, TagInputBlock_default, TextArea_default, TextComp_default, TextInput_default, TimelineBlock_default, ToastBlock_default, TopDrawerLayout_default, TransactionItemBlock_default, TutoLayout, VideoComp_default, VoidLayout_default, WebViewComp_default, getBreakpoint, getResponsiveValue, hideAt, isAndroid, isIOS, isWeb, platformSelect, resolveBackground, resolveLayoutPadding, showOnly, spacingToStyle, useAdaptiveValue, useBreakpoint, usePlatformInfo, usePlatformOverride, useResponsiveValue, useSafeArea, useStudioItems, useTutoRef };
|
|
5973
|
-
//# sourceMappingURL=chunk-
|
|
5974
|
-
//# sourceMappingURL=chunk-
|
|
8254
|
+
export { Accordion_default, AuthFormBlock_default, AuthLayout_default, AvatarBlock_default, Avatar_default, Badge_default, BannerBlock_default, BentoLayout_default, BottomDrawerLayout_default, Box_default, Button_default, CalendarEventBlock_default, CameraComp_default, CardBlock_default, Center_default, CenteredLayout_default, ChatBubbleBlock_default, Checkbox_default, Chip_default, CommentBlock_default, ContactCardBlock_default, CounterBlock_default, CrossTabLayout_default, DashboardLayout_default, DatePicker_default, DeckLayout_default, Divider_default, EmptyStateBlock_default, FileItemBlock_default, FilePicker_default, FlexLayout_default, FlipLayout_default, FooterLayout_default, FormBlock_default, GradientComp_default, GridLayout_default, HeaderBlock_default, HeaderContentLayout_default, IconButton_default, IconComp_default, ImageComp_default, Inline_default, LeftDrawerLayout_default, ListItemBlock_default, MapPinBlock_default, MapViewComp_default, MasonryLayout_default, MediaPickerBlock_default, ModalBlock_default, NotificationItemBlock_default, OTPInputBlock_default, OnboardingSlideBlock_default, ParallaxLayout_default, PasswordStrengthBlock_default, PlatformOverrideProvider, PricingCardBlock_default, ProductCardBlock_default, ProgressBar_default, QuoteBlock_default, RadioGroup_default, RatingBlock_default, ResponsiveLayout_default, RootLayout_default, ScrollLayout_default, Scroll_default, SearchBarBlock_default, SegmentedControlBlock_default, Select_default, SeparatorComp_default, SidebarLayout_default, SketchLayout_default, Slider_default, SocialLinksBlock_default, Spinner_default, SplitLayout_default, Stack_default, StatCardBlock_default, StepperBlock_default, Swipe2ScreenLayout_default, SwiperLayout_default, Switch_default, SystemUIWrapper, TagInputBlock_default, TextArea_default, TextComp_default, TextInput_default, TimelineBlock_default, ToastBlock_default, TopDrawerLayout_default, TransactionItemBlock_default, TutoLayout, VideoComp_default, VoidLayout_default, WebViewComp_default, applyDefaults, applyVariant, blockRegistry, componentRegistry, extractDefaults, getBlockMeta, getBreakpoint, getComponentMeta, getConstants, getLayoutMeta, getPrimitiveMeta, getResponsiveValue, hideAt, isAndroid, isIOS, isWeb, layoutRegistry, platformSelect, primitiveRegistry, resolveBackground, resolveLayoutPadding, resolveThemeDefaults, showOnly, spacingToStyle, useAdaptiveValue, useBreakpoint, usePlatformInfo, usePlatformOverride, useResponsiveValue, useSafeArea, useStudioItems, useTutoRef };
|
|
8255
|
+
//# sourceMappingURL=chunk-32VWREEH.mjs.map
|
|
8256
|
+
//# sourceMappingURL=chunk-32VWREEH.mjs.map
|