@factorialco/f0-react 1.306.4 → 1.307.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/experimental.d.ts +17 -17
- package/dist/experimental.js +3985 -3966
- package/dist/f0.d.ts +49 -29
- package/dist/f0.js +218 -217
- package/dist/{hooks-DRjrmneu.js → hooks-BeIXOFhm.js} +14985 -14898
- package/dist/i18n-provider-defaults.d.ts +17 -17
- package/dist/styles.css +1 -1
- package/icons/app/ClockBack.js +1 -1
- package/icons/app/DropdownDefault.js +1 -1
- package/icons/app/DropdownOpen.js +1 -1
- package/icons/app/EqualApproximately.d.ts.map +1 -1
- package/icons/app/EqualApproximately.js +2 -2
- package/icons/{modules/ITManagement.d.ts → app/Marketplace.d.ts} +1 -1
- package/icons/app/Marketplace.d.ts.map +1 -0
- package/icons/app/Marketplace.js +5 -0
- package/icons/app/index.d.ts +1 -0
- package/icons/app/index.d.ts.map +1 -1
- package/icons/app/index.js +1 -0
- package/icons/modules/Discover.d.ts.map +1 -1
- package/icons/modules/Discover.js +1 -1
- package/icons/modules/ItManagement.d.ts +4 -0
- package/icons/modules/ItManagement.d.ts.map +1 -0
- package/icons/modules/Marketplace.d.ts +4 -0
- package/icons/modules/Marketplace.d.ts.map +1 -0
- package/icons/modules/Marketplace.js +5 -0
- package/icons/modules/index.d.ts +2 -1
- package/icons/modules/index.d.ts.map +1 -1
- package/icons/modules/index.js +2 -1
- package/package.json +3 -3
- package/icons/modules/ITManagement.d.ts.map +0 -1
- /package/icons/modules/{ITManagement.js → ItManagement.js} +0 -0
package/dist/f0.d.ts
CHANGED
|
@@ -728,6 +728,10 @@ export declare type ButtonToggleSize = (typeof buttonToggleSizes)[number];
|
|
|
728
728
|
|
|
729
729
|
export declare const buttonToggleSizes: readonly ["sm", "md", "lg"];
|
|
730
730
|
|
|
731
|
+
export declare type ButtonToggleVariant = (typeof buttonToggleVariants)[number];
|
|
732
|
+
|
|
733
|
+
export declare const buttonToggleVariants: readonly ["compact", "expanded"];
|
|
734
|
+
|
|
731
735
|
declare type ButtonType = (typeof buttonTypes)[number];
|
|
732
736
|
|
|
733
737
|
declare const buttonTypes: readonly ["button", "submit", "reset"];
|
|
@@ -2262,15 +2266,7 @@ export declare type F0ButtonProps = Omit<ButtonInternalProps, (typeof privatePro
|
|
|
2262
2266
|
|
|
2263
2267
|
export declare const F0ButtonToggle: ForwardRefExoticComponent<F0ButtonToggleProps & RefAttributes<HTMLButtonElement>>;
|
|
2264
2268
|
|
|
2265
|
-
|
|
2266
|
-
/**
|
|
2267
|
-
* Whether the button is in selected/active state.
|
|
2268
|
-
*/
|
|
2269
|
-
selected?: boolean;
|
|
2270
|
-
/**
|
|
2271
|
-
* Callback fired when the button is selected.
|
|
2272
|
-
*/
|
|
2273
|
-
onSelectedChange?: (selected: boolean) => void;
|
|
2269
|
+
declare type F0ButtonToggleInternalProps = {
|
|
2274
2270
|
/**
|
|
2275
2271
|
* The accessible label for the button.
|
|
2276
2272
|
*/
|
|
@@ -2288,7 +2284,29 @@ export declare interface F0ButtonToggleProps {
|
|
|
2288
2284
|
* @default "md"
|
|
2289
2285
|
*/
|
|
2290
2286
|
size?: ButtonToggleSize;
|
|
2291
|
-
|
|
2287
|
+
/**
|
|
2288
|
+
* The variant of the button.
|
|
2289
|
+
* @default "compact"
|
|
2290
|
+
* "compact" - The button will only show the icon.
|
|
2291
|
+
* "expanded" - The button will show the icon and the label.
|
|
2292
|
+
*/
|
|
2293
|
+
variant?: ButtonToggleVariant;
|
|
2294
|
+
/**
|
|
2295
|
+
* @private
|
|
2296
|
+
* Whether to show a border around the button toggle.
|
|
2297
|
+
*/
|
|
2298
|
+
withBorder?: boolean;
|
|
2299
|
+
} & ({
|
|
2300
|
+
selected: boolean;
|
|
2301
|
+
onSelectedChange: (selected: boolean) => void;
|
|
2302
|
+
defaultSelected?: undefined;
|
|
2303
|
+
} | {
|
|
2304
|
+
defaultSelected?: boolean;
|
|
2305
|
+
selected?: undefined;
|
|
2306
|
+
onSelectedChange?: undefined;
|
|
2307
|
+
});
|
|
2308
|
+
|
|
2309
|
+
export declare type F0ButtonToggleProps = Omit<F0ButtonToggleInternalProps, (typeof privateProps_2)[number]>;
|
|
2292
2310
|
|
|
2293
2311
|
export declare const F0Card: ForwardRefExoticComponent<F0CardProps & RefAttributes<HTMLDivElement>> & {
|
|
2294
2312
|
Skeleton: ({ compact }: {
|
|
@@ -2296,7 +2314,7 @@ export declare const F0Card: ForwardRefExoticComponent<F0CardProps & RefAttribut
|
|
|
2296
2314
|
}) => JSX_2.Element;
|
|
2297
2315
|
};
|
|
2298
2316
|
|
|
2299
|
-
export declare type F0CardProps = Omit<CardInternalProps, (typeof
|
|
2317
|
+
export declare type F0CardProps = Omit<CardInternalProps, (typeof privateProps_3)[number]>;
|
|
2300
2318
|
|
|
2301
2319
|
/**
|
|
2302
2320
|
* @experimental This is an experimental component use it at your own risk
|
|
@@ -3535,7 +3553,9 @@ export declare const PrivacyModeProvider: React_2.FC<{
|
|
|
3535
3553
|
|
|
3536
3554
|
declare const privateProps: readonly ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style"];
|
|
3537
3555
|
|
|
3538
|
-
declare const privateProps_2: readonly ["
|
|
3556
|
+
declare const privateProps_2: readonly ["withBorder"];
|
|
3557
|
+
|
|
3558
|
+
declare const privateProps_3: readonly ["forceVerticalMetadata", "disableOverlayLink"];
|
|
3539
3559
|
|
|
3540
3560
|
export declare const ProductBlankslate: ForwardRefExoticComponent<ProductBlankslateProps & RefAttributes<HTMLDivElement>>;
|
|
3541
3561
|
|
|
@@ -4700,23 +4720,6 @@ declare global {
|
|
|
4700
4720
|
}
|
|
4701
4721
|
}
|
|
4702
4722
|
|
|
4703
|
-
declare module "gridstack" {
|
|
4704
|
-
interface GridStackWidget {
|
|
4705
|
-
id?: string;
|
|
4706
|
-
allowedSizes?: Array<{
|
|
4707
|
-
w: number;
|
|
4708
|
-
h: number;
|
|
4709
|
-
}>;
|
|
4710
|
-
meta?: Record<string, unknown>;
|
|
4711
|
-
}
|
|
4712
|
-
interface GridStackNode {
|
|
4713
|
-
allowedSizes?: Array<{
|
|
4714
|
-
w: number;
|
|
4715
|
-
h: number;
|
|
4716
|
-
}>;
|
|
4717
|
-
}
|
|
4718
|
-
}
|
|
4719
|
-
|
|
4720
4723
|
|
|
4721
4724
|
declare module "@tiptap/core" {
|
|
4722
4725
|
interface Commands<ReturnType> {
|
|
@@ -4744,6 +4747,23 @@ declare module "@tiptap/core" {
|
|
|
4744
4747
|
}
|
|
4745
4748
|
}
|
|
4746
4749
|
|
|
4750
|
+
declare module "gridstack" {
|
|
4751
|
+
interface GridStackWidget {
|
|
4752
|
+
id?: string;
|
|
4753
|
+
allowedSizes?: Array<{
|
|
4754
|
+
w: number;
|
|
4755
|
+
h: number;
|
|
4756
|
+
}>;
|
|
4757
|
+
meta?: Record<string, unknown>;
|
|
4758
|
+
}
|
|
4759
|
+
interface GridStackNode {
|
|
4760
|
+
allowedSizes?: Array<{
|
|
4761
|
+
w: number;
|
|
4762
|
+
h: number;
|
|
4763
|
+
}>;
|
|
4764
|
+
}
|
|
4765
|
+
}
|
|
4766
|
+
|
|
4747
4767
|
|
|
4748
4768
|
declare namespace Calendar {
|
|
4749
4769
|
var displayName: string;
|