@progress/kendo-theme-core 8.0.0-dev.0 → 8.0.0-dev.10

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,254 @@ $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
+ /// @group typography
4868
+ $kendo-line-height-sm: 1.25 !default;
4869
+ /// The medium line height across all components.
4870
+ /// @group typography
4871
+ $kendo-line-height-md: $kendo-line-height !default;
4872
+ /// The large line height across all components.
4873
+ /// @group typography
4874
+ $kendo-line-height-lg: 1.5 !default;
4875
+ /// The base line height in ems across all components.
4876
+ /// @group typography
4877
+ $kendo-line-height-em: calc( #{$kendo-line-height-md} * 1em ) !default;
4878
+
4879
+ /// The base font weight across all components.
4880
+ /// @group typography
4881
+ $kendo-font-weight: 400 !default;
4882
+ /// The thin font weight across all components.
4883
+ /// @group typography
4884
+ $kendo-font-weight-thin: 100 !default;
4885
+ /// The extra light font weight across all components.
4886
+ /// @group typography
4887
+ $kendo-font-weight-extra-light: 200 !default;
4888
+ /// The light font weight across all components.
4889
+ /// @group typography
4890
+ $kendo-font-weight-light: 300 !default;
4891
+ /// The normal font weight across all components.
4892
+ /// @group typography
4893
+ $kendo-font-weight-normal: $kendo-font-weight !default;
4894
+ /// The medium font weight across all components.
4895
+ /// @group typography
4896
+ $kendo-font-weight-medium: 500 !default;
4897
+ /// The semibold font weight across all components.
4898
+ /// @group typography
4899
+ $kendo-font-weight-semibold: 600 !default;
4900
+ /// The bold font weight across all components.
4901
+ /// @group typography
4902
+ $kendo-font-weight-bold: 700 !default;
4903
+ /// The extra bold font weight across all components.
4904
+ /// @group typography
4905
+ $kendo-font-weight-extra-bold: 800 !default;
4906
+ /// The most pronounced font weight across all components.
4907
+ /// @group typography
4908
+ $kendo-font-weight-black: 900 !default;
4909
+
4910
+ /// The base letter spacing across all components.
4911
+ /// @group typography
4912
+ $kendo-letter-spacing: null !default;
4913
+ /// The tightest letter spacing across all components.
4914
+ /// @group typography
4915
+ $kendo-letter-spacing-tightest: -.15px !default;
4916
+ /// Slightly looser than the tighter letter spacing across all components.
4917
+ /// @group typography
4918
+ $kendo-letter-spacing-tighter: -.10px !default;
4919
+ /// Moderately tight letter spacing across all components.
4920
+ /// @group typography
4921
+ $kendo-letter-spacing-tight: -.5px !default;
4922
+ /// The normal letter spacing across all components.
4923
+ /// @group typography
4924
+ $kendo-letter-spacing-normal: 0px !default;
4925
+ /// Wide letter spacing across all components.
4926
+ /// @group typography
4927
+ $kendo-letter-spacing-wide: .5px !default;
4928
+ /// Slightly wider than the wide letter spacing across all components.
4929
+ /// @group typography
4930
+ $kendo-letter-spacing-wider: .10px !default;
4931
+ /// The widest letter spacing across all components.
4932
+ /// @group typography
4933
+ $kendo-letter-spacing-widest: .15px !default;
4934
+
4935
+ /// The sans font family across all components.
4936
+ /// @group typography
4937
+ $kendo-font-family-sans: Arial, Verdana, Tahoma, "Trebuchet MS", Helvetica, Impact, Gill Sans !default;
4938
+ /// The serif font family across all components.
4939
+ /// @group typography
4940
+ $kendo-font-family-serif: "Times New Roman", Georgia, Garamond, Palatino, Baskerville !default;
4941
+ /// The sans-serif font family across all components.
4942
+ /// @group typography
4943
+ $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;
4944
+ /// The monospace font family across all components.
4945
+ /// @group typography
4946
+ $kendo-font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", "Ubuntu Mono", "Lucida Console", "Courier New", monospace !default;
4947
+
4948
+ /// The base font family across all components.
4949
+ /// @group typography
4950
+ $kendo-font-family: inherit !default;
4951
+
4952
+ $_default-font-sizes: (
4953
+ xxs: $kendo-font-size-xxs,
4954
+ xs: $kendo-font-size-xs,
4955
+ sm: $kendo-font-size-sm,
4956
+ md: $kendo-font-size-md,
4957
+ lg: $kendo-font-size-lg,
4958
+ xl: $kendo-font-size-xl
4959
+ ) !default;
4960
+
4961
+ $_default-line-heights: (
4962
+ xs: $kendo-line-height-xs,
4963
+ sm: $kendo-line-height-sm,
4964
+ md: $kendo-line-height-md,
4965
+ lg: $kendo-line-height-lg,
4966
+ ) !default;
4967
+
4968
+ $_default-font-weights: (
4969
+ thin: $kendo-font-weight-thin,
4970
+ extra-light: $kendo-font-weight-extra-light,
4971
+ light: $kendo-font-weight-light,
4972
+ normal: $kendo-font-weight-normal,
4973
+ medium: $kendo-font-weight-medium,
4974
+ semibold: $kendo-font-weight-semibold,
4975
+ bold: $kendo-font-weight-bold
4976
+ ) !default;
4977
+
4978
+ $_default-letter-spacings: (
4979
+ tightest: $kendo-letter-spacing-tightest,
4980
+ tighter: $kendo-letter-spacing-tighter,
4981
+ tight: $kendo-letter-spacing-tight,
4982
+ normal: $kendo-letter-spacing-normal,
4983
+ wide: $kendo-letter-spacing-wide,
4984
+ wider: $kendo-letter-spacing-wider,
4985
+ widest: $kendo-letter-spacing-widest
4986
+ ) !default;
4987
+
4988
+ $_default-font-families: (
4989
+ sans: $kendo-font-family-sans,
4990
+ serif: $kendo-font-family-serif,
4991
+ sans-serif: $kendo-font-family-sans-serif,
4992
+ monospace: $kendo-font-family-monospace
4993
+ ) !default;
4994
+
4995
+ $kendo-font-sizes: $_default-font-sizes !default;
4996
+
4997
+ /// The font sizes map
4998
+ /// @group typography
4999
+ $kendo-font-sizes: k-map-merge( $_default-font-sizes, $kendo-font-sizes );
5000
+
5001
+ $kendo-line-heights: $_default-line-heights !default;
5002
+
5003
+ /// The line heights map
5004
+ /// @group typography
5005
+ $kendo-line-heights: k-map-merge( $_default-line-heights, $kendo-line-heights );
5006
+
5007
+ $kendo-font-weights: $_default-font-weights !default;
5008
+
5009
+ /// The font weights map
5010
+ /// @group typography
5011
+ $kendo-font-weights: k-map-merge( $_default-font-weights, $kendo-font-weights );
5012
+
5013
+ $kendo-letter-spacings: $_default-letter-spacings !default;
5014
+
5015
+ /// The letter spacings map
5016
+ /// @group typography
5017
+ $kendo-letter-spacings: k-map-merge( $_default-letter-spacings, $kendo-letter-spacings );
5018
+
5019
+ $kendo-font-families: $_default-font-families !default;
5020
+
5021
+ /// The font families map
5022
+ /// @group typography
5023
+ $kendo-font-families: k-map-merge( $_default-font-families, $kendo-font-families );
5024
+
5025
+ @mixin typography( $font-size: null, $font-family: null, $line-height: null, $font-weight: null, $letter-spacing: null ) {
5026
+ font-size: $font-size;
5027
+ font-family: $font-family;
5028
+ line-height: $line-height;
5029
+ font-weight: $font-weight;
5030
+ letter-spacing: $letter-spacing;
5031
+ }
5032
+
5033
+
5034
+ @mixin kendo-core--typography--styles() {
5035
+ :root {
4867
5036
 
4868
- $kendo-spacing: (
4869
- 0: 0,
5037
+ --kendo-font-family: #{k-meta-inspect($kendo-font-family)};
5038
+ --kendo-font-size: #{$kendo-font-size};
5039
+ --kendo-line-height: #{$kendo-line-height};
5040
+ --kendo-font-weight: #{$kendo-font-weight};
5041
+ --kendo-letter-spacing: #{$kendo-letter-spacing};
5042
+
5043
+ @each $size, $value in $kendo-font-sizes {
5044
+ --kendo-font-size-#{$size}: #{$value};
5045
+ }
5046
+
5047
+ @each $size, $value in $kendo-line-heights {
5048
+ --kendo-line-height-#{$size}: #{$value};
5049
+ }
5050
+
5051
+ @each $weight, $value in $kendo-font-weights {
5052
+ --kendo-font-weight-#{$weight}: #{$value};
5053
+ }
5054
+
5055
+ @each $spacing, $value in $kendo-letter-spacings {
5056
+ --kendo-letter-spacing-#{$spacing}: #{$value};
5057
+ }
5058
+
5059
+ @each $family, $value in $kendo-font-families {
5060
+ --kendo-font-family-#{$family}: #{$value};
5061
+ }
5062
+ }
5063
+ }
5064
+
5065
+ // #endregion
5066
+ // #region @import "./spacing/index.import.scss"; -> scss/spacing/index.import.scss
5067
+ // #region @import "../functions/index.import.scss"; -> scss/functions/index.import.scss
5068
+ // File already imported_once. Skipping output.
5069
+ // #endregion
5070
+
5071
+ $_default-spacing: (
5072
+ 0: 0px,
4870
5073
  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,
5074
+ 0.5: .125rem,
5075
+ 1: .25rem,
5076
+ 1.5: .375rem,
5077
+ 2: .5rem,
5078
+ 2.5: .625rem,
5079
+ 3: .75rem,
5080
+ 3.5: .875rem,
4878
5081
  4: 1rem,
4879
5082
  4.5: 1.125rem,
4880
5083
  5: 1.25rem,
@@ -4900,33 +5103,146 @@ $kendo-spacing: (
4900
5103
  22: 5.5rem,
4901
5104
  23: 5.75rem,
4902
5105
  24: 6rem,
5106
+ 25: 7rem,
5107
+ 26: 8rem,
5108
+ 27: 9rem,
5109
+ 28: 10rem,
5110
+ 29: 11rem,
5111
+ 30: 12rem
4903
5112
  ) !default;
4904
5113
 
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,
5114
+ /// The global default Spacing map.
5115
+ /// @group spacing
5116
+ $kendo-spacing: $_default-spacing !default;
5117
+
5118
+ $kendo-spacing: k-map-merge($_default-spacing, $kendo-spacing);
5119
+
5120
+
5121
+ @function k-spacing($step) {
5122
+ $spacing: k-map-get($kendo-spacing, $step);
5123
+ $_step: k-escape-class-name( $step );
5124
+ @return var(--kendo-spacing-#{$_step}, #{$spacing});
5125
+ }
5126
+
5127
+ // Generate a CSS variable for each value in the Spacing map
5128
+ @mixin kendo-spacing--styles() {
5129
+ :root {
5130
+ @each $step, $spacing in $kendo-spacing {
5131
+ $_step: k-escape-class-name( $step );
5132
+ --kendo-spacing-#{$_step}: #{$spacing};
5133
+ }
5134
+ }
5135
+ }
5136
+
5137
+ $kendo-sizing: k-map-merge( $kendo-spacing, (
5138
+ "auto": auto,
5139
+ "1/2": 50%,
5140
+ "1/3": 33.333333%,
5141
+ "2/3": 66.666667%,
5142
+ "1/4": 25%,
5143
+ "2/4": 50%,
5144
+ "3/4": 75%,
5145
+ "1/5": 20%,
5146
+ "2/5": 40%,
5147
+ "3/5": 60%,
5148
+ "4/5": 80%,
5149
+ "1/6": 16.666667%,
5150
+ "2/6": 33.333333%,
5151
+ "3/6": 50%,
5152
+ "4/6": 66.666667%,
5153
+ "5/6": 83.333333%,
5154
+ "1/12": 8.333333%,
5155
+ "2/12": 16.666667%,
5156
+ "3/12": 25%,
5157
+ "4/12": 33.333333%,
5158
+ "5/12": 41.666667%,
5159
+ "6/12": 50%,
5160
+ "7/12": 58.333333%,
5161
+ "8/12": 66.666667%,
5162
+ "9/12": 75%,
5163
+ "10/12": 83.333333%,
5164
+ "11/12": 91.666667%,
5165
+ "full": 100%,
5166
+ "min": min-content,
5167
+ "max": max-content,
5168
+ "fit": fit-content
5169
+ )) !default;
5170
+
5171
+ // #endregion
5172
+ // #region @import "./border-radii/index.import.scss"; -> scss/border-radii/index.import.scss
5173
+ /// The none border radius used across the Components.
5174
+ /// @group radii
5175
+ $kendo-border-radius-none: k-map-get($kendo-spacing, 0) !default;
5176
+ /// The extra small border radius used across the Components.
5177
+ /// @group radii
5178
+ $kendo-border-radius-xs: k-map-get($kendo-spacing, 1px) !default;
5179
+ /// The small border radius used across the Components.
5180
+ /// @group radii
5181
+ $kendo-border-radius-sm: k-map-get($kendo-spacing, 0.5) !default;
5182
+ /// The medium border radius used across the Components.
5183
+ /// @group radii
5184
+ $kendo-border-radius-md: k-map-get($kendo-spacing, 1) !default;
5185
+ /// The large border radius used across the Components.
5186
+ /// @group radii
5187
+ $kendo-border-radius-lg: k-map-get($kendo-spacing, 1.5) !default;
5188
+ /// The extra large border radius used across the Components.
5189
+ /// @group radii
5190
+ $kendo-border-radius-xl: k-map-get($kendo-spacing, 2) !default;
5191
+ /// The third largest border radius used across the Components.
5192
+ /// @group radii
5193
+ $kendo-border-radius-xxl: k-map-get($kendo-spacing, 3) !default;
5194
+ /// The second largest border radius used across the Components.
5195
+ /// @group radii
5196
+ $kendo-border-radius-xxxl: k-map-get($kendo-spacing, 4) !default;
5197
+ /// The largest border radius used across the Components.
5198
+ /// @group radii
5199
+ $kendo-border-radius-full: 9999px !default;
5200
+
5201
+
5202
+ $_default-border-radii: (
5203
+ none: $kendo-border-radius-none,
5204
+ xs: $kendo-border-radius-xs,
5205
+ sm: $kendo-border-radius-sm,
5206
+ md: $kendo-border-radius-md,
5207
+ lg: $kendo-border-radius-lg,
5208
+ xl: $kendo-border-radius-xl,
5209
+ xxl: $kendo-border-radius-xxl,
5210
+ xxxl: $kendo-border-radius-xxxl,
5211
+ full: $kendo-border-radius-full
5212
+
4919
5213
  ) !default;
4920
5214
 
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;
5215
+ $kendo-border-radii: $_default-border-radii !default;
5216
+
5217
+ /// The global radii Map.
5218
+ /// @group radii
5219
+ $kendo-border-radii: k-map-merge($_default-border-radii, $kendo-border-radii);
5220
+
5221
+
5222
+ @function k-border-radius($key) {
5223
+ $_border-radius: k-map-get($kendo-border-radii, $key);
5224
+ @return var(--kendo-border-radius-#{$key}, $_border-radius);
5225
+ }
5226
+
5227
+ @mixin kendo-border-radius--styles() {
5228
+ :root {
5229
+ @each $key, $value in $kendo-border-radii {
5230
+ --kendo-border-radius-#{$key}: #{$value};
5231
+ }
5232
+ }
5233
+ }
5234
+
5235
+ // #endregion
5236
+ // #region @import "./_variables.scss"; -> scss/_variables.scss
5237
+ // #region @import "./functions/index.import.scss"; -> scss/functions/index.import.scss
5238
+ // File already imported_once. Skipping output.
5239
+ // #endregion
5240
+
5241
+ // Options
5242
+ $kendo-enable-shadows: true !default;
5243
+ $kendo-enable-rounded: true !default;
5244
+ $kendo-enable-gradients: true !default;
5245
+ $kendo-enable-transitions: true !default;
4930
5246
 
4931
5247
  // Equilateral triangle variables
4932
5248
  // stylelint-disable number-max-precision
@@ -4937,6 +5253,7 @@ $equilateral-height: 0.8660254038 !default;
4937
5253
  // Loading
4938
5254
  $kendo-loading-opacity: .3 !default;
4939
5255
  $kendo-zindex-loading: 100 !default;
5256
+
4940
5257
  // #endregion
4941
5258
 
4942
5259
  // #endregion