@bcrumbs.net/bc-ui 0.0.5 → 0.0.7
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/f15a494b584f70c7.png +0 -0
- package/index.esm.js +56231 -6554
- package/package.json +1 -1
- package/src/index.d.ts +15 -0
- package/src/lib/InputWithSuggestions/index.d.ts +1 -0
- package/src/lib/baseComponents/alert-dialog.d.ts +20 -0
- package/src/lib/baseComponents/button.d.ts +10 -0
- package/src/lib/baseComponents/dialog.d.ts +35 -0
- package/src/lib/baseComponents/dropdown-menu.d.ts +32 -0
- package/src/lib/baseComponents/radio-group.d.ts +13 -0
- package/src/lib/baseComponents/table.d.ts +14 -0
- package/src/lib/baseComponents/tabs.d.ts +24 -0
- package/src/lib/baseComponents/tooltip.d.ts +7 -0
- package/src/lib/button/bcbutton.d.ts +2 -1
- package/src/lib/checkbox/bccheckbox.d.ts +1 -0
- package/src/lib/constants/Color.d.ts +47 -0
- package/src/lib/constants/Droplist.d.ts +1 -0
- package/src/lib/constants/FontFamily.d.ts +9 -1
- package/src/lib/constants/LineHeight.d.ts +13 -1
- package/src/lib/constants/TextSize.d.ts +15 -2
- package/src/lib/constants/TextWeight.d.ts +11 -0
- package/src/lib/dropList/bcdrop-list.d.ts +15 -1
- package/src/lib/dropList/example-usage.d.ts +2 -0
- package/src/lib/hooks/useForm/index.d.ts +2 -1
- package/src/lib/hooks/useForm/validationConstant.d.ts +3 -1
- package/src/lib/hooks/useTheme.d.ts +8 -0
- package/src/lib/icon/bcicon.d.ts +239 -5
- package/src/lib/navigation/bcnavigation.d.ts +4 -2
- package/src/lib/navigation/left-nav/sub-left-nav/index.d.ts +8 -0
- package/src/lib/navigation/types.d.ts +11 -0
- package/src/lib/newComponents/BCNewAlertDialog/BCNewAlertDialog.d.ts +3 -0
- package/src/lib/newComponents/BCNewAlertDialog/types.d.ts +24 -0
- package/src/lib/newComponents/BCNewDialog/BCNewDialog.d.ts +3 -0
- package/src/lib/newComponents/BCNewDialog/types.d.ts +19 -0
- package/src/lib/newComponents/BCNewDropdown/BCNewDropdown.d.ts +3 -0
- package/src/lib/newComponents/BCNewDropdown/types.d.ts +33 -0
- package/src/lib/newComponents/BCNewTable/BCNewTable.d.ts +11 -0
- package/src/lib/newComponents/BCNewTable/types.d.ts +59 -0
- package/src/lib/newComponents/BCNewTabs/BCNewTabs.d.ts +25 -0
- package/src/lib/newComponents/BCNewTooltip/BCNewTooltip.d.ts +3 -0
- package/src/lib/newComponents/BCNewTooltip/types.d.ts +10 -0
- package/src/lib/newComponents/BCRadioGroupItem/BCRadioItem.d.ts +4 -0
- package/src/lib/newComponents/BCRadioGroupItem/types.d.ts +15 -0
- package/src/lib/searchbox/bcsearchbox.d.ts +7 -1
- package/src/lib/sortableHeader/SortableHeader.d.ts +11 -0
- package/src/lib/styledFormInput/StyledFormInput.d.ts +29 -0
- package/src/lib/tagDisplay/TagDisplay.d.ts +6 -0
- package/src/lib/text/bctext.d.ts +9 -3
- package/src/lib/textbox/bctextbox.d.ts +3 -1
package/src/lib/icon/bcicon.d.ts
CHANGED
|
@@ -14,16 +14,250 @@ export type IconProps = {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
dataQA?: string;
|
|
16
16
|
};
|
|
17
|
-
export declare function BCIcon({ icon, size, color, className, dataQA
|
|
17
|
+
export declare function BCIcon({ icon, size, color, className, dataQA }: IconProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
18
|
export interface BCIconsProps {
|
|
19
19
|
width?: string | number;
|
|
20
20
|
height?: string | number;
|
|
21
21
|
fill?: string;
|
|
22
22
|
}
|
|
23
23
|
export declare const BCIcons: {
|
|
24
|
-
WhatsApp: ({ width, height, fill
|
|
25
|
-
Facebook: ({ width, height, fill
|
|
26
|
-
Google: ({ width, height, fill
|
|
27
|
-
Broadcast: ({ width, height, fill
|
|
24
|
+
WhatsApp: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
25
|
+
Facebook: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
26
|
+
Google: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
27
|
+
Broadcast: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
28
|
Bot: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
FileExport: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
|
+
CSV: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
31
|
+
Excel: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
32
|
+
Filter: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
|
+
Sort: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
|
+
Dashboard: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
35
|
+
Inbox: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
36
|
+
ContactBook: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
37
|
+
Contact: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
38
|
+
ContactLifeCycle: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
|
+
MirroringScreen: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
40
|
+
Managemnet: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
41
|
+
Agents: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
42
|
+
Ai: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
43
|
+
AiAssistant: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
44
|
+
APIKey: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
45
|
+
Webhooks: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
46
|
+
ConvLifecycle: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
47
|
+
Channels: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
48
|
+
RatingSettings: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
49
|
+
CrumbySettings: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
50
|
+
CrumbyAIIcon: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
51
|
+
File: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
52
|
+
Files: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
53
|
+
DoxIcon: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
54
|
+
PdfIcon: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
55
|
+
PngIcon: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
56
|
+
InformationCircle: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
57
|
+
LeadingClose: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
58
|
+
LeadingOpen: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
59
|
+
Upload: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
60
|
+
Close: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
61
|
+
Text: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
62
|
+
Website: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
63
|
+
Integration: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
64
|
+
FineTuning: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
65
|
+
Prompts: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
66
|
+
SuggestedQs: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
67
|
+
GeneralSettings: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
68
|
+
Resource: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
69
|
+
ResourceAdd: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
70
|
+
Language: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
71
|
+
Edit: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
72
|
+
Delete: ({ width, height, fill }: BCIconsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
73
|
+
Calendar: ({ width, height, fill }: {
|
|
74
|
+
width?: number | undefined;
|
|
75
|
+
height?: number | undefined;
|
|
76
|
+
fill?: string | undefined;
|
|
77
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
78
|
+
AddUser: ({ width, height, fill }: {
|
|
79
|
+
width?: number | undefined;
|
|
80
|
+
height?: number | undefined;
|
|
81
|
+
fill?: string | undefined;
|
|
82
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
83
|
+
SearchIcon: ({ width, height, fill }: {
|
|
84
|
+
width?: number | undefined;
|
|
85
|
+
height?: number | undefined;
|
|
86
|
+
fill?: string | undefined;
|
|
87
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
88
|
+
ActiveChat: ({ width, height, fill }: {
|
|
89
|
+
width?: number | undefined;
|
|
90
|
+
height?: number | undefined;
|
|
91
|
+
fill?: string | undefined;
|
|
92
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
93
|
+
ClosedChat: ({ width, height, fill }: {
|
|
94
|
+
width?: number | undefined;
|
|
95
|
+
height?: number | undefined;
|
|
96
|
+
fill?: string | undefined;
|
|
97
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
98
|
+
SingleGrayCheck: ({ width, height, fill }: {
|
|
99
|
+
width?: number | undefined;
|
|
100
|
+
height?: number | undefined;
|
|
101
|
+
fill?: string | undefined;
|
|
102
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
103
|
+
DoubleGrayCheck: ({ width, height, fill }: {
|
|
104
|
+
width?: number | undefined;
|
|
105
|
+
height?: number | undefined;
|
|
106
|
+
fill?: string | undefined;
|
|
107
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
108
|
+
DoubleGreenCheck: ({ width, height, fill }: {
|
|
109
|
+
width?: number | undefined;
|
|
110
|
+
height?: number | undefined;
|
|
111
|
+
fill?: string | undefined;
|
|
112
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
113
|
+
ExclamationMark: ({ width, height, fill }: {
|
|
114
|
+
width?: number | undefined;
|
|
115
|
+
height?: number | undefined;
|
|
116
|
+
fill?: string | undefined;
|
|
117
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
118
|
+
ImageIcon: ({ width, height, fill }: {
|
|
119
|
+
width?: number | undefined;
|
|
120
|
+
height?: number | undefined;
|
|
121
|
+
fill?: string | undefined;
|
|
122
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
123
|
+
Spinner: ({ width, height, fill }: {
|
|
124
|
+
width?: number | undefined;
|
|
125
|
+
height?: number | undefined;
|
|
126
|
+
fill?: string | undefined;
|
|
127
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
128
|
+
Marker: ({ width, height, fill }: {
|
|
129
|
+
width?: number | undefined;
|
|
130
|
+
height?: number | undefined;
|
|
131
|
+
fill?: string | undefined;
|
|
132
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
133
|
+
DetailsMarker: ({ width, height, fill }: {
|
|
134
|
+
width?: number | undefined;
|
|
135
|
+
height?: number | undefined;
|
|
136
|
+
fill?: string | undefined;
|
|
137
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
138
|
+
IdCard: ({ width, height, fill }: {
|
|
139
|
+
width?: number | undefined;
|
|
140
|
+
height?: number | undefined;
|
|
141
|
+
fill?: string | undefined;
|
|
142
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
143
|
+
Email: ({ width, height, fill }: {
|
|
144
|
+
width?: number | undefined;
|
|
145
|
+
height?: number | undefined;
|
|
146
|
+
fill?: string | undefined;
|
|
147
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
148
|
+
Phone: ({ width, height, fill }: {
|
|
149
|
+
width?: number | undefined;
|
|
150
|
+
height?: number | undefined;
|
|
151
|
+
fill?: string | undefined;
|
|
152
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
153
|
+
Pencil: ({ width, height, fill }: {
|
|
154
|
+
width?: number | undefined;
|
|
155
|
+
height?: number | undefined;
|
|
156
|
+
fill?: string | undefined;
|
|
157
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
158
|
+
NewChat: ({ width, height, fill }: {
|
|
159
|
+
width?: number | undefined;
|
|
160
|
+
height?: number | undefined;
|
|
161
|
+
fill?: string | undefined;
|
|
162
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
163
|
+
UnAssignUser: ({ width, height, fill }: {
|
|
164
|
+
width?: number | undefined;
|
|
165
|
+
height?: number | undefined;
|
|
166
|
+
fill?: string | undefined;
|
|
167
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
168
|
+
AssignUser: ({ width, height, fill }: {
|
|
169
|
+
width?: number | undefined;
|
|
170
|
+
height?: number | undefined;
|
|
171
|
+
fill?: string | undefined;
|
|
172
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
173
|
+
StageChanged: ({ width, height, fill }: {
|
|
174
|
+
width?: number | undefined;
|
|
175
|
+
height?: number | undefined;
|
|
176
|
+
fill?: string | undefined;
|
|
177
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
178
|
+
DoubleChat: ({ width, height, fill }: {
|
|
179
|
+
width?: number | undefined;
|
|
180
|
+
height?: number | undefined;
|
|
181
|
+
fill?: string | undefined;
|
|
182
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
183
|
+
CloseChat: ({ width, height, fill }: {
|
|
184
|
+
width?: number | undefined;
|
|
185
|
+
height?: number | undefined;
|
|
186
|
+
fill?: string | undefined;
|
|
187
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
188
|
+
AddNote: ({ width, height, fill }: {
|
|
189
|
+
width?: number | undefined;
|
|
190
|
+
height?: number | undefined;
|
|
191
|
+
fill?: string | undefined;
|
|
192
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
193
|
+
MagicPencil: ({ width, height, fill }: {
|
|
194
|
+
width?: number | undefined;
|
|
195
|
+
height?: number | undefined;
|
|
196
|
+
fill?: string | undefined;
|
|
197
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
198
|
+
DoubleStar: ({ width, height, fill }: {
|
|
199
|
+
width?: number | undefined;
|
|
200
|
+
height?: number | undefined;
|
|
201
|
+
fill?: string | undefined;
|
|
202
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
203
|
+
Note: ({ width, height, fill }: {
|
|
204
|
+
width?: number | undefined;
|
|
205
|
+
height?: number | undefined;
|
|
206
|
+
fill?: string | undefined;
|
|
207
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
208
|
+
EndChat: ({ width, height, fill }: {
|
|
209
|
+
width?: number | undefined;
|
|
210
|
+
height?: number | undefined;
|
|
211
|
+
fill?: string | undefined;
|
|
212
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
213
|
+
UpArrow: ({ width, height, fill }: {
|
|
214
|
+
width?: number | undefined;
|
|
215
|
+
height?: number | undefined;
|
|
216
|
+
fill?: string | undefined;
|
|
217
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
218
|
+
DownArrow: ({ width, height, fill }: {
|
|
219
|
+
width?: number | undefined;
|
|
220
|
+
height?: number | undefined;
|
|
221
|
+
fill?: string | undefined;
|
|
222
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
223
|
+
BIcon: ({ width, height, fill }: {
|
|
224
|
+
width?: number | undefined;
|
|
225
|
+
height?: number | undefined;
|
|
226
|
+
fill?: string | undefined;
|
|
227
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
228
|
+
CopyIcon: ({ width, height, fill }: {
|
|
229
|
+
width?: number | undefined;
|
|
230
|
+
height?: number | undefined;
|
|
231
|
+
fill?: string | undefined;
|
|
232
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
233
|
+
UploadFile: ({ width, height, fill }: {
|
|
234
|
+
width?: number | undefined;
|
|
235
|
+
height?: number | undefined;
|
|
236
|
+
fill?: string | undefined;
|
|
237
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
238
|
+
SendArrow: ({ width, height, fill }: {
|
|
239
|
+
width?: number | undefined;
|
|
240
|
+
height?: number | undefined;
|
|
241
|
+
fill?: string | undefined;
|
|
242
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
243
|
+
CircleStop: ({ width, height, fill }: {
|
|
244
|
+
width?: number | undefined;
|
|
245
|
+
height?: number | undefined;
|
|
246
|
+
fill?: string | undefined;
|
|
247
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
248
|
+
Mobile: ({ width, height, fill }: {
|
|
249
|
+
width?: number | undefined;
|
|
250
|
+
height?: number | undefined;
|
|
251
|
+
fill?: string | undefined;
|
|
252
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
253
|
+
ClientId: ({ width, height, fill }: {
|
|
254
|
+
width?: number | undefined;
|
|
255
|
+
height?: number | undefined;
|
|
256
|
+
fill?: string | undefined;
|
|
257
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
258
|
+
NotFount: ({ width, height, fill }: {
|
|
259
|
+
width?: number | undefined;
|
|
260
|
+
height?: number | undefined;
|
|
261
|
+
fill?: string | undefined;
|
|
262
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
263
|
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { NavType } from './types';
|
|
1
|
+
import { NavItem, NavType } from './types';
|
|
2
2
|
export interface BCNavigationProps {
|
|
3
3
|
brand?: string;
|
|
4
4
|
handleLeftNavItemClick: (event: any, action?: string) => void;
|
|
5
5
|
navModel: NavType;
|
|
6
6
|
location: any;
|
|
7
7
|
rtl: boolean;
|
|
8
|
+
activeItem?: NavItem | null;
|
|
9
|
+
hasSubMenu?: boolean;
|
|
8
10
|
}
|
|
9
|
-
export declare const BCNavigation: ({ brand, navModel, handleLeftNavItemClick, location, rtl, }: BCNavigationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const BCNavigation: ({ brand, navModel, handleLeftNavItemClick, location, rtl, activeItem, hasSubMenu, }: BCNavigationProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default BCNavigation;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
export type SubMenuItemsType = {
|
|
3
|
+
label: string;
|
|
4
|
+
link: string;
|
|
5
|
+
action: string;
|
|
6
|
+
icon: string | ReactElement;
|
|
7
|
+
};
|
|
8
|
+
export type SubMenuType = {
|
|
9
|
+
title?: string;
|
|
10
|
+
items?: Array<SubMenuItemsType>;
|
|
11
|
+
};
|
|
2
12
|
export type NavItem = {
|
|
3
13
|
label: string;
|
|
4
14
|
icon: string | ReactElement;
|
|
@@ -6,6 +16,7 @@ export type NavItem = {
|
|
|
6
16
|
externalLink?: string;
|
|
7
17
|
action?: string;
|
|
8
18
|
className?: string;
|
|
19
|
+
subMenu?: Array<SubMenuType>;
|
|
9
20
|
};
|
|
10
21
|
export type NavType = {
|
|
11
22
|
brand?: string | ReactElement;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export type RAlertDialogProps = {
|
|
4
|
+
component?: ReactNode;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
cancelCssStyle?: SerializedStyles;
|
|
9
|
+
cancelAction?: () => void;
|
|
10
|
+
confirmText?: string;
|
|
11
|
+
confirmCssStyle?: SerializedStyles;
|
|
12
|
+
confirmAction: () => void;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
headerItemsPosition?: string;
|
|
16
|
+
disableTrigger?: boolean;
|
|
17
|
+
triggerCssStyle?: SerializedStyles;
|
|
18
|
+
open?: boolean;
|
|
19
|
+
onOpenChange?: (open: boolean) => void;
|
|
20
|
+
titleCssStyle?: SerializedStyles;
|
|
21
|
+
descriptionCssStyle?: SerializedStyles;
|
|
22
|
+
noTrigger?: boolean;
|
|
23
|
+
rtl?: boolean;
|
|
24
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
3
|
+
export interface DialogHeaderProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
cssStyle?: SerializedStyles;
|
|
7
|
+
}
|
|
8
|
+
export type RControlledDialogProps = {
|
|
9
|
+
isOpen?: boolean;
|
|
10
|
+
closeDialog: () => void;
|
|
11
|
+
dialogHeader?: DialogHeaderProps | null;
|
|
12
|
+
dialogBody?: React.ReactNode | null;
|
|
13
|
+
dialogFooter?: React.ReactNode | null;
|
|
14
|
+
contentCssStyle?: SerializedStyles;
|
|
15
|
+
titleCssStyle?: SerializedStyles;
|
|
16
|
+
descriptionCssStyle?: SerializedStyles;
|
|
17
|
+
closeIcon?: boolean;
|
|
18
|
+
rtl?: boolean;
|
|
19
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
3
|
+
export type ActionItem = {
|
|
4
|
+
name: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
isChecked?: boolean;
|
|
7
|
+
Icon?: keyof typeof import('@radix-ui/react-icons');
|
|
8
|
+
iconOnRight?: boolean;
|
|
9
|
+
actionIconCssStyle?: SerializedStyles;
|
|
10
|
+
keepOpenOnSelect?: boolean;
|
|
11
|
+
actionTextCssStyle?: SerializedStyles;
|
|
12
|
+
component?: ReactNode;
|
|
13
|
+
addSeparator?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
customIcon?: ReactNode;
|
|
17
|
+
extraValue?: any;
|
|
18
|
+
submenu?: ActionItem[];
|
|
19
|
+
};
|
|
20
|
+
export type RDropdownProps = {
|
|
21
|
+
triggerComponent?: ReactNode;
|
|
22
|
+
label?: string | null;
|
|
23
|
+
actions?: ActionItem[];
|
|
24
|
+
onPointerDownHandler?: MouseEventHandler;
|
|
25
|
+
itemCssStyle?: SerializedStyles;
|
|
26
|
+
contentCssStyle?: SerializedStyles;
|
|
27
|
+
subTriggerCssStyle?: SerializedStyles;
|
|
28
|
+
side?: 'bottom' | 'right' | 'top' | 'left';
|
|
29
|
+
align?: 'center' | 'end' | 'start';
|
|
30
|
+
beforeActionsComponent?: ReactNode;
|
|
31
|
+
afterActionsComponent?: ReactNode;
|
|
32
|
+
rtl?: boolean;
|
|
33
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RTableProps } from './types';
|
|
3
|
+
interface ExtendedRTableProps extends RTableProps {
|
|
4
|
+
hasMore?: boolean;
|
|
5
|
+
onLoadMore?: () => void;
|
|
6
|
+
loadingMore?: boolean;
|
|
7
|
+
loadingMoreText?: string;
|
|
8
|
+
rtl?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const BCNewTable: React.NamedExoticComponent<ExtendedRTableProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CellContext, HeaderContext } from '@tanstack/react-table';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { SerializedStyles } from '@emotion/react';
|
|
4
|
+
export type RTableProps = {
|
|
5
|
+
Records: TableRecords;
|
|
6
|
+
tableContainerCssStyle?: SerializedStyles;
|
|
7
|
+
emptyData?: string | React.ReactNode;
|
|
8
|
+
callBack?: (table: any) => void;
|
|
9
|
+
finishedOperation?: string | null | number;
|
|
10
|
+
setFinishedOperation?: (value: string | null | number) => void;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
tableHeight?: string;
|
|
13
|
+
};
|
|
14
|
+
export type TableRecords = {
|
|
15
|
+
columns: CustomColumn[];
|
|
16
|
+
data: any[];
|
|
17
|
+
actions?: TableAction[];
|
|
18
|
+
removeDropDownActions?: boolean;
|
|
19
|
+
triggerDropDownComponent?: (info: any) => React.ReactNode;
|
|
20
|
+
dropDownSide?: 'bottom' | 'right' | 'top' | 'left';
|
|
21
|
+
dropDownAlign?: 'center' | 'end' | 'start';
|
|
22
|
+
dropDownContentClassName?: SerializedStyles;
|
|
23
|
+
onPointerDownHandler?: (info: any) => void;
|
|
24
|
+
staticColumns?: boolean;
|
|
25
|
+
staticHeight?: string;
|
|
26
|
+
};
|
|
27
|
+
export type CustomColumn = {
|
|
28
|
+
id: string;
|
|
29
|
+
accessorKey?: string;
|
|
30
|
+
renderHeader: (info: HeaderContext<any, any>) => ReactNode;
|
|
31
|
+
renderCell: (info: CellContext<any, any>) => ReactNode;
|
|
32
|
+
size?: number;
|
|
33
|
+
};
|
|
34
|
+
export type TableAction = {
|
|
35
|
+
name: string;
|
|
36
|
+
onClick: (info: CellContext<any, any>) => void;
|
|
37
|
+
inDropdown?: boolean;
|
|
38
|
+
hidden?: boolean;
|
|
39
|
+
Icon?: keyof typeof import('@radix-ui/react-icons') | React.ReactNode;
|
|
40
|
+
actionIconCssStyle?: SerializedStyles;
|
|
41
|
+
actionTextCssStyle?: SerializedStyles;
|
|
42
|
+
actionToolTipCssStyle?: SerializedStyles;
|
|
43
|
+
needLoader?: boolean;
|
|
44
|
+
iconFn?: (info: any) => string;
|
|
45
|
+
dynamicName?: (info: CellContext<any, any>) => string;
|
|
46
|
+
dynamicIcon?: (info: CellContext<any, any>) => keyof typeof import('@radix-ui/react-icons');
|
|
47
|
+
dynamicActionIconCssStyle?: (info: CellContext<any, any>) => SerializedStyles;
|
|
48
|
+
dynamicActionTextCssStyle?: (info: CellContext<any, any>) => SerializedStyles;
|
|
49
|
+
dynamicActionToolTipCssStyle?: (info: CellContext<any, any>) => SerializedStyles | undefined;
|
|
50
|
+
dialogTitle?: (info: any) => string;
|
|
51
|
+
dialogDescription?: (info: any) => string;
|
|
52
|
+
cancel?: string;
|
|
53
|
+
confirm?: string;
|
|
54
|
+
loading?: boolean;
|
|
55
|
+
confirmAction?: (info: any) => void;
|
|
56
|
+
disabled?: boolean;
|
|
57
|
+
headerItemsPosition?: string;
|
|
58
|
+
inDialog?: boolean;
|
|
59
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
3
|
+
export interface TabItem {
|
|
4
|
+
value: string;
|
|
5
|
+
title: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
content?: React.ReactNode;
|
|
8
|
+
css?: SerializedStyles;
|
|
9
|
+
}
|
|
10
|
+
export interface BCNewTabsProps {
|
|
11
|
+
defaultTab?: string;
|
|
12
|
+
tabs?: TabItem[];
|
|
13
|
+
className?: string;
|
|
14
|
+
activeTab: string;
|
|
15
|
+
setActiveTab: (value: string) => void;
|
|
16
|
+
innerContent?: boolean;
|
|
17
|
+
handleChangeTab?: (value: string) => void;
|
|
18
|
+
orientation?: 'horizontal' | 'vertical';
|
|
19
|
+
tabsCss?: SerializedStyles;
|
|
20
|
+
tabsListCss?: SerializedStyles;
|
|
21
|
+
tabsTriggerCss?: SerializedStyles;
|
|
22
|
+
tabsContentCss?: SerializedStyles;
|
|
23
|
+
rtl?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const BCNewTabs: React.FC<BCNewTabsProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
3
|
+
export type RTooltipProps = {
|
|
4
|
+
triggerComponent?: ReactNode;
|
|
5
|
+
tooltipText?: string;
|
|
6
|
+
triggerCssStyle?: SerializedStyles;
|
|
7
|
+
contentCssStyle?: SerializedStyles;
|
|
8
|
+
delayDuration?: number;
|
|
9
|
+
side?: 'top' | 'bottom' | 'left' | 'right';
|
|
10
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
export interface BCRadioItemProps {
|
|
3
|
+
value: string;
|
|
4
|
+
checked?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
onChange?: (checked: boolean) => void;
|
|
7
|
+
label?: string;
|
|
8
|
+
containerCssStyle?: SerializedStyles;
|
|
9
|
+
radioCssStyle?: SerializedStyles;
|
|
10
|
+
labelCssStyle?: SerializedStyles;
|
|
11
|
+
id?: string;
|
|
12
|
+
'aria-label'?: string;
|
|
13
|
+
'aria-describedby'?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
3
|
export interface BCSearchboxProps {
|
|
3
4
|
className?: string;
|
|
4
5
|
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -7,6 +8,11 @@ export interface BCSearchboxProps {
|
|
|
7
8
|
icon?: string | ReactElement;
|
|
8
9
|
placeholder?: string;
|
|
9
10
|
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
11
|
+
customInputCss?: SerializedStyles;
|
|
12
|
+
customContainerCss?: SerializedStyles;
|
|
13
|
+
onSearchIconClick?: () => void;
|
|
14
|
+
onClearIconClick?: () => void;
|
|
15
|
+
rtl?: boolean;
|
|
10
16
|
}
|
|
11
|
-
export declare const BCSearchbox: ({ className, onChange, value, name, placeholder, icon, onKeyDown, }: BCSearchboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const BCSearchbox: ({ className, onChange, value, name, placeholder, icon, onKeyDown, customInputCss, customContainerCss, rtl, onSearchIconClick, onClearIconClick, }: BCSearchboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
18
|
export default BCSearchbox;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SortableHeaderProps {
|
|
3
|
+
field: string;
|
|
4
|
+
title: string;
|
|
5
|
+
onSort?: (field: string) => void;
|
|
6
|
+
showSortIcon?: boolean;
|
|
7
|
+
currentSortField?: string;
|
|
8
|
+
currentSortDirection?: 'asc' | 'desc';
|
|
9
|
+
}
|
|
10
|
+
export declare const SortableHeader: React.FC<SortableHeaderProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface StyledFormGroupProps {
|
|
3
|
+
direction?: 'row' | 'column';
|
|
4
|
+
gap?: string | number;
|
|
5
|
+
inputHeight?: string | number;
|
|
6
|
+
}
|
|
7
|
+
export declare const StyledFormGroup: import("@emotion/styled").StyledComponent<{
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
|
+
} & StyledFormGroupProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
|
+
export declare const LabelStyle: (required?: boolean) => import("@emotion/react").SerializedStyles;
|
|
12
|
+
export declare const Container: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
16
|
+
export declare const Header: import("@emotion/styled").StyledComponent<{
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
20
|
+
export declare const DropDownTrigger: import("@emotion/styled").StyledComponent<import("../baseComponents/button").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
export declare const SearchFilterDiv: import("@emotion/styled").StyledComponent<{
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
|
+
export declare const searchInputStyle: import("@emotion/react").SerializedStyles;
|
|
28
|
+
export declare const InputStyle: import("@emotion/react").SerializedStyles;
|
|
29
|
+
export {};
|
package/src/lib/text/bctext.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
3
|
+
import { Color, TextSize, TextWeight, TextStyle, WhiteSpace, TextAlign, LineHeightRem, TextSizeRem, NewColors, NewTextWeight } from '../constants';
|
|
3
4
|
export type BCTextProps = {
|
|
4
5
|
as?: 'span' | 'label';
|
|
5
6
|
htmlFor?: string;
|
|
@@ -19,9 +20,14 @@ export type BCTextProps = {
|
|
|
19
20
|
maxWidth?: string;
|
|
20
21
|
strikeThrough?: boolean;
|
|
21
22
|
breakWords?: boolean;
|
|
23
|
+
lineHeightRem?: LineHeightRem;
|
|
24
|
+
sizeRem?: TextSizeRem;
|
|
25
|
+
newTextColor?: NewColors;
|
|
26
|
+
newTextWeight?: NewTextWeight;
|
|
27
|
+
customCss?: SerializedStyles;
|
|
22
28
|
};
|
|
23
29
|
/**
|
|
24
30
|
* This component is used to add text in the application
|
|
25
31
|
*/
|
|
26
|
-
export declare function BCText({ as, htmlFor, children, size, weight, color, style, align, uppercase, underline, ellipsis, lineClamp, className, title, maxWidth, strikeThrough, whiteSpace, breakWords, }: PropsWithChildren<BCTextProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
27
|
-
export declare function BCError({ htmlFor, children, style, align, uppercase, underline, ellipsis, className, title, maxWidth, strikeThrough, whiteSpace, breakWords, }: PropsWithChildren<BCTextProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function BCText({ as, htmlFor, children, size, weight, color, style, align, uppercase, underline, ellipsis, lineClamp, className, title, maxWidth, strikeThrough, whiteSpace, breakWords, lineHeightRem, sizeRem, newTextColor, newTextWeight, customCss, }: PropsWithChildren<BCTextProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare function BCError({ htmlFor, children, style, align, uppercase, underline, ellipsis, className, title, maxWidth, strikeThrough, whiteSpace, breakWords, lineHeightRem, sizeRem, newTextColor, newTextWeight, }: PropsWithChildren<BCTextProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
1
2
|
import { ChangeEvent } from 'react';
|
|
2
3
|
export interface BCTextboxProps {
|
|
3
4
|
className?: string;
|
|
@@ -13,9 +14,10 @@ export interface BCTextboxProps {
|
|
|
13
14
|
onBlur?: (ev: ChangeEvent<HTMLInputElement>) => any;
|
|
14
15
|
onClick?: (ev: any) => any;
|
|
15
16
|
onFocus?: (ev: ChangeEvent<HTMLInputElement>) => any;
|
|
17
|
+
inputStyle?: SerializedStyles;
|
|
16
18
|
}
|
|
17
19
|
export interface BCTextboxState {
|
|
18
20
|
showAutoComplete: boolean;
|
|
19
21
|
}
|
|
20
|
-
export declare const BCTextbox: ({ className, name, onChange, onKeyDown, onClick, value, type, disabled, placeholder, maxLength, autoCompleteList, onBlur, onFocus, }: BCTextboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const BCTextbox: ({ className, name, onChange, onKeyDown, onClick, value, type, disabled, placeholder, maxLength, autoCompleteList, onBlur, onFocus, inputStyle, }: BCTextboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
23
|
export default BCTextbox;
|