@factorialco/f0-react 1.316.3 → 1.317.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/f0.d.ts CHANGED
@@ -770,6 +770,14 @@ declare type CardAvatarVariant = AvatarVariant | {
770
770
  */
771
771
  declare type CardCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, CardVisualizationOptions<Record, Filters, Sortings>>;
772
772
 
773
+ export declare type CardImageFit = (typeof cardImageFits)[number];
774
+
775
+ export declare const cardImageFits: readonly ["contain", "cover", "fit-width", "fit-height", "scale-down"];
776
+
777
+ export declare type CardImageSize = (typeof cardImageSizes)[number];
778
+
779
+ export declare const cardImageSizes: readonly ["xs", "sm", "md", "lg", "xl"];
780
+
773
781
  declare interface CardInternalProps {
774
782
  /**
775
783
  * Whether the card has a compact layout
@@ -783,6 +791,21 @@ declare interface CardInternalProps {
783
791
  * Whether the card has an image
784
792
  */
785
793
  image?: string;
794
+ /**
795
+ * How the image should be displayed/fitted within its container
796
+ * @default "fit-width"
797
+ */
798
+ imageFit?: CardImageFit;
799
+ /**
800
+ * Size of the image container
801
+ * @default "sm"
802
+ */
803
+ imageSize?: CardImageSize;
804
+ /**
805
+ * Whether to show a blurred background image when the image doesn't fill the container
806
+ * @default true
807
+ */
808
+ blurredBackground?: boolean;
786
809
  /**
787
810
  * The title of the card
788
811
  */
@@ -918,6 +941,9 @@ declare type CardVisualizationOptions<T, _Filters extends FiltersDefinition, _So
918
941
  description?: (record: T) => string;
919
942
  avatar?: (record: T) => CardAvatarVariant;
920
943
  image?: (record: T) => string;
944
+ imageFit?: CardImageFit;
945
+ imageSize?: CardImageSize;
946
+ blurredBackground?: boolean;
921
947
  compact?: boolean;
922
948
  };
923
949
 
@@ -4929,6 +4955,23 @@ declare global {
4929
4955
  }
4930
4956
  }
4931
4957
 
4958
+ declare module "gridstack" {
4959
+ interface GridStackWidget {
4960
+ id?: string;
4961
+ allowedSizes?: Array<{
4962
+ w: number;
4963
+ h: number;
4964
+ }>;
4965
+ meta?: Record<string, unknown>;
4966
+ }
4967
+ interface GridStackNode {
4968
+ allowedSizes?: Array<{
4969
+ w: number;
4970
+ h: number;
4971
+ }>;
4972
+ }
4973
+ }
4974
+
4932
4975
 
4933
4976
  declare module "@tiptap/core" {
4934
4977
  interface Commands<ReturnType> {
@@ -4956,21 +4999,9 @@ declare module "@tiptap/core" {
4956
4999
  }
4957
5000
  }
4958
5001
 
4959
- declare module "gridstack" {
4960
- interface GridStackWidget {
4961
- id?: string;
4962
- allowedSizes?: Array<{
4963
- w: number;
4964
- h: number;
4965
- }>;
4966
- meta?: Record<string, unknown>;
4967
- }
4968
- interface GridStackNode {
4969
- allowedSizes?: Array<{
4970
- w: number;
4971
- h: number;
4972
- }>;
4973
- }
5002
+
5003
+ declare namespace Calendar {
5004
+ var displayName: string;
4974
5005
  }
4975
5006
 
4976
5007
 
@@ -4981,8 +5012,3 @@ declare module "@tiptap/core" {
4981
5012
  };
4982
5013
  }
4983
5014
  }
