sevatech-library 1.0.0 → 1.0.2
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 +32 -32
- package/dist/cjs/index.js +65 -24
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/avatar/avatar-group.component.d.ts +1 -1
- package/dist/cjs/types/components/avatar/avatar-group.component.d.ts.map +1 -1
- package/dist/cjs/types/components/avatar/avatar-label-group.component.d.ts +1 -1
- package/dist/cjs/types/components/avatar/avatar-label-group.component.d.ts.map +1 -1
- package/dist/cjs/types/components/avatar/avatar-profile.component.d.ts +1 -1
- package/dist/cjs/types/components/avatar/avatar-profile.component.d.ts.map +1 -1
- package/dist/cjs/types/components/avatar/avatar-user.component.d.ts +1 -1
- package/dist/cjs/types/components/avatar/avatar-user.component.d.ts.map +1 -1
- package/dist/cjs/types/components/avatar/index.d.ts +4 -4
- package/dist/cjs/types/components/avatar/index.d.ts.map +1 -1
- package/dist/cjs/types/components/bread-crumbs/bread-crumbs.component.d.ts +21 -0
- package/dist/cjs/types/components/bread-crumbs/bread-crumbs.component.d.ts.map +1 -0
- package/dist/cjs/types/components/button-bar/button-bar.component.d.ts +1 -1
- package/dist/cjs/types/components/button-bar/button-bar.component.d.ts.map +1 -1
- package/dist/cjs/types/components/checkbox/checkbox-content.component.d.ts.map +1 -1
- package/dist/cjs/types/components/checkbox/checkbox.component.d.ts +1 -1
- package/dist/cjs/types/components/checkbox/checkbox.component.d.ts.map +1 -1
- package/dist/cjs/types/components/chip/chip.component.d.ts +1 -1
- package/dist/cjs/types/components/chip/chip.component.d.ts.map +1 -1
- package/dist/cjs/types/components/date-field/date-field.component.d.ts +1 -1
- package/dist/cjs/types/components/date-field/date-field.component.d.ts.map +1 -1
- package/dist/cjs/types/components/date-range-picker/date-range-picker.component.d.ts +1 -1
- package/dist/cjs/types/components/date-range-picker/date-range-picker.component.d.ts.map +1 -1
- package/dist/cjs/types/components/dropdown-field/dropdown-field.component.d.ts +1 -1
- package/dist/cjs/types/components/dropdown-field/dropdown-field.component.d.ts.map +1 -1
- package/dist/cjs/types/components/grid/grid.component.d.ts +1 -1
- package/dist/cjs/types/components/grid/grid.component.d.ts.map +1 -1
- package/dist/cjs/types/components/index.d.ts +4 -23
- package/dist/cjs/types/components/index.d.ts.map +1 -1
- package/dist/cjs/types/components/input-stepper/input-stepper-skeleton.d.ts +1 -1
- package/dist/cjs/types/components/input-stepper/input-stepper-skeleton.d.ts.map +1 -1
- package/dist/cjs/types/components/input-stepper/input-stepper.component.d.ts +1 -1
- package/dist/cjs/types/components/input-stepper/input-stepper.component.d.ts.map +1 -1
- package/dist/cjs/types/components/link-field/link-field.component.d.ts +1 -1
- package/dist/cjs/types/components/link-field/link-field.component.d.ts.map +1 -1
- package/dist/cjs/types/components/modal/index.d.ts +2 -2
- package/dist/cjs/types/components/modal/index.d.ts.map +1 -1
- package/dist/cjs/types/components/modal/modal-card.component.d.ts +1 -1
- package/dist/cjs/types/components/modal/modal-card.component.d.ts.map +1 -1
- package/dist/cjs/types/components/modal/modal.component.d.ts +1 -1
- package/dist/cjs/types/components/modal/modal.component.d.ts.map +1 -1
- package/dist/cjs/types/components/money-field/money-field.component.d.ts +1 -1
- package/dist/cjs/types/components/money-field/money-field.component.d.ts.map +1 -1
- package/dist/cjs/types/components/phone-number-field/phone-number-field.component.d.ts +1 -1
- package/dist/cjs/types/components/phone-number-field/phone-number-field.component.d.ts.map +1 -1
- package/dist/cjs/types/components/pin/pin.component.d.ts +1 -1
- package/dist/cjs/types/components/pin/pin.component.d.ts.map +1 -1
- package/dist/cjs/types/components/search-dropdown/search-dropdown.component.d.ts +1 -1
- package/dist/cjs/types/components/search-dropdown/search-dropdown.component.d.ts.map +1 -1
- package/dist/cjs/types/components/search-field/search-field.component.d.ts +1 -1
- package/dist/cjs/types/components/search-field/search-field.component.d.ts.map +1 -1
- package/dist/cjs/types/components/switch/switch-content.component.d.ts +1 -1
- package/dist/cjs/types/components/switch/switch-content.component.d.ts.map +1 -1
- package/dist/cjs/types/components/switch/switch.component.d.ts +1 -1
- package/dist/cjs/types/components/switch/switch.component.d.ts.map +1 -1
- package/dist/cjs/types/components/tab/tab.component.d.ts +1 -1
- package/dist/cjs/types/components/tab/tab.component.d.ts.map +1 -1
- package/dist/cjs/types/components/text-area/text-area.component.d.ts +1 -1
- package/dist/cjs/types/components/text-area/text-area.component.d.ts.map +1 -1
- package/dist/cjs/types/components/text-field/text-field.component.d.ts +1 -1
- package/dist/cjs/types/components/text-field/text-field.component.d.ts.map +1 -1
- package/dist/cjs/types/components/typography/typography-limit-one-line.component.d.ts +1 -1
- package/dist/cjs/types/components/typography/typography-limit-one-line.component.d.ts.map +1 -1
- package/dist/cjs/types/components/uploader/uploader-item.component.d.ts +1 -1
- package/dist/cjs/types/components/uploader/uploader-item.component.d.ts.map +1 -1
- package/dist/cjs/types/components/uploader/uploader.component.d.ts +1 -1
- package/dist/cjs/types/components/uploader/uploader.component.d.ts.map +1 -1
- package/dist/esm/index.js +41 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/avatar/avatar-group.component.d.ts +1 -1
- package/dist/esm/types/components/avatar/avatar-group.component.d.ts.map +1 -1
- package/dist/esm/types/components/avatar/avatar-label-group.component.d.ts +1 -1
- package/dist/esm/types/components/avatar/avatar-label-group.component.d.ts.map +1 -1
- package/dist/esm/types/components/avatar/avatar-profile.component.d.ts +1 -1
- package/dist/esm/types/components/avatar/avatar-profile.component.d.ts.map +1 -1
- package/dist/esm/types/components/avatar/avatar-user.component.d.ts +1 -1
- package/dist/esm/types/components/avatar/avatar-user.component.d.ts.map +1 -1
- package/dist/esm/types/components/avatar/index.d.ts +4 -4
- package/dist/esm/types/components/avatar/index.d.ts.map +1 -1
- package/dist/esm/types/components/bread-crumbs/bread-crumbs.component.d.ts +21 -0
- package/dist/esm/types/components/bread-crumbs/bread-crumbs.component.d.ts.map +1 -0
- package/dist/esm/types/components/button-bar/button-bar.component.d.ts +1 -1
- package/dist/esm/types/components/button-bar/button-bar.component.d.ts.map +1 -1
- package/dist/esm/types/components/checkbox/checkbox-content.component.d.ts.map +1 -1
- package/dist/esm/types/components/checkbox/checkbox.component.d.ts +1 -1
- package/dist/esm/types/components/checkbox/checkbox.component.d.ts.map +1 -1
- package/dist/esm/types/components/chip/chip.component.d.ts +1 -1
- package/dist/esm/types/components/chip/chip.component.d.ts.map +1 -1
- package/dist/esm/types/components/date-field/date-field.component.d.ts +1 -1
- package/dist/esm/types/components/date-field/date-field.component.d.ts.map +1 -1
- package/dist/esm/types/components/date-range-picker/date-range-picker.component.d.ts +1 -1
- package/dist/esm/types/components/date-range-picker/date-range-picker.component.d.ts.map +1 -1
- package/dist/esm/types/components/dropdown-field/dropdown-field.component.d.ts +1 -1
- package/dist/esm/types/components/dropdown-field/dropdown-field.component.d.ts.map +1 -1
- package/dist/esm/types/components/grid/grid.component.d.ts +1 -1
- package/dist/esm/types/components/grid/grid.component.d.ts.map +1 -1
- package/dist/esm/types/components/index.d.ts +4 -23
- package/dist/esm/types/components/index.d.ts.map +1 -1
- package/dist/esm/types/components/input-stepper/input-stepper-skeleton.d.ts +1 -1
- package/dist/esm/types/components/input-stepper/input-stepper-skeleton.d.ts.map +1 -1
- package/dist/esm/types/components/input-stepper/input-stepper.component.d.ts +1 -1
- package/dist/esm/types/components/input-stepper/input-stepper.component.d.ts.map +1 -1
- package/dist/esm/types/components/link-field/link-field.component.d.ts +1 -1
- package/dist/esm/types/components/link-field/link-field.component.d.ts.map +1 -1
- package/dist/esm/types/components/modal/index.d.ts +2 -2
- package/dist/esm/types/components/modal/index.d.ts.map +1 -1
- package/dist/esm/types/components/modal/modal-card.component.d.ts +1 -1
- package/dist/esm/types/components/modal/modal-card.component.d.ts.map +1 -1
- package/dist/esm/types/components/modal/modal.component.d.ts +1 -1
- package/dist/esm/types/components/modal/modal.component.d.ts.map +1 -1
- package/dist/esm/types/components/money-field/money-field.component.d.ts +1 -1
- package/dist/esm/types/components/money-field/money-field.component.d.ts.map +1 -1
- package/dist/esm/types/components/phone-number-field/phone-number-field.component.d.ts +1 -1
- package/dist/esm/types/components/phone-number-field/phone-number-field.component.d.ts.map +1 -1
- package/dist/esm/types/components/pin/pin.component.d.ts +1 -1
- package/dist/esm/types/components/pin/pin.component.d.ts.map +1 -1
- package/dist/esm/types/components/search-dropdown/search-dropdown.component.d.ts +1 -1
- package/dist/esm/types/components/search-dropdown/search-dropdown.component.d.ts.map +1 -1
- package/dist/esm/types/components/search-field/search-field.component.d.ts +1 -1
- package/dist/esm/types/components/search-field/search-field.component.d.ts.map +1 -1
- package/dist/esm/types/components/switch/switch-content.component.d.ts +1 -1
- package/dist/esm/types/components/switch/switch-content.component.d.ts.map +1 -1
- package/dist/esm/types/components/switch/switch.component.d.ts +1 -1
- package/dist/esm/types/components/switch/switch.component.d.ts.map +1 -1
- package/dist/esm/types/components/tab/tab.component.d.ts +1 -1
- package/dist/esm/types/components/tab/tab.component.d.ts.map +1 -1
- package/dist/esm/types/components/text-area/text-area.component.d.ts +1 -1
- package/dist/esm/types/components/text-area/text-area.component.d.ts.map +1 -1
- package/dist/esm/types/components/text-field/text-field.component.d.ts +1 -1
- package/dist/esm/types/components/text-field/text-field.component.d.ts.map +1 -1
- package/dist/esm/types/components/typography/typography-limit-one-line.component.d.ts +1 -1
- package/dist/esm/types/components/typography/typography-limit-one-line.component.d.ts.map +1 -1
- package/dist/esm/types/components/uploader/uploader-item.component.d.ts +1 -1
- package/dist/esm/types/components/uploader/uploader-item.component.d.ts.map +1 -1
- package/dist/esm/types/components/uploader/uploader.component.d.ts +1 -1
- package/dist/esm/types/components/uploader/uploader.component.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# SevaTech Library
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/SevaTech-library)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
[](https://www.typescriptlang.org/)
|
|
6
6
|
|
|
@@ -19,13 +19,13 @@ A comprehensive, production-ready React component library built with TypeScript,
|
|
|
19
19
|
## 📦 Installation
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm
|
|
22
|
+
npm i sevatech-library --force
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
or
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
yarn add
|
|
28
|
+
yarn add sevatech-library
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
### Peer Dependencies
|
|
@@ -46,7 +46,7 @@ Ensure you have the following peer dependencies installed:
|
|
|
46
46
|
|
|
47
47
|
```tsx
|
|
48
48
|
import React, { useState } from 'react';
|
|
49
|
-
import { ButtonComponent, TextFieldComponent, ModalComponent } from '
|
|
49
|
+
import { ButtonComponent, TextFieldComponent, ModalComponent } from 'SevaTech-library';
|
|
50
50
|
|
|
51
51
|
function App() {
|
|
52
52
|
const [email, setEmail] = useState('');
|
|
@@ -74,7 +74,7 @@ function App() {
|
|
|
74
74
|
<ModalComponent
|
|
75
75
|
open={isOpen}
|
|
76
76
|
onClose={() => setIsOpen(false)}
|
|
77
|
-
title="Welcome to
|
|
77
|
+
title="Welcome to SevaTech Library"
|
|
78
78
|
buttonRight={{
|
|
79
79
|
children: 'Get Started',
|
|
80
80
|
onClick: () => setIsOpen(false)
|
|
@@ -98,7 +98,7 @@ export default App;
|
|
|
98
98
|
A versatile button component supporting multiple variants, colors, sizes, and icon integration.
|
|
99
99
|
|
|
100
100
|
```tsx
|
|
101
|
-
import { ButtonComponent } from '
|
|
101
|
+
import { ButtonComponent } from 'SevaTech-library';
|
|
102
102
|
|
|
103
103
|
// Basic usage
|
|
104
104
|
<ButtonComponent variant="solid" color="brand" onClick={handleClick}>
|
|
@@ -125,7 +125,7 @@ import { ButtonComponent } from 'sevagotech-library';
|
|
|
125
125
|
Advanced input field with validation states, icons, and accessibility features.
|
|
126
126
|
|
|
127
127
|
```tsx
|
|
128
|
-
import { TextFieldComponent } from '
|
|
128
|
+
import { TextFieldComponent } from 'SevaTech-library';
|
|
129
129
|
|
|
130
130
|
const [value, setValue] = useState('');
|
|
131
131
|
|
|
@@ -159,7 +159,7 @@ const [value, setValue] = useState('');
|
|
|
159
159
|
Multi-line text input with customizable rows and validation.
|
|
160
160
|
|
|
161
161
|
```tsx
|
|
162
|
-
import { TextAreaComponent } from '
|
|
162
|
+
import { TextAreaComponent } from 'SevaTech-library';
|
|
163
163
|
|
|
164
164
|
const [description, setDescription] = useState('');
|
|
165
165
|
|
|
@@ -178,7 +178,7 @@ const [description, setDescription] = useState('');
|
|
|
178
178
|
Custom-styled checkbox with label support.
|
|
179
179
|
|
|
180
180
|
```tsx
|
|
181
|
-
import { CheckboxComponent } from '
|
|
181
|
+
import { CheckboxComponent } from 'SevaTech-library';
|
|
182
182
|
|
|
183
183
|
const [agreed, setAgreed] = useState(false);
|
|
184
184
|
|
|
@@ -194,7 +194,7 @@ const [agreed, setAgreed] = useState(false);
|
|
|
194
194
|
Toggle switch with smooth animations.
|
|
195
195
|
|
|
196
196
|
```tsx
|
|
197
|
-
import { SwitchComponent } from '
|
|
197
|
+
import { SwitchComponent } from 'SevaTech-library';
|
|
198
198
|
|
|
199
199
|
const [notifications, setNotifications] = useState(true);
|
|
200
200
|
|
|
@@ -210,7 +210,7 @@ const [notifications, setNotifications] = useState(true);
|
|
|
210
210
|
Select dropdown with search and multi-select capabilities.
|
|
211
211
|
|
|
212
212
|
```tsx
|
|
213
|
-
import { DropdownFieldComponent } from '
|
|
213
|
+
import { DropdownFieldComponent } from 'SevaTech-library';
|
|
214
214
|
|
|
215
215
|
const options = [
|
|
216
216
|
{ label: 'Option 1', value: '1' },
|
|
@@ -232,7 +232,7 @@ const options = [
|
|
|
232
232
|
Debounced search input with clear functionality.
|
|
233
233
|
|
|
234
234
|
```tsx
|
|
235
|
-
import { SearchFieldComponent } from '
|
|
235
|
+
import { SearchFieldComponent } from 'SevaTech-library';
|
|
236
236
|
|
|
237
237
|
const [searchTerm, setSearchTerm] = useState('');
|
|
238
238
|
|
|
@@ -250,7 +250,7 @@ const [searchTerm, setSearchTerm] = useState('');
|
|
|
250
250
|
Date picker with customizable format and locale support.
|
|
251
251
|
|
|
252
252
|
```tsx
|
|
253
|
-
import { DateFieldComponent } from '
|
|
253
|
+
import { DateFieldComponent } from 'SevaTech-library';
|
|
254
254
|
import dayjs from 'dayjs';
|
|
255
255
|
|
|
256
256
|
const [selectedDate, setSelectedDate] = useState(dayjs());
|
|
@@ -268,7 +268,7 @@ const [selectedDate, setSelectedDate] = useState(dayjs());
|
|
|
268
268
|
Currency input with automatic formatting.
|
|
269
269
|
|
|
270
270
|
```tsx
|
|
271
|
-
import { MoneyFieldComponent } from '
|
|
271
|
+
import { MoneyFieldComponent } from 'SevaTech-library';
|
|
272
272
|
|
|
273
273
|
const [price, setPrice] = useState('');
|
|
274
274
|
|
|
@@ -288,7 +288,7 @@ const [price, setPrice] = useState('');
|
|
|
288
288
|
Flexible modal dialog with customizable actions and content.
|
|
289
289
|
|
|
290
290
|
```tsx
|
|
291
|
-
import { ModalComponent } from '
|
|
291
|
+
import { ModalComponent } from 'SevaTech-library';
|
|
292
292
|
|
|
293
293
|
<ModalComponent
|
|
294
294
|
open={isOpen}
|
|
@@ -310,7 +310,7 @@ import { ModalComponent } from 'sevagotech-library';
|
|
|
310
310
|
Animated tabbed interface with icon support.
|
|
311
311
|
|
|
312
312
|
```tsx
|
|
313
|
-
import { TabsComponent } from '
|
|
313
|
+
import { TabsComponent } from 'SevaTech-library';
|
|
314
314
|
|
|
315
315
|
const tabs = [
|
|
316
316
|
{ id: 'tab1', name: 'Home', icon: 'home' },
|
|
@@ -330,7 +330,7 @@ const tabs = [
|
|
|
330
330
|
Responsive grid system based on Material-UI's Grid.
|
|
331
331
|
|
|
332
332
|
```tsx
|
|
333
|
-
import { Grid } from '
|
|
333
|
+
import { Grid } from 'SevaTech-library';
|
|
334
334
|
|
|
335
335
|
<Grid container spacing={2}>
|
|
336
336
|
<Grid item xs={12} sm={6} md={4}>
|
|
@@ -352,7 +352,7 @@ import { Grid } from 'sevagotech-library';
|
|
|
352
352
|
User avatar with image and fallback support.
|
|
353
353
|
|
|
354
354
|
```tsx
|
|
355
|
-
import { AvatarComponent } from '
|
|
355
|
+
import { AvatarComponent } from 'SevaTech-library';
|
|
356
356
|
|
|
357
357
|
<AvatarComponent
|
|
358
358
|
url="https://example.com/avatar.jpg"
|
|
@@ -372,7 +372,7 @@ import { AvatarComponent } from 'sevagotech-library';
|
|
|
372
372
|
Grouped avatars with overflow indicators.
|
|
373
373
|
|
|
374
374
|
```tsx
|
|
375
|
-
import { AvatarGroupComponent } from '
|
|
375
|
+
import { AvatarGroupComponent } from 'SevaTech-library';
|
|
376
376
|
|
|
377
377
|
const avatars = [
|
|
378
378
|
{ id: '1', url: 'avatar1.jpg', name: 'User 1' },
|
|
@@ -391,7 +391,7 @@ const avatars = [
|
|
|
391
391
|
Compact information display with optional delete action.
|
|
392
392
|
|
|
393
393
|
```tsx
|
|
394
|
-
import { ChipComponent } from '
|
|
394
|
+
import { ChipComponent } from 'SevaTech-library';
|
|
395
395
|
|
|
396
396
|
<ChipComponent label="New" color="success" />
|
|
397
397
|
<ChipComponent label="Important" color="error" variant="outlined" />
|
|
@@ -406,7 +406,7 @@ import { ChipComponent } from 'sevagotech-library';
|
|
|
406
406
|
Text styling with semantic variants.
|
|
407
407
|
|
|
408
408
|
```tsx
|
|
409
|
-
import { TypographyComponent } from '
|
|
409
|
+
import { TypographyComponent } from 'SevaTech-library';
|
|
410
410
|
|
|
411
411
|
<TypographyComponent variant="h1">Main Heading</TypographyComponent>
|
|
412
412
|
<TypographyComponent variant="body1">
|
|
@@ -424,7 +424,7 @@ import { TypographyComponent } from 'sevagotech-library';
|
|
|
424
424
|
Breadcrumb navigation with customizable separators.
|
|
425
425
|
|
|
426
426
|
```tsx
|
|
427
|
-
import { BreadCumbsComponent } from '
|
|
427
|
+
import { BreadCumbsComponent } from 'SevaTech-library';
|
|
428
428
|
|
|
429
429
|
const breadcrumbs = [
|
|
430
430
|
{ label: 'Home', href: '/' },
|
|
@@ -440,7 +440,7 @@ const breadcrumbs = [
|
|
|
440
440
|
Styled navigation link with external link support.
|
|
441
441
|
|
|
442
442
|
```tsx
|
|
443
|
-
import { LinkElement } from '
|
|
443
|
+
import { LinkElement } from 'SevaTech-library';
|
|
444
444
|
|
|
445
445
|
<LinkElement href="/dashboard">Go to Dashboard</LinkElement>
|
|
446
446
|
<LinkElement href="https://example.com" external>
|
|
@@ -455,7 +455,7 @@ import { LinkElement } from 'sevagotech-library';
|
|
|
455
455
|
Material Icons integration with size and color options.
|
|
456
456
|
|
|
457
457
|
```tsx
|
|
458
|
-
import { IconElement } from '
|
|
458
|
+
import { IconElement } from 'SevaTech-library';
|
|
459
459
|
|
|
460
460
|
<IconElement icon="home" />
|
|
461
461
|
<IconElement icon="search" size="large" />
|
|
@@ -467,7 +467,7 @@ import { IconElement } from 'sevagotech-library';
|
|
|
467
467
|
Optimized image component with lazy loading and fallbacks.
|
|
468
468
|
|
|
469
469
|
```tsx
|
|
470
|
-
import { ImageElement } from '
|
|
470
|
+
import { ImageElement } from 'SevaTech-library';
|
|
471
471
|
|
|
472
472
|
<ImageElement
|
|
473
473
|
url="https://example.com/image.jpg"
|
|
@@ -481,7 +481,7 @@ import { ImageElement } from 'sevagotech-library';
|
|
|
481
481
|
File upload with drag-and-drop and progress tracking.
|
|
482
482
|
|
|
483
483
|
```tsx
|
|
484
|
-
import { UploaderComponent } from '
|
|
484
|
+
import { UploaderComponent } from 'SevaTech-library';
|
|
485
485
|
|
|
486
486
|
<UploaderComponent
|
|
487
487
|
onFilesSelected={(files) => {
|
|
@@ -503,8 +503,8 @@ import { UploaderComponent } from 'sevagotech-library';
|
|
|
503
503
|
|
|
504
504
|
1. Clone the repository:
|
|
505
505
|
```bash
|
|
506
|
-
git clone https://github.com/your-username/
|
|
507
|
-
cd
|
|
506
|
+
git clone https://github.com/your-username/sevatech-library.git
|
|
507
|
+
cd sevatech-library
|
|
508
508
|
```
|
|
509
509
|
|
|
510
510
|
2. Install dependencies:
|
|
@@ -543,12 +543,12 @@ npm run types
|
|
|
543
543
|
|
|
544
544
|
## 🎨 Theming
|
|
545
545
|
|
|
546
|
-
|
|
546
|
+
SevaTech Library uses Material-UI's powerful theming system. Customize the theme to match your brand:
|
|
547
547
|
|
|
548
548
|
```tsx
|
|
549
549
|
import React from 'react';
|
|
550
550
|
import { ThemeProvider, createTheme } from '@mui/material';
|
|
551
|
-
import { ButtonComponent } from '
|
|
551
|
+
import { ButtonComponent } from 'SevaTech-library';
|
|
552
552
|
|
|
553
553
|
const theme = createTheme({
|
|
554
554
|
palette: {
|
|
@@ -647,7 +647,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
647
647
|
## 📞 Support
|
|
648
648
|
|
|
649
649
|
- 📧 Email:
|
|
650
|
-
- 🐛 Issues: [GitHub Issues](https://github.com/your-username/
|
|
650
|
+
- 🐛 Issues: [GitHub Issues](https://github.com/your-username/SevaTech-library/issues)
|
|
651
651
|
- 📚 Documentation: [Full Documentation](https://github.com/golden-lotus-core-web/sevatech-library)
|
|
652
652
|
|
|
653
653
|
---
|
package/dist/cjs/index.js
CHANGED
|
@@ -1530,6 +1530,46 @@ const CheckboxComponent = ({ checked = false, disabled = false, shape = 'square'
|
|
|
1530
1530
|
}, children: title })] }));
|
|
1531
1531
|
};
|
|
1532
1532
|
|
|
1533
|
+
const CONTENT_TYPO = {
|
|
1534
|
+
small: {
|
|
1535
|
+
titleFontSize: 14,
|
|
1536
|
+
titleFontWeight: 500,
|
|
1537
|
+
contentFontSize: 14,
|
|
1538
|
+
lineHeight: '20px',
|
|
1539
|
+
},
|
|
1540
|
+
medium: {
|
|
1541
|
+
titleFontSize: 16,
|
|
1542
|
+
titleFontWeight: 600,
|
|
1543
|
+
contentFontSize: 16,
|
|
1544
|
+
lineHeight: '24px',
|
|
1545
|
+
},
|
|
1546
|
+
};
|
|
1547
|
+
const CheckboxContentComponent = ({ checked = false, disabled = false, title, content, size = 'medium', variant = 'filled', shape = 'square', iconType = 'check', onChange, sxCheckbox, sxLabel, sx, }) => {
|
|
1548
|
+
const typo = CONTENT_TYPO[size];
|
|
1549
|
+
const handleToggle = () => {
|
|
1550
|
+
if (!disabled) {
|
|
1551
|
+
onChange?.(!checked);
|
|
1552
|
+
}
|
|
1553
|
+
};
|
|
1554
|
+
return (jsxRuntime.jsxs(material.Box, { onClick: handleToggle, sx: {
|
|
1555
|
+
display: 'flex',
|
|
1556
|
+
alignItems: 'flex-start',
|
|
1557
|
+
gap: '12px',
|
|
1558
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
1559
|
+
width: 'fit-content',
|
|
1560
|
+
...sx,
|
|
1561
|
+
}, children: [jsxRuntime.jsx(CheckboxComponent, { checked: checked, disabled: disabled, size: size, variant: variant, shape: shape, iconType: iconType, onChange: onChange, sxCheckbox: sxCheckbox }), jsxRuntime.jsxs(material.Box, { children: [jsxRuntime.jsx(material.Typography, { fontSize: typo.titleFontSize, fontWeight: typo.titleFontWeight, lineHeight: typo.lineHeight, sx: {
|
|
1562
|
+
userSelect: 'none',
|
|
1563
|
+
...(disabled && { opacity: 0.6 }),
|
|
1564
|
+
...sxLabel,
|
|
1565
|
+
}, children: title }), content && (jsxRuntime.jsx(material.Typography, { fontSize: typo.contentFontSize, lineHeight: typo.lineHeight, sx: {
|
|
1566
|
+
mt: '4px',
|
|
1567
|
+
userSelect: 'none',
|
|
1568
|
+
...(disabled && { opacity: 0.6 }),
|
|
1569
|
+
...sxLabel,
|
|
1570
|
+
}, children: content }))] })] }));
|
|
1571
|
+
};
|
|
1572
|
+
|
|
1533
1573
|
const CHIP_LABEL_PADDING = {
|
|
1534
1574
|
WITH_ICON_LEFT: '4px 8px 4px 4px',
|
|
1535
1575
|
WITH_ICON_RIGHT: '4px 4px 4px 8px',
|
|
@@ -3500,18 +3540,18 @@ const UploaderComponent = ({ onFilesSelected, accept = '*', multiple = true, chi
|
|
|
3500
3540
|
|
|
3501
3541
|
exports.AVATAR_SIZES = AVATAR_SIZES;
|
|
3502
3542
|
exports.AvatarComponent = AvatarComponent;
|
|
3503
|
-
exports.
|
|
3504
|
-
exports.
|
|
3505
|
-
exports.
|
|
3506
|
-
exports.
|
|
3543
|
+
exports.AvatarGroupComponent = AvatarGroupComponent;
|
|
3544
|
+
exports.AvatarLabelGroupComponent = AvatarLabelGroupComponent;
|
|
3545
|
+
exports.AvatarProfileComponent = AvatarProfileComponent;
|
|
3546
|
+
exports.AvatarUserComponent = AvatarUserComponent;
|
|
3507
3547
|
exports.BADGE_FONT_SIZES = BADGE_FONT_SIZES;
|
|
3508
3548
|
exports.BADGE_SIZES = BADGE_SIZES;
|
|
3509
3549
|
exports.BadgeImage = BadgeImage;
|
|
3510
3550
|
exports.BadgeLive = BadgeLive;
|
|
3511
3551
|
exports.BadgeNumber = BadgeNumber;
|
|
3512
3552
|
exports.BadgeOnline = BadgeOnline;
|
|
3513
|
-
exports.
|
|
3514
|
-
exports.
|
|
3553
|
+
exports.BreadcrumbsComponent = BreadcrumbsComponent;
|
|
3554
|
+
exports.ButtonBarComponent = ButtonBarComponent;
|
|
3515
3555
|
exports.ButtonComponent = ButtonComponent;
|
|
3516
3556
|
exports.COLOR_ACCENT = COLOR_ACCENT;
|
|
3517
3557
|
exports.COLOR_BRAND = COLOR_BRAND;
|
|
@@ -3521,23 +3561,24 @@ exports.COLOR_INFO = COLOR_INFO;
|
|
|
3521
3561
|
exports.COLOR_NEUTRAL = COLOR_NEUTRAL;
|
|
3522
3562
|
exports.COLOR_SUCCESS = COLOR_SUCCESS;
|
|
3523
3563
|
exports.COLOR_WARNING = COLOR_WARNING;
|
|
3524
|
-
exports.
|
|
3525
|
-
exports.
|
|
3526
|
-
exports.
|
|
3527
|
-
exports.
|
|
3564
|
+
exports.CheckboxComponent = CheckboxComponent;
|
|
3565
|
+
exports.CheckboxContentComponent = CheckboxContentComponent;
|
|
3566
|
+
exports.ChipComponent = ChipComponent;
|
|
3567
|
+
exports.DateFieldComponent = DateFieldComponent;
|
|
3568
|
+
exports.DateRangePickerComponent = DateRangePickerComponent;
|
|
3528
3569
|
exports.DialogWrapper = DialogWrapper;
|
|
3529
|
-
exports.
|
|
3570
|
+
exports.DropdownFieldComponent = DropdownFieldComponent;
|
|
3530
3571
|
exports.FONT_FAMILY = FONT_FAMILY;
|
|
3531
3572
|
exports.FONT_SIZE = FONT_SIZE;
|
|
3532
3573
|
exports.FONT_STYLE = FONT_STYLE;
|
|
3533
3574
|
exports.FONT_WEIGHT = FONT_WEIGHT;
|
|
3534
|
-
exports.
|
|
3575
|
+
exports.GridComponent = GridComponent;
|
|
3535
3576
|
exports.IconElement = IconElement;
|
|
3536
3577
|
exports.ImageElement = ImageElement;
|
|
3537
|
-
exports.
|
|
3578
|
+
exports.InputStepperComponent = InputStepperComponent;
|
|
3538
3579
|
exports.LINE_HEIGHT = LINE_HEIGHT;
|
|
3539
3580
|
exports.LinkElement = LinkElement;
|
|
3540
|
-
exports.
|
|
3581
|
+
exports.LinkFieldComponent = LinkFieldComponent;
|
|
3541
3582
|
exports.LinkInternalElement = LinkInternalElement;
|
|
3542
3583
|
exports.MAP_SIZE = MAP_SIZE;
|
|
3543
3584
|
exports.Modal = ModalComponent;
|
|
@@ -3545,21 +3586,21 @@ exports.ModalCard = ModalCardComponent;
|
|
|
3545
3586
|
exports.ModalDescription = ModalDescription;
|
|
3546
3587
|
exports.ModalIcon = ModalIcon;
|
|
3547
3588
|
exports.ModalTitle = ModalTitle;
|
|
3548
|
-
exports.
|
|
3549
|
-
exports.
|
|
3550
|
-
exports.
|
|
3589
|
+
exports.MoneyFieldComponent = MoneyFieldComponent;
|
|
3590
|
+
exports.PINComponent = PINComponent;
|
|
3591
|
+
exports.PhoneNumberFieldComponent = PhoneNumberFieldComponent;
|
|
3551
3592
|
exports.SIZE_EXTRA_LARGE = SIZE_EXTRA_LARGE;
|
|
3552
3593
|
exports.STYLE = style_constant;
|
|
3553
|
-
exports.
|
|
3554
|
-
exports.
|
|
3555
|
-
exports.
|
|
3594
|
+
exports.SearchDropdownComponent = SearchDropdownComponent;
|
|
3595
|
+
exports.SearchFieldComponent = SearchFieldComponent;
|
|
3596
|
+
exports.SwitchComponent = SwitchComponent;
|
|
3556
3597
|
exports.TYPOGRAPHY = TYPOGRAPHY;
|
|
3557
3598
|
exports.TYPOGRAPHY_STYLES = TYPOGRAPHY_STYLES;
|
|
3558
|
-
exports.
|
|
3559
|
-
exports.
|
|
3560
|
-
exports.
|
|
3599
|
+
exports.TabsComponent = TabsComponent;
|
|
3600
|
+
exports.TextAreaComponent = TextAreaComponent;
|
|
3601
|
+
exports.TextFieldComponent = TextFieldComponent;
|
|
3561
3602
|
exports.TypographyOneLine = TypographyOneLine;
|
|
3562
|
-
exports.
|
|
3603
|
+
exports.UploaderComponent = UploaderComponent;
|
|
3563
3604
|
exports.createTypography = createTypography;
|
|
3564
3605
|
exports.getBadgePosition = getBadgePosition;
|
|
3565
3606
|
//# sourceMappingURL=index.js.map
|