@julseb-lib/react 1.1.24 → 1.1.26
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/{Image-2WXN57FZ.js → Image-4MLJ7FPA.js} +2 -2
- package/dist/{chunk-AKGT77NY.js → chunk-PXJ4JXEH.js} +308 -78
- package/dist/chunk-PXJ4JXEH.js.map +1 -0
- package/dist/{global-DDESDwEf.d.cts → global-CXiIaXyy.d.cts} +181 -47
- package/dist/{global-DDESDwEf.d.ts → global-CXiIaXyy.d.ts} +181 -47
- package/dist/index.cjs +411 -157
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -6
- package/dist/index.d.ts +13 -6
- package/dist/index.js +92 -82
- package/dist/index.js.map +1 -1
- package/dist/types/components-items-props.d.cts +1 -1
- package/dist/types/components-items-props.d.ts +1 -1
- package/dist/types/components-props.d.cts +366 -3
- package/dist/types/components-props.d.ts +366 -3
- package/dist/types/global.cjs.map +1 -1
- package/dist/types/global.d.cts +1 -1
- package/dist/types/global.d.ts +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/tailwind.cjs.map +1 -1
- package/dist/types/tailwind.d.cts +31 -1
- package/dist/types/tailwind.d.ts +31 -1
- package/package.json +2 -1
- package/dist/chunk-AKGT77NY.js.map +0 -1
- /package/dist/{Image-2WXN57FZ.js.map → Image-4MLJ7FPA.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ElementType, CSSProperties, ReactElement as ReactElement$1, ImgHTMLAttributes, ButtonHTMLAttributes, RefObject, InputHTMLAttributes, MouseEventHandler, SelectHTMLAttributes, TextareaHTMLAttributes, Ref, FormHTMLAttributes, DragEvent, MeterHTMLAttributes, ReactNode, FormEvent } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { I as LibComponentBase, b as LibAllColors, c as LibColorsHover, af as CssTextAlign, h as LibFontSizes, i as LibFontWeights, x as LibTextTagDisplay, y as LibTextTagNoDisplay, k as LibSpacers, C as LibMinHeight, aq as LibMainSize, ar as LibAsideSize, ah as CssJustifyItems, ai as CssAlignItems, aj as CssJustifyContent, ak as CssAlignContent, al as CssFlexDirection, am as CssFlexWrap, aa as ReactChildren, D as LibKeySize, a as LibColorsShort, at as ClassNames, E as LibMaxWidth, l as LibRadiuses, F as LibSkeletonAnimation, G as LibTooltipPosition, H as LibTooltipTrigger, f as LibAllColorsAndOverlays, au as CSSProperties$1, ae as Classes, an as CssObjectFit, s as LibLoaderVariant, u as LibButtonVariantExtended, v as LibButtonSize, ab as ReactElement$2, t as LibButtonVariant, a9 as LibTooltipPositionOptions, M as LibTagVariant, q as LibInputVariant, w as LibInputBackground, P as LibInputListDirection, o as LibInputValidation, O as LibCheckInputVariant, a7 as LibCountry, ad as DispatchState, as as CountryCode, a4 as LibValueInputPin, j as LibShadows, J as LibAccordionVariant, K as LibAccordionIcon, N as LibToastStatus, Q as LibTabsJustify, R as LibTabsVariant, V as LibSlideshowButtonsSize, T as LibSlideshowPaginationPosition, S as LibSlideshowPagination, e as LibOverlays, W as LibTableVariant, ag as CssVerticalAlign, X as LibMdEditorViews, _ as LibDrawerPosition, $ as LibNavBurgerPosition, a0 as LibNavMobileVariant, a1 as LibHeaderPosition, a3 as LibFooterLinksSeparator, a2 as LibFooterDirection } from '../global-CXiIaXyy.js';
|
|
3
3
|
import { LibButtonGroupButtonItem, LibListGroupItem, LibAccordionItem, LibDropdownItem, LibDragListItem, LibTabItem, LibMdEditorOptions } from './components-items-props.js';
|
|
4
4
|
import { IFuseOptions } from 'fuse.js';
|
|
5
5
|
import { ExtraProps, HooksOptions, Options, Components, AllowElement, UrlTransform } from 'react-markdown';
|
|
@@ -9,19 +9,154 @@ import 'csstype';
|
|
|
9
9
|
|
|
10
10
|
interface ILibTextBase extends LibComponentBase<HTMLHeadingElement & HTMLParagraphElement & HTMLQuoteElement & HTMLDListElement & HTMLOListElement & HTMLUListElement> {
|
|
11
11
|
element?: ElementType;
|
|
12
|
+
/**
|
|
13
|
+
* All the colors in the lib
|
|
14
|
+
* Primary 50 — #eff6ff
|
|
15
|
+
* Primary 100 — #dbeafe
|
|
16
|
+
* Primary 200 — #bfdbfe
|
|
17
|
+
* Primary 300 — #93c5fd
|
|
18
|
+
* Primary 400 — #60a5fa
|
|
19
|
+
* Primary 500 — #3b82f6
|
|
20
|
+
* Primary 600 — #2563eb
|
|
21
|
+
* Primary 700 — #1d4ed8
|
|
22
|
+
* Primary 800 — #1e40af
|
|
23
|
+
* Primary 900 — #1e3a8a
|
|
24
|
+
* Primary 950 — #172554
|
|
25
|
+
* Secondary 50 — #ecfeff
|
|
26
|
+
* Secondary 100 — #cffafe
|
|
27
|
+
* Secondary 200 — #a5f3fc
|
|
28
|
+
* Secondary 300 — #67e8f9
|
|
29
|
+
* Secondary 400 — #22d3ee
|
|
30
|
+
* Secondary 500 — #06b6d4
|
|
31
|
+
* Secondary 600 — #0891b2
|
|
32
|
+
* Secondary 700 — #0e7490
|
|
33
|
+
* Secondary 800 — #155e75
|
|
34
|
+
* Secondary 900 — #164e63
|
|
35
|
+
* Secondary 950 — #083344
|
|
36
|
+
* Success 50 — #f0fdf4
|
|
37
|
+
* Success 100 — #dcfce7
|
|
38
|
+
* Success 200 — #bbf7d0
|
|
39
|
+
* Success 300 — #86efac
|
|
40
|
+
* Success 400 — #4ade80
|
|
41
|
+
* Success 500 — #22c55e
|
|
42
|
+
* Success 600 — #16a34a
|
|
43
|
+
* Success 700 — #15803d
|
|
44
|
+
* Success 800 — #166534
|
|
45
|
+
* Success 900 — #14532d
|
|
46
|
+
* Success 950 — #052e16
|
|
47
|
+
* Danger 50 — #fef2f2
|
|
48
|
+
* Danger 100 — #fee2e2
|
|
49
|
+
* Danger 200 — #fecaca
|
|
50
|
+
* Danger 300 — #fca5a5
|
|
51
|
+
* Danger 400 — #f87171
|
|
52
|
+
* Danger 500 — #ef4444
|
|
53
|
+
* Danger 600 — #dc2626
|
|
54
|
+
* Danger 700 — #b91c1c
|
|
55
|
+
* Danger 800 — #991b1b
|
|
56
|
+
* Danger 900 — #7f1d1d
|
|
57
|
+
* Danger 950 — #450a0a
|
|
58
|
+
* Warning 50 — #fffbeb
|
|
59
|
+
* Warning 100 — #fef3c7
|
|
60
|
+
* Warning 200 — #fde68a
|
|
61
|
+
* Warning 300 — #fcd34d
|
|
62
|
+
* Warning 400 — #fbbf24
|
|
63
|
+
* Warning 500 — #f59e42
|
|
64
|
+
* Warning 600 — #d97706
|
|
65
|
+
* Warning 700 — #b45309
|
|
66
|
+
* Warning 800 — #92400e
|
|
67
|
+
* Warning 900 — #78350f
|
|
68
|
+
* Warning 950 — #451a03
|
|
69
|
+
* Gray 50 — #f9fafb
|
|
70
|
+
* Gray 100 — #f3f4f6
|
|
71
|
+
* Gray 200 — #e5e7eb
|
|
72
|
+
* Gray 300 — #d1d5db
|
|
73
|
+
* Gray 400 — #9ca3af
|
|
74
|
+
* Gray 500 — #6b7280
|
|
75
|
+
* Gray 600 — #4b5563
|
|
76
|
+
* Gray 700 — #374151
|
|
77
|
+
* Gray 800 — #1f2937
|
|
78
|
+
* Gray 900 — #111827
|
|
79
|
+
* Gray 950 — #030712
|
|
80
|
+
* Black — #000000
|
|
81
|
+
* White — #ffffff
|
|
82
|
+
*/
|
|
12
83
|
color?: LibAllColors;
|
|
84
|
+
/**
|
|
85
|
+
* Colors used when an item is hovered
|
|
86
|
+
* Primary: Default Primary 500 — #3b82f6; Hover: Primary 300 — #93c5fd; Active: Primary 600 — #2563eb
|
|
87
|
+
* Secondary: Default: Secondary 500 — #06b6d4; Hover: Secondary 300 — #67e8f9; Active: Secondary 600 — #0891b2
|
|
88
|
+
* Success: Default: Success 500 — #22c55e; Hover: Success 300 — #86efac; Active: Success 600 — #16a34a
|
|
89
|
+
* Danger: Default: Danger 500 — #ef4444; Hover: Danger 300 — #fca5a5; Active: Danger 600 — #dc2626
|
|
90
|
+
* Warning: Default: Warning 500 — #f59e42; Hover: Warning 300 — #fcd34d; Active: Warning 600 — #d97706
|
|
91
|
+
* Gray: Default: Gray 500 — #6b7280; Hover: Gray 300 — #d1d5db; Active: Gray 600 — #4b5563
|
|
92
|
+
* White: Default: White - #ffffff; Hover: Gray 300 - #d1d5db; Active: Gray 100 - #f3f4f6
|
|
93
|
+
*/
|
|
13
94
|
linkColor?: LibColorsHover;
|
|
14
95
|
textAlign?: CssTextAlign;
|
|
96
|
+
/**
|
|
97
|
+
* Tailwind & Lib Font Sizes
|
|
98
|
+
* xs - 12px (0.75rem)
|
|
99
|
+
* sm - 14px (0.875rem)
|
|
100
|
+
* base - 16px (1rem)
|
|
101
|
+
* lg - 18px (1.125rem)
|
|
102
|
+
* xl - 20px (1.25rem)
|
|
103
|
+
* 2xl - 24px (1.5rem)
|
|
104
|
+
* 3xl - 30px (1.875rem)
|
|
105
|
+
* 4xl - 36px (2.25rem)
|
|
106
|
+
* 5xl - 48px (3rem)
|
|
107
|
+
* 6xl - 60px (3.75rem)
|
|
108
|
+
* 7xl - 72px (4.5rem)
|
|
109
|
+
* 8xl - 96px (6rem)
|
|
110
|
+
* 9xl - 128px (8rem)
|
|
111
|
+
* display-h1 - 80px (5rem)
|
|
112
|
+
* display-h2 - 64px (4rem)
|
|
113
|
+
* display-h3 - 56px (3.5rem)
|
|
114
|
+
* display-h4 - 48px (3rem)
|
|
115
|
+
* display-h5 - 40px (2.5rem)
|
|
116
|
+
* h1 - 40px (2.5rem)
|
|
117
|
+
* h2 - 32px (2rem)
|
|
118
|
+
* h3 - 28.8px (1.8rem)
|
|
119
|
+
* h4 - 24px (1.5rem)
|
|
120
|
+
* h5 - 20.8px (1.3rem)
|
|
121
|
+
* h6 - 17.6px (1.1rem)
|
|
122
|
+
* body - 16px (1rem)
|
|
123
|
+
* small - 14px (0.875rem)
|
|
124
|
+
*/
|
|
125
|
+
fontSize?: LibFontSizes;
|
|
126
|
+
/**
|
|
127
|
+
* Font weights for Lato
|
|
128
|
+
* Thin - 100
|
|
129
|
+
* Light - 300
|
|
130
|
+
* Normal - 400
|
|
131
|
+
* Bold - 700
|
|
132
|
+
* Black - 900
|
|
133
|
+
*/
|
|
134
|
+
fontWeight?: LibFontWeights;
|
|
15
135
|
}
|
|
16
136
|
interface TextDisplay extends ILibTextBase {
|
|
17
137
|
tag?: LibTextTagDisplay;
|
|
18
138
|
display?: boolean;
|
|
139
|
+
dtFontWeight?: never;
|
|
19
140
|
}
|
|
20
141
|
interface TextNoDisplay extends ILibTextBase {
|
|
21
|
-
tag?: LibTextTagNoDisplay
|
|
142
|
+
tag?: Exclude<LibTextTagNoDisplay, "dl">;
|
|
22
143
|
display?: never;
|
|
144
|
+
dtFontWeight?: never;
|
|
23
145
|
}
|
|
24
|
-
|
|
146
|
+
interface TextDescriptionList extends ILibTextBase {
|
|
147
|
+
tag?: Extract<LibTextTagNoDisplay, "dl">;
|
|
148
|
+
display?: never;
|
|
149
|
+
/**
|
|
150
|
+
* Font weights for Lato
|
|
151
|
+
* Thin - 100
|
|
152
|
+
* Light - 300
|
|
153
|
+
* Normal - 400
|
|
154
|
+
* Bold - 700
|
|
155
|
+
* Black - 900
|
|
156
|
+
*/
|
|
157
|
+
dtFontWeight?: LibFontWeights;
|
|
158
|
+
}
|
|
159
|
+
type ILibText = TextDisplay | TextNoDisplay | TextDescriptionList;
|
|
25
160
|
|
|
26
161
|
interface ILibWrapper extends LibComponentBase<HTMLDivElement> {
|
|
27
162
|
gap?: LibSpacers;
|
|
@@ -30,7 +165,90 @@ interface ILibWrapper extends LibComponentBase<HTMLDivElement> {
|
|
|
30
165
|
}
|
|
31
166
|
|
|
32
167
|
interface ILibMain extends LibComponentBase<HTMLDivElement> {
|
|
168
|
+
/**
|
|
169
|
+
* The space between items.
|
|
170
|
+
*
|
|
171
|
+
* Possible values:
|
|
172
|
+
* - 2xs: 4px
|
|
173
|
+
* - xs: 8px
|
|
174
|
+
* - sm: 12px
|
|
175
|
+
* - md: 16px
|
|
176
|
+
* - lg: 24px
|
|
177
|
+
* - xl: 32px
|
|
178
|
+
* - 2xl: 48px
|
|
179
|
+
*/
|
|
33
180
|
gap?: LibSpacers;
|
|
181
|
+
/**
|
|
182
|
+
* All the colors in the lib
|
|
183
|
+
* Primary 50 — #eff6ff
|
|
184
|
+
* Primary 100 — #dbeafe
|
|
185
|
+
* Primary 200 — #bfdbfe
|
|
186
|
+
* Primary 300 — #93c5fd
|
|
187
|
+
* Primary 400 — #60a5fa
|
|
188
|
+
* Primary 500 — #3b82f6
|
|
189
|
+
* Primary 600 — #2563eb
|
|
190
|
+
* Primary 700 — #1d4ed8
|
|
191
|
+
* Primary 800 — #1e40af
|
|
192
|
+
* Primary 900 — #1e3a8a
|
|
193
|
+
* Primary 950 — #172554
|
|
194
|
+
* Secondary 50 — #ecfeff
|
|
195
|
+
* Secondary 100 — #cffafe
|
|
196
|
+
* Secondary 200 — #a5f3fc
|
|
197
|
+
* Secondary 300 — #67e8f9
|
|
198
|
+
* Secondary 400 — #22d3ee
|
|
199
|
+
* Secondary 500 — #06b6d4
|
|
200
|
+
* Secondary 600 — #0891b2
|
|
201
|
+
* Secondary 700 — #0e7490
|
|
202
|
+
* Secondary 800 — #155e75
|
|
203
|
+
* Secondary 900 — #164e63
|
|
204
|
+
* Secondary 950 — #083344
|
|
205
|
+
* Success 50 — #f0fdf4
|
|
206
|
+
* Success 100 — #dcfce7
|
|
207
|
+
* Success 200 — #bbf7d0
|
|
208
|
+
* Success 300 — #86efac
|
|
209
|
+
* Success 400 — #4ade80
|
|
210
|
+
* Success 500 — #22c55e
|
|
211
|
+
* Success 600 — #16a34a
|
|
212
|
+
* Success 700 — #15803d
|
|
213
|
+
* Success 800 — #166534
|
|
214
|
+
* Success 900 — #14532d
|
|
215
|
+
* Success 950 — #052e16
|
|
216
|
+
* Danger 50 — #fef2f2
|
|
217
|
+
* Danger 100 — #fee2e2
|
|
218
|
+
* Danger 200 — #fecaca
|
|
219
|
+
* Danger 300 — #fca5a5
|
|
220
|
+
* Danger 400 — #f87171
|
|
221
|
+
* Danger 500 — #ef4444
|
|
222
|
+
* Danger 600 — #dc2626
|
|
223
|
+
* Danger 700 — #b91c1c
|
|
224
|
+
* Danger 800 — #991b1b
|
|
225
|
+
* Danger 900 — #7f1d1d
|
|
226
|
+
* Danger 950 — #450a0a
|
|
227
|
+
* Warning 50 — #fffbeb
|
|
228
|
+
* Warning 100 — #fef3c7
|
|
229
|
+
* Warning 200 — #fde68a
|
|
230
|
+
* Warning 300 — #fcd34d
|
|
231
|
+
* Warning 400 — #fbbf24
|
|
232
|
+
* Warning 500 — #f59e42
|
|
233
|
+
* Warning 600 — #d97706
|
|
234
|
+
* Warning 700 — #b45309
|
|
235
|
+
* Warning 800 — #92400e
|
|
236
|
+
* Warning 900 — #78350f
|
|
237
|
+
* Warning 950 — #451a03
|
|
238
|
+
* Gray 50 — #f9fafb
|
|
239
|
+
* Gray 100 — #f3f4f6
|
|
240
|
+
* Gray 200 — #e5e7eb
|
|
241
|
+
* Gray 300 — #d1d5db
|
|
242
|
+
* Gray 400 — #9ca3af
|
|
243
|
+
* Gray 500 — #6b7280
|
|
244
|
+
* Gray 600 — #4b5563
|
|
245
|
+
* Gray 700 — #374151
|
|
246
|
+
* Gray 800 — #1f2937
|
|
247
|
+
* Gray 900 — #111827
|
|
248
|
+
* Gray 950 — #030712
|
|
249
|
+
* Black — #000000
|
|
250
|
+
* White — #ffffff
|
|
251
|
+
*/
|
|
34
252
|
backgroundColor?: LibAllColors;
|
|
35
253
|
size?: LibMainSize;
|
|
36
254
|
}
|
|
@@ -38,6 +256,18 @@ interface ILibMain extends LibComponentBase<HTMLDivElement> {
|
|
|
38
256
|
interface ILibAside extends LibComponentBase<HTMLDivElement> {
|
|
39
257
|
size?: LibAsideSize;
|
|
40
258
|
backgroundColor?: LibAllColors;
|
|
259
|
+
/**
|
|
260
|
+
* The space between items.
|
|
261
|
+
*
|
|
262
|
+
* Possible values:
|
|
263
|
+
* - 2xs: 4px
|
|
264
|
+
* - xs: 8px
|
|
265
|
+
* - sm: 12px
|
|
266
|
+
* - md: 16px
|
|
267
|
+
* - lg: 24px
|
|
268
|
+
* - xl: 32px
|
|
269
|
+
* - 2xl: 48px
|
|
270
|
+
*/
|
|
41
271
|
gap?: LibSpacers;
|
|
42
272
|
}
|
|
43
273
|
|
|
@@ -48,8 +278,44 @@ interface ILibSection extends LibComponentBase<HTMLDivElement> {
|
|
|
48
278
|
interface ILibGrid extends LibComponentBase<HTMLDivElement> {
|
|
49
279
|
inline?: boolean;
|
|
50
280
|
cols?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
281
|
+
/**
|
|
282
|
+
* The space between items.
|
|
283
|
+
*
|
|
284
|
+
* Possible values:
|
|
285
|
+
* - 2xs: 4px
|
|
286
|
+
* - xs: 8px
|
|
287
|
+
* - sm: 12px
|
|
288
|
+
* - md: 16px
|
|
289
|
+
* - lg: 24px
|
|
290
|
+
* - xl: 32px
|
|
291
|
+
* - 2xl: 48px
|
|
292
|
+
*/
|
|
51
293
|
gap?: LibSpacers;
|
|
294
|
+
/**
|
|
295
|
+
* The space between column items.
|
|
296
|
+
*
|
|
297
|
+
* Possible values:
|
|
298
|
+
* - 2xs: 4px
|
|
299
|
+
* - xs: 8px
|
|
300
|
+
* - sm: 12px
|
|
301
|
+
* - md: 16px
|
|
302
|
+
* - lg: 24px
|
|
303
|
+
* - xl: 32px
|
|
304
|
+
* - 2xl: 48px
|
|
305
|
+
*/
|
|
52
306
|
colGap?: LibSpacers;
|
|
307
|
+
/**
|
|
308
|
+
* The space between row items.
|
|
309
|
+
*
|
|
310
|
+
* Possible values:
|
|
311
|
+
* - 2xs: 4px
|
|
312
|
+
* - xs: 8px
|
|
313
|
+
* - sm: 12px
|
|
314
|
+
* - md: 16px
|
|
315
|
+
* - lg: 24px
|
|
316
|
+
* - xl: 32px
|
|
317
|
+
* - 2xl: 48px
|
|
318
|
+
*/
|
|
53
319
|
rowGap?: LibSpacers;
|
|
54
320
|
justifyItems?: CssJustifyItems;
|
|
55
321
|
alignItems?: CssAlignItems;
|
|
@@ -58,6 +324,7 @@ interface ILibGrid extends LibComponentBase<HTMLDivElement> {
|
|
|
58
324
|
}
|
|
59
325
|
|
|
60
326
|
interface ILibFlexbox extends LibComponentBase<HTMLDivElement> {
|
|
327
|
+
/** Set display as `inline-flex` */
|
|
61
328
|
inline?: boolean;
|
|
62
329
|
flexDirection?: CssFlexDirection;
|
|
63
330
|
flexWrap?: CssFlexWrap;
|
|
@@ -65,8 +332,44 @@ interface ILibFlexbox extends LibComponentBase<HTMLDivElement> {
|
|
|
65
332
|
alignItems?: CssAlignItems;
|
|
66
333
|
justifyItems?: CssJustifyItems;
|
|
67
334
|
alignContent?: CssAlignContent;
|
|
335
|
+
/**
|
|
336
|
+
* The space between flex items.
|
|
337
|
+
*
|
|
338
|
+
* Possible values:
|
|
339
|
+
* - 2xs: 4px
|
|
340
|
+
* - xs: 8px
|
|
341
|
+
* - sm: 12px
|
|
342
|
+
* - md: 16px
|
|
343
|
+
* - lg: 24px
|
|
344
|
+
* - xl: 32px
|
|
345
|
+
* - 2xl: 48px
|
|
346
|
+
*/
|
|
68
347
|
gap?: LibSpacers;
|
|
348
|
+
/**
|
|
349
|
+
* The column space between flex items.
|
|
350
|
+
*
|
|
351
|
+
* Possible values:
|
|
352
|
+
* - 2xs: 4px
|
|
353
|
+
* - xs: 8px
|
|
354
|
+
* - sm: 12px
|
|
355
|
+
* - md: 16px
|
|
356
|
+
* - lg: 24px
|
|
357
|
+
* - xl: 32px
|
|
358
|
+
* - 2xl: 48px
|
|
359
|
+
*/
|
|
69
360
|
colGap?: LibSpacers;
|
|
361
|
+
/**
|
|
362
|
+
* The row space between flex items.
|
|
363
|
+
*
|
|
364
|
+
* Possible values:
|
|
365
|
+
* - 2xs: 4px
|
|
366
|
+
* - xs: 8px
|
|
367
|
+
* - sm: 12px
|
|
368
|
+
* - md: 16px
|
|
369
|
+
* - lg: 24px
|
|
370
|
+
* - xl: 32px
|
|
371
|
+
* - 2xl: 48px
|
|
372
|
+
*/
|
|
70
373
|
rowGap?: LibSpacers;
|
|
71
374
|
}
|
|
72
375
|
|
|
@@ -139,8 +442,44 @@ interface ILibLazyImage extends ILibImage {
|
|
|
139
442
|
|
|
140
443
|
interface ILibMasonry extends LibComponentBase<HTMLDivElement> {
|
|
141
444
|
col?: number;
|
|
445
|
+
/**
|
|
446
|
+
* The space between items.
|
|
447
|
+
*
|
|
448
|
+
* Possible values:
|
|
449
|
+
* - 2xs: 4px
|
|
450
|
+
* - xs: 8px
|
|
451
|
+
* - sm: 12px
|
|
452
|
+
* - md: 16px
|
|
453
|
+
* - lg: 24px
|
|
454
|
+
* - xl: 32px
|
|
455
|
+
* - 2xl: 48px
|
|
456
|
+
*/
|
|
142
457
|
gap?: LibSpacers;
|
|
458
|
+
/**
|
|
459
|
+
* The space between row items.
|
|
460
|
+
*
|
|
461
|
+
* Possible values:
|
|
462
|
+
* - 2xs: 4px
|
|
463
|
+
* - xs: 8px
|
|
464
|
+
* - sm: 12px
|
|
465
|
+
* - md: 16px
|
|
466
|
+
* - lg: 24px
|
|
467
|
+
* - xl: 32px
|
|
468
|
+
* - 2xl: 48px
|
|
469
|
+
*/
|
|
143
470
|
rowGap?: LibSpacers;
|
|
471
|
+
/**
|
|
472
|
+
* The space between col items.
|
|
473
|
+
*
|
|
474
|
+
* Possible values:
|
|
475
|
+
* - 2xs: 4px
|
|
476
|
+
* - xs: 8px
|
|
477
|
+
* - sm: 12px
|
|
478
|
+
* - md: 16px
|
|
479
|
+
* - lg: 24px
|
|
480
|
+
* - xl: 32px
|
|
481
|
+
* - 2xl: 48px
|
|
482
|
+
*/
|
|
144
483
|
colGap?: LibSpacers;
|
|
145
484
|
}
|
|
146
485
|
|
|
@@ -507,6 +846,18 @@ type ILibRatingBase = Omit<LibComponentBase<HTMLDivElement>, "element"> & Omit<I
|
|
|
507
846
|
};
|
|
508
847
|
iconsSize?: number;
|
|
509
848
|
accentColor?: LibColorsHover;
|
|
849
|
+
/**
|
|
850
|
+
* The space between items.
|
|
851
|
+
*
|
|
852
|
+
* Possible values:
|
|
853
|
+
* - 2xs: 4px
|
|
854
|
+
* - xs: 8px
|
|
855
|
+
* - sm: 12px
|
|
856
|
+
* - md: 16px
|
|
857
|
+
* - lg: 24px
|
|
858
|
+
* - xl: 32px
|
|
859
|
+
* - 2xl: 48px
|
|
860
|
+
*/
|
|
510
861
|
gap?: LibSpacers;
|
|
511
862
|
children?: never;
|
|
512
863
|
};
|
|
@@ -984,6 +1335,18 @@ interface ILibDrawer extends LibComponentBase<HTMLDivElement> {
|
|
|
984
1335
|
backgroundColor?: LibAllColors;
|
|
985
1336
|
contentColor?: LibAllColors;
|
|
986
1337
|
linksColor?: LibColorsHover;
|
|
1338
|
+
/**
|
|
1339
|
+
* The space between items.
|
|
1340
|
+
*
|
|
1341
|
+
* Possible values:
|
|
1342
|
+
* - 2xs: 4px
|
|
1343
|
+
* - xs: 8px
|
|
1344
|
+
* - sm: 12px
|
|
1345
|
+
* - md: 16px
|
|
1346
|
+
* - lg: 24px
|
|
1347
|
+
* - xl: 32px
|
|
1348
|
+
* - 2xl: 48px
|
|
1349
|
+
*/
|
|
987
1350
|
gap?: LibSpacers;
|
|
988
1351
|
maxWidth?: string | number;
|
|
989
1352
|
overlayColor?: LibAllColorsAndOverlays;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/types/global.ts"],"sourcesContent":["import type {\n\tHTMLAttributes,\n\tElementType,\n\tReactNode,\n\tDispatch,\n\tSetStateAction,\n\tFunctionComponent,\n\tRefObject,\n\tCSSProperties as CSS,\n\tReactElement as ReactEl,\n} from \"react\"\nimport type { Property } from \"csstype\"\nimport type { designTokens } from \"../utils/design-tokens\"\n\n/**\n * @description All color tokens available in the library.\n * @type {keyof typeof designTokens.libColors}\n * @example\n * color=\"danger-300\"\n * color=\"gray-100\"\n */\nexport type LibColors = keyof typeof designTokens.libColors\n\n/**\n * @description All color short tokens available in the library. This returns the color-500.\n * @type {\"primary\" | \"secondary\" | \"success\" | \"danger\" | \"warning\" | \"gray\" | \"black\" | \"white\" | \"current\" | \"transparent\" | \"background\"}\n * @example\n * color=\"primary\"\n * color=\"gray\"\n */\nexport type LibColorsShort = keyof typeof designTokens.libColorsShort\n\n/**\n * @description All color tokens and color short tokens available in the library.\n * @type {keyof typeof designTokens.libColors | \"primary\" | \"secondary\" | \"success\" | \"danger\" | \"warning\" | \"gray\" | \"black\" | \"white\" | \"current\" | \"transparent\" | \"background\"}\n * @example\n * color=\"danger-300\"\n * color=\"primary\"\n * color=\"gray-100\"\n */\nexport type LibAllColors = LibColors | LibColorsShort\n\n/**\n * @description All hover color tokens available in the library.\n * @type {\"primary\" | \"secondary\" | \"success\" | \"danger\" | \"warning\" | \"white\"}\n * @example\n * color=\"primary\"\n * color=\"gray\"\n */\nexport type LibColorsHover = keyof typeof designTokens.libColorsHover\n\n/**\n * @description All hover color tokens plus \"current\" for currentColor support.\n * @type {\"primary\" | \"secondary\" | \"success\" | \"danger\" | \"warning\" | \"white\" | \"current\"}\n * @example\n * color=\"primary\"\n * color=\"gray\"\n * color=\"current\"\n */\nexport type LibColorsHoverAndCurrent = LibColorsHover | \"current\"\n\n/**\n * @description All overlay tokens available in the library.\n * @type {\"black-50\" | \"black-80\" | \"white-50\" | \"white-80\" | \"gradient-black\" | \"gradient-white\"}\n * @example\n * overlay=\"overlay-100\"\n * overlay=\"overlay-dark\"\n */\nexport type LibOverlays = keyof typeof designTokens.libOverlays\n\n/**\n * @description All color and overlay tokens available in the library.\n * @type {Any color from the library | Any overlay from the library}\n * @example\n * color=\"primary\"\n * color=\"gray-100\"\n * overlay=\"overlay-100\"\n * overlay=\"overlay-dark\"\n */\nexport type LibAllColorsAndOverlays =\n\t| LibAllColors\n\t| keyof typeof designTokens.libOverlays\n\n/**\n * @description All font family tokens available in the library.\n * @type {\"body\"|\"code\"}\n * @example\n * fontFamily=\"body\"\n * fontFamily=\"code\"\n */\nexport type LibFontFamilies = keyof typeof designTokens.libFontFamilies\n\n/**\n * @description All font size tokens available in the library.\n * @type {\"xs\" | \"sm\" | \"base\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\" | \"5xl\" | \"6xl\" | \"7xl\" | \"8xl\" | \"9xl\"}\n * @example\n * fontSize=\"md\"\n * fontSize=\"xl\"\n */\nexport type LibFontSizes = keyof typeof designTokens.libFontSizes\n\n/**\n * @description All font weight tokens available in the library.\n * @type {\"thin\" | \"extralight\" | \"light\" | \"normal\" | \"medium\" | \"semibold\" | \"bold\" | \"extrabold\" | \"black\"}\n * @example\n * fontWeight=\"regular\"\n * fontWeight=\"bold\"\n */\nexport type LibFontWeights = keyof typeof designTokens.libFontWeights\n\n/**\n * @description All line height tokens available in the library.\n * @type {\"xs\" | \"sm\" | \"base\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\" | \"5xl\" | \"6xl\" | \"7xl\" | \"8xl\" | \"9xl\"}\n * @example\n * lineHeight=\"normal\"\n * lineHeight=\"tight\"\n */\nexport type LibLineHeights = keyof typeof designTokens.libLineHeights\n\n/**\n * @description All box shadow tokens available in the library.\n * @type {\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"none\"}\n * @example\n * boxShadow=\"md\"\n * boxShadow=\"xl\"\n */\nexport type LibShadows = keyof typeof designTokens.libShadows\n\n/**\n * @description All spacer tokens available in the library, plus \"0px\".\n * @type {\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"0px\"}\n * @example\n * padding=\"md\"\n * margin=\"xl\"\n * gap=\"xs\"\n * padding=\"0px\"\n */\nexport type LibSpacers = keyof typeof designTokens.libSpacers | \"0px\"\n\n/**\n * @description All border radius tokens available in the library.\n * @type {\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\" | \"full\"}\n * @example\n * radius=\"m\"\n * radius=\"xl\"\n */\nexport type LibRadiuses = keyof typeof designTokens.libRadius\n\n/**\n * @description All transition tokens available in the library.\n * @type {\"none\" | \"all\" | \"default\" | \"colors\" | \"opacity\" | \"shadow\" | \"transform\"}\n * @example\n * transition=\"all\"\n * transition=\"colors\"\n */\nexport type LibTransitions = keyof typeof designTokens.libTransitions\n\n/**\n * @description Validation status for form components.\n * @type {boolean | undefined}\n * @example\n * validation={true} // valid\n * validation={false} // invalid\n * validation={undefined} // not validated\n */\nexport type LibValidationStatus = boolean | undefined\n\n/**\n * @description Validation for input components.\n * @type {Object}\n * @example\n * validation={{ status: false, message: \"Name is required\" }}\n */\nexport type LibInputValidation = {\n\tstatus: LibValidationStatus\n\tmessage?: ReactChildren\n\ticonPassed?: ReactElement\n\ticonNotPassed?: ReactElement\n}\n\n/**\n * @description All theme names available in the library.\n * @type {\"light\"|\"dark\"}\n * @example\n * theme=\"light\"\n * theme=\"dark\"\n */\nexport type LibThemeNames = keyof typeof designTokens.libThemes\n\n/**\n * @description All input variant tokens available in the library.\n * @type {\"rounded\" | \"rounded-sm\" | \"rounded-md\" | \"rounded-lg\" | \"rounded-xl\" | \"rounded-2xl\" | \"rounded-3xl\" | \"rounded-full\" | \"pill\"}\n * @example\n * variant=\"rounded\"\n * variant=\"rounded-lg\"\n * variant=\"pill\"\n */\nexport type LibInputVariant = keyof typeof designTokens.libInputVariants\n\n/**\n * @description All input type tokens available in the library for form inputs.\n * @type {\"color\" | \"date\" | \"datetime-local\" | \"month\" | \"week\" | \"file\" | \"password\" | \"search\" | \"email\" | \"number\" | \"tel\" | \"text\" | \"url\" | \"time\" | \"select\" | \"textarea\"}\n * @example\n * type=\"email\"\n * type=\"password\"\n * type=\"select\"\n */\nexport type LibInputType = keyof typeof designTokens.libInputTypes\n\n/**\n * @description All loader variant tokens available in the library.\n * @type {1 | 2 | 3}\n * @example\n * variant={3}\n */\nexport type LibLoaderVariant = keyof typeof designTokens.libLoaderVariants\n\n/**\n * @description All button variant tokens available in the library.\n * @type {\"plain\" | \"ghost\" | \"transparent\"}\n * @example\n * variant=\"plain\"\n * variant=\"ghost\"\n * variant=\"transparent\"\n */\nexport type LibButtonVariant = keyof typeof designTokens.libButtonVariants\n\n/**\n * @description All button variant tokens available in the library.\n * @type {\"plain\" | \"ghost\" | \"outline\" | \"transparent\"}\n * @example\n * variant=\"plain\"\n * variant=\"ghost\"\n * variant=\"outline\"\n */\nexport type LibButtonVariantExtended =\n\t| keyof typeof designTokens.libButtonVariants\n\t| \"outline\"\n\n/**\n * @description All button size tokens available in the library.\n * @type {\"default\" | \"small\"}\n * @example\n * variant=\"small\"\n */\nexport type LibButtonSize = keyof typeof designTokens.libButtonSize\n\n/**\n * @description All input background tokens available in the library.\n * @type {\"light\" | \"dark\"}\n * @example\n * inputBackground=\"light\"\n * inputBackground=\"dark\"\n */\nexport type LibInputBackground = keyof typeof designTokens.libInputBackgrounds\n\n/**\n * @description All display text tag tokens available in the library (headings from 1 to 5).\n * @type {\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\"}\n * @example\n * tag=\"h1\"\n * tag=\"h2\"\n */\nexport type LibTextTagDisplay = keyof typeof designTokens.libTextDisplayTags\n\n/**\n * @description All text tags without the display prop tokens available in the library (paragraphs, lists, etc.).\n * @type {\"h6\" | \"p\" | \"strong\" | \"em\" | \"small\" | \"blockquote\" | \"ul\" | \"ol\" | \"dl\"}\n * @example\n * tag=\"p\"\n * tag=\"ul\"\n * tag=\"blockquote\"\n */\nexport type LibTextTagNoDisplay = keyof typeof designTokens.libTextTags\n\n/**\n * @description All text tag tokens available in the library (display and non-display).\n * @type {\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\" | \"strong\" | \"em\" | \"small\" | \"blockquote\" | \"ul\" | \"ol\" | \"dl\"}\n * @example\n * tag=\"h1\"\n * tag=\"p\"\n * tag=\"ul\"\n */\nexport type LibTextTag = LibTextTagDisplay | LibTextTagNoDisplay\n\n/**\n * @description All CSS position tokens available in the library.\n * @type {\"relative\" | \"absolute\" | \"fixed\"}\n * @example\n * position=\"relative\"\n * position=\"absolute\"\n * position=\"fixed\"\n */\nexport type LibPosition = keyof typeof designTokens.libPosition\n\n/**\n * @description All z-index tokens available in the library.\n * @type {\"0\" | \"10\" | \"20\" | \"30\" | \"40\" | \"50\" | \"-0\" | \"-10\" | \"-20\" | \"-30\" | \"-40\" | \"-50\"}\n * @example\n * zIndex=\"10\"\n * zIndex=\"999\"\n */\nexport type LibZIndex = keyof typeof designTokens.libZIndex\n\n/**\n * @description All min heights available in the library\n * @type {\"px\" | \"full\" | \"screen\" | \"dvh\" | \"dvw\" | \"lvh\" | \"lvw\" | \"svw\" | \"svh\" | \"auto\" | \"min\" | \"max\" | \"fit\" | \"lh\"}\n * @example\n * minHeight=\"min-h-full\"\n * minHeight=\"min-h-screen\"\n */\nexport type LibMinHeight = keyof typeof designTokens.libMinHeights\n\n/**\n * @description All key sizes for the Key component.\n * @type {\"large\" | \"small\"}\n * @example\n * keySize=\"large\"\n * keySize=\"small\"\n */\nexport type LibKeySize = keyof typeof designTokens.libKeySizes\n\n/**\n * @description All max widths from the library.\n * @type {\"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\" | \"5xl\" | \"6xl\" | \"7xl\" | \"none\" | \"px\" | \"full\" | \"dvw\" | \"dvh\" | \"lvw\" | \"lvh\" | \"svw\" | \"svh\" | \"screen\" | \"min\" | \"max\" | \"fit\"}\n * @example\n * maxWidth=\"md\"\n * maxWidth=\"full\"\n */\nexport type LibMaxWidth = keyof typeof designTokens.libMaxWidths\n\n/**\n * @description All skeleton animation tokens available in the library.\n * @type {\"pulse\" | \"shine\"}\n * @example\n * skeletonAnimation=\"pulse\"\n * skeletonAnimation=\"shine\"\n */\nexport type LibSkeletonAnimation =\n\tkeyof typeof designTokens.libSkeletonAnimations\n\n/**\n * @description All tooltip position tokens available in the library.\n * @type {\"top\" | \"bottom\" | \"left\" | \"right\"}\n * @example\n * tooltipPosition=\"top\"\n * tooltipPosition=\"right\"\n */\nexport type LibTooltipPosition = keyof typeof designTokens.libTooltipPositions\n\n/**\n * @description All tooltip trigger tokens available in the library.\n * @type {\"hover\" | \"click\"}\n * @example\n * tooltipTrigger=\"hover\"\n * tooltipTrigger=\"click\"\n */\nexport type LibTooltipTrigger = keyof typeof designTokens.libTooltipTriggers\n\n/**\n * @description Props common to nearly all components.\n *\n * @template T - The HTML element type.\n * @prop {ElementType} [element] - The HTML element or React component to render as.\n * @prop {RefObject<T>} [ref] - Ref for the rendered element.\n * @extends HTMLAttributes<T>\n */\nexport interface LibComponentBase<T> extends HTMLAttributes<T> {\n\telement?: ElementType\n\tref?: RefObject<T>\n}\n\n/**\n * @description All variants available for Accordion item.\n * @type {\"basic\" | \"rounded\"}\n * @example\n * variant=\"basic\"\n * variant=\"rounded\"\n */\nexport type LibAccordionVariant = keyof typeof designTokens.libAccordionVariant\n\n/**\n * @description All icons available for Accordion item.\n * @type {\"plus\" | \"chevron\"}\n * @example\n * icon=\"plus\"\n * icon=\"chevron\"\n */\nexport type LibAccordionIcon = keyof typeof designTokens.libAccordionIcon\n\n/**\n * @description Variants for Tag component.\n * @type {\"plain\" | \"outline\"}\n * @example\n * variant=\"plain\"\n */\nexport type LibTagVariant = keyof typeof designTokens.libTagVariant\n\n/**\n * @description Variants for Toast component.\n * @type {\"success\" | \"error\" | \"warning\" | \"info\" | \"loading\"}\n * @example\n * status=\"error\"\n */\nexport type LibToastStatus = keyof typeof designTokens.libToastStatus\n\n/**\n * @description Variants for InputCheck component.\n * @type {\"tile\" | \"toggle\" | \"selector\"}\n * @example\n * variant=\"toggle\"\n */\nexport type LibCheckInputVariant =\n\tkeyof typeof designTokens.libCheckInputVariants\n\n/**\n * @description List direction variants for inputs with list.\n * @type {\"up\" | \"down\"}\n * @example\n * variant=\"up\"\n */\nexport type LibInputListDirection =\n\tkeyof typeof designTokens.libListInputDirections\n\n/**\n * @description All tab justification tokens available in the library for positioning tabs within their container.\n * @type {\"start\" | \"stretch\"}\n * @example\n * justify=\"stretch\"\n */\nexport type LibTabsJustify = keyof typeof designTokens.libTabsJustify\n\n/**\n * @description All tab variant tokens available in the library for styling tab components.\n * @type {\"basic\" | \"rounded\"}\n * @example\n * variant=\"basic\"\n */\nexport type LibTabsVariant = keyof typeof designTokens.libTabsVariant\n\n/**\n * @description All slideshow pagination variant tokens available in the library for styling pagination controls.\n * @type {\"dots\" | \"dots-outline\" | \"bars\" | \"thumbnails\"}\n * @example\n * pagination=\"dots\"\n * pagination=\"bars\"\n * pagination=\"thumbnails\"\n */\nexport type LibSlideshowPagination =\n\tkeyof typeof designTokens.libSlideshowPagination\n\n/**\n * @description All slideshow pagination position tokens available in the library for positioning pagination controls.\n * @type {\"inside\" | \"outside\"}\n * @example\n * paginationPosition=\"inside\"\n * paginationPosition=\"outside\"\n */\nexport type LibSlideshowPaginationPosition =\n\tkeyof typeof designTokens.libSlideshowPaginationPosition\n\n/**\n * @description All slideshow navigation buttons position tokens available in the library for positioning previous/next controls.\n * @type {\"left\" | \"right\"}\n * @example\n * buttonsPosition=\"left\"\n * buttonsPosition=\"right\"\n */\nexport type LibSlideshowButtonsPosition =\n\tkeyof typeof designTokens.libSlideshowButtonsPositions\n\n/**\n * @description All slideshow navigation buttons size tokens available in the library for sizing previous/next controls.\n * @type {\"small\" | \"large\"}\n * @example\n * buttonsSize=\"small\"\n * buttonsSize=\"large\"\n */\nexport type LibSlideshowButtonsSize =\n\tkeyof typeof designTokens.libSlideshowButtonsSizes\n\n/**\n * @description All table variant tokens available in the library for styling table components.\n * @type {\"bordered\" | \"stripped\" | \"border-bottom\"}\n * @example\n * variant=\"bordered\"\n * variant=\"stripped\"\n * variant=\"border-bottom\"\n */\nexport type LibTableVariant = keyof typeof designTokens.libTableVariants\n\n/**\n * @description All markdown editor view tokens available in the library for switching between different editor display modes.\n * @type {\"code\" | \"live\" | \"preview\"}\n * @example\n * view=\"code\"\n * view=\"live\"\n * view=\"preview\"\n */\nexport type LibMdEditorViews = keyof typeof designTokens.libMdEditorViews\n\n/**\n * @description All markdown editor title tokens available in the library for heading levels in the editor.\n * @type {\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"}\n * @example\n * titles={{\n * h1: true,\n * \t h3: false,\n * }}\n */\nexport type LibMdEditorTitles = keyof typeof designTokens.libMdEditorTitles\n\n/**\n * @description All markdown editor button tokens available in the library for controlling toolbar button visibility.\n * @type {\"bold\" | \"italic\" | \"strikethrough\" | \"underline\" | \"ul\" | \"ol\" | \"link\" | \"quote\" | \"hr\" | \"code\" | \"codeBlock\" | \"comment\" | \"image\"}\n * @example\n * buttons={{\n * bold: false,\n * \t italic: true,\n * }}\n */\nexport type LibMdEditorButtons = keyof typeof designTokens.libMdEditorButtons\n\n/**\n * @description All drawer position tokens available in the library for positioning drawer components within the viewport.\n * @type {\"left\" | \"right\" }\n * @example\n * position=\"left\"\n * position=\"right\"\n */\nexport type LibDrawerPosition = keyof typeof designTokens.libDrawerPositions\n\n/**\n * @description All navigation burger position tokens available in the library for positioning burger menu buttons within the navigation.\n * @type {\"left\" | \"right\"}\n * @example\n * position=\"left\"\n * position=\"right\"\n */\nexport type LibNavBurgerPosition =\n\tkeyof typeof designTokens.libNavBurgerPositions\n\n/**\n * @description All navigation mobile variant tokens available in the library for styling mobile navigation components.\n * @type {\"drawer\" | \"full\" | \"top\"}\n * @example\n * variant=\"drawer\"\n * variant=\"full\"\n */\nexport type LibNavMobileVariant = keyof typeof designTokens.libNavMobileVariants\n\n/**\n * @description All header position tokens available in the library for positioning header components within the viewport.\n * @type {\"relative\" | \"absolute\" | \"fixed\"}\n * @example\n * position=\"relative\"\n * position=\"absolute\"\n * position=\"fixed\"\n */\nexport type LibHeaderPosition = Extract<\n\tProperty.Position,\n\t\"relative\" | \"absolute\" | \"fixed\"\n>\n\n/**\n * @description All footer direction tokens available in the library for controlling the layout direction of footer content.\n * @type {\"horizontal\" | \"vertical\"}\n * @example\n * direction=\"horizontal\"\n * direction=\"vertical\"\n */\nexport type LibFooterDirection = keyof typeof designTokens.libFooterDirection\n\n/**\n * @description All footer links separator tokens available in the library for controlling the visual separator between footer links.\n * @type {\"dot\" | \"dash\"}\n * @example\n * separator=\"dot\"\n * separator=\"dash\"\n */\nexport type LibFooterLinksSeparator =\n\tkeyof typeof designTokens.libFooterLinksSeparator\n\n/**\n * @description Type of values for InputPin component representing a collection of pin input values.\n * @type {object}\n * @example\n * values={{\n * 0: 1,\n * 1: 2,\n * 2: 3,\n * 3: 4\n * }}\n *\n * values={{\n * 0: \"\",\n * 1: 5,\n * 2: undefined,\n * 3: 9\n * }}\n *\n * @prop {number | \"\" | undefined} [index] - Value at each pin position, can be a number, empty string, or undefined.\n */\nexport type LibValueInputPin = { [n: number]: number | \"\" | undefined }\n\n/**\n * @description Configuration object for translation data used in useTranslation hook for internationalization support.\n * @type {object}\n * @example\n * translateLang={{\n * en: {\n * \"hello\": \"Hello\",\n * \"welcome\": \"Welcome to our app\",\n * \"button.save\": \"Save\"\n * },\n * fr: {\n * \"hello\": \"Bonjour\",\n * \"welcome\": \"Bienvenue dans notre application\",\n * \"button.save\": \"Enregistrer\"\n * }\n * }}\n *\n * @prop {Object.<string, Object.<string, string>>} [language] - Language code as key containing translation key-value pairs.\n */\nexport type TranslateLang = {\n\t[language: string]: {\n\t\t[key: string]: string\n\t}\n}\n\n/**\n * @description Configuration object for background image styling and positioning properties.\n * @type {object}\n * @example\n * backgroundImage={{\n * img: \"/images/hero-bg.jpg\",\n * position: \"center\",\n * size: \"cover\",\n * repeat: \"no-repeat\"\n * }}\n *\n * backgroundImage={{\n * img: \"url('/pattern.png')\",\n * clip: \"padding\",\n * origin: \"border\",\n * repeat: \"repeat-x\"\n * }}\n *\n * @prop {string} img - URL or path to the background image.\n * @prop {\"border\" | \"padding\" | \"content\" | \"text\"} [clip] - Defines how far the background extends within the element.\n * @prop {\"border\" | \"padding\" | \"content\"} [origin] - Sets the origin position of the background image.\n * @prop {\"top-left\" | \"top\" | \"top-right\" | \"left\" | \"center\" | \"right\" | \"bottom-left\" | \"bottom\" | \"bottom-right\"} [position] - Position of the background image within the element.\n * @prop {\"repeat\" | \"repeat-x\" | \"repeat-y\" | \"repeat-space\" | \"repeat-round\" | \"no-repeat\"} [repeat] - How the background image should be repeated.\n * @prop {\"auto\" | \"cover\" | \"contain\"} [size] - Size of the background image.\n */\nexport interface ILibBackgroundImage {\n\timg: string\n\tclip?: \"border\" | \"padding\" | \"content\" | \"text\"\n\torigin?: \"border\" | \"padding\" | \"content\"\n\tposition?:\n\t\t| \"top-left\"\n\t\t| \"top\"\n\t\t| \"top-right\"\n\t\t| \"left\"\n\t\t| \"center\"\n\t\t| \"right\"\n\t\t| \"bottom-left\"\n\t\t| \"bottom\"\n\t\t| \"bottom-right\"\n\trepeat?:\n\t\t| \"repeat\"\n\t\t| \"repeat-x\"\n\t\t| \"repeat-y\"\n\t\t| \"repeat-space\"\n\t\t| \"repeat-round\"\n\t\t| \"no-repeat\"\n\tsize?: \"auto\" | \"cover\" | \"contain\"\n}\n\n/**\n * @description Configuration object for country data used in InputPhone component and other internationalization features.\n * @type {object}\n * @use Import `countries` object\n * @example\n * country={countries[2]}\n *\n * @prop {string} name - Full name of the country.\n * @prop {string} dial_code - International dialing code with + prefix.\n * @prop {CountryCode} code - ISO 3166-1 alpha-2 country code.\n * @prop {string} flag - Image flag for the country.\n */\nexport type LibCountry = {\n\tname: string\n\tdial_code: string\n\tcode: CountryCode\n\tflag: ReactElement\n}\n\n/**\n * @description Configuration object for positioning the BackToTop component within the viewport.\n * @type {object}\n * @example\n * position={{\n * right: \"md\",\n * bottom: \"lg\",\n * zIndex: \"50\"\n * }}\n *\n * position={{\n * left: \"sm\",\n * top: \"unset\",\n * bottom: \"xl\"\n * }}\n *\n * @prop {LibSpacers | \"unset\"} [left] - Distance from the left edge of the viewport.\n * @prop {LibSpacers | \"unset\"} [top] - Distance from the top edge of the viewport.\n * @prop {LibSpacers | \"unset\"} [right] - Distance from the right edge of the viewport.\n * @prop {LibSpacers | \"unset\"} [bottom] - Distance from the bottom edge of the viewport.\n * @prop {LibZIndex} [zIndex] - Z-index value for layering the component above other elements.\n */\nexport interface LibBackToTopPosition {\n\tleft?: LibSpacers | \"unset\"\n\ttop?: LibSpacers | \"unset\"\n\tright?: LibSpacers | \"unset\"\n\tbottom?: LibSpacers | \"unset\"\n\tzIndex?: LibZIndex\n}\n\n/**\n * @description Configuration object for positioning and styling tooltip components with advanced customization options.\n * @type {object}\n * @example\n * tooltipOptions={{\n * position: \"top\",\n * offset: \"md\",\n * backgroundColor: \"black\",\n * textColor: \"white\",\n * hideArrow: false\n * }}\n *\n * tooltipOptions={{\n * position: \"right\",\n * offset: \"lg\",\n * backgroundColor: \"primary-500\",\n * textColor: \"white\",\n * hideArrow: true,\n * className: \"custom-tooltip\"\n * }}\n *\n * @prop {LibTooltipPosition} [position] - Position of the tooltip relative to its trigger element.\n * @prop {LibSpacers} [offset] - Distance between the tooltip and its trigger element.\n * @prop {LibAllColorsAndOverlays} [backgroundColor] - Background color or overlay for the tooltip.\n * @prop {LibAllColors} [textColor] - Text color for the tooltip content.\n * @prop {boolean} [hideArrow] - Whether to hide the arrow pointing to the trigger element.\n * @prop {ClassNames} [className] - Additional CSS classes to apply to the tooltip.\n * @prop {CSSProperties} [style] - Custom inline styles for the tooltip.\n */\nexport interface LibTooltipPositionOptions {\n\tposition?: LibTooltipPosition\n\toffset?: LibSpacers\n\tbackgroundColor?: LibAllColorsAndOverlays\n\ttextColor?: LibAllColors\n\thideArrow?: boolean\n\tclassName?: ClassNames\n\tstyle?: CSSProperties\n\ttooltipClassName?: ClassNames\n\ttooltipStyle?: CSSProperties\n}\n\nexport type ReactChildren = ReactNode | Array<ReactNode>\nexport type ReactElement = ReactEl\nexport type FC<T = {}> = FunctionComponent<T>\nexport type DispatchState<T> = Dispatch<SetStateAction<T>>\nexport type Classes = string | Array<string>\n\nexport type CssTextAlign =\n\t| \"left\"\n\t| \"center\"\n\t| \"right\"\n\t| \"justify\"\n\t| \"start\"\n\t| \"end\"\nexport type CssVerticalAlign =\n\t| \"align-baseline\"\n\t| \"align-top\"\n\t| \"align-middle\"\n\t| \"align-bottom\"\n\t| \"align-text-top\"\n\t| \"align-text-bottom\"\n\t| \"align-sub\"\n\t| \"align-super\"\nexport type CssJustifyItems =\n\t| \"start\"\n\t| \"end\"\n\t| \"end-safe\"\n\t| \"center\"\n\t| \"center-safe\"\n\t| \"stretch\"\n\t| \"normal\"\nexport type CssAlignItems =\n\t| \"start\"\n\t| \"end\"\n\t| \"end-safe\"\n\t| \"center\"\n\t| \"center-safe\"\n\t| \"baseline\"\n\t| \"baseline-start\"\n\t| \"stretch\"\nexport type CssJustifyContent =\n\t| \"start\"\n\t| \"end\"\n\t| \"end-safe\"\n\t| \"center\"\n\t| \"center-safe\"\n\t| \"space-between\"\n\t| \"space-around\"\n\t| \"space-evenly\"\n\t| \"stretch\"\n\t| \"baseline\"\n\t| \"normal\"\nexport type CssAlignContent =\n\t| \"normal\"\n\t| \"center\"\n\t| \"start\"\n\t| \"end\"\n\t| \"space-between\"\n\t| \"space-around\"\n\t| \"space-evenly\"\n\t| \"baseline\"\n\t| \"stretch\"\nexport type CssFlexDirection = \"row\" | \"row-reverse\" | \"col\" | \"col-reverse\"\nexport type CssFlexWrap = \"nowrap\" | \"wrap\" | \"wrap-reverse\"\nexport type CssObjectFit = \"contain\" | \"cover\" | \"fill\" | \"none\" | \"scale-down\"\nexport type CssBorderStyle =\n\t| \"solid\"\n\t| \"dashed\"\n\t| \"dotted\"\n\t| \"double\"\n\t| \"hidden\"\n\t| \"none\"\nexport type CssOutlineStyle =\n\t| \"solid\"\n\t| \"dashed\"\n\t| \"dotted\"\n\t| \"double\"\n\t| \"none\"\n\t| \"hidden\"\n\nexport type LibMainSize = keyof typeof designTokens.libMainSizes\nexport type LibAsideSize = keyof typeof designTokens.libAsideSizes\nexport type CountryCode = keyof typeof designTokens.libCountryCodes\nexport type ClassNames = string | Array<string>\nexport type CSSProperties = CSS\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/lib/types/global.ts"],"sourcesContent":["import type {\n\tHTMLAttributes,\n\tElementType,\n\tReactNode,\n\tDispatch,\n\tSetStateAction,\n\tFunctionComponent,\n\tRefObject,\n\tCSSProperties as CSS,\n\tReactElement as ReactEl,\n} from \"react\"\nimport type { Property } from \"csstype\"\nimport type { designTokens } from \"../utils/design-tokens\"\n\n/**\n * @description All color tokens available in the library.\n * @type {keyof typeof designTokens.libColors}\n * @example\n * color=\"danger-300\"\n * color=\"gray-100\"\n */\nexport type LibColors = keyof typeof designTokens.libColors\n\n/**\n * @description All color short tokens available in the library. This returns the color-500.\n * @type {\"primary\" | \"secondary\" | \"success\" | \"danger\" | \"warning\" | \"gray\" | \"black\" | \"white\" | \"current\" | \"transparent\" | \"background\"}\n * @example\n * color=\"primary\"\n * color=\"gray\"\n */\nexport type LibColorsShort = keyof typeof designTokens.libColorsShort\n\n/**\n * @description All color tokens and color short tokens available in the library.\n * @type {keyof typeof designTokens.libColors | \"primary\" | \"secondary\" | \"success\" | \"danger\" | \"warning\" | \"gray\" | \"black\" | \"white\" | \"current\" | \"transparent\" | \"background\"}\n * @example\n * color=\"danger-300\"\n * color=\"primary\"\n * color=\"gray-100\"\n */\nexport type LibAllColors = LibColors | LibColorsShort\n\n/**\n * @description All hover color tokens available in the library.\n * @type {\"primary\" | \"secondary\" | \"success\" | \"danger\" | \"warning\" | \"white\"}\n * @example\n * color=\"primary\"\n * color=\"gray\"\n */\nexport type LibColorsHover = keyof typeof designTokens.libColorsHover\n\n/**\n * @description All hover color tokens plus \"current\" for currentColor support.\n * @type {\"primary\" | \"secondary\" | \"success\" | \"danger\" | \"warning\" | \"white\" | \"current\"}\n * @example\n * color=\"primary\"\n * color=\"gray\"\n * color=\"current\"\n */\nexport type LibColorsHoverAndCurrent = LibColorsHover | \"current\"\n\n/**\n * @description All overlay tokens available in the library.\n * @type {\"black-50\" | \"black-80\" | \"white-50\" | \"white-80\" | \"gradient-black\" | \"gradient-white\"}\n * @example\n * overlay=\"overlay-100\"\n * overlay=\"overlay-dark\"\n */\nexport type LibOverlays = keyof typeof designTokens.libOverlays\n\n/**\n * @description All color and overlay tokens available in the library.\n * @type {Any color from the library | Any overlay from the library}\n * @example\n * color=\"primary\"\n * color=\"gray-100\"\n * overlay=\"overlay-100\"\n * overlay=\"overlay-dark\"\n */\nexport type LibAllColorsAndOverlays =\n\t| LibAllColors\n\t| keyof typeof designTokens.libOverlays\n\n/**\n * @description All font family tokens available in the library.\n * @type {\"body\"|\"code\"}\n * @example\n * fontFamily=\"body\"\n * fontFamily=\"code\"\n */\nexport type LibFontFamilies = keyof typeof designTokens.libFontFamilies\n\n/**\n * @description All font size tokens available in the library.\n * @type {\"xs\" | \"sm\" | \"base\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\" | \"5xl\" | \"6xl\" | \"7xl\" | \"8xl\" | \"9xl\"}\n * @example\n * fontSize=\"md\"\n * fontSize=\"xl\"\n */\nexport type LibFontSizes = keyof typeof designTokens.libFontSizes\n\n/**\n * @description All font weight tokens available in the library.\n * @type {\"thin\" | \"light\" | \"regular\" | \"bold\" | \"black\"}\n * @example\n * fontWeight=\"regular\"\n * fontWeight=\"bold\"\n */\nexport type LibFontWeights = keyof typeof designTokens.libFontWeights\n\n/**\n * @description All box shadow tokens available in the library.\n * @type {\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"none\"}\n * @example\n * boxShadow=\"md\"\n * boxShadow=\"xl\"\n */\nexport type LibShadows = keyof typeof designTokens.libShadows\n\n/**\n * @description All spacer tokens available in the library, plus \"0px\".\n * @type {\"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"0px\"}\n * @example\n * padding=\"md\"\n * margin=\"xl\"\n * gap=\"xs\"\n * padding=\"0px\"\n */\nexport type LibSpacers = keyof typeof designTokens.libSpacers | \"0px\"\n\n/**\n * @description All border radius tokens available in the library.\n * @type {\"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\" | \"full\"}\n * @example\n * radius=\"m\"\n * radius=\"xl\"\n */\nexport type LibRadiuses = keyof typeof designTokens.libRadius\n\n/**\n * @description All transition tokens available in the library.\n * @type {\"none\" | \"all\" | \"default\" | \"colors\" | \"opacity\" | \"shadow\" | \"transform\"}\n * @example\n * transition=\"all\"\n * transition=\"colors\"\n */\nexport type LibTransitions = keyof typeof designTokens.libTransitions\n\n/**\n * @description Validation status for form components.\n * @type {boolean | undefined}\n * @example\n * validation={true} // valid\n * validation={false} // invalid\n * validation={undefined} // not validated\n */\nexport type LibValidationStatus = boolean | undefined\n\n/**\n * @description Validation for input components.\n * @type {Object}\n * @example\n * validation={{ status: false, message: \"Name is required\" }}\n */\nexport type LibInputValidation = {\n\tstatus: LibValidationStatus\n\tmessage?: ReactChildren\n\ticonPassed?: ReactElement\n\ticonNotPassed?: ReactElement\n}\n\n/**\n * @description All theme names available in the library.\n * @type {\"light\"|\"dark\"}\n * @example\n * theme=\"light\"\n * theme=\"dark\"\n */\nexport type LibThemeNames = keyof typeof designTokens.libThemes\n\n/**\n * @description All input variant tokens available in the library.\n * @type {\"rounded\" | \"rounded-sm\" | \"rounded-md\" | \"rounded-lg\" | \"rounded-xl\" | \"rounded-2xl\" | \"rounded-3xl\" | \"rounded-full\" | \"pill\"}\n * @example\n * variant=\"rounded\"\n * variant=\"rounded-lg\"\n * variant=\"pill\"\n */\nexport type LibInputVariant = keyof typeof designTokens.libInputVariants\n\n/**\n * @description All input type tokens available in the library for form inputs.\n * @type {\"color\" | \"date\" | \"datetime-local\" | \"month\" | \"week\" | \"file\" | \"password\" | \"search\" | \"email\" | \"number\" | \"tel\" | \"text\" | \"url\" | \"time\" | \"select\" | \"textarea\"}\n * @example\n * type=\"email\"\n * type=\"password\"\n * type=\"select\"\n */\nexport type LibInputType = keyof typeof designTokens.libInputTypes\n\n/**\n * @description All loader variant tokens available in the library.\n * @type {1 | 2 | 3}\n * @example\n * variant={3}\n */\nexport type LibLoaderVariant = keyof typeof designTokens.libLoaderVariants\n\n/**\n * @description All button variant tokens available in the library.\n * @type {\"plain\" | \"ghost\" | \"transparent\"}\n * @example\n * variant=\"plain\"\n * variant=\"ghost\"\n * variant=\"transparent\"\n */\nexport type LibButtonVariant = keyof typeof designTokens.libButtonVariants\n\n/**\n * @description All button variant tokens available in the library.\n * @type {\"plain\" | \"ghost\" | \"outline\" | \"transparent\"}\n * @example\n * variant=\"plain\"\n * variant=\"ghost\"\n * variant=\"outline\"\n */\nexport type LibButtonVariantExtended =\n\t| keyof typeof designTokens.libButtonVariants\n\t| \"outline\"\n\n/**\n * @description All button size tokens available in the library.\n * @type {\"default\" | \"small\"}\n * @example\n * variant=\"small\"\n */\nexport type LibButtonSize = keyof typeof designTokens.libButtonSize\n\n/**\n * @description All input background tokens available in the library.\n * @type {\"light\" | \"dark\"}\n * @example\n * inputBackground=\"light\"\n * inputBackground=\"dark\"\n */\nexport type LibInputBackground = keyof typeof designTokens.libInputBackgrounds\n\n/**\n * @description All display text tag tokens available in the library (headings from 1 to 5).\n * @type {\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\"}\n * @example\n * tag=\"h1\"\n * tag=\"h2\"\n */\nexport type LibTextTagDisplay = keyof typeof designTokens.libTextDisplayTags\n\n/**\n * @description All text tags without the display prop tokens available in the library (paragraphs, lists, etc.).\n * @type {\"h6\" | \"p\" | \"strong\" | \"em\" | \"small\" | \"blockquote\" | \"ul\" | \"ol\" | \"dl\"}\n * @example\n * tag=\"p\"\n * tag=\"ul\"\n * tag=\"blockquote\"\n */\nexport type LibTextTagNoDisplay = keyof typeof designTokens.libTextTags\n\n/**\n * @description All text tag tokens available in the library (display and non-display).\n * @type {\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\" | \"strong\" | \"em\" | \"small\" | \"blockquote\" | \"ul\" | \"ol\" | \"dl\"}\n * @example\n * tag=\"h1\"\n * tag=\"p\"\n * tag=\"ul\"\n */\nexport type LibTextTag = LibTextTagDisplay | LibTextTagNoDisplay\n\n/**\n * @description All CSS position tokens available in the library.\n * @type {\"relative\" | \"absolute\" | \"fixed\"}\n * @example\n * position=\"relative\"\n * position=\"absolute\"\n * position=\"fixed\"\n */\nexport type LibPosition = keyof typeof designTokens.libPosition\n\n/**\n * @description All z-index tokens available in the library.\n * @type {\"0\" | \"10\" | \"20\" | \"30\" | \"40\" | \"50\" | \"-0\" | \"-10\" | \"-20\" | \"-30\" | \"-40\" | \"-50\"}\n * @example\n * zIndex=\"10\"\n * zIndex=\"999\"\n */\nexport type LibZIndex = keyof typeof designTokens.libZIndex\n\n/**\n * @description All min heights available in the library\n * @type {\"px\" | \"full\" | \"screen\" | \"dvh\" | \"dvw\" | \"lvh\" | \"lvw\" | \"svw\" | \"svh\" | \"auto\" | \"min\" | \"max\" | \"fit\" | \"lh\"}\n * @example\n * minHeight=\"min-h-full\"\n * minHeight=\"min-h-screen\"\n */\nexport type LibMinHeight = keyof typeof designTokens.libMinHeights\n\n/**\n * @description All key sizes for the Key component.\n * @type {\"large\" | \"small\"}\n * @example\n * keySize=\"large\"\n * keySize=\"small\"\n */\nexport type LibKeySize = keyof typeof designTokens.libKeySizes\n\n/**\n * @description All max widths from the library.\n * @type {\"3xs\" | \"2xs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\" | \"5xl\" | \"6xl\" | \"7xl\" | \"none\" | \"px\" | \"full\" | \"dvw\" | \"dvh\" | \"lvw\" | \"lvh\" | \"svw\" | \"svh\" | \"screen\" | \"min\" | \"max\" | \"fit\"}\n * @example\n * maxWidth=\"md\"\n * maxWidth=\"full\"\n */\nexport type LibMaxWidth = keyof typeof designTokens.libMaxWidths\n\n/**\n * @description All skeleton animation tokens available in the library.\n * @type {\"pulse\" | \"shine\"}\n * @example\n * skeletonAnimation=\"pulse\"\n * skeletonAnimation=\"shine\"\n */\nexport type LibSkeletonAnimation =\n\tkeyof typeof designTokens.libSkeletonAnimations\n\n/**\n * @description All tooltip position tokens available in the library.\n * @type {\"top\" | \"bottom\" | \"left\" | \"right\"}\n * @example\n * tooltipPosition=\"top\"\n * tooltipPosition=\"right\"\n */\nexport type LibTooltipPosition = keyof typeof designTokens.libTooltipPositions\n\n/**\n * @description All tooltip trigger tokens available in the library.\n * @type {\"hover\" | \"click\"}\n * @example\n * tooltipTrigger=\"hover\"\n * tooltipTrigger=\"click\"\n */\nexport type LibTooltipTrigger = keyof typeof designTokens.libTooltipTriggers\n\n/**\n * @description Props common to nearly all components.\n *\n * @template T - The HTML element type.\n * @prop {ElementType} [element] - The HTML element or React component to render as.\n * @prop {RefObject<T>} [ref] - Ref for the rendered element.\n * @extends HTMLAttributes<T>\n */\nexport interface LibComponentBase<T> extends HTMLAttributes<T> {\n\telement?: ElementType\n\tref?: RefObject<T>\n}\n\n/**\n * @description All variants available for Accordion item.\n * @type {\"basic\" | \"rounded\"}\n * @example\n * variant=\"basic\"\n * variant=\"rounded\"\n */\nexport type LibAccordionVariant = keyof typeof designTokens.libAccordionVariant\n\n/**\n * @description All icons available for Accordion item.\n * @type {\"plus\" | \"chevron\"}\n * @example\n * icon=\"plus\"\n * icon=\"chevron\"\n */\nexport type LibAccordionIcon = keyof typeof designTokens.libAccordionIcon\n\n/**\n * @description Variants for Tag component.\n * @type {\"plain\" | \"outline\"}\n * @example\n * variant=\"plain\"\n */\nexport type LibTagVariant = keyof typeof designTokens.libTagVariant\n\n/**\n * @description Variants for Toast component.\n * @type {\"success\" | \"error\" | \"warning\" | \"info\" | \"loading\"}\n * @example\n * status=\"error\"\n */\nexport type LibToastStatus = keyof typeof designTokens.libToastStatus\n\n/**\n * @description Variants for InputCheck component.\n * @type {\"tile\" | \"toggle\" | \"selector\"}\n * @example\n * variant=\"toggle\"\n */\nexport type LibCheckInputVariant =\n\tkeyof typeof designTokens.libCheckInputVariants\n\n/**\n * @description List direction variants for inputs with list.\n * @type {\"up\" | \"down\"}\n * @example\n * variant=\"up\"\n */\nexport type LibInputListDirection =\n\tkeyof typeof designTokens.libListInputDirections\n\n/**\n * @description All tab justification tokens available in the library for positioning tabs within their container.\n * @type {\"start\" | \"stretch\"}\n * @example\n * justify=\"stretch\"\n */\nexport type LibTabsJustify = keyof typeof designTokens.libTabsJustify\n\n/**\n * @description All tab variant tokens available in the library for styling tab components.\n * @type {\"basic\" | \"rounded\"}\n * @example\n * variant=\"basic\"\n */\nexport type LibTabsVariant = keyof typeof designTokens.libTabsVariant\n\n/**\n * @description All slideshow pagination variant tokens available in the library for styling pagination controls.\n * @type {\"dots\" | \"dots-outline\" | \"bars\" | \"thumbnails\"}\n * @example\n * pagination=\"dots\"\n * pagination=\"bars\"\n * pagination=\"thumbnails\"\n */\nexport type LibSlideshowPagination =\n\tkeyof typeof designTokens.libSlideshowPagination\n\n/**\n * @description All slideshow pagination position tokens available in the library for positioning pagination controls.\n * @type {\"inside\" | \"outside\"}\n * @example\n * paginationPosition=\"inside\"\n * paginationPosition=\"outside\"\n */\nexport type LibSlideshowPaginationPosition =\n\tkeyof typeof designTokens.libSlideshowPaginationPosition\n\n/**\n * @description All slideshow navigation buttons position tokens available in the library for positioning previous/next controls.\n * @type {\"left\" | \"right\"}\n * @example\n * buttonsPosition=\"left\"\n * buttonsPosition=\"right\"\n */\nexport type LibSlideshowButtonsPosition =\n\tkeyof typeof designTokens.libSlideshowButtonsPositions\n\n/**\n * @description All slideshow navigation buttons size tokens available in the library for sizing previous/next controls.\n * @type {\"small\" | \"large\"}\n * @example\n * buttonsSize=\"small\"\n * buttonsSize=\"large\"\n */\nexport type LibSlideshowButtonsSize =\n\tkeyof typeof designTokens.libSlideshowButtonsSizes\n\n/**\n * @description All table variant tokens available in the library for styling table components.\n * @type {\"bordered\" | \"stripped\" | \"border-bottom\"}\n * @example\n * variant=\"bordered\"\n * variant=\"stripped\"\n * variant=\"border-bottom\"\n */\nexport type LibTableVariant = keyof typeof designTokens.libTableVariants\n\n/**\n * @description All markdown editor view tokens available in the library for switching between different editor display modes.\n * @type {\"code\" | \"live\" | \"preview\"}\n * @example\n * view=\"code\"\n * view=\"live\"\n * view=\"preview\"\n */\nexport type LibMdEditorViews = keyof typeof designTokens.libMdEditorViews\n\n/**\n * @description All markdown editor title tokens available in the library for heading levels in the editor.\n * @type {\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"}\n * @example\n * titles={{\n * h1: true,\n * \t h3: false,\n * }}\n */\nexport type LibMdEditorTitles = keyof typeof designTokens.libMdEditorTitles\n\n/**\n * @description All markdown editor button tokens available in the library for controlling toolbar button visibility.\n * @type {\"bold\" | \"italic\" | \"strikethrough\" | \"underline\" | \"ul\" | \"ol\" | \"link\" | \"quote\" | \"hr\" | \"code\" | \"codeBlock\" | \"comment\" | \"image\"}\n * @example\n * buttons={{\n * bold: false,\n * \t italic: true,\n * }}\n */\nexport type LibMdEditorButtons = keyof typeof designTokens.libMdEditorButtons\n\n/**\n * @description All drawer position tokens available in the library for positioning drawer components within the viewport.\n * @type {\"left\" | \"right\" }\n * @example\n * position=\"left\"\n * position=\"right\"\n */\nexport type LibDrawerPosition = keyof typeof designTokens.libDrawerPositions\n\n/**\n * @description All navigation burger position tokens available in the library for positioning burger menu buttons within the navigation.\n * @type {\"left\" | \"right\"}\n * @example\n * position=\"left\"\n * position=\"right\"\n */\nexport type LibNavBurgerPosition =\n\tkeyof typeof designTokens.libNavBurgerPositions\n\n/**\n * @description All navigation mobile variant tokens available in the library for styling mobile navigation components.\n * @type {\"drawer\" | \"full\" | \"top\"}\n * @example\n * variant=\"drawer\"\n * variant=\"full\"\n */\nexport type LibNavMobileVariant = keyof typeof designTokens.libNavMobileVariants\n\n/**\n * @description All header position tokens available in the library for positioning header components within the viewport.\n * @type {\"relative\" | \"absolute\" | \"fixed\"}\n * @example\n * position=\"relative\"\n * position=\"absolute\"\n * position=\"fixed\"\n */\nexport type LibHeaderPosition = Extract<\n\tProperty.Position,\n\t\"relative\" | \"absolute\" | \"fixed\"\n>\n\n/**\n * @description All footer direction tokens available in the library for controlling the layout direction of footer content.\n * @type {\"horizontal\" | \"vertical\"}\n * @example\n * direction=\"horizontal\"\n * direction=\"vertical\"\n */\nexport type LibFooterDirection = keyof typeof designTokens.libFooterDirection\n\n/**\n * @description All footer links separator tokens available in the library for controlling the visual separator between footer links.\n * @type {\"dot\" | \"dash\"}\n * @example\n * separator=\"dot\"\n * separator=\"dash\"\n */\nexport type LibFooterLinksSeparator =\n\tkeyof typeof designTokens.libFooterLinksSeparator\n\n/**\n * @description Type of values for InputPin component representing a collection of pin input values.\n * @type {object}\n * @example\n * values={{\n * 0: 1,\n * 1: 2,\n * 2: 3,\n * 3: 4\n * }}\n *\n * values={{\n * 0: \"\",\n * 1: 5,\n * 2: undefined,\n * 3: 9\n * }}\n *\n * @prop {number | \"\" | undefined} [index] - Value at each pin position, can be a number, empty string, or undefined.\n */\nexport type LibValueInputPin = { [n: number]: number | \"\" | undefined }\n\n/**\n * @description Configuration object for translation data used in useTranslation hook for internationalization support.\n * @type {object}\n * @example\n * translateLang={{\n * en: {\n * \"hello\": \"Hello\",\n * \"welcome\": \"Welcome to our app\",\n * \"button.save\": \"Save\"\n * },\n * fr: {\n * \"hello\": \"Bonjour\",\n * \"welcome\": \"Bienvenue dans notre application\",\n * \"button.save\": \"Enregistrer\"\n * }\n * }}\n *\n * @prop {Object.<string, Object.<string, string>>} [language] - Language code as key containing translation key-value pairs.\n */\nexport type TranslateLang = {\n\t[language: string]: {\n\t\t[key: string]: string\n\t}\n}\n\n/**\n * @description Configuration object for background image styling and positioning properties.\n * @type {object}\n * @example\n * backgroundImage={{\n * img: \"/images/hero-bg.jpg\",\n * position: \"center\",\n * size: \"cover\",\n * repeat: \"no-repeat\"\n * }}\n *\n * backgroundImage={{\n * img: \"url('/pattern.png')\",\n * clip: \"padding\",\n * origin: \"border\",\n * repeat: \"repeat-x\"\n * }}\n *\n * @prop {string} img - URL or path to the background image.\n * @prop {\"border\" | \"padding\" | \"content\" | \"text\"} [clip] - Defines how far the background extends within the element.\n * @prop {\"border\" | \"padding\" | \"content\"} [origin] - Sets the origin position of the background image.\n * @prop {\"top-left\" | \"top\" | \"top-right\" | \"left\" | \"center\" | \"right\" | \"bottom-left\" | \"bottom\" | \"bottom-right\"} [position] - Position of the background image within the element.\n * @prop {\"repeat\" | \"repeat-x\" | \"repeat-y\" | \"repeat-space\" | \"repeat-round\" | \"no-repeat\"} [repeat] - How the background image should be repeated.\n * @prop {\"auto\" | \"cover\" | \"contain\"} [size] - Size of the background image.\n */\nexport interface ILibBackgroundImage {\n\timg: string\n\tclip?: \"border\" | \"padding\" | \"content\" | \"text\"\n\torigin?: \"border\" | \"padding\" | \"content\"\n\tposition?:\n\t\t| \"top-left\"\n\t\t| \"top\"\n\t\t| \"top-right\"\n\t\t| \"left\"\n\t\t| \"center\"\n\t\t| \"right\"\n\t\t| \"bottom-left\"\n\t\t| \"bottom\"\n\t\t| \"bottom-right\"\n\trepeat?:\n\t\t| \"repeat\"\n\t\t| \"repeat-x\"\n\t\t| \"repeat-y\"\n\t\t| \"repeat-space\"\n\t\t| \"repeat-round\"\n\t\t| \"no-repeat\"\n\tsize?: \"auto\" | \"cover\" | \"contain\"\n}\n\n/**\n * @description Configuration object for country data used in InputPhone component and other internationalization features.\n * @type {object}\n * @use Import `countries` object\n * @example\n * country={countries[2]}\n *\n * @prop {string} name - Full name of the country.\n * @prop {string} dial_code - International dialing code with + prefix.\n * @prop {CountryCode} code - ISO 3166-1 alpha-2 country code.\n * @prop {string} flag - Image flag for the country.\n */\nexport type LibCountry = {\n\tname: string\n\tdial_code: string\n\tcode: CountryCode\n\tflag: ReactElement\n}\n\n/**\n * @description Configuration object for positioning the BackToTop component within the viewport.\n * @type {object}\n * @example\n * position={{\n * right: \"md\",\n * bottom: \"lg\",\n * zIndex: \"50\"\n * }}\n *\n * position={{\n * left: \"sm\",\n * top: \"unset\",\n * bottom: \"xl\"\n * }}\n *\n * @prop {LibSpacers | \"unset\"} [left] - Distance from the left edge of the viewport.\n * @prop {LibSpacers | \"unset\"} [top] - Distance from the top edge of the viewport.\n * @prop {LibSpacers | \"unset\"} [right] - Distance from the right edge of the viewport.\n * @prop {LibSpacers | \"unset\"} [bottom] - Distance from the bottom edge of the viewport.\n * @prop {LibZIndex} [zIndex] - Z-index value for layering the component above other elements.\n */\nexport interface LibBackToTopPosition {\n\tleft?: LibSpacers | \"unset\"\n\ttop?: LibSpacers | \"unset\"\n\tright?: LibSpacers | \"unset\"\n\tbottom?: LibSpacers | \"unset\"\n\tzIndex?: LibZIndex\n}\n\n/**\n * @description Configuration object for positioning and styling tooltip components with advanced customization options.\n * @type {object}\n * @example\n * tooltipOptions={{\n * position: \"top\",\n * offset: \"md\",\n * backgroundColor: \"black\",\n * textColor: \"white\",\n * hideArrow: false\n * }}\n *\n * tooltipOptions={{\n * position: \"right\",\n * offset: \"lg\",\n * backgroundColor: \"primary-500\",\n * textColor: \"white\",\n * hideArrow: true,\n * className: \"custom-tooltip\"\n * }}\n *\n * @prop {LibTooltipPosition} [position] - Position of the tooltip relative to its trigger element.\n * @prop {LibSpacers} [offset] - Distance between the tooltip and its trigger element.\n * @prop {LibAllColorsAndOverlays} [backgroundColor] - Background color or overlay for the tooltip.\n * @prop {LibAllColors} [textColor] - Text color for the tooltip content.\n * @prop {boolean} [hideArrow] - Whether to hide the arrow pointing to the trigger element.\n * @prop {ClassNames} [className] - Additional CSS classes to apply to the tooltip.\n * @prop {CSSProperties} [style] - Custom inline styles for the tooltip.\n */\nexport interface LibTooltipPositionOptions {\n\tposition?: LibTooltipPosition\n\toffset?: LibSpacers\n\tbackgroundColor?: LibAllColorsAndOverlays\n\ttextColor?: LibAllColors\n\thideArrow?: boolean\n\tclassName?: ClassNames\n\tstyle?: CSSProperties\n\ttooltipClassName?: ClassNames\n\ttooltipStyle?: CSSProperties\n}\n\nexport type ReactChildren = ReactNode | Array<ReactNode>\nexport type ReactElement = ReactEl\n// eslint-disable-next-line\nexport type FC<T = {}> = FunctionComponent<T>\nexport type DispatchState<T> = Dispatch<SetStateAction<T>>\nexport type Classes = string | Array<string>\n\nexport type CssTextAlign =\n\t| \"left\"\n\t| \"center\"\n\t| \"right\"\n\t| \"justify\"\n\t| \"start\"\n\t| \"end\"\nexport type CssVerticalAlign =\n\t| \"align-baseline\"\n\t| \"align-top\"\n\t| \"align-middle\"\n\t| \"align-bottom\"\n\t| \"align-text-top\"\n\t| \"align-text-bottom\"\n\t| \"align-sub\"\n\t| \"align-super\"\nexport type CssJustifyItems =\n\t| \"start\"\n\t| \"end\"\n\t| \"end-safe\"\n\t| \"center\"\n\t| \"center-safe\"\n\t| \"stretch\"\n\t| \"normal\"\nexport type CssAlignItems =\n\t| \"start\"\n\t| \"end\"\n\t| \"end-safe\"\n\t| \"center\"\n\t| \"center-safe\"\n\t| \"baseline\"\n\t| \"baseline-start\"\n\t| \"stretch\"\nexport type CssJustifyContent =\n\t| \"start\"\n\t| \"end\"\n\t| \"end-safe\"\n\t| \"center\"\n\t| \"center-safe\"\n\t| \"space-between\"\n\t| \"space-around\"\n\t| \"space-evenly\"\n\t| \"stretch\"\n\t| \"baseline\"\n\t| \"normal\"\nexport type CssAlignContent =\n\t| \"normal\"\n\t| \"center\"\n\t| \"start\"\n\t| \"end\"\n\t| \"space-between\"\n\t| \"space-around\"\n\t| \"space-evenly\"\n\t| \"baseline\"\n\t| \"stretch\"\nexport type CssFlexDirection = \"row\" | \"row-reverse\" | \"col\" | \"col-reverse\"\nexport type CssFlexWrap = \"nowrap\" | \"wrap\" | \"wrap-reverse\"\nexport type CssObjectFit = \"contain\" | \"cover\" | \"fill\" | \"none\" | \"scale-down\"\nexport type CssBorderStyle =\n\t| \"solid\"\n\t| \"dashed\"\n\t| \"dotted\"\n\t| \"double\"\n\t| \"hidden\"\n\t| \"none\"\nexport type CssOutlineStyle =\n\t| \"solid\"\n\t| \"dashed\"\n\t| \"dotted\"\n\t| \"double\"\n\t| \"none\"\n\t| \"hidden\"\n\nexport type LibMainSize = keyof typeof designTokens.libMainSizes\nexport type LibAsideSize = keyof typeof designTokens.libAsideSizes\nexport type CountryCode = keyof typeof designTokens.libCountryCodes\nexport type ClassNames = string | Array<string>\nexport type CSSProperties = CSS\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/types/global.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'csstype';
|
|
3
|
-
export {
|
|
3
|
+
export { au as CSSProperties, at as ClassNames, ae as Classes, as as CountryCode, ak as CssAlignContent, ai as CssAlignItems, ao as CssBorderStyle, al as CssFlexDirection, am as CssFlexWrap, aj as CssJustifyContent, ah as CssJustifyItems, an as CssObjectFit, ap as CssOutlineStyle, af as CssTextAlign, ag as CssVerticalAlign, ad as DispatchState, ac as FC, a6 as ILibBackgroundImage, K as LibAccordionIcon, J as LibAccordionVariant, b as LibAllColors, f as LibAllColorsAndOverlays, ar as LibAsideSize, a8 as LibBackToTopPosition, v as LibButtonSize, t as LibButtonVariant, u as LibButtonVariantExtended, O as LibCheckInputVariant, L as LibColors, c as LibColorsHover, d as LibColorsHoverAndCurrent, a as LibColorsShort, I as LibComponentBase, a7 as LibCountry, _ as LibDrawerPosition, g as LibFontFamilies, h as LibFontSizes, i as LibFontWeights, a2 as LibFooterDirection, a3 as LibFooterLinksSeparator, a1 as LibHeaderPosition, w as LibInputBackground, P as LibInputListDirection, r as LibInputType, o as LibInputValidation, q as LibInputVariant, D as LibKeySize, s as LibLoaderVariant, aq as LibMainSize, E as LibMaxWidth, Z as LibMdEditorButtons, Y as LibMdEditorTitles, X as LibMdEditorViews, C as LibMinHeight, $ as LibNavBurgerPosition, a0 as LibNavMobileVariant, e as LibOverlays, A as LibPosition, l as LibRadiuses, j as LibShadows, F as LibSkeletonAnimation, U as LibSlideshowButtonsPosition, V as LibSlideshowButtonsSize, S as LibSlideshowPagination, T as LibSlideshowPaginationPosition, k as LibSpacers, W as LibTableVariant, Q as LibTabsJustify, R as LibTabsVariant, M as LibTagVariant, z as LibTextTag, x as LibTextTagDisplay, y as LibTextTagNoDisplay, p as LibThemeNames, N as LibToastStatus, G as LibTooltipPosition, a9 as LibTooltipPositionOptions, H as LibTooltipTrigger, m as LibTransitions, n as LibValidationStatus, a4 as LibValueInputPin, B as LibZIndex, aa as ReactChildren, ab as ReactElement, a5 as TranslateLang } from '../global-CXiIaXyy.cjs';
|
package/dist/types/global.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'react';
|
|
2
2
|
import 'csstype';
|
|
3
|
-
export {
|
|
3
|
+
export { au as CSSProperties, at as ClassNames, ae as Classes, as as CountryCode, ak as CssAlignContent, ai as CssAlignItems, ao as CssBorderStyle, al as CssFlexDirection, am as CssFlexWrap, aj as CssJustifyContent, ah as CssJustifyItems, an as CssObjectFit, ap as CssOutlineStyle, af as CssTextAlign, ag as CssVerticalAlign, ad as DispatchState, ac as FC, a6 as ILibBackgroundImage, K as LibAccordionIcon, J as LibAccordionVariant, b as LibAllColors, f as LibAllColorsAndOverlays, ar as LibAsideSize, a8 as LibBackToTopPosition, v as LibButtonSize, t as LibButtonVariant, u as LibButtonVariantExtended, O as LibCheckInputVariant, L as LibColors, c as LibColorsHover, d as LibColorsHoverAndCurrent, a as LibColorsShort, I as LibComponentBase, a7 as LibCountry, _ as LibDrawerPosition, g as LibFontFamilies, h as LibFontSizes, i as LibFontWeights, a2 as LibFooterDirection, a3 as LibFooterLinksSeparator, a1 as LibHeaderPosition, w as LibInputBackground, P as LibInputListDirection, r as LibInputType, o as LibInputValidation, q as LibInputVariant, D as LibKeySize, s as LibLoaderVariant, aq as LibMainSize, E as LibMaxWidth, Z as LibMdEditorButtons, Y as LibMdEditorTitles, X as LibMdEditorViews, C as LibMinHeight, $ as LibNavBurgerPosition, a0 as LibNavMobileVariant, e as LibOverlays, A as LibPosition, l as LibRadiuses, j as LibShadows, F as LibSkeletonAnimation, U as LibSlideshowButtonsPosition, V as LibSlideshowButtonsSize, S as LibSlideshowPagination, T as LibSlideshowPaginationPosition, k as LibSpacers, W as LibTableVariant, Q as LibTabsJustify, R as LibTabsVariant, M as LibTagVariant, z as LibTextTag, x as LibTextTagDisplay, y as LibTextTagNoDisplay, p as LibThemeNames, N as LibToastStatus, G as LibTooltipPosition, a9 as LibTooltipPositionOptions, H as LibTooltipTrigger, m as LibTransitions, n as LibValidationStatus, a4 as LibValueInputPin, B as LibZIndex, aa as ReactChildren, ab as ReactElement, a5 as TranslateLang } from '../global-CXiIaXyy.js';
|