freemium-ui 2.0.0-beta.41 → 2.0.0-beta.43
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.js → index.cjs.js} +4333 -4320
- package/{dist/index.d.ts → index.d.ts} +37 -15
- package/{dist/index.js → index.js} +4271 -4258
- package/package.json +7 -65
- package/LICENSE +0 -21
- package/dist/README.md +0 -86
- package/dist/package.json +0 -75
- package/freemium-ui-2.0.0-beta.34.tgz +0 -0
|
@@ -100,7 +100,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
100
100
|
/**
|
|
101
101
|
* Button displays a button on the user interface and enables performing specific actions based on the button type. The button’s label can be a text, icon, or both.
|
|
102
102
|
*/
|
|
103
|
-
declare const Button:
|
|
103
|
+
declare const Button: react__default.ForwardRefExoticComponent<ButtonProps & react__default.RefAttributes<HTMLButtonElement>>;
|
|
104
104
|
|
|
105
105
|
interface ButtonDropdownItemProps {
|
|
106
106
|
id: string;
|
|
@@ -353,8 +353,8 @@ type DefaultDropdownItem = {
|
|
|
353
353
|
};
|
|
354
354
|
type StyledListItemType = {
|
|
355
355
|
readOnly?: boolean;
|
|
356
|
-
isSelected?: boolean;
|
|
357
|
-
isHilighted?: boolean;
|
|
356
|
+
$isSelected?: boolean;
|
|
357
|
+
$isHilighted?: boolean;
|
|
358
358
|
};
|
|
359
359
|
type DropdownInputItemProps = React.LiHTMLAttributes<HTMLLIElement> & StyledListItemType & {
|
|
360
360
|
key: string;
|
|
@@ -491,17 +491,17 @@ declare const Item: react__default.ForwardRefExoticComponent<Select.SelectItemPr
|
|
|
491
491
|
showTick: boolean;
|
|
492
492
|
} & react__default.RefAttributes<HTMLDivElement>>;
|
|
493
493
|
|
|
494
|
-
declare const ChevronUp:
|
|
494
|
+
declare const ChevronUp: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
495
495
|
|
|
496
|
-
declare const Cross:
|
|
496
|
+
declare const Cross: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
497
497
|
|
|
498
|
-
declare const TickIcon:
|
|
498
|
+
declare const TickIcon: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
499
499
|
|
|
500
|
-
declare const Warning:
|
|
500
|
+
declare const Warning: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
501
501
|
|
|
502
|
-
declare const Minus:
|
|
502
|
+
declare const Minus: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
503
503
|
|
|
504
|
-
declare const MoreVertical:
|
|
504
|
+
declare const MoreVertical: react__default.ForwardRefExoticComponent<Omit<react__default.SVGProps<SVGSVGElement>, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
505
505
|
|
|
506
506
|
interface CommonProps {
|
|
507
507
|
/**
|
|
@@ -643,7 +643,7 @@ declare const Menu: <T extends DefaultMenuItemProps>(props: MenuProps<T>) => rea
|
|
|
643
643
|
declare const DropdownMenuItem: styled_components.IStyledComponent<"web", styled_components_dist_types.Substitute<Omit<DropdownMenu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
644
644
|
ref?: ((instance: HTMLDivElement | null) => void) | react.RefObject<HTMLDivElement> | null | undefined;
|
|
645
645
|
}, {
|
|
646
|
-
isSelected?: boolean | undefined;
|
|
646
|
+
$isSelected?: boolean | undefined;
|
|
647
647
|
disabled?: boolean | undefined;
|
|
648
648
|
}>> & Omit<react.ForwardRefExoticComponent<DropdownMenu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>>, keyof react.Component<any, {}, any>>;
|
|
649
649
|
|
|
@@ -1181,7 +1181,7 @@ type TabsProps<T extends TabsItemProps = TabsItemProps> = {
|
|
|
1181
1181
|
*/
|
|
1182
1182
|
declare const Tabs: ({ options, idAccessor, nameAccessor, onChange, defaultValue, renderTabsContent, value, }: TabsProps) => react__default.JSX.Element;
|
|
1183
1183
|
|
|
1184
|
-
interface TagProps {
|
|
1184
|
+
interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
1185
1185
|
/**
|
|
1186
1186
|
* State of the tag
|
|
1187
1187
|
*/
|
|
@@ -1220,7 +1220,7 @@ interface TagProps {
|
|
|
1220
1220
|
/**
|
|
1221
1221
|
* Tag component is used to show a tag to the user. It is used to show a label or a category
|
|
1222
1222
|
*/
|
|
1223
|
-
declare const Tag:
|
|
1223
|
+
declare const Tag: react__default.ForwardRefExoticComponent<TagProps & react__default.RefAttributes<HTMLSpanElement>>;
|
|
1224
1224
|
|
|
1225
1225
|
type TypographyWeightType = 'regular' | 'bold' | 'semi-bold';
|
|
1226
1226
|
type TypographyVariantType = 'primary' | 'secondary' | 'heading' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'caption';
|
|
@@ -1341,6 +1341,19 @@ interface ZIndex {
|
|
|
1341
1341
|
snackbar: number;
|
|
1342
1342
|
tooltip: number;
|
|
1343
1343
|
}
|
|
1344
|
+
interface FreemiumUiButtonTheme {
|
|
1345
|
+
backgroundFrom: string;
|
|
1346
|
+
backgroundTo: string;
|
|
1347
|
+
color: string;
|
|
1348
|
+
disabledColor: string;
|
|
1349
|
+
activeBackgroundColor: string;
|
|
1350
|
+
hoverColor: string;
|
|
1351
|
+
borderColor: string;
|
|
1352
|
+
activeBorderColor: string;
|
|
1353
|
+
disabledBorderColor: string;
|
|
1354
|
+
disabledBackgroundFrom: string;
|
|
1355
|
+
disabledBackgroundTo: string;
|
|
1356
|
+
}
|
|
1344
1357
|
interface FreemiumUiTheme {
|
|
1345
1358
|
mode: 'light' | 'dark';
|
|
1346
1359
|
breakpoints: Breakpoints;
|
|
@@ -1349,7 +1362,14 @@ interface FreemiumUiTheme {
|
|
|
1349
1362
|
shadows?: string[] | null;
|
|
1350
1363
|
transitions: Transitions;
|
|
1351
1364
|
zIndex: ZIndex;
|
|
1352
|
-
components:
|
|
1365
|
+
components: {
|
|
1366
|
+
button: {
|
|
1367
|
+
primary: FreemiumUiButtonTheme;
|
|
1368
|
+
secondary: FreemiumUiButtonTheme;
|
|
1369
|
+
danger: FreemiumUiButtonTheme;
|
|
1370
|
+
link: FreemiumUiButtonTheme;
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1353
1373
|
}
|
|
1354
1374
|
|
|
1355
1375
|
type ThemeProviderType<Theme> = React.ComponentType<{
|
|
@@ -1532,7 +1552,7 @@ declare const Transition: (props: TransitionProps) => react__default.JSX.Element
|
|
|
1532
1552
|
/**
|
|
1533
1553
|
* Typography component is used to show text to the user. It can be used to show a heading, a paragraph, or any other text.
|
|
1534
1554
|
*/
|
|
1535
|
-
declare const Typography:
|
|
1555
|
+
declare const Typography: react__default.ForwardRefExoticComponent<TypographyProps & react__default.RefAttributes<HTMLSpanElement>>;
|
|
1536
1556
|
|
|
1537
1557
|
type FreshworksPalette = {
|
|
1538
1558
|
primary: {
|
|
@@ -1652,13 +1672,15 @@ declare const slideRightAndFade: () => styled_components.RuleSet<object>;
|
|
|
1652
1672
|
declare const slideDownAndFade: () => styled_components.RuleSet<object>;
|
|
1653
1673
|
declare const slideLeftAndFade: () => styled_components.RuleSet<object>;
|
|
1654
1674
|
|
|
1675
|
+
declare const hextoRGB: (hex: string, alpha?: number) => string;
|
|
1655
1676
|
declare const light: FreemiumUiTheme;
|
|
1656
1677
|
declare const dark: FreemiumUiTheme;
|
|
1657
1678
|
|
|
1658
1679
|
declare const index_d_dark: typeof dark;
|
|
1680
|
+
declare const index_d_hextoRGB: typeof hextoRGB;
|
|
1659
1681
|
declare const index_d_light: typeof light;
|
|
1660
1682
|
declare namespace index_d {
|
|
1661
|
-
export { index_d_dark as dark, index_d_light as light };
|
|
1683
|
+
export { index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
|
|
1662
1684
|
}
|
|
1663
1685
|
|
|
1664
1686
|
export { Alert, type AlertProps, type BaseProps, BoxedRadio, type BoxedRadioItemProps, type BoxedRadioProps, Button, ButtonDropdown, type ButtonDropdownItemProps, type ButtonDropdownProps, type ButtonProps, type ButtonSizeKey, type ButtonVariant, CardActions, CardContent, CardDescription, CardText, CardTitle, Checkbox, type CheckboxProps, ChevronUp, Confirmation, type ConfirmationProps, Cross as CrossIcon, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DateTimeRangePicker, type DateTimeRangePickerProps, type DefaultDropdownItem, type DefaultMultiSelectDropdownItem, type DefaultProps, Drawer, type DrawerPlacement, type DrawerProps, type DrawerSizeType, Dropdown, type DropdownButtonProps, ListItem as DropdownInputItem, type DropdownInputItemProps, type DropdownInputProps, Item as DropdownItem, type DropdownItemProps, DropdownMenuItem, type DropdownProps, type DropdownTypes, Fade, type FadeProps, type FreemiumUiTheme, FreshLink, type FreshworksPalette, type FuiContextType, IconButton, Input, InputLabel, type InputProps, type LevelType, Loader, type LoaderPropTypes, type LoaderSizes, type LoaderSpeeds, Menu, type MenuItemProps, type MenuProps, Minus, Modal, type ModalAlignType, type ModalCssType, type ModalPositionType, type ModalProps, type ModalSizeType, MoreVertical, MultiSelectDropdown, type MultiSelectDropdownProps, type Origin, Popover, PopoverClose, type PopoverProps, Radio, RadioGroup, type RadioGroupProps, type RadioItemProps, type RadioProps, Reorder, type ReorderItemType, type ReorderProps, RequiredIndicator, type RowData, Slide, SlideFade, type SlideFadeProps, type SlidePlacement, type SlideProps, StyledLabel, type StyledListItemType, Table, type TableProps, Tabs, TabsContent, type TabsItemProps, TabsList, type TabsProps, TabsRoot, TabsTrigger, Tag, type TagProps, TextArea, type TextAreaProps, ThemeProvider, type ThemeProviderType, index_d as Themes, TickIcon, TimePicker, type TimePickerProps, type ToastContextType, type ToastItemProps, ToastProvider, type ToastType, type ToastTypes, type ToastWithID, Toggle, type ToggleProps, type ToggleSizes, Tooltip, type TooltipAlign, type TooltipPosition, type TooltipProps, type TooltipSide, Transition, type TransitionProps, type TransitionStyleState, type TransitionStyles, TriggerButtonWrapper, Typography, type TypographyProps, type TypographyVariantType, type TypographyWeightType, type UpdateToastsFunction, Warning, basicHide, basicShow, contentHide, contentShow, slideDownAndFade, slideLeftAndFade, slideRightAndFade, slideUpAndFade, useToasts };
|