@factorialco/f0-react 1.326.0 → 1.327.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.
@@ -1540,6 +1540,8 @@ export declare type CoCreationFormProps = {
1540
1540
 
1541
1541
  declare type ColId = string;
1542
1542
 
1543
+ export declare type CollapsibleMenuVariant = "dark" | "light";
1544
+
1543
1545
  /**
1544
1546
  * Props for the Collection component.
1545
1547
  * @template Record - The type of records in the collection
@@ -2971,7 +2973,7 @@ export declare const F0Callout: ForwardRefExoticComponent<CalloutInternalProps &
2971
2973
 
2972
2974
  export declare type F0CalloutProps = CalloutInternalProps;
2973
2975
 
2974
- export declare function F0CollapsibleMenu({ title, items, className, activeItem, collapsible, showChildrenCounter, barsAlign, size, popupAlign, }: F0CollapsibleMenuProps): JSX_2.Element;
2976
+ export declare function F0CollapsibleMenu({ title, items, className, activeItem, collapsible, showChildrenCounter, barsAlign, size, popupAlign, variant, }: F0CollapsibleMenuProps): JSX_2.Element;
2975
2977
 
2976
2978
  export declare interface F0CollapsibleMenuProps extends Omit<TOCProps, "sortable" | "onReorder" | "showSearchBox" | "title" | "hideChildrenCounter"> {
2977
2979
  /** Optional title displayed at the top of the menu popup */
@@ -2986,6 +2988,8 @@ export declare interface F0CollapsibleMenuProps extends Omit<TOCProps, "sortable
2986
2988
  size?: PopupSize;
2987
2989
  /** Alignment of the popup content */
2988
2990
  popupAlign?: "center" | "start" | "end";
2991
+ /** Visual variant: "dark" for light backgrounds (default), "light" for dark backgrounds */
2992
+ variant?: CollapsibleMenuVariant;
2989
2993
  }
2990
2994
 
2991
2995
  declare interface F0IconProps extends SVGProps<SVGSVGElement>, VariantProps<typeof iconVariants> {
@@ -6435,23 +6439,6 @@ declare global {
6435
6439
  }
6436
6440
  }
6437
6441
 
6438
- declare module "gridstack" {
6439
- interface GridStackWidget {
6440
- id?: string;
6441
- allowedSizes?: Array<{
6442
- w: number;
6443
- h: number;
6444
- }>;
6445
- meta?: Record<string, unknown>;
6446
- }
6447
- interface GridStackNode {
6448
- allowedSizes?: Array<{
6449
- w: number;
6450
- h: number;
6451
- }>;
6452
- }
6453
- }
6454
-
6455
6442
 
6456
6443
  declare module "@tiptap/core" {
6457
6444
  interface Commands<ReturnType> {
@@ -6479,9 +6466,21 @@ declare module "@tiptap/core" {
6479
6466
  }
6480
6467
  }
6481
6468
 
6482
-
6483
- declare namespace Calendar {
6484
- var displayName: string;
6469
+ declare module "gridstack" {
6470
+ interface GridStackWidget {
6471
+ id?: string;
6472
+ allowedSizes?: Array<{
6473
+ w: number;
6474
+ h: number;
6475
+ }>;
6476
+ meta?: Record<string, unknown>;
6477
+ }
6478
+ interface GridStackNode {
6479
+ allowedSizes?: Array<{
6480
+ w: number;
6481
+ h: number;
6482
+ }>;
6483
+ }
6485
6484
  }
6486
6485
 
6487
6486
 
@@ -6492,3 +6491,8 @@ declare module "@tiptap/core" {
6492
6491
  };
6493
6492
  }
6494
6493
  }
6494
+
6495
+
6496
+ declare namespace Calendar {
6497
+ var displayName: string;
6498
+ }
@@ -35171,13 +35171,13 @@ function hC(t, e = 0, n = 12) {
35171
35171
  return i.slice(0, n);
35172
35172
  }
35173
35173
  const gv = ["w-4", "w-3", "w-2", "w-1.5"];
