@vinyasa/typography 1.0.23 → 1.0.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.
Files changed (56) hide show
  1. package/README.md +77 -2
  2. package/dist/cjs/blockquote.cjs +3 -2
  3. package/dist/cjs/caption.cjs +82 -14
  4. package/dist/cjs/caption.css +104 -2
  5. package/dist/cjs/code.cjs +4 -3
  6. package/dist/cjs/heading.cjs +82 -14
  7. package/dist/cjs/heading.css +104 -2
  8. package/dist/cjs/highlight.cjs +700 -0
  9. package/dist/cjs/highlight.css +197 -0
  10. package/dist/cjs/index.cjs +597 -21
  11. package/dist/cjs/index.css +172 -2
  12. package/dist/cjs/kbd.cjs +3 -2
  13. package/dist/cjs/label.cjs +82 -14
  14. package/dist/cjs/label.css +104 -2
  15. package/dist/cjs/link.cjs +82 -14
  16. package/dist/cjs/link.css +104 -2
  17. package/dist/cjs/list.cjs +431 -0
  18. package/dist/cjs/list.css +60 -0
  19. package/dist/cjs/mark.cjs +246 -0
  20. package/dist/cjs/mark.css +8 -0
  21. package/dist/cjs/markdown-renderer.cjs +87 -17
  22. package/dist/cjs/markdown-renderer.css +104 -2
  23. package/dist/cjs/paragraph.cjs +82 -14
  24. package/dist/cjs/paragraph.css +104 -2
  25. package/dist/cjs/text.cjs +83 -15
  26. package/dist/cjs/text.css +104 -2
  27. package/dist/esm/191.css +104 -2
  28. package/dist/esm/191.js +74 -13
  29. package/dist/esm/227.css +7 -0
  30. package/dist/esm/227.js +39 -0
  31. package/dist/esm/513.css +60 -0
  32. package/dist/esm/513.js +126 -0
  33. package/dist/esm/651.js +4 -2
  34. package/dist/esm/767.js +33 -0
  35. package/dist/esm/783.js +3 -1
  36. package/dist/esm/919.js +3 -1
  37. package/dist/esm/components/highlight/Highlight.d.ts +14 -0
  38. package/dist/esm/components/highlight/index.d.ts +1 -0
  39. package/dist/esm/components/list/List.css.d.ts +47 -0
  40. package/dist/esm/components/list/List.d.ts +52 -0
  41. package/dist/esm/components/list/index.d.ts +1 -0
  42. package/dist/esm/components/mark/Mark.css.d.ts +1 -0
  43. package/dist/esm/components/mark/Mark.d.ts +5 -0
  44. package/dist/esm/components/mark/index.d.ts +1 -0
  45. package/dist/esm/components/text/Text.css.d.ts +94 -1
  46. package/dist/esm/components/text/Text.d.ts +55 -9
  47. package/dist/esm/highlight.d.ts +2 -0
  48. package/dist/esm/highlight.js +1 -0
  49. package/dist/esm/index.d.ts +4 -0
  50. package/dist/esm/index.js +26 -0
  51. package/dist/esm/list.d.ts +2 -0
  52. package/dist/esm/list.js +1 -0
  53. package/dist/esm/mark.d.ts +2 -0
  54. package/dist/esm/mark.js +1 -0
  55. package/dist/esm/useIsTruncated.d.ts +15 -0
  56. package/package.json +25 -5
@@ -100,7 +100,7 @@
100
100
  }
101
101
 
102
102
  ._4sie9wg {
103
- color: var(--vinyasa-on-secondary);
103
+ color: var(--vinyasa-text-default);
104
104
  }
105
105
 
106
106
  ._4sie9wh {
@@ -112,15 +112,117 @@
112
112
  }
113
113
 
114
114
  ._4sie9wj {
115
- color: var(--vinyasa-error);
115
+ color: var(--vinyasa-status-info-text);
116
116
  }
117
117
 
