@progress/kendo-theme-utils 5.12.0 → 5.12.1-dev.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.
Files changed (75) hide show
  1. package/dist/all.css +4038 -774
  2. package/dist/all.scss +1458 -217
  3. package/package.json +6 -6
  4. package/scss/_functions.scss +1 -37
  5. package/scss/_mixins.scss +7 -7
  6. package/scss/_variables.scss +35 -20
  7. package/scss/accessibility/_screen-readers.scss +2 -2
  8. package/scss/border/_border-color.scss +1 -1
  9. package/scss/border/_border-radius.scss +1 -1
  10. package/scss/border/_border-style.scss +1 -1
  11. package/scss/border/_border-width.scss +1 -1
  12. package/scss/border/_outline-color.scss +1 -1
  13. package/scss/border/_outline-offset.scss +1 -1
  14. package/scss/border/_outline-style.scss +1 -1
  15. package/scss/border/_outline-width.scss +1 -1
  16. package/scss/flex-grid/_align-content.scss +1 -1
  17. package/scss/flex-grid/_align-items.scss +1 -1
  18. package/scss/flex-grid/_align-self.scss +1 -1
  19. package/scss/flex-grid/_flex-basis.scss +6 -5
  20. package/scss/flex-grid/_flex-direction.scss +10 -5
  21. package/scss/flex-grid/_flex-grow.scss +6 -3
  22. package/scss/flex-grid/_flex-shrink.scss +6 -3
  23. package/scss/flex-grid/_flex-wrap.scss +8 -4
  24. package/scss/flex-grid/_flex.scss +10 -5
  25. package/scss/flex-grid/_gap.scss +1 -1
  26. package/scss/flex-grid/_grid-auto-columns.scss +1 -1
  27. package/scss/flex-grid/_grid-auto-flow.scss +1 -1
  28. package/scss/flex-grid/_grid-auto-rows.scss +1 -1
  29. package/scss/flex-grid/_grid-column-start-end.scss +3 -3
  30. package/scss/flex-grid/_grid-row-start-end.scss +4 -3
  31. package/scss/flex-grid/_grid-template-columns.scss +1 -1
  32. package/scss/flex-grid/_grid-template-rows.scss +1 -1
  33. package/scss/flex-grid/_justify-content.scss +1 -1
  34. package/scss/flex-grid/_justify-items.scss +1 -1
  35. package/scss/flex-grid/_justify-self.scss +1 -1
  36. package/scss/flex-grid/_order.scss +20 -2
  37. package/scss/flex-grid/_place-content.scss +1 -1
  38. package/scss/flex-grid/_place-items.scss +1 -1
  39. package/scss/flex-grid/_place-self.scss +1 -1
  40. package/scss/interactivity/_accent-color.scss +1 -1
  41. package/scss/interactivity/_appearance.scss +6 -3
  42. package/scss/interactivity/_caret-color.scss +1 -1
  43. package/scss/interactivity/_cursor.scss +1 -1
  44. package/scss/interactivity/_pointer-events.scss +6 -3
  45. package/scss/interactivity/_resize.scss +10 -5
  46. package/scss/interactivity/_scroll.scss +6 -6
  47. package/scss/interactivity/_touch-action.scss +6 -3
  48. package/scss/interactivity/_user-select.scss +16 -8
  49. package/scss/interactivity/_will-change.scss +1 -1
  50. package/scss/layout/_aspect-ratio.scss +22 -2
  51. package/scss/layout/_clear.scss +22 -2
  52. package/scss/layout/_display.scss +27 -12
  53. package/scss/layout/_float.scss +17 -2
  54. package/scss/layout/_overflow.scss +32 -16
  55. package/scss/layout/_position.scss +49 -4
  56. package/scss/layout/_visibility.scss +1 -1
  57. package/scss/layout/_zindex.scss +1 -1
  58. package/scss/sizing/_height.scss +3 -3
  59. package/scss/sizing/_width.scss +3 -3
  60. package/scss/spacing/_margin.scss +1 -1
  61. package/scss/spacing/_padding.scss +1 -1
  62. package/scss/table/_border-collapse.scss +1 -1
  63. package/scss/table/_table-layout.scss +8 -3
  64. package/scss/transform/_flip.scss +6 -3
  65. package/scss/transform/_origin.scss +1 -1
  66. package/scss/transform/_rotate.scss +40 -2
  67. package/scss/transform/_scale.scss +18 -5
  68. package/scss/transform/_skew.scss +1 -1
  69. package/scss/transform/_translate.scss +60 -2
  70. package/scss/typography/_font-size.scss +1 -1
  71. package/scss/typography/_font-style.scss +1 -1
  72. package/scss/typography/_font-weight.scss +1 -1
  73. package/scss/typography/_text-align.scss +10 -5
  74. package/scss/typography/_text-transform.scss +8 -4
  75. package/scss/typography/_white-space.scss +14 -7
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-border-collapse: map-get( $kendo-utils, "border-collapse" ) !default;
3
+ $kendo-utils-border-collapse: k-map-get( $kendo-utils, "border-collapse" ) !default;
4
4
 
