freemium-ui 2.0.0-beta.49 → 2.0.0-beta.50

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.
Files changed (4) hide show
  1. package/index.cjs.js +5348 -5162
  2. package/index.d.ts +65 -5
  3. package/index.js +5566 -5384
  4. package/package.json +2 -1
package/index.d.ts CHANGED
@@ -1,12 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import * as react from 'react';
3
- import react__default, { ReactNode, HTMLAttributes } from 'react';
3
+ import react__default, { ReactNode } from 'react';
4
+ import { AccordionSingleProps } from '@radix-ui/react-accordion';
4
5
  import * as Popover$1 from '@radix-ui/react-popover';
5
6
  import { PopperContentProps } from '@radix-ui/react-popover';
6
7
  import { RadioGroupProps as RadioGroupProps$1, RadioGroupContextValue } from '@radix-ui/react-radio-group';
7
8
  import { CheckboxProps as CheckboxProps$1 } from '@radix-ui/react-checkbox';
8
9
  import * as Select from '@radix-ui/react-select';
9
- import { SelectProps, SelectItemProps } from '@radix-ui/react-select';
10
+ import { SelectProps, SelectContentProps, SelectItemProps } from '@radix-ui/react-select';
10
11
  export { Item as RadixSelectItem } from '@radix-ui/react-select';
11
12
  import * as styled_components from 'styled-components';
12
13
  import * as styled_components_dist_types from 'styled-components/dist/types';
@@ -23,6 +24,57 @@ import * as Tabs$1 from '@radix-ui/react-tabs';
23
24
  import { TabsProps as TabsProps$1 } from '@radix-ui/react-tabs';
24
25
  import { TooltipProviderProps, TooltipProps as TooltipProps$1, TooltipArrowProps } from '@radix-ui/react-tooltip';
25
26
 
27
+ interface AccordionItemProps {
28
+ id: string;
29
+ name: string;
30
+ hide?: boolean;
31
+ disabled?: boolean;
32
+ [key: string]: any;
33
+ }
34
+ interface AccordionProps<T extends AccordionItemProps = AccordionItemProps> extends Omit<React.HtmlHTMLAttributes<HTMLElement>, 'onChange' | 'dir'> {
35
+ /**
36
+ * options for Tabs
37
+ */
38
+ options?: Array<T>;
39
+ /**
40
+ * options for Tabs
41
+ */
42
+ renderContent?: (accordianOption: T) => React.ReactNode;
43
+ /**
44
+ * options for Tabs
45
+ */
46
+ renderTitle?: (accordianOption: T) => React.ReactNode;
47
+ /**
48
+ * Id accessor of tabes
49
+ */
50
+ idAccessor?: string;
51
+ /**
52
+ * Id accessor of tabes
53
+ */
54
+ hideIcon?: boolean;
55
+ /**
56
+ * Name accessor of tabes
57
+ */
58
+ nameAccessor?: string;
59
+ /**
60
+ * value for tabs
61
+ */
62
+ value?: AccordionSingleProps['value'];
63
+ /**
64
+ * default value of tabes
65
+ */
66
+ defaultValue?: AccordionSingleProps['defaultValue'];
67
+ /**
68
+ * Function to be called when the selected item changes
69
+ */
70
+ onChange?: AccordionSingleProps['onValueChange'];
71
+ }
72
+
73
+ /**
74
+ * Accordion component from the design system.
75
+ */
76
+ declare const Accordion: <T extends AccordionItemProps>({ idAccessor, nameAccessor, renderContent, hideIcon, renderTitle, options, value, onChange, defaultValue, ...props }: AccordionProps<T>) => react__default.JSX.Element;
77
+
26
78
  type LevelType = 'warning' | 'success' | 'error' | 'info';
27
79
  type AlertData = {
28
80
  message: string;
@@ -441,6 +493,10 @@ interface DropdownProps<T extends DefaultDropdownItem = DefaultDropdownItem> ext
441
493
  *
442
494
  */
443
495
  isMenuLoading?: boolean;
496
+ /**
497
+ *
498
+ */
499
+ matchButtonWidth?: boolean;
444
500
  /**
445
501
  *
446
502
  */
@@ -473,7 +529,7 @@ interface DropdownProps<T extends DefaultDropdownItem = DefaultDropdownItem> ext
473
529
  */
474
530
  useComboboxProps?: UseComboboxProps<T>;
475
531
  itemComponent?: (item: T, props?: DropdownItemProps | DropdownInputItemProps) => React.ReactNode | string;
476
- contentProps?: Pick<HTMLAttributes<HTMLElement>, 'style' | 'className'>;
532
+ buttonContentProps?: SelectContentProps;
477
533
  }
478
534
  interface DropdownButtonProps<T extends DefaultDropdownItem = DefaultDropdownItem> extends DropdownProps<T> {
479
535
  }
@@ -1181,7 +1237,7 @@ type TabsProps<T extends TabsItemProps = TabsItemProps> = {
1181
1237
  /**
1182
1238
  * Tabs component is used to show a set of tabs to the user. It is used to show different sections of content in a single view. It can be used to show different categories of content.
1183
1239
  */
1184
- declare const Tabs: ({ options, idAccessor, nameAccessor, onChange, defaultValue, renderTabsContent, value, }: TabsProps) => react__default.JSX.Element;
1240
+ declare const Tabs: <T extends TabsItemProps>({ options, idAccessor, nameAccessor, onChange, defaultValue, renderTabsContent, value, }: TabsProps<T>) => react__default.JSX.Element;
1185
1241
 
1186
1242
  interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
1187
1243
  /**
@@ -1192,6 +1248,10 @@ interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
1192
1248
  * Show border around the tag
1193
1249
  */
1194
1250
  showBorder?: boolean;
1251
+ /**
1252
+ * Show border around the tag
1253
+ */
1254
+ hideClose?: boolean;
1195
1255
  /**
1196
1256
  * Image source for the avatar
1197
1257
  */
@@ -1647,4 +1707,4 @@ declare namespace index_d {
1647
1707
  export { index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
1648
1708
  }
1649
1709
 
1650
- export { Alert, type AlertProps, 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, 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, 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, TriggerButtonWrapper, Typography, type TypographyProps, type TypographyVariantType, type TypographyWeightType, type UpdateToastsFunction, Warning, basicHide, basicShow, contentHide, contentShow, slideDownAndFade, slideLeftAndFade, slideRightAndFade, slideUpAndFade, useToasts };
1710
+ export { Accordion, type AccordionItemProps, type AccordionProps, Alert, type AlertProps, 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, 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, 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, TriggerButtonWrapper, Typography, type TypographyProps, type TypographyVariantType, type TypographyWeightType, type UpdateToastsFunction, Warning, basicHide, basicShow, contentHide, contentShow, slideDownAndFade, slideLeftAndFade, slideRightAndFade, slideUpAndFade, useToasts };