@progress/kendo-theme-core 8.0.0-dev.0 → 8.0.0-dev.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/all.css CHANGED
@@ -11,17 +11,6 @@
11
11
  opacity: 0;
12
12
  }
13
13
 
14
- .k-body {
15
- font-size: var(--kendo-font-size, inherit);
16
- font-family: var(--kendo-font-family, inherit);
17
- line-height: var(--kendo-line-height, normal);
18
- font-weight: var(--kendo-font-weight, normal);
19
- letter-spacing: var(--kendo-letter-spacing, normal);
20
- color: var(--kendo-body-text, initial);
21
- background-color: var(--kendo-body-bg, initial);
22
- margin: 0;
23
- }
24
-
25
14
  .k-hstack, .k-hbox {
26
15
  display: flex;
27
16
  flex-flow: row nowrap;
@@ -122,7 +111,7 @@ script {
122
111
  }
123
112
 
124
113
  .k-hr {
125
- margin-block: 1rem;
114
+ margin-block: var(--kendo-spacing-4, 1rem);
126
115
  padding: 0;
127
116
  height: 0;
128
117
  border-width: 1px 0 0;
package/dist/all.scss CHANGED
@@ -3604,16 +3604,6 @@ $_kendo-imported-modules: () !default;
3604
3604
  }
3605
3605
  }
3606
3606
 
3607
- // #endregion
3608
- // #region @import "./_typography.scss"; -> scss/mixins/_typography.scss
3609
- @mixin typography( $font-size: null, $font-family: null, $line-height: null, $font-weight: null, $letter-spacing: null ) {
3610
- font-size: $font-size;
3611
- font-family: $font-family;
3612
- line-height: $line-height;
3613
- font-weight: $font-weight;
3614
- letter-spacing: $letter-spacing;
3615
- }
3616
-
3617
3607
  // #endregion
3618
3608
 
