@bariskuran/base 0.0.1 → 0.0.3
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/README.md +83 -83
- package/package.json +3 -3
- package/src/libs/Button/String.js +0 -2
package/README.md
CHANGED
|
@@ -1,115 +1,115 @@
|
|
|
1
1
|
# @bariskuran/base
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**A comprehensive React framework, UI library, and design system.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Installation
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
### Automatic Setup
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
To create a new project with Base:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx @bariskuran/create-base
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Manual Installation
|
|
16
|
+
|
|
17
|
+
To add Base to an existing React project:
|
|
18
|
+
|
|
19
|
+
**npm**
|
|
20
|
+
|
|
21
|
+
```bash
|
|
10
22
|
npm install @bariskuran/base
|
|
11
23
|
```
|
|
12
24
|
|
|
13
|
-
|
|
25
|
+
**Yarn**
|
|
14
26
|
|
|
15
|
-
```
|
|
27
|
+
```bash
|
|
16
28
|
yarn add @bariskuran/base
|
|
17
29
|
```
|
|
18
30
|
|
|
19
|
-
|
|
20
|
-
• react >=17.0.0
|
|
21
|
-
• react-dom >=17.0.0
|
|
22
|
-
• react-router-dom >=6.0.0
|
|
23
|
-
• styled-components >=6.0.0
|
|
31
|
+
### Getting Started
|
|
24
32
|
|
|
25
|
-
|
|
33
|
+
Once the automatic setup is complete, start the development server:
|
|
26
34
|
|
|
27
|
-
```
|
|
28
|
-
|
|
35
|
+
```bash
|
|
36
|
+
yarn start
|
|
29
37
|
```
|
|
30
38
|
|
|
31
|
-
The
|
|
39
|
+
The application runs at `http://localhost:3000` by default.
|
|
32
40
|
|
|
33
|
-
|
|
41
|
+
The integrated Design System is available at `http://localhost:3000/design-system`.
|
|
34
42
|
|
|
35
|
-
|
|
43
|
+
## Purpose
|
|
36
44
|
|
|
37
|
-
|
|
45
|
+
Base is a comprehensive, largely self-contained development framework that brings together the essential tools, systems, and UI components needed to build modern React applications.
|
|
38
46
|
|
|
39
|
-
|
|
47
|
+
With over 100 utility functions, React hooks, and UI components, Base covers a wide range of development needs, from icons and flags to data handling, state management, date and time utilities, and image management.
|
|
40
48
|
|
|
41
|
-
|
|
42
|
-
import { Base } from "@bariskuran/base";
|
|
49
|
+
**Base is not a collection of third-party libraries bundled together.** Its core systems and components are developed entirely in-house, following a unified architecture. The only third-party library used within Base's own functional modules is the Lottie animation engine.
|
|
43
50
|
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<Base>
|
|
47
|
-
<YourApp />
|
|
48
|
-
</Base>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
```
|
|
51
|
+
Instead of installing, configuring, integrating, and maintaining numerous independent packages for common development tasks, Base provides a cohesive and consistent environment.
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
Its purpose goes beyond simplifying project setup: **Base aims to provide the shared infrastructure, tools, and components that React applications need, all within a single, standardized ecosystem.**
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
## Features
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
| --------------- | ----------- | ---------------------- |
|
|
59
|
-
| `ErrorFallback` | `ReactNode` | Error boundary wrapper |
|
|
60
|
-
| `OTHER_` | `ReactNode` | Suspense wrapper |
|
|
57
|
+
### Core Libraries & Systems
|
|
61
58
|
|
|
62
|
-
|
|
59
|
+
Base provides built-in solutions for many features that would otherwise require separate third-party dependencies.
|
|
63
60
|
|
|
64
|
-
|
|
61
|
+
- **UI Components & Templates:** Reusable interface components and ready-to-use UI templates.
|
|
62
|
+
- **Icons & Flags:** Built-in icon and country flag libraries.
|
|
63
|
+
- **Fetch & Data Management:** Tools for API requests and data handling.
|
|
64
|
+
- **State Management:** An integrated system for managing application state.
|
|
65
|
+
- **CSS & Styling Utilities:** Utilities for styling, design variables, and CSS operations.
|
|
66
|
+
- **Date & Time:** Functions for date, time, and time-related calculations.
|
|
67
|
+
- **Image Management:** Tools for image processing and management.
|
|
68
|
+
- **Timers:** Utilities for timers and time-based operations.
|
|
69
|
+
- **React Hooks:** Custom hooks for reusable React behaviors and application logic.
|
|
70
|
+
- **Utility Functions:** General-purpose functions for everyday development tasks.
|
|
71
|
+
- **Animations:** Lottie-based animation support.
|
|
65
72
|
|
|
66
|
-
|
|
67
|
-
import { Base } from "base";
|
|
73
|
+
These are not unrelated solutions assembled into a single package. They are interconnected parts of a unified library, built around a consistent development philosophy.
|
|
68
74
|
|
|
69
|
-
|
|
70
|
-
return <div>Something went wrong.</div>;
|
|
71
|
-
}
|
|
75
|
+
### UI & Design System
|
|
72
76
|
|
|
73
|
-
|
|
74
|
-
return (
|
|
75
|
-
<Base ErrorFallback={<AppError />}>
|
|
76
|
-
<YourApp />
|
|
77
|
-
</Base>
|
|
78
|
-
);
|
|
79
|
-
}
|
|
77
|
+
Base provides more than functional utilities. It also establishes a shared visual language and a consistent standard for interface development.
|
|
80
78
|
|
|
81
|
-
|
|
82
|
-
OTHER_ERROR_BOUNDARY_PROPS - Object - Optional;
|
|
83
|
-
```
|
|
79
|
+
Components, UI templates, styles, and design rules are developed within the same system, making it easier to create consistent interfaces across different projects.
|
|
84
80
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
81
|
+
### Ready-to-Use Project Infrastructure
|
|
82
|
+
|
|
83
|
+
Starting a React project may take only a few commands, but preparing a complete development environment can take days.
|
|
84
|
+
|
|
85
|
+
Setting up the project architecture, routing, styling system, icons, shared components, development tools, and configurations is often a repetitive process.
|
|
86
|
+
|
|
87
|
+
Base provides this infrastructure out of the box.
|
|
88
|
+
|
|
89
|
+
A project structure built on the latest React, React DOM, React Router DOM, and Vite comes with the necessary development configurations, design system, and application integrations already in place.
|
|
90
|
+
|
|
91
|
+
**This allows you to focus on building your application instead of spending time on initial setup.**
|
|
92
|
+
|
|
93
|
+
## Design System
|
|
94
|
+
|
|
95
|
+
Base includes an integrated **Design System** environment where components, functions, and hooks can be explored, tested, and documented through their APIs.
|
|
96
|
+
|
|
97
|
+
It serves both as a documentation resource and as a live development and testing environment.
|
|
98
|
+
|
|
99
|
+
After automatic setup, it is accessible at:
|
|
100
|
+
|
|
101
|
+
**http://localhost:3000/design-system**
|
|
102
|
+
|
|
103
|
+
## Development Philosophy
|
|
104
|
+
|
|
105
|
+
Base was built around the idea of solving common development needs within its own architecture rather than introducing a new dependency for every feature.
|
|
106
|
+
|
|
107
|
+
This approach is guided by three core principles:
|
|
108
|
+
|
|
109
|
+
**Independence.** Keeping third-party dependencies to a minimum while maintaining full control over the core systems.
|
|
110
|
+
|
|
111
|
+
**Consistency.** Bringing functions, utilities, and UI components together under a shared development standard.
|
|
112
|
+
|
|
113
|
+
**Efficiency.** Reducing repetitive infrastructure work and accelerating the development process.
|
|
114
|
+
|
|
115
|
+
Base is designed not just to help you start a project, but to **provide a shared development foundation throughout the entire application lifecycle.**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bariskuran/base",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Advanced hooks, functions, components for React projects.",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"vite.aliases.mjs"
|
|
39
39
|
],
|
|
40
40
|
"bin": {
|
|
41
|
-
"base-image-catalog-setup": "
|
|
42
|
-
"base-image-index": "
|
|
41
|
+
"base-image-catalog-setup": "src/libs/createImageCatalog/tools/base-image-catalog-setup.cjs",
|
|
42
|
+
"base-image-index": "src/libs/createImageCatalog/tools/base-image-index.cjs"
|
|
43
43
|
},
|
|
44
44
|
"exports": {
|
|
45
45
|
".": {
|