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