@flipova/foundation 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/web/index.js CHANGED
@@ -30,7 +30,12 @@ var React2__default = /*#__PURE__*/_interopDefault(React2);
30
30
  var LucideIcons__namespace = /*#__PURE__*/_interopNamespace(LucideIcons);
31
31
  var RadixTabs__namespace = /*#__PURE__*/_interopNamespace(RadixTabs);
32
32
 
33
- // foundation/web/primitives/Box.tsx
33
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
34
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
35
+ }) : x)(function(x) {
36
+ if (typeof require !== "undefined") return require.apply(this, arguments);
37
+ throw Error('Dynamic require of "' + x + '" is not supported');
38
+ });
34
39
 
35
40
  // foundation/tokens/breakpoints.ts
36
41
  var breakpoints = {
@@ -1165,20 +1170,20 @@ var Box = React2__default.default.forwardRef(({
1165
1170
  if (shadow) {
1166
1171
  boxShadow = rnShadowToCss(shadows[shadow]);
1167
1172
  }
1168
- const sp = (token) => token != null ? spacing[token] : void 0;
1173
+ const sp3 = (token) => token != null ? spacing[token] : void 0;
1169
1174
  const resolved = {
1170
1175
  // Padding
1171
- padding: sp(p) != null && !px && !py && !pt && !pr && !pb && !pl ? sp(p) : void 0,
1172
- paddingTop: sp(pt) ?? sp(py) ?? sp(p),
1173
- paddingRight: sp(pr) ?? sp(px) ?? sp(p),
1174
- paddingBottom: sp(pb) ?? sp(py) ?? sp(p),
1175
- paddingLeft: sp(pl) ?? sp(px) ?? sp(p),
1176
+ padding: sp3(p) != null && !px && !py && !pt && !pr && !pb && !pl ? sp3(p) : void 0,
1177
+ paddingTop: sp3(pt) ?? sp3(py) ?? sp3(p),
1178
+ paddingRight: sp3(pr) ?? sp3(px) ?? sp3(p),
1179
+ paddingBottom: sp3(pb) ?? sp3(py) ?? sp3(p),
1180
+ paddingLeft: sp3(pl) ?? sp3(px) ?? sp3(p),
1176
1181
  // Margin
1177
- margin: sp(m) != null && !mx && !my && !mt && !mr && !mb && !ml ? sp(m) : void 0,
1178
- marginTop: sp(mt) ?? sp(my) ?? sp(m),
1179
- marginRight: sp(mr) ?? sp(mx) ?? sp(m),
1180
- marginBottom: sp(mb) ?? sp(my) ?? sp(m),
1181
- marginLeft: sp(ml) ?? sp(mx) ?? sp(m),
1182
+ margin: sp3(m) != null && !mx && !my && !mt && !mr && !mb && !ml ? sp3(m) : void 0,
1183
+ marginTop: sp3(mt) ?? sp3(my) ?? sp3(m),
1184
+ marginRight: sp3(mr) ?? sp3(mx) ?? sp3(m),
1185
+ marginBottom: sp3(mb) ?? sp3(my) ?? sp3(m),
1186
+ marginLeft: sp3(ml) ?? sp3(mx) ?? sp3(m),
1182
1187
  // Background
1183
1188
  backgroundColor,
1184
1189
  backgroundImage,
@@ -5257,7 +5262,495 @@ var DashboardLayout = (rawProps) => {
5257
5262
  ] });
5258
5263
  };
5259
5264
  var DashboardLayout_default = DashboardLayout;
5260
- var META9 = getLayoutMeta("SidebarLayout");
5265
+ var getBreakpoint = (innerWidth) => {
5266
+ const width = innerWidth ?? (reactNative.Platform.OS === "web" && typeof window !== "undefined" ? window.innerWidth : reactNative.Dimensions.get("window").width);
5267
+ if (width >= breakpoints["2xl"]) return "2xl";
5268
+ if (width >= breakpoints.xl) return "xl";
5269
+ if (width >= breakpoints.lg) return "lg";
5270
+ if (width >= breakpoints.md) return "md";
5271
+ if (width >= breakpoints.sm) return "sm";
5272
+ return "xs";
5273
+ };
5274
+ var getResponsiveValue = (value, currentBreakpoint) => {
5275
+ if (typeof value !== "object" || value === null) {
5276
+ return value;
5277
+ }
5278
+ const responsiveValue = value;
5279
+ const orderedBreakpoints = [
5280
+ "xs",
5281
+ "sm",
5282
+ "md",
5283
+ "lg",
5284
+ "xl",
5285
+ "2xl"
5286
+ ];
5287
+ const currentIndex = orderedBreakpoints.indexOf(currentBreakpoint);
5288
+ for (let i = currentIndex; i >= 0; i--) {
5289
+ const bp = orderedBreakpoints[i];
5290
+ if (responsiveValue[bp] !== void 0) {
5291
+ return responsiveValue[bp];
5292
+ }
5293
+ }
5294
+ return responsiveValue[orderedBreakpoints[0]];
5295
+ };
5296
+ var Ctx = React2.createContext(null);
5297
+ var usePlatformOverride = () => React2.useContext(Ctx);
5298
+
5299
+ // foundation/layout/hooks/useBreakpoint.ts
5300
+ var MOBILE = ["xs", "sm"];
5301
+ var TABLET = ["md"];
5302
+ var DESKTOP = ["lg", "xl", "2xl"];
5303
+ var getInitialBreakpoint = () => {
5304
+ if (reactNative.Platform.OS === "web") {
5305
+ if (typeof window !== "undefined") {
5306
+ return getBreakpoint(window.innerWidth);
5307
+ }
5308
+ return null;
5309
+ }
5310
+ return getBreakpoint();
5311
+ };
5312
+ var deriveInfo = (bp) => ({
5313
+ breakpoint: bp,
5314
+ isMobile: bp !== null && MOBILE.includes(bp),
5315
+ isTablet: bp !== null && TABLET.includes(bp),
5316
+ isDesktop: bp !== null && DESKTOP.includes(bp),
5317
+ isAtLeastTablet: bp !== null && !MOBILE.includes(bp),
5318
+ isAtLeastDesktop: bp !== null && DESKTOP.includes(bp)
5319
+ });
5320
+ var useBreakpoint = () => {
5321
+ const override = usePlatformOverride();
5322
+ const [bp, setBp] = React2.useState(getInitialBreakpoint);
5323
+ React2.useEffect(() => {
5324
+ if (bp === null) {
5325
+ setBp(getBreakpoint(window.innerWidth));
5326
+ }
5327
+ const subscription = reactNative.Dimensions.addEventListener("change", () => {
5328
+ setBp(getBreakpoint());
5329
+ });
5330
+ return () => subscription?.remove();
5331
+ }, [bp]);
5332
+ const real = React2.useMemo(() => deriveInfo(bp), [bp]);
5333
+ return override?.breakpoint ?? real;
5334
+ };
5335
+ function isInsertZone(el) {
5336
+ if (!React2__default.default.isValidElement(el)) return false;
5337
+ const t = el.type;
5338
+ return t?.$insertZone === true || el.props?.$insertZone === true;
5339
+ }
5340
+ function useStudioItems(items, count, placeholder) {
5341
+ const safe = Array.isArray(items) ? items : [];
5342
+ if (safe.length === 1 && isInsertZone(safe[0])) return safe;
5343
+ if (safe.length > 0) return safe;
5344
+ return Array.from({ length: Math.max(1, count) }, (_, i) => placeholder(i));
5345
+ }
5346
+
5347
+ // foundation/layout/hooks/useResponsiveValue.ts
5348
+ var useResponsiveValue = (value) => {
5349
+ const { breakpoint } = useBreakpoint();
5350
+ if (!breakpoint) return null;
5351
+ return getResponsiveValue(value, breakpoint);
5352
+ };
5353
+ var LinearGradient = null;
5354
+ try {
5355
+ LinearGradient = __require("expo-linear-gradient").LinearGradient ?? null;
5356
+ } catch {
5357
+ LinearGradient = null;
5358
+ }
5359
+ var GRADIENT_VECTORS = {
5360
+ toTop: { start: { x: 0.5, y: 1 }, end: { x: 0.5, y: 0 } },
5361
+ toBottom: { start: { x: 0.5, y: 0 }, end: { x: 0.5, y: 1 } },
5362
+ toLeft: { start: { x: 1, y: 0.5 }, end: { x: 0, y: 0.5 } },
5363
+ toRight: { start: { x: 0, y: 0.5 }, end: { x: 1, y: 0.5 } },
5364
+ toTopLeft: { start: { x: 1, y: 1 }, end: { x: 0, y: 0 } },
5365
+ toTopRight: { start: { x: 0, y: 1 }, end: { x: 1, y: 0 } },
5366
+ toBottomLeft: { start: { x: 1, y: 0 }, end: { x: 0, y: 1 } },
5367
+ toBottomRight: { start: { x: 0, y: 0 }, end: { x: 1, y: 1 } }
5368
+ };
5369
+ function sp(token) {
5370
+ return token != null ? spacing[token] : void 0;
5371
+ }
5372
+ function resolvePosition(value) {
5373
+ if (value == null) return void 0;
5374
+ if (typeof value === "string" && value in spacing)
5375
+ return spacing[value];
5376
+ return value;
5377
+ }
5378
+ var Box2 = ({
5379
+ // Padding
5380
+ p,
5381
+ pt,
5382
+ pr,
5383
+ pb,
5384
+ pl,
5385
+ px,
5386
+ py,
5387
+ // Margin
5388
+ m,
5389
+ mt,
5390
+ mr,
5391
+ mb,
5392
+ ml,
5393
+ mx,
5394
+ my,
5395
+ // Fond
5396
+ bg,
5397
+ gradient,
5398
+ gradientDirection = "toBottom",
5399
+ // Bordure
5400
+ borderRadius,
5401
+ borderTopLeftRadius,
5402
+ borderTopRightRadius,
5403
+ borderBottomLeftRadius,
5404
+ borderBottomRightRadius,
5405
+ // Ombre
5406
+ shadow,
5407
+ // Flex
5408
+ flex,
5409
+ flexGrow,
5410
+ flexShrink,
5411
+ flexBasis,
5412
+ flexDirection,
5413
+ alignItems,
5414
+ alignSelf,
5415
+ justifyContent,
5416
+ gap,
5417
+ rowGap,
5418
+ columnGap,
5419
+ flexWrap,
5420
+ // Dimensions
5421
+ width,
5422
+ height,
5423
+ minWidth,
5424
+ minHeight,
5425
+ maxWidth,
5426
+ maxHeight,
5427
+ // Position
5428
+ overflow,
5429
+ opacity: opacity2,
5430
+ position,
5431
+ top,
5432
+ right,
5433
+ bottom,
5434
+ left,
5435
+ zIndex,
5436
+ style,
5437
+ children,
5438
+ theme,
5439
+ ...rest
5440
+ }) => {
5441
+ const { theme: currentTheme } = useTheme(theme);
5442
+ const resP = useResponsiveValue(p);
5443
+ const resPT = useResponsiveValue(pt);
5444
+ const resPR = useResponsiveValue(pr);
5445
+ const resPB = useResponsiveValue(pb);
5446
+ const resPL = useResponsiveValue(pl);
5447
+ const resPX = useResponsiveValue(px);
5448
+ const resPY = useResponsiveValue(py);
5449
+ const resM = useResponsiveValue(m);
5450
+ const resMT = useResponsiveValue(mt);
5451
+ const resMR = useResponsiveValue(mr);
5452
+ const resMB = useResponsiveValue(mb);
5453
+ const resML = useResponsiveValue(ml);
5454
+ const resMX = useResponsiveValue(mx);
5455
+ const resMY = useResponsiveValue(my);
5456
+ const { boxStyle, gradientConfig } = React2.useMemo(() => {
5457
+ let gradientColors = null;
5458
+ if (gradient) {
5459
+ gradientColors = Array.isArray(gradient) ? gradient : currentTheme.gradients[gradient] ?? [bg ?? "transparent", bg ?? "transparent"];
5460
+ }
5461
+ const computed = {
5462
+ // Padding
5463
+ padding: sp(resP),
5464
+ paddingTop: sp(resPT),
5465
+ paddingRight: sp(resPR),
5466
+ paddingBottom: sp(resPB),
5467
+ paddingLeft: sp(resPL),
5468
+ paddingHorizontal: sp(resPX),
5469
+ paddingVertical: sp(resPY),
5470
+ // Margin
5471
+ margin: sp(resM),
5472
+ marginTop: sp(resMT),
5473
+ marginRight: sp(resMR),
5474
+ marginBottom: sp(resMB),
5475
+ marginLeft: sp(resML),
5476
+ marginHorizontal: sp(resMX),
5477
+ marginVertical: sp(resMY),
5478
+ // Fond — omis quand gradient actif (LinearGradient gère ça)
5479
+ backgroundColor: gradientColors ? void 0 : bg,
5480
+ // Bordure
5481
+ borderRadius: borderRadius ? radii[borderRadius] : void 0,
5482
+ borderTopLeftRadius: borderTopLeftRadius ? radii[borderTopLeftRadius] : void 0,
5483
+ borderTopRightRadius: borderTopRightRadius ? radii[borderTopRightRadius] : void 0,
5484
+ borderBottomLeftRadius: borderBottomLeftRadius ? radii[borderBottomLeftRadius] : void 0,
5485
+ borderBottomRightRadius: borderBottomRightRadius ? radii[borderBottomRightRadius] : void 0,
5486
+ // Flex
5487
+ flex,
5488
+ flexGrow,
5489
+ flexShrink,
5490
+ flexBasis,
5491
+ flexDirection,
5492
+ alignItems,
5493
+ alignSelf,
5494
+ justifyContent,
5495
+ flexWrap,
5496
+ gap: gap != null ? spacing[gap] : void 0,
5497
+ rowGap: rowGap != null ? spacing[rowGap] : void 0,
5498
+ columnGap: columnGap != null ? spacing[columnGap] : void 0,
5499
+ // Dimensions
5500
+ width,
5501
+ height,
5502
+ minWidth,
5503
+ minHeight,
5504
+ maxWidth,
5505
+ maxHeight,
5506
+ // Divers
5507
+ overflow,
5508
+ opacity: opacity2,
5509
+ position,
5510
+ zIndex,
5511
+ top: resolvePosition(top),
5512
+ right: resolvePosition(right),
5513
+ bottom: resolvePosition(bottom),
5514
+ left: resolvePosition(left),
5515
+ // Ombre
5516
+ ...shadow ? shadows[shadow] : {}
5517
+ };
5518
+ const flatStyle = [computed, ...Array.isArray(style) ? style : style ? [style] : []];
5519
+ return {
5520
+ boxStyle: flatStyle,
5521
+ gradientConfig: gradientColors ? { colors: gradientColors, ...GRADIENT_VECTORS[gradientDirection] } : null
5522
+ };
5523
+ }, [
5524
+ resP,
5525
+ resPT,
5526
+ resPR,
5527
+ resPB,
5528
+ resPL,
5529
+ resPX,
5530
+ resPY,
5531
+ resM,
5532
+ resMT,
5533
+ resMR,
5534
+ resMB,
5535
+ resML,
5536
+ resMX,
5537
+ resMY,
5538
+ bg,
5539
+ gradient,
5540
+ gradientDirection,
5541
+ currentTheme,
5542
+ borderRadius,
5543
+ borderTopLeftRadius,
5544
+ borderTopRightRadius,
5545
+ borderBottomLeftRadius,
5546
+ borderBottomRightRadius,
5547
+ shadow,
5548
+ flex,
5549
+ flexGrow,
5550
+ flexShrink,
5551
+ flexBasis,
5552
+ flexDirection,
5553
+ alignItems,
5554
+ alignSelf,
5555
+ justifyContent,
5556
+ gap,
5557
+ rowGap,
5558
+ columnGap,
5559
+ flexWrap,
5560
+ width,
5561
+ height,
5562
+ minWidth,
5563
+ minHeight,
5564
+ maxWidth,
5565
+ maxHeight,
5566
+ overflow,
5567
+ opacity2,
5568
+ position,
5569
+ top,
5570
+ right,
5571
+ bottom,
5572
+ left,
5573
+ zIndex,
5574
+ style
5575
+ ]);
5576
+ if (gradientConfig && LinearGradient) {
5577
+ return /* @__PURE__ */ jsxRuntime.jsx(
5578
+ LinearGradient,
5579
+ {
5580
+ colors: gradientConfig.colors,
5581
+ start: gradientConfig.start,
5582
+ end: gradientConfig.end,
5583
+ style: boxStyle,
5584
+ ...rest,
5585
+ children
5586
+ }
5587
+ );
5588
+ }
5589
+ return /* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: boxStyle, ...rest, children });
5590
+ };
5591
+ var Box_default2 = Box2;
5592
+ function sp2(token) {
5593
+ return token != null ? spacing[token] : void 0;
5594
+ }
5595
+ var Scroll2 = ({
5596
+ p,
5597
+ px,
5598
+ py,
5599
+ pt,
5600
+ pr,
5601
+ pb,
5602
+ pl,
5603
+ contentContainerStyle,
5604
+ containerProps,
5605
+ children,
5606
+ ...rest
5607
+ }) => {
5608
+ const paddingStyle = React2.useMemo(
5609
+ () => ({
5610
+ padding: sp2(p),
5611
+ paddingHorizontal: sp2(px),
5612
+ paddingVertical: sp2(py),
5613
+ paddingTop: sp2(pt),
5614
+ paddingRight: sp2(pr),
5615
+ paddingLeft: sp2(pl),
5616
+ // pb résout à 0 si absent — évite de couper le contenu en bas
5617
+ paddingBottom: pb != null ? spacing[pb] : 0
5618
+ }),
5619
+ [p, px, py, pt, pr, pb, pl]
5620
+ );
5621
+ return /* @__PURE__ */ jsxRuntime.jsx(Box_default2, { flex: 1, overflow: "hidden", width: "100%", ...containerProps, children: /* @__PURE__ */ jsxRuntime.jsx(
5622
+ reactNative.ScrollView,
5623
+ {
5624
+ style: { flex: 1 },
5625
+ contentContainerStyle: [{ flexGrow: 1 }, paddingStyle, contentContainerStyle],
5626
+ showsVerticalScrollIndicator: rest.showsVerticalScrollIndicator ?? true,
5627
+ nestedScrollEnabled: rest.nestedScrollEnabled ?? true,
5628
+ keyboardShouldPersistTaps: rest.keyboardShouldPersistTaps ?? "handled",
5629
+ ...rest,
5630
+ children
5631
+ }
5632
+ ) });
5633
+ };
5634
+ var Scroll_default2 = Scroll2;
5635
+ var META9 = getLayoutMeta("BentoLayout");
5636
+ var generateModernBentoConfig = (itemCount, isMobile) => {
5637
+ const config = [];
5638
+ const patterns = [
5639
+ [{ cols: 2, rows: 2 }, { cols: 2, rows: 1 }, { cols: 2, rows: 1 }],
5640
+ [{ cols: isMobile ? 2 : 1, rows: 1 }, { cols: isMobile ? 2 : 1, rows: 1 }, { cols: isMobile ? 2 : 2, rows: isMobile ? 1 : 2 }],
5641
+ [{ cols: 2, rows: 2 }, { cols: 1, rows: 1 }, { cols: 1, rows: 1 }],
5642
+ [{ cols: 3, rows: 1 }, { cols: 1, rows: 1 }, { cols: 1, rows: 1 }]
5643
+ ];
5644
+ let itemIndex = 0;
5645
+ let patternIndex = 0;
5646
+ while (itemIndex < itemCount) {
5647
+ const pattern = patterns[patternIndex % patterns.length];
5648
+ for (const cell of pattern) {
5649
+ if (itemIndex >= itemCount) break;
5650
+ config.push({
5651
+ index: itemIndex,
5652
+ cols: isMobile ? Math.min(cell.cols, 2) : cell.cols,
5653
+ rows: cell.rows
5654
+ });
5655
+ itemIndex++;
5656
+ }
5657
+ patternIndex++;
5658
+ }
5659
+ return config;
5660
+ };
5661
+ var BentoLayout = (rawProps) => {
5662
+ const { theme } = useTheme();
5663
+ const {
5664
+ items: itemsProp,
5665
+ children: childrenProp,
5666
+ spacing: spacing3,
5667
+ itemBackground,
5668
+ itemBorderRadius,
5669
+ scrollable,
5670
+ maxWidth,
5671
+ cellConfig,
5672
+ baseHeight,
5673
+ background,
5674
+ borderRadius
5675
+ } = applyDefaults(rawProps, META9, theme);
5676
+ const { isMobile } = useBreakpoint();
5677
+ const maxCols = isMobile ? 2 : 4;
5678
+ const rawItems = Array.isArray(itemsProp) && itemsProp.length > 0 ? itemsProp : React2__default.default.Children.toArray(childrenProp).filter(Boolean);
5679
+ const resolvedItems = useStudioItems(
5680
+ rawItems,
5681
+ 4,
5682
+ (i) => /* @__PURE__ */ jsxRuntime.jsx(Box_default2, { flex: 1, bg: itemBackground, borderRadius: itemBorderRadius, opacity: 0.4 }, i)
5683
+ );
5684
+ const itemPadding = React2.useMemo(() => Number(spacing3) / 2, [spacing3]);
5685
+ const bentoConfig = React2.useMemo(
5686
+ () => cellConfig || generateModernBentoConfig(resolvedItems.length, isMobile),
5687
+ [resolvedItems.length, isMobile, cellConfig]
5688
+ );
5689
+ const { placements, totalHeight } = React2.useMemo(() => {
5690
+ const grid = {};
5691
+ const results = [];
5692
+ const canPlace = (row, col, cols, rows) => {
5693
+ for (let r = 0; r < rows; r++)
5694
+ for (let c = 0; c < cols; c++)
5695
+ if (grid[row + r]?.[col + c]) return false;
5696
+ return true;
5697
+ };
5698
+ const markOccupied = (row, col, cols, rows) => {
5699
+ for (let r = 0; r < rows; r++) {
5700
+ if (!grid[row + r]) grid[row + r] = {};
5701
+ for (let c = 0; c < cols; c++) grid[row + r][col + c] = true;
5702
+ }
5703
+ };
5704
+ bentoConfig.forEach((cell) => {
5705
+ let r = 0, found = false;
5706
+ while (!found && r < 1e3) {
5707
+ for (let c = 0; c <= maxCols - cell.cols; c++) {
5708
+ if (canPlace(r, c, cell.cols, cell.rows)) {
5709
+ markOccupied(r, c, cell.cols, cell.rows);
5710
+ results.push({ index: cell.index, row: r, col: c, cols: cell.cols, rows: cell.rows });
5711
+ found = true;
5712
+ break;
5713
+ }
5714
+ }
5715
+ r++;
5716
+ }
5717
+ });
5718
+ return { placements: results, totalHeight: Math.max(...results.map((p) => p.row + p.rows), 1) * baseHeight };
5719
+ }, [bentoConfig, baseHeight, maxCols]);
5720
+ const GridContent = /* @__PURE__ */ jsxRuntime.jsx(
5721
+ Box_default2,
5722
+ {
5723
+ width: "100%",
5724
+ height: totalHeight,
5725
+ style: { maxWidth: isMobile ? "100%" : maxWidth, alignSelf: "center" },
5726
+ children: placements.map((p) => /* @__PURE__ */ jsxRuntime.jsx(
5727
+ Box_default2,
5728
+ {
5729
+ position: "absolute",
5730
+ left: `${p.col / maxCols * 100}%`,
5731
+ top: p.row * baseHeight,
5732
+ width: `${p.cols / maxCols * 100}%`,
5733
+ height: p.rows * baseHeight,
5734
+ p: itemPadding,
5735
+ children: /* @__PURE__ */ jsxRuntime.jsx(
5736
+ Box_default2,
5737
+ {
5738
+ flex: 1,
5739
+ bg: itemBackground || "transparent",
5740
+ borderRadius: itemBorderRadius,
5741
+ overflow: "hidden",
5742
+ children: resolvedItems[p.index]
5743
+ }
5744
+ )
5745
+ },
5746
+ `bento-${p.index}`
5747
+ ))
5748
+ }
5749
+ );
5750
+ return /* @__PURE__ */ jsxRuntime.jsx(Box_default2, { flex: 1, bg: background, borderRadius, overflow: "hidden", children: scrollable ? /* @__PURE__ */ jsxRuntime.jsx(Scroll_default2, { showsVerticalScrollIndicator: false, children: GridContent }) : GridContent });
5751
+ };
5752
+ var BentoLayout_default = BentoLayout;
5753
+ var META10 = getLayoutMeta("SidebarLayout");
5261
5754
  var SidebarLayout = (rawProps) => {
5262
5755
  const { theme } = useTheme();
5263
5756
  const {
@@ -5276,7 +5769,7 @@ var SidebarLayout = (rawProps) => {
5276
5769
  children,
5277
5770
  style,
5278
5771
  ...rest
5279
- } = applyDefaults(rawProps, META9, theme);
5772
+ } = applyDefaults(rawProps, META10, theme);
5280
5773
  const sw = sidebarWidth ?? 280;
5281
5774
  const gap = spacingToken != null ? spacing[spacingToken] : spacing[4];
5282
5775
  const pad = paddingToken != null ? spacing[paddingToken] : void 0;
@@ -5324,7 +5817,7 @@ var SidebarLayout = (rawProps) => {
5324
5817
  ] });
5325
5818
  };
