freemium-ui 2.0.0-beta.23 → 2.0.0-beta.25
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/LICENSE +21 -0
- package/dist/README.md +86 -0
- package/{index.cjs.js → dist/index.cjs.js} +7 -7
- package/{index.d.ts → dist/index.d.ts} +6 -2
- package/{index.js → dist/index.js} +7 -7
- package/dist/package.json +75 -0
- package/freemium-ui-1.0.335.tgz +0 -0
- package/package.json +65 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Freshworks
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
```
|
|
@@ -12558,15 +12558,15 @@ ref:n}))})),hP=on(nP)`
|
|
|
12558
12558
|
}
|
|
12559
12559
|
`,pP=on(dP)`
|
|
12560
12560
|
fill: white;
|
|
12561
|
-
`,fP=on(lP)``,mP=on(cP)``,vP=on(sP)``,gP=on(uP)``,yP=({children:t,trigger:n,arrow:r,hoverOutToClose:a,align:o,hoverToOpen:i,avoidCollisions:l=!0,side:c,disabled:s,
|
|
12562
|
-
const[
|
|
12563
|
-
;return e.createElement(fP,{open:
|
|
12561
|
+
`,fP=on(lP)``,mP=on(cP)``,vP=on(sP)``,gP=on(uP)``,yP=({children:t,trigger:n,arrow:r,hoverOutToClose:a,align:o,hoverToOpen:i,avoidCollisions:l=!0,side:c,disabled:s,onClose:u,anchorOrigin:d,autoCloseDuration:h,clickOutToClose:p,transformOrigin:f})=>{
|
|
12562
|
+
const[m,v]=e.useState(!1),g=c??("bottom"===d?.vertical&&d.horizontal?"bottom":void 0)??("top"===d?.vertical&&d.horizontal?"top":void 0)??("center"===d?.vertical&&"left"===d.horizontal?"left":void 0)??("center"===d?.vertical&&"right"===d.horizontal?"right":void 0)??"bottom"
|
|
12563
|
+
;return e.createElement(fP,{open:m,onOpenChange:e=>{v(e)}},e.createElement(mP,{
|
|
12564
12564
|
asChild:!0,className:"PopoverTrigger",disabled:s},e.createElement(Ln,{
|
|
12565
|
-
className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&
|
|
12565
|
+
className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&v(!0)}
|
|
12566
12566
|
},n)),e.createElement(vP,null,e.createElement(hP,{forceMount:!0,
|
|
12567
|
-
className:"PopoverContent",onMouseLeave:()=>{a&&
|
|
12568
|
-
sideOffset:8,avoidCollisions:l
|
|
12569
|
-
},bP=on.div``,wP=on(rc)`
|
|
12567
|
+
className:"PopoverContent",onMouseLeave:()=>{a&&(v(!1),u&&u())},
|
|
12568
|
+
onInteractOutside:()=>u&&u(),side:g,align:o,sideOffset:8,avoidCollisions:l
|
|
12569
|
+
},t,r&&e.createElement(pP,null))))},bP=on.div``,wP=on(rc)`
|
|
12570
12570
|
display: flex;
|
|
12571
12571
|
flex-direction: column;
|
|
12572
12572
|
gap: 4px;
|
|
@@ -471,6 +471,10 @@ interface DropdownProps<T extends DefaultDropdownItem = DefaultDropdownItem> ext
|
|
|
471
471
|
useComboboxProps?: UseComboboxProps<T>;
|
|
472
472
|
itemComponent?: (item: T, props?: DropdownItemProps | DropdownInputItemProps) => React.ReactNode | string;
|
|
473
473
|
}
|
|
474
|
+
interface DropdownButtonProps<T extends DefaultDropdownItem = DefaultDropdownItem> extends DropdownProps<T> {
|
|
475
|
+
}
|
|
476
|
+
interface DropdownInputProps<T extends DefaultDropdownItem = DefaultDropdownItem> extends DropdownProps<T> {
|
|
477
|
+
}
|
|
474
478
|
type DropdownItemProps = SelectItemProps & {
|
|
475
479
|
showTick: boolean;
|
|
476
480
|
};
|
|
@@ -947,7 +951,7 @@ interface PopoverProps {
|
|
|
947
951
|
/**
|
|
948
952
|
* Popover need two slots popover-trigger and popover-content. By default on clicking the trigger the content will be displayed. The props can be used to change the position of the content, width of the component and the distance between the trigger and the content.
|
|
949
953
|
*/
|
|
950
|
-
declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, side: s, disabled, anchorOrigin, autoCloseDuration, clickOutToClose, transformOrigin, }: PopoverProps) => react__default.JSX.Element;
|
|
954
|
+
declare const Popover: ({ children, trigger, arrow, hoverOutToClose, align, hoverToOpen, avoidCollisions, side: s, disabled, onClose, anchorOrigin, autoCloseDuration, clickOutToClose, transformOrigin, }: PopoverProps) => react__default.JSX.Element;
|
|
951
955
|
|
|
952
956
|
declare const PopoverClose: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<Omit<Popover$1.PopoverCloseProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
953
957
|
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
@@ -1653,4 +1657,4 @@ declare namespace index_d {
|
|
|
1653
1657
|
export { index_d_dark as dark, index_d_light as light };
|
|
1654
1658
|
}
|
|
1655
1659
|
|
|
1656
|
-
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, ListItem as DropdownInputItem, Item as DropdownItem, 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, 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 };
|
|
1660
|
+
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 };
|
|
@@ -12675,15 +12675,15 @@ ref:t}))})),YI=En(PI)`
|
|
|
12675
12675
|
}
|
|
12676
12676
|
`,WI=En($I)`
|
|
12677
12677
|
fill: white;
|
|
12678
|
-
`,GI=En(FI)``,KI=En(BI)``,qI=En(jI)``,ZI=En(UI)``,XI=({children:e,trigger:n,arrow:r,hoverOutToClose:a,align:o,hoverToOpen:i,avoidCollisions:l=!0,side:c,disabled:s,
|
|
12679
|
-
const[
|
|
12680
|
-
;return t.createElement(GI,{open:
|
|
12678
|
+
`,GI=En(FI)``,KI=En(BI)``,qI=En(jI)``,ZI=En(UI)``,XI=({children:e,trigger:n,arrow:r,hoverOutToClose:a,align:o,hoverToOpen:i,avoidCollisions:l=!0,side:c,disabled:s,onClose:u,anchorOrigin:d,autoCloseDuration:h,clickOutToClose:p,transformOrigin:f})=>{
|
|
12679
|
+
const[m,v]=t.useState(!1),g=c??("bottom"===d?.vertical&&d.horizontal?"bottom":void 0)??("top"===d?.vertical&&d.horizontal?"top":void 0)??("center"===d?.vertical&&"left"===d.horizontal?"left":void 0)??("center"===d?.vertical&&"right"===d.horizontal?"right":void 0)??"bottom"
|
|
12680
|
+
;return t.createElement(GI,{open:m,onOpenChange:e=>{v(e)}},t.createElement(KI,{
|
|
12681
12681
|
asChild:!0,className:"PopoverTrigger",disabled:s},t.createElement(Zn,{
|
|
12682
|
-
className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&
|
|
12682
|
+
className:"TriggerButtonWrapper",onMouseEnter:()=>{i&&v(!0)}
|
|
12683
12683
|
},n)),t.createElement(qI,null,t.createElement(YI,{forceMount:!0,
|
|
12684
|
-
className:"PopoverContent",onMouseLeave:()=>{a&&
|
|
12685
|
-
sideOffset:8,avoidCollisions:l
|
|
12686
|
-
},QI=En.div``,JI=En(Sc)`
|
|
12684
|
+
className:"PopoverContent",onMouseLeave:()=>{a&&(v(!1),u&&u())},
|
|
12685
|
+
onInteractOutside:()=>u&&u(),side:g,align:o,sideOffset:8,avoidCollisions:l
|
|
12686
|
+
},e,r&&t.createElement(WI,null))))},QI=En.div``,JI=En(Sc)`
|
|
12687
12687
|
display: flex;
|
|
12688
12688
|
flex-direction: column;
|
|
12689
12689
|
gap: 4px;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "freemium-ui",
|
|
3
|
+
"version": "2.0.0-beta.25",
|
|
4
|
+
"description": "React Ui Components for Freemium Apps",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"module": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@blueprintjs/datetime2": "^2.3.2",
|
|
10
|
+
"@dnd-kit/core": "^6.1.0",
|
|
11
|
+
"@dnd-kit/modifiers": "^7.0.0",
|
|
12
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
13
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
14
|
+
"@radix-ui/react-alert-dialog": "^1.0.5",
|
|
15
|
+
"@radix-ui/react-avatar": "^1.0.4",
|
|
16
|
+
"@radix-ui/react-checkbox": "^1.0.4",
|
|
17
|
+
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
18
|
+
"@radix-ui/react-label": "^2.0.2",
|
|
19
|
+
"@radix-ui/react-popover": "^1.0.7",
|
|
20
|
+
"@radix-ui/react-radio-group": "^1.1.3",
|
|
21
|
+
"@radix-ui/react-select": "^2.0.0",
|
|
22
|
+
"@radix-ui/react-switch": "^1.0.3",
|
|
23
|
+
"@radix-ui/react-tabs": "^1.0.4",
|
|
24
|
+
"@radix-ui/react-toast": "^1.1.5",
|
|
25
|
+
"@radix-ui/react-tooltip": "^1.0.7",
|
|
26
|
+
"@tanstack/react-table": "^8.13.2",
|
|
27
|
+
"downshift": "^8.4.0",
|
|
28
|
+
"moment": "^2.30.1",
|
|
29
|
+
"react": "^18.2.0",
|
|
30
|
+
"react-dom": "^18.2.0",
|
|
31
|
+
"react-scripts": "5.0.1",
|
|
32
|
+
"react-transition-group": "^4.4.5",
|
|
33
|
+
"styled-components": "^6.1.8",
|
|
34
|
+
"typescript": "^4.9.5",
|
|
35
|
+
"web-vitals": "^2.1.4"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/freshdesk/freemium-ui.git"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"registry": "https://registry.npmjs.org/"
|
|
43
|
+
},
|
|
44
|
+
"keywords": [
|
|
45
|
+
"Freemiui",
|
|
46
|
+
"React",
|
|
47
|
+
"UI",
|
|
48
|
+
"Material"
|
|
49
|
+
],
|
|
50
|
+
"author": "Freshworks",
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/freshdesk/freemium-ui/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://github.com/freshdesk/freemium-ui#readme",
|
|
55
|
+
"eslintConfig": {
|
|
56
|
+
"extends": [
|
|
57
|
+
"react-app",
|
|
58
|
+
"react-app/jest",
|
|
59
|
+
"plugin:storybook/recommended"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"browserslist": {
|
|
63
|
+
"production": [
|
|
64
|
+
">0.2%",
|
|
65
|
+
"not dead",
|
|
66
|
+
"not op_mini all"
|
|
67
|
+
],
|
|
68
|
+
"development": [
|
|
69
|
+
"last 1 chrome version",
|
|
70
|
+
"last 1 firefox version",
|
|
71
|
+
"last 1 safari version"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"private": false
|
|
75
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "freemium-ui",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.25",
|
|
4
4
|
"description": "React Ui Components for Freemium Apps",
|
|
5
|
-
"main": "
|
|
6
|
-
"module": "
|
|
7
|
-
"typings": "
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"typings": "dist/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@blueprintjs/datetime2": "^2.3.2",
|
|
10
10
|
"@dnd-kit/core": "^6.1.0",
|
|
@@ -34,6 +34,65 @@
|
|
|
34
34
|
"typescript": "^4.9.5",
|
|
35
35
|
"web-vitals": "^2.1.4"
|
|
36
36
|
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
39
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
40
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
41
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
42
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
43
|
+
"@storybook/addon-essentials": "^7.6.17",
|
|
44
|
+
"@storybook/addon-interactions": "^7.6.17",
|
|
45
|
+
"@storybook/addon-links": "^7.6.17",
|
|
46
|
+
"@storybook/addon-onboarding": "^1.0.11",
|
|
47
|
+
"@storybook/blocks": "^7.6.17",
|
|
48
|
+
"@storybook/preset-create-react-app": "^7.6.17",
|
|
49
|
+
"@storybook/preview-api": "^7.6.17",
|
|
50
|
+
"@storybook/react": "^7.6.17",
|
|
51
|
+
"@storybook/react-webpack5": "^7.6.17",
|
|
52
|
+
"@storybook/testing-library": "^0.2.2",
|
|
53
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
54
|
+
"@testing-library/react": "^13.4.0",
|
|
55
|
+
"@testing-library/user-event": "^13.5.0",
|
|
56
|
+
"@types/jest": "^27.5.2",
|
|
57
|
+
"@types/node": "^16.18.64",
|
|
58
|
+
"@types/react": "^18.2.63",
|
|
59
|
+
"@types/react-dom": "^18.2.19",
|
|
60
|
+
"@types/react-transition-group": "^4.4.10",
|
|
61
|
+
"@types/rollup-plugin-generate-package-json": "^3.2.8",
|
|
62
|
+
"@types/rollup-plugin-peer-deps-external": "^2.2.5",
|
|
63
|
+
"@types/styled-components": "^5.1.34",
|
|
64
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
65
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
66
|
+
"husky": "^8.0.3",
|
|
67
|
+
"postcss": "^8.4.35",
|
|
68
|
+
"prettier": "^3.2.5",
|
|
69
|
+
"prop-types": "^15.8.1",
|
|
70
|
+
"rollup": "^4.12.0",
|
|
71
|
+
"rollup-plugin-dts": "^6.1.0",
|
|
72
|
+
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
73
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
74
|
+
"storybook": "^7.6.17",
|
|
75
|
+
"webpack": "^5.90.3"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"version:beta": "npm version prerelease --preid=beta",
|
|
79
|
+
"publish:beta": "npm publish ./dist --tag beta",
|
|
80
|
+
"publish": "npm publish ./dist",
|
|
81
|
+
"prepublishOnly": "npm run build",
|
|
82
|
+
"start": "react-scripts start",
|
|
83
|
+
"build:react-app": "react-scripts build",
|
|
84
|
+
"build": "npm run rollup && npm run post:build",
|
|
85
|
+
"post:build": "node ./scripts/frankBuild.js",
|
|
86
|
+
"rollup": "rm -rf dist && rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
87
|
+
"test": "react-scripts test",
|
|
88
|
+
"eject": "react-scripts eject",
|
|
89
|
+
"check": "prettier --check .",
|
|
90
|
+
"format": "prettier --write .",
|
|
91
|
+
"storybook": "storybook dev -p 6006",
|
|
92
|
+
"build-storybook": "storybook build",
|
|
93
|
+
"typescript": "tsc -p tsconfig.json",
|
|
94
|
+
"prepare": "husky install"
|
|
95
|
+
},
|
|
37
96
|
"repository": {
|
|
38
97
|
"type": "git",
|
|
39
98
|
"url": "git+https://github.com/freshdesk/freemium-ui.git"
|
|
@@ -70,6 +129,5 @@
|
|
|
70
129
|
"last 1 firefox version",
|
|
71
130
|
"last 1 safari version"
|
|
72
131
|
]
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
}
|
|
132
|
+
}
|
|
133
|
+
}
|