4984
-
4985
-
4986
- declare namespace Calendar {
4987
- var displayName: string;
4988
- }
package/dist/f0.js CHANGED
@@ -1,9 +1,9 @@
1
- import { L as _n, C as Ur, c as U, a as Di, u as En, m as Ri, i as Dn, B as Si, O as jr, p as Kr, w as Rn, S as xe, b as Xr, F as Sn, d as Yr, A as Vr, D as qr, e as Jr, f as we, g as Zr, h as me, j as qi, k as Qr, l as di, n as lt, o as es, q as ts, r as At, s as Nn, E as is, t as zt, v as ns, x as rs, y as ss, z as os, G as Xe, H as An, I as as, J as ls, K as cs, M as Ji, N as ds, P as On, Q as us, R as kn, X as Tn, Y as vi, T as hs, U as zn, V as fs, W as gs, Z as ps, _ as ms, $ as vs, a0 as ys, a1 as bs, a2 as xs, a3 as Zi, a4 as ws, a5 as ct, a6 as ui, a7 as Cs, a8 as _s, a9 as Es, aa as Ds, ab as Rs, ac as Ss, ad as Ns, ae as As, af as Os, ag as ks, ah as Ts, ai as Qi, aj as zs, ak as Ps, al as Pn, am as Ms, an as Mt, ao as Mn, ap as Ln, aq as Ls, ar as In, as as Hn, at as Bn, au as Is, av as Hs, aw as Fn, ax as Bs, ay as Fs, az as Ws, aA as Gs, aB as $s, aC as Us, aD as Wn, aE as qe, aF as Gn, aG as js, aH as Ks, aI as en, aJ as Xs, aK as $n, aL as Ys, aM as Vs, aN as qs, aO as Js, aP as Zs, aQ as Qs, aR as eo, aS as to, aT as io, aU as no, aV as ro, aW as so } from "./hooks-B_uo0_lI.js";
2
- import { bo as ad, bB as ld, bK as cd, aX as dd, aY as ud, aZ as hd, a_ as fd, a$ as gd, b0 as pd, b1 as md, b2 as vd, b4 as yd, b5 as bd, b6 as xd, b7 as wd, b8 as Cd, b9 as _d, ba as Ed, bG as Dd, bc as Rd, bd as Sd, bh as Nd, bi as Ad, bj as Od, bl as kd, bm as Td, bn as zd, bq as Pd, bf as Md, bp as Ld, bg as Id, bk as Hd, bH as Bd, bA as Fd, bv as Wd, by as Gd, bu as $d, bL as Ud, bt as jd, bs as Kd, b3 as Xd, bb as Yd, be as Vd, br as qd, bw as Jd, bC as Zd, bD as Qd, bE as eu, bM as tu, bx as iu, bF as nu, bJ as ru, bz as su, bI as ou } from "./hooks-B_uo0_lI.js";
1
+ import { L as _n, C as Ur, c as U, a as Di, u as En, m as Ri, i as Dn, B as Si, O as jr, p as Kr, w as Rn, S as xe, b as Xr, F as Sn, d as Yr, A as Vr, D as qr, e as Jr, f as we, g as Zr, h as me, j as qi, k as Qr, l as di, n as lt, o as es, q as ts, r as At, s as Nn, E as is, t as zt, v as ns, x as rs, y as ss, z as os, G as Xe, H as An, I as as, J as ls, K as cs, M as Ji, N as ds, P as On, Q as us, R as kn, X as Tn, Y as vi, T as hs, U as zn, V as fs, W as gs, Z as ps, _ as ms, $ as vs, a0 as ys, a1 as bs, a2 as xs, a3 as Zi, a4 as ws, a5 as ct, a6 as ui, a7 as Cs, a8 as _s, a9 as Es, aa as Ds, ab as Rs, ac as Ss, ad as Ns, ae as As, af as Os, ag as ks, ah as Ts, ai as Qi, aj as zs, ak as Ps, al as Pn, am as Ms, an as Mt, ao as Mn, ap as Ln, aq as Ls, ar as In, as as Hn, at as Bn, au as Is, av as Hs, aw as Fn, ax as Bs, ay as Fs, az as Ws, aA as Gs, aB as $s, aC as Us, aD as Wn, aE as qe, aF as Gn, aG as js, aH as Ks, aI as en, aJ as Xs, aK as $n, aL as Ys, aM as Vs, aN as qs, aO as Js, aP as Zs, aQ as Qs, aR as eo, aS as to, aT as io, aU as no, aV as ro, aW as so } from "./hooks-CUFsqUWT.js";
2
+ import { bq as ad, bD as ld, bM as cd, aX as dd, aY as ud, aZ as hd, a_ as fd, a$ as gd, b0 as pd, b1 as md, b2 as vd, b4 as yd, b5 as bd, b6 as xd, b7 as wd, ba as Cd, bb as _d, bc as Ed, bI as Dd, be as Rd, bf as Sd, bj as Nd, bk as Ad, bl as Od, bn as kd, bo as Td, bp as zd, bs as Pd, bh as Md, br as Ld, bi as Id, bm as Hd, bJ as Bd, b8 as Fd, b9 as Wd, bC as Gd, bx as $d, bA as Ud, bw as jd, bN as Kd, bv as Xd, bu as Yd, b3 as Vd, bd as qd, bg as Jd, bt as Zd, by as Qd, bE as eu, bF as tu, bG as iu, bO as nu, bz as ru, bH as su, bL as ou, bB as au, bK as lu } from "./hooks-CUFsqUWT.js";
3
3
  import { jsx as f, jsxs as P, Fragment as qt } from "react/jsx-runtime";
