@verma-consulting/design-library 0.1.12 → 0.1.14
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 +2 -0
- package/dist/index.d.mts +22 -1
- package/dist/index.d.ts +22 -1
- package/dist/index.js +246 -106
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +209 -71
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -68,6 +68,8 @@ The library re-exports **all of `@mui/material`**, so you can use MUI components
|
|
|
68
68
|
| [StatusPill](./docs/StatusPill.md) | Chip showing user status (Pending, Active, etc.). |
|
|
69
69
|
| [IOSSwitch](./docs/IOSSwitch.md) | iOS-style switch (accepts MUI Switch props). |
|
|
70
70
|
| [Loader](./docs/Loader.md) | Full-screen loading overlay with spinner. |
|
|
71
|
+
| [SkeletonBar](./docs/SkeletonBar.md) | Horizontal shimmer bar for loading placeholders. |
|
|
72
|
+
| [EmptyState](./docs/EmptyState.md) | Centered empty-state view with optional icon and label. |
|
|
71
73
|
|
|
72
74
|
Detailed docs for each component are in **[docs/](./docs/README.md)**.
|
|
73
75
|
|
package/dist/index.d.mts
CHANGED
|
@@ -84,6 +84,27 @@ interface LoaderProps {
|
|
|
84
84
|
}
|
|
85
85
|
declare const Loader: React$1.FC<LoaderProps>;
|
|
86
86
|
|
|
87
|
+
interface SkeletonBarProps {
|
|
88
|
+
width?: string | number;
|
|
89
|
+
height?: number;
|
|
90
|
+
sx?: object;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Horizontal bar with sideways shimmer loading animation.
|
|
94
|
+
* Use in tables, cards, selects, and any loading placeholder.
|
|
95
|
+
*/
|
|
96
|
+
declare const SkeletonBar: React$1.FC<SkeletonBarProps>;
|
|
97
|
+
|
|
98
|
+
interface EmptyStateProps {
|
|
99
|
+
/** Label text to display (e.g. getContent("noDataDescription")) */
|
|
100
|
+
label?: string;
|
|
101
|
+
/** Vertical margin (theme spacing, default 8) */
|
|
102
|
+
m?: number;
|
|
103
|
+
/** Optional custom icon */
|
|
104
|
+
icon?: React$1.ReactNode;
|
|
105
|
+
}
|
|
106
|
+
declare const EmptyState: React$1.FC<EmptyStateProps>;
|
|
107
|
+
|
|
87
108
|
type PillProps = {
|
|
88
109
|
label?: string;
|
|
89
110
|
leftIcon?: string;
|
|
@@ -148,4 +169,4 @@ interface PhoneNumberFieldProps {
|
|
|
148
169
|
}
|
|
149
170
|
declare const PhoneNumberField: React$1.FC<PhoneNumberFieldProps>;
|
|
150
171
|
|
|
151
|
-
export { ClearableSelect, FormDialog, FormDrawer, FormPopover, FormSnackBar, IOSSwitch, ImageUploadAvatar, InputFileUpload, Loader, Logo, PhoneNumberField, Pill, SearchableSelect, StatusPill, TabPanel };
|
|
172
|
+
export { ClearableSelect, EmptyState, FormDialog, FormDrawer, FormPopover, FormSnackBar, IOSSwitch, ImageUploadAvatar, InputFileUpload, Loader, Logo, PhoneNumberField, Pill, SearchableSelect, SkeletonBar, StatusPill, TabPanel };
|
package/dist/index.d.ts
CHANGED
|
@@ -84,6 +84,27 @@ interface LoaderProps {
|
|
|
84
84
|
}
|
|
85
85
|
declare const Loader: React$1.FC<LoaderProps>;
|
|
86
86
|
|
|
87
|
+
interface SkeletonBarProps {
|
|
88
|
+
width?: string | number;
|
|
89
|
+
height?: number;
|
|
90
|
+
sx?: object;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Horizontal bar with sideways shimmer loading animation.
|
|
94
|
+
* Use in tables, cards, selects, and any loading placeholder.
|
|
95
|
+
*/
|
|
96
|
+
declare const SkeletonBar: React$1.FC<SkeletonBarProps>;
|
|
97
|
+
|
|
98
|
+
interface EmptyStateProps {
|
|
99
|
+
/** Label text to display (e.g. getContent("noDataDescription")) */
|
|
100
|
+
label?: string;
|
|
101
|
+
/** Vertical margin (theme spacing, default 8) */
|
|
102
|
+
m?: number;
|
|
103
|
+
/** Optional custom icon */
|
|
104
|
+
icon?: React$1.ReactNode;
|
|
105
|
+
}
|
|
106
|
+
declare const EmptyState: React$1.FC<EmptyStateProps>;
|
|
107
|
+
|
|
87
108
|
type PillProps = {
|
|
88
109
|
label?: string;
|
|
89
110
|
leftIcon?: string;
|
|
@@ -148,4 +169,4 @@ interface PhoneNumberFieldProps {
|
|
|
148
169
|
}
|
|
149
170
|
declare const PhoneNumberField: React$1.FC<PhoneNumberFieldProps>;
|
|
150
171
|
|
|
151
|
-
export { ClearableSelect, FormDialog, FormDrawer, FormPopover, FormSnackBar, IOSSwitch, ImageUploadAvatar, InputFileUpload, Loader, Logo, PhoneNumberField, Pill, SearchableSelect, StatusPill, TabPanel };
|
|
172
|
+
export { ClearableSelect, EmptyState, FormDialog, FormDrawer, FormPopover, FormSnackBar, IOSSwitch, ImageUploadAvatar, InputFileUpload, Loader, Logo, PhoneNumberField, Pill, SearchableSelect, SkeletonBar, StatusPill, TabPanel };
|