@deskpro/deskpro-ui 2.3.0 → 2.3.3
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/cjs/components/Icon/customIconsCodegen.js +46 -45
- package/dist/cjs/components/Icon/customIconsCodegen.js.map +1 -1
- package/dist/cjs/components/TextArea/TextArea.js +61 -37
- package/dist/cjs/components/TextArea/TextArea.js.map +1 -1
- package/dist/cjs/components/TextArea/styles.js +0 -1
- package/dist/cjs/components/TextArea/styles.js.map +1 -1
- package/dist/deskpro-custom-icons.css +51 -48
- package/dist/deskpro-ui.css +174 -10
- package/dist/deskpro-ui.d.ts +2 -2
- package/dist/esm/components/Icon/customIconsCodegen.js +46 -45
- package/dist/esm/components/Icon/customIconsCodegen.js.map +1 -1
- package/dist/esm/components/TextArea/TextArea.js +61 -37
- package/dist/esm/components/TextArea/TextArea.js.map +1 -1
- package/dist/esm/components/TextArea/styles.js +0 -1
- package/dist/esm/components/TextArea/styles.js.map +1 -1
- package/dist/fonts/DpCustomIcons/DpCustomIcons.eot +0 -0
- package/dist/fonts/DpCustomIcons/DpCustomIcons.woff +0 -0
- package/dist/fonts/DpCustomIcons/DpCustomIcons.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Black.woff +0 -0
- package/dist/fonts/Inter/Inter-Black.woff2 +0 -0
- package/dist/fonts/Inter/Inter-BlackItalic.woff +0 -0
- package/dist/fonts/Inter/Inter-BlackItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Bold.woff +0 -0
- package/dist/fonts/Inter/Inter-Bold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-BoldItalic.woff +0 -0
- package/dist/fonts/Inter/Inter-BoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraBold.woff +0 -0
- package/dist/fonts/Inter/Inter-ExtraBold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraBoldItalic.woff +0 -0
- package/dist/fonts/Inter/Inter-ExtraBoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraLight.woff +0 -0
- package/dist/fonts/Inter/Inter-ExtraLight.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ExtraLightItalic.woff +0 -0
- package/dist/fonts/Inter/Inter-ExtraLightItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Italic.woff +0 -0
- package/dist/fonts/Inter/Inter-Italic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Light.woff +0 -0
- package/dist/fonts/Inter/Inter-Light.woff2 +0 -0
- package/dist/fonts/Inter/Inter-LightItalic.woff +0 -0
- package/dist/fonts/Inter/Inter-LightItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Medium.woff +0 -0
- package/dist/fonts/Inter/Inter-Medium.woff2 +0 -0
- package/dist/fonts/Inter/Inter-MediumItalic.woff +0 -0
- package/dist/fonts/Inter/Inter-MediumItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Regular.woff +0 -0
- package/dist/fonts/Inter/Inter-Regular.woff2 +0 -0
- package/dist/fonts/Inter/Inter-SemiBold.woff +0 -0
- package/dist/fonts/Inter/Inter-SemiBold.woff2 +0 -0
- package/dist/fonts/Inter/Inter-SemiBoldItalic.woff +0 -0
- package/dist/fonts/Inter/Inter-SemiBoldItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-Thin.woff +0 -0
- package/dist/fonts/Inter/Inter-Thin.woff2 +0 -0
- package/dist/fonts/Inter/Inter-ThinItalic.woff +0 -0
- package/dist/fonts/Inter/Inter-ThinItalic.woff2 +0 -0
- package/dist/fonts/Inter/Inter-italic.var.woff2 +0 -0
- package/dist/fonts/Inter/Inter-roman.var.woff2 +0 -0
- package/dist/fonts/Inter/Inter.var.woff2 +0 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +54 -53
package/dist/deskpro-ui.css
CHANGED
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
@font-face {
|
|
118
118
|
font-family: "Lato";
|
|
119
119
|
src: url("./fonts/Lato/Lato-BoldItalic.woff2") format("woff2"),
|
|
120
|
-
|
|
120
|
+
url("./fonts/Lato/Lato-BoldItalic.woff") format("woff");
|
|
121
121
|
font-weight: bold;
|
|
122
122
|
font-style: italic;
|
|
123
123
|
}
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
@font-face {
|
|
126
126
|
font-family: "Lato Hairline";
|
|
127
127
|
src: url("./fonts/Lato/Lato-HairlineItalic.woff2") format("woff2"),
|
|
128
|
-
|
|
128
|
+
url("./fonts/Lato/Lato-HairlineItalic.woff") format("woff");
|
|
129
129
|
font-weight: 300;
|
|
130
130
|
font-style: italic;
|
|
131
131
|
}
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
@font-face {
|
|
134
134
|
font-family: "Lato";
|
|
135
135
|
src: url("./fonts/Lato/Lato-BlackItalic.woff2") format("woff2"),
|
|
136
|
-
|
|
136
|
+
url("./fonts/Lato/Lato-BlackItalic.woff") format("woff");
|
|
137
137
|
font-weight: 900;
|
|
138
138
|
font-style: italic;
|
|
139
139
|
}
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
@font-face {
|
|
142
142
|
font-family: "Lato";
|
|
143
143
|
src: url("./fonts/Lato/Lato-LightItalic.woff2") format("woff2"),
|
|
144
|
-
|
|
144
|
+
url("./fonts/Lato/Lato-LightItalic.woff") format("woff");
|
|
145
145
|
font-weight: 300;
|
|
146
146
|
font-style: italic;
|
|
147
147
|
}
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
@font-face {
|
|
150
150
|
font-family: "Lato";
|
|
151
151
|
src: url("./fonts/Lato/Lato-Italic.woff2") format("woff2"),
|
|
152
|
-
|
|
152
|
+
url("./fonts/Lato/Lato-Italic.woff") format("woff");
|
|
153
153
|
font-weight: normal;
|
|
154
154
|
font-style: italic;
|
|
155
155
|
}
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
@font-face {
|
|
158
158
|
font-family: "Lato";
|
|
159
159
|
src: url("./fonts/Lato/Lato-Bold.woff2") format("woff2"),
|
|
160
|
-
|
|
160
|
+
url("./fonts/Lato/Lato-Bold.woff") format("woff");
|
|
161
161
|
font-weight: bold;
|
|
162
162
|
font-style: normal;
|
|
163
163
|
}
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
@font-face {
|
|
166
166
|
font-family: "Lato";
|
|
167
167
|
src: url("./fonts/Lato/Lato-Black.woff2") format("woff2"),
|
|
168
|
-
|
|
168
|
+
url("./fonts/Lato/Lato-Black.woff") format("woff");
|
|
169
169
|
font-weight: 900;
|
|
170
170
|
font-style: normal;
|
|
171
171
|
}
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
@font-face {
|
|
174
174
|
font-family: "Lato";
|
|
175
175
|
src: url("./fonts/Lato/Lato-Light.woff2") format("woff2"),
|
|
176
|
-
|
|
176
|
+
url("./fonts/Lato/Lato-Light.woff") format("woff");
|
|
177
177
|
font-weight: 300;
|
|
178
178
|
font-style: normal;
|
|
179
179
|
}
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
@font-face {
|
|
182
182
|
font-family: "Lato";
|
|
183
183
|
src: url("./fonts/Lato/Lato-Regular.woff2") format("woff2"),
|
|
184
|
-
|
|
184
|
+
url("./fonts/Lato/Lato-Regular.woff") format("woff");
|
|
185
185
|
font-weight: normal;
|
|
186
186
|
font-style: normal;
|
|
187
187
|
}
|
|
@@ -189,7 +189,171 @@
|
|
|
189
189
|
@font-face {
|
|
190
190
|
font-family: "Lato Hairline";
|
|
191
191
|
src: url("./fonts/Lato/Lato-Hairline.woff2") format("woff2"),
|
|
192
|
-
|
|
192
|
+
url("./fonts/Lato/Lato-Hairline.woff") format("woff");
|
|
193
193
|
font-weight: 300;
|
|
194
194
|
font-style: normal;
|
|
195
195
|
}
|
|
196
|
+
|
|
197
|
+
/** Inter **/
|
|
198
|
+
@font-face {
|
|
199
|
+
font-family: "Inter";
|
|
200
|
+
font-style: normal;
|
|
201
|
+
font-weight: 100;
|
|
202
|
+
font-display: swap;
|
|
203
|
+
src: url("./fonts/Inter/Inter-Thin.woff2?v=3.19") format("woff2"),
|
|
204
|
+
url("./fonts/Inter/Inter-Thin.woff?v=3.19") format("woff");
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@font-face {
|
|
208
|
+
font-family: "Inter";
|
|
209
|
+
font-style: italic;
|
|
210
|
+
font-weight: 100;
|
|
211
|
+
font-display: swap;
|
|
212
|
+
src: url("./fonts/Inter/Inter-ThinItalic.woff2?v=3.19") format("woff2"),
|
|
213
|
+
url("./fonts/Inter/Inter-ThinItalic.woff?v=3.19") format("woff");
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@font-face {
|
|
217
|
+
font-family: "Inter";
|
|
218
|
+
font-style: normal;
|
|
219
|
+
font-weight: 200;
|
|
220
|
+
font-display: swap;
|
|
221
|
+
src: url("./fonts/Inter/Inter-ExtraLight.woff2?v=3.19") format("woff2"),
|
|
222
|
+
url("./fonts/Inter/Inter-ExtraLight.woff?v=3.19") format("woff");
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@font-face {
|
|
226
|
+
font-family: "Inter";
|
|
227
|
+
font-style: italic;
|
|
228
|
+
font-weight: 200;
|
|
229
|
+
font-display: swap;
|
|
230
|
+
src: url("./fonts/Inter/Inter-ExtraLightItalic.woff2?v=3.19") format("woff2"),
|
|
231
|
+
url("./fonts/Inter/Inter-ExtraLightItalic.woff?v=3.19") format("woff");
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@font-face {
|
|
235
|
+
font-family: "Inter";
|
|
236
|
+
font-style: normal;
|
|
237
|
+
font-weight: 300;
|
|
238
|
+
font-display: swap;
|
|
239
|
+
src: url("./fonts/Inter/Inter-Light.woff2?v=3.19") format("woff2"),
|
|
240
|
+
url("./fonts/Inter/Inter-Light.woff?v=3.19") format("woff");
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
@font-face {
|
|
244
|
+
font-family: "Inter";
|
|
245
|
+
font-style: italic;
|
|
246
|
+
font-weight: 300;
|
|
247
|
+
font-display: swap;
|
|
248
|
+
src: url("./fonts/Inter/Inter-LightItalic.woff2?v=3.19") format("woff2"),
|
|
249
|
+
url("./fonts/Inter/Inter-LightItalic.woff?v=3.19") format("woff");
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@font-face {
|
|
253
|
+
font-family: "Inter";
|
|
254
|
+
font-style: normal;
|
|
255
|
+
font-weight: 400;
|
|
256
|
+
font-display: swap;
|
|
257
|
+
src: url("./fonts/Inter/Inter-Regular.woff2?v=3.19") format("woff2"),
|
|
258
|
+
url("./fonts/Inter/Inter-Regular.woff?v=3.19") format("woff");
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@font-face {
|
|
262
|
+
font-family: "Inter";
|
|
263
|
+
font-style: italic;
|
|
264
|
+
font-weight: 400;
|
|
265
|
+
font-display: swap;
|
|
266
|
+
src: url("./fonts/Inter/Inter-Italic.woff2?v=3.19") format("woff2"),
|
|
267
|
+
url("./fonts/Inter/Inter-Italic.woff?v=3.19") format("woff");
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
@font-face {
|
|
271
|
+
font-family: "Inter";
|
|
272
|
+
font-style: normal;
|
|
273
|
+
font-weight: 500;
|
|
274
|
+
font-display: swap;
|
|
275
|
+
src: url("./fonts/Inter/Inter-Medium.woff2?v=3.19") format("woff2"),
|
|
276
|
+
url("./fonts/Inter/Inter-Medium.woff?v=3.19") format("woff");
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
@font-face {
|
|
280
|
+
font-family: "Inter";
|
|
281
|
+
font-style: italic;
|
|
282
|
+
font-weight: 500;
|
|
283
|
+
font-display: swap;
|
|
284
|
+
src: url("./fonts/Inter/Inter-MediumItalic.woff2?v=3.19") format("woff2"),
|
|
285
|
+
url("./fonts/Inter/Inter-MediumItalic.woff?v=3.19") format("woff");
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
@font-face {
|
|
289
|
+
font-family: "Inter";
|
|
290
|
+
font-style: normal;
|
|
291
|
+
font-weight: 600;
|
|
292
|
+
font-display: swap;
|
|
293
|
+
src: url("./fonts/Inter/Inter-SemiBold.woff2?v=3.19") format("woff2"),
|
|
294
|
+
url("./fonts/Inter/Inter-SemiBold.woff?v=3.19") format("woff");
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@font-face {
|
|
298
|
+
font-family: "Inter";
|
|
299
|
+
font-style: italic;
|
|
300
|
+
font-weight: 600;
|
|
301
|
+
font-display: swap;
|
|
302
|
+
src: url("./fonts/Inter/Inter-SemiBoldItalic.woff2?v=3.19") format("woff2"),
|
|
303
|
+
url("./fonts/Inter/Inter-SemiBoldItalic.woff?v=3.19") format("woff");
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@font-face {
|
|
307
|
+
font-family: "Inter";
|
|
308
|
+
font-style: normal;
|
|
309
|
+
font-weight: 700;
|
|
310
|
+
font-display: swap;
|
|
311
|
+
src: url("./fonts/Inter/Inter-Bold.woff2?v=3.19") format("woff2"),
|
|
312
|
+
url("./fonts/Inter/Inter-Bold.woff?v=3.19") format("woff");
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
@font-face {
|
|
316
|
+
font-family: "Inter";
|
|
317
|
+
font-style: italic;
|
|
318
|
+
font-weight: 700;
|
|
319
|
+
font-display: swap;
|
|
320
|
+
src: url("./fonts/Inter/Inter-BoldItalic.woff2?v=3.19") format("woff2"),
|
|
321
|
+
url("./fonts/Inter/Inter-BoldItalic.woff?v=3.19") format("woff");
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@font-face {
|
|
325
|
+
font-family: "Inter";
|
|
326
|
+
font-style: normal;
|
|
327
|
+
font-weight: 800;
|
|
328
|
+
font-display: swap;
|
|
329
|
+
src: url("./fonts/Inter/Inter-ExtraBold.woff2?v=3.19") format("woff2"),
|
|
330
|
+
url("./fonts/Inter/Inter-ExtraBold.woff?v=3.19") format("woff");
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
@font-face {
|
|
334
|
+
font-family: "Inter";
|
|
335
|
+
font-style: italic;
|
|
336
|
+
font-weight: 800;
|
|
337
|
+
font-display: swap;
|
|
338
|
+
src: url("./fonts/Inter/Inter-ExtraBoldItalic.woff2?v=3.19") format("woff2"),
|
|
339
|
+
url("./fonts/Inter/Inter-ExtraBoldItalic.woff?v=3.19") format("woff");
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@font-face {
|
|
343
|
+
font-family: "Inter";
|
|
344
|
+
font-style: normal;
|
|
345
|
+
font-weight: 900;
|
|
346
|
+
font-display: swap;
|
|
347
|
+
src: url("./fonts/Inter/Inter-Black.woff2?v=3.19") format("woff2"),
|
|
348
|
+
url("./fonts/Inter/Inter-Black.woff?v=3.19") format("woff");
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
@font-face {
|
|
352
|
+
font-family: "Inter";
|
|
353
|
+
font-style: italic;
|
|
354
|
+
font-weight: 900;
|
|
355
|
+
font-display: swap;
|
|
356
|
+
src: url("./fonts/Inter/Inter-BlackItalic.woff2?v=3.19") format("woff2"),
|
|
357
|
+
url("./fonts/Inter/Inter-BlackItalic.woff?v=3.19") format("woff");
|
|
358
|
+
}
|
|
359
|
+
|
package/dist/deskpro-ui.d.ts
CHANGED
|
@@ -1691,7 +1691,7 @@ export declare interface DividerProps {
|
|
|
1691
1691
|
themeColor?: ThemeColorKey;
|
|
1692
1692
|
}
|
|
1693
1693
|
|
|
1694
|
-
declare type DpCustomIconsId = "active-call" | "admin" | "agent" | "api" | "apps-zapier" | "arrow" | "column-width" | "community" | "crown" | "deskpro" | "dot" | "drag" | "dual-view" | "email-primary" | "enter" | "export-alt" | "export" | "follow-up" | "glossary" | "google-analytics" | "grip" | "hang-up" | "helping-hand" | "im-outline" | "im-send" | "im" | "inbound-call" | "kanban-view" | "level-down" | "linked-ticket" | "location-arrow" | "merge" | "merge2" | "missed-call" | "mobile-rotate" | "organization-circle" | "outbound-call" | "read" | "record" | "sent" | "sip-address" | "sort" | "transfer-queue" | "triangle" | "warm-add" | "warm-transfer" | "webhook";
|
|
1694
|
+
declare type DpCustomIconsId = "active-call" | "admin" | "advanced-filter" | "agent" | "api" | "apps-zapier" | "arrow" | "column-width" | "community" | "crown" | "deskpro" | "dot" | "drag" | "dual-view" | "email-primary" | "enter" | "export-alt" | "export" | "follow-up" | "glossary" | "google-analytics" | "grip" | "hang-up" | "helping-hand" | "im-outline" | "im-send" | "im" | "inbound-call" | "kanban-view" | "level-down" | "linked-ticket" | "location-arrow" | "merge" | "merge2" | "missed-call" | "mobile-rotate" | "organization-circle" | "outbound-call" | "read" | "record" | "sent" | "sip-address" | "sort" | "transfer-queue" | "triangle" | "warm-add" | "warm-transfer" | "webhook";
|
|
1695
1695
|
|
|
1696
1696
|
/**
|
|
1697
1697
|
* Wraps around any child to upgrade it to a dropdown component. If used in the
|
|
@@ -2058,7 +2058,7 @@ export declare type FormikFieldProps<T = any> = {
|
|
|
2058
2058
|
/**
|
|
2059
2059
|
* @public
|
|
2060
2060
|
*/
|
|
2061
|
-
export declare const getTextareaNumberOfLines: (
|
|
2061
|
+
export declare const getTextareaNumberOfLines: (element: HTMLTextAreaElement | HTMLDivElement) => number;
|
|
2062
2062
|
|
|
2063
2063
|
/**
|
|
2064
2064
|
* @public
|
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
export const DP_CUSTOM_ICONS_CODEPOINTS = {
|
|
2
2
|
"active-call": "61697",
|
|
3
3
|
admin: "61698",
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export: "61713",
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"im-
|
|
27
|
-
im: "61722",
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"warm-
|
|
48
|
-
|
|
4
|
+
"advanced-filter": "61699",
|
|
5
|
+
agent: "61700",
|
|
6
|
+
api: "61701",
|
|
7
|
+
"apps-zapier": "61702",
|
|
8
|
+
arrow: "61703",
|
|
9
|
+
"column-width": "61704",
|
|
10
|
+
community: "61705",
|
|
11
|
+
crown: "61706",
|
|
12
|
+
deskpro: "61707",
|
|
13
|
+
dot: "61708",
|
|
14
|
+
drag: "61709",
|
|
15
|
+
"dual-view": "61710",
|
|
16
|
+
"email-primary": "61711",
|
|
17
|
+
enter: "61712",
|
|
18
|
+
"export-alt": "61713",
|
|
19
|
+
export: "61714",
|
|
20
|
+
"follow-up": "61715",
|
|
21
|
+
glossary: "61716",
|
|
22
|
+
"google-analytics": "61717",
|
|
23
|
+
grip: "61718",
|
|
24
|
+
"hang-up": "61719",
|
|
25
|
+
"helping-hand": "61720",
|
|
26
|
+
"im-outline": "61721",
|
|
27
|
+
"im-send": "61722",
|
|
28
|
+
im: "61723",
|
|
29
|
+
"inbound-call": "61724",
|
|
30
|
+
"kanban-view": "61725",
|
|
31
|
+
"level-down": "61726",
|
|
32
|
+
"linked-ticket": "61727",
|
|
33
|
+
"location-arrow": "61728",
|
|
34
|
+
merge: "61729",
|
|
35
|
+
merge2: "61730",
|
|
36
|
+
"missed-call": "61731",
|
|
37
|
+
"mobile-rotate": "61732",
|
|
38
|
+
"organization-circle": "61733",
|
|
39
|
+
"outbound-call": "61734",
|
|
40
|
+
read: "61735",
|
|
41
|
+
record: "61736",
|
|
42
|
+
sent: "61737",
|
|
43
|
+
"sip-address": "61738",
|
|
44
|
+
sort: "61739",
|
|
45
|
+
"transfer-queue": "61740",
|
|
46
|
+
triangle: "61741",
|
|
47
|
+
"warm-add": "61742",
|
|
48
|
+
"warm-transfer": "61743",
|
|
49
|
+
webhook: "61744",
|
|
49
50
|
};
|
|
50
51
|
//# sourceMappingURL=customIconsCodegen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customIconsCodegen.js","sourceRoot":"","sources":["../../../../src/components/Icon/customIconsCodegen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customIconsCodegen.js","sourceRoot":"","sources":["../../../../src/components/Icon/customIconsCodegen.ts"],"names":[],"mappings":"AAkDA,MAAM,CAAC,MAAM,0BAA0B,GAAyC;IAC9E,aAAa,EAAE,OAAO;IACtB,KAAK,EAAE,OAAO;IACd,iBAAiB,EAAE,OAAO;IAC1B,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,OAAO;IACZ,aAAa,EAAE,OAAO;IACtB,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,OAAO;IACvB,SAAS,EAAE,OAAO;IAClB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,OAAO;IAChB,GAAG,EAAE,OAAO;IACZ,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,OAAO;IACpB,eAAe,EAAE,OAAO;IACxB,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,OAAO;IACrB,MAAM,EAAE,OAAO;IACf,WAAW,EAAE,OAAO;IACpB,QAAQ,EAAE,OAAO;IACjB,kBAAkB,EAAE,OAAO;IAC3B,IAAI,EAAE,OAAO;IACb,SAAS,EAAE,OAAO;IAClB,cAAc,EAAE,OAAO;IACvB,YAAY,EAAE,OAAO;IACrB,SAAS,EAAE,OAAO;IAClB,EAAE,EAAE,OAAO;IACX,cAAc,EAAE,OAAO;IACvB,aAAa,EAAE,OAAO;IACtB,YAAY,EAAE,OAAO;IACrB,eAAe,EAAE,OAAO;IACxB,gBAAgB,EAAE,OAAO;IACzB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,OAAO;IACf,aAAa,EAAE,OAAO;IACtB,eAAe,EAAE,OAAO;IACxB,qBAAqB,EAAE,OAAO;IAC9B,eAAe,EAAE,OAAO;IACxB,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,OAAO;IACb,aAAa,EAAE,OAAO;IACtB,IAAI,EAAE,OAAO;IACb,gBAAgB,EAAE,OAAO;IACzB,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,OAAO;IACnB,eAAe,EAAE,OAAO;IACxB,OAAO,EAAE,OAAO;CACjB,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { baseInlineDisplayTextStyle, baseInlineStyle, baseInlineStyleBorder, bas
|
|
|
8
8
|
import { baseInlineInputStyle } from "../Input/styles";
|
|
9
9
|
import Highlighter from "react-highlight-words";
|
|
10
10
|
import { dpNameProp } from "../../utils/dpName";
|
|
11
|
+
import { Tooltip } from "../Tooltip";
|
|
11
12
|
const TextAreaStyle = styled.div `
|
|
12
13
|
white-space: pre-wrap;
|
|
13
14
|
& span {
|
|
@@ -17,13 +18,16 @@ const TextAreaStyle = styled.div `
|
|
|
17
18
|
/**
|
|
18
19
|
* @public
|
|
19
20
|
*/
|
|
20
|
-
export const getTextareaNumberOfLines = (
|
|
21
|
-
const previous_height =
|
|
22
|
-
|
|
23
|
-
const lines = Math.floor(
|
|
24
|
-
|
|
21
|
+
export const getTextareaNumberOfLines = (element) => {
|
|
22
|
+
const previous_height = element.style.height;
|
|
23
|
+
element.style.height = "0";
|
|
24
|
+
const lines = Math.floor(element.scrollHeight / parseInt(getComputedStyle(element).lineHeight));
|
|
25
|
+
element.style.height = previous_height;
|
|
25
26
|
return lines;
|
|
26
27
|
};
|
|
28
|
+
const getHeightByRows = (element, rows) => {
|
|
29
|
+
return Math.ceil(rows * parseInt(getComputedStyle(element).lineHeight));
|
|
30
|
+
};
|
|
27
31
|
function getStyleByVariant(props) {
|
|
28
32
|
if (props.variant === "normal" || props.variant === undefined) {
|
|
29
33
|
return css `
|
|
@@ -56,22 +60,27 @@ export const TextArea = styled(forwardRef(function TextArea({ error, onChange, c
|
|
|
56
60
|
* @public
|
|
57
61
|
*/
|
|
58
62
|
export const TextAreaWithDisplay = styled(forwardRef(function TextArea({ error, isVisibleInput: isVisibleInputFromParent, onChange, maxRows, removeHoverStyle, disableEditOnClick, highlightWord, onClickInputGroup, ...rest }, ref) {
|
|
63
|
+
var _a;
|
|
59
64
|
const [rows, setRows] = useState(1);
|
|
60
|
-
const [isVisibleInput, setIsVisibleInput] = useState(
|
|
65
|
+
const [isVisibleInput, setIsVisibleInput] = useState(false);
|
|
61
66
|
const [isVisibleRightIcon, setIsVisibleRightIcon] = useState(false);
|
|
67
|
+
const [maxHeightPx, setMaxHeightPx] = useState(); // px
|
|
62
68
|
useEffect(() => {
|
|
63
69
|
// Clicking on parent (eg label) should also switch to displaying the input
|
|
64
70
|
typeof isVisibleInputFromParent !== "undefined" &&
|
|
65
71
|
setIsVisibleInput(isVisibleInputFromParent);
|
|
66
72
|
}, [isVisibleInputFromParent]);
|
|
67
73
|
const localRef = useRef(null);
|
|
74
|
+
const displayTextRef = useRef(null);
|
|
68
75
|
useEffect(() => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
76
|
+
// on inital render or swapbetween textarea input vs DisplayText:
|
|
77
|
+
// This sets the number of rows the text area needs based of height of the DisplayText
|
|
78
|
+
if (!isVisibleInput && displayTextRef.current) {
|
|
79
|
+
setRows(getTextareaNumberOfLines(displayTextRef.current));
|
|
72
80
|
}
|
|
73
|
-
}, [setRows,
|
|
81
|
+
}, [setRows, isVisibleInput]);
|
|
74
82
|
useEffect(() => {
|
|
83
|
+
// Focuses the textarea input when: swapping from DisplayText to textarea input
|
|
75
84
|
if (isVisibleInput && localRef.current) {
|
|
76
85
|
localRef.current.focus({
|
|
77
86
|
preventScroll: true,
|
|
@@ -79,34 +88,49 @@ export const TextAreaWithDisplay = styled(forwardRef(function TextArea({ error,
|
|
|
79
88
|
localRef.current.setSelectionRange(localRef.current.value.length, localRef.current.value.length);
|
|
80
89
|
}
|
|
81
90
|
}, [isVisibleInput]);
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
// Sets the max height in px when give a max number of rows
|
|
93
|
+
if (displayTextRef.current) {
|
|
94
|
+
const newMaxHeightPx = maxRows
|
|
95
|
+
? getHeightByRows(displayTextRef.current, maxRows)
|
|
96
|
+
: undefined;
|
|
97
|
+
setMaxHeightPx(newMaxHeightPx);
|
|
98
|
+
}
|
|
99
|
+
}, [maxRows]);
|
|
100
|
+
// use tooltip when there isn't enough space for the TextDisplay context limited by maxrows prop
|
|
101
|
+
const showTooltip = maxHeightPx &&
|
|
102
|
+
displayTextRef.current &&
|
|
103
|
+
maxHeightPx < ((_a = displayTextRef.current) === null || _a === void 0 ? void 0 : _a.scrollHeight) &&
|
|
104
|
+
!isVisibleInput;
|
|
105
|
+
return (React.createElement(Tooltip, { content: rest.value, disabled: !showTooltip, styleType: "light", hideOnClick: true },
|
|
106
|
+
React.createElement(TextAreaStyle, null,
|
|
107
|
+
React.createElement(InputGroup, { "data-disabled": rest.disabled, "data-readonly": rest.readOnly, onClick: (e) => {
|
|
108
|
+
if (!(rest.disabled || rest.readOnly || disableEditOnClick)) {
|
|
109
|
+
setIsVisibleInput(true);
|
|
110
|
+
setIsVisibleRightIcon(true);
|
|
111
|
+
onClickInputGroup && onClickInputGroup(e);
|
|
112
|
+
}
|
|
113
|
+
}, onMouseEnter: () => {
|
|
114
|
+
if (!(rest.disabled || rest.readOnly)) {
|
|
115
|
+
setIsVisibleRightIcon(true);
|
|
116
|
+
}
|
|
117
|
+
}, onMouseLeave: () => {
|
|
118
|
+
if (!(rest.disabled || rest.readOnly)) {
|
|
119
|
+
setIsVisibleRightIcon(false);
|
|
120
|
+
}
|
|
121
|
+
} }, isVisibleInput ? (React.createElement("textarea", { ...rest, ref: mergeRefs(localRef, ref), rows: rows, onChange: (e) => {
|
|
122
|
+
onChange && onChange(e);
|
|
123
|
+
setRows(getTextareaNumberOfLines(e.target));
|
|
124
|
+
}, onBlur: (e) => {
|
|
125
|
+
setIsVisibleInput(false);
|
|
95
126
|
setIsVisibleRightIcon(false);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
rest.onBlur && rest.onBlur(e);
|
|
104
|
-
}, onFocus: (e) => rest.onFocus && rest.onFocus(e) })) : (React.createElement(DisplayText, { ...rest, "data-disabled": rest.disabled, "data-readonly": rest.readOnly },
|
|
105
|
-
React.createElement(DisplayTextInner, { rows: maxRows ? Math.min(rows, maxRows) : rows }, highlightWord && typeof rest.value === "string" ? (React.createElement(Highlighter, { searchWords: [highlightWord], autoEscape: typeof highlightWord === "string", textToHighlight: rest.value, highlightStyle: { fontWeight: "bold", background: "none" } })) : (rest.value || rest.defaultValue || rest.placeholder)),
|
|
106
|
-
!removeHoverStyle && (React.createElement(RightElement, { style: {
|
|
107
|
-
visibility: isVisibleRightIcon ? "visible" : "hidden",
|
|
108
|
-
} },
|
|
109
|
-
React.createElement(Icon, { icon: faPen }))))))));
|
|
127
|
+
rest.onBlur && rest.onBlur(e);
|
|
128
|
+
}, onFocus: (e) => rest.onFocus && rest.onFocus(e) })) : (React.createElement(DisplayText, { ...rest, "data-disabled": rest.disabled, "data-readonly": rest.readOnly },
|
|
129
|
+
React.createElement(DisplayTextInner, { style: { maxHeight: maxHeightPx }, ref: displayTextRef }, highlightWord && typeof rest.value === "string" ? (React.createElement(Highlighter, { searchWords: [highlightWord], autoEscape: typeof highlightWord === "string", textToHighlight: rest.value, highlightStyle: { fontWeight: "bold", background: "none" } })) : (rest.value || rest.defaultValue || rest.placeholder)),
|
|
130
|
+
!removeHoverStyle && (React.createElement(RightElement, { style: {
|
|
131
|
+
visibility: isVisibleRightIcon ? "visible" : "hidden",
|
|
132
|
+
} },
|
|
133
|
+
React.createElement(Icon, { icon: faPen })))))))));
|
|
110
134
|
})) `
|
|
111
135
|
${baseInlineStyle};
|
|
112
136
|
${({ removeHoverStyle }) => !removeHoverStyle && baseInlineStyleBorder};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,UAAU,EAIV,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAC1D,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EACL,0BAA0B,EAC1B,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,YAAY,GACb,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,WAAW,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,UAAU,EAIV,SAAS,EACT,MAAM,EACN,QAAQ,GACT,MAAM,OAAO,CAAC;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EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE,cAAc,IACrE,aAAa,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CACjD,oBAAC,WAAW,IACV,WAAW,EAAE,CAAC,aAAuB,CAAC,EACtC,UAAU,EAAE,OAAO,aAAa,KAAK,QAAQ,EAC7C,eAAe,EAAE,IAAI,CAAC,KAAK,EAC3B,cAAc,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAC1D,CACH,CAAC,CAAC,CAAC,CACF,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,WAAW,CACpD,CACgB;gBAClB,CAAC,gBAAgB,IAAI,CACpB,oBAAC,YAAY,IACX,KAAK,EAAE;wBACL,UAAU,EAAE,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ;qBACtD;oBAED,oBAAC,IAAI,IAAC,IAAI,EAAE,KAAK,GAAI,CACR,CAChB,CACW,CACf,CACU,CACC,CACR,CACX,CAAC;AACJ,CAAC,CAAC,CACH,CAAA;IACG,eAAe;IACf,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC,gBAAgB,IAAI,qBAAqB;IACpE,0BAA0B;IAC1B,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,UAAU;CAC3D,CAAC"}
|
|
@@ -127,7 +127,6 @@ export const DisplayText = styled.span `
|
|
|
127
127
|
`;
|
|
128
128
|
export const DisplayTextInner = styled.span `
|
|
129
129
|
display: -webkit-box;
|
|
130
|
-
-webkit-line-clamp: ${({ rows }) => rows};
|
|
131
130
|
-webkit-box-orient: vertical;
|
|
132
131
|
overflow: hidden;
|
|
133
132
|
overflow-wrap: break-word;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|