@jonapin006/tiger 1.0.40 → 1.0.42
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.d.ts +58 -78
- package/dist/tiger.css +1 -1
- package/dist/tiger.es.js +496 -464
- package/dist/tiger.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ export declare interface BaseComponentProps {
|
|
|
12
12
|
|
|
13
13
|
declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
14
14
|
variant?: TigerButtonVariant;
|
|
15
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
15
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
16
|
+
typographySize?: TypographySize;
|
|
16
17
|
iconLeft?: default_2.ElementType;
|
|
17
18
|
iconRight?: default_2.ElementType;
|
|
18
19
|
fullWidth?: boolean;
|
|
@@ -21,6 +22,7 @@ declare interface ButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonE
|
|
|
21
22
|
declare interface CardProps extends SizedComponentProps {
|
|
22
23
|
onClick?: () => void;
|
|
23
24
|
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
25
|
+
typographySize?: TypographySize;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
export declare enum ComponentSize {
|
|
@@ -32,6 +34,8 @@ export declare enum ComponentSize {
|
|
|
32
34
|
Xlarge = "xlarge"
|
|
33
35
|
}
|
|
34
36
|
|
|
37
|
+
export declare type ComponentSizeToTypography = Record<Exclude<ComponentSize, ComponentSize.None>, TypographySize>;
|
|
38
|
+
|
|
35
39
|
export declare const glassmorphismTheme: ThemeDefinition;
|
|
36
40
|
|
|
37
41
|
declare interface IconButtonProps extends VariantComponentProps<TigerButtonVariant> {
|
|
@@ -93,11 +97,8 @@ export declare interface ThemeDefinition {
|
|
|
93
97
|
|
|
94
98
|
export declare interface ThemeGeometryConfig {
|
|
95
99
|
typography: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
medium: string;
|
|
99
|
-
large: string;
|
|
100
|
-
xlarge: string;
|
|
100
|
+
[key in TypographySize]: string;
|
|
101
|
+
} & {
|
|
101
102
|
weights: {
|
|
102
103
|
bold: string;
|
|
103
104
|
normal: string;
|
|
@@ -110,13 +111,7 @@ export declare interface ThemeGeometryConfig {
|
|
|
110
111
|
buttons: (Record<Exclude<ComponentSize, ComponentSize.Xsmall>, {
|
|
111
112
|
size: string;
|
|
112
113
|
}> & {
|
|
113
|
-
typographyMappings:
|
|
114
|
-
none: ComponentSize;
|
|
115
|
-
small: ComponentSize;
|
|
116
|
-
medium: ComponentSize;
|
|
117
|
-
large: ComponentSize;
|
|
118
|
-
xlarge: ComponentSize;
|
|
119
|
-
};
|
|
114
|
+
typographyMappings: ComponentSizeToTypography;
|
|
120
115
|
baseTypography: string;
|
|
121
116
|
baseStyles: string;
|
|
122
117
|
layout: {
|
|
@@ -142,13 +137,7 @@ export declare interface ThemeGeometryConfig {
|
|
|
142
137
|
size: string;
|
|
143
138
|
contentSize: string;
|
|
144
139
|
}> & {
|
|
145
|
-
typographyMappings:
|
|
146
|
-
none: ComponentSize;
|
|
147
|
-
small: ComponentSize;
|
|
148
|
-
medium: ComponentSize;
|
|
149
|
-
large: ComponentSize;
|
|
150
|
-
xlarge: ComponentSize;
|
|
151
|
-
};
|
|
140
|
+
typographyMappings: ComponentSizeToTypography;
|
|
152
141
|
wrapper: string;
|
|
153
142
|
disabled: string;
|
|
154
143
|
segment: {
|
|
@@ -177,28 +166,22 @@ export declare interface ThemeGeometryConfig {
|
|
|
177
166
|
content: string;
|
|
178
167
|
});
|
|
179
168
|
cards: (Record<Exclude<ComponentSize, ComponentSize.Xsmall>, {
|
|
180
|
-
|
|
169
|
+
corner: string;
|
|
170
|
+
padding: string;
|
|
181
171
|
}> & {
|
|
182
|
-
typographyMappings:
|
|
183
|
-
none: ComponentSize;
|
|
184
|
-
small: ComponentSize;
|
|
185
|
-
medium: ComponentSize;
|
|
186
|
-
large: ComponentSize;
|
|
187
|
-
xlarge: ComponentSize;
|
|
188
|
-
};
|
|
172
|
+
typographyMappings: ComponentSizeToTypography;
|
|
189
173
|
baseStyles: string;
|
|
190
174
|
interactiveStyles: string;
|
|
191
175
|
borderStyle: string;
|
|
192
176
|
});
|
|
193
|
-
checkbox: (Record<ComponentSize.
|
|
177
|
+
checkbox: (Record<ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large, {
|
|
194
178
|
size: string;
|
|
195
179
|
iconSize: number;
|
|
196
180
|
}> & {
|
|
197
181
|
typographyMappings: {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
large: ComponentSize;
|
|
182
|
+
small: TypographySize;
|
|
183
|
+
medium: TypographySize;
|
|
184
|
+
large: TypographySize;
|
|
202
185
|
};
|
|
203
186
|
disabledStyles: string;
|
|
204
187
|
icon: {
|
|
@@ -213,20 +196,14 @@ export declare interface ThemeGeometryConfig {
|
|
|
213
196
|
transition: string;
|
|
214
197
|
interactiveStyles: string;
|
|
215
198
|
typographyMappings: {
|
|
216
|
-
default:
|
|
199
|
+
default: TypographySize;
|
|
217
200
|
};
|
|
218
201
|
};
|
|
219
202
|
input: (Record<Exclude<ComponentSize, ComponentSize.Xsmall>, {
|
|
220
203
|
size: string;
|
|
221
204
|
}> & {
|
|
222
205
|
baseStyles: string;
|
|
223
|
-
typographyMappings:
|
|
224
|
-
none: ComponentSize;
|
|
225
|
-
small: ComponentSize;
|
|
226
|
-
medium: ComponentSize;
|
|
227
|
-
large: ComponentSize;
|
|
228
|
-
xlarge: ComponentSize;
|
|
229
|
-
};
|
|
206
|
+
typographyMappings: ComponentSizeToTypography;
|
|
230
207
|
});
|
|
231
208
|
list: (Record<Exclude<ComponentSize, ComponentSize.Xsmall>, {
|
|
232
209
|
size: string;
|
|
@@ -237,13 +214,7 @@ export declare interface ThemeGeometryConfig {
|
|
|
237
214
|
transition: string;
|
|
238
215
|
itemCorner: string;
|
|
239
216
|
containerCorner: string;
|
|
240
|
-
typographyMappings:
|
|
241
|
-
none: ComponentSize;
|
|
242
|
-
small: ComponentSize;
|
|
243
|
-
medium: ComponentSize;
|
|
244
|
-
large: ComponentSize;
|
|
245
|
-
xlarge: ComponentSize;
|
|
246
|
-
};
|
|
217
|
+
typographyMappings: ComponentSizeToTypography;
|
|
247
218
|
itemHoverResetColor: string;
|
|
248
219
|
typographyInherit: string;
|
|
249
220
|
});
|
|
@@ -256,9 +227,8 @@ export declare interface ThemeGeometryConfig {
|
|
|
256
227
|
actionsWrapper: string;
|
|
257
228
|
iconSize: string;
|
|
258
229
|
typographyMappings: {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
description: ComponentSize;
|
|
230
|
+
title: TypographySize;
|
|
231
|
+
description: TypographySize;
|
|
262
232
|
};
|
|
263
233
|
titleExtra: string;
|
|
264
234
|
descriptionExtra: string;
|
|
@@ -287,9 +257,8 @@ export declare interface ThemeGeometryConfig {
|
|
|
287
257
|
dataBorder: string;
|
|
288
258
|
dataTypography: string;
|
|
289
259
|
typographyMappings: {
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
data: ComponentSize;
|
|
260
|
+
header: TypographySize;
|
|
261
|
+
data: TypographySize;
|
|
293
262
|
};
|
|
294
263
|
});
|
|
295
264
|
modal: (Record<Exclude<ComponentSize, ComponentSize.Xsmall>, {
|
|
@@ -305,11 +274,7 @@ export declare interface ThemeGeometryConfig {
|
|
|
305
274
|
closeButton: string;
|
|
306
275
|
titleExtra: string;
|
|
307
276
|
footerBorder: string;
|
|
308
|
-
typographyMappings:
|
|
309
|
-
none: ComponentSize;
|
|
310
|
-
title: ComponentSize;
|
|
311
|
-
content: ComponentSize;
|
|
312
|
-
};
|
|
277
|
+
typographyMappings: ComponentSizeToTypography;
|
|
313
278
|
});
|
|
314
279
|
progress: (Record<Exclude<ComponentSize, ComponentSize.Xsmall>, {
|
|
315
280
|
height: string;
|
|
@@ -326,19 +291,13 @@ export declare interface ThemeGeometryConfig {
|
|
|
326
291
|
stepEffect: string;
|
|
327
292
|
valueContainer: string;
|
|
328
293
|
valueStyles: string;
|
|
329
|
-
typographyMappings:
|
|
294
|
+
typographyMappings: ComponentSizeToTypography;
|
|
330
295
|
});
|
|
331
296
|
dropdown: (Record<Exclude<ComponentSize, ComponentSize.Xsmall>, {
|
|
332
297
|
size: string;
|
|
333
298
|
}> & {
|
|
334
299
|
contentPositioning: string;
|
|
335
|
-
typographyMappings:
|
|
336
|
-
none: ComponentSize;
|
|
337
|
-
small: ComponentSize;
|
|
338
|
-
medium: ComponentSize;
|
|
339
|
-
large: ComponentSize;
|
|
340
|
-
xlarge: ComponentSize;
|
|
341
|
-
};
|
|
300
|
+
typographyMappings: ComponentSizeToTypography;
|
|
342
301
|
});
|
|
343
302
|
stack: (Record<Exclude<ComponentSize, ComponentSize.Xsmall>, {
|
|
344
303
|
gap: string;
|
|
@@ -668,6 +627,7 @@ export declare const TigerBadge: default_2.FC<TigerBadgeProps>;
|
|
|
668
627
|
declare interface TigerBadgeProps extends BaseComponentProps {
|
|
669
628
|
variant?: TigerBadgeVariant;
|
|
670
629
|
size?: ComponentSize.Small | ComponentSize.Medium;
|
|
630
|
+
typographySize?: TypographySize;
|
|
671
631
|
}
|
|
672
632
|
|
|
673
633
|
export declare enum TigerBadgeVariant {
|
|
@@ -767,12 +727,14 @@ export declare const TigerList: default_2.FC<TigerListProps>;
|
|
|
767
727
|
export declare const TigerListItem: default_2.FC<TigerListItemProps>;
|
|
768
728
|
|
|
769
729
|
declare interface TigerListItemProps extends Omit<SizedComponentProps, 'size'> {
|
|
770
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
730
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
731
|
+
typographySize?: TypographySize;
|
|
771
732
|
icon?: default_2.ReactNode;
|
|
772
733
|
}
|
|
773
734
|
|
|
774
735
|
declare interface TigerListProps extends Omit<SizedComponentProps, 'size'> {
|
|
775
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
736
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
737
|
+
typographySize?: TypographySize;
|
|
776
738
|
divided?: boolean;
|
|
777
739
|
}
|
|
778
740
|
|
|
@@ -785,6 +747,7 @@ export declare interface TigerMessageProps extends BaseComponentProps {
|
|
|
785
747
|
variant?: TigerMessageVariant;
|
|
786
748
|
action?: default_2.ReactNode;
|
|
787
749
|
onClose?: () => void;
|
|
750
|
+
typographySize?: TypographySize;
|
|
788
751
|
}
|
|
789
752
|
|
|
790
753
|
export declare enum TigerMessageVariant {
|
|
@@ -803,6 +766,7 @@ export declare interface TigerModalProps extends BaseComponentProps {
|
|
|
803
766
|
title?: string;
|
|
804
767
|
footer?: default_2.ReactNode;
|
|
805
768
|
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
769
|
+
typographySize?: TypographySize;
|
|
806
770
|
showCloseButton?: boolean;
|
|
807
771
|
}
|
|
808
772
|
|
|
@@ -814,7 +778,8 @@ declare interface TigerProgressProps {
|
|
|
814
778
|
totalSteps?: number;
|
|
815
779
|
variant?: ProgressVariant;
|
|
816
780
|
max?: number;
|
|
817
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
781
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
782
|
+
typographySize?: TypographySize;
|
|
818
783
|
showValue?: boolean;
|
|
819
784
|
className?: string;
|
|
820
785
|
}
|
|
@@ -828,6 +793,7 @@ export declare interface TigerSidebarProps {
|
|
|
828
793
|
header?: default_2.ReactNode;
|
|
829
794
|
footer?: default_2.ReactNode;
|
|
830
795
|
className?: string;
|
|
796
|
+
typographySize?: TypographySize;
|
|
831
797
|
}
|
|
832
798
|
|
|
833
799
|
export declare const TigerStack: default_2.FC<TigerStackProps>;
|
|
@@ -869,7 +835,7 @@ export declare interface TigerTabItem {
|
|
|
869
835
|
export declare const TigerTable: default_2.FC<TigerTableProps>;
|
|
870
836
|
|
|
871
837
|
declare interface TigerTableProps extends BaseComponentProps {
|
|
872
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
838
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
873
839
|
}
|
|
874
840
|
|
|
875
841
|
export declare const TigerTabs: default_2.FC<TigerTabsProps>;
|
|
@@ -880,7 +846,8 @@ export declare interface TigerTabsProps extends VariantComponentProps<TigerTabsV
|
|
|
880
846
|
defaultActiveId?: string;
|
|
881
847
|
onChange?: (id: string) => void;
|
|
882
848
|
fullWidth?: boolean;
|
|
883
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
849
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
850
|
+
typographySize?: TypographySize;
|
|
884
851
|
}
|
|
885
852
|
|
|
886
853
|
export declare enum TigerTabsVariant {
|
|
@@ -892,13 +859,14 @@ export declare enum TigerTabsVariant {
|
|
|
892
859
|
export declare const TigerTbody: default_2.FC<TigerTbodyProps>;
|
|
893
860
|
|
|
894
861
|
declare interface TigerTbodyProps extends BaseComponentProps {
|
|
895
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
862
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
896
863
|
}
|
|
897
864
|
|
|
898
865
|
export declare const TigerTd: default_2.FC<TigerTdProps>;
|
|
899
866
|
|
|
900
867
|
declare interface TigerTdProps extends default_2.TdHTMLAttributes<HTMLTableCellElement> {
|
|
901
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
868
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
869
|
+
typographySize?: TypographySize;
|
|
902
870
|
}
|
|
903
871
|
|
|
904
872
|
export declare const TigerTh: default_2.FC<TigerThProps>;
|
|
@@ -906,11 +874,12 @@ export declare const TigerTh: default_2.FC<TigerThProps>;
|
|
|
906
874
|
export declare const TigerThead: default_2.FC<TigerTheadProps>;
|
|
907
875
|
|
|
908
876
|
declare interface TigerTheadProps extends BaseComponentProps {
|
|
909
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
877
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
910
878
|
}
|
|
911
879
|
|
|
912
880
|
declare interface TigerThProps extends default_2.ThHTMLAttributes<HTMLTableHeaderCellElement> {
|
|
913
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
881
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
882
|
+
typographySize?: TypographySize;
|
|
914
883
|
}
|
|
915
884
|
|
|
916
885
|
export declare const TigerThumbnail: default_2.FC<TigerThumbnailProps>;
|
|
@@ -947,6 +916,7 @@ declare interface TigerToastItem {
|
|
|
947
916
|
|
|
948
917
|
declare interface TigerToastProps extends TigerToastItem {
|
|
949
918
|
onClose: () => void;
|
|
919
|
+
typographySize?: TypographySize;
|
|
950
920
|
}
|
|
951
921
|
|
|
952
922
|
declare type TigerToastType = 'success' | 'error' | 'info' | 'warning' | 'neutral';
|
|
@@ -958,20 +928,22 @@ export declare interface TigerTopBarProps {
|
|
|
958
928
|
description?: default_2.ReactNode;
|
|
959
929
|
actions?: default_2.ReactNode;
|
|
960
930
|
className?: string;
|
|
931
|
+
titleTypographySize?: TypographySize;
|
|
932
|
+
descriptionTypographySize?: TypographySize;
|
|
961
933
|
}
|
|
962
934
|
|
|
963
935
|
export declare const TigerTr: default_2.FC<TigerTrProps>;
|
|
964
936
|
|
|
965
937
|
declare interface TigerTrProps extends BaseComponentProps {
|
|
966
938
|
isHeader?: boolean;
|
|
967
|
-
size?: Exclude<ComponentSize, ComponentSize.Xsmall>;
|
|
939
|
+
size?: Exclude<ComponentSize, ComponentSize.Xsmall | ComponentSize.None>;
|
|
968
940
|
}
|
|
969
941
|
|
|
970
942
|
export declare const TigerTypography: default_2.FC<TigerTypographyProps>;
|
|
971
943
|
|
|
972
944
|
declare interface TigerTypographyProps {
|
|
973
945
|
children: default_2.ReactNode;
|
|
974
|
-
|
|
946
|
+
typographySize?: TypographySize;
|
|
975
947
|
variant?: 'h1' | 'h2' | 'h3' | 'p' | 'span';
|
|
976
948
|
bold?: boolean;
|
|
977
949
|
italic?: boolean;
|
|
@@ -980,6 +952,14 @@ declare interface TigerTypographyProps {
|
|
|
980
952
|
id?: string;
|
|
981
953
|
}
|
|
982
954
|
|
|
955
|
+
export declare enum TypographySize {
|
|
956
|
+
Xsmall = "xsmall",
|
|
957
|
+
Small = "small",
|
|
958
|
+
Medium = "medium",
|
|
959
|
+
Large = "large",
|
|
960
|
+
Xlarge = "xlarge"
|
|
961
|
+
}
|
|
962
|
+
|
|
983
963
|
export declare const useTheme: () => ThemeContextType;
|
|
984
964
|
|
|
985
965
|
export declare interface VariantComponentProps<T = string> extends SizedComponentProps {
|