freemium-ui 2.0.59 → 2.0.60
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/lib/index.cjs.js +1 -1
- package/lib/index.d.ts +38 -1
- package/lib/index.js +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/dist/README.md +0 -86
- package/dist/index.cjs.js +0 -16653
- package/dist/index.d.ts +0 -1748
- package/dist/index.js +0 -16478
- package/dist/package.json +0 -74
package/lib/index.cjs.js
CHANGED
|
@@ -17383,7 +17383,7 @@ disabled:t.disabled,htmlFor:t?.[r]
|
|
|
17383
17383
|
},t?.[o]))))),c&&s&&e.createElement(lm,null,s))
|
|
17384
17384
|
},exports.RadixMenuItem=jv,exports.RadixSelectItem=Lf,
|
|
17385
17385
|
exports.Reorder=yj,exports.RequiredIndicator=Ao,
|
|
17386
|
-
exports.StyledLabel=Do,exports.Table=t=>{
|
|
17386
|
+
exports.SortDropdown=QU,exports.StyledLabel=Do,exports.Table=t=>{
|
|
17387
17387
|
const{data:n,columns:o,showFooter:a=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,editColumnComponent:p,filterComponent:f,hideTableOnEmpty:m,hideTopPagination:v,hideFilters:g,isFilterOpenByDefault:y=!0,sortingHeading:b,showTableOnLoading:w,hideLoaderOnTopPagination:C,hideActions:z,count:M,pageIndex:x=0,pageSize:E=20,enablePreviousPage:S,enableNextPage:_,hideColumnSettings:H=!0,hideBottomPagination:D,rowMenuOptions:k,onPreviousPageClick:A,enableSorting:L,sortingValues:V,sortingOptions:T,onSortingOptionSelect:R,onNextPageClick:P,disableRowSelect:I,hideSelectAllInTable:O,onSelectAllRows:N,onRowSelect:F,onMenuOptionSelect:$,onRowClick:B,columnOrder:j,setColumnOrder:U,setHiddenColumns:Y,hiddenColumns:W,selectedRowIds:G={},isDisableSortDropdown:K,setSelectedRowIds:q,dataKey:Z="id",cellPropGetter:X,setPageIndex:J,rowPropGetter:Q,translationTexts:ee}=t,te=cr(),[ne,re]=e.useState(!!y),oe={
|
|
17388
17388
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
17389
17389
|
display:e=>e,group:e=>e},ae=-1===M||void 0===M,ie=e.useMemo((()=>[...I?[]:[{
|
package/lib/index.d.ts
CHANGED
|
@@ -1313,6 +1313,38 @@ interface TableProps<T extends RowDataType> {
|
|
|
1313
1313
|
selectedRowIds?: RowSelectionState;
|
|
1314
1314
|
setSelectedRowIds?: (selectedRowIds: RowSelectionState) => void | React.Dispatch<React.SetStateAction<RowSelectionState>>;
|
|
1315
1315
|
}
|
|
1316
|
+
type TableSortingMenuProps<T extends DefaultMenuItemProps = DefaultMenuItemProps> = {
|
|
1317
|
+
/**
|
|
1318
|
+
* value of menu
|
|
1319
|
+
*/
|
|
1320
|
+
value?: string[];
|
|
1321
|
+
/**
|
|
1322
|
+
* Called when a menu item is selected
|
|
1323
|
+
*/
|
|
1324
|
+
onSelect?: (value?: string[]) => void;
|
|
1325
|
+
/**
|
|
1326
|
+
* options for menu button
|
|
1327
|
+
*/
|
|
1328
|
+
options?: T[][];
|
|
1329
|
+
/**
|
|
1330
|
+
* The children or label
|
|
1331
|
+
*/
|
|
1332
|
+
trigger: React.ReactNode | string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Is the button inline
|
|
1335
|
+
* @deprecated
|
|
1336
|
+
*/
|
|
1337
|
+
highlightedIndex?: number | null;
|
|
1338
|
+
/**
|
|
1339
|
+
* id Accessor of menu
|
|
1340
|
+
*/
|
|
1341
|
+
idAccessor?: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* name Accessor of menu
|
|
1344
|
+
*/
|
|
1345
|
+
nameAccessor?: string;
|
|
1346
|
+
isDisableSortDropdown?: boolean;
|
|
1347
|
+
};
|
|
1316
1348
|
|
|
1317
1349
|
/**
|
|
1318
1350
|
* Table component is used to display data in a tabular format. It is used to show data in a structured manner. It can be used to show data in a grid format.
|
|
@@ -1728,6 +1760,11 @@ declare const Tooltip: ({ position, label, html, style, children, className, dis
|
|
|
1728
1760
|
*/
|
|
1729
1761
|
declare const Typography: react__default.ForwardRefExoticComponent<TypographyProps & react__default.RefAttributes<HTMLSpanElement>>;
|
|
1730
1762
|
|
|
1763
|
+
/**
|
|
1764
|
+
* SortDropdown component is used to render the dropdown for sorting the table
|
|
1765
|
+
*/
|
|
1766
|
+
declare const SortDropdown: <T extends DefaultMenuItemProps>(props: TableSortingMenuProps<T>) => react__default.JSX.Element;
|
|
1767
|
+
|
|
1731
1768
|
type FreshworksPalette = {
|
|
1732
1769
|
primary: {
|
|
1733
1770
|
elephant: string;
|
|
@@ -1865,4 +1902,4 @@ declare namespace index_d {
|
|
|
1865
1902
|
export { index_d_Z_INDEX as Z_INDEX, index_d_dark as dark, index_d_hextoRGB as hextoRGB, index_d_light as light };
|
|
1866
1903
|
}
|
|
1867
1904
|
|
|
1868
|
-
export { Accordion, type AccordionItemProps, type AccordionProps, Alert, type AlertProps, AutoComplete, type AutoCompleteInputItemProps, type AutoCompleteProps, 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, Checkmark, ChevronUp, Confirmation, type ConfirmationProps, Cross as CrossIcon, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DateTimeRangePicker, type DateTimeRangePickerProps, type DefaultAutoCompleteItem, 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, ErrorIcon, Freddy, _default as FreemiumUIGlobalStyles, type FreemiumUiTheme, FreshLink, type FreshworksPalette, type FuiContextType, IconButton, InfoIcon, 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, PopoverTrigger, Radio, RadioGroup, type RadioGroupProps, type RadioItemProps, type RadioProps, Reorder, type ReorderItemType, type ReorderProps, RequiredIndicator, type RowDataType, 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, dialogContentMixin, dialogOverlayMixin, useToasts };
|
|
1905
|
+
export { Accordion, type AccordionItemProps, type AccordionProps, Alert, type AlertProps, AutoComplete, type AutoCompleteInputItemProps, type AutoCompleteProps, 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, Checkmark, ChevronUp, Confirmation, type ConfirmationProps, Cross as CrossIcon, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, DateTimeRangePicker, type DateTimeRangePickerProps, type DefaultAutoCompleteItem, 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, ErrorIcon, Freddy, _default as FreemiumUIGlobalStyles, type FreemiumUiTheme, FreshLink, type FreshworksPalette, type FuiContextType, IconButton, InfoIcon, 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, PopoverTrigger, Radio, RadioGroup, type RadioGroupProps, type RadioItemProps, type RadioProps, Reorder, type ReorderItemType, type ReorderProps, RequiredIndicator, type RowDataType, SortDropdown, 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, dialogContentMixin, dialogOverlayMixin, useToasts };
|
package/lib/index.js
CHANGED
|
@@ -17378,4 +17378,4 @@ return n=w_(e),t!==z_.STANDARD?[3,2]:[4,Promise.resolve().then((function(){
|
|
|
17378
17378
|
return x_}))];case 1:return r=o.sent(),[3,4];case 2:
|
|
17379
17379
|
return[4,Promise.resolve().then((function(){return S_}))];case 3:
|
|
17380
17380
|
r=o.sent(),o.label=4;case 4:return[2,r[n]]}}))}))}})
|
|
17381
|
-
;export{Io as Accordion,fa as Alert,Um as AutoComplete,ny as BoxedRadio,Gm as Button,Eg as ButtonDropdown,na as CardActions,ta as CardContent,oa as CardDescription,aa as CardText,ra as CardTitle,vy as Checkbox,zo as Checkmark,Mo as ChevronUp,zb as Confirmation,xo as CrossIcon,EF as DatePicker,_F as DateRangePicker,SF as DateTimePicker,HF as DateTimeRangePicker,Lb as Drawer,Vb as Dropdown,sm as DropdownInputItem,Pb as DropdownItem,wg as DropdownMenuItem,Eo as ErrorIcon,So as Freddy,YG as FreemiumUIGlobalStyles,ea as FreshLink,Qo as IconButton,_o as InfoIcon,Rm as Input,Xo as InputLabel,Bm as Loader,Rb as Menu,Ho as Minus,Ub as Modal,Do as MoreVertical,iw as MultiSelectDropdown,o$ as Popover,r$ as PopoverClose,t$ as PopoverTrigger,u$ as Radio,d$ as RadioGroup,hg as RadixMenuItem,em as RadixSelectItem,Qj as Reorder,Jo as RequiredIndicator,Zo as StyledLabel,PY as Table,JY as Tabs,qY as TabsContent,ZY as TabsList,KY as TabsRoot,XY as TabsTrigger,aw as Tag,Im as TextArea,ZW as ThemeProvider,qo as Themes,Ao as TickIcon,AF as TimePicker,KW as ToastProvider,dG as Toggle,UG as Tooltip,ia as TriggerButtonWrapper,ha as Typography,Lo as Warning,ca as dialogContentMixin,la as dialogOverlayMixin,qW as useToasts};
|
|
17381
|
+
;export{Io as Accordion,fa as Alert,Um as AutoComplete,ny as BoxedRadio,Gm as Button,Eg as ButtonDropdown,na as CardActions,ta as CardContent,oa as CardDescription,aa as CardText,ra as CardTitle,vy as Checkbox,zo as Checkmark,Mo as ChevronUp,zb as Confirmation,xo as CrossIcon,EF as DatePicker,_F as DateRangePicker,SF as DateTimePicker,HF as DateTimeRangePicker,Lb as Drawer,Vb as Dropdown,sm as DropdownInputItem,Pb as DropdownItem,wg as DropdownMenuItem,Eo as ErrorIcon,So as Freddy,YG as FreemiumUIGlobalStyles,ea as FreshLink,Qo as IconButton,_o as InfoIcon,Rm as Input,Xo as InputLabel,Bm as Loader,Rb as Menu,Ho as Minus,Ub as Modal,Do as MoreVertical,iw as MultiSelectDropdown,o$ as Popover,r$ as PopoverClose,t$ as PopoverTrigger,u$ as Radio,d$ as RadioGroup,hg as RadixMenuItem,em as RadixSelectItem,Qj as Reorder,Jo as RequiredIndicator,TY as SortDropdown,Zo as StyledLabel,PY as Table,JY as Tabs,qY as TabsContent,ZY as TabsList,KY as TabsRoot,XY as TabsTrigger,aw as Tag,Im as TextArea,ZW as ThemeProvider,qo as Themes,Ao as TickIcon,AF as TimePicker,KW as ToastProvider,dG as Toggle,UG as Tooltip,ia as TriggerButtonWrapper,ha as Typography,Lo as Warning,ca as dialogContentMixin,la as dialogOverlayMixin,qW as useToasts};
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
package/dist/README.md
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
<h1 align="center">Freemium Ui</h1>
|
|
2
|
-
|
|
3
|
-
## [DEMO](https://freemium-ui.netlify.app)
|
|
4
|
-
|
|
5
|
-
[React](https://reactjs.org/) based light weight ui components based on [Styled Components](https://styled-components.com/)
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
Peer Dependencies to be installed
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
npm install styled-components
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Install the package
|
|
16
|
-
|
|
17
|
-
```
|
|
18
|
-
npm install freemium-ui
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Please note that `@next` will only point to pre-releases; to get the latest stable release use `@latest` instead.
|
|
22
|
-
|
|
23
|
-
## Usage
|
|
24
|
-
|
|
25
|
-
Here is a quick example to get you started, **it's all you need**:
|
|
26
|
-
|
|
27
|
-
```jsx
|
|
28
|
-
import React from 'react';
|
|
29
|
-
import ReactDOM from 'react-dom';
|
|
30
|
-
import { Button } from 'freemium-ui';
|
|
31
|
-
// import { Button } from 'freemium-ui/Button';
|
|
32
|
-
|
|
33
|
-
function App() {
|
|
34
|
-
return <Button>Freemium Button</Button>;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
ReactDOM.render(<App />, document.querySelector('#app'));
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Contribution
|
|
41
|
-
|
|
42
|
-
Install Dependencies
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
npm install
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Start the app using storybook
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
npm run storybook
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
Build Freemium Ui Core Components
|
|
55
|
-
|
|
56
|
-
```
|
|
57
|
-
npm run build
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
JavaScript heap out of memory could lead to build failure. Check the [official docs](https://rollupjs.org/troubleshooting/#error-javascript-heap-out-of-memory). Or execute any of the required below config
|
|
61
|
-
|
|
62
|
-
```
|
|
63
|
-
export NODE_OPTIONS="--max-old-space-size=8192"
|
|
64
|
-
export NODE_OPTIONS="--max-old-space-size=12288"
|
|
65
|
-
export NODE_OPTIONS="--max-old-space-size=16384"
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
To check the heap size in MB
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Generate a PAT with `admin:org`, `write:packages`, `read:packages`, `delete:packages`
|
|
75
|
-
|
|
76
|
-
Authenticate to npm github package
|
|
77
|
-
|
|
78
|
-
```
|
|
79
|
-
npm login --registry=https://registry.npmjs.org/
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Publish the package to npm
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
npm publish
|
|
86
|
-
```
|