35174
- function XY({ items: t, activeItem: e, className: n, align: i = "left" }) {
35175
- const r = hC(t);
35174
+ function XY({ items: t, activeItem: e, className: n, align: i = "left", variant: r = "dark" }) {
35175
+ const s = hC(t);
35176
35176
  return f("div", {
35177
35177
  className: F("flex flex-col justify-center gap-2 py-3", i === "right" ? "items-end" : "items-start", n),
35178
- children: r.map((s) => f("div", {
35179
- className: F("h-0.5 rounded-full", gv[s.depth] ?? gv[3], s.id === e ? "bg-f1-foreground" : "bg-f1-foreground-tertiary opacity-60")
35180
- }, s.id))
35178
+ children: s.map((o) => f("div", {
35179
+ className: F("h-0.5 rounded-full", gv[o.depth] ?? gv[3], r === "light" ? "bg-f1-foreground-inverse" : "bg-f1-foreground", o.id !== e && (r === "light" ? "opacity-50" : "bg-f1-foreground-tertiary opacity-60"))
35180
+ }, o.id))
35181
35181
  });
35182
35182
  }
35183
35183
  const YY = {
@@ -35185,7 +35185,7 @@ const YY = {
35185
35185
  md: "max-h-[400px]",
35186
35186
  lg: "max-h-[600px]"
35187
35187
  }, QY = 200, eQ = 0;
35188
- function kme({ title: t, items: e, className: n, activeItem: i, collapsible: r = !1, showChildrenCounter: s = !1, barsAlign: o = "left", size: a = "md", popupAlign: l = "center" }) {
35188
+ function kme({ title: t, items: e, className: n, activeItem: i, collapsible: r = !1, showChildrenCounter: s = !1, barsAlign: o = "left", size: a = "md", popupAlign: l = "center", variant: c = "dark" }) {
35189
35189
  return x(JA, {
35190
35190
  openDelay: eQ,
35191
35191
  closeDelay: QY,
@@ -35197,7 +35197,8 @@ function kme({ title: t, items: e, className: n, activeItem: i, collapsible: r =
35197
35197
  children: f(XY, {
35198
35198
  items: e,
35199
35199
  activeItem: i,
35200
- align: o
35200
+ align: o,
35201
+ variant: c
35201
35202
  })
35202
35203
  })
35203
35204
  }), f(YA, {
package/dist/f0.d.ts CHANGED
@@ -5124,23 +5124,6 @@ declare global {
5124
5124
  }
5125
5125
  }
5126
5126
 
5127
- declare module "gridstack" {
5128
- interface GridStackWidget {
5129
- id?: string;
5130
- allowedSizes?: Array<{
5131
- w: number;
5132
- h: number;
5133
- }>;
5134
- meta?: Record<string, unknown>;
5135
- }
5136
- interface GridStackNode {
5137
- allowedSizes?: Array<{
5138
- w: number;
5139
- h: number;
5140
- }>;
5141
- }
5142
- }
5143
-
5144
5127
 
5145
5128
  declare module "@tiptap/core" {
5146
5129
  interface Commands<ReturnType> {
@@ -5168,9 +5151,21 @@ declare module "@tiptap/core" {
5168
5151
  }
5169
5152
  }
5170
5153
 
5171
-
5172
- declare namespace Calendar {
5173
- var displayName: string;
5154
+ declare module "gridstack" {
5155
+ interface GridStackWidget {
5156
+ id?: string;
5157
+ allowedSizes?: Array<{
5158
+ w: number;
5159
+ h: number;
5160
+ }>;
5161
+ meta?: Record<string, unknown>;
5162
+ }
5163
+ interface GridStackNode {
5164
+ allowedSizes?: Array<{
5165
+ w: number;
5166
+ h: number;
5167
+ }>;
5168
+ }
5174
5169
  }
5175
5170
 
5176
5171
 
@@ -5181,3 +5176,8 @@ declare module "@tiptap/core" {
5181
5176
  };
5182
5177
  }
5183
5178
  }
5179
+
5180
+
5181
+ declare namespace Calendar {
5182
+ var displayName: string;
5183
+ }
@@ -458,23 +458,6 @@ declare global {
458
458
  }
459
459
  }
460
460
 
461
- declare module "gridstack" {
462
- interface GridStackWidget {
463
- id?: string;
464
- allowedSizes?: Array<{
465
- w: number;
466
- h: number;
467
- }>;
468
- meta?: Record<string, unknown>;
469
- }
470
- interface GridStackNode {
471
- allowedSizes?: Array<{
472
- w: number;
473
- h: number;
474
- }>;
475
- }
476
- }
477
-
478
461
 
479
462
  declare module "@tiptap/core" {
480
463
  interface Commands<ReturnType> {
@@ -502,9 +485,21 @@ declare module "@tiptap/core" {
502
485
  }
503
486
  }
504
487
 
505
-
506
- declare namespace Calendar {
507
- var displayName: string;
488
+ declare module "gridstack" {
489
+ interface GridStackWidget {
490
+ id?: string;
491
+ allowedSizes?: Array<{
492
+ w: number;
493
+ h: number;
494
+ }>;
495
+ meta?: Record<string, unknown>;
496
+ }
497
+ interface GridStackNode {
498
+ allowedSizes?: Array<{
499
+ w: number;
500
+ h: number;
501
+ }>;
502
+ }
508
503
  }
509
504
 
510
505
 
@@ -515,3 +510,8 @@ declare module "@tiptap/core" {
515
510
  };
516
511
  }
517
512
  }
513
+
514
+
515
+ declare namespace Calendar {
516
+ var displayName: string;
517
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "1.326.0",
3
+ "version": "1.327.0",
4
4
  "main": "dist/f0.js",
5
5
  "typings": "dist/f0.d.ts",
6
6
  "private": false,