5
5
  @include generate-utils( border, border-collapse, $kendo-utils-border-collapse );
@@ -1,12 +1,17 @@
1
+ // Table-layout documentation sourced from https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout.
2
+
3
+ /// This is equivalent to `table-layout: auto;`. By default, most browsers use an automatic table layout algorithm. The widths of the table and its cells are adjusted to fit the content.
1
4
  /// @name .k-table-layout-auto
2
- /// @description This is equivalent to `table-layout: auto;`. By default, most browsers use an automatic table layout algorithm. The widths of the table and its cells are adjusted to fit the content.
3
5
  /// @group table-layout
6
+ /// @contextType css
4
7
 
8
+ /// This is equivalent to `table-layout: fixed;`. Table and column widths are set by the widths of table and col elements or by the width of the first row of cells. Cells in subsequent rows do not affect column widths.
5
9
  /// @name .k-table-layout-fixed
6
- /// @description This is equivalent to `table-layout: fixed;`. Table and column widths are set by the widths of table and col elements or by the width of the first row of cells. Cells in subsequent rows do not affect column widths.
7
10
  /// @group table-layout
11
+ /// @contextType css
8
12
 
9
- $kendo-utils-table-layout: map-get( $kendo-utils, "table-layout" ) !default;
13
+ // Table layout utility classes
14
+ $kendo-utils-table-layout: k-map-get( $kendo-utils, "table-layout" ) !default;
10
15
 
11
16
  @include generate-utils( table, table-layout, $kendo-utils-table-layout );
12
17
  @include generate-utils( table-layout, table-layout, $kendo-utils-table-layout );
@@ -1,12 +1,15 @@
1
+ /// This is equivalent to `transform: scaleX( -1 );`. Flips the element horizontally.
1
2
  /// @name .k-flip-h
2
- /// @description This is equivalent to `transform: scaleX( -1 );`. Flips the element horizontally.
3
3
  /// @group transform
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `transform: scaleY( -1 );`. Flips the element vertically.
5
7
  /// @name .k-flip-v
6
- /// @description This is equivalent to `transform: scaleY( -1 );`. Flips the element vertically.
7
8
  /// @group transform
9
+ /// @contextType css
8
10
 
9
- $kendo-utils-flip: map-get( $kendo-utils, "flip" ) !default;
11
+ // Flip utility classes
12
+ $kendo-utils-flip: k-map-get( $kendo-utils, "flip" ) !default;
10
13
 