5326
5819
  var SidebarLayout_default = SidebarLayout;
5327
- var META10 = getLayoutMeta("GridLayout");
5820
+ var META11 = getLayoutMeta("GridLayout");
5328
5821
  var GridLayout = (rawProps) => {
5329
5822
  const { theme } = useTheme();
5330
5823
  const {
@@ -5343,7 +5836,7 @@ var GridLayout = (rawProps) => {
5343
5836
  children,
5344
5837
  style,
5345
5838
  ...rest
5346
- } = applyDefaults(rawProps, META10, theme);
5839
+ } = applyDefaults(rawProps, META11, theme);
5347
5840
  const gap = spacingToken != null ? spacing[spacingToken] : 0;
5348
5841
  const pad = paddingToken != null ? spacing[paddingToken] : 0;
5349
5842
  const minCellWidth = compact ? 140 : 200;
@@ -5373,7 +5866,7 @@ var GridLayout = (rawProps) => {
5373
5866
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style: gridStyle, ...rest, children });
5374
5867
  };
5375
5868
  var GridLayout_default = GridLayout;
5376
- var META11 = getLayoutMeta("FlexLayout");
5869
+ var META12 = getLayoutMeta("FlexLayout");
5377
5870
  var FlexLayout = (rawProps) => {
5378
5871
  const { theme } = useTheme();
5379
5872
  const {
@@ -5390,7 +5883,7 @@ var FlexLayout = (rawProps) => {
5390
5883
  children,
5391
5884
  style,
5392
5885
  ...rest
5393
- } = applyDefaults(rawProps, META11, theme);
5886
+ } = applyDefaults(rawProps, META12, theme);
5394
5887
  const flexStyle = {
5395
5888
  display: "flex",
5396
5889
  flexDirection: direction ?? "row",
@@ -5411,7 +5904,7 @@ var FlexLayout = (rawProps) => {
5411
5904
  return /* @__PURE__ */ jsxRuntime.jsx("div", { style: flexStyle, ...rest, children });
5412
5905
  };
5413
5906
  var FlexLayout_default = FlexLayout;
5414
- var META12 = getLayoutMeta("SplitLayout");
5907
+ var META13 = getLayoutMeta("SplitLayout");
5415
5908
  var SplitLayout = (rawProps) => {
5416
5909
  const { theme } = useTheme();
5417
5910
  const {
@@ -5431,7 +5924,7 @@ var SplitLayout = (rawProps) => {
5431
5924
  children,
5432
5925
  style,
5433
5926
  ...rest
5434
- } = applyDefaults(rawProps, META12, theme);
5927
+ } = applyDefaults(rawProps, META13, theme);
5435
5928
  const gap = spacingToken != null ? spacing[spacingToken] : 0;
5436
5929
  const r = ratio ?? 0.5;
5437
5930
  const isVertical = orientation === "vertical";
@@ -5475,7 +5968,7 @@ var SplitLayout = (rawProps) => {
5475
5968
  ] });
5476
5969
  };