4
4
  import M, { forwardRef as oe, useRef as L, useImperativeHandle as oo, Children as Lt, createContext as Ae, useContext as _e, useState as W, useMemo as H, useEffect as I, useCallback as j, useLayoutEffect as yi, createElement as tn, isValidElement as Un, Fragment as ao, memo as lo, useReducer as co, cloneElement as uo, PureComponent as ho } from "react";
5
5
  import { createPortal as jn, unstable_batchedUpdates as Ot } from "react-dom";
6
- import { defaultTranslations as lu } from "./i18n-provider-defaults.js";
6
+ import { defaultTranslations as du } from "./i18n-provider-defaults.js";
7
7
  import './f0.css';const fo = {
8
8
  xs: 1,
9
9
  sm: 2,
@@ -9084,33 +9084,35 @@ export {
9084
9084
  Yc as buttonToggleSizes,
9085
9085
  Vc as buttonToggleVariants,
9086
9086
  Uc as buttonVariants,
9087
- Fd as createAtlaskitDriver,
9088
- Wd as createDataSourceDefinition,
9087
+ Fd as cardImageFits,
9088
+ Wd as cardImageSizes,
9089
+ Gd as createAtlaskitDriver,
9090
+ $d as createDataSourceDefinition,
9089
9091
  ko as createPageLayoutBlock,
9090
9092
  To as createPageLayoutBlockGroup,
9091
9093
  rd as dataCollectionLocalStorageHandler,
9092
9094
  Qc as datepickerSizes,
9093
- lu as defaultTranslations,
9095
+ du as defaultTranslations,
9094
9096
  we as experimental,
9095
- Gd as getAnimationVariants,
9096
- $d as getDataSourcePaginationType,
9097
- Ud as getEmojiLabel,
9098
- jd as isInfiniteScrollPagination,
9099
- Kd as isPageBasedPagination,
9097
+ Ud as getAnimationVariants,
9098
+ jd as getDataSourcePaginationType,
9099
+ Kd as getEmojiLabel,
9100
+ Xd as isInfiniteScrollPagination,
9101
+ Yd as isPageBasedPagination,
9100
9102
  qc as linkVariants,
9101
- Xd as modules,
9102
- Yd as predefinedPresets,
9103
- Vd as selectSizes,
9103
+ Vd as modules,
9104
+ qd as predefinedPresets,
9105
+ Jd as selectSizes,
9104
9106
  Jc as tagDotColors,
9105
- qd as useData,
9106
- Jd as useDataSource,
9107
- Zd as useDndEvents,
9108
- Qd as useDraggable,
9109
- eu as useDroppableList,
9110
- tu as useEmojiConfetti,
9111
- iu as useGroups,
9112
- nu as usePrivacyMode,
9113
- ru as useReducedMotion,
9114
- su as useSelectable,
9115
- ou as useXRay
9107
+ Zd as useData,
9108
+ Qd as useDataSource,
9109
+ eu as useDndEvents,
9110
+ tu as useDraggable,
9111
+ iu as useDroppableList,
9112
+ nu as useEmojiConfetti,
9113
+ ru as useGroups,
9114
+ su as usePrivacyMode,
9115
+ ou as useReducedMotion,
9116
+ au as useSelectable,
9117
+ lu as useXRay
9116
9118
  };