@kashifd/jwero-components 0.7.35 → 0.7.37
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/dist/index.es.js +165 -169
- package/dist/index.umd.js +67 -68
- package/dist/types/src/App.d.ts +2 -0
- package/dist/types/src/components/JweroAccordian.d.ts +7 -0
- package/dist/types/src/components/JweroBreadcrumbs.d.ts +13 -0
- package/dist/types/src/components/JweroChip.d.ts +25 -0
- package/dist/types/src/components/JweroDialogHeader.d.ts +27 -0
- package/dist/types/src/components/JweroPicker.d.ts +4 -0
- package/dist/types/src/components/JweroPopper.d.ts +13 -0
- package/dist/types/src/components/JweroRadio.d.ts +9 -0
- package/dist/types/src/components/JweroSidebar.d.ts +22 -0
- package/dist/types/src/components/JweroToggleButton.d.ts +8 -0
- package/dist/types/src/components/JweroTypography.d.ts +70 -0
- package/dist/types/src/components/jwero_actions_button/index.d.ts +21 -0
- package/dist/types/src/components/jwero_alerts/index.d.ts +14 -0
- package/dist/types/src/components/jwero_avatars/index.d.ts +21 -0
- package/dist/types/src/components/jwero_badger/index.d.ts +9 -0
- package/dist/types/src/components/jwero_button_menu/components/JweroMenu.d.ts +33 -0
- package/dist/types/src/components/jwero_button_menu/index.d.ts +22 -0
- package/dist/types/src/components/jwero_charts/components/AreaChart.d.ts +8 -0
- package/dist/types/src/components/jwero_charts/components/BarChart.d.ts +9 -0
- package/dist/types/src/components/jwero_charts/components/Funnel.d.ts +3 -0
- package/dist/types/src/components/jwero_charts/components/FunnelChart.d.ts +8 -0
- package/dist/types/src/components/jwero_charts/components/LineChart.d.ts +8 -0
- package/dist/types/src/components/jwero_charts/components/MultipleLineChart.d.ts +10 -0
- package/dist/types/src/components/jwero_charts/components/NumericChart.d.ts +8 -0
- package/dist/types/src/components/jwero_charts/components/PieChart.d.ts +7 -0
- package/dist/types/src/components/jwero_charts/components/RacingBarChart.d.ts +8 -0
- package/dist/types/src/components/jwero_charts/components/RadialChart.d.ts +13 -0
- package/dist/types/src/components/jwero_charts/index.d.ts +25 -0
- package/dist/types/src/components/jwero_checkbox/index.d.ts +9 -0
- package/dist/types/src/components/jwero_confirmation_dialog/index.d.ts +43 -0
- package/dist/types/src/components/jwero_custom_field/index.d.ts +29 -0
- package/dist/types/src/components/jwero_data_card/components/CardAreaGraph.d.ts +7 -0
- package/dist/types/src/components/jwero_data_card/components/NumberAnimation.d.ts +8 -0
- package/dist/types/src/components/jwero_data_card/index.d.ts +53 -0
- package/dist/types/src/components/jwero_data_table/components/JweroPagination.d.ts +7 -0
- package/dist/types/src/components/jwero_data_table/components/JweroTable.d.ts +20 -0
- package/dist/types/src/components/jwero_data_table/index.d.ts +14 -0
- package/dist/types/src/components/jwero_date_filter/components/DateFiltersMenu.d.ts +8 -0
- package/dist/types/src/components/jwero_date_filter/helper/dateFilterList.d.ts +5 -0
- package/dist/types/src/components/jwero_date_filter/index.d.ts +10 -0
- package/dist/types/src/components/jwero_dialog_footer/index.d.ts +16 -0
- package/dist/types/src/components/jwero_drawer/index.d.ts +44 -0
- package/dist/types/src/components/jwero_empty_state/index.d.ts +25 -0
- package/dist/types/src/components/jwero_filter_operator/components/HighlightLabelChip.d.ts +12 -0
- package/dist/types/src/components/jwero_filter_operator/index.d.ts +9 -0
- package/dist/types/src/components/jwero_media_preview/components/MediaPreviewDisplay.d.ts +2 -0
- package/dist/types/src/components/jwero_media_preview/components/MediaPreviewHeader.d.ts +5 -0
- package/dist/types/src/components/jwero_media_preview/index.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/drawer.d.ts +3 -0
- package/dist/types/src/components/jwero_navigation/icons/Analytics.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/Automations.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/CRM.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/Catalog.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/DigitalGold.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/Ecommerce.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/Inventory.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/JweroOne.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/Loyality.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/Socials.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/icons/chats.d.ts +2 -0
- package/dist/types/src/components/jwero_navigation/index.d.ts +19 -0
- package/dist/types/src/components/jwero_note_card/components/JweroNoteCardHeader.d.ts +11 -0
- package/dist/types/src/components/jwero_note_card/helper/AttachmentPreview.d.ts +10 -0
- package/dist/types/src/components/jwero_note_card/helper/convertDate.d.ts +1 -0
- package/dist/types/src/components/jwero_note_card/helper/getFileType.d.ts +3 -0
- package/dist/types/src/components/jwero_note_card/index.d.ts +14 -0
- package/dist/types/src/components/jwero_note_editor/components/AttachmentPreview.d.ts +10 -0
- package/dist/types/src/components/jwero_note_editor/components/AttachmentsSection.d.ts +7 -0
- package/dist/types/src/components/jwero_note_editor/components/NoteEditorFooter.d.ts +11 -0
- package/dist/types/src/components/jwero_note_editor/components/NoteEditorHeader.d.ts +5 -0
- package/dist/types/src/components/jwero_note_editor/helpers/bytesToMegabytes.d.ts +4 -0
- package/dist/types/src/components/jwero_note_editor/helpers/fileLimits.d.ts +7 -0
- package/dist/types/src/components/jwero_note_editor/helpers/getFileType.d.ts +1 -0
- package/dist/types/src/components/jwero_note_editor/helpers/getRandomId.d.ts +1 -0
- package/dist/types/src/components/jwero_note_editor/index.d.ts +23 -0
- package/dist/types/src/components/jwero_order_card/index.d.ts +25 -0
- package/dist/types/src/components/jwero_phone_input/index.d.ts +8 -0
- package/dist/types/src/components/jwero_plan_expiry/components/JweroPlanExpiryBody.d.ts +8 -0
- package/dist/types/src/components/jwero_plan_expiry/components/JweroPlanExpiryFooter.d.ts +2 -0
- package/dist/types/src/components/jwero_plan_expiry/components/JweroPlanExpiryHeader.d.ts +2 -0
- package/dist/types/src/components/jwero_plan_expiry/index.d.ts +8 -0
- package/dist/types/src/components/jwero_plan_expiry/svg/PlanExpiredSvg.d.ts +2 -0
- package/dist/types/src/components/jwero_primary_button/index.d.ts +21 -0
- package/dist/types/src/components/jwero_product_card/index.d.ts +23 -0
- package/dist/types/src/components/jwero_search_box/index.d.ts +22 -0
- package/dist/types/src/components/jwero_snackbar/index.d.ts +17 -0
- package/dist/types/src/components/jwero_status_chip/index.d.ts +22 -0
- package/dist/types/src/components/jwero_tabs/index.d.ts +29 -0
- package/dist/types/src/components/jwero_task_card/components/CustomAvatarGroup.d.ts +9 -0
- package/dist/types/src/components/jwero_task_card/components/TaskCardEditDelete.d.ts +13 -0
- package/dist/types/src/components/jwero_task_card/components/TeamMembersDisplay.d.ts +8 -0
- package/dist/types/src/components/jwero_task_card/helpers/checkIfOverdue.d.ts +14 -0
- package/dist/types/src/components/jwero_task_card/helpers/getInitials.d.ts +1 -0
- package/dist/types/src/components/jwero_task_card/index.d.ts +37 -0
- package/dist/types/src/components/jwero_theme_switch/components/dark_light_mode_switch/index.d.ts +5 -0
- package/dist/types/src/components/jwero_theme_switch/index.d.ts +3 -0
- package/dist/types/src/components/jwero_tooltip/index.d.ts +12 -0
- package/dist/types/src/components/jwero_verticaltabs/helper/convertToUnderscore.d.ts +1 -0
- package/dist/types/src/components/jwero_verticaltabs/index.d.ts +24 -0
- package/dist/types/src/components/jwero_view_options/index.d.ts +19 -0
- package/dist/types/src/consts/typography.d.ts +80 -0
- package/dist/types/src/icons/AddIcon.d.ts +5 -0
- package/dist/types/src/icons/AnalyticsIcon.d.ts +2 -0
- package/dist/types/src/icons/AttachIcon.d.ts +2 -0
- package/dist/types/src/icons/BoldIcon.d.ts +2 -0
- package/dist/types/src/icons/CalendarIcon.d.ts +5 -0
- package/dist/types/src/icons/CallIcon.d.ts +5 -0
- package/dist/types/src/icons/CheckedCheckboxIcon.d.ts +3 -0
- package/dist/types/src/icons/CheckedRadioIcon.d.ts +3 -0
- package/dist/types/src/icons/ChevronDown.d.ts +4 -0
- package/dist/types/src/icons/CloseIcon.d.ts +5 -0
- package/dist/types/src/icons/CloseMedia.d.ts +2 -0
- package/dist/types/src/icons/CompletedIcon.d.ts +2 -0
- package/dist/types/src/icons/CrownEmoji.d.ts +4 -0
- package/dist/types/src/icons/DecrementChipIcon.d.ts +2 -0
- package/dist/types/src/icons/DecrementIcon.d.ts +2 -0
- package/dist/types/src/icons/DeleteIcon.d.ts +4 -0
- package/dist/types/src/icons/DiamondIcon.d.ts +2 -0
- package/dist/types/src/icons/DropdownIcon.d.ts +2 -0
- package/dist/types/src/icons/EditIcon.d.ts +6 -0
- package/dist/types/src/icons/ErrorIcon.d.ts +4 -0
- package/dist/types/src/icons/EyeIcon.d.ts +2 -0
- package/dist/types/src/icons/FacebookFooterIcon.d.ts +2 -0
- package/dist/types/src/icons/ImproveChipIcon.d.ts +2 -0
- package/dist/types/src/icons/IncrementIcon.d.ts +2 -0
- package/dist/types/src/icons/InfoAlertIcon.d.ts +4 -0
- package/dist/types/src/icons/InfoIcon.d.ts +2 -0
- package/dist/types/src/icons/InprogressIcon.d.ts +2 -0
- package/dist/types/src/icons/InstagramFooterIcon.d.ts +2 -0
- package/dist/types/src/icons/InventoryIcon.d.ts +2 -0
- package/dist/types/src/icons/ItalicIcon.d.ts +2 -0
- package/dist/types/src/icons/LineThroughIcon.d.ts +2 -0
- package/dist/types/src/icons/LinkedInFooterIcon.d.ts +2 -0
- package/dist/types/src/icons/MailIcon.d.ts +5 -0
- package/dist/types/src/icons/PendingIcon.d.ts +2 -0
- package/dist/types/src/icons/QuotationsIcon.d.ts +2 -0
- package/dist/types/src/icons/RedCalendarIcon.d.ts +2 -0
- package/dist/types/src/icons/SalesAppIcon.d.ts +2 -0
- package/dist/types/src/icons/SearchIcon.d.ts +2 -0
- package/dist/types/src/icons/ShoppingCart.d.ts +2 -0
- package/dist/types/src/icons/StockIcon.d.ts +4 -0
- package/dist/types/src/icons/StockStatus.d.ts +2 -0
- package/dist/types/src/icons/SuccessIcon.d.ts +4 -0
- package/dist/types/src/icons/ToggleOffIcon.d.ts +3 -0
- package/dist/types/src/icons/ToggleOnIcon.d.ts +3 -0
- package/dist/types/src/icons/TripleDotsIcon.d.ts +2 -0
- package/dist/types/src/icons/TruckIcon.d.ts +2 -0
- package/dist/types/src/icons/UncheckedCheckboxIcon.d.ts +4 -0
- package/dist/types/src/icons/UncheckedRadioIcon.d.ts +3 -0
- package/dist/types/src/icons/UnderlineIcon.d.ts +2 -0
- package/dist/types/src/icons/WarningIcon.d.ts +4 -0
- package/dist/types/src/icons/WebIcon.d.ts +4 -0
- package/dist/types/src/icons/YoutubeFooterIcon.d.ts +2 -0
- package/dist/{index.d.ts → types/src/index.d.ts} +1 -4
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/theme/JweroTheme.d.ts +179 -0
- package/dist/types/src/theme/ThemeProvider.d.ts +9 -0
- package/dist/types/src/utils/customDateFormatting.d.ts +5 -0
- package/dist/types/src/utils/formatServerValue.d.ts +1 -0
- package/dist/types/src/utils/reduceLargeText.d.ts +1 -0
- package/dist/types/src/vite-env.d.ts +1 -0
- package/package.json +2 -3
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js.map +0 -1
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
type CustomColors = {
|
|
2
|
+
[x: string]: string;
|
|
3
|
+
gradient_1: string;
|
|
4
|
+
gradient_2: string;
|
|
5
|
+
chatbox_1: string;
|
|
6
|
+
chatbox_2: string;
|
|
7
|
+
horizon_blue: string;
|
|
8
|
+
burning_pink: string;
|
|
9
|
+
water_green: string;
|
|
10
|
+
primary: string;
|
|
11
|
+
secondary: string;
|
|
12
|
+
tertiary: string;
|
|
13
|
+
text_primary: string;
|
|
14
|
+
text_tertiary: string;
|
|
15
|
+
text_secondary: string;
|
|
16
|
+
positive: string;
|
|
17
|
+
negative: string;
|
|
18
|
+
neutral: string;
|
|
19
|
+
attention: string;
|
|
20
|
+
light_yellow: string;
|
|
21
|
+
light_grey: string;
|
|
22
|
+
light_blue: string;
|
|
23
|
+
light_red: string;
|
|
24
|
+
light_beige: string;
|
|
25
|
+
light_green: string;
|
|
26
|
+
light_orange: string;
|
|
27
|
+
surface_white: string;
|
|
28
|
+
surface2_lightgrey: string;
|
|
29
|
+
medium_slate_blue: string;
|
|
30
|
+
azure: string;
|
|
31
|
+
rose: string;
|
|
32
|
+
selective_yellow: string;
|
|
33
|
+
persian_green: string;
|
|
34
|
+
};
|
|
35
|
+
type CustomFontWeight = {
|
|
36
|
+
primary: number;
|
|
37
|
+
secondary: number;
|
|
38
|
+
tertiary: number;
|
|
39
|
+
bold: number;
|
|
40
|
+
logo: number;
|
|
41
|
+
};
|
|
42
|
+
declare module "@mui/material/styles" {
|
|
43
|
+
interface Theme {
|
|
44
|
+
colors: CustomColors;
|
|
45
|
+
fontWeights: CustomFontWeight;
|
|
46
|
+
}
|
|
47
|
+
interface ThemeOptions {
|
|
48
|
+
colors?: CustomColors;
|
|
49
|
+
fontWeights?: CustomFontWeight;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export declare const lightPalette: {
|
|
53
|
+
primary: {
|
|
54
|
+
main: string;
|
|
55
|
+
};
|
|
56
|
+
secondary: {
|
|
57
|
+
main: string;
|
|
58
|
+
};
|
|
59
|
+
error: {
|
|
60
|
+
main: string;
|
|
61
|
+
};
|
|
62
|
+
success: {
|
|
63
|
+
main: string;
|
|
64
|
+
};
|
|
65
|
+
warning: {
|
|
66
|
+
main: string;
|
|
67
|
+
};
|
|
68
|
+
background: {
|
|
69
|
+
default: string;
|
|
70
|
+
paper: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare const darkPalette: {
|
|
74
|
+
primary: {
|
|
75
|
+
main: string;
|
|
76
|
+
};
|
|
77
|
+
secondary: {
|
|
78
|
+
main: string;
|
|
79
|
+
};
|
|
80
|
+
error: {
|
|
81
|
+
main: string;
|
|
82
|
+
};
|
|
83
|
+
success: {
|
|
84
|
+
main: string;
|
|
85
|
+
};
|
|
86
|
+
warning: {
|
|
87
|
+
main: string;
|
|
88
|
+
};
|
|
89
|
+
background: {
|
|
90
|
+
default: string;
|
|
91
|
+
paper: string;
|
|
92
|
+
};
|
|
93
|
+
text: {
|
|
94
|
+
primary: string;
|
|
95
|
+
secondary: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export declare const lightColors: {
|
|
99
|
+
gradient_1: string;
|
|
100
|
+
gradient_2: string;
|
|
101
|
+
chatbox_1: string;
|
|
102
|
+
chatbox_2: string;
|
|
103
|
+
horizon_blue: string;
|
|
104
|
+
burning_pink: string;
|
|
105
|
+
water_green: string;
|
|
106
|
+
primary: string;
|
|
107
|
+
secondary: string;
|
|
108
|
+
tertiary: string;
|
|
109
|
+
text_primary: string;
|
|
110
|
+
text_tertiary: string;
|
|
111
|
+
text_secondary: string;
|
|
112
|
+
positive: string;
|
|
113
|
+
negative: string;
|
|
114
|
+
neutral: string;
|
|
115
|
+
attention: string;
|
|
116
|
+
light_yellow: string;
|
|
117
|
+
light_grey: string;
|
|
118
|
+
light_blue: string;
|
|
119
|
+
light_red: string;
|
|
120
|
+
light_beige: string;
|
|
121
|
+
light_green: string;
|
|
122
|
+
light_orange: string;
|
|
123
|
+
surface_white: string;
|
|
124
|
+
surface2_lightgrey: string;
|
|
125
|
+
medium_slate_blue: string;
|
|
126
|
+
azure: string;
|
|
127
|
+
rose: string;
|
|
128
|
+
selective_yellow: string;
|
|
129
|
+
persian_green: string;
|
|
130
|
+
white: string;
|
|
131
|
+
black: string;
|
|
132
|
+
misty_silver: string;
|
|
133
|
+
twilight_violet: string;
|
|
134
|
+
neon_aqua: string;
|
|
135
|
+
blush_crimson: string;
|
|
136
|
+
ember_glow: string;
|
|
137
|
+
};
|
|
138
|
+
export declare const darkColors: {
|
|
139
|
+
gradient_1: string;
|
|
140
|
+
gradient_2: string;
|
|
141
|
+
chatbox_1: string;
|
|
142
|
+
chatbox_2: string;
|
|
143
|
+
horizon_blue: string;
|
|
144
|
+
burning_pink: string;
|
|
145
|
+
water_green: string;
|
|
146
|
+
primary: string;
|
|
147
|
+
secondary: string;
|
|
148
|
+
tertiary: string;
|
|
149
|
+
text_primary: string;
|
|
150
|
+
text_tertiary: string;
|
|
151
|
+
text_secondary: string;
|
|
152
|
+
positive: string;
|
|
153
|
+
negative: string;
|
|
154
|
+
neutral: string;
|
|
155
|
+
attention: string;
|
|
156
|
+
light_yellow: string;
|
|
157
|
+
light_grey: string;
|
|
158
|
+
light_blue: string;
|
|
159
|
+
light_red: string;
|
|
160
|
+
light_beige: string;
|
|
161
|
+
light_green: string;
|
|
162
|
+
light_orange: string;
|
|
163
|
+
surface_white: string;
|
|
164
|
+
surface2_lightgrey: string;
|
|
165
|
+
medium_slate_blue: string;
|
|
166
|
+
azure: string;
|
|
167
|
+
rose: string;
|
|
168
|
+
selective_yellow: string;
|
|
169
|
+
persian_green: string;
|
|
170
|
+
white: string;
|
|
171
|
+
black: string;
|
|
172
|
+
misty_silver: string;
|
|
173
|
+
twilight_violet: string;
|
|
174
|
+
neon_aqua: string;
|
|
175
|
+
blush_crimson: string;
|
|
176
|
+
ember_glow: string;
|
|
177
|
+
};
|
|
178
|
+
export declare const theme: import('@mui/material/styles').Theme;
|
|
179
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DefaultTheme } from '@mui/system';
|
|
2
|
+
export interface ThemeProviderProps<Theme = DefaultTheme> {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const ThemeContext: import('react').Context<{
|
|
6
|
+
darkMode: boolean;
|
|
7
|
+
toggleTheme: () => void;
|
|
8
|
+
} | null>;
|
|
9
|
+
export default function ThemeProvider({ children }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formatServerValue: (inputString: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const reduceLargeText: (string: string, length?: number) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@kashifd/jwero-components",
|
|
3
3
|
"description": "A Jwero UI library for React",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.37",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.umd.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dev": "vite",
|
|
23
23
|
"clean": "rimraf dist",
|
|
24
24
|
"prebuild": "npm run clean",
|
|
25
|
-
"build": "
|
|
25
|
+
"build": "node --max-old-space-size=4096 ./node_modules/vite/bin/vite.js build",
|
|
26
26
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
27
27
|
"preview": "vite preview",
|
|
28
28
|
"storybook": "storybook dev -p 6006",
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
77
77
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
78
78
|
"eslint-plugin-storybook": "^0.8.0",
|
|
79
|
-
"rollup-plugin-visualizer": "^5.14.0",
|
|
80
79
|
"storybook": "^8.1.11",
|
|
81
80
|
"typescript": "^5.2.2",
|
|
82
81
|
"vite": "^5.3.1"
|