@julseb-lib/react 1.1.23 → 1.1.25
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-SKLDS4YE.js} +2 -2
- package/dist/{chunk-AKGT77NY.js → chunk-UHS3R3PM.js} +306 -78
- package/dist/chunk-UHS3R3PM.js.map +1 -0
- package/dist/{global-HQSlLJiW.d.cts → global-CXiIaXyy.d.cts} +182 -48
- package/dist/{global-HQSlLJiW.d.ts → global-CXiIaXyy.d.ts} +182 -48
- package/dist/index.cjs +17415 -17145
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -84
- package/dist/index.d.ts +107 -84
- package/dist/index.js +16121 -16093
- 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 +367 -3
- package/dist/types/components-props.d.ts +367 -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 +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-AKGT77NY.js.map +0 -1
- /package/dist/{Image-2WXN57FZ.js.map → Image-SKLDS4YE.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Image
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UHS3R3PM.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/components/LazyImage/Image.tsx
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -11,4 +11,4 @@ var Image_default = Image2;
|
|
|
11
11
|
export {
|
|
12
12
|
Image_default as default
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=Image-
|
|
14
|
+
//# sourceMappingURL=Image-SKLDS4YE.js.map
|
|
@@ -8,6 +8,77 @@ var libTextDisplayTags = {
|
|
|
8
8
|
};
|
|
9
9
|
var designTokens = {
|
|
10
10
|
libColors: {
|
|
11
|
+
/**
|
|
12
|
+
* All the colors in the lib
|
|
13
|
+
* Primary 50 — #eff6ff
|
|
14
|
+
* Primary 100 — #dbeafe
|
|
15
|
+
* Primary 200 — #bfdbfe
|
|
16
|
+
* Primary 300 — #93c5fd
|
|
17
|
+
* Primary 400 — #60a5fa
|
|
18
|
+
* Primary 500 — #3b82f6
|
|
19
|
+
* Primary 600 — #2563eb
|
|
20
|
+
* Primary 700 — #1d4ed8
|
|
21
|
+
* Primary 800 — #1e40af
|
|
22
|
+
* Primary 900 — #1e3a8a
|
|
23
|
+
* Primary 950 — #172554
|
|
24
|
+
* Secondary 50 — #ecfeff
|
|
25
|
+
* Secondary 100 — #cffafe
|
|
26
|
+
* Secondary 200 — #a5f3fc
|
|
27
|
+
* Secondary 300 — #67e8f9
|
|
28
|
+
* Secondary 400 — #22d3ee
|
|
29
|
+
* Secondary 500 — #06b6d4
|
|
30
|
+
* Secondary 600 — #0891b2
|
|
31
|
+
* Secondary 700 — #0e7490
|
|
32
|
+
* Secondary 800 — #155e75
|
|
33
|
+
* Secondary 900 — #164e63
|
|
34
|
+
* Secondary 950 — #083344
|
|
35
|
+
* Success 50 — #f0fdf4
|
|
36
|
+
* Success 100 — #dcfce7
|
|
37
|
+
* Success 200 — #bbf7d0
|
|
38
|
+
* Success 300 — #86efac
|
|
39
|
+
* Success 400 — #4ade80
|
|
40
|
+
* Success 500 — #22c55e
|
|
41
|
+
* Success 600 — #16a34a
|
|
42
|
+
* Success 700 — #15803d
|
|
43
|
+
* Success 800 — #166534
|
|
44
|
+
* Success 900 — #14532d
|
|
45
|
+
* Success 950 — #052e16
|
|
46
|
+
* Danger 50 — #fef2f2
|
|
47
|
+
* Danger 100 — #fee2e2
|
|
48
|
+
* Danger 200 — #fecaca
|
|
49
|
+
* Danger 300 — #fca5a5
|
|
50
|
+
* Danger 400 — #f87171
|
|
51
|
+
* Danger 500 — #ef4444
|
|
52
|
+
* Danger 600 — #dc2626
|
|
53
|
+
* Danger 700 — #b91c1c
|
|
54
|
+
* Danger 800 — #991b1b
|
|
55
|
+
* Danger 900 — #7f1d1d
|
|
56
|
+
* Danger 950 — #450a0a
|
|
57
|
+
* Warning 50 — #fffbeb
|
|
58
|
+
* Warning 100 — #fef3c7
|
|
59
|
+
* Warning 200 — #fde68a
|
|
60
|
+
* Warning 300 — #fcd34d
|
|
61
|
+
* Warning 400 — #fbbf24
|
|
62
|
+
* Warning 500 — #f59e42
|
|
63
|
+
* Warning 600 — #d97706
|
|
64
|
+
* Warning 700 — #b45309
|
|
65
|
+
* Warning 800 — #92400e
|
|
66
|
+
* Warning 900 — #78350f
|
|
67
|
+
* Warning 950 — #451a03
|
|
68
|
+
* Gray 50 — #f9fafb
|
|
69
|
+
* Gray 100 — #f3f4f6
|
|
70
|
+
* Gray 200 — #e5e7eb
|
|
71
|
+
* Gray 300 — #d1d5db
|
|
72
|
+
* Gray 400 — #9ca3af
|
|
73
|
+
* Gray 500 — #6b7280
|
|
74
|
+
* Gray 600 — #4b5563
|
|
75
|
+
* Gray 700 — #374151
|
|
76
|
+
* Gray 800 — #1f2937
|
|
77
|
+
* Gray 900 — #111827
|
|
78
|
+
* Gray 950 — #030712
|
|
79
|
+
* Black — #000000
|
|
80
|
+
* White — #ffffff
|
|
81
|
+
*/
|
|
11
82
|
"primary-50": "#eff6ff",
|
|
12
83
|
"primary-100": "#dbeafe",
|
|
13
84
|
"primary-200": "#bfdbfe",
|
|
@@ -82,6 +153,20 @@ var designTokens = {
|
|
|
82
153
|
font: "font"
|
|
83
154
|
},
|
|
84
155
|
libColorsShort: {
|
|
156
|
+
/**
|
|
157
|
+
* Shorthand for each color (value is <color>-500)
|
|
158
|
+
* Primary — #3b82f6
|
|
159
|
+
* Secondary — #06b6d4
|
|
160
|
+
* Success — #22c55e
|
|
161
|
+
* Danger — #ef4444
|
|
162
|
+
* Warning — #f59e42
|
|
163
|
+
* Gray — #6b7280
|
|
164
|
+
* Black — #000000
|
|
165
|
+
* White — #ffffff
|
|
166
|
+
* Current - currentColor
|
|
167
|
+
* Transparent - transparent
|
|
168
|
+
* Background: #ffffff in light mode, #000000 in dark mode
|
|
169
|
+
*/
|
|
85
170
|
primary: "primary",
|
|
86
171
|
secondary: "secondary",
|
|
87
172
|
success: "success",
|
|
@@ -95,6 +180,16 @@ var designTokens = {
|
|
|
95
180
|
background: "background"
|
|
96
181
|
},
|
|
97
182
|
libColorsHover: {
|
|
183
|
+
/**
|
|
184
|
+
* Colors used when an item is hovered
|
|
185
|
+
* Primary: Default Primary 500 — #3b82f6; Hover: Primary 300 — #93c5fd; Active: Primary 600 — #2563eb
|
|
186
|
+
* Secondary: Default: Secondary 500 — #06b6d4; Hover: Secondary 300 — #67e8f9; Active: Secondary 600 — #0891b2
|
|
187
|
+
* Success: Default: Success 500 — #22c55e; Hover: Success 300 — #86efac; Active: Success 600 — #16a34a
|
|
188
|
+
* Danger: Default: Danger 500 — #ef4444; Hover: Danger 300 — #fca5a5; Active: Danger 600 — #dc2626
|
|
189
|
+
* Warning: Default: Warning 500 — #f59e42; Hover: Warning 300 — #fcd34d; Active: Warning 600 — #d97706
|
|
190
|
+
* Gray: Default: Gray 500 — #6b7280; Hover: Gray 300 — #d1d5db; Active: Gray 600 — #4b5563
|
|
191
|
+
* White: Default: White - #ffffff; Hover: Gray 300 - #d1d5db; Active: Gray 100 - #f3f4f6
|
|
192
|
+
*/
|
|
98
193
|
primary: "primary",
|
|
99
194
|
secondary: "secondary",
|
|
100
195
|
success: "success",
|
|
@@ -104,6 +199,15 @@ var designTokens = {
|
|
|
104
199
|
white: "white"
|
|
105
200
|
},
|
|
106
201
|
libOverlays: {
|
|
202
|
+
/**
|
|
203
|
+
* Overlay colors
|
|
204
|
+
* Black 50 - rgba(0, 0, 0, 0.5)
|
|
205
|
+
* Black 80 - rgba(0, 0, 0, 0.8)
|
|
206
|
+
* White 50 - rgba(255, 255, 255, 0.5)
|
|
207
|
+
* White 80 - rgba(255, 255, 255, 0.8)
|
|
208
|
+
* Gradient Black - linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.56) 100%)
|
|
209
|
+
* Gradient White - linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.35) 100%)
|
|
210
|
+
*/
|
|
107
211
|
"black-50": "black-50",
|
|
108
212
|
"black-80": "black-80",
|
|
109
213
|
"white-50": "white-50",
|
|
@@ -112,48 +216,77 @@ var designTokens = {
|
|
|
112
216
|
"gradient-white": "gradient-white"
|
|
113
217
|
},
|
|
114
218
|
libFontFamilies: {
|
|
219
|
+
/**
|
|
220
|
+
* Font Families
|
|
221
|
+
* Body - Lato
|
|
222
|
+
* Code - monospace
|
|
223
|
+
*/
|
|
115
224
|
body: "body",
|
|
116
225
|
code: "code"
|
|
117
226
|
},
|
|
118
227
|
libSpacers: {
|
|
119
|
-
/**
|
|
228
|
+
/** Spacers
|
|
229
|
+
* 2xs - 4px
|
|
230
|
+
* xs - 8px
|
|
231
|
+
* sm - 12px
|
|
232
|
+
* md - 16px
|
|
233
|
+
* lg - 24px
|
|
234
|
+
* xl - 32px
|
|
235
|
+
* 2xl - 48px
|
|
236
|
+
*/
|
|
120
237
|
"2xs": "2xs",
|
|
121
|
-
/** 8px */
|
|
122
238
|
xs: "xs",
|
|
123
|
-
/** 12px */
|
|
124
239
|
sm: "sm",
|
|
125
|
-
/** 16px */
|
|
126
240
|
md: "md",
|
|
127
|
-
/** 24px */
|
|
128
241
|
lg: "lg",
|
|
129
|
-
/** 32px */
|
|
130
242
|
xl: "xl",
|
|
131
|
-
/** 48px */
|
|
132
243
|
"2xl": "2xl"
|
|
133
244
|
},
|
|
134
245
|
libBreakpoints: {
|
|
246
|
+
/**
|
|
247
|
+
* Tailwind Breakpoints
|
|
248
|
+
* sm - 640px
|
|
249
|
+
* md - 768px
|
|
250
|
+
* lg - 1024px
|
|
251
|
+
* xl - 1280px
|
|
252
|
+
* 2xl - 1536px
|
|
253
|
+
*/
|
|
135
254
|
sm: "sm",
|
|
136
255
|
md: "md",
|
|
137
256
|
lg: "lg",
|
|
138
257
|
xl: "xl",
|
|
139
258
|
"2xl": "2xl"
|
|
140
259
|
},
|
|
141
|
-
libContainer: {
|
|
142
|
-
"3xs": "3xs",
|
|
143
|
-
"2xs": "2xs",
|
|
144
|
-
xs: "xs",
|
|
145
|
-
sm: "sm",
|
|
146
|
-
md: "md",
|
|
147
|
-
lg: "lg",
|
|
148
|
-
xl: "xl",
|
|
149
|
-
"2xl": "2xl",
|
|
150
|
-
"3xl": "3xl",
|
|
151
|
-
"4xl": "4xl",
|
|
152
|
-
"5xl": "5xl",
|
|
153
|
-
"6xl": "6xl",
|
|
154
|
-
"7xl": "7xl"
|
|
155
|
-
},
|
|
156
260
|
libFontSizes: {
|
|
261
|
+
/**
|
|
262
|
+
* Tailwind & Lib Font Sizes
|
|
263
|
+
* xs - 12px (0.75rem)
|
|
264
|
+
* sm - 14px (0.875rem)
|
|
265
|
+
* base - 16px (1rem)
|
|
266
|
+
* lg - 18px (1.125rem)
|
|
267
|
+
* xl - 20px (1.25rem)
|
|
268
|
+
* 2xl - 24px (1.5rem)
|
|
269
|
+
* 3xl - 30px (1.875rem)
|
|
270
|
+
* 4xl - 36px (2.25rem)
|
|
271
|
+
* 5xl - 48px (3rem)
|
|
272
|
+
* 6xl - 60px (3.75rem)
|
|
273
|
+
* 7xl - 72px (4.5rem)
|
|
274
|
+
* 8xl - 96px (6rem)
|
|
275
|
+
* 9xl - 128px (8rem)
|
|
276
|
+
* display-h1 - 80px (5rem)
|
|
277
|
+
* display-h2 - 64px (4rem)
|
|
278
|
+
* display-h3 - 56px (3.5rem)
|
|
279
|
+
* display-h4 - 48px (3rem)
|
|
280
|
+
* display-h5 - 40px (2.5rem)
|
|
281
|
+
* h1 - 40px (2.5rem)
|
|
282
|
+
* h2 - 32px (2rem)
|
|
283
|
+
* h3 - 28.8px (1.8rem)
|
|
284
|
+
* h4 - 24px (1.5rem)
|
|
285
|
+
* h5 - 20.8px (1.3rem)
|
|
286
|
+
* h6 - 17.6px (1.1rem)
|
|
287
|
+
* body - 16px (1rem)
|
|
288
|
+
* small - 14px (0.875rem)
|
|
289
|
+
*/
|
|
157
290
|
xs: "xs",
|
|
158
291
|
sm: "sm",
|
|
159
292
|
base: "base",
|
|
@@ -166,32 +299,34 @@ var designTokens = {
|
|
|
166
299
|
"6xl": "6xl",
|
|
167
300
|
"7xl": "7xl",
|
|
168
301
|
"8xl": "8xl",
|
|
169
|
-
"9xl": "9xl"
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"8xl": "8xl--line-height",
|
|
184
|
-
"9xl": "9xl--line-height"
|
|
302
|
+
"9xl": "9xl",
|
|
303
|
+
"display-h1": "display-h1",
|
|
304
|
+
"display-h2": "display-h2",
|
|
305
|
+
"display-h3": "display-h3",
|
|
306
|
+
"display-h4": "display-h4",
|
|
307
|
+
"display-h5": "display-h5",
|
|
308
|
+
h1: "h1",
|
|
309
|
+
h2: "h2",
|
|
310
|
+
h3: "h3",
|
|
311
|
+
h4: "h4",
|
|
312
|
+
h5: "h5",
|
|
313
|
+
h6: "h6",
|
|
314
|
+
body: "body",
|
|
315
|
+
small: "small"
|
|
185
316
|
},
|
|
186
317
|
libFontWeights: {
|
|
318
|
+
/**
|
|
319
|
+
* Font weights for Lato
|
|
320
|
+
* Thin - 100
|
|
321
|
+
* Light - 300
|
|
322
|
+
* Normal - 400
|
|
323
|
+
* Bold - 700
|
|
324
|
+
* Black - 900
|
|
325
|
+
*/
|
|
187
326
|
thin: "thin",
|
|
188
|
-
extralight: "extralight",
|
|
189
327
|
light: "light",
|
|
190
328
|
normal: "normal",
|
|
191
|
-
medium: "medium",
|
|
192
|
-
semibold: "semibold",
|
|
193
329
|
bold: "bold",
|
|
194
|
-
extrabold: "extrabold",
|
|
195
330
|
black: "black"
|
|
196
331
|
},
|
|
197
332
|
libTracking: {
|
|
@@ -1569,16 +1704,57 @@ function scrollToTop() {
|
|
|
1569
1704
|
}
|
|
1570
1705
|
}
|
|
1571
1706
|
|
|
1707
|
+
// src/lib/utils/gen-font-size.ts
|
|
1708
|
+
var genFontSize = {
|
|
1709
|
+
xs: "text-xs",
|
|
1710
|
+
sm: "text-sm",
|
|
1711
|
+
base: "text-base",
|
|
1712
|
+
lg: "text-lg",
|
|
1713
|
+
xl: "text-xl",
|
|
1714
|
+
"2xl": "text-2xl",
|
|
1715
|
+
"3xl": "text-3xl",
|
|
1716
|
+
"4xl": "text-4xl",
|
|
1717
|
+
"5xl": "text-5xl",
|
|
1718
|
+
"6xl": "text-6xl",
|
|
1719
|
+
"7xl": "text-7xl",
|
|
1720
|
+
"8xl": "text-8xl",
|
|
1721
|
+
"9xl": "text-9xl",
|
|
1722
|
+
"display-h1": "text-(length:--text-display-h1)",
|
|
1723
|
+
"display-h2": "text-(length:--text-display-h2)",
|
|
1724
|
+
"display-h3": "text-(length:--text-display-h3)",
|
|
1725
|
+
"display-h4": "text-(length:--text-display-h4)",
|
|
1726
|
+
"display-h5": "text-(length:--text-display-h5)",
|
|
1727
|
+
h1: "text-(length:--text-h1)",
|
|
1728
|
+
h2: "text-(length:--text-h2)",
|
|
1729
|
+
h3: "text-(length:--text-h3)",
|
|
1730
|
+
h4: "text-(length:--text-h4)",
|
|
1731
|
+
h5: "text-(length:--text-h5)",
|
|
1732
|
+
h6: "text-(length:--text-h6)",
|
|
1733
|
+
body: "text-(length:--text-body)",
|
|
1734
|
+
small: "text-(length:--text-small)"
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
// src/lib/utils/gen-font-weight.ts
|
|
1738
|
+
var genFontWeight = {
|
|
1739
|
+
thin: "font-thin",
|
|
1740
|
+
light: "font-light",
|
|
1741
|
+
normal: "font-normal",
|
|
1742
|
+
bold: "font-bold",
|
|
1743
|
+
black: "font-black"
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1572
1746
|
// src/lib/components/Text/templates/H1.tsx
|
|
1573
1747
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1574
1748
|
var H1 = ({
|
|
1575
1749
|
element = "h1",
|
|
1576
1750
|
className,
|
|
1577
1751
|
children,
|
|
1578
|
-
color = "
|
|
1752
|
+
color = "current",
|
|
1579
1753
|
linkColor = "primary",
|
|
1580
1754
|
textAlign = "left",
|
|
1581
1755
|
display,
|
|
1756
|
+
fontSize = display ? "display-h1" : "h1",
|
|
1757
|
+
fontWeight = "black",
|
|
1582
1758
|
...rest
|
|
1583
1759
|
}) => {
|
|
1584
1760
|
const Element = element;
|
|
@@ -1586,9 +1762,9 @@ var H1 = ({
|
|
|
1586
1762
|
Element,
|
|
1587
1763
|
{
|
|
1588
1764
|
className: clsx(
|
|
1589
|
-
|
|
1765
|
+
genFontSize[fontSize],
|
|
1590
1766
|
TEXT_BASE_CLASSES,
|
|
1591
|
-
|
|
1767
|
+
genFontWeight[fontWeight],
|
|
1592
1768
|
genTextAlign[textAlign],
|
|
1593
1769
|
genTextAllColor[color],
|
|
1594
1770
|
genLinkColor[linkColor],
|
|
@@ -1608,10 +1784,12 @@ var H2 = ({
|
|
|
1608
1784
|
element = "h2",
|
|
1609
1785
|
className,
|
|
1610
1786
|
children,
|
|
1611
|
-
color = "
|
|
1787
|
+
color = "current",
|
|
1612
1788
|
linkColor = "primary",
|
|
1613
1789
|
textAlign = "left",
|
|
1614
1790
|
display,
|
|
1791
|
+
fontSize = display ? "display-h2" : "h2",
|
|
1792
|
+
fontWeight = "black",
|
|
1615
1793
|
...rest
|
|
1616
1794
|
}) => {
|
|
1617
1795
|
const Element = element;
|
|
@@ -1620,8 +1798,8 @@ var H2 = ({
|
|
|
1620
1798
|
{
|
|
1621
1799
|
className: clsx(
|
|
1622
1800
|
TEXT_BASE_CLASSES,
|
|
1623
|
-
|
|
1624
|
-
|
|
1801
|
+
genFontWeight[fontWeight],
|
|
1802
|
+
genFontSize[fontSize],
|
|
1625
1803
|
genTextAlign[textAlign],
|
|
1626
1804
|
genTextAllColor[color],
|
|
1627
1805
|
genLinkColor[linkColor],
|
|
@@ -1641,10 +1819,12 @@ var H3 = ({
|
|
|
1641
1819
|
element = "h3",
|
|
1642
1820
|
className,
|
|
1643
1821
|
children,
|
|
1644
|
-
color = "
|
|
1822
|
+
color = "current",
|
|
1645
1823
|
linkColor = "primary",
|
|
1646
1824
|
textAlign = "left",
|
|
1647
1825
|
display,
|
|
1826
|
+
fontSize = display ? "display-h3" : "h3",
|
|
1827
|
+
fontWeight = "black",
|
|
1648
1828
|
...rest
|
|
1649
1829
|
}) => {
|
|
1650
1830
|
const Element = element;
|
|
@@ -1653,8 +1833,8 @@ var H3 = ({
|
|
|
1653
1833
|
{
|
|
1654
1834
|
className: clsx(
|
|
1655
1835
|
TEXT_BASE_CLASSES,
|
|
1656
|
-
|
|
1657
|
-
|
|
1836
|
+
genFontWeight[fontWeight],
|
|
1837
|
+
genFontSize[fontSize],
|
|
1658
1838
|
genTextAlign[textAlign],
|
|
1659
1839
|
genTextAllColor[color],
|
|
1660
1840
|
genLinkColor[linkColor],
|
|
@@ -1674,10 +1854,12 @@ var H4 = ({
|
|
|
1674
1854
|
element = "h4",
|
|
1675
1855
|
className,
|
|
1676
1856
|
children,
|
|
1677
|
-
color = "
|
|
1857
|
+
color = "current",
|
|
1678
1858
|
linkColor = "primary",
|
|
1679
1859
|
textAlign = "left",
|
|
1680
1860
|
display,
|
|
1861
|
+
fontSize = display ? "display-h4" : "h4",
|
|
1862
|
+
fontWeight = "black",
|
|
1681
1863
|
...rest
|
|
1682
1864
|
}) => {
|
|
1683
1865
|
const Element = element;
|
|
@@ -1686,8 +1868,8 @@ var H4 = ({
|
|
|
1686
1868
|
{
|
|
1687
1869
|
className: clsx(
|
|
1688
1870
|
TEXT_BASE_CLASSES,
|
|
1689
|
-
|
|
1690
|
-
|
|
1871
|
+
genFontWeight[fontWeight],
|
|
1872
|
+
genFontSize[fontSize],
|
|
1691
1873
|
genTextAlign[textAlign],
|
|
1692
1874
|
genTextAllColor[color],
|
|
1693
1875
|
genLinkColor[linkColor],
|
|
@@ -1707,10 +1889,12 @@ var H5 = ({
|
|
|
1707
1889
|
element = "h5",
|
|
1708
1890
|
className,
|
|
1709
1891
|
children,
|
|
1710
|
-
color = "
|
|
1892
|
+
color = "current",
|
|
1711
1893
|
linkColor = "primary",
|
|
1712
1894
|
textAlign = "left",
|
|
1713
1895
|
display,
|
|
1896
|
+
fontSize = display ? "display-h5" : "h5",
|
|
1897
|
+
fontWeight = "black",
|
|
1714
1898
|
...rest
|
|
1715
1899
|
}) => {
|
|
1716
1900
|
const Element = element;
|
|
@@ -1719,8 +1903,8 @@ var H5 = ({
|
|
|
1719
1903
|
{
|
|
1720
1904
|
className: clsx(
|
|
1721
1905
|
TEXT_BASE_CLASSES,
|
|
1722
|
-
|
|
1723
|
-
|
|
1906
|
+
genFontWeight[fontWeight],
|
|
1907
|
+
genFontSize[fontSize],
|
|
1724
1908
|
genTextAlign[textAlign],
|
|
1725
1909
|
genTextAllColor[color],
|
|
1726
1910
|
genLinkColor[linkColor],
|
|
@@ -1740,9 +1924,11 @@ var H6 = ({
|
|
|
1740
1924
|
element = "h6",
|
|
1741
1925
|
className,
|
|
1742
1926
|
children,
|
|
1743
|
-
|
|
1927
|
+
fontSize = "h6",
|
|
1928
|
+
color = "current",
|
|
1744
1929
|
linkColor = "primary",
|
|
1745
1930
|
textAlign = "left",
|
|
1931
|
+
fontWeight = "black",
|
|
1746
1932
|
...rest
|
|
1747
1933
|
}) => {
|
|
1748
1934
|
const Element = element;
|
|
@@ -1751,8 +1937,8 @@ var H6 = ({
|
|
|
1751
1937
|
{
|
|
1752
1938
|
className: clsx(
|
|
1753
1939
|
TEXT_BASE_CLASSES,
|
|
1754
|
-
|
|
1755
|
-
|
|
1940
|
+
genFontSize[fontSize],
|
|
1941
|
+
genFontWeight[fontWeight],
|
|
1756
1942
|
genTextAlign[textAlign],
|
|
1757
1943
|
genTextAllColor[color],
|
|
1758
1944
|
genLinkColor[linkColor],
|
|
@@ -1772,9 +1958,11 @@ var P = ({
|
|
|
1772
1958
|
element = "p",
|
|
1773
1959
|
className,
|
|
1774
1960
|
children,
|
|
1775
|
-
|
|
1961
|
+
fontSize = "body",
|
|
1962
|
+
color = "current",
|
|
1776
1963
|
linkColor = "primary",
|
|
1777
1964
|
textAlign = "left",
|
|
1965
|
+
fontWeight = "normal",
|
|
1778
1966
|
...rest
|
|
1779
1967
|
}) => {
|
|
1780
1968
|
const Element = element;
|
|
@@ -1783,11 +1971,12 @@ var P = ({
|
|
|
1783
1971
|
{
|
|
1784
1972
|
className: clsx(
|
|
1785
1973
|
TEXT_BASE_CLASSES,
|
|
1786
|
-
|
|
1974
|
+
genFontSize[fontSize],
|
|
1787
1975
|
genTextAlign[textAlign],
|
|
1788
1976
|
genTextAllColor[color],
|
|
1789
1977
|
genLinkColor[linkColor],
|
|
1790
1978
|
genButtonColor[linkColor],
|
|
1979
|
+
genFontWeight[fontWeight],
|
|
1791
1980
|
"p",
|
|
1792
1981
|
className
|
|
1793
1982
|
),
|
|
@@ -1803,9 +1992,11 @@ var Small = ({
|
|
|
1803
1992
|
element = "small",
|
|
1804
1993
|
className,
|
|
1805
1994
|
children,
|
|
1806
|
-
|
|
1995
|
+
fontSize = "small",
|
|
1996
|
+
color = "current",
|
|
1807
1997
|
linkColor = "primary",
|
|
1808
1998
|
textAlign = "left",
|
|
1999
|
+
fontWeight = "normal",
|
|
1809
2000
|
...rest
|
|
1810
2001
|
}) => {
|
|
1811
2002
|
const Element = element;
|
|
@@ -1814,11 +2005,12 @@ var Small = ({
|
|
|
1814
2005
|
{
|
|
1815
2006
|
className: clsx(
|
|
1816
2007
|
TEXT_BASE_CLASSES,
|
|
1817
|
-
|
|
2008
|
+
genFontSize[fontSize],
|
|
1818
2009
|
genTextAlign[textAlign],
|
|
1819
2010
|
genTextAllColor[color],
|
|
1820
2011
|
genLinkColor[linkColor],
|
|
1821
2012
|
genButtonColor[linkColor],
|
|
2013
|
+
genFontWeight[fontWeight],
|
|
1822
2014
|
"small",
|
|
1823
2015
|
className
|
|
1824
2016
|
),
|
|
@@ -1834,9 +2026,11 @@ var Strong = ({
|
|
|
1834
2026
|
element = "strong",
|
|
1835
2027
|
className,
|
|
1836
2028
|
children,
|
|
1837
|
-
|
|
2029
|
+
fontSize = "body",
|
|
2030
|
+
color = "current",
|
|
1838
2031
|
linkColor = "primary",
|
|
1839
2032
|
textAlign = "left",
|
|
2033
|
+
fontWeight = "black",
|
|
1840
2034
|
...rest
|
|
1841
2035
|
}) => {
|
|
1842
2036
|
const Element = element;
|
|
@@ -1845,7 +2039,8 @@ var Strong = ({
|
|
|
1845
2039
|
{
|
|
1846
2040
|
className: clsx(
|
|
1847
2041
|
TEXT_BASE_CLASSES,
|
|
1848
|
-
|
|
2042
|
+
genFontSize[fontSize],
|
|
2043
|
+
genFontWeight[fontWeight],
|
|
1849
2044
|
genTextAlign[textAlign],
|
|
1850
2045
|
genTextAllColor[color],
|
|
1851
2046
|
genLinkColor[linkColor],
|
|
@@ -1865,9 +2060,11 @@ var Em = ({
|
|
|
1865
2060
|
element = "em",
|
|
1866
2061
|
className,
|
|
1867
2062
|
children,
|
|
1868
|
-
|
|
2063
|
+
fontSize = "body",
|
|
2064
|
+
color = "current",
|
|
1869
2065
|
linkColor = "primary",
|
|
1870
2066
|
textAlign = "left",
|
|
2067
|
+
fontWeight = "normal",
|
|
1871
2068
|
...rest
|
|
1872
2069
|
}) => {
|
|
1873
2070
|
const Element = element;
|
|
@@ -1876,6 +2073,8 @@ var Em = ({
|
|
|
1876
2073
|
{
|
|
1877
2074
|
className: clsx(
|
|
1878
2075
|
TEXT_BASE_CLASSES,
|
|
2076
|
+
genFontSize[fontSize],
|
|
2077
|
+
genFontWeight[fontWeight],
|
|
1879
2078
|
"italic",
|
|
1880
2079
|
genTextAlign[textAlign],
|
|
1881
2080
|
genTextAllColor[color],
|
|
@@ -1896,9 +2095,11 @@ var Blockquote = ({
|
|
|
1896
2095
|
element = "blockquote",
|
|
1897
2096
|
className,
|
|
1898
2097
|
children,
|
|
1899
|
-
|
|
2098
|
+
fontSize = "h6",
|
|
2099
|
+
color = "current",
|
|
1900
2100
|
linkColor = "primary",
|
|
1901
2101
|
textAlign = "left",
|
|
2102
|
+
fontWeight = "normal",
|
|
1902
2103
|
...rest
|
|
1903
2104
|
}) => {
|
|
1904
2105
|
const Element = element;
|
|
@@ -1907,9 +2108,10 @@ var Blockquote = ({
|
|
|
1907
2108
|
{
|
|
1908
2109
|
className: clsx(
|
|
1909
2110
|
TEXT_BASE_CLASSES,
|
|
1910
|
-
|
|
2111
|
+
genFontSize[fontSize],
|
|
1911
2112
|
"italic ps-4",
|
|
1912
2113
|
genTextAlign[textAlign],
|
|
2114
|
+
genFontWeight[fontWeight],
|
|
1913
2115
|
genTextAllColor[color],
|
|
1914
2116
|
genLinkColor[linkColor],
|
|
1915
2117
|
genButtonColor[linkColor],
|
|
@@ -1928,9 +2130,11 @@ var Ul = ({
|
|
|
1928
2130
|
element = "ul",
|
|
1929
2131
|
className,
|
|
1930
2132
|
children,
|
|
1931
|
-
|
|
2133
|
+
fontSize = "body",
|
|
2134
|
+
color = "current",
|
|
1932
2135
|
linkColor = "primary",
|
|
1933
2136
|
textAlign = "left",
|
|
2137
|
+
fontWeight = "normal",
|
|
1934
2138
|
...rest
|
|
1935
2139
|
}) => {
|
|
1936
2140
|
const Element = element;
|
|
@@ -1939,7 +2143,8 @@ var Ul = ({
|
|
|
1939
2143
|
{
|
|
1940
2144
|
className: clsx(
|
|
1941
2145
|
TEXT_BASE_CLASSES,
|
|
1942
|
-
|
|
2146
|
+
genFontSize[fontSize],
|
|
2147
|
+
genFontWeight[fontWeight],
|
|
1943
2148
|
"list-disc ps-8",
|
|
1944
2149
|
genTextAlign[textAlign],
|
|
1945
2150
|
genTextAllColor[color],
|
|
@@ -1960,9 +2165,11 @@ var Ol = ({
|
|
|
1960
2165
|
element = "ol",
|
|
1961
2166
|
className,
|
|
1962
2167
|
children,
|
|
1963
|
-
|
|
2168
|
+
fontSize = "body",
|
|
2169
|
+
color = "current",
|
|
1964
2170
|
linkColor = "primary",
|
|
1965
2171
|
textAlign = "left",
|
|
2172
|
+
fontWeight = "normal",
|
|
1966
2173
|
...rest
|
|
1967
2174
|
}) => {
|
|
1968
2175
|
const Element = element;
|
|
@@ -1971,7 +2178,8 @@ var Ol = ({
|
|
|
1971
2178
|
{
|
|
1972
2179
|
className: clsx(
|
|
1973
2180
|
TEXT_BASE_CLASSES,
|
|
1974
|
-
|
|
2181
|
+
genFontSize[fontSize],
|
|
2182
|
+
genFontWeight[fontWeight],
|
|
1975
2183
|
"list-decimal ps-8",
|
|
1976
2184
|
genTextAlign[textAlign],
|
|
1977
2185
|
genTextAllColor[color],
|
|
@@ -1992,9 +2200,12 @@ var Dl = ({
|
|
|
1992
2200
|
element = "dl",
|
|
1993
2201
|
className,
|
|
1994
2202
|
children,
|
|
1995
|
-
|
|
2203
|
+
fontSize = "body",
|
|
2204
|
+
color = "current",
|
|
1996
2205
|
linkColor = "primary",
|
|
1997
2206
|
textAlign = "left",
|
|
2207
|
+
fontWeight = "normal",
|
|
2208
|
+
dtFontWeight = "bold",
|
|
1998
2209
|
...rest
|
|
1999
2210
|
}) => {
|
|
2000
2211
|
const Element = element;
|
|
@@ -2003,9 +2214,10 @@ var Dl = ({
|
|
|
2003
2214
|
{
|
|
2004
2215
|
className: clsx(
|
|
2005
2216
|
TEXT_BASE_CLASSES,
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2217
|
+
genFontSize[fontSize],
|
|
2218
|
+
generateFontWeightDt[dtFontWeight],
|
|
2219
|
+
generateFontWeightDd[fontWeight],
|
|
2220
|
+
"[&_dd]:ps-4",
|
|
2009
2221
|
genTextAlign[textAlign],
|
|
2010
2222
|
genTextAllColor[color],
|
|
2011
2223
|
genLinkColor[linkColor],
|
|
@@ -2018,6 +2230,20 @@ var Dl = ({
|
|
|
2018
2230
|
}
|
|
2019
2231
|
);
|
|
2020
2232
|
};
|
|
2233
|
+
var generateFontWeightDt = {
|
|
2234
|
+
thin: "[&_dt]:font-thin",
|
|
2235
|
+
light: "[&_dt]:font-light",
|
|
2236
|
+
normal: "[&_dt]:font-normal",
|
|
2237
|
+
bold: "[&_dt]:font-bold",
|
|
2238
|
+
black: "[&_dt]:font-black"
|
|
2239
|
+
};
|
|
2240
|
+
var generateFontWeightDd = {
|
|
2241
|
+
thin: "[&_dd]:font-thin",
|
|
2242
|
+
light: "[&_dd]:font-light",
|
|
2243
|
+
normal: "[&_dd]:font-normal",
|
|
2244
|
+
bold: "[&_dd]:font-bold",
|
|
2245
|
+
black: "[&_dd]:font-black"
|
|
2246
|
+
};
|
|
2021
2247
|
|
|
2022
2248
|
// src/lib/components/Text/Text.tsx
|
|
2023
2249
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
@@ -2175,6 +2401,8 @@ export {
|
|
|
2175
2401
|
disableScroll,
|
|
2176
2402
|
enableScroll,
|
|
2177
2403
|
scrollToTop,
|
|
2404
|
+
genFontSize,
|
|
2405
|
+
genFontWeight,
|
|
2178
2406
|
Image
|
|
2179
2407
|
};
|
|
2180
|
-
//# sourceMappingURL=chunk-
|
|
2408
|
+
//# sourceMappingURL=chunk-UHS3R3PM.js.map
|