5477
5970
  var SplitLayout_default = SplitLayout;
5478
- var META13 = getLayoutMeta("FooterLayout");
5971
+ var META14 = getLayoutMeta("FooterLayout");
5479
5972
  var FooterLayout = (rawProps) => {
5480
5973
  const { theme } = useTheme();
5481
5974
  const {
@@ -5496,7 +5989,7 @@ var FooterLayout = (rawProps) => {
5496
5989
  children,
5497
5990
  style,
5498
5991
  ...rest
5499
- } = applyDefaults(rawProps, META13, theme);
5992
+ } = applyDefaults(rawProps, META14, theme);
5500
5993
  const fh = footerHeight ?? 60;
5501
5994
  const gap = spacingToken != null ? spacing[spacingToken] : 0;
5502
5995
  const pad = paddingToken != null ? spacing[paddingToken] : spacing[5];
@@ -5538,7 +6031,7 @@ var FooterLayout = (rawProps) => {
5538
6031
  ] });
5539
6032
  };
5540
6033
  var FooterLayout_default = FooterLayout;
5541
- var META14 = getLayoutMeta("ResponsiveLayout");
6034
+ var META15 = getLayoutMeta("ResponsiveLayout");
5542
6035
  var ResponsiveLayout = (rawProps) => {
5543
6036
  const { theme } = useTheme();
5544
6037
  const {
@@ -5564,7 +6057,7 @@ var ResponsiveLayout = (rawProps) => {
5564
6057
  children,
5565
6058
  style,
5566
6059
  ...rest
5567
- } = applyDefaults(rawProps, META14, theme);
6060
+ } = applyDefaults(rawProps, META15, theme);
5568
6061
  const hh = headerHeight ?? 60;
5569
6062
  const sw = Math.min(sidebarWidth ?? 260, sidebarMaxWidth ?? 320);
5570
6063
  const fh = footerHeight ?? 60;
@@ -5733,6 +6226,7 @@ exports.Accordion = Accordion_default;
5733
6226
  exports.AuthLayout = AuthLayout_default;
5734
6227
  exports.Avatar = Avatar_default;
5735
6228
  exports.Badge = Badge_default;
6229
+ exports.BentoLayout = BentoLayout_default;
5736
6230
  exports.Box = Box_default;
5737
6231
  exports.Button = Button_default;
5738
6232
  exports.Center = Center_default;