@takumi-rs/helpers 0.29.0 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as Color } from './types-
|
|
2
|
-
export { A as AnyNode, J as JsonValue, N as Node } from './types-
|
|
1
|
+
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as Color } from './types-DAg81Bn-.cjs';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-DAg81Bn-.cjs';
|
|
3
3
|
|
|
4
4
|
declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
|
|
5
5
|
declare function text(text: string, style?: PartialStyle): TextNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as Color } from './types-
|
|
2
|
-
export { A as AnyNode, J as JsonValue, N as Node } from './types-
|
|
1
|
+
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as Color } from './types-DAg81Bn-.js';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-DAg81Bn-.js';
|
|
3
3
|
|
|
4
4
|
declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
|
|
5
5
|
declare function text(text: string, style?: PartialStyle): TextNode;
|
package/dist/jsx/jsx.d.cts
CHANGED
package/dist/jsx/jsx.d.ts
CHANGED
|
@@ -303,11 +303,55 @@ type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
|
|
|
303
303
|
*/
|
|
304
304
|
type FontFamily = string;
|
|
305
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Represents a single font feature setting with a feature tag and value.
|
|
308
|
+
*/
|
|
309
|
+
type FontFeatureSetting = {
|
|
310
|
+
/**
|
|
311
|
+
* The four-character OpenType feature tag (e.g., "liga", "kern", "smcp")
|
|
312
|
+
*/
|
|
313
|
+
tag: string;
|
|
314
|
+
/**
|
|
315
|
+
* The numeric value for this feature (usually 0 or 1, but can be other values)
|
|
316
|
+
*/
|
|
317
|
+
value: number;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Controls OpenType font features via CSS font-feature-settings property.
|
|
322
|
+
*
|
|
323
|
+
* This allows enabling/disabling specific typographic features in OpenType fonts
|
|
324
|
+
* such as ligatures, kerning, small caps, and other advanced typography features.
|
|
325
|
+
*/
|
|
326
|
+
type FontFeatureSettings = Array<FontFeatureSetting>;
|
|
327
|
+
|
|
306
328
|
/**
|
|
307
329
|
* Controls the slant (italic/oblique) of text rendering.
|
|
308
330
|
*/
|
|
309
331
|
type FontStyle = "normal" | "italic" | "oblique" | `oblique ${string}deg`;
|
|
310
332
|
|
|
333
|
+
/**
|
|
334
|
+
* Represents a single font variation setting with an axis name and value.
|
|
335
|
+
*/
|
|
336
|
+
type FontVariationSetting = {
|
|
337
|
+
/**
|
|
338
|
+
* The four-character axis name (e.g., "wght", "wdth", "ital")
|
|
339
|
+
*/
|
|
340
|
+
axis: string;
|
|
341
|
+
/**
|
|
342
|
+
* The numeric value for this axis
|
|
343
|
+
*/
|
|
344
|
+
value: number;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Controls variable font axis values via CSS font-variation-settings property.
|
|
349
|
+
*
|
|
350
|
+
* This allows fine-grained control over variable font characteristics like weight,
|
|
351
|
+
* width, slant, and other custom axes defined in the font.
|
|
352
|
+
*/
|
|
353
|
+
type FontVariationSettings = Array<FontVariationSetting>;
|
|
354
|
+
|
|
311
355
|
/**
|
|
312
356
|
* Represents font weight value.
|
|
313
357
|
*/
|
|
@@ -853,6 +897,14 @@ type Style = {
|
|
|
853
897
|
* Font weight for text rendering.
|
|
854
898
|
*/
|
|
855
899
|
fontWeight?: FontWeight;
|
|
900
|
+
/**
|
|
901
|
+
* Controls variable font axis values via CSS font-variation-settings property.
|
|
902
|
+
*/
|
|
903
|
+
fontVariationSettings?: FontVariationSettings;
|
|
904
|
+
/**
|
|
905
|
+
* Controls OpenType font features via CSS font-feature-settings property.
|
|
906
|
+
*/
|
|
907
|
+
fontFeatureSettings?: FontFeatureSettings;
|
|
856
908
|
/**
|
|
857
909
|
* Maximum number of lines for text before truncation.
|
|
858
910
|
*/
|
|
@@ -303,11 +303,55 @@ type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
|
|
|
303
303
|
*/
|
|
304
304
|
type FontFamily = string;
|
|
305
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Represents a single font feature setting with a feature tag and value.
|
|
308
|
+
*/
|
|
309
|
+
type FontFeatureSetting = {
|
|
310
|
+
/**
|
|
311
|
+
* The four-character OpenType feature tag (e.g., "liga", "kern", "smcp")
|
|
312
|
+
*/
|
|
313
|
+
tag: string;
|
|
314
|
+
/**
|
|
315
|
+
* The numeric value for this feature (usually 0 or 1, but can be other values)
|
|
316
|
+
*/
|
|
317
|
+
value: number;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Controls OpenType font features via CSS font-feature-settings property.
|
|
322
|
+
*
|
|
323
|
+
* This allows enabling/disabling specific typographic features in OpenType fonts
|
|
324
|
+
* such as ligatures, kerning, small caps, and other advanced typography features.
|
|
325
|
+
*/
|
|
326
|
+
type FontFeatureSettings = Array<FontFeatureSetting>;
|
|
327
|
+
|
|
306
328
|
/**
|
|
307
329
|
* Controls the slant (italic/oblique) of text rendering.
|
|
308
330
|
*/
|
|
309
331
|
type FontStyle = "normal" | "italic" | "oblique" | `oblique ${string}deg`;
|
|
310
332
|
|
|
333
|
+
/**
|
|
334
|
+
* Represents a single font variation setting with an axis name and value.
|
|
335
|
+
*/
|
|
336
|
+
type FontVariationSetting = {
|
|
337
|
+
/**
|
|
338
|
+
* The four-character axis name (e.g., "wght", "wdth", "ital")
|
|
339
|
+
*/
|
|
340
|
+
axis: string;
|
|
341
|
+
/**
|
|
342
|
+
* The numeric value for this axis
|
|
343
|
+
*/
|
|
344
|
+
value: number;
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Controls variable font axis values via CSS font-variation-settings property.
|
|
349
|
+
*
|
|
350
|
+
* This allows fine-grained control over variable font characteristics like weight,
|
|
351
|
+
* width, slant, and other custom axes defined in the font.
|
|
352
|
+
*/
|
|
353
|
+
type FontVariationSettings = Array<FontVariationSetting>;
|
|
354
|
+
|
|
311
355
|
/**
|
|
312
356
|
* Represents font weight value.
|
|
313
357
|
*/
|
|
@@ -853,6 +897,14 @@ type Style = {
|
|
|
853
897
|
* Font weight for text rendering.
|
|
854
898
|
*/
|
|
855
899
|
fontWeight?: FontWeight;
|
|
900
|
+
/**
|
|
901
|
+
* Controls variable font axis values via CSS font-variation-settings property.
|
|
902
|
+
*/
|
|
903
|
+
fontVariationSettings?: FontVariationSettings;
|
|
904
|
+
/**
|
|
905
|
+
* Controls OpenType font features via CSS font-feature-settings property.
|
|
906
|
+
*/
|
|
907
|
+
fontFeatureSettings?: FontFeatureSettings;
|
|
856
908
|
/**
|
|
857
909
|
* Maximum number of lines for text before truncation.
|
|
858
910
|
*/
|