@takumi-rs/helpers 0.29.8 → 0.30.0
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-Bg4T_32S.cjs';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-Bg4T_32S.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-Bg4T_32S.js';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-Bg4T_32S.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
|
@@ -269,7 +269,7 @@ type BoxShadow = {
|
|
|
269
269
|
/**
|
|
270
270
|
* Represents a collection of box shadows, have custom `FromCss` implementation for comma-separated values.
|
|
271
271
|
*/
|
|
272
|
-
type BoxShadows = Array<BoxShadow
|
|
272
|
+
type BoxShadows = Array<BoxShadow> | string;
|
|
273
273
|
|
|
274
274
|
/**
|
|
275
275
|
* Defines how the width and height of an element are calculated.
|
|
@@ -278,6 +278,11 @@ type BoxShadows = Array<BoxShadow>;
|
|
|
278
278
|
*/
|
|
279
279
|
type BoxSizing = "content-box" | "border-box";
|
|
280
280
|
|
|
281
|
+
/**
|
|
282
|
+
* Represents a CSS property value that can be explicitly set, inherited from parent, or reset to initial value.
|
|
283
|
+
*/
|
|
284
|
+
type CssValue<T> = "initial" | "inherit" | T;
|
|
285
|
+
|
|
281
286
|
/**
|
|
282
287
|
* This enum determines the layout algorithm used for the children of a node.
|
|
283
288
|
*/
|
|
@@ -493,7 +498,44 @@ type TextAlign = "left" | "right" | "center" | "justify" | "start" | "end";
|
|
|
493
498
|
*
|
|
494
499
|
* This enum determines how text should be handled when it exceeds the container width.
|
|
495
500
|
*/
|
|
496
|
-
type TextOverflow = "
|
|
501
|
+
type TextOverflow = "clip" | "ellipsis";
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Represents a text shadow with all its properties.
|
|
505
|
+
*/
|
|
506
|
+
type TextShadow = {
|
|
507
|
+
/**
|
|
508
|
+
* Horizontal offset of the shadow.
|
|
509
|
+
*/
|
|
510
|
+
offsetX: LengthUnit;
|
|
511
|
+
/**
|
|
512
|
+
* Vertical offset of the shadow.
|
|
513
|
+
*/
|
|
514
|
+
offsetY: LengthUnit;
|
|
515
|
+
/**
|
|
516
|
+
* Blur radius of the shadow. Higher values create a more blurred shadow.
|
|
517
|
+
*/
|
|
518
|
+
blurRadius: LengthUnit;
|
|
519
|
+
/**
|
|
520
|
+
* Color of the shadow.
|
|
521
|
+
*/
|
|
522
|
+
color: Color;
|
|
523
|
+
} | string;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Represents a collection of text shadows; has custom `FromCss` implementation for comma-separated values.
|
|
527
|
+
*/
|
|
528
|
+
type TextShadows = Array<TextShadow> | string;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Parsed `text-stroke` value.
|
|
532
|
+
*
|
|
533
|
+
* `color` is optional; when absent the element's `color` property should be used.
|
|
534
|
+
*/
|
|
535
|
+
type TextStroke = {
|
|
536
|
+
width: LengthUnit;
|
|
537
|
+
color: Color | null;
|
|
538
|
+
} | string;
|
|
497
539
|
|
|
498
540
|
/**
|
|
499
541
|
* Controls text case transformation when rendering.
|
|
@@ -558,353 +600,99 @@ type Transforms = Array<Transform> | string;
|
|
|
558
600
|
type WordBreak = "normal" | "break-all" | "keep-all";
|
|
559
601
|
|
|
560
602
|
/**
|
|
561
|
-
*
|
|
603
|
+
* Defines the style of an element.
|
|
562
604
|
*/
|
|
563
605
|
type Style = {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
*/
|
|
655
|
-
left?: LengthUnit;
|
|
656
|
-
/**
|
|
657
|
-
* Direction of flex layout (row or column).
|
|
658
|
-
*/
|
|
659
|
-
flexDirection: FlexDirection;
|
|
660
|
-
/**
|
|
661
|
-
* How a single grid item is aligned along the inline (row) axis, overriding the container's justify-items value.
|
|
662
|
-
*/
|
|
663
|
-
justifySelf?: AlignItems;
|
|
664
|
-
/**
|
|
665
|
-
* How items are aligned along the main axis.
|
|
666
|
-
*/
|
|
667
|
-
justifyContent?: JustifyContent;
|
|
668
|
-
/**
|
|
669
|
-
* How lines are aligned within the flex container when there's extra space in the cross axis.
|
|
670
|
-
*/
|
|
671
|
-
alignContent?: JustifyContent;
|
|
672
|
-
/**
|
|
673
|
-
* How grid items are aligned along the inline (row) axis within their grid areas.
|
|
674
|
-
*/
|
|
675
|
-
justifyItems?: AlignItems;
|
|
676
|
-
/**
|
|
677
|
-
* How items are aligned along the cross axis.
|
|
678
|
-
*/
|
|
679
|
-
alignItems?: AlignItems;
|
|
680
|
-
/**
|
|
681
|
-
* How a single item is aligned along the cross axis, overriding the container's align-items value.
|
|
682
|
-
*/
|
|
683
|
-
alignSelf?: AlignItems;
|
|
684
|
-
/**
|
|
685
|
-
* How flex items should wrap.
|
|
686
|
-
*/
|
|
687
|
-
flexWrap: FlexWrap;
|
|
688
|
-
/**
|
|
689
|
-
* The initial main size of the flex item before growing or shrinking.
|
|
690
|
-
*/
|
|
691
|
-
flexBasis: LengthUnit;
|
|
692
|
-
/**
|
|
693
|
-
* Positioning method (relative, absolute, etc.).
|
|
694
|
-
*/
|
|
695
|
-
position: Position;
|
|
696
|
-
/**
|
|
697
|
-
* Transform for the element.
|
|
698
|
-
*/
|
|
699
|
-
transform?: Transforms;
|
|
700
|
-
/**
|
|
701
|
-
* Transform origin for the element.
|
|
702
|
-
*/
|
|
703
|
-
transformOrigin?: BackgroundPosition;
|
|
704
|
-
/**
|
|
705
|
-
* Mask image for the element.
|
|
706
|
-
*/
|
|
707
|
-
maskImage?: BackgroundImages;
|
|
708
|
-
/**
|
|
709
|
-
* Mask size for the element.
|
|
710
|
-
*/
|
|
711
|
-
maskSize?: BackgroundSizes;
|
|
712
|
-
/**
|
|
713
|
-
* Mask position for the element.
|
|
714
|
-
*/
|
|
715
|
-
maskPosition?: BackgroundPositions;
|
|
716
|
-
/**
|
|
717
|
-
* Mask repeat for the element.
|
|
718
|
-
*/
|
|
719
|
-
maskRepeat?: BackgroundRepeats;
|
|
720
|
-
/**
|
|
721
|
-
* Spacing between rows and columns in flex or grid layouts.
|
|
722
|
-
*/
|
|
723
|
-
gap: Gap;
|
|
724
|
-
/**
|
|
725
|
-
* How much the flex item should grow relative to other flex items when positive free space is distributed.
|
|
726
|
-
*/
|
|
727
|
-
flexGrow: number;
|
|
728
|
-
/**
|
|
729
|
-
* How much the flex item should shrink relative to other flex items when negative free space is distributed.
|
|
730
|
-
*/
|
|
731
|
-
flexShrink: number;
|
|
732
|
-
/**
|
|
733
|
-
* Shorthand border radius (top-left, top-right, bottom-right, bottom-left).
|
|
734
|
-
*/
|
|
735
|
-
borderRadius?: Sides<LengthUnit>;
|
|
736
|
-
/**
|
|
737
|
-
* Longhand: top-left border radius. Overrides `border_radius` top-left value.
|
|
738
|
-
*/
|
|
739
|
-
borderTopLeftRadius?: LengthUnit;
|
|
740
|
-
/**
|
|
741
|
-
* Longhand: top-right border radius. Overrides `border_radius` top-right value.
|
|
742
|
-
*/
|
|
743
|
-
borderTopRightRadius?: LengthUnit;
|
|
744
|
-
/**
|
|
745
|
-
* Longhand: bottom-right border radius. Overrides `border_radius` bottom-right value.
|
|
746
|
-
*/
|
|
747
|
-
borderBottomRightRadius?: LengthUnit;
|
|
748
|
-
/**
|
|
749
|
-
* Longhand: bottom-left border radius. Overrides `border_radius` bottom-left value.
|
|
750
|
-
*/
|
|
751
|
-
borderBottomLeftRadius?: LengthUnit;
|
|
752
|
-
/**
|
|
753
|
-
* Width of the element's border on each side (top, right, bottom, left).
|
|
754
|
-
*/
|
|
755
|
-
borderWidth: Sides<LengthUnit>;
|
|
756
|
-
/**
|
|
757
|
-
* Longhand: top border width. Overrides `border_width` top value.
|
|
758
|
-
*/
|
|
759
|
-
borderTopWidth?: LengthUnit;
|
|
760
|
-
/**
|
|
761
|
-
* Longhand: right border width. Overrides `border_width` right value.
|
|
762
|
-
*/
|
|
763
|
-
borderRightWidth?: LengthUnit;
|
|
764
|
-
/**
|
|
765
|
-
* Longhand: bottom border width. Overrides `border_width` bottom value.
|
|
766
|
-
*/
|
|
767
|
-
borderBottomWidth?: LengthUnit;
|
|
768
|
-
/**
|
|
769
|
-
* Longhand: left border width. Overrides `border_width` left value.
|
|
770
|
-
*/
|
|
771
|
-
borderLeftWidth?: LengthUnit;
|
|
772
|
-
/**
|
|
773
|
-
* How images should be fitted within their container.
|
|
774
|
-
*/
|
|
775
|
-
objectFit: ObjectFit;
|
|
776
|
-
/**
|
|
777
|
-
* Background image(s): linear or radial gradients.
|
|
778
|
-
*/
|
|
779
|
-
backgroundImage?: BackgroundImages;
|
|
780
|
-
/**
|
|
781
|
-
* Background positions per layer.
|
|
782
|
-
*/
|
|
783
|
-
backgroundPosition?: BackgroundPositions;
|
|
784
|
-
/**
|
|
785
|
-
* Background sizes per layer.
|
|
786
|
-
*/
|
|
787
|
-
backgroundSize?: BackgroundSizes;
|
|
788
|
-
/**
|
|
789
|
-
* Background repeat per layer.
|
|
790
|
-
*/
|
|
791
|
-
backgroundRepeat?: BackgroundRepeats;
|
|
792
|
-
/**
|
|
793
|
-
* Background color for the element.
|
|
794
|
-
*/
|
|
795
|
-
backgroundColor?: Color;
|
|
796
|
-
/**
|
|
797
|
-
* Box shadow effect for the element.
|
|
798
|
-
*/
|
|
799
|
-
boxShadow?: BoxShadows;
|
|
800
|
-
/**
|
|
801
|
-
* Controls the size of implicitly-created grid columns.
|
|
802
|
-
*/
|
|
803
|
-
gridAutoColumns?: GridTrackSizes;
|
|
804
|
-
/**
|
|
805
|
-
* Controls the size of implicitly-created grid rows.
|
|
806
|
-
*/
|
|
807
|
-
gridAutoRows?: GridTrackSizes;
|
|
808
|
-
/**
|
|
809
|
-
* Controls how auto-placed items are inserted in the grid.
|
|
810
|
-
*/
|
|
811
|
-
gridAutoFlow?: GridAutoFlow;
|
|
812
|
-
/**
|
|
813
|
-
* Specifies a grid item's size and location within the grid column.
|
|
814
|
-
*/
|
|
815
|
-
gridColumn?: GridLine;
|
|
816
|
-
/**
|
|
817
|
-
* Specifies a grid item's size and location within the grid row.
|
|
818
|
-
*/
|
|
819
|
-
gridRow?: GridLine;
|
|
820
|
-
/**
|
|
821
|
-
* Defines the line names and track sizing functions of the grid columns.
|
|
822
|
-
*/
|
|
823
|
-
gridTemplateColumns?: GridTemplateComponents;
|
|
824
|
-
/**
|
|
825
|
-
* Defines the line names and track sizing functions of the grid rows.
|
|
826
|
-
*/
|
|
827
|
-
gridTemplateRows?: GridTemplateComponents;
|
|
828
|
-
/**
|
|
829
|
-
* Defines named grid areas specified via `grid-template-areas`.
|
|
830
|
-
*/
|
|
831
|
-
gridTemplateAreas?: GridTemplateAreas;
|
|
832
|
-
/**
|
|
833
|
-
* How the width and height of an element are calculated.
|
|
834
|
-
*/
|
|
835
|
-
boxSizing?: BoxSizing;
|
|
836
|
-
/**
|
|
837
|
-
* How text should be overflowed.
|
|
838
|
-
*/
|
|
839
|
-
textOverflow?: TextOverflow;
|
|
840
|
-
/**
|
|
841
|
-
* Controls text case transformation when rendering.
|
|
842
|
-
*/
|
|
843
|
-
textTransform?: TextTransform;
|
|
844
|
-
/**
|
|
845
|
-
* Font slant style (normal, italic, oblique).
|
|
846
|
-
*/
|
|
847
|
-
fontStyle?: FontStyle;
|
|
848
|
-
/**
|
|
849
|
-
* Color of the element's border.
|
|
850
|
-
*/
|
|
851
|
-
borderColor?: Color;
|
|
852
|
-
/**
|
|
853
|
-
* Text color for child text elements.
|
|
854
|
-
*/
|
|
855
|
-
color?: Color;
|
|
856
|
-
/**
|
|
857
|
-
* Font size for text rendering.
|
|
858
|
-
*/
|
|
859
|
-
fontSize?: LengthUnit;
|
|
860
|
-
/**
|
|
861
|
-
* Font family name for text rendering.
|
|
862
|
-
*/
|
|
863
|
-
fontFamily?: FontFamily;
|
|
864
|
-
/**
|
|
865
|
-
* Line height for text spacing, number is em.
|
|
866
|
-
*/
|
|
867
|
-
lineHeight?: LineHeight;
|
|
868
|
-
/**
|
|
869
|
-
* Font weight for text rendering.
|
|
870
|
-
*/
|
|
871
|
-
fontWeight?: FontWeight;
|
|
872
|
-
/**
|
|
873
|
-
* Controls variable font axis values via CSS font-variation-settings property.
|
|
874
|
-
*/
|
|
875
|
-
fontVariationSettings?: FontVariationSettings;
|
|
876
|
-
/**
|
|
877
|
-
* Controls OpenType font features via CSS font-feature-settings property.
|
|
878
|
-
*/
|
|
879
|
-
fontFeatureSettings?: FontFeatureSettings;
|
|
880
|
-
/**
|
|
881
|
-
* Maximum number of lines for text before truncation.
|
|
882
|
-
*/
|
|
883
|
-
lineClamp?: number;
|
|
884
|
-
/**
|
|
885
|
-
* Text alignment within the element.
|
|
886
|
-
*/
|
|
887
|
-
textAlign?: TextAlign;
|
|
888
|
-
/**
|
|
889
|
-
* Additional spacing between characters in text.
|
|
890
|
-
*/
|
|
891
|
-
letterSpacing?: LengthUnit;
|
|
892
|
-
/**
|
|
893
|
-
* Additional spacing between words in text.
|
|
894
|
-
*/
|
|
895
|
-
wordSpacing?: LengthUnit;
|
|
896
|
-
/**
|
|
897
|
-
* Controls how images are scaled when rendered.
|
|
898
|
-
*/
|
|
899
|
-
imageRendering?: ImageScalingAlgorithm;
|
|
900
|
-
/**
|
|
901
|
-
* How text should be overflowed.
|
|
902
|
-
*/
|
|
903
|
-
overflowWrap?: OverflowWrap;
|
|
904
|
-
/**
|
|
905
|
-
* How text should be broken at word boundaries.
|
|
906
|
-
*/
|
|
907
|
-
wordBreak?: WordBreak;
|
|
606
|
+
boxSizing: CssValue<BoxSizing>;
|
|
607
|
+
display: CssValue<Display>;
|
|
608
|
+
width: CssValue<LengthUnit>;
|
|
609
|
+
height: CssValue<LengthUnit>;
|
|
610
|
+
maxWidth: CssValue<LengthUnit>;
|
|
611
|
+
maxHeight: CssValue<LengthUnit>;
|
|
612
|
+
minWidth: CssValue<LengthUnit>;
|
|
613
|
+
minHeight: CssValue<LengthUnit>;
|
|
614
|
+
aspectRatio: CssValue<number | null>;
|
|
615
|
+
padding: CssValue<Sides<LengthUnit>>;
|
|
616
|
+
paddingTop: CssValue<LengthUnit | null>;
|
|
617
|
+
paddingRight: CssValue<LengthUnit | null>;
|
|
618
|
+
paddingBottom: CssValue<LengthUnit | null>;
|
|
619
|
+
paddingLeft: CssValue<LengthUnit | null>;
|
|
620
|
+
margin: CssValue<Sides<LengthUnit>>;
|
|
621
|
+
marginTop: CssValue<LengthUnit | null>;
|
|
622
|
+
marginRight: CssValue<LengthUnit | null>;
|
|
623
|
+
marginBottom: CssValue<LengthUnit | null>;
|
|
624
|
+
marginLeft: CssValue<LengthUnit | null>;
|
|
625
|
+
inset: CssValue<Sides<LengthUnit>>;
|
|
626
|
+
top: CssValue<LengthUnit | null>;
|
|
627
|
+
right: CssValue<LengthUnit | null>;
|
|
628
|
+
bottom: CssValue<LengthUnit | null>;
|
|
629
|
+
left: CssValue<LengthUnit | null>;
|
|
630
|
+
flexDirection: CssValue<FlexDirection>;
|
|
631
|
+
justifySelf: CssValue<AlignItems | null>;
|
|
632
|
+
justifyContent: CssValue<JustifyContent | null>;
|
|
633
|
+
alignContent: CssValue<JustifyContent | null>;
|
|
634
|
+
justifyItems: CssValue<AlignItems | null>;
|
|
635
|
+
alignItems: CssValue<AlignItems | null>;
|
|
636
|
+
alignSelf: CssValue<AlignItems | null>;
|
|
637
|
+
flexWrap: CssValue<FlexWrap>;
|
|
638
|
+
flexBasis: CssValue<LengthUnit>;
|
|
639
|
+
position: CssValue<Position>;
|
|
640
|
+
transform: CssValue<Transforms | null>;
|
|
641
|
+
transformOrigin: CssValue<BackgroundPosition | null>;
|
|
642
|
+
maskImage: CssValue<BackgroundImages | null>;
|
|
643
|
+
maskSize: CssValue<BackgroundSizes | null>;
|
|
644
|
+
maskPosition: CssValue<BackgroundPositions | null>;
|
|
645
|
+
maskRepeat: CssValue<BackgroundRepeats | null>;
|
|
646
|
+
gap: CssValue<Gap>;
|
|
647
|
+
flexGrow: CssValue<number>;
|
|
648
|
+
flexShrink: CssValue<number>;
|
|
649
|
+
borderRadius: CssValue<Sides<LengthUnit>>;
|
|
650
|
+
borderTopLeftRadius: CssValue<LengthUnit | null>;
|
|
651
|
+
borderTopRightRadius: CssValue<LengthUnit | null>;
|
|
652
|
+
borderBottomRightRadius: CssValue<LengthUnit | null>;
|
|
653
|
+
borderBottomLeftRadius: CssValue<LengthUnit | null>;
|
|
654
|
+
borderWidth: CssValue<Sides<LengthUnit>>;
|
|
655
|
+
borderTopWidth: CssValue<LengthUnit | null>;
|
|
656
|
+
borderRightWidth: CssValue<LengthUnit | null>;
|
|
657
|
+
borderBottomWidth: CssValue<LengthUnit | null>;
|
|
658
|
+
borderLeftWidth: CssValue<LengthUnit | null>;
|
|
659
|
+
objectFit: CssValue<ObjectFit>;
|
|
660
|
+
backgroundImage: CssValue<BackgroundImages | null>;
|
|
661
|
+
backgroundPosition: CssValue<BackgroundPositions | null>;
|
|
662
|
+
backgroundSize: CssValue<BackgroundSizes | null>;
|
|
663
|
+
backgroundRepeat: CssValue<BackgroundRepeats | null>;
|
|
664
|
+
backgroundColor: CssValue<Color>;
|
|
665
|
+
boxShadow: CssValue<BoxShadows | null>;
|
|
666
|
+
gridAutoColumns: CssValue<GridTrackSizes | null>;
|
|
667
|
+
gridAutoRows: CssValue<GridTrackSizes | null>;
|
|
668
|
+
gridAutoFlow: CssValue<GridAutoFlow | null>;
|
|
669
|
+
gridColumn: CssValue<GridLine | null>;
|
|
670
|
+
gridRow: CssValue<GridLine | null>;
|
|
671
|
+
gridTemplateColumns: CssValue<GridTemplateComponents | null>;
|
|
672
|
+
gridTemplateRows: CssValue<GridTemplateComponents | null>;
|
|
673
|
+
gridTemplateAreas: CssValue<GridTemplateAreas | null>;
|
|
674
|
+
textOverflow: CssValue<TextOverflow>;
|
|
675
|
+
textTransform: CssValue<TextTransform>;
|
|
676
|
+
fontStyle: CssValue<FontStyle>;
|
|
677
|
+
borderColor: CssValue<Color>;
|
|
678
|
+
color: CssValue<Color>;
|
|
679
|
+
fontSize: CssValue<LengthUnit>;
|
|
680
|
+
fontFamily: CssValue<FontFamily | null>;
|
|
681
|
+
lineHeight: CssValue<LineHeight>;
|
|
682
|
+
fontWeight: CssValue<FontWeight>;
|
|
683
|
+
fontVariationSettings: CssValue<FontVariationSettings | null>;
|
|
684
|
+
fontFeatureSettings: CssValue<FontFeatureSettings | null>;
|
|
685
|
+
lineClamp: CssValue<number | null>;
|
|
686
|
+
textAlign: CssValue<TextAlign>;
|
|
687
|
+
textStrokeWidth: CssValue<LengthUnit>;
|
|
688
|
+
textStrokeColor: CssValue<Color | null>;
|
|
689
|
+
textStroke: CssValue<TextStroke | null>;
|
|
690
|
+
textShadow: CssValue<TextShadows | null>;
|
|
691
|
+
letterSpacing: CssValue<LengthUnit | null>;
|
|
692
|
+
wordSpacing: CssValue<LengthUnit | null>;
|
|
693
|
+
imageRendering: CssValue<ImageScalingAlgorithm>;
|
|
694
|
+
overflowWrap: CssValue<OverflowWrap>;
|
|
695
|
+
wordBreak: CssValue<WordBreak>;
|
|
908
696
|
};
|
|
909
697
|
|
|
910
698
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
@@ -269,7 +269,7 @@ type BoxShadow = {
|
|
|
269
269
|
/**
|
|
270
270
|
* Represents a collection of box shadows, have custom `FromCss` implementation for comma-separated values.
|
|
271
271
|
*/
|
|
272
|
-
type BoxShadows = Array<BoxShadow
|
|
272
|
+
type BoxShadows = Array<BoxShadow> | string;
|
|
273
273
|
|
|
274
274
|
/**
|
|
275
275
|
* Defines how the width and height of an element are calculated.
|
|
@@ -278,6 +278,11 @@ type BoxShadows = Array<BoxShadow>;
|
|
|
278
278
|
*/
|
|
279
279
|
type BoxSizing = "content-box" | "border-box";
|
|
280
280
|
|
|
281
|
+
/**
|
|
282
|
+
* Represents a CSS property value that can be explicitly set, inherited from parent, or reset to initial value.
|
|
283
|
+
*/
|
|
284
|
+
type CssValue<T> = "initial" | "inherit" | T;
|
|
285
|
+
|
|
281
286
|
/**
|
|
282
287
|
* This enum determines the layout algorithm used for the children of a node.
|
|
283
288
|
*/
|
|
@@ -493,7 +498,44 @@ type TextAlign = "left" | "right" | "center" | "justify" | "start" | "end";
|
|
|
493
498
|
*
|
|
494
499
|
* This enum determines how text should be handled when it exceeds the container width.
|
|
495
500
|
*/
|
|
496
|
-
type TextOverflow = "
|
|
501
|
+
type TextOverflow = "clip" | "ellipsis";
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Represents a text shadow with all its properties.
|
|
505
|
+
*/
|
|
506
|
+
type TextShadow = {
|
|
507
|
+
/**
|
|
508
|
+
* Horizontal offset of the shadow.
|
|
509
|
+
*/
|
|
510
|
+
offsetX: LengthUnit;
|
|
511
|
+
/**
|
|
512
|
+
* Vertical offset of the shadow.
|
|
513
|
+
*/
|
|
514
|
+
offsetY: LengthUnit;
|
|
515
|
+
/**
|
|
516
|
+
* Blur radius of the shadow. Higher values create a more blurred shadow.
|
|
517
|
+
*/
|
|
518
|
+
blurRadius: LengthUnit;
|
|
519
|
+
/**
|
|
520
|
+
* Color of the shadow.
|
|
521
|
+
*/
|
|
522
|
+
color: Color;
|
|
523
|
+
} | string;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Represents a collection of text shadows; has custom `FromCss` implementation for comma-separated values.
|
|
527
|
+
*/
|
|
528
|
+
type TextShadows = Array<TextShadow> | string;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Parsed `text-stroke` value.
|
|
532
|
+
*
|
|
533
|
+
* `color` is optional; when absent the element's `color` property should be used.
|
|
534
|
+
*/
|
|
535
|
+
type TextStroke = {
|
|
536
|
+
width: LengthUnit;
|
|
537
|
+
color: Color | null;
|
|
538
|
+
} | string;
|
|
497
539
|
|
|
498
540
|
/**
|
|
499
541
|
* Controls text case transformation when rendering.
|
|
@@ -558,353 +600,99 @@ type Transforms = Array<Transform> | string;
|
|
|
558
600
|
type WordBreak = "normal" | "break-all" | "keep-all";
|
|
559
601
|
|
|
560
602
|
/**
|
|
561
|
-
*
|
|
603
|
+
* Defines the style of an element.
|
|
562
604
|
*/
|
|
563
605
|
type Style = {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
*/
|
|
655
|
-
left?: LengthUnit;
|
|
656
|
-
/**
|
|
657
|
-
* Direction of flex layout (row or column).
|
|
658
|
-
*/
|
|
659
|
-
flexDirection: FlexDirection;
|
|
660
|
-
/**
|
|
661
|
-
* How a single grid item is aligned along the inline (row) axis, overriding the container's justify-items value.
|
|
662
|
-
*/
|
|
663
|
-
justifySelf?: AlignItems;
|
|
664
|
-
/**
|
|
665
|
-
* How items are aligned along the main axis.
|
|
666
|
-
*/
|
|
667
|
-
justifyContent?: JustifyContent;
|
|
668
|
-
/**
|
|
669
|
-
* How lines are aligned within the flex container when there's extra space in the cross axis.
|
|
670
|
-
*/
|
|
671
|
-
alignContent?: JustifyContent;
|
|
672
|
-
/**
|
|
673
|
-
* How grid items are aligned along the inline (row) axis within their grid areas.
|
|
674
|
-
*/
|
|
675
|
-
justifyItems?: AlignItems;
|
|
676
|
-
/**
|
|
677
|
-
* How items are aligned along the cross axis.
|
|
678
|
-
*/
|
|
679
|
-
alignItems?: AlignItems;
|
|
680
|
-
/**
|
|
681
|
-
* How a single item is aligned along the cross axis, overriding the container's align-items value.
|
|
682
|
-
*/
|
|
683
|
-
alignSelf?: AlignItems;
|
|
684
|
-
/**
|
|
685
|
-
* How flex items should wrap.
|
|
686
|
-
*/
|
|
687
|
-
flexWrap: FlexWrap;
|
|
688
|
-
/**
|
|
689
|
-
* The initial main size of the flex item before growing or shrinking.
|
|
690
|
-
*/
|
|
691
|
-
flexBasis: LengthUnit;
|
|
692
|
-
/**
|
|
693
|
-
* Positioning method (relative, absolute, etc.).
|
|
694
|
-
*/
|
|
695
|
-
position: Position;
|
|
696
|
-
/**
|
|
697
|
-
* Transform for the element.
|
|
698
|
-
*/
|
|
699
|
-
transform?: Transforms;
|
|
700
|
-
/**
|
|
701
|
-
* Transform origin for the element.
|
|
702
|
-
*/
|
|
703
|
-
transformOrigin?: BackgroundPosition;
|
|
704
|
-
/**
|
|
705
|
-
* Mask image for the element.
|
|
706
|
-
*/
|
|
707
|
-
maskImage?: BackgroundImages;
|
|
708
|
-
/**
|
|
709
|
-
* Mask size for the element.
|
|
710
|
-
*/
|
|
711
|
-
maskSize?: BackgroundSizes;
|
|
712
|
-
/**
|
|
713
|
-
* Mask position for the element.
|
|
714
|
-
*/
|
|
715
|
-
maskPosition?: BackgroundPositions;
|
|
716
|
-
/**
|
|
717
|
-
* Mask repeat for the element.
|
|
718
|
-
*/
|
|
719
|
-
maskRepeat?: BackgroundRepeats;
|
|
720
|
-
/**
|
|
721
|
-
* Spacing between rows and columns in flex or grid layouts.
|
|
722
|
-
*/
|
|
723
|
-
gap: Gap;
|
|
724
|
-
/**
|
|
725
|
-
* How much the flex item should grow relative to other flex items when positive free space is distributed.
|
|
726
|
-
*/
|
|
727
|
-
flexGrow: number;
|
|
728
|
-
/**
|
|
729
|
-
* How much the flex item should shrink relative to other flex items when negative free space is distributed.
|
|
730
|
-
*/
|
|
731
|
-
flexShrink: number;
|
|
732
|
-
/**
|
|
733
|
-
* Shorthand border radius (top-left, top-right, bottom-right, bottom-left).
|
|
734
|
-
*/
|
|
735
|
-
borderRadius?: Sides<LengthUnit>;
|
|
736
|
-
/**
|
|
737
|
-
* Longhand: top-left border radius. Overrides `border_radius` top-left value.
|
|
738
|
-
*/
|
|
739
|
-
borderTopLeftRadius?: LengthUnit;
|
|
740
|
-
/**
|
|
741
|
-
* Longhand: top-right border radius. Overrides `border_radius` top-right value.
|
|
742
|
-
*/
|
|
743
|
-
borderTopRightRadius?: LengthUnit;
|
|
744
|
-
/**
|
|
745
|
-
* Longhand: bottom-right border radius. Overrides `border_radius` bottom-right value.
|
|
746
|
-
*/
|
|
747
|
-
borderBottomRightRadius?: LengthUnit;
|
|
748
|
-
/**
|
|
749
|
-
* Longhand: bottom-left border radius. Overrides `border_radius` bottom-left value.
|
|
750
|
-
*/
|
|
751
|
-
borderBottomLeftRadius?: LengthUnit;
|
|
752
|
-
/**
|
|
753
|
-
* Width of the element's border on each side (top, right, bottom, left).
|
|
754
|
-
*/
|
|
755
|
-
borderWidth: Sides<LengthUnit>;
|
|
756
|
-
/**
|
|
757
|
-
* Longhand: top border width. Overrides `border_width` top value.
|
|
758
|
-
*/
|
|
759
|
-
borderTopWidth?: LengthUnit;
|
|
760
|
-
/**
|
|
761
|
-
* Longhand: right border width. Overrides `border_width` right value.
|
|
762
|
-
*/
|
|
763
|
-
borderRightWidth?: LengthUnit;
|
|
764
|
-
/**
|
|
765
|
-
* Longhand: bottom border width. Overrides `border_width` bottom value.
|
|
766
|
-
*/
|
|
767
|
-
borderBottomWidth?: LengthUnit;
|
|
768
|
-
/**
|
|
769
|
-
* Longhand: left border width. Overrides `border_width` left value.
|
|
770
|
-
*/
|
|
771
|
-
borderLeftWidth?: LengthUnit;
|
|
772
|
-
/**
|
|
773
|
-
* How images should be fitted within their container.
|
|
774
|
-
*/
|
|
775
|
-
objectFit: ObjectFit;
|
|
776
|
-
/**
|
|
777
|
-
* Background image(s): linear or radial gradients.
|
|
778
|
-
*/
|
|
779
|
-
backgroundImage?: BackgroundImages;
|
|
780
|
-
/**
|
|
781
|
-
* Background positions per layer.
|
|
782
|
-
*/
|
|
783
|
-
backgroundPosition?: BackgroundPositions;
|
|
784
|
-
/**
|
|
785
|
-
* Background sizes per layer.
|
|
786
|
-
*/
|
|
787
|
-
backgroundSize?: BackgroundSizes;
|
|
788
|
-
/**
|
|
789
|
-
* Background repeat per layer.
|
|
790
|
-
*/
|
|
791
|
-
backgroundRepeat?: BackgroundRepeats;
|
|
792
|
-
/**
|
|
793
|
-
* Background color for the element.
|
|
794
|
-
*/
|
|
795
|
-
backgroundColor?: Color;
|
|
796
|
-
/**
|
|
797
|
-
* Box shadow effect for the element.
|
|
798
|
-
*/
|
|
799
|
-
boxShadow?: BoxShadows;
|
|
800
|
-
/**
|
|
801
|
-
* Controls the size of implicitly-created grid columns.
|
|
802
|
-
*/
|
|
803
|
-
gridAutoColumns?: GridTrackSizes;
|
|
804
|
-
/**
|
|
805
|
-
* Controls the size of implicitly-created grid rows.
|
|
806
|
-
*/
|
|
807
|
-
gridAutoRows?: GridTrackSizes;
|
|
808
|
-
/**
|
|
809
|
-
* Controls how auto-placed items are inserted in the grid.
|
|
810
|
-
*/
|
|
811
|
-
gridAutoFlow?: GridAutoFlow;
|
|
812
|
-
/**
|
|
813
|
-
* Specifies a grid item's size and location within the grid column.
|
|
814
|
-
*/
|
|
815
|
-
gridColumn?: GridLine;
|
|
816
|
-
/**
|
|
817
|
-
* Specifies a grid item's size and location within the grid row.
|
|
818
|
-
*/
|
|
819
|
-
gridRow?: GridLine;
|
|
820
|
-
/**
|
|
821
|
-
* Defines the line names and track sizing functions of the grid columns.
|
|
822
|
-
*/
|
|
823
|
-
gridTemplateColumns?: GridTemplateComponents;
|
|
824
|
-
/**
|
|
825
|
-
* Defines the line names and track sizing functions of the grid rows.
|
|
826
|
-
*/
|
|
827
|
-
gridTemplateRows?: GridTemplateComponents;
|
|
828
|
-
/**
|
|
829
|
-
* Defines named grid areas specified via `grid-template-areas`.
|
|
830
|
-
*/
|
|
831
|
-
gridTemplateAreas?: GridTemplateAreas;
|
|
832
|
-
/**
|
|
833
|
-
* How the width and height of an element are calculated.
|
|
834
|
-
*/
|
|
835
|
-
boxSizing?: BoxSizing;
|
|
836
|
-
/**
|
|
837
|
-
* How text should be overflowed.
|
|
838
|
-
*/
|
|
839
|
-
textOverflow?: TextOverflow;
|
|
840
|
-
/**
|
|
841
|
-
* Controls text case transformation when rendering.
|
|
842
|
-
*/
|
|
843
|
-
textTransform?: TextTransform;
|
|
844
|
-
/**
|
|
845
|
-
* Font slant style (normal, italic, oblique).
|
|
846
|
-
*/
|
|
847
|
-
fontStyle?: FontStyle;
|
|
848
|
-
/**
|
|
849
|
-
* Color of the element's border.
|
|
850
|
-
*/
|
|
851
|
-
borderColor?: Color;
|
|
852
|
-
/**
|
|
853
|
-
* Text color for child text elements.
|
|
854
|
-
*/
|
|
855
|
-
color?: Color;
|
|
856
|
-
/**
|
|
857
|
-
* Font size for text rendering.
|
|
858
|
-
*/
|
|
859
|
-
fontSize?: LengthUnit;
|
|
860
|
-
/**
|
|
861
|
-
* Font family name for text rendering.
|
|
862
|
-
*/
|
|
863
|
-
fontFamily?: FontFamily;
|
|
864
|
-
/**
|
|
865
|
-
* Line height for text spacing, number is em.
|
|
866
|
-
*/
|
|
867
|
-
lineHeight?: LineHeight;
|
|
868
|
-
/**
|
|
869
|
-
* Font weight for text rendering.
|
|
870
|
-
*/
|
|
871
|
-
fontWeight?: FontWeight;
|
|
872
|
-
/**
|
|
873
|
-
* Controls variable font axis values via CSS font-variation-settings property.
|
|
874
|
-
*/
|
|
875
|
-
fontVariationSettings?: FontVariationSettings;
|
|
876
|
-
/**
|
|
877
|
-
* Controls OpenType font features via CSS font-feature-settings property.
|
|
878
|
-
*/
|
|
879
|
-
fontFeatureSettings?: FontFeatureSettings;
|
|
880
|
-
/**
|
|
881
|
-
* Maximum number of lines for text before truncation.
|
|
882
|
-
*/
|
|
883
|
-
lineClamp?: number;
|
|
884
|
-
/**
|
|
885
|
-
* Text alignment within the element.
|
|
886
|
-
*/
|
|
887
|
-
textAlign?: TextAlign;
|
|
888
|
-
/**
|
|
889
|
-
* Additional spacing between characters in text.
|
|
890
|
-
*/
|
|
891
|
-
letterSpacing?: LengthUnit;
|
|
892
|
-
/**
|
|
893
|
-
* Additional spacing between words in text.
|
|
894
|
-
*/
|
|
895
|
-
wordSpacing?: LengthUnit;
|
|
896
|
-
/**
|
|
897
|
-
* Controls how images are scaled when rendered.
|
|
898
|
-
*/
|
|
899
|
-
imageRendering?: ImageScalingAlgorithm;
|
|
900
|
-
/**
|
|
901
|
-
* How text should be overflowed.
|
|
902
|
-
*/
|
|
903
|
-
overflowWrap?: OverflowWrap;
|
|
904
|
-
/**
|
|
905
|
-
* How text should be broken at word boundaries.
|
|
906
|
-
*/
|
|
907
|
-
wordBreak?: WordBreak;
|
|
606
|
+
boxSizing: CssValue<BoxSizing>;
|
|
607
|
+
display: CssValue<Display>;
|
|
608
|
+
width: CssValue<LengthUnit>;
|
|
609
|
+
height: CssValue<LengthUnit>;
|
|
610
|
+
maxWidth: CssValue<LengthUnit>;
|
|
611
|
+
maxHeight: CssValue<LengthUnit>;
|
|
612
|
+
minWidth: CssValue<LengthUnit>;
|
|
613
|
+
minHeight: CssValue<LengthUnit>;
|
|
614
|
+
aspectRatio: CssValue<number | null>;
|
|
615
|
+
padding: CssValue<Sides<LengthUnit>>;
|
|
616
|
+
paddingTop: CssValue<LengthUnit | null>;
|
|
617
|
+
paddingRight: CssValue<LengthUnit | null>;
|
|
618
|
+
paddingBottom: CssValue<LengthUnit | null>;
|
|
619
|
+
paddingLeft: CssValue<LengthUnit | null>;
|
|
620
|
+
margin: CssValue<Sides<LengthUnit>>;
|
|
621
|
+
marginTop: CssValue<LengthUnit | null>;
|
|
622
|
+
marginRight: CssValue<LengthUnit | null>;
|
|
623
|
+
marginBottom: CssValue<LengthUnit | null>;
|
|
624
|
+
marginLeft: CssValue<LengthUnit | null>;
|
|
625
|
+
inset: CssValue<Sides<LengthUnit>>;
|
|
626
|
+
top: CssValue<LengthUnit | null>;
|
|
627
|
+
right: CssValue<LengthUnit | null>;
|
|
628
|
+
bottom: CssValue<LengthUnit | null>;
|
|
629
|
+
left: CssValue<LengthUnit | null>;
|
|
630
|
+
flexDirection: CssValue<FlexDirection>;
|
|
631
|
+
justifySelf: CssValue<AlignItems | null>;
|
|
632
|
+
justifyContent: CssValue<JustifyContent | null>;
|
|
633
|
+
alignContent: CssValue<JustifyContent | null>;
|
|
634
|
+
justifyItems: CssValue<AlignItems | null>;
|
|
635
|
+
alignItems: CssValue<AlignItems | null>;
|
|
636
|
+
alignSelf: CssValue<AlignItems | null>;
|
|
637
|
+
flexWrap: CssValue<FlexWrap>;
|
|
638
|
+
flexBasis: CssValue<LengthUnit>;
|
|
639
|
+
position: CssValue<Position>;
|
|
640
|
+
transform: CssValue<Transforms | null>;
|
|
641
|
+
transformOrigin: CssValue<BackgroundPosition | null>;
|
|
642
|
+
maskImage: CssValue<BackgroundImages | null>;
|
|
643
|
+
maskSize: CssValue<BackgroundSizes | null>;
|
|
644
|
+
maskPosition: CssValue<BackgroundPositions | null>;
|
|
645
|
+
maskRepeat: CssValue<BackgroundRepeats | null>;
|
|
646
|
+
gap: CssValue<Gap>;
|
|
647
|
+
flexGrow: CssValue<number>;
|
|
648
|
+
flexShrink: CssValue<number>;
|
|
649
|
+
borderRadius: CssValue<Sides<LengthUnit>>;
|
|
650
|
+
borderTopLeftRadius: CssValue<LengthUnit | null>;
|
|
651
|
+
borderTopRightRadius: CssValue<LengthUnit | null>;
|
|
652
|
+
borderBottomRightRadius: CssValue<LengthUnit | null>;
|
|
653
|
+
borderBottomLeftRadius: CssValue<LengthUnit | null>;
|
|
654
|
+
borderWidth: CssValue<Sides<LengthUnit>>;
|
|
655
|
+
borderTopWidth: CssValue<LengthUnit | null>;
|
|
656
|
+
borderRightWidth: CssValue<LengthUnit | null>;
|
|
657
|
+
borderBottomWidth: CssValue<LengthUnit | null>;
|
|
658
|
+
borderLeftWidth: CssValue<LengthUnit | null>;
|
|
659
|
+
objectFit: CssValue<ObjectFit>;
|
|
660
|
+
backgroundImage: CssValue<BackgroundImages | null>;
|
|
661
|
+
backgroundPosition: CssValue<BackgroundPositions | null>;
|
|
662
|
+
backgroundSize: CssValue<BackgroundSizes | null>;
|
|
663
|
+
backgroundRepeat: CssValue<BackgroundRepeats | null>;
|
|
664
|
+
backgroundColor: CssValue<Color>;
|
|
665
|
+
boxShadow: CssValue<BoxShadows | null>;
|
|
666
|
+
gridAutoColumns: CssValue<GridTrackSizes | null>;
|
|
667
|
+
gridAutoRows: CssValue<GridTrackSizes | null>;
|
|
668
|
+
gridAutoFlow: CssValue<GridAutoFlow | null>;
|
|
669
|
+
gridColumn: CssValue<GridLine | null>;
|
|
670
|
+
gridRow: CssValue<GridLine | null>;
|
|
671
|
+
gridTemplateColumns: CssValue<GridTemplateComponents | null>;
|
|
672
|
+
gridTemplateRows: CssValue<GridTemplateComponents | null>;
|
|
673
|
+
gridTemplateAreas: CssValue<GridTemplateAreas | null>;
|
|
674
|
+
textOverflow: CssValue<TextOverflow>;
|
|
675
|
+
textTransform: CssValue<TextTransform>;
|
|
676
|
+
fontStyle: CssValue<FontStyle>;
|
|
677
|
+
borderColor: CssValue<Color>;
|
|
678
|
+
color: CssValue<Color>;
|
|
679
|
+
fontSize: CssValue<LengthUnit>;
|
|
680
|
+
fontFamily: CssValue<FontFamily | null>;
|
|
681
|
+
lineHeight: CssValue<LineHeight>;
|
|
682
|
+
fontWeight: CssValue<FontWeight>;
|
|
683
|
+
fontVariationSettings: CssValue<FontVariationSettings | null>;
|
|
684
|
+
fontFeatureSettings: CssValue<FontFeatureSettings | null>;
|
|
685
|
+
lineClamp: CssValue<number | null>;
|
|
686
|
+
textAlign: CssValue<TextAlign>;
|
|
687
|
+
textStrokeWidth: CssValue<LengthUnit>;
|
|
688
|
+
textStrokeColor: CssValue<Color | null>;
|
|
689
|
+
textStroke: CssValue<TextStroke | null>;
|
|
690
|
+
textShadow: CssValue<TextShadows | null>;
|
|
691
|
+
letterSpacing: CssValue<LengthUnit | null>;
|
|
692
|
+
wordSpacing: CssValue<LengthUnit | null>;
|
|
693
|
+
imageRendering: CssValue<ImageScalingAlgorithm>;
|
|
694
|
+
overflowWrap: CssValue<OverflowWrap>;
|
|
695
|
+
wordBreak: CssValue<WordBreak>;
|
|
908
696
|
};
|
|
909
697
|
|
|
910
698
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takumi-rs/helpers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"email": "me@kane.tw",
|
|
6
6
|
"name": "Kane Wang",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/bun": "^1.2.21",
|
|
14
|
-
"@types/react": "^19.1.
|
|
14
|
+
"@types/react": "^19.1.13",
|
|
15
15
|
"@types/react-dom": "^19.1.9",
|
|
16
16
|
"bun-plugin-dts": "^0.3.0",
|
|
17
|
-
"lucide-react": "^0.
|
|
17
|
+
"lucide-react": "^0.544.0",
|
|
18
18
|
"react": "^19.1.1",
|
|
19
19
|
"react-dom": "^19.1.1",
|
|
20
20
|
"tsup": "^8.5.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"README.md",
|
|
41
41
|
"tsconfig.json"
|
|
42
42
|
],
|
|
43
|
-
"license": "MIT",
|
|
43
|
+
"license": "(MIT OR Apache-2.0)",
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsup-node src/index.ts src/jsx/jsx.ts --minify --dts --format esm,cjs --no-splitting"
|
|
46
46
|
},
|