freemium-ui 1.0.335 → 2.0.0-beta.0

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 (105) hide show
  1. package/.husky/pre-commit +5 -0
  2. package/README.md +26 -51
  3. package/lib/index.d.ts +833 -0
  4. package/lib/index.esm.js +833 -42
  5. package/lib/index.js +833 -0
  6. package/package.json +94 -87
  7. package/rollup.config.mjs +47 -0
  8. package/.github/workflows/security.yml +0 -52
  9. package/lib/index.cjs.js +0 -28
  10. package/lib/types/components/Alert/Alert.d.ts +0 -17
  11. package/lib/types/components/Alert/index.d.ts +0 -1
  12. package/lib/types/components/BoxedRadio/boxedRadio.d.ts +0 -10
  13. package/lib/types/components/BoxedRadio/boxedRadioContext.d.ts +0 -7
  14. package/lib/types/components/BoxedRadio/boxedRadioGroup.d.ts +0 -2
  15. package/lib/types/components/BoxedRadio/index.d.ts +0 -2
  16. package/lib/types/components/Button/Buttons.d.ts +0 -19
  17. package/lib/types/components/Button/index.d.ts +0 -1
  18. package/lib/types/components/ButtonDropdown/ButtonDropdown.d.ts +0 -20
  19. package/lib/types/components/ButtonDropdown/index.d.ts +0 -1
  20. package/lib/types/components/Checkbox/Checkbox.d.ts +0 -13
  21. package/lib/types/components/Checkbox/index.d.ts +0 -1
  22. package/lib/types/components/Confirmation/Confirmation.d.ts +0 -38
  23. package/lib/types/components/Confirmation/index.d.ts +0 -2
  24. package/lib/types/components/Confirmation/useConfirmation.d.ts +0 -10
  25. package/lib/types/components/ControlledTable/ControlledTable.d.ts +0 -50
  26. package/lib/types/components/ControlledTable/index.d.ts +0 -1
  27. package/lib/types/components/CssBaseLine/index.d.ts +0 -1
  28. package/lib/types/components/Drawer/Drawer.d.ts +0 -17
  29. package/lib/types/components/Drawer/index.d.ts +0 -2
  30. package/lib/types/components/Drawer/styles.d.ts +0 -6
  31. package/lib/types/components/Dropdown/DropdownButton.d.ts +0 -14
  32. package/lib/types/components/Dropdown/DropdownInput.d.ts +0 -4
  33. package/lib/types/components/Dropdown/DropdownMenu.d.ts +0 -4
  34. package/lib/types/components/Dropdown/index.d.ts +0 -30
  35. package/lib/types/components/Dropdown/styles.d.ts +0 -7
  36. package/lib/types/components/Dropdown/withDownshift.d.ts +0 -8
  37. package/lib/types/components/Icons/Icons.d.ts +0 -20
  38. package/lib/types/components/Icons/index.d.ts +0 -1
  39. package/lib/types/components/Input/Input.d.ts +0 -57
  40. package/lib/types/components/Input/index.d.ts +0 -1
  41. package/lib/types/components/Loader/Loader.d.ts +0 -8
  42. package/lib/types/components/Loader/index.d.ts +0 -1
  43. package/lib/types/components/Menu/Menu.d.ts +0 -20
  44. package/lib/types/components/Menu/index.d.ts +0 -1
  45. package/lib/types/components/Modal/Modal.d.ts +0 -13
  46. package/lib/types/components/Modal/index.d.ts +0 -3
  47. package/lib/types/components/Modal/styles.d.ts +0 -12
  48. package/lib/types/components/Modal/use-modal.d.ts +0 -10
  49. package/lib/types/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +0 -32
  50. package/lib/types/components/MultiSelectDropdown/index.d.ts +0 -1
  51. package/lib/types/components/Pickers/DatePicker.d.ts +0 -4
  52. package/lib/types/components/Pickers/DateRangePicker.d.ts +0 -4
  53. package/lib/types/components/Pickers/DateTimePicker.d.ts +0 -4
  54. package/lib/types/components/Pickers/TimePicker.d.ts +0 -4
  55. package/lib/types/components/Pickers/index.d.ts +0 -4
  56. package/lib/types/components/Pickers/styles.d.ts +0 -4
  57. package/lib/types/components/Pickers/types.d.ts +0 -29
  58. package/lib/types/components/Popover/Popover.d.ts +0 -21
  59. package/lib/types/components/Popover/index.d.ts +0 -1
  60. package/lib/types/components/Radio/Radio.d.ts +0 -9
  61. package/lib/types/components/Radio/index.d.ts +0 -1
  62. package/lib/types/components/RestTable/RestTable.d.ts +0 -19
  63. package/lib/types/components/RestTable/index.d.ts +0 -1
  64. package/lib/types/components/Table/Table.d.ts +0 -56
  65. package/lib/types/components/Table/index.d.ts +0 -1
  66. package/lib/types/components/Tabs/Tabs.d.ts +0 -20
  67. package/lib/types/components/Tabs/index.d.ts +0 -1
  68. package/lib/types/components/Tag/Tag.d.ts +0 -7
  69. package/lib/types/components/Tag/index.d.ts +0 -1
  70. package/lib/types/components/ThemeProvider/index.d.ts +0 -12
  71. package/lib/types/components/Toast/Toast.d.ts +0 -14
  72. package/lib/types/components/Toast/index.d.ts +0 -3
  73. package/lib/types/components/Toggle/Toggle.d.ts +0 -15
  74. package/lib/types/components/Toggle/index.d.ts +0 -1
  75. package/lib/types/components/Tooltip/Tooltip.d.ts +0 -24
  76. package/lib/types/components/Tooltip/index.d.ts +0 -1
  77. package/lib/types/components/Transition/Transition.d.ts +0 -14
  78. package/lib/types/components/Transition/fade.d.ts +0 -6
  79. package/lib/types/components/Transition/index.d.ts +0 -4
  80. package/lib/types/components/Transition/slide-fade.d.ts +0 -13
  81. package/lib/types/components/Transition/slide.d.ts +0 -11
  82. package/lib/types/components/UiProvider/UiProvider.d.ts +0 -2
  83. package/lib/types/components/UiProvider/index.d.ts +0 -1
  84. package/lib/types/components/use-toasts/index.d.ts +0 -1
  85. package/lib/types/components/use-toasts/toast-container.d.ts +0 -8
  86. package/lib/types/components/use-toasts/toast-item.d.ts +0 -15
  87. package/lib/types/components/use-toasts/use-toast.d.ts +0 -17
  88. package/lib/types/index.d.ts +0 -30
  89. package/lib/types/theme/default/colors.d.ts +0 -3
  90. package/lib/types/theme/default/index.d.ts +0 -7
  91. package/lib/types/theme/default/palette.d.ts +0 -3
  92. package/lib/types/theme/default/typography.d.ts +0 -3
  93. package/lib/types/theme/freshstatus/colors.d.ts +0 -3
  94. package/lib/types/theme/freshstatus/index.d.ts +0 -7
  95. package/lib/types/theme/freshstatus/palette.d.ts +0 -3
  96. package/lib/types/theme/freshstatus/typography.d.ts +0 -3
  97. package/lib/types/theme/index.d.ts +0 -352
  98. package/lib/types/theme/shared.d.ts +0 -2
  99. package/lib/types/utils/date.d.ts +0 -7
  100. package/lib/types/utils/index.d.ts +0 -1
  101. package/lib/types/utils/use-current-state.d.ts +0 -4
  102. package/lib/types/utils/use-portal.d.ts +0 -2
  103. package/lib/types/utils/use-ssr.d.ts +0 -6
  104. package/lib/types/utils/use-ui-context.d.ts +0 -11
  105. package/lib/types/utils/with-defaults.d.ts +0 -3
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ npm run check
5
+
package/README.md CHANGED
@@ -1,71 +1,46 @@
1
- <h1 align="center">Freemium Ui</h1>
1
+ # Getting Started with Create React App
2
2
 
