@frigade/react 2.7.6 → 2.8.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/dist/index.cjs +70 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +74 -12
- package/dist/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ import * as _frigade_js from '@frigade/js';
|
|
|
7
7
|
import { Flow as Flow$1, FlowStep, PropertyPayload, StatefulFlow } from '@frigade/js';
|
|
8
8
|
export { _frigade_js as FrigadeJS };
|
|
9
9
|
import * as Collapsible$1 from '@radix-ui/react-collapsible';
|
|
10
|
+
import { UseFloatingOptions } from '@floating-ui/react';
|
|
11
|
+
import * as react from '@floating-ui/react';
|
|
12
|
+
export { react as FloatingUI };
|
|
10
13
|
import { UseFormReturn, ControllerFieldState, Message, ValidationRule } from 'react-hook-form';
|
|
11
14
|
import * as Popover from '@radix-ui/react-popover';
|
|
12
15
|
|
|
@@ -1413,6 +1416,7 @@ interface FlowProps extends FlowPropsWithoutChildren {
|
|
|
1413
1416
|
children?: (props: FlowChildrenProps) => ReactNode;
|
|
1414
1417
|
}
|
|
1415
1418
|
type ParentProps = {
|
|
1419
|
+
as: FlowPropsWithoutChildren['as'];
|
|
1416
1420
|
containerProps: Record<string, unknown>;
|
|
1417
1421
|
dismissible: boolean;
|
|
1418
1422
|
flowId: string;
|
|
@@ -1468,11 +1472,11 @@ interface AnnouncementProps extends FlowPropsWithoutChildren, DialogProps {
|
|
|
1468
1472
|
*/
|
|
1469
1473
|
defaultOpen?: boolean;
|
|
1470
1474
|
}
|
|
1471
|
-
declare function Announcement({ flowId,
|
|
1475
|
+
declare function Announcement({ flowId, ...props }: AnnouncementProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1472
1476
|
|
|
1473
1477
|
interface BannerProps extends FlowPropsWithoutChildren {
|
|
1474
1478
|
}
|
|
1475
|
-
declare function Banner({ flowId,
|
|
1479
|
+
declare function Banner({ flowId, ...props }: BannerProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1476
1480
|
|
|
1477
1481
|
interface CardHeaderProps extends BoxProps {
|
|
1478
1482
|
dismissible?: boolean;
|
|
@@ -1533,32 +1537,78 @@ interface CollapsibleProps extends FlowPropsWithoutChildren {
|
|
|
1533
1537
|
}
|
|
1534
1538
|
declare function Collapsible({ flowId, onPrimary, onSecondary, part, stepTypes, ...props }: CollapsibleProps): JSX.Element;
|
|
1535
1539
|
|
|
1536
|
-
declare function Content({ children }: {
|
|
1540
|
+
declare function Content$1({ children }: {
|
|
1537
1541
|
children: any;
|
|
1538
1542
|
}): _emotion_react_jsx_runtime.JSX.Element;
|
|
1539
|
-
declare function Root({ children, disabled, onOpenChange, open, ...props }: Collapsible$1.CollapsibleProps & BoxProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1540
|
-
declare function Trigger({ isCompleted, isBlocked, title }: {
|
|
1543
|
+
declare function Root$1({ children, disabled, onOpenChange, open, ...props }: Collapsible$1.CollapsibleProps & BoxProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1544
|
+
declare function Trigger$1({ isCompleted, isBlocked, title }: {
|
|
1541
1545
|
isCompleted: any;
|
|
1542
1546
|
isBlocked: any;
|
|
1543
1547
|
title: any;
|
|
1544
1548
|
}): _emotion_react_jsx_runtime.JSX.Element;
|
|
1545
1549
|
|
|
1546
|
-
declare const CollapsibleStep_Content: typeof Content;
|
|
1547
|
-
declare const CollapsibleStep_Root: typeof Root;
|
|
1548
|
-
declare const CollapsibleStep_Trigger: typeof Trigger;
|
|
1549
1550
|
declare namespace CollapsibleStep {
|
|
1550
1551
|
export {
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1552
|
+
Content$1 as Content,
|
|
1553
|
+
Root$1 as Root,
|
|
1554
|
+
Trigger$1 as Trigger,
|
|
1554
1555
|
};
|
|
1555
1556
|
}
|
|
1556
1557
|
|
|
1558
|
+
type AlignValue$1 = 'after' | 'before' | 'center' | 'end' | 'start';
|
|
1559
|
+
type SideValue$1 = 'bottom' | 'left' | 'right' | 'top';
|
|
1560
|
+
interface FloatingProps extends UseFloatingOptions {
|
|
1561
|
+
align?: AlignValue$1;
|
|
1562
|
+
alignOffset?: number;
|
|
1563
|
+
anchor?: string;
|
|
1564
|
+
side?: SideValue$1;
|
|
1565
|
+
sideOffset?: number;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
interface PopoverRootProps extends FloatingProps {
|
|
1569
|
+
autoScroll?: ScrollIntoViewOptions | boolean;
|
|
1570
|
+
children?: React.ReactNode;
|
|
1571
|
+
defaultOpen?: boolean;
|
|
1572
|
+
modal?: boolean;
|
|
1573
|
+
spotlight?: boolean;
|
|
1574
|
+
}
|
|
1575
|
+
declare function Root({ align, alignOffset, anchor, autoScroll, children, defaultOpen, modal, onOpenChange, open, side, sideOffset, spotlight, ...floatingProps }: PopoverRootProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1576
|
+
|
|
1577
|
+
interface PopoverContentProps extends BoxProps {
|
|
1578
|
+
}
|
|
1579
|
+
declare function Content({ children, css, part, style, ...props }: BoxProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1580
|
+
|
|
1581
|
+
interface PopoverTriggerProps extends BoxProps {
|
|
1582
|
+
}
|
|
1583
|
+
declare function Trigger({ children, part, ...props }: BoxProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1584
|
+
|
|
1585
|
+
declare const index$3_Content: typeof Content;
|
|
1586
|
+
type index$3_PopoverContentProps = PopoverContentProps;
|
|
1587
|
+
type index$3_PopoverRootProps = PopoverRootProps;
|
|
1588
|
+
type index$3_PopoverTriggerProps = PopoverTriggerProps;
|
|
1589
|
+
declare const index$3_Root: typeof Root;
|
|
1590
|
+
declare const index$3_Trigger: typeof Trigger;
|
|
1591
|
+
declare namespace index$3 {
|
|
1592
|
+
export {
|
|
1593
|
+
index$3_Content as Content,
|
|
1594
|
+
index$3_PopoverContentProps as PopoverContentProps,
|
|
1595
|
+
index$3_PopoverRootProps as PopoverRootProps,
|
|
1596
|
+
index$3_PopoverTriggerProps as PopoverTriggerProps,
|
|
1597
|
+
index$3_Root as Root,
|
|
1598
|
+
index$3_Trigger as Trigger,
|
|
1599
|
+
};
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
interface FloatingChecklistProps extends PopoverRootProps, FlowPropsWithoutChildren {
|
|
1603
|
+
}
|
|
1604
|
+
declare function Floating({ children, flowId, onPrimary, onSecondary, part, ...props }: FloatingChecklistProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1605
|
+
|
|
1557
1606
|
declare const index$2_Carousel: typeof Carousel;
|
|
1558
1607
|
declare const index$2_Collapsible: typeof Collapsible;
|
|
1559
1608
|
type index$2_CollapsibleProps = CollapsibleProps;
|
|
1560
1609
|
declare const index$2_CollapsibleStep: typeof CollapsibleStep;
|
|
1561
1610
|
type index$2_CollapsibleStepProps = CollapsibleStepProps;
|
|
1611
|
+
declare const index$2_Floating: typeof Floating;
|
|
1562
1612
|
declare namespace index$2 {
|
|
1563
1613
|
export {
|
|
1564
1614
|
index$2_Carousel as Carousel,
|
|
@@ -1566,6 +1616,7 @@ declare namespace index$2 {
|
|
|
1566
1616
|
index$2_CollapsibleProps as CollapsibleProps,
|
|
1567
1617
|
index$2_CollapsibleStep as CollapsibleStep,
|
|
1568
1618
|
index$2_CollapsibleStepProps as CollapsibleStepProps,
|
|
1619
|
+
index$2_Floating as Floating,
|
|
1569
1620
|
};
|
|
1570
1621
|
}
|
|
1571
1622
|
|
|
@@ -1752,6 +1803,11 @@ interface NPSProps extends FormProps {
|
|
|
1752
1803
|
}
|
|
1753
1804
|
declare function NPS({ as, flowId, fieldTypes, part, options, positiveLabel, negativeLabel, ...props }: NPSProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1754
1805
|
|
|
1806
|
+
interface PingProps extends BoxProps {
|
|
1807
|
+
clickable?: boolean;
|
|
1808
|
+
}
|
|
1809
|
+
declare function Ping({ clickable, part, style, ...props }: PingProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1810
|
+
|
|
1755
1811
|
interface ProgressProps extends BoxProps {
|
|
1756
1812
|
current: number;
|
|
1757
1813
|
total: number;
|
|
@@ -1763,12 +1819,15 @@ declare function Dots({ current, total, ...props }: ProgressProps): _emotion_rea
|
|
|
1763
1819
|
|
|
1764
1820
|
declare function Fraction({ current, total, ...props }: ProgressProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1765
1821
|
|
|
1822
|
+
declare function Ring({ css, current, height, showLabel, strokeWidth, total, width, ...props }: ProgressProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1823
|
+
|
|
1766
1824
|
declare function Segments({ current, total, ...props }: ProgressProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1767
1825
|
|
|
1768
1826
|
declare const index$1_Bar: typeof Bar;
|
|
1769
1827
|
declare const index$1_Dots: typeof Dots;
|
|
1770
1828
|
declare const index$1_Fraction: typeof Fraction;
|
|
1771
1829
|
type index$1_ProgressProps = ProgressProps;
|
|
1830
|
+
declare const index$1_Ring: typeof Ring;
|
|
1772
1831
|
declare const index$1_Segments: typeof Segments;
|
|
1773
1832
|
declare namespace index$1 {
|
|
1774
1833
|
export {
|
|
@@ -1776,6 +1835,7 @@ declare namespace index$1 {
|
|
|
1776
1835
|
index$1_Dots as Dots,
|
|
1777
1836
|
index$1_Fraction as Fraction,
|
|
1778
1837
|
index$1_ProgressProps as ProgressProps,
|
|
1838
|
+
index$1_Ring as Ring,
|
|
1779
1839
|
index$1_Segments as Segments,
|
|
1780
1840
|
};
|
|
1781
1841
|
}
|
|
@@ -1987,6 +2047,8 @@ interface TourProps extends FlowPropsWithoutChildren, Omit<HintProps, 'anchor'>
|
|
|
1987
2047
|
}
|
|
1988
2048
|
declare function Tour({ as, flowId, ...props }: TourProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1989
2049
|
|
|
2050
|
+
declare function useAutoScroll(element: Element | null | undefined, enabled?: boolean | ScrollIntoViewOptions): void;
|
|
2051
|
+
|
|
1990
2052
|
declare function useBoundingClientRect(): {
|
|
1991
2053
|
node: any;
|
|
1992
2054
|
rect: DOMRect;
|
|
@@ -2021,4 +2083,4 @@ declare function useGroup(): {
|
|
|
2021
2083
|
isLoading: boolean;
|
|
2022
2084
|
};
|
|
2023
2085
|
|
|
2024
|
-
export { Announcement, AnnouncementProps, Banner, BannerProps, BaseField, Box, BoxProps, Button, ButtonProps, Card, CardHeaderProps, CardProps, index$2 as Checklist, ClientPortal, ClientPortalProps, CollapsibleProps, CollapsibleStepProps, Collection, Dialog, DialogProps, DismissHandler, FieldTypes, Flex, Flow, FlowChildrenProps, FlowConfig, FlowHandlerProp, FlowHandlerProps, FlowProps, FlowPropsWithoutChildren, Form, FormFieldData, FormFieldProps, FormProps, Hint, Image, Label, Media, NPSProps, index$1 as Progress, ProgressBadge, ProgressBadgeProps, Provider, ProviderProps, RadioField, SelectField, Spotlight, StepHandler, StepHandlerProp, StepHandlerProps, index as Survey, Text, TextField, TextProps, TextareaField, Theme, Tokens, Tooltip, TooltipProps, Tour, TourProps, Video, themeVariables, tokens, useBoundingClientRect, useFlow, useFlowHandlers, useFrigade, useGroup, useStepHandlers, useUser };
|
|
2086
|
+
export { Announcement, AnnouncementProps, Banner, BannerProps, BaseField, Box, BoxProps, Button, ButtonProps, Card, CardHeaderProps, CardProps, index$2 as Checklist, ClientPortal, ClientPortalProps, CollapsibleProps, CollapsibleStepProps, Collection, Dialog, DialogProps, DismissHandler, FieldTypes, Flex, Flow, FlowChildrenProps, FlowConfig, FlowHandlerProp, FlowHandlerProps, FlowProps, FlowPropsWithoutChildren, Form, FormFieldData, FormFieldProps, FormProps, Hint, Image, Label, Media, NPSProps, Ping, index$3 as Popover, index$1 as Progress, ProgressBadge, ProgressBadgeProps, Provider, ProviderProps, RadioField, SelectField, Spotlight, StepHandler, StepHandlerProp, StepHandlerProps, index as Survey, Text, TextField, TextProps, TextareaField, Theme, Tokens, Tooltip, TooltipProps, Tour, TourProps, Video, themeVariables, tokens, useAutoScroll, useBoundingClientRect, useFlow, useFlowHandlers, useFrigade, useGroup, useStepHandlers, useUser };
|