118
118
  ._4sie9wk {
119
+ color: var(--vinyasa-status-success-text);
120
+ }
121
+
122
+ ._4sie9wl {
123
+ color: var(--vinyasa-status-warning-text);
124
+ }
125
+
126
+ ._4sie9wm {
127
+ color: var(--vinyasa-status-error-text);
128
+ }
129
+
130
+ ._4sie9wn {
131
+ text-overflow: ellipsis;
132
+ white-space: nowrap;
133
+ max-width: 100%;
134
+ display: inline-block;
135
+ overflow: hidden;
136
+ }
137
+
138
+ ._4sie9wo {
119
139
  text-overflow: ellipsis;
120
140
  white-space: nowrap;
141
+ text-align: left;
142
+ direction: rtl;
143
+ max-width: 100%;
144
+ display: inline-block;
121
145
  overflow: hidden;
122
146
  }
123
147
 
148
+ ._4sie9wp {
149
+ font-style: italic;
150
+ }
151
+
152
+ ._4sie9wq {
153
+ text-transform: uppercase;
154
+ }
155
+
156
+ ._4sie9wr {
157
+ text-transform: lowercase;
158
+ }
159
+
160
+ ._4sie9ws {
161
+ text-transform: capitalize;
162
+ }
163
+
164
+ ._4sie9wt {
165
+ text-transform: none;
166
+ }
167
+
168
+ ._4sie9wu {
169
+ text-decoration: underline;
170
+ }
171
+
172
+ ._4sie9wv {
173
+ text-decoration: line-through;
174
+ }
175
+
176
+ ._4sie9ww {
177
+ text-decoration: none;
178
+ }
179
+
180
+ ._4sie9wx {
181
+ letter-spacing: var(--vinyasa-letter-spacing-tight);
182
+ }
183
+
184
+ ._4sie9wy {
185
+ letter-spacing: var(--vinyasa-letter-spacing-normal);
186
+ }
187
+
188
+ ._4sie9wz {
189
+ letter-spacing: var(--vinyasa-letter-spacing-wide);
190
+ }
191
+
192
+ ._4sie9w10 {
193
+ line-height: var(--vinyasa-line-height-tight);
194
+ }
195
+
196
+ ._4sie9w11 {
197
+ line-height: var(--vinyasa-line-height-normal);
198
+ }
199
+
200
+ ._4sie9w12 {
201
+ line-height: var(--vinyasa-line-height-loose);
202
+ }
203
+
204
+ ._4sie9w13 {
205
+ text-wrap: wrap;
206
+ }
207
+
208
+ ._4sie9w14 {
209
+ text-wrap: balance;
210
+ }
211
+
212
+ ._4sie9w15 {
213
+ text-wrap: pretty;
214
+ }
215
+
216
+ ._4sie9w16 {
217
+ text-wrap: nowrap;
218
+ }
219
+
220
+ ._4sie9w17 {
221
+ color: rgba(0, 0, 0, 0);
222
+ -webkit-background-clip: text;
223
+ background-clip: text;
224
+ }
225
+
124
226
  ._15gjhvw0 {
125
227
  font-family: var(--vinyasa-font-family-mono);
126
228
  font-size: var(--vinyasa-font-size-sm);
@@ -142,6 +244,14 @@
142
244
  display: inline;
143
245
  }
144
246
 
247
+ .x8q83o0 {
248
+ background-color: var(--vinyasa-status-warning-bg);
249
+ color: var(--vinyasa-status-warning-text);
250
+ border-radius: var(--vinyasa-radius-sm);
251
+ padding-left: .2em;
252
+ padding-right: .2em;
253
+ }
254
+
145
255
  ._18ahdyj0 {
146
256
  font-family: var(--vinyasa-font-family-mono);
147
257
  font-size: var(--vinyasa-font-size-sm);
@@ -163,3 +273,63 @@
163
273
  text-decoration: underline;
164
274
  }
165
275
 
