sevatech-library 1.0.6 → 1.0.11
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 +148 -75
- package/dist/components/avatar/avatar-group.component.d.ts +1 -1
- package/dist/components/avatar/avatar-label-group.component.d.ts +1 -1
- package/dist/components/avatar/avatar-profile.component.d.ts +1 -1
- package/dist/components/avatar/avatar-user.component.d.ts +1 -1
- package/dist/components/avatar/avatar.component.d.ts +1 -1
- package/dist/components/bread-crumbs/bread-crumbs.component.d.ts +1 -1
- package/dist/components/button/button-bar.component.d.ts +1 -1
- package/dist/components/button/button.component.d.ts +1 -1
- package/dist/components/checkbox/checkbox-content.component.d.ts +1 -1
- package/dist/components/checkbox/checkbox.component.d.ts +1 -1
- package/dist/components/chip/chip.component.d.ts +1 -1
- package/dist/components/date-field/date-field.component.d.ts.map +1 -1
- package/dist/components/date-field/date-range-picker.component.d.ts.map +1 -1
- package/dist/components/grid/grid.component.d.ts +1 -1
- package/dist/components/icon/icon.element.d.ts +3 -2
- package/dist/components/icon/icon.element.d.ts.map +1 -1
- package/dist/components/image/image.element.d.ts +2 -2
- package/dist/components/input-stepper/input-stepper-skeleton.d.ts +1 -1
- package/dist/components/input-stepper/input-stepper.component.d.ts +3 -3
- package/dist/components/input-stepper/input-stepper.component.d.ts.map +1 -1
- package/dist/components/link/link-internal.element.d.ts +1 -1
- package/dist/components/link/link.element.d.ts +1 -1
- package/dist/components/modal/modal-card.component.d.ts +3 -1
- package/dist/components/modal/modal-content.component.d.ts +1 -1
- package/dist/components/modal/modal.component.d.ts +1 -1
- package/dist/components/pin/pin.component.d.ts +1 -1
- package/dist/components/switch/switch-content.component.d.ts +1 -1
- package/dist/components/switch/switch.component.d.ts +1 -1
- package/dist/components/tab/tab.component.d.ts +1 -1
- package/dist/components/typography/typography-limit-one-line.component.d.ts +1 -1
- package/dist/components/uploader/uploader.component.d.ts +1 -1
- package/dist/index.cjs.js +19 -130
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +204 -33556
- package/dist/styles/stack.style.d.ts +53 -53
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +40 -13
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/sevatech-library.css +0 -1
- package/dist/types/components/avatar/avatar-group.component.d.ts +0 -20
- package/dist/types/components/avatar/avatar-group.component.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar-label-group.component.d.ts +0 -11
- package/dist/types/components/avatar/avatar-label-group.component.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar-profile.component.d.ts +0 -5
- package/dist/types/components/avatar/avatar-profile.component.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar-user.component.d.ts +0 -14
- package/dist/types/components/avatar/avatar-user.component.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar.argtypes.d.ts +0 -19
- package/dist/types/components/avatar/avatar.argtypes.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar.component.d.ts +0 -20
- package/dist/types/components/avatar/avatar.component.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar.constant.d.ts +0 -35
- package/dist/types/components/avatar/avatar.constant.d.ts.map +0 -1
- package/dist/types/components/avatar/avatar.interface.d.ts +0 -28
- package/dist/types/components/avatar/avatar.interface.d.ts.map +0 -1
- package/dist/types/components/avatar/index.d.ts +0 -8
- package/dist/types/components/avatar/index.d.ts.map +0 -1
- package/dist/types/components/bread-crumbs/bread-crumbs.argtypes.d.ts +0 -16
- package/dist/types/components/bread-crumbs/bread-crumbs.argtypes.d.ts.map +0 -1
- package/dist/types/components/bread-crumbs/bread-crumbs.component.d.ts +0 -21
- package/dist/types/components/bread-crumbs/bread-crumbs.component.d.ts.map +0 -1
- package/dist/types/components/bread-crumbs/index.d.ts +0 -3
- package/dist/types/components/bread-crumbs/index.d.ts.map +0 -1
- package/dist/types/components/button/button-bar.component.d.ts +0 -15
- package/dist/types/components/button/button-bar.component.d.ts.map +0 -1
- package/dist/types/components/button/button.argtypes.d.ts +0 -16
- package/dist/types/components/button/button.argtypes.d.ts.map +0 -1
- package/dist/types/components/button/button.component.d.ts +0 -37
- package/dist/types/components/button/button.component.d.ts.map +0 -1
- package/dist/types/components/button/button.constants.d.ts +0 -33
- package/dist/types/components/button/button.constants.d.ts.map +0 -1
- package/dist/types/components/button/index.d.ts +0 -4
- package/dist/types/components/button/index.d.ts.map +0 -1
- package/dist/types/components/checkbox/checkbox-content.argtypes.d.ts +0 -5
- package/dist/types/components/checkbox/checkbox-content.argtypes.d.ts.map +0 -1
- package/dist/types/components/checkbox/checkbox-content.component.d.ts +0 -19
- package/dist/types/components/checkbox/checkbox-content.component.d.ts.map +0 -1
- package/dist/types/components/checkbox/checkbox.argtypes.d.ts +0 -16
- package/dist/types/components/checkbox/checkbox.argtypes.d.ts.map +0 -1
- package/dist/types/components/checkbox/checkbox.component.d.ts +0 -23
- package/dist/types/components/checkbox/checkbox.component.d.ts.map +0 -1
- package/dist/types/components/checkbox/checkbox.constant.d.ts +0 -26
- package/dist/types/components/checkbox/checkbox.constant.d.ts.map +0 -1
- package/dist/types/components/checkbox/index.d.ts +0 -4
- package/dist/types/components/checkbox/index.d.ts.map +0 -1
- package/dist/types/components/chip/chip.argtypes.d.ts +0 -16
- package/dist/types/components/chip/chip.argtypes.d.ts.map +0 -1
- package/dist/types/components/chip/chip.component.d.ts +0 -16
- package/dist/types/components/chip/chip.component.d.ts.map +0 -1
- package/dist/types/components/chip/chip.constant.d.ts +0 -16
- package/dist/types/components/chip/chip.constant.d.ts.map +0 -1
- package/dist/types/components/chip/index.d.ts +0 -3
- package/dist/types/components/chip/index.d.ts.map +0 -1
- package/dist/types/components/date-field/date-field.argtypes.d.ts +0 -16
- package/dist/types/components/date-field/date-field.argtypes.d.ts.map +0 -1
- package/dist/types/components/date-field/date-field.component.d.ts +0 -23
- package/dist/types/components/date-field/date-field.component.d.ts.map +0 -1
- package/dist/types/components/date-field/date-range-picker.component.d.ts +0 -25
- package/dist/types/components/date-field/date-range-picker.component.d.ts.map +0 -1
- package/dist/types/components/date-field/index.d.ts +0 -3
- package/dist/types/components/date-field/index.d.ts.map +0 -1
- package/dist/types/components/dropdown-field/dropdown-field.argtypes.d.ts +0 -20
- package/dist/types/components/dropdown-field/dropdown-field.argtypes.d.ts.map +0 -1
- package/dist/types/components/dropdown-field/dropdown-field.component.d.ts +0 -28
- package/dist/types/components/dropdown-field/dropdown-field.component.d.ts.map +0 -1
- package/dist/types/components/dropdown-field/index.d.ts +0 -2
- package/dist/types/components/dropdown-field/index.d.ts.map +0 -1
- package/dist/types/components/grid/grid.argtypes.d.ts +0 -20
- package/dist/types/components/grid/grid.argtypes.d.ts.map +0 -1
- package/dist/types/components/grid/grid.component.d.ts +0 -11
- package/dist/types/components/grid/grid.component.d.ts.map +0 -1
- package/dist/types/components/grid/index.d.ts +0 -2
- package/dist/types/components/grid/index.d.ts.map +0 -1
- package/dist/types/components/icon/icon.argtypes.d.ts +0 -20
- package/dist/types/components/icon/icon.argtypes.d.ts.map +0 -1
- package/dist/types/components/icon/icon.element.d.ts +0 -12
- package/dist/types/components/icon/icon.element.d.ts.map +0 -1
- package/dist/types/components/icon/index.d.ts +0 -2
- package/dist/types/components/icon/index.d.ts.map +0 -1
- package/dist/types/components/image/image.argtypes.d.ts +0 -20
- package/dist/types/components/image/image.argtypes.d.ts.map +0 -1
- package/dist/types/components/image/image.element.d.ts +0 -18
- package/dist/types/components/image/image.element.d.ts.map +0 -1
- package/dist/types/components/image/image.enum.d.ts +0 -6
- package/dist/types/components/image/image.enum.d.ts.map +0 -1
- package/dist/types/components/image/index.d.ts +0 -3
- package/dist/types/components/image/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts +0 -26
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/components/input-stepper/index.d.ts +0 -4
- package/dist/types/components/input-stepper/index.d.ts.map +0 -1
- package/dist/types/components/input-stepper/input-stepper-skeleton.d.ts +0 -9
- package/dist/types/components/input-stepper/input-stepper-skeleton.d.ts.map +0 -1
- package/dist/types/components/input-stepper/input-stepper.argtypes.d.ts +0 -16
- package/dist/types/components/input-stepper/input-stepper.argtypes.d.ts.map +0 -1
- package/dist/types/components/input-stepper/input-stepper.component.d.ts +0 -38
- package/dist/types/components/input-stepper/input-stepper.component.d.ts.map +0 -1
- package/dist/types/components/input-stepper/input-stepper.constant.d.ts +0 -32
- package/dist/types/components/input-stepper/input-stepper.constant.d.ts.map +0 -1
- package/dist/types/components/link/index.d.ts +0 -3
- package/dist/types/components/link/index.d.ts.map +0 -1
- package/dist/types/components/link/link-internal.element.d.ts +0 -9
- package/dist/types/components/link/link-internal.element.d.ts.map +0 -1
- package/dist/types/components/link/link.element.d.ts +0 -8
- package/dist/types/components/link/link.element.d.ts.map +0 -1
- package/dist/types/components/link-field/index.d.ts +0 -2
- package/dist/types/components/link-field/index.d.ts.map +0 -1
- package/dist/types/components/link-field/link-field.argtypes.d.ts +0 -20
- package/dist/types/components/link-field/link-field.argtypes.d.ts.map +0 -1
- package/dist/types/components/link-field/link-field.component.d.ts +0 -23
- package/dist/types/components/link-field/link-field.component.d.ts.map +0 -1
- package/dist/types/components/modal/index.d.ts +0 -5
- package/dist/types/components/modal/index.d.ts.map +0 -1
- package/dist/types/components/modal/modal-card.component.d.ts +0 -15
- package/dist/types/components/modal/modal-card.component.d.ts.map +0 -1
- package/dist/types/components/modal/modal-content.component.d.ts +0 -16
- package/dist/types/components/modal/modal-content.component.d.ts.map +0 -1
- package/dist/types/components/modal/modal.argtypes.d.ts +0 -20
- package/dist/types/components/modal/modal.argtypes.d.ts.map +0 -1
- package/dist/types/components/modal/modal.component.d.ts +0 -11
- package/dist/types/components/modal/modal.component.d.ts.map +0 -1
- package/dist/types/components/modal/modal.interface.d.ts +0 -20
- package/dist/types/components/modal/modal.interface.d.ts.map +0 -1
- package/dist/types/components/money-field/index.d.ts +0 -2
- package/dist/types/components/money-field/index.d.ts.map +0 -1
- package/dist/types/components/money-field/money-field.argtypes.d.ts +0 -3
- package/dist/types/components/money-field/money-field.argtypes.d.ts.map +0 -1
- package/dist/types/components/money-field/money-field.component.d.ts +0 -24
- package/dist/types/components/money-field/money-field.component.d.ts.map +0 -1
- package/dist/types/components/phone-number-field/index.d.ts +0 -2
- package/dist/types/components/phone-number-field/index.d.ts.map +0 -1
- package/dist/types/components/phone-number-field/phone-number-field.argtypes.d.ts +0 -3
- package/dist/types/components/phone-number-field/phone-number-field.argtypes.d.ts.map +0 -1
- package/dist/types/components/phone-number-field/phone-number-field.component.d.ts +0 -28
- package/dist/types/components/phone-number-field/phone-number-field.component.d.ts.map +0 -1
- package/dist/types/components/pin/index.d.ts +0 -3
- package/dist/types/components/pin/index.d.ts.map +0 -1
- package/dist/types/components/pin/pin.argtypes.d.ts +0 -3
- package/dist/types/components/pin/pin.argtypes.d.ts.map +0 -1
- package/dist/types/components/pin/pin.component.d.ts +0 -23
- package/dist/types/components/pin/pin.component.d.ts.map +0 -1
- package/dist/types/components/pin/pin.constant.d.ts +0 -25
- package/dist/types/components/pin/pin.constant.d.ts.map +0 -1
- package/dist/types/components/search-dropdown/index.d.ts +0 -2
- package/dist/types/components/search-dropdown/index.d.ts.map +0 -1
- package/dist/types/components/search-dropdown/search-dropdown.argtypes.d.ts +0 -3
- package/dist/types/components/search-dropdown/search-dropdown.argtypes.d.ts.map +0 -1
- package/dist/types/components/search-dropdown/search-dropdown.component.d.ts +0 -30
- package/dist/types/components/search-dropdown/search-dropdown.component.d.ts.map +0 -1
- package/dist/types/components/search-field/index.d.ts +0 -2
- package/dist/types/components/search-field/index.d.ts.map +0 -1
- package/dist/types/components/search-field/search-field.argtypes.d.ts +0 -3
- package/dist/types/components/search-field/search-field.argtypes.d.ts.map +0 -1
- package/dist/types/components/search-field/search-field.component.d.ts +0 -14
- package/dist/types/components/search-field/search-field.component.d.ts.map +0 -1
- package/dist/types/components/switch/index.d.ts +0 -3
- package/dist/types/components/switch/index.d.ts.map +0 -1
- package/dist/types/components/switch/switch-content.component.d.ts +0 -14
- package/dist/types/components/switch/switch-content.component.d.ts.map +0 -1
- package/dist/types/components/switch/switch.argtypes.d.ts +0 -4
- package/dist/types/components/switch/switch.argtypes.d.ts.map +0 -1
- package/dist/types/components/switch/switch.component.d.ts +0 -12
- package/dist/types/components/switch/switch.component.d.ts.map +0 -1
- package/dist/types/components/tab/index.d.ts +0 -3
- package/dist/types/components/tab/index.d.ts.map +0 -1
- package/dist/types/components/tab/tab.argtypes.d.ts +0 -5
- package/dist/types/components/tab/tab.argtypes.d.ts.map +0 -1
- package/dist/types/components/tab/tab.component.d.ts +0 -23
- package/dist/types/components/tab/tab.component.d.ts.map +0 -1
- package/dist/types/components/tab/tab.constant.d.ts +0 -15
- package/dist/types/components/tab/tab.constant.d.ts.map +0 -1
- package/dist/types/components/text-area/index.d.ts +0 -2
- package/dist/types/components/text-area/index.d.ts.map +0 -1
- package/dist/types/components/text-area/text-area.argtypes.d.ts +0 -4
- package/dist/types/components/text-area/text-area.argtypes.d.ts.map +0 -1
- package/dist/types/components/text-area/text-area.component.d.ts +0 -22
- package/dist/types/components/text-area/text-area.component.d.ts.map +0 -1
- package/dist/types/components/text-field/index.d.ts +0 -2
- package/dist/types/components/text-field/index.d.ts.map +0 -1
- package/dist/types/components/text-field/text-field.argtypes.d.ts +0 -4
- package/dist/types/components/text-field/text-field.argtypes.d.ts.map +0 -1
- package/dist/types/components/text-field/text-field.component.d.ts +0 -21
- package/dist/types/components/text-field/text-field.component.d.ts.map +0 -1
- package/dist/types/components/typography/index.d.ts +0 -2
- package/dist/types/components/typography/index.d.ts.map +0 -1
- package/dist/types/components/typography/typography-limit-one-line.component.d.ts +0 -9
- package/dist/types/components/typography/typography-limit-one-line.component.d.ts.map +0 -1
- package/dist/types/components/uploader/index.d.ts +0 -3
- package/dist/types/components/uploader/index.d.ts.map +0 -1
- package/dist/types/components/uploader/uploader-item.component.d.ts +0 -18
- package/dist/types/components/uploader/uploader-item.component.d.ts.map +0 -1
- package/dist/types/components/uploader/uploader-item.styles.d.ts +0 -53
- package/dist/types/components/uploader/uploader-item.styles.d.ts.map +0 -1
- package/dist/types/components/uploader/uploader.argtypes.d.ts +0 -6
- package/dist/types/components/uploader/uploader.argtypes.d.ts.map +0 -1
- package/dist/types/components/uploader/uploader.component.d.ts +0 -48
- package/dist/types/components/uploader/uploader.component.d.ts.map +0 -1
- package/dist/types/constants/apps.data.d.ts +0 -7
- package/dist/types/constants/apps.data.d.ts.map +0 -1
- package/dist/types/constants/color.constant.d.ts +0 -105
- package/dist/types/constants/color.constant.d.ts.map +0 -1
- package/dist/types/constants/icons-mui.constant.d.ts +0 -2
- package/dist/types/constants/icons-mui.constant.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -6
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/constants/style.constant.d.ts +0 -58
- package/dist/types/constants/style.constant.d.ts.map +0 -1
- package/dist/types/constants/typography.constant.d.ts +0 -710
- package/dist/types/constants/typography.constant.d.ts.map +0 -1
- package/dist/types/styles/index.d.ts +0 -2
- package/dist/types/styles/index.d.ts.map +0 -1
- package/dist/types/styles/stack.style.d.ts +0 -54
- package/dist/types/styles/stack.style.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -1
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -2
- package/dist/types/utils/index.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -1,23 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
## SevaTech Library
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/js/sevatech-library)
|
|
4
4
|
[](https://opensource.org/licenses/MIT)
|
|
5
5
|
[](https://www.typescriptlang.org/)
|
|
6
|
-
[](https://golden-lotus-core-web.github.io/sevatech-library)
|
|
7
7
|
|
|
8
|
-
📖 **[View Storybook Documentation](https://
|
|
8
|
+
📖 **[View Storybook Documentation](https://golden-lotus-core-web.github.io/sevatech-library)**
|
|
9
9
|
|
|
10
10
|
A comprehensive, production-ready React component library built with TypeScript, Material-UI, and modern development practices. Designed for scalable web applications with a focus on developer experience, accessibility, and performance.
|
|
11
11
|
|
|
12
|
+
---
|
|
13
|
+
|
|
12
14
|
## ✨ Features
|
|
13
15
|
|
|
14
|
-
- **TypeScript First**: Full TypeScript support with comprehensive type definitions
|
|
15
|
-
- **Material-UI Integration**: Built on Material-UI v5 with enhanced theming capabilities
|
|
16
|
-
- **Accessible**: WCAG 2.1 compliant components with keyboard navigation and screen reader support
|
|
17
|
-
- **Responsive**: Mobile-first design with responsive breakpoints
|
|
18
|
-
- **Customizable**: Extensive theming and styling options via Material-UI
|
|
19
|
-
- **Tree-Shakable**: Optimized bundle size with ES modules and Rollup
|
|
20
|
-
- **Well-Documented**: Comprehensive documentation with live examples
|
|
16
|
+
- **TypeScript First**: Full TypeScript support with comprehensive type definitions.
|
|
17
|
+
- **Material-UI Integration**: Built on Material-UI v5 with enhanced theming capabilities.
|
|
18
|
+
- **Accessible**: WCAG 2.1 compliant components with keyboard navigation and screen reader support.
|
|
19
|
+
- **Responsive**: Mobile-first design with responsive breakpoints.
|
|
20
|
+
- **Customizable**: Extensive theming and styling options via Material-UI `sx` prop.
|
|
21
|
+
- **Tree-Shakable**: Optimized bundle size with ES modules and Rollup.
|
|
22
|
+
- **Well-Documented**: Comprehensive documentation with live examples.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 📚 Table of Contents
|
|
27
|
+
|
|
28
|
+
- **Installation**
|
|
29
|
+
- **Quick Start**
|
|
30
|
+
- **Components**
|
|
31
|
+
- **Form Components**
|
|
32
|
+
- **Layout Components**
|
|
33
|
+
- **Data Display Components**
|
|
34
|
+
- **Navigation Components**
|
|
35
|
+
- **Utility Components**
|
|
36
|
+
- **Development**
|
|
37
|
+
- **Theming**
|
|
38
|
+
- **API Reference**
|
|
39
|
+
- **Contributing**
|
|
40
|
+
- **License**
|
|
41
|
+
- **Support**
|
|
21
42
|
|
|
22
43
|
## 📦 Installation
|
|
23
44
|
|
|
@@ -45,6 +66,8 @@ Ensure you have the following peer dependencies installed:
|
|
|
45
66
|
}
|
|
46
67
|
```
|
|
47
68
|
|
|
69
|
+
---
|
|
70
|
+
|
|
48
71
|
## 🚀 Quick Start
|
|
49
72
|
|
|
50
73
|
```tsx
|
|
@@ -58,21 +81,21 @@ function App() {
|
|
|
58
81
|
return (
|
|
59
82
|
<div style={{ padding: '20px' }}>
|
|
60
83
|
<TextFieldComponent
|
|
61
|
-
label=
|
|
84
|
+
label='Email Address'
|
|
62
85
|
value={email}
|
|
63
|
-
onChange={
|
|
64
|
-
placeholder=
|
|
86
|
+
onChange={e => setEmail(e.target.value)}
|
|
87
|
+
placeholder='Enter your email'
|
|
65
88
|
fullWidth
|
|
66
89
|
/>
|
|
67
90
|
|
|
68
|
-
<ButtonComponent variant=
|
|
91
|
+
<ButtonComponent variant='solid' color='brand' onClick={() => setIsOpen(true)} sx={{ marginTop: 2 }}>
|
|
69
92
|
Open Modal
|
|
70
93
|
</ButtonComponent>
|
|
71
94
|
|
|
72
95
|
<ModalComponent
|
|
73
96
|
open={isOpen}
|
|
74
97
|
onClose={() => setIsOpen(false)}
|
|
75
|
-
title=
|
|
98
|
+
title='Welcome to SevaTech Library'
|
|
76
99
|
buttonRight={{
|
|
77
100
|
children: 'Get Started',
|
|
78
101
|
onClick: () => setIsOpen(false),
|
|
@@ -87,6 +110,8 @@ function App() {
|
|
|
87
110
|
export default App;
|
|
88
111
|
```
|
|
89
112
|
|
|
113
|
+
---
|
|
114
|
+
|
|
90
115
|
## 📚 Components
|
|
91
116
|
|
|
92
117
|
### Form Components
|
|
@@ -114,10 +139,10 @@ import { ButtonComponent } from 'sevatech-library';
|
|
|
114
139
|
- `variant`: `'solid' | 'outline' | 'ghost' | 'text'`
|
|
115
140
|
- `color`: `'brand' | 'neutral' | 'success' | 'error' | 'warning' | 'info'`
|
|
116
141
|
- `size`: `'sm' | 'md' | 'lg'`
|
|
117
|
-
- `prefixIcon`: Icon name for left side
|
|
118
|
-
- `suffixIcon`: Icon name for right side
|
|
119
|
-
- `loading`: Boolean for loading state
|
|
120
|
-
- `disabled`: Boolean to disable interaction
|
|
142
|
+
- `prefixIcon`: Icon name for left side.
|
|
143
|
+
- `suffixIcon`: Icon name for right side.
|
|
144
|
+
- `loading`: Boolean for loading state.
|
|
145
|
+
- `disabled`: Boolean to disable interaction.
|
|
121
146
|
|
|
122
147
|
#### Text Field Component
|
|
123
148
|
|
|
@@ -129,30 +154,32 @@ import { TextFieldComponent } from 'sevatech-library';
|
|
|
129
154
|
const [value, setValue] = useState('');
|
|
130
155
|
|
|
131
156
|
<TextFieldComponent
|
|
132
|
-
label=
|
|
133
|
-
placeholder=
|
|
157
|
+
label='Email Address'
|
|
158
|
+
placeholder='Enter your email'
|
|
134
159
|
value={value}
|
|
135
|
-
onChange={
|
|
160
|
+
onChange={e => setValue(e.target.value)}
|
|
136
161
|
error={!isValidEmail(value)}
|
|
137
|
-
errorMessage=
|
|
162
|
+
errorMessage='Please enter a valid email address'
|
|
138
163
|
success={isValidEmail(value) && value.length > 0}
|
|
139
|
-
successMessage=
|
|
164
|
+
successMessage='Email address is valid'
|
|
140
165
|
fullWidth
|
|
141
166
|
/>;
|
|
142
167
|
```
|
|
143
168
|
|
|
144
169
|
**Props:**
|
|
145
170
|
|
|
146
|
-
- `label`: Input label text
|
|
147
|
-
- `placeholder`: Placeholder text
|
|
148
|
-
- `value`: Controlled value
|
|
149
|
-
- `onChange`: Change handler
|
|
150
|
-
- `error`: Boolean for error state
|
|
151
|
-
- `errorMessage`: Error message text
|
|
152
|
-
- `success`: Boolean for success state
|
|
153
|
-
- `successMessage`: Success message text
|
|
154
|
-
- `disabled`: Boolean to disable input
|
|
155
|
-
- `fullWidth`: Boolean for full width
|
|
171
|
+
- `label`: Input label text.
|
|
172
|
+
- `placeholder`: Placeholder text.
|
|
173
|
+
- `value`: Controlled value.
|
|
174
|
+
- `onChange`: Change handler.
|
|
175
|
+
- `error`: Boolean for error state.
|
|
176
|
+
- `errorMessage`: Error message text.
|
|
177
|
+
- `success`: Boolean for success state.
|
|
178
|
+
- `successMessage`: Success message text.
|
|
179
|
+
- `disabled`: Boolean to disable input.
|
|
180
|
+
- `fullWidth`: Boolean for full width.
|
|
181
|
+
|
|
182
|
+
---
|
|
156
183
|
|
|
157
184
|
#### Text Area Component
|
|
158
185
|
|
|
@@ -164,15 +191,17 @@ import { TextAreaComponent } from 'sevatech-library';
|
|
|
164
191
|
const [description, setDescription] = useState('');
|
|
165
192
|
|
|
166
193
|
<TextAreaComponent
|
|
167
|
-
label=
|
|
168
|
-
placeholder=
|
|
194
|
+
label='Description'
|
|
195
|
+
placeholder='Enter detailed description...'
|
|
169
196
|
value={description}
|
|
170
|
-
onChange={
|
|
197
|
+
onChange={e => setDescription(e.target.value)}
|
|
171
198
|
rows={4}
|
|
172
199
|
fullWidth
|
|
173
200
|
/>;
|
|
174
201
|
```
|
|
175
202
|
|
|
203
|
+
---
|
|
204
|
+
|
|
176
205
|
#### Checkbox Component
|
|
177
206
|
|
|
178
207
|
Custom-styled checkbox with label support.
|
|
@@ -183,12 +212,14 @@ import { CheckboxComponent } from 'sevatech-library';
|
|
|
183
212
|
const [agreed, setAgreed] = useState(false);
|
|
184
213
|
|
|
185
214
|
<CheckboxComponent
|
|
186
|
-
label=
|
|
215
|
+
label='I agree to the Terms and Conditions'
|
|
187
216
|
checked={agreed}
|
|
188
|
-
onChange={
|
|
217
|
+
onChange={e => setAgreed(e.target.checked)}
|
|
189
218
|
/>;
|
|
190
219
|
```
|
|
191
220
|
|
|
221
|
+
---
|
|
222
|
+
|
|
192
223
|
#### Switch Component
|
|
193
224
|
|
|
194
225
|
Toggle switch with smooth animations.
|
|
@@ -199,12 +230,14 @@ import { SwitchComponent } from 'sevatech-library';
|
|
|
199
230
|
const [notifications, setNotifications] = useState(true);
|
|
200
231
|
|
|
201
232
|
<SwitchComponent
|
|
202
|
-
label=
|
|
233
|
+
label='Enable notifications'
|
|
203
234
|
checked={notifications}
|
|
204
|
-
onChange={
|
|
235
|
+
onChange={e => setNotifications(e.target.checked)}
|
|
205
236
|
/>;
|
|
206
237
|
```
|
|
207
238
|
|
|
239
|
+
---
|
|
240
|
+
|
|
208
241
|
#### Dropdown Field Component
|
|
209
242
|
|
|
210
243
|
Select dropdown with search and multi-select capabilities.
|
|
@@ -219,7 +252,7 @@ const options = [
|
|
|
219
252
|
];
|
|
220
253
|
|
|
221
254
|
<DropdownFieldComponent
|
|
222
|
-
label=
|
|
255
|
+
label='Select Option'
|
|
223
256
|
options={options}
|
|
224
257
|
value={selectedValue}
|
|
225
258
|
onChange={setSelectedValue}
|
|
@@ -227,6 +260,8 @@ const options = [
|
|
|
227
260
|
/>;
|
|
228
261
|
```
|
|
229
262
|
|
|
263
|
+
---
|
|
264
|
+
|
|
230
265
|
#### Search Field Component
|
|
231
266
|
|
|
232
267
|
Debounced search input with clear functionality.
|
|
@@ -237,14 +272,16 @@ import { SearchFieldComponent } from 'sevatech-library';
|
|
|
237
272
|
const [searchTerm, setSearchTerm] = useState('');
|
|
238
273
|
|
|
239
274
|
<SearchFieldComponent
|
|
240
|
-
placeholder=
|
|
275
|
+
placeholder='Search...'
|
|
241
276
|
value={searchTerm}
|
|
242
|
-
onChange={
|
|
243
|
-
onSearch={
|
|
277
|
+
onChange={e => setSearchTerm(e.target.value)}
|
|
278
|
+
onSearch={term => performSearch(term)}
|
|
244
279
|
debounceMs={300}
|
|
245
280
|
/>;
|
|
246
281
|
```
|
|
247
282
|
|
|
283
|
+
---
|
|
284
|
+
|
|
248
285
|
#### Date Field Component
|
|
249
286
|
|
|
250
287
|
Date picker with customizable format and locale support.
|
|
@@ -256,13 +293,15 @@ import dayjs from 'dayjs';
|
|
|
256
293
|
const [selectedDate, setSelectedDate] = useState(dayjs());
|
|
257
294
|
|
|
258
295
|
<DateFieldComponent
|
|
259
|
-
label=
|
|
296
|
+
label='Select Date'
|
|
260
297
|
value={selectedDate}
|
|
261
|
-
onChange={
|
|
262
|
-
format=
|
|
298
|
+
onChange={date => setSelectedDate(date)}
|
|
299
|
+
format='DD/MM/YYYY'
|
|
263
300
|
/>;
|
|
264
301
|
```
|
|
265
302
|
|
|
303
|
+
---
|
|
304
|
+
|
|
266
305
|
#### Money Field Component
|
|
267
306
|
|
|
268
307
|
Currency input with automatic formatting.
|
|
@@ -272,9 +311,11 @@ import { MoneyFieldComponent } from 'sevatech-library';
|
|
|
272
311
|
|
|
273
312
|
const [price, setPrice] = useState('');
|
|
274
313
|
|
|
275
|
-
<MoneyFieldComponent label=
|
|
314
|
+
<MoneyFieldComponent label='Price' value={price} onChange={setPrice} currency='USD' locale='en-US' />;
|
|
276
315
|
```
|
|
277
316
|
|
|
317
|
+
---
|
|
318
|
+
|
|
278
319
|
### Layout Components
|
|
279
320
|
|
|
280
321
|
#### Modal Component
|
|
@@ -287,7 +328,7 @@ import { ModalComponent } from 'sevatech-library';
|
|
|
287
328
|
<ModalComponent
|
|
288
329
|
open={isOpen}
|
|
289
330
|
onClose={() => setIsOpen(false)}
|
|
290
|
-
title=
|
|
331
|
+
title='Confirm Action'
|
|
291
332
|
buttonLeft={{ children: 'Cancel' }}
|
|
292
333
|
buttonRight={{
|
|
293
334
|
children: 'Confirm',
|
|
@@ -299,6 +340,8 @@ import { ModalComponent } from 'sevatech-library';
|
|
|
299
340
|
</ModalComponent>;
|
|
300
341
|
```
|
|
301
342
|
|
|
343
|
+
---
|
|
344
|
+
|
|
302
345
|
#### Tabs Component
|
|
303
346
|
|
|
304
347
|
Animated tabbed interface with icon support.
|
|
@@ -315,6 +358,8 @@ const tabs = [
|
|
|
315
358
|
<TabsComponent tabs={tabs} idSelect={activeTab} onChange={setActiveTab} />;
|
|
316
359
|
```
|
|
317
360
|
|
|
361
|
+
---
|
|
362
|
+
|
|
318
363
|
#### Grid Component
|
|
319
364
|
|
|
320
365
|
Responsive grid system based on Material-UI's Grid.
|
|
@@ -335,6 +380,8 @@ import { Grid } from 'sevatech-library';
|
|
|
335
380
|
</Grid>;
|
|
336
381
|
```
|
|
337
382
|
|
|
383
|
+
---
|
|
384
|
+
|
|
338
385
|
### Data Display Components
|
|
339
386
|
|
|
340
387
|
#### Avatar Component
|
|
@@ -357,6 +404,8 @@ import { AvatarComponent } from 'sevatech-library';
|
|
|
357
404
|
/>
|
|
358
405
|
```
|
|
359
406
|
|
|
407
|
+
---
|
|
408
|
+
|
|
360
409
|
#### Avatar Group Component
|
|
361
410
|
|
|
362
411
|
Grouped avatars with overflow indicators.
|
|
@@ -373,6 +422,8 @@ const avatars = [
|
|
|
373
422
|
<AvatarGroupComponent avatars={avatars} maxDisplay={3} />;
|
|
374
423
|
```
|
|
375
424
|
|
|
425
|
+
---
|
|
426
|
+
|
|
376
427
|
#### Chip Component
|
|
377
428
|
|
|
378
429
|
Compact information display with optional delete action.
|
|
@@ -388,6 +439,8 @@ import { ChipComponent } from 'sevatech-library';
|
|
|
388
439
|
/>
|
|
389
440
|
```
|
|
390
441
|
|
|
442
|
+
---
|
|
443
|
+
|
|
391
444
|
#### Typography Component
|
|
392
445
|
|
|
393
446
|
Text styling with semantic variants.
|
|
@@ -404,9 +457,11 @@ import { TypographyComponent } from 'sevatech-library';
|
|
|
404
457
|
</TypographyComponent>
|
|
405
458
|
```
|
|
406
459
|
|
|
460
|
+
---
|
|
461
|
+
|
|
407
462
|
### Navigation Components
|
|
408
463
|
|
|
409
|
-
####
|
|
464
|
+
#### Breadcrumbs Component
|
|
410
465
|
|
|
411
466
|
Breadcrumb navigation with customizable separators.
|
|
412
467
|
|
|
@@ -422,6 +477,8 @@ const breadcrumbs = [
|
|
|
422
477
|
<BreadCumbsComponent items={breadcrumbs} />;
|
|
423
478
|
```
|
|
424
479
|
|
|
480
|
+
---
|
|
481
|
+
|
|
425
482
|
#### Link Element
|
|
426
483
|
|
|
427
484
|
Styled navigation link with external link support.
|
|
@@ -435,6 +492,8 @@ import { LinkElement } from 'sevatech-library';
|
|
|
435
492
|
</LinkElement>
|
|
436
493
|
```
|
|
437
494
|
|
|
495
|
+
---
|
|
496
|
+
|
|
438
497
|
### Utility Components
|
|
439
498
|
|
|
440
499
|
#### Icon Element
|
|
@@ -449,6 +508,8 @@ import { IconElement } from 'sevatech-library';
|
|
|
449
508
|
<IconElement icon="favorite" sx={{ color: 'red' }} />
|
|
450
509
|
```
|
|
451
510
|
|
|
511
|
+
---
|
|
512
|
+
|
|
452
513
|
#### Image Element
|
|
453
514
|
|
|
454
515
|
Optimized image component with lazy loading and fallbacks.
|
|
@@ -457,12 +518,14 @@ Optimized image component with lazy loading and fallbacks.
|
|
|
457
518
|
import { ImageElement } from 'sevatech-library';
|
|
458
519
|
|
|
459
520
|
<ImageElement
|
|
460
|
-
url=
|
|
461
|
-
alt=
|
|
521
|
+
url='https://example.com/image.jpg'
|
|
522
|
+
alt='Example image'
|
|
462
523
|
sx={{ borderRadius: 2, width: 200, height: 150 }}
|
|
463
524
|
/>;
|
|
464
525
|
```
|
|
465
526
|
|
|
527
|
+
---
|
|
528
|
+
|
|
466
529
|
#### Uploader Component
|
|
467
530
|
|
|
468
531
|
File upload with drag-and-drop and progress tracking.
|
|
@@ -471,14 +534,16 @@ File upload with drag-and-drop and progress tracking.
|
|
|
471
534
|
import { UploaderComponent } from 'sevatech-library';
|
|
472
535
|
|
|
473
536
|
<UploaderComponent
|
|
474
|
-
onFilesSelected={
|
|
537
|
+
onFilesSelected={files => {
|
|
475
538
|
console.log('Selected files:', files);
|
|
476
539
|
}}
|
|
477
|
-
accept=
|
|
540
|
+
accept='.jpg,.png,.pdf'
|
|
478
541
|
maxSize={5 * 1024 * 1024} // 5MB
|
|
479
542
|
/>;
|
|
480
543
|
```
|
|
481
544
|
|
|
545
|
+
---
|
|
546
|
+
|
|
482
547
|
## 🛠️ Development
|
|
483
548
|
|
|
484
549
|
### Prerequisites
|
|
@@ -491,7 +556,7 @@ import { UploaderComponent } from 'sevatech-library';
|
|
|
491
556
|
1. Clone the repository:
|
|
492
557
|
|
|
493
558
|
```bash
|
|
494
|
-
git clone https://github.com/
|
|
559
|
+
git clone https://github.com/golden-lotus-core-web/sevatech-library.git
|
|
495
560
|
cd sevatech-library
|
|
496
561
|
```
|
|
497
562
|
|
|
@@ -504,7 +569,7 @@ npm install
|
|
|
504
569
|
### Available Scripts
|
|
505
570
|
|
|
506
571
|
```bash
|
|
507
|
-
# Start development server (Vite
|
|
572
|
+
# Start development server (Vite with fast HMR)
|
|
508
573
|
npm run dev
|
|
509
574
|
|
|
510
575
|
# Build for production (Vite)
|
|
@@ -529,13 +594,15 @@ npm run types
|
|
|
529
594
|
|
|
530
595
|
### Component Development Guidelines
|
|
531
596
|
|
|
532
|
-
1. **TypeScript**: All components must be written in TypeScript with proper type definitions
|
|
533
|
-
2. **Accessibility**: Follow WCAG 2.1 guidelines and use semantic HTML
|
|
534
|
-
3. **Responsive Design**: Ensure components work across all device sizes
|
|
535
|
-
4. **Material-UI Integration**: Leverage Material-UI's theming and styling system
|
|
536
|
-
5. **Performance**: Optimize for bundle size and runtime performance
|
|
537
|
-
6. **Testing**: Include unit tests for all components
|
|
538
|
-
7. **Documentation**: Maintain up-to-date documentation and examples
|
|
597
|
+
1. **TypeScript**: All components must be written in TypeScript with proper type definitions.
|
|
598
|
+
2. **Accessibility**: Follow WCAG 2.1 guidelines and use semantic HTML.
|
|
599
|
+
3. **Responsive Design**: Ensure components work across all device sizes.
|
|
600
|
+
4. **Material-UI Integration**: Leverage Material-UI's theming and styling system.
|
|
601
|
+
5. **Performance**: Optimize for bundle size and runtime performance.
|
|
602
|
+
6. **Testing**: Include unit tests for all components.
|
|
603
|
+
7. **Documentation**: Maintain up-to-date documentation and examples.
|
|
604
|
+
|
|
605
|
+
---
|
|
539
606
|
|
|
540
607
|
## 🎨 Theming
|
|
541
608
|
|
|
@@ -573,7 +640,7 @@ const theme = createTheme({
|
|
|
573
640
|
function App() {
|
|
574
641
|
return (
|
|
575
642
|
<ThemeProvider theme={theme}>
|
|
576
|
-
<ButtonComponent variant=
|
|
643
|
+
<ButtonComponent variant='solid' color='brand'>
|
|
577
644
|
Themed Button
|
|
578
645
|
</ButtonComponent>
|
|
579
646
|
</ThemeProvider>
|
|
@@ -598,6 +665,8 @@ const theme = createTheme({
|
|
|
598
665
|
});
|
|
599
666
|
```
|
|
600
667
|
|
|
668
|
+
---
|
|
669
|
+
|
|
601
670
|
## 📖 API Reference
|
|
602
671
|
|
|
603
672
|
### Common Props
|
|
@@ -614,7 +683,9 @@ All components support these standard props:
|
|
|
614
683
|
|
|
615
684
|
### Component-Specific Props
|
|
616
685
|
|
|
617
|
-
Refer to individual component documentation above for detailed prop tables.
|
|
686
|
+
Refer to individual component documentation above (and Storybook) for detailed prop tables.
|
|
687
|
+
|
|
688
|
+
---
|
|
618
689
|
|
|
619
690
|
## 🤝 Contributing
|
|
620
691
|
|
|
@@ -630,11 +701,13 @@ We welcome contributions! Please follow these steps:
|
|
|
630
701
|
|
|
631
702
|
### Development Workflow
|
|
632
703
|
|
|
633
|
-
- Follow the existing code style and conventions
|
|
634
|
-
- Write comprehensive tests for new features
|
|
635
|
-
- Update documentation for any API changes
|
|
636
|
-
- Ensure TypeScript compilation passes
|
|
637
|
-
- Test components across different browsers and devices
|
|
704
|
+
- Follow the existing code style and conventions.
|
|
705
|
+
- Write comprehensive tests for new features.
|
|
706
|
+
- Update documentation for any API changes.
|
|
707
|
+
- Ensure TypeScript compilation passes.
|
|
708
|
+
- Test components across different browsers and devices.
|
|
709
|
+
|
|
710
|
+
---
|
|
638
711
|
|
|
639
712
|
## 📄 License
|
|
640
713
|
|
|
@@ -642,10 +715,10 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
642
715
|
|
|
643
716
|
## 📞 Support
|
|
644
717
|
|
|
645
|
-
-
|
|
646
|
-
-
|
|
647
|
-
-
|
|
718
|
+
- **Email**: _Coming soon_
|
|
719
|
+
- **Issues**: [GitHub Issues](https://github.com/golden-lotus-core-web/sevatech-library/issues)
|
|
720
|
+
- **Documentation**: [Full Documentation](https://github.com/golden-lotus-core-web/sevatech-library)
|
|
648
721
|
|
|
649
722
|
---
|
|
650
723
|
|
|
651
|
-
Built with ❤️ by the SevaTech team
|
|
724
|
+
Built with ❤️ by the **SevaTech** team
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { ReactNode, CSSProperties } from 'react';
|
|
2
2
|
import { ButtonProps as MuiButtonProps } from '@mui/material';
|
|
3
3
|
import { Variant, Color, Size } from './button.constants';
|
|
4
4
|
export interface ButtonProps extends Omit<MuiButtonProps, 'variant' | 'color' | 'size' | 'prefix' | 'suffix'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SxProps, Theme } from '@mui/material';
|
|
2
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { CheckboxIconType, CheckboxShape, CheckboxSize, CheckboxVariant } from './checkbox.component';
|
|
4
4
|
export interface CheckboxContentProps {
|
|
5
5
|
checked?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-field.component.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/date-field.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,OAAO,EAAE,KAAK,EAAc,MAAM,eAAe,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAIrC,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,kBAAkB,GAAI,2KAiBzB,cAAc,
|
|
1
|
+
{"version":3,"file":"date-field.component.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/date-field.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,OAAO,EAAE,KAAK,EAAc,MAAM,eAAe,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAIrC,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,kBAAkB,GAAI,2KAiBzB,cAAc,4CAsGhB,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range-picker.component.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/date-range-picker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,OAAO,EAAE,KAAK,EAAc,MAAM,eAAe,CAAC;AAIhE,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAC;AAGpD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,wBAAwB,GAAI,2LAmB/B,oBAAoB,
|
|
1
|
+
{"version":3,"file":"date-range-picker.component.d.ts","sourceRoot":"","sources":["../../../src/components/date-field/date-range-picker.component.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,OAAO,EAAE,KAAK,EAAc,MAAM,eAAe,CAAC;AAIhE,OAAc,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,SAAS,EAAoB,MAAM,OAAO,CAAC;AAGpD,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC9B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,QAAA,MAAM,wBAAwB,GAAI,2LAmB/B,oBAAoB,4CA+KtB,CAAC;AAEF,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import '@fontsource/material-symbols-rounded';
|
|
2
|
+
import { type IconProps, type SxProps, type Theme } from '@mui/material';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface IconElementProps extends IconProps {
|
|
4
5
|
icon?: any;
|
|
5
6
|
size?: 'large' | 'small' | 'medium';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.element.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.element.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon.element.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.element.tsx"],"names":[],"mappings":"AAAA,OAAO,sCAAsC,CAAC;AAE9C,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,eAAe,CAAC;AACzF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAyClD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React, { CSSProperties, MouseEventHandler } from 'react';
|
|
2
2
|
import { ImageSizeType } from './image.enum';
|
|
3
|
-
import { SizeProps } from '
|
|
3
|
+
import { SizeProps } from '@/constants';
|
|
4
4
|
export interface ImageElementProps {
|
|
5
5
|
url: string;
|
|
6
6
|
onClick?: MouseEventHandler<HTMLImageElement>;
|