master-components-react-ts 2.6.1 → 2.6.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 +16 -33
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -28,17 +28,8 @@ import 'master-components-react-ts/style.css'
|
|
|
28
28
|
function App() {
|
|
29
29
|
return (
|
|
30
30
|
<div>
|
|
31
|
-
<FormInput
|
|
32
|
-
|
|
33
|
-
placeholder="Enter your email"
|
|
34
|
-
type="email"
|
|
35
|
-
required
|
|
36
|
-
/>
|
|
37
|
-
<MainButton
|
|
38
|
-
label="Submit"
|
|
39
|
-
buttonType="primary"
|
|
40
|
-
onClick={() => console.log('Clicked!')}
|
|
41
|
-
/>
|
|
31
|
+
<FormInput label="Email" placeholder="Enter your email" type="email" required />
|
|
32
|
+
<MainButton label="Submit" buttonType="primary" onClick={() => console.log('Clicked!')} />
|
|
42
33
|
</div>
|
|
43
34
|
)
|
|
44
35
|
}
|
|
@@ -47,6 +38,7 @@ function App() {
|
|
|
47
38
|
## 🧩 Components
|
|
48
39
|
|
|
49
40
|
### Form Components
|
|
41
|
+
|
|
50
42
|
- **FormInput** - Text input with validation states, slots, and multiple types
|
|
51
43
|
- **Textarea** - Multi-line text input with character counting
|
|
52
44
|
- **Checkbox** - Customizable checkbox with different styles
|
|
@@ -59,6 +51,7 @@ function App() {
|
|
|
59
51
|
- **FileUploader** - Drag & drop file upload component
|
|
60
52
|
|
|
61
53
|
### Layout & Navigation
|
|
54
|
+
|
|
62
55
|
- **Table** - Feature-rich data table with sorting, pagination, and row actions
|
|
63
56
|
- **TreeNode** - Hierarchical tree component with checkboxes
|
|
64
57
|
- **Tabs** - Tab navigation component
|
|
@@ -66,6 +59,7 @@ function App() {
|
|
|
66
59
|
- **ActionDropdown** - Context menu dropdown for actions
|
|
67
60
|
|
|
68
61
|
### Feedback & Status
|
|
62
|
+
|
|
69
63
|
- **MainButton** - Primary button component with loading states
|
|
70
64
|
- **InlineLoading** - Loading indicators with success/error states
|
|
71
65
|
- **Skeleton** - Content loading placeholders
|
|
@@ -73,6 +67,7 @@ function App() {
|
|
|
73
67
|
- **Tooltip** - Contextual help tooltips
|
|
74
68
|
|
|
75
69
|
### Advanced Components
|
|
70
|
+
|
|
76
71
|
- **FilterWithTags** - Advanced filtering interface with multiple input types
|
|
77
72
|
- **DropdownPill** - Pill-style dropdown selector
|
|
78
73
|
|
|
@@ -83,6 +78,7 @@ For detailed documentation, examples, and API references, visit our documentatio
|
|
|
83
78
|
**🌐 [components.nebi.com](https://components.nebi.com)**
|
|
84
79
|
|
|
85
80
|
The documentation includes:
|
|
81
|
+
|
|
86
82
|
- Interactive component playground
|
|
87
83
|
- Complete API documentation
|
|
88
84
|
- Usage examples and best practices
|
|
@@ -102,14 +98,7 @@ import 'master-components-react-ts/style.css'
|
|
|
102
98
|
Components support extensive customization through props:
|
|
103
99
|
|
|
104
100
|
```tsx
|
|
105
|
-
<MainButton
|
|
106
|
-
label="Custom Button"
|
|
107
|
-
size="lg"
|
|
108
|
-
colorType="positive"
|
|
109
|
-
buttonType="secondary"
|
|
110
|
-
leftSlot={<Icon />}
|
|
111
|
-
buttonStyle={{ borderRadius: '8px' }}
|
|
112
|
-
/>
|
|
101
|
+
<MainButton label="Custom Button" size="lg" colorType="positive" buttonType="secondary" leftSlot={<Icon />} buttonStyle={{ borderRadius: '8px' }} />
|
|
113
102
|
```
|
|
114
103
|
|
|
115
104
|
## 🔧 TypeScript Support
|
|
@@ -117,12 +106,7 @@ Components support extensive customization through props:
|
|
|
117
106
|
Full TypeScript support with comprehensive type definitions:
|
|
118
107
|
|
|
119
108
|
```tsx
|
|
120
|
-
import {
|
|
121
|
-
FormInputProps,
|
|
122
|
-
TableProps,
|
|
123
|
-
DropdownItemType,
|
|
124
|
-
ColumnType
|
|
125
|
-
} from 'master-components-react-ts'
|
|
109
|
+
import { FormInputProps, TableProps, DropdownItemType, ColumnType } from 'master-components-react-ts'
|
|
126
110
|
|
|
127
111
|
interface MyComponentProps {
|
|
128
112
|
inputProps: FormInputProps
|
|
@@ -140,9 +124,9 @@ import { Table, ColumnType } from 'master-components-react-ts'
|
|
|
140
124
|
const columns: ColumnType[] = [
|
|
141
125
|
{ key: 'name', label: 'Name', visible: true },
|
|
142
126
|
{ key: 'email', label: 'Email', visible: true },
|
|
143
|
-
{
|
|
144
|
-
key: 'status',
|
|
145
|
-
label: 'Status',
|
|
127
|
+
{
|
|
128
|
+
key: 'status',
|
|
129
|
+
label: 'Status',
|
|
146
130
|
visible: true,
|
|
147
131
|
render: (row) => (
|
|
148
132
|
<span className={`status-${row.status}`}>
|
|
@@ -223,6 +207,7 @@ const countryData: DropdownItemType[] = [
|
|
|
223
207
|
## 🎯 Key Features
|
|
224
208
|
|
|
225
209
|
### Table Component
|
|
210
|
+
|
|
226
211
|
- **Sorting** - Click headers to sort data
|
|
227
212
|
- **Pagination** - Numbered and simple pagination styles
|
|
228
213
|
- **Row Selection** - Single and multi-row selection
|
|
@@ -232,12 +217,14 @@ const countryData: DropdownItemType[] = [
|
|
|
232
217
|
- **Tooltips** - Row-level tooltips for additional information
|
|
233
218
|
|
|
234
219
|
### Form Components
|
|
220
|
+
|
|
235
221
|
- **Validation States** - Error, success, and loading states
|
|
236
222
|
- **Custom Slots** - Left, right, and helper slots for icons/content
|
|
237
223
|
- **Multiple Input Types** - Text, email, password, number, etc.
|
|
238
224
|
- **Accessibility** - Full keyboard navigation and screen reader support
|
|
239
225
|
|
|
240
226
|
### Styling System
|
|
227
|
+
|
|
241
228
|
- **SCSS Modules** - Scoped styling to prevent conflicts
|
|
242
229
|
- **CSS Custom Properties** - Easy theme customization
|
|
243
230
|
- **Responsive Design** - Mobile-first responsive components
|
|
@@ -261,10 +248,6 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
261
248
|
- **Issues**: Report bugs and request features on our documentation site
|
|
262
249
|
- **Community**: Join our community discussions
|
|
263
250
|
|
|
264
|
-
## 🏷️ Version
|
|
265
|
-
|
|
266
|
-
Current version: **2.5.19**
|
|
267
|
-
|
|
268
251
|
---
|
|
269
252
|
|
|
270
|
-
Built with ❤️ for the React community. For the latest updates and announcements, visit [components.nebi.com](https://components.nebi.com).
|
|
253
|
+
Built with ❤️ for the React community. For the latest updates and announcements, visit [components.nebi.com](https://components.nebi.com).
|
package/dist/index.js
CHANGED
|
@@ -1182,7 +1182,7 @@ const pn = "mc__Dropdown-module__dropdownWrapper", mn = "mc__Dropdown-module__dr
|
|
|
1182
1182
|
/* @__PURE__ */ e("span", { title: u.name, className: de.countryName, children: u.name || u.label }),
|
|
1183
1183
|
/* @__PURE__ */ e("span", { className: de.countryDialCode, children: P === "country" ? u.dialCode : u?.label })
|
|
1184
1184
|
] }) : /* @__PURE__ */ e(
|
|
1185
|
-
"
|
|
1185
|
+
"div",
|
|
1186
1186
|
{
|
|
1187
1187
|
title: typeof u.label == "string" ? u.label : "",
|
|
1188
1188
|
className: `${u.id === "SELECT_ALL" ? de.selectAll : ""}`,
|