276
+ ._1ohxnc10 {
277
+ font-family: var(--vinyasa-font-family-sans);
278
+ font-size: var(--vinyasa-font-size-md);
279
+ color: var(--vinyasa-text-default);
280
+ flex-direction: column;
281
+ margin: 0;
282
+ display: flex;
283
+ }
284
+
285
+ ._1ohxnc11 {
286
+ gap: var(--vinyasa-space1);
287
+ }
288
+
289
+ ._1ohxnc12 {
290
+ gap: var(--vinyasa-space2);
291
+ }
292
+
293
+ ._1ohxnc13 {
294
+ gap: var(--vinyasa-space3);
295
+ }
296
+
297
+ ._1ohxnc14 {
298
+ gap: var(--vinyasa-space4);
299
+ }
300
+
301
+ ._1ohxnc15 {
302
+ gap: var(--vinyasa-space5);
303
+ }
304
+
305
+ ._1ohxnc16 {
306
+ gap: var(--vinyasa-space6);
307
+ }
308
+
309
+ ._1ohxnc17 {
310
+ padding-left: var(--vinyasa-space5);
311
+ }
312
+
313
+ ._1ohxnc18 {
314
+ padding-left: 0;
315
+ list-style: none;
316
+ }
317
+
318
+ ._1ohxnc1a {
319
+ align-items: flex-start;
320
+ gap: var(--vinyasa-space2);
321
+ list-style: none;
322
+ display: flex;
323
+ }
324
+
325
+ ._1ohxnc1b {
326
+ align-items: center;
327
+ }
328
+
329
+ ._1ohxnc1c {
330
+ flex-shrink: 0;
331
+ align-items: center;
332
+ line-height: 1;
333
+ display: inline-flex;
334
+ }
335
+
package/dist/cjs/kbd.cjs CHANGED
@@ -31,8 +31,8 @@ __webpack_require__.d(__webpack_exports__, {
31
31
  default: ()=>kbd_Kbd
32
32
  });
33
33
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
34
- const external_react_namespaceObject = require("react");
35
34
  const tokens_namespaceObject = require("@vinyasa/tokens");
35
+ const external_react_namespaceObject = require("react");
36
36
  const space = {
37
37
  1: tokens_namespaceObject.themeContract.space1,
38
38
  2: tokens_namespaceObject.themeContract.space2,
@@ -209,6 +209,7 @@ const Kbd = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1
209
209
  "style",
210
210
  "children"
211
211
  ]), [ref] = _rest;
212
+ const themedRef = (0, tokens_namespaceObject.useThemedRef)(ref);
212
213
  const classes = className ? `${kbd} ${className}` : kbd;
213
214
  const computedStyle = _object_spread({}, resolveSpacingStyle({
214
215
  m,
@@ -227,7 +228,7 @@ const Kbd = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1
227
228
  py
228
229
  }), style);