3
- ## [DEMO](https://freemium-ui.netlify.app)
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
4
 
5
- [React](https://reactjs.org/) based light weight ui components based on [Styled Components](https://styled-components.com/)
5
+ ## Available Scripts
6
6
 
7
- ## Installation
7
+ In the project directory, you can run:
8
8
 
9
- Peer Dependencies to be installed
9
+ ### `npm start`
10
10
 
11
- ```
12
- npm install styled-components
13
- ```
11
+ Runs the app in the development mode.\
12
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
14
13
 
15
- Install the package
14
+ The page will reload if you make edits.\
15
+ You will also see any lint errors in the console.
16
16
 
17
- ```
18
- npm install @freshdesk/freemium-ui
19
- ```
17
+ ### `npm test`
20
18
 
21
- Please note that `@next` will only point to pre-releases; to get the latest stable release use `@latest` instead.
19
+ Launches the test runner in the interactive watch mode.\
20
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
22
21
 
23
- ## Usage
22
+ ### `npm run build`
24
23
 
25
- Here is a quick example to get you started, **it's all you need**:
24
+ Builds the app for production to the `build` folder.\
25
+ It correctly bundles React in production mode and optimizes the build for the best performance.
26
26
 
27
- ```jsx
28
- import React from 'react'
29
- import ReactDOM from 'react-dom'
30
- import {Button} from 'freemium-ui'
27
+ The build is minified and the filenames include the hashes.\
28
+ Your app is ready to be deployed!
31
29
 
32
- function App() {
33
- return <Button>Freemium Button</Button>
34
- }
30
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
35
31
 
36
- ReactDOM.render(<App />, document.querySelector('#app'))
37
- ```
32
+ ### `npm run eject`
38
33
 
39
- ## Contribution
34
+ **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
40
35
 
41
- Install Dependencies
36
+ If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
42
37
 
43
- ```
44
- npm install
45
- ```
38
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
46
39
 
47
- Start the app using storybook
40
+ You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
48
41
 
49
- ```
50
- npm run storybook
51
- ```
42
+ ## Learn More
52
43
 
53
- Build Freemium Ui Core Components
44
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
54
45
 
55
- ```
56
- npm run build
57
- ```
58
-
59
- Generate a PAT with `admin:org`, `write:packages`, `read:packages`, `delete:packages`
60
-
61
- Authenticate to npm github package
62
-
63
- ```
64
- npm login --registry=https://registry.npmjs.org/
65
- ```
66
-
67
- Publish the package to npm
68
-
69
- ```
70
- npm publish
71
- ```
46
+ To learn React, check out the [React documentation](https://reactjs.org/).