@frigade/react 2.6.8 → 2.7.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 +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +28 -26
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1614,7 +1614,7 @@ interface FormFieldData extends ValidationRules {
|
|
|
1614
1614
|
value?: string;
|
|
1615
1615
|
multiple?: boolean;
|
|
1616
1616
|
props?: Record<string, string | number | boolean | undefined>;
|
|
1617
|
-
[key: string]:
|
|
1617
|
+
[key: string]: unknown;
|
|
1618
1618
|
}
|
|
1619
1619
|
interface FormFieldProps {
|
|
1620
1620
|
/**
|
|
@@ -1705,13 +1705,36 @@ declare function Label({ children, id, required }: {
|
|
|
1705
1705
|
interface FieldProps {
|
|
1706
1706
|
value: string;
|
|
1707
1707
|
onChange: (value: string) => void;
|
|
1708
|
-
[key: string]:
|
|
1708
|
+
[key: string]: unknown;
|
|
1709
1709
|
}
|
|
1710
1710
|
interface BaseFieldProps extends FormFieldProps {
|
|
1711
1711
|
children: (fieldProps?: FieldProps) => React.ReactNode;
|
|
1712
1712
|
}
|
|
1713
1713
|
declare function BaseField({ children, field, fieldData, fieldState }: BaseFieldProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1714
1714
|
|
|
1715
|
+
type NPSOptions = {
|
|
1716
|
+
label: string;
|
|
1717
|
+
value: string;
|
|
1718
|
+
}[];
|
|
1719
|
+
interface NPSProps extends FormProps {
|
|
1720
|
+
/**
|
|
1721
|
+
* The options to display in the NPS field.
|
|
1722
|
+
* If not provided, the default NPS numbers from 0 to 10 will be used.
|
|
1723
|
+
*/
|
|
1724
|
+
options?: NPSOptions;
|
|
1725
|
+
/**
|
|
1726
|
+
* The label to display for the positive end of the NPS scale.
|
|
1727
|
+
* If not provided, the default label "Extremely likely" will be used.
|
|
1728
|
+
*/
|
|
1729
|
+
positiveLabel?: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* The label to display for the negative end of the NPS scale.
|
|
1732
|
+
* If not provided, the default label "Not likely at all" will be used.
|
|
1733
|
+
*/
|
|
1734
|
+
negativeLabel?: string;
|
|
1735
|
+
}
|
|
1736
|
+
declare function NPS({ as, flowId, fieldTypes, part, options, positiveLabel, negativeLabel, ...props }: NPSProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1737
|
+
|
|
1715
1738
|
interface ProgressProps extends BoxProps {
|
|
1716
1739
|
current: number;
|
|
1717
1740
|
total: number;
|
|
@@ -1841,33 +1864,12 @@ interface SpotlightProps extends OverlayProps {
|
|
|
1841
1864
|
}
|
|
1842
1865
|
declare function Spotlight({ anchor, part, style, ...props }: SpotlightProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1843
1866
|
|
|
1844
|
-
type NPSOptions = {
|
|
1845
|
-
label: string;
|
|
1846
|
-
value: string;
|
|
1847
|
-
}[];
|
|
1848
|
-
interface NPSProps extends FormProps {
|
|
1849
|
-
/**
|
|
1850
|
-
* The options to display in the NPS field.
|
|
1851
|
-
* If not provided, the default NPS numbers from 0 to 10 will be used.
|
|
1852
|
-
*/
|
|
1853
|
-
options?: NPSOptions;
|
|
1854
|
-
/**
|
|
1855
|
-
* The label to display for the positive end of the NPS scale.
|
|
1856
|
-
* If not provided, the default label "Extremely likely" will be used.
|
|
1857
|
-
*/
|
|
1858
|
-
positiveLabel?: string;
|
|
1859
|
-
/**
|
|
1860
|
-
* The label to display for the negative end of the NPS scale.
|
|
1861
|
-
* If not provided, the default label "Not likely at all" will be used.
|
|
1862
|
-
*/
|
|
1863
|
-
negativeLabel?: string;
|
|
1864
|
-
}
|
|
1865
|
-
declare function NPS({ as, flowId, fieldTypes, part, options, positiveLabel, negativeLabel, ...props }: NPSProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
1866
|
-
|
|
1867
1867
|
declare const index_NPS: typeof NPS;
|
|
1868
|
+
type index_NPSProps = NPSProps;
|
|
1868
1869
|
declare namespace index {
|
|
1869
1870
|
export {
|
|
1870
1871
|
index_NPS as NPS,
|
|
1872
|
+
index_NPSProps as NPSProps,
|
|
1871
1873
|
};
|
|
1872
1874
|
}
|
|
1873
1875
|
|
|
@@ -2002,4 +2004,4 @@ declare function useGroup(): {
|
|
|
2002
2004
|
isLoading: boolean;
|
|
2003
2005
|
};
|
|
2004
2006
|
|
|
2005
|
-
export { Announcement, AnnouncementProps, Banner, BannerProps, BaseField, Box, BoxProps, Button, ButtonProps, Card, CardHeaderProps, CardProps, index$2 as Checklist, CollapsibleProps, CollapsibleStepProps, Collection, Dialog, DialogProps, DismissHandler, FieldTypes, Flex, Flow, FlowChildrenProps, FlowConfig, FlowHandlerProp, FlowHandlerProps, FlowProps, FlowPropsWithoutChildren, Form, FormFieldData, FormFieldProps, FormProps, Hint, Image, Label, Media, 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 };
|
|
2007
|
+
export { Announcement, AnnouncementProps, Banner, BannerProps, BaseField, Box, BoxProps, Button, ButtonProps, Card, CardHeaderProps, CardProps, index$2 as Checklist, 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 };
|