@deskpro/deskpro-ui 4.1.1 → 4.2.1
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/Button/Button.js +5 -5
- package/dist/cjs/components/Button/Button.js.map +1 -1
- package/dist/cjs/components/Input/Input.js +5 -5
- package/dist/cjs/components/Input/Input.js.map +1 -1
- package/dist/cjs/components/Input/styles.js +1 -1
- package/dist/cjs/components/Input/styles.js.map +1 -1
- package/dist/cjs/components/LabelTag/Tag.js +6 -4
- package/dist/cjs/components/LabelTag/Tag.js.map +1 -1
- package/dist/cjs/components/Pill/UrgencyCircle.js +3 -4
- package/dist/cjs/components/Pill/UrgencyCircle.js.map +1 -1
- package/dist/cjs/components/TextArea/styles.js +1 -0
- package/dist/cjs/components/TextArea/styles.js.map +1 -1
- package/dist/cjs/components/Typography/Typography.js +30 -28
- package/dist/cjs/components/Typography/Typography.js.map +1 -1
- package/dist/deskpro-ui.d.ts +92 -31
- package/dist/esm/components/Button/Button.js +5 -5
- package/dist/esm/components/Button/Button.js.map +1 -1
- package/dist/esm/components/Input/Input.js +5 -5
- package/dist/esm/components/Input/Input.js.map +1 -1
- package/dist/esm/components/Input/styles.js +1 -1
- package/dist/esm/components/Input/styles.js.map +1 -1
- package/dist/esm/components/LabelTag/Tag.js +6 -4
- package/dist/esm/components/LabelTag/Tag.js.map +1 -1
- package/dist/esm/components/Pill/UrgencyCircle.js +3 -4
- package/dist/esm/components/Pill/UrgencyCircle.js.map +1 -1
- package/dist/esm/components/TextArea/styles.js +1 -0
- package/dist/esm/components/TextArea/styles.js.map +1 -1
- package/dist/esm/components/Typography/Typography.js +30 -28
- package/dist/esm/components/Typography/Typography.js.map +1 -1
- package/package.json +1 -1
|
@@ -83,6 +83,7 @@ const h11 = (0, styled_components_1.css) `
|
|
|
83
83
|
`;
|
|
84
84
|
/**
|
|
85
85
|
* @public
|
|
86
|
+
* @deprecated Don't use outside this file, use the styled typography components instead eg <TSpan type="h0" /> or <H0 />
|
|
86
87
|
*/
|
|
87
88
|
exports.headingStyles = {
|
|
88
89
|
h0,
|
|
@@ -105,84 +106,84 @@ const common = (0, styled_components_1.css) `
|
|
|
105
106
|
/**
|
|
106
107
|
* @public
|
|
107
108
|
*/
|
|
108
|
-
exports.H0 = styled_components_1.default.h1 `
|
|
109
|
+
exports.H0 = styled_components_1.default.h1.attrs({ type: "h0" }) `
|
|
109
110
|
${common};
|
|
110
111
|
${exports.headingStyles.h0}
|
|
111
112
|
`;
|
|
112
113
|
/**
|
|
113
114
|
* @public
|
|
114
115
|
*/
|
|
115
|
-
exports.H1 = styled_components_1.default.h1 `
|
|
116
|
+
exports.H1 = styled_components_1.default.h1.attrs({ type: "h1" }) `
|
|
116
117
|
${common};
|
|
117
118
|
${exports.headingStyles.h1}
|
|
118
119
|
`;
|
|
119
120
|
/**
|
|
120
121
|
* @public
|
|
121
122
|
*/
|
|
122
|
-
exports.H2 = styled_components_1.default.h2 `
|
|
123
|
+
exports.H2 = styled_components_1.default.h2.attrs({ type: "h2" }) `
|
|
123
124
|
${common};
|
|
124
125
|
${exports.headingStyles.h2}
|
|
125
126
|
`;
|
|
126
127
|
/**
|
|
127
128
|
* @public
|
|
128
129
|
*/
|
|
129
|
-
exports.H3 = styled_components_1.default.h3 `
|
|
130
|
+
exports.H3 = styled_components_1.default.h3.attrs({ type: "h3" }) `
|
|
130
131
|
${common};
|
|
131
132
|
${exports.headingStyles.h3}
|
|
132
133
|
`;
|
|
133
134
|
/**
|
|
134
135
|
* @public
|
|
135
136
|
*/
|
|
136
|
-
exports.H4 = styled_components_1.default.h4 `
|
|
137
|
+
exports.H4 = styled_components_1.default.h4.attrs({ type: "h4" }) `
|
|
137
138
|
${common};
|
|
138
139
|
${exports.headingStyles.h4}
|
|
139
140
|
`;
|
|
140
141
|
/**
|
|
141
142
|
* @public
|
|
142
143
|
*/
|
|
143
|
-
exports.H5 = styled_components_1.default.h5 `
|
|
144
|
+
exports.H5 = styled_components_1.default.h5.attrs({ type: "h5" }) `
|
|
144
145
|
${common};
|
|
145
146
|
${exports.headingStyles.h5}
|
|
146
147
|
`;
|
|
147
148
|
/**
|
|
148
149
|
* @public
|
|
149
150
|
*/
|
|
150
|
-
exports.H6 = styled_components_1.default.h6 `
|
|
151
|
+
exports.H6 = styled_components_1.default.h6.attrs({ type: "h6" }) `
|
|
151
152
|
${common};
|
|
152
153
|
${exports.headingStyles.h6}
|
|
153
154
|
`;
|
|
154
155
|
/**
|
|
155
156
|
* @public
|
|
156
157
|
*/
|
|
157
|
-
exports.H7 = styled_components_1.default.h6 `
|
|
158
|
+
exports.H7 = styled_components_1.default.h6.attrs({ type: "h7" }) `
|
|
158
159
|
${common};
|
|
159
160
|
${exports.headingStyles.h7}
|
|
160
161
|
`;
|
|
161
162
|
/**
|
|
162
163
|
* @public
|
|
163
164
|
*/
|
|
164
|
-
exports.H8 = styled_components_1.default.h6 `
|
|
165
|
+
exports.H8 = styled_components_1.default.h6.attrs({ type: "h8" }) `
|
|
165
166
|
${common};
|
|
166
167
|
${exports.headingStyles.h8}
|
|
167
168
|
`;
|
|
168
169
|
/**
|
|
169
170
|
* @public
|
|
170
171
|
*/
|
|
171
|
-
exports.H9 = styled_components_1.default.h1 `
|
|
172
|
+
exports.H9 = styled_components_1.default.h1.attrs({ type: "h9" }) `
|
|
172
173
|
${common};
|
|
173
174
|
${exports.headingStyles.h9}
|
|
174
175
|
`;
|
|
175
176
|
/**
|
|
176
177
|
* @public
|
|
177
178
|
*/
|
|
178
|
-
exports.H10 = styled_components_1.default.h1 `
|
|
179
|
+
exports.H10 = styled_components_1.default.h1.attrs({ type: "h10" }) `
|
|
179
180
|
${common};
|
|
180
181
|
${exports.headingStyles.h10}
|
|
181
182
|
`;
|
|
182
183
|
/**
|
|
183
184
|
* @public
|
|
184
185
|
*/
|
|
185
|
-
exports.H11 = styled_components_1.default.h1 `
|
|
186
|
+
exports.H11 = styled_components_1.default.h1.attrs({ type: "h11" }) `
|
|
186
187
|
${common};
|
|
187
188
|
${exports.headingStyles.h11}
|
|
188
189
|
`;
|
|
@@ -297,6 +298,7 @@ const p18 = (0, styled_components_1.css) `
|
|
|
297
298
|
`;
|
|
298
299
|
/**
|
|
299
300
|
* @public
|
|
301
|
+
* @deprecated Don't use outside this file, use the styled typography components instead eg <TSpan type="p1" /> or <P1 />
|
|
300
302
|
*/
|
|
301
303
|
exports.paragraphStyled = {
|
|
302
304
|
p1,
|
|
@@ -321,91 +323,91 @@ exports.paragraphStyled = {
|
|
|
321
323
|
/**
|
|
322
324
|
* @public
|
|
323
325
|
*/
|
|
324
|
-
exports.P1 = styled_components_1.default.p `
|
|
326
|
+
exports.P1 = styled_components_1.default.p.attrs({ type: "p1" }) `
|
|
325
327
|
${common};
|
|
326
328
|
${exports.paragraphStyled.p1}
|
|
327
329
|
`;
|
|
328
330
|
/**
|
|
329
331
|
* @public
|
|
330
332
|
*/
|
|
331
|
-
exports.P2 = styled_components_1.default.p `
|
|
333
|
+
exports.P2 = styled_components_1.default.p.attrs({ type: "p2" }) `
|
|
332
334
|
${common};
|
|
333
335
|
${exports.paragraphStyled.p2}
|
|
334
336
|
`;
|
|
335
337
|
/**
|
|
336
338
|
* @public
|
|
337
339
|
*/
|
|
338
|
-
exports.P3 = styled_components_1.default.p `
|
|
340
|
+
exports.P3 = styled_components_1.default.p.attrs({ type: "p3" }) `
|
|
339
341
|
${common};
|
|
340
342
|
${exports.paragraphStyled.p3}
|
|
341
343
|
`;
|
|
342
344
|
/**
|
|
343
345
|
* @public
|
|
344
346
|
*/
|
|
345
|
-
exports.P4 = styled_components_1.default.p `
|
|
347
|
+
exports.P4 = styled_components_1.default.p.attrs({ type: "p4" }) `
|
|
346
348
|
${common};
|
|
347
349
|
${exports.paragraphStyled.p4}
|
|
348
350
|
`;
|
|
349
351
|
/**
|
|
350
352
|
* @public
|
|
351
353
|
*/
|
|
352
|
-
exports.P5 = styled_components_1.default.p `
|
|
354
|
+
exports.P5 = styled_components_1.default.p.attrs({ type: "p5" }) `
|
|
353
355
|
${common};
|
|
354
356
|
${exports.paragraphStyled.p5}
|
|
355
357
|
`;
|
|
356
358
|
/**
|
|
357
359
|
* @public
|
|
358
360
|
*/
|
|
359
|
-
exports.P6 = styled_components_1.default.p `
|
|
361
|
+
exports.P6 = styled_components_1.default.p.attrs({ type: "p6" }) `
|
|
360
362
|
${common};
|
|
361
363
|
${exports.paragraphStyled.p6}
|
|
362
364
|
`;
|
|
363
365
|
/**
|
|
364
366
|
* @public
|
|
365
367
|
*/
|
|
366
|
-
exports.P7 = styled_components_1.default.p `
|
|
368
|
+
exports.P7 = styled_components_1.default.p.attrs({ type: "p7" }) `
|
|
367
369
|
${common};
|
|
368
370
|
${exports.paragraphStyled.p7}
|
|
369
371
|
`;
|
|
370
372
|
/**
|
|
371
373
|
* @public
|
|
372
374
|
*/
|
|
373
|
-
exports.P8 = styled_components_1.default.p `
|
|
375
|
+
exports.P8 = styled_components_1.default.p.attrs({ type: "p8" }) `
|
|
374
376
|
${common};
|
|
375
377
|
${exports.paragraphStyled.p8}
|
|
376
378
|
`;
|
|
377
379
|
/**
|
|
378
380
|
* @public
|
|
379
381
|
*/
|
|
380
|
-
exports.P9 = styled_components_1.default.p `
|
|
382
|
+
exports.P9 = styled_components_1.default.p.attrs({ type: "p9" }) `
|
|
381
383
|
${common};
|
|
382
384
|
${exports.paragraphStyled.p9}
|
|
383
385
|
`;
|
|
384
386
|
/**
|
|
385
387
|
* @public
|
|
386
388
|
*/
|
|
387
|
-
exports.P10 = styled_components_1.default.p `
|
|
389
|
+
exports.P10 = styled_components_1.default.p.attrs({ type: "p10" }) `
|
|
388
390
|
${common};
|
|
389
391
|
${exports.paragraphStyled.p10}
|
|
390
392
|
`;
|
|
391
393
|
/**
|
|
392
394
|
* @public
|
|
393
395
|
*/
|
|
394
|
-
exports.P11 = styled_components_1.default.p `
|
|
396
|
+
exports.P11 = styled_components_1.default.p.attrs({ type: "p11" }) `
|
|
395
397
|
${common};
|
|
396
398
|
${exports.paragraphStyled.p11}
|
|
397
399
|
`;
|
|
398
400
|
/**
|
|
399
401
|
* @public
|
|
400
402
|
*/
|
|
401
|
-
exports.P12 = styled_components_1.default.p `
|
|
403
|
+
exports.P12 = styled_components_1.default.p.attrs({ type: "p12" }) `
|
|
402
404
|
${common};
|
|
403
405
|
${exports.paragraphStyled.p12}
|
|
404
406
|
`;
|
|
405
407
|
/**
|
|
406
408
|
* @public
|
|
407
409
|
*/
|
|
408
|
-
exports.P13 = styled_components_1.default.p `
|
|
410
|
+
exports.P13 = styled_components_1.default.p.attrs({ type: "p13" }) `
|
|
409
411
|
${common};
|
|
410
412
|
${exports.paragraphStyled.p13}
|
|
411
413
|
`;
|
|
@@ -433,21 +435,21 @@ exports.P15 = styled_components_1.default.code `
|
|
|
433
435
|
/**
|
|
434
436
|
* @public
|
|
435
437
|
*/
|
|
436
|
-
exports.P16 = styled_components_1.default.p `
|
|
438
|
+
exports.P16 = styled_components_1.default.p.attrs({ type: "p16" }) `
|
|
437
439
|
${common};
|
|
438
440
|
${p16}
|
|
439
441
|
`;
|
|
440
442
|
/**
|
|
441
443
|
* @public
|
|
442
444
|
*/
|
|
443
|
-
exports.P17 = styled_components_1.default.p `
|
|
445
|
+
exports.P17 = styled_components_1.default.p.attrs({ type: "p17" }) `
|
|
444
446
|
${common};
|
|
445
447
|
${p17}
|
|
446
448
|
`;
|
|
447
449
|
/**
|
|
448
450
|
* @public
|
|
449
451
|
*/
|
|
450
|
-
exports.P18 = styled_components_1.default.p `
|
|
452
|
+
exports.P18 = styled_components_1.default.p.attrs({ type: "p18" }) `
|
|
451
453
|
${common};
|
|
452
454
|
${p18}
|
|
453
455
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yDAAgD;AAKhD,eAAe;AAEf,MAAM,EAAE,GAAG,IAAA,uBA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AClC;;IAED,CAAC,KAAK,EAAE,EAAE,CACV,KAAK,CAAC,SAAS;IACf,IAAA,uBAAG,EAAA;oBACa,KAAK,CAAC,SAAS;KAC9B;CACJ,CAAC"}
|
package/dist/deskpro-ui.d.ts
CHANGED
|
@@ -2574,65 +2574,90 @@ export declare const GlobalStyles: GlobalStyleComponent< {}, DefaultTheme>;
|
|
|
2574
2574
|
/**
|
|
2575
2575
|
* @public
|
|
2576
2576
|
*/
|
|
2577
|
-
export declare const H0: StyledComponent<"h1", DefaultTheme, {
|
|
2577
|
+
export declare const H0: StyledComponent<"h1", DefaultTheme, {
|
|
2578
|
+
type: string;
|
|
2579
|
+
}, "type">;
|
|
2578
2580
|
|
|
2579
2581
|
/**
|
|
2580
2582
|
* @public
|
|
2581
2583
|
*/
|
|
2582
|
-
export declare const H1: StyledComponent<"h1", DefaultTheme, {
|
|
2584
|
+
export declare const H1: StyledComponent<"h1", DefaultTheme, {
|
|
2585
|
+
type: string;
|
|
2586
|
+
}, "type">;
|
|
2583
2587
|
|
|
2584
2588
|
/**
|
|
2585
2589
|
* @public
|
|
2586
2590
|
*/
|
|
2587
|
-
export declare const H10: StyledComponent<"h1", DefaultTheme, {
|
|
2591
|
+
export declare const H10: StyledComponent<"h1", DefaultTheme, {
|
|
2592
|
+
type: string;
|
|
2593
|
+
}, "type">;
|
|
2588
2594
|
|
|
2589
2595
|
/**
|
|
2590
2596
|
* @public
|
|
2591
2597
|
*/
|
|
2592
|
-
export declare const H11: StyledComponent<"h1", DefaultTheme, {
|
|
2598
|
+
export declare const H11: StyledComponent<"h1", DefaultTheme, {
|
|
2599
|
+
type: string;
|
|
2600
|
+
}, "type">;
|
|
2593
2601
|
|
|
2594
2602
|
/**
|
|
2595
2603
|
* @public
|
|
2596
2604
|
*/
|
|
2597
|
-
export declare const H2: StyledComponent<"h2", DefaultTheme, {
|
|
2605
|
+
export declare const H2: StyledComponent<"h2", DefaultTheme, {
|
|
2606
|
+
type: string;
|
|
2607
|
+
}, "type">;
|
|
2598
2608
|
|
|
2599
2609
|
/**
|
|
2600
2610
|
* @public
|
|
2601
2611
|
*/
|
|
2602
|
-
export declare const H3: StyledComponent<"h3", DefaultTheme, {
|
|
2612
|
+
export declare const H3: StyledComponent<"h3", DefaultTheme, {
|
|
2613
|
+
type: string;
|
|
2614
|
+
}, "type">;
|
|
2603
2615
|
|
|
2604
2616
|
/**
|
|
2605
2617
|
* @public
|
|
2606
2618
|
*/
|
|
2607
|
-
export declare const H4: StyledComponent<"h4", DefaultTheme, {
|
|
2619
|
+
export declare const H4: StyledComponent<"h4", DefaultTheme, {
|
|
2620
|
+
type: string;
|
|
2621
|
+
}, "type">;
|
|
2608
2622
|
|
|
2609
2623
|
/**
|
|
2610
2624
|
* @public
|
|
2611
2625
|
*/
|
|
2612
|
-
export declare const H5: StyledComponent<"h5", DefaultTheme, {
|
|
2626
|
+
export declare const H5: StyledComponent<"h5", DefaultTheme, {
|
|
2627
|
+
type: string;
|
|
2628
|
+
}, "type">;
|
|
2613
2629
|
|
|
2614
2630
|
/**
|
|
2615
2631
|
* @public
|
|
2616
2632
|
*/
|
|
2617
|
-
export declare const H6: StyledComponent<"h6", DefaultTheme, {
|
|
2633
|
+
export declare const H6: StyledComponent<"h6", DefaultTheme, {
|
|
2634
|
+
type: string;
|
|
2635
|
+
}, "type">;
|
|
2618
2636
|
|
|
2619
2637
|
/**
|
|
2620
2638
|
* @public
|
|
2621
2639
|
*/
|
|
2622
|
-
export declare const H7: StyledComponent<"h6", DefaultTheme, {
|
|
2640
|
+
export declare const H7: StyledComponent<"h6", DefaultTheme, {
|
|
2641
|
+
type: string;
|
|
2642
|
+
}, "type">;
|
|
2623
2643
|
|
|
2624
2644
|
/**
|
|
2625
2645
|
* @public
|
|
2626
2646
|
*/
|
|
2627
|
-
export declare const H8: StyledComponent<"h6", DefaultTheme, {
|
|
2647
|
+
export declare const H8: StyledComponent<"h6", DefaultTheme, {
|
|
2648
|
+
type: string;
|
|
2649
|
+
}, "type">;
|
|
2628
2650
|
|
|
2629
2651
|
/**
|
|
2630
2652
|
* @public
|
|
2631
2653
|
*/
|
|
2632
|
-
export declare const H9: StyledComponent<"h1", DefaultTheme, {
|
|
2654
|
+
export declare const H9: StyledComponent<"h1", DefaultTheme, {
|
|
2655
|
+
type: string;
|
|
2656
|
+
}, "type">;
|
|
2633
2657
|
|
|
2634
2658
|
/**
|
|
2635
2659
|
* @public
|
|
2660
|
+
* @deprecated Don't use outside this file, use the styled typography components instead eg <TSpan type="h0" /> or <H0 />
|
|
2636
2661
|
*/
|
|
2637
2662
|
export declare const headingStyles: {
|
|
2638
2663
|
h0: FlattenInterpolation<ThemeProps<DefaultTheme>>;
|
|
@@ -3073,7 +3098,7 @@ export declare const Input: StyledComponent<React_2.ForwardRefExoticComponent<In
|
|
|
3073
3098
|
*/
|
|
3074
3099
|
export declare const InputGroupContainer: StyledComponent<"div", DefaultTheme, {
|
|
3075
3100
|
error?: boolean | undefined;
|
|
3076
|
-
type?: "p2" | undefined;
|
|
3101
|
+
type?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "h0" | "h7" | "h8" | "h9" | "h10" | "h11" | "p1" | "p2" | "p3" | "p4" | "p5" | "p6" | "p7" | "p8" | "p9" | "p10" | "p11" | "p12" | "p13" | "p16" | "p17" | "p18" | "p14" | "p15" | undefined;
|
|
3077
3102
|
}, never>;
|
|
3078
3103
|
|
|
3079
3104
|
/**
|
|
@@ -3120,6 +3145,7 @@ export declare interface InputWithDisplayProps extends Omit<InputProps, "variant
|
|
|
3120
3145
|
enterKeyConfirmation?: boolean;
|
|
3121
3146
|
hideBorder?: boolean;
|
|
3122
3147
|
hideAsterisk?: boolean;
|
|
3148
|
+
typographyType?: TProps["type"];
|
|
3123
3149
|
}
|
|
3124
3150
|
|
|
3125
3151
|
declare type InteractionType = "click" | "contextMenu" | "hover";
|
|
@@ -4068,27 +4094,37 @@ export declare interface OverlayProps {
|
|
|
4068
4094
|
/**
|
|
4069
4095
|
* @public
|
|
4070
4096
|
*/
|
|
4071
|
-
export declare const P1: StyledComponent<"p", DefaultTheme, {
|
|
4097
|
+
export declare const P1: StyledComponent<"p", DefaultTheme, {
|
|
4098
|
+
type: string;
|
|
4099
|
+
}, "type">;
|
|
4072
4100
|
|
|
4073
4101
|
/**
|
|
4074
4102
|
* @public
|
|
4075
4103
|
*/
|
|
4076
|
-
export declare const P10: StyledComponent<"p", DefaultTheme, {
|
|
4104
|
+
export declare const P10: StyledComponent<"p", DefaultTheme, {
|
|
4105
|
+
type: string;
|
|
4106
|
+
}, "type">;
|
|
4077
4107
|
|
|
4078
4108
|
/**
|
|
4079
4109
|
* @public
|
|
4080
4110
|
*/
|
|
4081
|
-
export declare const P11: StyledComponent<"p", DefaultTheme, {
|
|
4111
|
+
export declare const P11: StyledComponent<"p", DefaultTheme, {
|
|
4112
|
+
type: string;
|
|
4113
|
+
}, "type">;
|
|
4082
4114
|
|
|
4083
4115
|
/**
|
|
4084
4116
|
* @public
|
|
4085
4117
|
*/
|
|
4086
|
-
export declare const P12: StyledComponent<"p", DefaultTheme, {
|
|
4118
|
+
export declare const P12: StyledComponent<"p", DefaultTheme, {
|
|
4119
|
+
type: string;
|
|
4120
|
+
}, "type">;
|
|
4087
4121
|
|
|
4088
4122
|
/**
|
|
4089
4123
|
* @public
|
|
4090
4124
|
*/
|
|
4091
|
-
export declare const P13: StyledComponent<"p", DefaultTheme, {
|
|
4125
|
+
export declare const P13: StyledComponent<"p", DefaultTheme, {
|
|
4126
|
+
type: string;
|
|
4127
|
+
}, "type">;
|
|
4092
4128
|
|
|
4093
4129
|
/**
|
|
4094
4130
|
* @public
|
|
@@ -4103,57 +4139,79 @@ export declare const P15: StyledComponent<"code", DefaultTheme, {}, never>;
|
|
|
4103
4139
|
/**
|
|
4104
4140
|
* @public
|
|
4105
4141
|
*/
|
|
4106
|
-
export declare const P16: StyledComponent<"p", DefaultTheme, {
|
|
4142
|
+
export declare const P16: StyledComponent<"p", DefaultTheme, {
|
|
4143
|
+
type: string;
|
|
4144
|
+
}, "type">;
|
|
4107
4145
|
|
|
4108
4146
|
/**
|
|
4109
4147
|
* @public
|
|
4110
4148
|
*/
|
|
4111
|
-
export declare const P17: StyledComponent<"p", DefaultTheme, {
|
|
4149
|
+
export declare const P17: StyledComponent<"p", DefaultTheme, {
|
|
4150
|
+
type: string;
|
|
4151
|
+
}, "type">;
|
|
4112
4152
|
|
|
4113
4153
|
/**
|
|
4114
4154
|
* @public
|
|
4115
4155
|
*/
|
|
4116
|
-
export declare const P18: StyledComponent<"p", DefaultTheme, {
|
|
4156
|
+
export declare const P18: StyledComponent<"p", DefaultTheme, {
|
|
4157
|
+
type: string;
|
|
4158
|
+
}, "type">;
|
|
4117
4159
|
|
|
4118
4160
|
/**
|
|
4119
4161
|
* @public
|
|
4120
4162
|
*/
|
|
4121
|
-
export declare const P2: StyledComponent<"p", DefaultTheme, {
|
|
4163
|
+
export declare const P2: StyledComponent<"p", DefaultTheme, {
|
|
4164
|
+
type: string;
|
|
4165
|
+
}, "type">;
|
|
4122
4166
|
|
|
4123
4167
|
/**
|
|
4124
4168
|
* @public
|
|
4125
4169
|
*/
|
|
4126
|
-
export declare const P3: StyledComponent<"p", DefaultTheme, {
|
|
4170
|
+
export declare const P3: StyledComponent<"p", DefaultTheme, {
|
|
4171
|
+
type: string;
|
|
4172
|
+
}, "type">;
|
|
4127
4173
|
|
|
4128
4174
|
/**
|
|
4129
4175
|
* @public
|
|
4130
4176
|
*/
|
|
4131
|
-
export declare const P4: StyledComponent<"p", DefaultTheme, {
|
|
4177
|
+
export declare const P4: StyledComponent<"p", DefaultTheme, {
|
|
4178
|
+
type: string;
|
|
4179
|
+
}, "type">;
|
|
4132
4180
|
|
|
4133
4181
|
/**
|
|
4134
4182
|
* @public
|
|
4135
4183
|
*/
|
|
4136
|
-
export declare const P5: StyledComponent<"p", DefaultTheme, {
|
|
4184
|
+
export declare const P5: StyledComponent<"p", DefaultTheme, {
|
|
4185
|
+
type: string;
|
|
4186
|
+
}, "type">;
|
|
4137
4187
|
|
|
4138
4188
|
/**
|
|
4139
4189
|
* @public
|
|
4140
4190
|
*/
|
|
4141
|
-
export declare const P6: StyledComponent<"p", DefaultTheme, {
|
|
4191
|
+
export declare const P6: StyledComponent<"p", DefaultTheme, {
|
|
4192
|
+
type: string;
|
|
4193
|
+
}, "type">;
|
|
4142
4194
|
|
|
4143
4195
|
/**
|
|
4144
4196
|
* @public
|
|
4145
4197
|
*/
|
|
4146
|
-
export declare const P7: StyledComponent<"p", DefaultTheme, {
|
|
4198
|
+
export declare const P7: StyledComponent<"p", DefaultTheme, {
|
|
4199
|
+
type: string;
|
|
4200
|
+
}, "type">;
|
|
4147
4201
|
|
|
4148
4202
|
/**
|
|
4149
4203
|
* @public
|
|
4150
4204
|
*/
|
|
4151
|
-
export declare const P8: StyledComponent<"p", DefaultTheme, {
|
|
4205
|
+
export declare const P8: StyledComponent<"p", DefaultTheme, {
|
|
4206
|
+
type: string;
|
|
4207
|
+
}, "type">;
|
|
4152
4208
|
|
|
4153
4209
|
/**
|
|
4154
4210
|
* @public
|
|
4155
4211
|
*/
|
|
4156
|
-
export declare const P9: StyledComponent<"p", DefaultTheme, {
|
|
4212
|
+
export declare const P9: StyledComponent<"p", DefaultTheme, {
|
|
4213
|
+
type: string;
|
|
4214
|
+
}, "type">;
|
|
4157
4215
|
|
|
4158
4216
|
/**
|
|
4159
4217
|
* @public
|
|
@@ -4180,6 +4238,7 @@ export declare interface PaginationProps {
|
|
|
4180
4238
|
|
|
4181
4239
|
/**
|
|
4182
4240
|
* @public
|
|
4241
|
+
* @deprecated Don't use outside this file, use the styled typography components instead eg <TSpan type="p1" /> or <P1 />
|
|
4183
4242
|
*/
|
|
4184
4243
|
export declare const paragraphStyled: {
|
|
4185
4244
|
p1: FlattenInterpolation<ThemeProps<DefaultTheme>>;
|
|
@@ -4320,7 +4379,7 @@ export declare interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputEl
|
|
|
4320
4379
|
/**
|
|
4321
4380
|
* @public
|
|
4322
4381
|
*/
|
|
4323
|
-
export declare const RoundedLabelTag: ({ label, withClose, onCloseClick, closeIcon, capitalize, className, addMargin, icon, size, backgroundColor, borderColor, textColor, }: RoundedLabelTagProps) => JSX.Element;
|
|
4382
|
+
export declare const RoundedLabelTag: ({ label, withClose, onCloseClick, onLabelClick, closeIcon, capitalize, className, addMargin, icon, size, backgroundColor, borderColor, textColor, }: RoundedLabelTagProps) => JSX.Element;
|
|
4324
4383
|
|
|
4325
4384
|
/**
|
|
4326
4385
|
* @public
|
|
@@ -4332,6 +4391,7 @@ export declare interface RoundedLabelTagProps {
|
|
|
4332
4391
|
label: ReactNode;
|
|
4333
4392
|
withClose?: boolean;
|
|
4334
4393
|
onCloseClick?: (e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
4394
|
+
onLabelClick?: (e: MouseEvent_2<HTMLButtonElement>) => void;
|
|
4335
4395
|
closeIcon: AnyIcon;
|
|
4336
4396
|
capitalize?: boolean;
|
|
4337
4397
|
className?: string;
|
|
@@ -4726,7 +4786,7 @@ export declare type TabType = keyof typeof styles;
|
|
|
4726
4786
|
/**
|
|
4727
4787
|
* @public
|
|
4728
4788
|
*/
|
|
4729
|
-
export declare const Tag: ({ color, label, withClose, onCloseClick, closeIcon, capitalize, className, addMargin, icon, size, maxWidth, }: TagProps) => JSX.Element;
|
|
4789
|
+
export declare const Tag: ({ color, label, withClose, onCloseClick, onLabelClick, closeIcon, capitalize, className, addMargin, icon, size, maxWidth, }: TagProps) => JSX.Element;
|
|
4730
4790
|
|
|
4731
4791
|
/**
|
|
4732
4792
|
* @public
|
|
@@ -4795,6 +4855,7 @@ export declare interface TagProps {
|
|
|
4795
4855
|
label: ReactNode;
|
|
4796
4856
|
withClose?: boolean;
|
|
4797
4857
|
onCloseClick?: () => void;
|
|
4858
|
+
onLabelClick?: () => void;
|
|
4798
4859
|
closeIcon: AnyIcon;
|
|
4799
4860
|
capitalize?: boolean;
|
|
4800
4861
|
className?: string;
|
|
@@ -146,7 +146,7 @@ export const AnchorButton = styled(forwardRef(function AnchorButton({ icon, righ
|
|
|
146
146
|
loading && (React.createElement(ButtonLoaderContainer, null,
|
|
147
147
|
React.createElement(Spinner, { size: "small" }))),
|
|
148
148
|
isAnyIcon(icon) ? React.createElement(Icon, { icon: icon }) : isIconProps(icon) ? React.createElement(Icon, { ...icon }) : icon,
|
|
149
|
-
text && React.createElement(ButtonText,
|
|
149
|
+
text && (React.createElement(ButtonText, { type: rest.size ? tspanType[rest.size] : tspanType.normal }, text)),
|
|
150
150
|
isAnyIcon(rightIcon) ? (React.createElement(Icon, { icon: rightIcon })) : isIconProps(rightIcon) ? (React.createElement(Icon, { ...rightIcon })) : (rightIcon)));
|
|
151
151
|
})) `
|
|
152
152
|
text-align: ${(props) => { var _a; return (_a = props.alignText) !== null && _a !== void 0 ? _a : "left"; }};
|
|
@@ -188,7 +188,7 @@ export const LabelButton = styled(forwardRef(function LabelButton({ children, ic
|
|
|
188
188
|
React.createElement(Spinner, { size: "small" }))),
|
|
189
189
|
children,
|
|
190
190
|
isAnyIcon(icon) ? React.createElement(Icon, { icon: icon }) : isIconProps(icon) ? React.createElement(Icon, { ...icon }) : icon,
|
|
191
|
-
text && React.createElement(ButtonText,
|
|
191
|
+
text && (React.createElement(ButtonText, { type: rest.size ? tspanType[rest.size] : tspanType.normal }, text)),
|
|
192
192
|
isAnyIcon(rightIcon) ? (React.createElement(Icon, { icon: rightIcon })) : isIconProps(rightIcon) ? (React.createElement(Icon, { ...rightIcon })) : (rightIcon)));
|
|
193
193
|
})) `
|
|
194
194
|
text-align: ${(props) => { var _a; return (_a = props.alignText) !== null && _a !== void 0 ? _a : "left"; }};
|
|
@@ -236,11 +236,11 @@ export const LabelButtonFileInput = styled.input.attrs({
|
|
|
236
236
|
export const NavButton = styled(forwardRef(function NavButton({ text, type = "button", icon, active, alignText, reverse = false, ...rest }, ref) {
|
|
237
237
|
return (React.createElement("button", { type: type, ref: ref, ...dpNameProp("NavButton"), ...rest },
|
|
238
238
|
reverse && (React.createElement(React.Fragment, null,
|
|
239
|
-
text && React.createElement(ButtonText, { overflow: "ellipsis" }, text),
|
|
239
|
+
text && (React.createElement(ButtonText, { overflow: "ellipsis", type: rest.size ? tspanType[rest.size] : tspanType.normal }, text)),
|
|
240
240
|
isAnyIcon(icon) ? React.createElement(Icon, { icon: icon }) : isIconProps(icon) ? React.createElement(Icon, { ...icon }) : icon)),
|
|
241
241
|
!reverse && (React.createElement(React.Fragment, null,
|
|
242
242
|
isAnyIcon(icon) ? React.createElement(Icon, { icon: icon }) : isIconProps(icon) ? React.createElement(Icon, { ...icon }) : icon,
|
|
243
|
-
text && React.createElement(ButtonText, { overflow: "ellipsis" }, text)))));
|
|
243
|
+
text && (React.createElement(ButtonText, { overflow: "ellipsis", type: rest.size ? tspanType[rest.size] : tspanType.normal }, text))))));
|
|
244
244
|
})) `
|
|
245
245
|
${navButtonBase}
|
|
246
246
|
${(props) => {
|
|
@@ -262,7 +262,7 @@ export const OverlayButton = styled(forwardRef(function OverlayButton({ icon, ac
|
|
|
262
262
|
loading && (React.createElement(ButtonLoaderContainer, null,
|
|
263
263
|
React.createElement(Spinner, { size: "small" }))),
|
|
264
264
|
isAnyIcon(icon) ? (React.createElement(Icon, { icon: icon, size: 10 })) : isIconProps(icon) ? (React.createElement(Icon, { size: 10, ...icon })) : (icon),
|
|
265
|
-
text && React.createElement(ButtonText,
|
|
265
|
+
text && React.createElement(ButtonText, { type: tspanType.normal }, text),
|
|
266
266
|
isAnyIcon(rightIcon) ? (React.createElement(Icon, { icon: rightIcon, size: 10 })) : isIconProps(rightIcon) ? (React.createElement(Icon, { size: 10, ...rightIcon })) : (rightIcon)));
|
|
267
267
|
})) `
|
|
268
268
|
text-align: ${(props) => { var _a; return (_a = props.alignText) !== null && _a !== void 0 ? _a : "left"; }};
|