229
230
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("kbd", _object_spread_props(_object_spread({
230
- ref: ref,
231
+ ref: themedRef,
231
232
  className: classes,
232
233
  style: computedStyle
233
234
  }, rest), {
@@ -221,10 +221,47 @@ var Text_css_text = createRuntimeFn({
221
221
  default: '_4sie9wg',
222
222
  muted: '_4sie9wh',
223
223
  primary: '_4sie9wi',
224
- error: '_4sie9wj'
224
+ info: '_4sie9wj',
225
+ success: '_4sie9wk',
226
+ warning: '_4sie9wl',
227
+ error: '_4sie9wm'
225
228
  },
226
229
  truncate: {
227
- true: '_4sie9wk'
230
+ end: '_4sie9wn',
231
+ start: '_4sie9wo'
232
+ },
233
+ italic: {
234
+ true: '_4sie9wp'
235
+ },
236
+ textTransform: {
237
+ uppercase: '_4sie9wq',
238
+ lowercase: '_4sie9wr',
239
+ capitalize: '_4sie9ws',
240
+ none: '_4sie9wt'
241
+ },
242
+ decoration: {
243
+ underline: '_4sie9wu',
244
+ 'line-through': '_4sie9wv',
245
+ none: '_4sie9ww'
246
+ },
247
+ letterSpacing: {
248
+ tight: '_4sie9wx',
249
+ normal: '_4sie9wy',
250
+ wide: '_4sie9wz'
251
+ },
252
+ lineHeight: {
253
+ tight: '_4sie9w10',
254
+ normal: '_4sie9w11',
255
+ loose: '_4sie9w12'
256
+ },
257
+ textWrap: {
258
+ wrap: '_4sie9w13',
259
+ balance: '_4sie9w14',
260
+ pretty: '_4sie9w15',
261
+ nowrap: '_4sie9w16'
262
+ },
263
+ variant: {
264
+ gradient: '_4sie9w17'
228
265
  }
229
266
  },
230
267
  defaultVariants: {
@@ -316,13 +353,23 @@ const Text = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _
316
353
  let _ref = [
317
354
  _0,
318
355
  _1
319
- ], [_ref1, ..._rest] = _ref, { as: Component = 'span', size, weight, align, color, truncate, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, children } = _ref1, rest = _object_without_properties(_ref1, [
356
+ ], [_ref1, ..._rest] = _ref, { as: Component = 'span', size, weight, align, color, truncate, italic, textTransform, decoration, letterSpacing, lineHeight, textWrap, variant, lineClamp, inherit, gradient, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, children } = _ref1, rest = _object_without_properties(_ref1, [
320
357
  "as",
321
358
  "size",
322
359
  "weight",
323
360
  "align",
324
361
  "color",
325
362
  "truncate",
363
+ "italic",
364
+ "textTransform",
365
+ "decoration",
366
+ "letterSpacing",
367
+ "lineHeight",
368
+ "textWrap",
369
+ "variant",
370
+ "lineClamp",
371
+ "inherit",
372
+ "gradient",
326
373
  "m",
327
374
  "mt",
328
375
  "mr",
@@ -341,19 +388,24 @@ const Text = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _
341
388
  "style",
342
389
  "children"
343
390
  ]), [ref] = _rest;
344
- const classes = className ? `${Text_css_text({
391
+ var _gradient_deg;
392
+ const themedRef = (0, tokens_namespaceObject.useThemedRef)(ref);
393
+ const normalizedTruncate = true === truncate ? 'end' : false === truncate ? void 0 : truncate;
394
+ const variantArgs = {
345
395
  size,
346
396
  weight,
347
397
  align,
348
398
  color,
349
- truncate
350
- })} ${className}` : Text_css_text({
351
- size,
352
- weight,
353
- align,
354
- color,
355
- truncate
356
- });
399
+ truncate: normalizedTruncate,
400
+ italic,
401
+ textTransform,
402
+ decoration,
403
+ letterSpacing,
404
+ lineHeight,
405
+ textWrap,
406
+ variant
407
+ };
408
+ const classes = className ? `${Text_css_text(variantArgs)} ${className}` : Text_css_text(variantArgs);
357
409
  const spacingStyle = resolveSpacingStyle({
358
410
  m,
359
411
  mt,
@@ -370,10 +422,26 @@ const Text = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _
370
422
  px,
371
423
  py
372
424
  });
425
+ const inheritStyle = inherit ? {
426
+ fontFamily: 'inherit',
427
+ fontSize: 'inherit',
428
+ fontWeight: 'inherit',
429
+ color: 'inherit',
430
+ lineHeight: 'inherit'
431
+ } : void 0;
432
+ const gradientStyle = 'gradient' === variant && gradient ? {
433
+ backgroundImage: `linear-gradient(${String(null != (_gradient_deg = gradient.deg) ? _gradient_deg : 45)}deg, ${gradient.from}, ${gradient.to})`
434
+ } : void 0;
435
+ const lineClampStyle = void 0 !== lineClamp ? {
436
+ display: '-webkit-box',
437
+ WebkitLineClamp: lineClamp,
438
+ WebkitBoxOrient: 'vertical',
439
+ overflow: 'hidden'
440
+ } : void 0;
373
441
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, _object_spread_props(_object_spread({
374
- ref: ref,
442
+ ref: themedRef,
375
443
  className: classes,
376
- style: _object_spread({}, spacingStyle, style)
444
+ style: _object_spread({}, spacingStyle, inheritStyle, gradientStyle, lineClampStyle, style)
377
445
  }, rest), {
378
446
  children: children
379
447
  }));
@@ -64,7 +64,7 @@
64
64
  }
65
65
 
66
66
  ._4sie9wg {
67
- color: var(--vinyasa-on-secondary);
67
+ color: var(--vinyasa-text-default);
68
68
  }
69
69
 
70
70
  ._4sie9wh {
@@ -76,12 +76,114 @@
76
76
  }
77
77
 
78
78
  ._4sie9wj {
79
- color: var(--vinyasa-error);
79
+ color: var(--vinyasa-status-info-text);
80
80
  }
81
81
 
82
82
  ._4sie9wk {
83
+ color: var(--vinyasa-status-success-text);
84
+ }
85
+
86
+ ._4sie9wl {
87
+ color: var(--vinyasa-status-warning-text);
88
+ }
89
+
90
+ ._4sie9wm {
91
+ color: var(--vinyasa-status-error-text);
92
+ }
93
+
94
+ ._4sie9wn {
83
95
  text-overflow: ellipsis;
84
96
  white-space: nowrap;
97
+ max-width: 100%;
98
+ display: inline-block;
85
99
  overflow: hidden;
86
100
  }
87
101
 
102
+ ._4sie9wo {
103
+ text-overflow: ellipsis;
104
+ white-space: nowrap;
105
+ text-align: left;
106
+ direction: rtl;
107
+ max-width: 100%;
108
+ display: inline-block;
109
+ overflow: hidden;
110
+ }
111
+
112
+ ._4sie9wp {
113
+ font-style: italic;
114
+ }
115
+
116
+ ._4sie9wq {
117
+ text-transform: uppercase;
118
+ }
119
+
120
+ ._4sie9wr {
121
+ text-transform: lowercase;
122
+ }
123
+
124
+ ._4sie9ws {
125
+ text-transform: capitalize;
126
+ }
127
+
128
+ ._4sie9wt {
129
+ text-transform: none;
130
+ }
131
+
132
+ ._4sie9wu {
133
+ text-decoration: underline;
134
+ }
135
+
136
+ ._4sie9wv {
137
+ text-decoration: line-through;
138
+ }
139
+
140
+ ._4sie9ww {
141
+ text-decoration: none;
142
+ }
143
+
144
+ ._4sie9wx {
145
+ letter-spacing: var(--vinyasa-letter-spacing-tight);
146
+ }
147
+
148
+ ._4sie9wy {
149
+ letter-spacing: var(--vinyasa-letter-spacing-normal);
150
+ }
151
+
152
+ ._4sie9wz {
153
+ letter-spacing: var(--vinyasa-letter-spacing-wide);
154
+ }
155
+
156
+ ._4sie9w10 {
157
+ line-height: var(--vinyasa-line-height-tight);
158
+ }
159
+
160
+ ._4sie9w11 {
161
+ line-height: var(--vinyasa-line-height-normal);
162
+ }
163
+
164
+ ._4sie9w12 {
165
+ line-height: var(--vinyasa-line-height-loose);
166
+ }
167
+
168
+ ._4sie9w13 {
169
+ text-wrap: wrap;
170
+ }
171
+
172
+ ._4sie9w14 {
173
+ text-wrap: balance;
174
+ }
175
+
176
+ ._4sie9w15 {
177
+ text-wrap: pretty;
178
+ }
179
+
180
+ ._4sie9w16 {
181
+ text-wrap: nowrap;
182
+ }
183
+
184
+ ._4sie9w17 {
185
+ color: rgba(0, 0, 0, 0);
186
+ -webkit-background-clip: text;
187
+ background-clip: text;
188
+ }
189
+
package/dist/cjs/link.cjs CHANGED
@@ -221,10 +221,47 @@ var Text_css_text = createRuntimeFn({
221
221
  default: '_4sie9wg',
222
222
  muted: '_4sie9wh',
223
223
  primary: '_4sie9wi',
224
- error: '_4sie9wj'
224
+ info: '_4sie9wj',
225
+ success: '_4sie9wk',
226
+ warning: '_4sie9wl',
227
+ error: '_4sie9wm'
225
228
  },
226
229
  truncate: {
227
- true: '_4sie9wk'
230
+ end: '_4sie9wn',
231
+ start: '_4sie9wo'
232
+ },
233
+ italic: {
234
+ true: '_4sie9wp'
235
+ },
236
+ textTransform: {
237
+ uppercase: '_4sie9wq',
238
+ lowercase: '_4sie9wr',
239
+ capitalize: '_4sie9ws',
240
+ none: '_4sie9wt'
241
+ },
242
+ decoration: {
243
+ underline: '_4sie9wu',
244
+ 'line-through': '_4sie9wv',
245
+ none: '_4sie9ww'
246
+ },
247
+ letterSpacing: {
248
+ tight: '_4sie9wx',
249
+ normal: '_4sie9wy',
250
+ wide: '_4sie9wz'
251
+ },
252
+ lineHeight: {
253
+ tight: '_4sie9w10',
254
+ normal: '_4sie9w11',
255
+ loose: '_4sie9w12'
256
+ },
257
+ textWrap: {
258
+ wrap: '_4sie9w13',
259
+ balance: '_4sie9w14',
260
+ pretty: '_4sie9w15',
261
+ nowrap: '_4sie9w16'
262
+ },
263
+ variant: {
264
+ gradient: '_4sie9w17'
228
265
  }
229
266
  },
230
267
  defaultVariants: {
@@ -316,13 +353,23 @@ const Text = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _
316
353
  let _ref = [
317
354
  _0,
318
355
  _1
319
- ], [_ref1, ..._rest] = _ref, { as: Component = 'span', size, weight, align, color, truncate, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, children } = _ref1, rest = _object_without_properties(_ref1, [
356
+ ], [_ref1, ..._rest] = _ref, { as: Component = 'span', size, weight, align, color, truncate, italic, textTransform, decoration, letterSpacing, lineHeight, textWrap, variant, lineClamp, inherit, gradient, m, mt, mr, mb, ml, mx, my, p, pt, pr, pb, pl, px, py, className, style, children } = _ref1, rest = _object_without_properties(_ref1, [
320
357
  "as",
321
358
  "size",
322
359
  "weight",
323
360
  "align",
324
361
  "color",
325
362
  "truncate",
363
+ "italic",
364
+ "textTransform",
365
+ "decoration",
366
+ "letterSpacing",
367
+ "lineHeight",
368
+ "textWrap",
369
+ "variant",
370
+ "lineClamp",
371
+ "inherit",
372
+ "gradient",
326
373
  "m",
327
374
  "mt",
328
375
  "mr",
@@ -341,19 +388,24 @@ const Text = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _
341
388
  "style",
342
389
  "children"
343
390
  ]), [ref] = _rest;
344
- const classes = className ? `${Text_css_text({
391
+ var _gradient_deg;
392
+ const themedRef = (0, tokens_namespaceObject.useThemedRef)(ref);
393
+ const normalizedTruncate = true === truncate ? 'end' : false === truncate ? void 0 : truncate;
394
+ const variantArgs = {
345
395
  size,
346
396
  weight,
347
397
  align,
348
398
  color,
349
- truncate
350
- })} ${className}` : Text_css_text({
351
- size,
352
- weight,
353
- align,
354
- color,
355
- truncate
356
- });
399
+ truncate: normalizedTruncate,
400
+ italic,
401
+ textTransform,
402
+ decoration,
403
+ letterSpacing,
404
+ lineHeight,
405
+ textWrap,
406
+ variant
407
+ };
408
+ const classes = className ? `${Text_css_text(variantArgs)} ${className}` : Text_css_text(variantArgs);
357
409
  const spacingStyle = resolveSpacingStyle({
358
410
  m,
359
411
  mt,
@@ -370,10 +422,26 @@ const Text = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _
370
422
  px,
371
423
  py
372
424
  });
425
+ const inheritStyle = inherit ? {
426
+ fontFamily: 'inherit',
427
+ fontSize: 'inherit',
428
+ fontWeight: 'inherit',
429
+ color: 'inherit',
430
+ lineHeight: 'inherit'
431
+ } : void 0;
432
+ const gradientStyle = 'gradient' === variant && gradient ? {
433
+ backgroundImage: `linear-gradient(${String(null != (_gradient_deg = gradient.deg) ? _gradient_deg : 45)}deg, ${gradient.from}, ${gradient.to})`
434
+ } : void 0;
435
+ const lineClampStyle = void 0 !== lineClamp ? {
436
+ display: '-webkit-box',
437
+ WebkitLineClamp: lineClamp,
438
+ WebkitBoxOrient: 'vertical',
439
+ overflow: 'hidden'
440
+ } : void 0;
373
441
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, _object_spread_props(_object_spread({
374
- ref: ref,
442
+ ref: themedRef,
375
443
  className: classes,
376
- style: _object_spread({}, spacingStyle, style)
444
+ style: _object_spread({}, spacingStyle, inheritStyle, gradientStyle, lineClampStyle, style)
377
445
  }, rest), {
378
446
  children: children
379
447
  }));