11
14
  @if $kendo-utils-flip {
12
15
  .#{$kendo-prefix}flip-h { transform: scaleX( -1 ); }
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-origin: map-get( $kendo-utils, "origin" ) !default;
3
+ $kendo-utils-origin: k-map-get( $kendo-utils, "origin" ) !default;
4
4
 
5
5
  @include generate-utils( origin, transform-origin, $kendo-utils-origin );
@@ -1,6 +1,44 @@
1
- // TODO DOCS
1
+ /// This is equivalent to `transform: rotate( 0 );`. Does not rotate the element.
2
+ /// @name .k-rotate-0
3
+ /// @group transform
4
+ /// @contextType css
2
5
 
3
- $kendo-utils-rotate: map-get( $kendo-utils, "rotate" ) !default;
6
+ /// This is equivalent to `transform: rotate( 45deg );`. Rotates the element by 45 degrees.
7
+ /// @name .k-rotate-45
8
+ /// @group transform
9
+ /// @contextType css
10
+
11
+ /// This is equivalent to `transform: rotate( 90deg );`. Rotates the element by 90 degrees.
12
+ /// @name .k-rotate-90
13
+ /// @group transform
14
+ /// @contextType css
15
+
16
+ /// This is equivalent to `transform: rotate( 135deg );`. Rotates the element by 135 degrees.
17
+ /// @name .k-rotate-135
18
+ /// @group transform
19
+ /// @contextType css
20
+
21
+ /// This is equivalent to `transform: rotate( 180deg );`. Rotates the element by 180 degrees.
22
+ /// @name .k-rotate-180
23
+ /// @group transform
24
+ /// @contextType css
25
+
26
+ /// This is equivalent to `transform: rotate( 225deg );`. Rotates the element by 225 degrees.
27
+ /// @name .k-rotate-225
28
+ /// @group transform
29
+ /// @contextType css
30
+
31
+ /// This is equivalent to `transform: rotate( 270deg );`. Rotates the element by 270 degrees.
32
+ /// @name .k-rotate-270
33
+ /// @group transform
34
+ /// @contextType css
35
+
36
+ /// This is equivalent to `transform: rotate( 315deg );`. Rotates the element by 315 degrees.
37
+ /// @name .k-rotate-315
38
+ /// @group transform
39
+ /// @contextType css
40
+
41
+ $kendo-utils-rotate: k-map-get( $kendo-utils, "rotate" ) !default;
4
42
 
5
43
  // sass-lint:disable function-name-format
6
44
  @function __rotate( $val ) {
@@ -1,16 +1,29 @@
1
- // TODO DOCS
1
+ /// This is equivalent to `transform: scale( 0, 0 );`. The element is shrunk and no longer visible.
2
+ /// @name .k-scale-0
3
+ /// @group transform
4
+ /// @contextType css
2
5
 
3
- $kendo-utils-scale: map-get( $kendo-utils, "scale" ) !default;
6
+ /// This is equivalent to `transform: scale( 1, 1 );`. The element has its default scale.
7
+ /// @name .k-scale-1
8
+ /// @group transform
9
+ /// @contextType css
10
+
11
+ /// This is equivalent to `transform: scale( 2, 2 );`. The element is scaling two times in both directions.
12
+ /// @name .k-scale-2
13
+ /// @group transform
14
+ /// @contextType css
15
+
16
+ $kendo-utils-scale: k-map-get( $kendo-utils, "scale" ) !default;
4
17
 
5
18
  // sass-lint:disable function-name-format
6
19
  @function __scale( $val ) {
7
- @return scale( unquote($val) );
20
+ @return scale( $val );
8
21
  }
9
22
  @function __scale-x( $val ) {
10
- @return scaleX( unquote($val) );
23
+ @return scaleX( $val );
11
24
  }
12
25
  @function __scale-y( $val ) {
13
- @return scaleY( unquote($val) );
26
+ @return scaleY( $val );
14
27
  }
15
28
  // sass-lint:enable function-name-format
16
29
 
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-skew: map-get( $kendo-utils, "skew" ) !default;
3
+ $kendo-utils-skew: k-map-get( $kendo-utils, "skew" ) !default;
4
4
 
5
5
  // sass-lint:disable function-name-format
6
6
  @function __skew-x( $val ) {
@@ -1,8 +1,65 @@
1
- // TODO DOCS
1
+ /// This is equivalent to `transform: translate( 0, 0 );`. The element does not move.
2
+ /// @name .k-translate-0
3
+ /// @group transform
4
+ /// @contextType css
2
5
 
3
- $kendo-utils-translate: map-get( $kendo-utils, "translate" ) !default;
6
+ /// This is equivalent to `transform: translate( 0, 50% );`. The element moves vertically by 50% of its height.
7
+ /// @name .k-translate-0-50
8
+ /// @group transform
9
+ /// @contextType css
10
+
11
+ /// This is equivalent to `transform: translate( 0, 100% );`. The element moves vertically by 100% of its height.
12
+ /// @name .k-translate-0-100
13
+ /// @group transform
14
+ /// @contextType css
15
+
16
+ /// This is equivalent to `transform: translate( 50%, 0 );`. The element moves horizontally by 50% of its width.
17
+ /// @name .k-translate-50-0
18
+ /// @group transform
19
+ /// @contextType css
20
+
21
+ /// This is equivalent to `transform: translate( 50%, 50% );`. The element moves horizontally by 50% of its width and vertically by 50% of its height.
22
+ /// @name .k-translate-50-50
23
+ /// @group transform
24
+ /// @contextType css
25
+
26
+ /// This is equivalent to `transform: translate( 50%, 100% );`. The element moves horizontally by 50% of its width and vertically by 100% of its height.
27
+ /// @name .k-translate-50-100
28
+ /// @group transform
29
+ /// @contextType css
30
+
31
+ /// This is equivalent to `transform: translate( 100%, 0 );`. The element moves horizontally by 100% of its width.
32
+ /// @name .k-translate-100-0
33
+ /// @group transform
34
+ /// @contextType css
35
+
36
+ /// This is equivalent to `transform: translate( 100%, 50% );`. The element moves horizontally by 100% of its width and vertically by 50% of its height.
37
+ /// @name .k-translate-100-50
38
+ /// @group transform
39
+ /// @contextType css
40
+
41
+ /// This is equivalent to `transform: translate( 100%, 100% );`. The element moves horizontally by 100% of its width and vertically by 100% of its height.
42
+ /// @name .k-translate-100-100
43
+ /// @group transform
44
+ /// @contextType css
45
+
46
+ $kendo-utils-translate: k-map-get( $kendo-utils, "translate" ) !default;
47
+ $kendo-utils-translate-xy: (
48
+ "0": ( 0, 0 ),
49
+ "0-50": ( 0, 50% ),
50
+ "0-100": ( 0, 100% ),
51
+ "50-0": ( 50%, 0 ),
52
+ "50-50": ( 50%, 50% ),
53
+ "50-100": ( 50%, 100% ),
54
+ "100-0": ( 100%, 0 ),
55
+ "100-50": ( 100%, 50% ),
56
+ "100-100": ( 100%, 100% )
57
+ ) !default;
4
58
 
5
59
  // sass-lint:disable function-name-format
60
+ @function __translate( $val ) {
61
+ @return translate( $val );
62
+ }
6
63
  @function __translate-x( $val ) {
7
64
  @return translateX( $val );
8
65
  }
@@ -11,5 +68,6 @@ $kendo-utils-translate: map-get( $kendo-utils, "translate" ) !default;
11
68
  }
12
69
  // sass-lint:enable function-name-format
13
70
 
71
+ @include generate-utils( translate, transform, $kendo-utils-translate-xy, __translate );
14
72
  @include generate-utils( translate-x, transform, $kendo-utils-translate, __translate-x );
15
73
  @include generate-utils( translate-y, transform, $kendo-utils-translate, __translate-y );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-font-size: map-get( $kendo-utils, "font-size" ) !default;
3
+ $kendo-utils-font-size: k-map-get( $kendo-utils, "font-size" ) !default;
4
4
 
5
5
  @include generate-utils( font-size, font-size, $kendo-utils-font-size );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-font-style: map-get( $kendo-utils, "font-style" ) !default;
3
+ $kendo-utils-font-style: k-map-get( $kendo-utils, "font-style" ) !default;
4
4
 
5
5
  @include generate-utils( font, font-style, $kendo-utils-font-style );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-font-weight: map-get( $kendo-utils, "font-weight" ) !default;
3
+ $kendo-utils-font-weight: k-map-get( $kendo-utils, "font-weight" ) !default;
4
4
 
5
5
  @include generate-utils( font, font-weight, $kendo-utils-font-weight );
@@ -1,19 +1,24 @@
1
+ /// This is equivalent to `text-align: left;`. The inline contents are aligned to the left edge of the line box.
1
2
  /// @name .k-text-left
2
- /// @description This is equivalent to `text-align: left;`. The inline contents are aligned to the left edge of the line box.
3
3
  /// @group text-align
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `text-align: right;`. The inline contents are aligned to the right edge of the line box.
5
7
  /// @name .k-text-right
6
- /// @description This is equivalent to `text-align: right;`. The inline contents are aligned to the right edge of the line box.
7
8
  /// @group text-align
9
+ /// @contextType css
8
10
 
11
+ /// This is equivalent to `text-align: center;`. The inline contents are centered within the line box.
9
12
  /// @name .k-text-center
10
- /// @description This is equivalent to `text-align: center;`. The inline contents are centered within the line box.
11
13
  /// @group text-align
14
+ /// @contextType css
12
15
 
16
+ /// This is equivalent to `text-align: justify;`. The inline contents are justified. Text should be spaced to line up its left and right edges to the left and right edges of the line box, except for the last line.
13
17
  /// @name .k-text-justify
14
- /// @description This is equivalent to `text-align: justify;`. The inline contents are justified. Text should be spaced to line up its left and right edges to the left and right edges of the line box, except for the last line.
15
18
  /// @group text-align
19
+ /// @contextType css
16
20
 
17
- $kendo-utils-text-align: map-get( $kendo-utils, "text-align" ) !default;
21
+ // Text align utility classes
22
+ $kendo-utils-text-align: k-map-get( $kendo-utils, "text-align" ) !default;
18
23
 
19
24
  @include generate-utils( text, text-align, $kendo-utils-text-align );
@@ -1,17 +1,21 @@
1
1
  // TODO DOCS
2
2
 
3
+ /// This is equivalent to `text-transform: lowercase;`. Is a keyword that converts all characters to lowercase.
3
4
  /// @name k-text-lowercase
4
- /// @description This is equivalent to `text-transform: lowercase;`. Is a keyword that converts all characters to lowercase.
5
5
  /// @group text-transform
6
+ /// @contextType css
6
7
 
8
+ /// This is equivalent to `text-transform: uppercase;`. Is a keyword that converts all characters to uppercase.
7
9
  /// @name k-text-uppercase
8
- /// @description This is equivalent to `text-transform: uppercase;`. Is a keyword that converts all characters to uppercase.
9
10
  /// @group text-transform
11
+ /// @contextType css
10
12
 
13
+ /// This is equivalent to `text-transform: capitalize;`. Is a keyword that converts the first letter of each word to uppercase. Other characters remain unchanged (they retain their original case as written in the element's text).
11
14
  /// @name k-text-capitalize
12
- /// @description This is equivalent to `text-transform: capitalize;`. Is a keyword that converts the first letter of each word to uppercase. Other characters remain unchanged (they retain their original case as written in the element's text).
13
15
  /// @group text-transform
16
+ /// @contextType css
14
17
 
15
- $kendo-utils-text-transform: map-get( $kendo-utils, "text-transform" ) !default;
18
+ // Text transform utility classes
19
+ $kendo-utils-text-transform: k-map-get( $kendo-utils, "text-transform" ) !default;
16
20
 
17
21
  @include generate-utils( text, text-transform, $kendo-utils-text-transform );
@@ -1,27 +1,34 @@
1
+ /// This is equivalent to `white-space: normal;`. Sequences of white space are collapsed. Newline characters in the source are handled the same as other white space. Lines are broken as necessary to fill line boxes.
1
2
  /// @name .k-white-space-normal
2
- /// @description This is equivalent to `white-space: normal;`. Sequences of white space are collapsed. Newline characters in the source are handled the same as other white space. Lines are broken as necessary to fill line boxes.
3
3
  /// @group white-space
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `white-space: nowrap;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
5
7
  /// @name .k-white-space-nowrap
6
- /// @description This is equivalent to `white-space: nowrap;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
7
8
  /// @group white-space
9
+ /// @contextType css
8
10
 
11
+ /// This is equivalent to `white-space: pre;`. Sequences of white space are preserved. Lines are only broken at newline characters in the source and at <br> elements.
9
12
  /// @name .k-white-space-pre
10
- /// @description This is equivalent to `white-space: pre;`. Sequences of white space are preserved. Lines are only broken at newline characters in the source and at <br> elements.
11
13
  /// @group white-space
14
+ /// @contextType css
12
15
 
16
+ /// This is equivalent to `white-space: pre-wrap;`. Sequences of white space are preserved. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
13
17
  /// @name .k-white-space-pre-wrap
14
- /// @description This is equivalent to `white-space: pre-wrap;`. Sequences of white space are preserved. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
15
18
  /// @group white-space
19
+ /// @contextType css
16
20
 
21
+ /// This is equivalent to `white-space: pre-line;`. Sequences of white space are collapsed. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
17
22
  /// @name .k-white-space-pre-line
18
- /// @description This is equivalent to `white-space: pre-line;`. Sequences of white space are collapsed. Lines are broken at newline characters, at <br>, and as necessary to fill line boxes.
19
23
  /// @group white-space
24
+ /// @contextType css
20
25
 
26
+ /// This is equivalent to `white-space: break-spaces;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
21
27
  /// @name .k-white-space-break-spaces
22
- /// @description This is equivalent to `white-space: break-spaces;`. Collapses white space as for normal, but suppresses line breaks (text wrapping) within the source.
23
28
  /// @group white-space
29
+ /// @contextType css
24
30
 
25
- $kendo-utils-white-space: map-get( $kendo-utils, "white-space" ) !default;
31
+ // White space utility classes
32
+ $kendo-utils-white-space: k-map-get( $kendo-utils, "white-space" ) !default;
26
33
 
27
34
  @include generate-utils( white-space, white-space, $kendo-utils-white-space );