3619
3609
  @mixin background-image( $background-image: null ) {
@@ -4341,21 +4331,6 @@ $_imported: () !default;
4341
4331
  // #endregion
4342
4332
  // #region @import "./_layout.scss"; -> scss/styles/_layout.scss
4343
4333
  @mixin kendo-core--styles--layout() {
4344
- .k-body {
4345
- @include typography(
4346
- var( --kendo-font-size, inherit ),
4347
- var( --kendo-font-family, inherit ),
4348
- var( --kendo-line-height, normal ),
4349
- var( --kendo-font-weight, normal ),
4350
- var( --kendo-letter-spacing, normal ),
4351
- );
4352
- @include fill(
4353
- var( --kendo-body-text, initial ),
4354
- var( --kendo-body-bg, initial )
4355
- );
4356
- margin: 0;
4357
- }
4358
-
4359
4334
  // Basic layout
4360
4335
  .k-hstack {
4361
4336
  display: flex;
@@ -4488,7 +4463,7 @@ $_imported: () !default;
4488
4463
 
4489
4464
  // Horizontal line
4490
4465
  .k-hr {
4491
- margin-block: k-map-get( $kendo-spacing, 4 );
4466
+ margin-block: k-spacing(4);
4492
4467
  padding: 0;
4493
4468
  height: 0;
4494
4469
  border-width: 1px 0 0;
@@ -4603,6 +4578,7 @@ $_imported: () !default;
4603
4578
  inset-inline-end: 0;
4604
4579
  }
4605
4580
  }
4581
+
4606
4582
  // #endregion
4607
4583
  // #region @import "./_loading.scss"; -> scss/styles/_loading.scss
4608
4584
  @mixin kendo-core--styles--loading() {
@@ -4854,27 +4830,253 @@ $kendo-elevation: k-map-merge($_default-elevation, $kendo-elevation);
4854
4830
  }
4855
4831
 
4856
4832
  // #endregion
4857
- // #region @import "./_variables.scss"; -> scss/_variables.scss
4858
- // #region @import "./functions/index.import.scss"; -> scss/functions/index.import.scss
4833
+ // #region @import "./typography/index.import.scss"; -> scss/typography/index.import.scss
4834
+ // #region @import "../functions/index.import.scss"; -> scss/functions/index.import.scss
4859
4835
  // File already imported_once. Skipping output.
4860
4836
  // #endregion
4861
4837
 
4862
- // Options
4863
- $kendo-enable-shadows: true !default;
4864
- $kendo-enable-rounded: true !default;
4865
- $kendo-enable-gradients: true !default;
4866
- $kendo-enable-transitions: true !default;
4838
+ /// The base font size across all components.
4839
+ /// @group typography
4840
+ $kendo-font-size: 0.875rem !default;
4841
+ /// The extra extra small font size across all components.
4842
+ /// @group typography
4843
+ $kendo-font-size-xxs: 0.5rem !default;
4844
+ /// The extra small font size across all components.
4845
+ /// @group typography
4846
+ $kendo-font-size-xs: 0.625rem !default;
4847
+ /// The small font size across all components.
4848
+ /// @group typography
4849
+ $kendo-font-size-sm: 0.75rem !default;
4850
+ /// The medium font size across all components.
4851
+ /// @group typography
4852
+ $kendo-font-size-md: $kendo-font-size !default;
4853
+ /// The large font size across all components.
4854
+ /// @group typography
4855
+ $kendo-font-size-lg: 1rem !default;
4856
+ /// The extra large font size across all components.
4857
+ /// @group typography
4858
+ $kendo-font-size-xl: 1.25rem !default;
4859
+
4860
+ /// The base line height across all components.
4861
+ /// @group typography
4862
+ $kendo-line-height: k-math-div( 20, 14 ) !default;
4863
+ /// The extra small line height across all components.
4864
+ /// @group typography
4865
+ $kendo-line-height-xs: 1 !default;
4866
+ /// The small line height across all components.
4867
+ $kendo-line-height-sm: 1.25 !default;
4868
+ /// The medium line height across all components.
4869
+ /// @group typography
4870
+ $kendo-line-height-md: $kendo-line-height !default;
4871
+ /// The large line height across all components.
4872
+ /// @group typography
4873
+ $kendo-line-height-lg: 1.5 !default;
4874
+ /// The base line height in ems across all components.
4875
+ /// @group typography
4876
+ $kendo-line-height-em: calc( #{$kendo-line-height-md} * 1em ) !default;
4877
+
4878
+ /// The base font weight across all components.
4879
+ /// @group typography
4880
+ $kendo-font-weight: 400 !default;
4881
+ /// The thin font weight across all components.
4882
+ /// @group typography
4883
+ $kendo-font-weight-thin: 100 !default;
4884
+ /// The extra light font weight across all components.
4885
+ /// @group typography
4886
+ $kendo-font-weight-extra-light: 200 !default;
4887
+ /// The light font weight across all components.
4888
+ /// @group typography
4889
+ $kendo-font-weight-light: 300 !default;
4890
+ /// The normal font weight across all components.
4891
+ /// @group typography
4892
+ $kendo-font-weight-normal: $kendo-font-weight !default;
4893
+ /// The medium font weight across all components.
4894
+ /// @group typography
4895
+ $kendo-font-weight-medium: 500 !default;
4896
+ /// The semibold font weight across all components.
4897
+ /// @group typography
4898
+ $kendo-font-weight-semibold: 600 !default;
4899
+ /// The bold font weight across all components.
4900
+ /// @group typography
4901
+ $kendo-font-weight-bold: 700 !default;
4902
+ /// The extra bold font weight across all components.
4903
+ /// @group typography
4904
+ $kendo-font-weight-extra-bold: 800 !default;
4905
+ /// The most pronounced font weight across all components.
4906
+ /// @group typography
4907
+ $kendo-font-weight-black: 900 !default;
4908
+
4909
+ /// The base letter spacing across all components.
4910
+ /// @group typography
4911
+ $kendo-letter-spacing: null !default;
4912
+ /// The tightest letter spacing across all components.
4913
+ /// @group typography
4914
+ $kendo-letter-spacing-tightest: -.15px !default;
4915
+ /// Slightly looser than the tighter letter spacing across all components.
4916
+ /// @group typography
4917
+ $kendo-letter-spacing-tighter: -.10px !default;
4918
+ /// Moderately tight letter spacing across all components.
4919
+ /// @group typography
4920
+ $kendo-letter-spacing-tight: -.5px !default;
4921
+ /// The normal letter spacing across all components.
4922
+ /// @group typography
4923
+ $kendo-letter-spacing-normal: 0px !default;
4924
+ /// Wide letter spacing across all components.
4925
+ /// @group typography
4926
+ $kendo-letter-spacing-wide: .5px !default;
4927
+ /// Slightly wider than the wide letter spacing across all components.
4928
+ /// @group typography
4929
+ $kendo-letter-spacing-wider: .10px !default;
4930
+ /// The widest letter spacing across all components.
4931
+ /// @group typography
4932
+ $kendo-letter-spacing-widest: .15px !default;
4933
+
4934
+ /// The sans font family across all components.
4935
+ /// @group typography
4936
+ $kendo-font-family-sans: Arial, Verdana, Tahoma, "Trebuchet MS", Helvetica, Impact, Gill Sans !default;
4937
+ /// The serif font family across all components.
4938
+ /// @group typography
4939
+ $kendo-font-family-serif: "Times New Roman", Georgia, Garamond, Palatino, Baskerville !default;
4940
+ /// The sans-serif font family across all components.
4941
+ /// @group typography
4942
+ $kendo-font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
4943
+ /// The monospace font family across all components.
4944
+ /// @group typography
4945
+ $kendo-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospace !default;
4946
+
4947
+ /// The base font family across all components.
4948
+ /// @group typography
4949
+ $kendo-font-family: inherit !default;
4950
+
4951
+ $_default-font-sizes: (
4952
+ xxs: $kendo-font-size-xxs,
4953
+ xs: $kendo-font-size-xs,
4954
+ sm: $kendo-font-size-sm,
4955
+ md: $kendo-font-size-md,
4956
+ lg: $kendo-font-size-lg,
4957
+ xl: $kendo-font-size-xl
4958
+ ) !default;
4959
+
4960
+ $_default-line-heights: (
4961
+ xs: $kendo-line-height-xs,
4962
+ sm: $kendo-line-height-sm,
4963
+ md: $kendo-line-height-md,
4964
+ lg: $kendo-line-height-lg,
4965
+ ) !default;
4966
+
4967
+ $_default-font-weights: (
4968
+ thin: $kendo-font-weight-thin,
4969
+ extra-light: $kendo-font-weight-extra-light,
4970
+ light: $kendo-font-weight-light,
4971
+ normal: $kendo-font-weight-normal,
4972
+ medium: $kendo-font-weight-medium,
4973
+ semibold: $kendo-font-weight-semibold,
4974
+ bold: $kendo-font-weight-bold
4975
+ ) !default;
4976
+
4977
+ $_default-letter-spacings: (
4978
+ tightest: $kendo-letter-spacing-tightest,
4979
+ tighter: $kendo-letter-spacing-tighter,
4980
+ tight: $kendo-letter-spacing-tight,
4981
+ normal: $kendo-letter-spacing-normal,
4982
+ wide: $kendo-letter-spacing-wide,
4983
+ wider: $kendo-letter-spacing-wider,
4984
+ widest: $kendo-letter-spacing-widest
4985
+ ) !default;
4986
+
4987
+ $_default-font-families: (
4988
+ sans: $kendo-font-family-sans,
4989
+ serif: $kendo-font-family-serif,
4990
+ sans-serif: $kendo-font-family-sans-serif,
4991
+ monospace: $kendo-font-family-monospace
4992
+ ) !default;
4993
+
4994
+ $kendo-font-sizes: $_default-font-sizes !default;
4995
+
4996
+ /// The font sizes map
4997
+ /// @group typography
4998
+ $kendo-font-sizes: k-map-merge( $_default-font-sizes, $kendo-font-sizes );
4999
+
5000
+ $kendo-line-heights: $_default-line-heights !default;
5001
+
5002
+ /// The line heights map
5003
+ /// @group typography
5004
+ $kendo-line-heights: k-map-merge( $_default-line-heights, $kendo-line-heights );
5005
+
5006
+ $kendo-font-weights: $_default-font-weights !default;
5007
+
5008
+ /// The font weights map
5009
+ /// @group typography
5010
+ $kendo-font-weights: k-map-merge( $_default-font-weights, $kendo-font-weights );
5011
+
5012
+ $kendo-letter-spacings: $_default-letter-spacings !default;
5013
+
5014
+ /// The letter spacings map
5015
+ /// @group typography
5016
+ $kendo-letter-spacings: k-map-merge( $_default-letter-spacings, $kendo-letter-spacings );
5017
+
5018
+ $kendo-font-families: $_default-font-families !default;
5019
+
5020
+ /// The font families map
5021
+ /// @group typography
5022
+ $kendo-font-families: k-map-merge( $_default-font-families, $kendo-font-families );
5023
+
5024
+ @mixin typography( $font-size: null, $font-family: null, $line-height: null, $font-weight: null, $letter-spacing: null ) {
5025
+ font-size: $font-size;
5026
+ font-family: $font-family;
5027
+ line-height: $line-height;
5028
+ font-weight: $font-weight;
5029
+ letter-spacing: $letter-spacing;
5030
+ }
5031
+
5032
+
5033
+ @mixin kendo-core--typography--styles() {
5034
+ :root {
4867
5035
 
4868
- $kendo-spacing: (
4869
- 0: 0,
5036
+ --kendo-font-family: #{k-meta-inspect($kendo-font-family)};
5037
+ --kendo-font-size: #{$kendo-font-size};
5038
+ --kendo-line-height: #{$kendo-line-height};
5039
+ --kendo-font-weight: #{$kendo-font-weight};
5040
+ --kendo-letter-spacing: #{$kendo-letter-spacing};
5041
+
5042
+ @each $size, $value in $kendo-font-sizes {
5043
+ --kendo-font-size-#{$size}: #{$value};
5044
+ }
5045
+
5046
+ @each $size, $value in $kendo-line-heights {
5047
+ --kendo-line-height-#{$size}: #{$value};
5048
+ }
5049
+
5050
+ @each $weight, $value in $kendo-font-weights {
5051
+ --kendo-font-weight-#{$weight}: #{$value};
5052
+ }
5053
+
5054
+ @each $spacing, $value in $kendo-letter-spacings {
5055
+ --kendo-letter-spacing-#{$spacing}: #{$value};
5056
+ }
5057
+
5058
+ @each $family, $value in $kendo-font-families {
5059
+ --kendo-font-family-#{$family}: #{$value};
5060
+ }
5061
+ }
5062
+ }
5063
+
5064
+ // #endregion
5065
+ // #region @import "./spacing/index.import.scss"; -> scss/spacing/index.import.scss
5066
+ // #region @import "../functions/index.import.scss"; -> scss/functions/index.import.scss
5067
+ // File already imported_once. Skipping output.
5068
+ // #endregion
5069
+
5070
+ $_default-spacing: (
5071
+ 0: 0px,
4870
5072
  1px: 1px,
4871
- 0.5: 0.125rem,
4872
- 1: 0.25rem,
4873
- 1.5: 0.375rem,
4874
- 2: 0.5rem,
4875
- 2.5: 0.625rem,
4876
- 3: 0.75rem,
4877
- 3.5: 0.875rem,
5073
+ 0.5: .125rem,
5074
+ 1: .25rem,
5075
+ 1.5: .375rem,
5076
+ 2: .5rem,
5077
+ 2.5: .625rem,
5078
+ 3: .75rem,
5079
+ 3.5: .875rem,
4878
5080
  4: 1rem,
4879
5081
  4.5: 1.125rem,
4880
5082
  5: 1.25rem,
@@ -4900,33 +5102,126 @@ $kendo-spacing: (
4900
5102
  22: 5.5rem,
4901
5103
  23: 5.75rem,
4902
5104
  24: 6rem,
5105
+ 25: 7rem,
5106
+ 26: 8rem,
5107
+ 27: 9rem,
5108
+ 28: 10rem,
5109
+ 29: 11rem,
5110
+ 30: 12rem
4903
5111
  ) !default;
4904
5112
 
4905
- /// Border radius for all components.
4906
- $kendo-border-radius: k-map-get($kendo-spacing, 0.5) !default;
4907
- $kendo-border-radius-sm: k-math-div($kendo-border-radius, 2) !default;
4908
- $kendo-border-radius-md: $kendo-border-radius !default;
4909
- $kendo-border-radius-lg: ($kendo-border-radius * 2) !default;
4910
-
4911
- $kendo-border-radii: (
4912
- DEFAULT: var(--kendo-border-radius-md, $kendo-border-radius-md),
4913
- 0: 0,
4914
- sm: var(--kendo-border-radius-sm, $kendo-border-radius-sm),
4915
- md: var(--kendo-border-radius-md, $kendo-border-radius-md),
4916
- lg: var(--kendo-border-radius-lg, $kendo-border-radius-lg),
4917
- none: 0,
4918
- full: 9999px,
5113
+ /// The global default Spacing map.
5114
+ /// @group spacing
5115
+ $kendo-spacing: $_default-spacing !default;
5116
+
5117
+ $kendo-spacing: k-map-merge($_default-spacing, $kendo-spacing);
5118
+
5119
+
5120
+ @function k-spacing($step) {
5121
+ $spacing: k-map-get($kendo-spacing, $step);
5122
+ $_step: k-escape-class-name( $step );
5123
+ @return var(--kendo-spacing-#{$_step}, #{$spacing});
5124
+ }
5125
+
5126
+ // Generate a CSS variable for each value in the Spacing map
5127
+ @mixin kendo-spacing--styles() {
5128
+ :root {
5129
+ @each $step, $spacing in $kendo-spacing {
5130
+ $_step: k-escape-class-name( $step );
5131
+ --kendo-spacing-#{$_step}: #{$spacing};
5132
+ }
5133
+ }
5134
+ }
5135
+
5136
+ $kendo-sizing: k-map-merge( $kendo-spacing, (
5137
+ "auto": auto,
5138
+ "1/2": 50%,
5139
+ "1/3": 33.333333%,
5140
+ "2/3": 66.666667%,
5141
+ "1/4": 25%,
5142
+ "2/4": 50%,
5143
+ "3/4": 75%,
5144
+ "1/5": 20%,
5145
+ "2/5": 40%,
5146
+ "3/5": 60%,
5147
+ "4/5": 80%,
5148
+ "1/6": 16.666667%,
5149
+ "2/6": 33.333333%,
5150
+ "3/6": 50%,
5151
+ "4/6": 66.666667%,
5152
+ "5/6": 83.333333%,
5153
+ "1/12": 8.333333%,
5154
+ "2/12": 16.666667%,
5155
+ "3/12": 25%,
5156
+ "4/12": 33.333333%,
5157
+ "5/12": 41.666667%,
5158
+ "6/12": 50%,
5159
+ "7/12": 58.333333%,
5160
+ "8/12": 66.666667%,
5161
+ "9/12": 75%,
5162
+ "10/12": 83.333333%,
5163
+ "11/12": 91.666667%,
5164
+ "full": 100%,
5165
+ "min": min-content,
5166
+ "max": max-content,
5167
+ "fit": fit-content
5168
+ )) !default;
5169
+
5170
+ // #endregion
5171
+ // #region @import "./border-radii/index.import.scss"; -> scss/border-radii/index.import.scss
5172
+ $kendo-border-radius-none: k-map-get($kendo-spacing, 0) !default;
5173
+ $kendo-border-radius-xs: k-map-get($kendo-spacing, 1px) !default;
5174
+ $kendo-border-radius-sm: k-map-get($kendo-spacing, 0.5) !default;
5175
+ $kendo-border-radius-md: k-map-get($kendo-spacing, 1) !default;
5176
+ $kendo-border-radius-lg: k-map-get($kendo-spacing, 1.5) !default;
5177
+ $kendo-border-radius-xl: k-map-get($kendo-spacing, 2) !default;
5178
+ $kendo-border-radius-xxl: k-map-get($kendo-spacing, 3) !default;
5179
+ $kendo-border-radius-xxxl: k-map-get($kendo-spacing, 4) !default;
5180
+ $kendo-border-radius-full: 9999px !default;
5181
+
5182
+
5183
+ $_default-border-radii: (
5184
+ none: $kendo-border-radius-none,
5185
+ xs: $kendo-border-radius-xs,
5186
+ sm: $kendo-border-radius-sm,
5187
+ md: $kendo-border-radius-md,
5188
+ lg: $kendo-border-radius-lg,
5189
+ xl: $kendo-border-radius-xl,
5190
+ xxl: $kendo-border-radius-xxl,
5191
+ xxxl: $kendo-border-radius-xxxl,
5192
+ full: $kendo-border-radius-full
5193
+
4919
5194
  ) !default;
4920
5195
 
4921
- // Metrics
4922
- $kendo-padding-x: k-map-get($kendo-spacing, 2) !default;
4923
- $kendo-padding-y: k-map-get($kendo-spacing, 1) !default;
4924
- $kendo-padding-sm-x: k-map-get($kendo-spacing, 1) !default;
4925
- $kendo-padding-sm-y: k-map-get($kendo-spacing, 0.5) !default;
4926
- $kendo-padding-md-x: k-map-get($kendo-spacing, 2) !default;
4927
- $kendo-padding-md-y: k-map-get($kendo-spacing, 1) !default;
4928
- $kendo-padding-lg-x: k-map-get($kendo-spacing, 3) !default;
4929
- $kendo-padding-lg-y: k-map-get($kendo-spacing, 1.5) !default;
5196
+ $kendo-border-radii: $_default-border-radii !default;
5197
+
5198
+ $kendo-border-radii: k-map-merge($_default-border-radii, $kendo-border-radii);
5199
+
5200
+
5201
+ @function k-border-radius($key) {
5202
+ $_border-radius: k-map-get($kendo-border-radii, $key);
5203
+ @return var(--kendo-border-radius-#{$key}, $_border-radius);
5204
+ }
5205
+
5206
+ @mixin kendo-border-radius--styles() {
5207
+ :root {
5208
+ @each $key, $value in $kendo-border-radii {
5209
+ --kendo-border-radius-#{$key}: #{$value};
5210
+ }
5211
+ }
5212
+ }
5213
+
5214
+ // #endregion
5215
+ // #region @import "./_variables.scss"; -> scss/_variables.scss
5216
+ // #region @import "./functions/index.import.scss"; -> scss/functions/index.import.scss
5217
+ // File already imported_once. Skipping output.
5218
+ // #endregion
5219
+
5220
+ // Options
5221
+ $kendo-enable-shadows: true !default;
5222
+ $kendo-enable-rounded: true !default;
5223
+ $kendo-enable-gradients: true !default;
5224
+ $kendo-enable-transitions: true !default;
4930
5225
 
4931
5226
  // Equilateral triangle variables
4932
5227
  // stylelint-disable number-max-precision
@@ -4937,6 +5232,7 @@ $equilateral-height: 0.8660254038 !default;
4937
5232
  // Loading
4938
5233
  $kendo-loading-opacity: .3 !default;
4939
5234
  $kendo-zindex-loading: 100 !default;
5235
+
4940
5236
  // #endregion
4941
5237
 
4942
5238
  // #endregion