@entur/tokens 3.15.0 → 3.15.1
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/tokens.esm.js
CHANGED
|
@@ -3585,38 +3585,70 @@ var blue20Rgb = /*#__PURE__*/hexRgb(colors.blues.blue20, {
|
|
|
3585
3585
|
// Dimensions
|
|
3586
3586
|
var spaceScale = [0, 4, 8, 12, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96];
|
|
3587
3587
|
var space = {
|
|
3588
|
+
/** 0px */
|
|
3588
3589
|
none: spaceScale[0],
|
|
3590
|
+
/** 16px (1rem) */
|
|
3589
3591
|
"default": spaceScale[4],
|
|
3592
|
+
/** 4px (0.25rem) */
|
|
3590
3593
|
extraSmall2: spaceScale[1],
|
|
3594
|
+
/** 8px (0.5rem) */
|
|
3591
3595
|
extraSmall: spaceScale[2],
|
|
3596
|
+
/** 12px (0.75rem) */
|
|
3592
3597
|
small: spaceScale[3],
|
|
3598
|
+
/** 16px (1rem) */
|
|
3593
3599
|
medium: spaceScale[4],
|
|
3600
|
+
/** 24px (1.5rem) */
|
|
3594
3601
|
large: spaceScale[5],
|
|
3602
|
+
/** 32px (2rem) */
|
|
3595
3603
|
extraLarge: spaceScale[6],
|
|
3604
|
+
/** 40px (2.5rem) */
|
|
3596
3605
|
extraLarge2: spaceScale[7],
|
|
3606
|
+
/** 48px (3rem) */
|
|
3597
3607
|
extraLarge3: spaceScale[8],
|
|
3608
|
+
/** 56px (3.5rem) */
|
|
3598
3609
|
extraLarge4: spaceScale[9],
|
|
3610
|
+
/** 64px (4rem) */
|
|
3599
3611
|
extraLarge5: spaceScale[10],
|
|
3612
|
+
/** 72px (4.5rem) */
|
|
3600
3613
|
extraLarge6: spaceScale[11],
|
|
3614
|
+
/** 80px (5rem) */
|
|
3601
3615
|
extraLarge7: spaceScale[12],
|
|
3616
|
+
/** 88px (5.5rem) */
|
|
3602
3617
|
extraLarge8: spaceScale[13],
|
|
3618
|
+
/** 96px (6rem) */
|
|
3603
3619
|
extraLarge9: spaceScale[14],
|
|
3604
3620
|
rem: {
|
|
3621
|
+
/** 0rem (0px) */
|
|
3605
3622
|
none: /*#__PURE__*/pxToRem(spaceScale[0]),
|
|
3623
|
+
/** 1rem (16px) */
|
|
3606
3624
|
"default": /*#__PURE__*/pxToRem(spaceScale[4]),
|
|
3625
|
+
/** 0.25rem (4px) */
|
|
3607
3626
|
extraSmall2: /*#__PURE__*/pxToRem(spaceScale[1]),
|
|
3627
|
+
/** 0.5rem (8px) */
|
|
3608
3628
|
extraSmall: /*#__PURE__*/pxToRem(spaceScale[2]),
|
|
3629
|
+
/** 0.75rem (12px) */
|
|
3609
3630
|
small: /*#__PURE__*/pxToRem(spaceScale[3]),
|
|
3631
|
+
/** 1rem (16px) */
|
|
3610
3632
|
medium: /*#__PURE__*/pxToRem(spaceScale[4]),
|
|
3633
|
+
/** 1.5rem (24px) */
|
|
3611
3634
|
large: /*#__PURE__*/pxToRem(spaceScale[5]),
|
|
3635
|
+
/** 2rem (32px) */
|
|
3612
3636
|
extraLarge: /*#__PURE__*/pxToRem(spaceScale[6]),
|
|
3637
|
+
/** 2.5rem (40px) */
|
|
3613
3638
|
extraLarge2: /*#__PURE__*/pxToRem(spaceScale[7]),
|
|
3639
|
+
/** 3rem (48px) */
|
|
3614
3640
|
extraLarge3: /*#__PURE__*/pxToRem(spaceScale[8]),
|
|
3641
|
+
/** 3.5rem (56px) */
|
|
3615
3642
|
extraLarge4: /*#__PURE__*/pxToRem(spaceScale[9]),
|
|
3643
|
+
/** 4rem (64px) */
|
|
3616
3644
|
extraLarge5: /*#__PURE__*/pxToRem(spaceScale[10]),
|
|
3645
|
+
/** 4.5rem (72px) */
|
|
3617
3646
|
extraLarge6: /*#__PURE__*/pxToRem(spaceScale[11]),
|
|
3647
|
+
/** 5rem (80px) */
|
|
3618
3648
|
extraLarge7: /*#__PURE__*/pxToRem(spaceScale[12]),
|
|
3649
|
+
/** 5.5rem (88px) */
|
|
3619
3650
|
extraLarge8: /*#__PURE__*/pxToRem(spaceScale[13]),
|
|
3651
|
+
/** 6rem (96px) */
|
|
3620
3652
|
extraLarge9: /*#__PURE__*/pxToRem(spaceScale[14])
|
|
3621
3653
|
}
|
|
3622
3654
|
};
|
|
@@ -3627,51 +3659,91 @@ var fontWeights = {
|
|
|
3627
3659
|
};
|
|
3628
3660
|
var fontSizeScale = [10, 12, 14, 16, 20, 24, 28, 32, 40];
|
|
3629
3661
|
var fontSizes = {
|
|
3662
|
+
/** 10px (0.625rem) */
|
|
3630
3663
|
extraSmall: fontSizeScale[0],
|
|
3664
|
+
/** 12px (0.75rem) */
|
|
3631
3665
|
small: fontSizeScale[1],
|
|
3666
|
+
/** 14px (0.875rem) */
|
|
3632
3667
|
medium: fontSizeScale[2],
|
|
3668
|
+
/** 16px (1rem) */
|
|
3633
3669
|
large: fontSizeScale[3],
|
|
3670
|
+
/** 20 px (1.25rem) */
|
|
3634
3671
|
extraLarge: fontSizeScale[4],
|
|
3672
|
+
/** 24 px (1.5rem) */
|
|
3635
3673
|
extraLarge2: fontSizeScale[5],
|
|
3674
|
+
/** 28 px (1.75rem) */
|
|
3636
3675
|
extraLarge3: fontSizeScale[6],
|
|
3676
|
+
/** 32 px (2rem) */
|
|
3637
3677
|
extraLarge4: fontSizeScale[7],
|
|
3678
|
+
/** 40 px (2.5rem) */
|
|
3638
3679
|
extraLarge5: fontSizeScale[8],
|
|
3639
3680
|
rem: {
|
|
3681
|
+
/** 0.625rem (10px) */
|
|
3640
3682
|
extraSmall: /*#__PURE__*/pxToRem(fontSizeScale[0]),
|
|
3683
|
+
/** 0.75rem (12px) */
|
|
3641
3684
|
small: /*#__PURE__*/pxToRem(fontSizeScale[1]),
|
|
3685
|
+
/** 0.875rem (14px) */
|
|
3642
3686
|
medium: /*#__PURE__*/pxToRem(fontSizeScale[2]),
|
|
3687
|
+
/** 1rem (16px) */
|
|
3643
3688
|
large: /*#__PURE__*/pxToRem(fontSizeScale[3]),
|
|
3689
|
+
/** 1.25rem (20px) */
|
|
3644
3690
|
extraLarge: /*#__PURE__*/pxToRem(fontSizeScale[4]),
|
|
3691
|
+
/** 1.5rem (24px) */
|
|
3645
3692
|
extraLarge2: /*#__PURE__*/pxToRem(fontSizeScale[5]),
|
|
3693
|
+
/** 1.75rem (28px) */
|
|
3646
3694
|
extraLarge3: /*#__PURE__*/pxToRem(fontSizeScale[6]),
|
|
3695
|
+
/** 2rem (32px) */
|
|
3647
3696
|
extraLarge4: /*#__PURE__*/pxToRem(fontSizeScale[7]),
|
|
3697
|
+
/** 2.5rem (40px) */
|
|
3648
3698
|
extraLarge5: /*#__PURE__*/pxToRem(fontSizeScale[8])
|
|
3649
3699
|
}
|
|
3650
3700
|
};
|
|
3651
3701
|
var lineHeightScale = [14, 16, 20, 22, 24, 28, 30, 36, 42, 48, 60];
|
|
3652
3702
|
var lineHeights = {
|
|
3703
|
+
/** 14px (0.875rem) */
|
|
3653
3704
|
extraSmall: lineHeightScale[0],
|
|
3705
|
+
/** 16px (1rem) */
|
|
3654
3706
|
small: lineHeightScale[1],
|
|
3707
|
+
/** 20px (1.25rem) */
|
|
3655
3708
|
medium: lineHeightScale[2],
|
|
3709
|
+
/** 22px (1.375rem) */
|
|
3656
3710
|
large: lineHeightScale[3],
|
|
3711
|
+
/** 24px (1.5rem) */
|
|
3657
3712
|
extraLarge: lineHeightScale[4],
|
|
3713
|
+
/** 28px (1.75rem) */
|
|
3658
3714
|
extraLarge2: lineHeightScale[5],
|
|
3715
|
+
/** 30px (1.875rem) */
|
|
3659
3716
|
extraLarge3: lineHeightScale[6],
|
|
3717
|
+
/** 36px (2.25rem) */
|
|
3660
3718
|
extraLarge4: lineHeightScale[7],
|
|
3719
|
+
/** 42px (2.625rem) */
|
|
3661
3720
|
extraLarge5: lineHeightScale[8],
|
|
3721
|
+
/** 48px (3rem) */
|
|
3662
3722
|
extraLarge6: lineHeightScale[9],
|
|
3723
|
+
/** 60px (3.75rem) */
|
|
3663
3724
|
extraLarge7: lineHeightScale[10],
|
|
3664
3725
|
rem: {
|
|
3726
|
+
/** 0.875rem (14px) */
|
|
3665
3727
|
extraSmall: /*#__PURE__*/pxToRem(lineHeightScale[0]),
|
|
3728
|
+
/** 1rem (16px) */
|
|
3666
3729
|
small: /*#__PURE__*/pxToRem(lineHeightScale[1]),
|
|
3730
|
+
/** 1.25rem (20px) */
|
|
3667
3731
|
medium: /*#__PURE__*/pxToRem(lineHeightScale[2]),
|
|
3732
|
+
/** 1.375rem (22px) */
|
|
3668
3733
|
large: /*#__PURE__*/pxToRem(lineHeightScale[3]),
|
|
3734
|
+
/** 1.5rem (24px) */
|
|
3669
3735
|
extraLarge: /*#__PURE__*/pxToRem(lineHeightScale[4]),
|
|
3736
|
+
/** 1.75rem (28px) */
|
|
3670
3737
|
extraLarge2: /*#__PURE__*/pxToRem(lineHeightScale[5]),
|
|
3738
|
+
/** 1.875rem (30px) */
|
|
3671
3739
|
extraLarge3: /*#__PURE__*/pxToRem(lineHeightScale[6]),
|
|
3740
|
+
/** 2.25rem (36px) */
|
|
3672
3741
|
extraLarge4: /*#__PURE__*/pxToRem(lineHeightScale[7]),
|
|
3742
|
+
/** 2.625rem (42px) */
|
|
3673
3743
|
extraLarge5: /*#__PURE__*/pxToRem(lineHeightScale[8]),
|
|
3744
|
+
/** 3rem (48px) */
|
|
3674
3745
|
extraLarge6: /*#__PURE__*/pxToRem(lineHeightScale[9]),
|
|
3746
|
+
/** 3.75rem (60px) */
|
|
3675
3747
|
extraLarge7: /*#__PURE__*/pxToRem(lineHeightScale[10])
|
|
3676
3748
|
}
|
|
3677
3749
|
};
|
|
@@ -3687,27 +3759,43 @@ var breakpoints = {
|
|
|
3687
3759
|
// Borders
|
|
3688
3760
|
var borderWidthScale = [1, 2, 4];
|
|
3689
3761
|
var borderWidths = {
|
|
3762
|
+
/** 2px (0.125rem) */
|
|
3690
3763
|
"default": borderWidthScale[1],
|
|
3764
|
+
/** 1px (0.0625rem) */
|
|
3691
3765
|
small: borderWidthScale[0],
|
|
3766
|
+
/** 2px (0.125rem) */
|
|
3692
3767
|
medium: borderWidthScale[1],
|
|
3768
|
+
/** 4px (0.25rem) */
|
|
3693
3769
|
large: borderWidthScale[2],
|
|
3694
3770
|
rem: {
|
|
3771
|
+
/** 0.125rem (2px) */
|
|
3695
3772
|
"default": /*#__PURE__*/pxToRem(borderWidthScale[1]),
|
|
3773
|
+
/** 0.0625rem (1px) */
|
|
3696
3774
|
small: /*#__PURE__*/pxToRem(borderWidthScale[0]),
|
|
3775
|
+
/** 0.125rem (2px) */
|
|
3697
3776
|
medium: /*#__PURE__*/pxToRem(borderWidthScale[1]),
|
|
3777
|
+
/** 0.25rem (4px) */
|
|
3698
3778
|
large: /*#__PURE__*/pxToRem(borderWidthScale[2])
|
|
3699
3779
|
}
|
|
3700
3780
|
};
|
|
3701
3781
|
var borderRadiusScale = [1, 4, 8];
|
|
3702
3782
|
var borderRadiuses = {
|
|
3783
|
+
/** 1 px (0.0625rem) */
|
|
3703
3784
|
"default": borderRadiusScale[0],
|
|
3785
|
+
/** 1 px (0.0625rem) */
|
|
3704
3786
|
small: borderRadiusScale[0],
|
|
3787
|
+
/** 4 px (0.25rem) */
|
|
3705
3788
|
medium: borderRadiusScale[1],
|
|
3789
|
+
/** 8 px (0.5rem) */
|
|
3706
3790
|
large: borderRadiusScale[2],
|
|
3707
3791
|
rem: {
|
|
3792
|
+
/** 0.0625rem (1px) */
|
|
3708
3793
|
"default": /*#__PURE__*/pxToRem(borderRadiusScale[0]),
|
|
3794
|
+
/** 0.0625rem (1px) */
|
|
3709
3795
|
small: /*#__PURE__*/pxToRem(borderRadiusScale[0]),
|
|
3796
|
+
/** 0.25rem (4px) */
|
|
3710
3797
|
medium: /*#__PURE__*/pxToRem(borderRadiusScale[1]),
|
|
3798
|
+
/** 0.5rem (8px) */
|
|
3711
3799
|
large: /*#__PURE__*/pxToRem(borderRadiusScale[2])
|
|
3712
3800
|
}
|
|
3713
3801
|
};
|
|
@@ -3734,8 +3822,11 @@ var zIndexes = {
|
|
|
3734
3822
|
};
|
|
3735
3823
|
var timingScale = ['0.1s', '0.2s', '0.5s'];
|
|
3736
3824
|
var timings = {
|
|
3825
|
+
/** 0.1s */
|
|
3737
3826
|
fast: timingScale[0],
|
|
3827
|
+
/** 0.2s */
|
|
3738
3828
|
medium: timingScale[1],
|
|
3829
|
+
/** 0.5s */
|
|
3739
3830
|
slow: timingScale[2]
|
|
3740
3831
|
};
|
|
3741
3832
|
var outlines = {
|
|
@@ -3744,8 +3835,10 @@ var outlines = {
|
|
|
3744
3835
|
};
|
|
3745
3836
|
var outlineOffsetsConstants = [2];
|
|
3746
3837
|
var outlineOffsets = {
|
|
3838
|
+
/** 2px (0.125rem) */
|
|
3747
3839
|
focus: outlineOffsetsConstants[0],
|
|
3748
3840
|
rem: {
|
|
3841
|
+
/** 0.125rem (2px) */
|
|
3749
3842
|
focus: /*#__PURE__*/pxToRem(outlineOffsetsConstants[0])
|
|
3750
3843
|
}
|
|
3751
3844
|
};
|