wini-web-components 0.2.0 → 0.3.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.
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "wini-web-components",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "dependencies": {
5
5
  "@fortawesome/free-solid-svg-icons": "^6.5.2",
6
6
  "@fortawesome/react-fontawesome": "^0.2.2",
7
- "@testing-library/jest-dom": "^5.17.0",
8
- "@testing-library/react": "^13.4.0",
9
- "@testing-library/user-event": "^13.5.0",
10
7
  "react": "^18.3.1",
11
8
  "react-awesome-slider": "^4.1.0",
12
9
  "react-dom": "^18.3.1",
package/src/index.js CHANGED
@@ -1,17 +1,51 @@
1
- import React from 'react';
2
- import ReactDOM from 'react-dom/client';
3
- import './index.css';
4
- import App from './App';
5
- import reportWebVitals from './reportWebVitals';
1
+ import './skin/color.css'
2
+ import './skin/layoout.css'
3
+ import './skin/typography.css'
4
+ import { Checkbox } from './component/checkbox/checkbox.tsx'
5
+ import { Select1 } from './component/select1/select1.tsx'
6
+ import { Switch } from './component/switch/switch.tsx'
7
+ import { showPopup, closePopup, Popup } from './component/popup/popup.tsx'
8
+ import { showDialog, Dialog, DialogAlignment } from './component/dialog/dialog.tsx'
9
+ import { DatePicker } from './component/date-picker/date-picker.tsx'
10
+ import { SelectMultiple } from './component/input-multi-select/input-multi-select.tsx'
11
+ import { ProgressBar } from './component/progress-bar/progress-bar.tsx'
12
+ import { ComponentStatus, getStatusIcon } from './component/component-status.tsx'
13
+ import { Text } from './component/text/text.tsx'
14
+ import { Pagination } from './component/pagination/pagination.tsx'
15
+ import { Table, TbCell, TbHeader, TbRow, TbBody, CellAlignItems } from './component/table/table.tsx'
16
+ import { TextField } from './component/text-field/text-field.tsx'
17
+ import { RadioButton } from './component/radio-button/radio-button.tsx'
18
+ import { TextArea } from './component/text-area/text-area.tsx'
19
+ import { ImportFile } from './component/import-file/import-file.tsx'
20
+ import { ToastMessage } from './component/toast-noti/toast-noti.tsx'
21
+ import { Calendar, CalendarType } from './component/calendar/calendar'
22
+ import { InfiniteScroll } from './component/infinite-scroll/infinite-scroll.tsx'
23
+ import { Rating } from './component/rating/rating.tsx'
24
+ import { ProgressCircle } from './component/progress-circle/progress-circle.tsx'
25
+ import { CustomSlider } from './component/slider/slider.tsx'
6
26
 
7
- const root = ReactDOM.createRoot(document.getElementById('root'));
8
- root.render(
9
- <React.StrictMode>
10
- <App />
11
- </React.StrictMode>
12
- );
13
-
14
- // If you want to start measuring performance in your app, pass a function
15
- // to log results (for example: reportWebVitals(console.log))
16
- // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17
- reportWebVitals();
27
+ export {
28
+ Calendar, CalendarType,
29
+ ComponentStatus,
30
+ getStatusIcon,
31
+ Checkbox,
32
+ Select1,
33
+ Switch,
34
+ Popup, showPopup, closePopup,
35
+ Dialog, showDialog, DialogAlignment,
36
+ DatePicker,
37
+ SelectMultiple,
38
+ ProgressBar,
39
+ Text,
40
+ Pagination,
41
+ Table, TbCell, TbHeader, TbBody, TbRow, CellAlignItems,
42
+ TextField,
43
+ RadioButton,
44
+ TextArea,
45
+ ImportFile,
46
+ ToastMessage,
47
+ InfiniteScroll,
48
+ Rating,
49
+ ProgressCircle,
50
+ CustomSlider,
51
+ }
package/src/App.css DELETED
@@ -1,38 +0,0 @@
1
- .App {
2
- text-align: center;
3
- }
4
-
5
- .App-logo {
6
- height: 40vmin;
7
- pointer-events: none;
8
- }
9
-
10
- @media (prefers-reduced-motion: no-preference) {
11
- .App-logo {
12
- animation: App-logo-spin infinite 20s linear;
13
- }
14
- }
15
-
16
- .App-header {
17
- background-color: #282c34;
18
- min-height: 100vh;
19
- display: flex;
20
- flex-direction: column;
21
- align-items: center;
22
- justify-content: center;
23
- font-size: calc(10px + 2vmin);
24
- color: white;
25
- }
26
-
27
- .App-link {
28
- color: #61dafb;
29
- }
30
-
31
- @keyframes App-logo-spin {
32
- from {
33
- transform: rotate(0deg);
34
- }
35
- to {
36
- transform: rotate(360deg);
37
- }
38
- }
package/src/App.js DELETED
@@ -1,25 +0,0 @@
1
- import logo from './logo.svg';
2
- import './App.css';
3
-
4
- function App() {
5
- return (
6
- <div className="App">
7
- <header className="App-header">
8
- <img src={logo} className="App-logo" alt="logo" />
9
- <p>
10
- Edit <code>src/App.js</code> and save to reload.
11
- </p>
12
- <a
13
- className="App-link"
14
- href="https://reactjs.org"
15
- target="_blank"
16
- rel="noopener noreferrer"
17
- >
18
- Learn React
19
- </a>
20
- </header>
21
- </div>
22
- );
23
- }
24
-
25
- export default App;
package/src/App.test.js DELETED
@@ -1,8 +0,0 @@
1
- import { render, screen } from '@testing-library/react';
2
- import App from './App';
3
-
4
- test('renders learn react link', () => {
5
- render(<App />);
6
- const linkElement = screen.getByText(/learn react/i);
7
- expect(linkElement).toBeInTheDocument();
8
- });
@@ -1,48 +0,0 @@
1
- import { Checkbox } from './checkbox/checkbox.tsx'
2
- import { Select1 } from './select1/select1.tsx'
3
- import { Switch } from './switch/switch.tsx'
4
- import { showPopup, closePopup, Popup } from './popup/popup.tsx'
5
- import { showDialog, Dialog, DialogAlignment } from './dialog/dialog.tsx'
6
- import { DatePicker } from './date-picker/date-picker.tsx'
7
- import { SelectMultiple } from './input-multi-select/input-multi-select.tsx'
8
- import { ProgressBar } from './progress-bar/progress-bar.tsx'
9
- import { ComponentStatus, getStatusIcon } from './component-status.tsx'
10
- import { Text } from './text/text.tsx'
11
- import { Pagination } from './pagination/pagination.tsx'
12
- import { Table, TbCell, TbHeader, TbRow, TbBody, CellAlignItems } from './table/table.tsx'
13
- import { TextField } from './text-field/text-field.tsx'
14
- import { RadioButton } from './radio-button/radio-button.tsx'
15
- import { TextArea } from './text-area/text-area.tsx'
16
- import { ImportFile } from './import-file/import-file.tsx'
17
- import { ToastMessage } from './toast-noti/toast-noti.tsx'
18
- import { Calendar, CalendarType } from './calendar/calendar'
19
- import { InfiniteScroll } from './infinite-scroll/infinite-scroll.tsx'
20
- import { Rating } from './rating/rating.tsx'
21
- import { ProgressCircle } from './progress-circle/progress-circle.tsx'
22
- import { CustomSlider } from './slider/slider.tsx'
23
-
24
- export {
25
- Calendar, CalendarType,
26
- ComponentStatus,
27
- getStatusIcon,
28
- Checkbox,
29
- Select1,
30
- Switch,
31
- Popup, showPopup, closePopup,
32
- Dialog, showDialog, DialogAlignment,
33
- DatePicker,
34
- SelectMultiple,
35
- ProgressBar,
36
- Text,
37
- Pagination,
38
- Table, TbCell, TbHeader, TbBody, TbRow, CellAlignItems,
39
- TextField,
40
- RadioButton,
41
- TextArea,
42
- ImportFile,
43
- ToastMessage,
44
- InfiniteScroll,
45
- Rating,
46
- ProgressCircle,
47
- CustomSlider,
48
- }
package/src/index.css DELETED
@@ -1,13 +0,0 @@
1
- body {
2
- margin: 0;
3
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4
- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5
- sans-serif;
6
- -webkit-font-smoothing: antialiased;
7
- -moz-osx-font-smoothing: grayscale;
8
- }
9
-
10
- code {
11
- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12
- monospace;
13
- }
@@ -1,13 +0,0 @@
1
- const reportWebVitals = onPerfEntry => {
2
- if (onPerfEntry && onPerfEntry instanceof Function) {
3
- import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4
- getCLS(onPerfEntry);
5
- getFID(onPerfEntry);
6
- getFCP(onPerfEntry);
7
- getLCP(onPerfEntry);
8
- getTTFB(onPerfEntry);
9
- });
10
- }
11
- };
12
-
13
- export default reportWebVitals;
package/src/setupTests.js DELETED
@@ -1,5 +0,0 @@
1
- // jest-dom adds custom jest matchers for asserting on DOM nodes.
2
- // allows you to do things like:
3
- // expect(element).toHaveTextContent(/react/i)
4
- // learn more: https://github.com/testing-library/jest-dom
5
- import '@testing-library/jest-dom';