@progress/kendo-theme-utils 5.12.1-dev.0 → 5.12.1-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.
Files changed (80) hide show
  1. package/dist/all.css +4800 -898
  2. package/dist/all.scss +1584 -237
  3. package/package.json +6 -3
  4. package/scss/_functions.scss +1 -37
  5. package/scss/_mixins.scss +7 -7
  6. package/scss/_variables.scss +75 -33
  7. package/scss/accessibility/_screen-readers.scss +2 -2
  8. package/scss/background/_background-color.scss +5 -0
  9. package/scss/background/index.import.scss +1 -0
  10. package/scss/border/_border-color.scss +1 -1
  11. package/scss/border/_border-radius.scss +1 -1
  12. package/scss/border/_border-style.scss +1 -1
  13. package/scss/border/_border-width.scss +8 -1
  14. package/scss/border/_outline-color.scss +1 -1
  15. package/scss/border/_outline-offset.scss +1 -1
  16. package/scss/border/_outline-style.scss +1 -1
  17. package/scss/border/_outline-width.scss +1 -1
  18. package/scss/flex-grid/_align-content.scss +1 -1
  19. package/scss/flex-grid/_align-items.scss +1 -1
  20. package/scss/flex-grid/_align-self.scss +1 -1
  21. package/scss/flex-grid/_flex-basis.scss +6 -5
  22. package/scss/flex-grid/_flex-direction.scss +15 -5
  23. package/scss/flex-grid/_flex-grow.scss +6 -3
  24. package/scss/flex-grid/_flex-shrink.scss +6 -3
  25. package/scss/flex-grid/_flex-wrap.scss +8 -4
  26. package/scss/flex-grid/_flex.scss +10 -5
  27. package/scss/flex-grid/_gap.scss +1 -1
  28. package/scss/flex-grid/_grid-auto-columns.scss +1 -1
  29. package/scss/flex-grid/_grid-auto-flow.scss +1 -1
  30. package/scss/flex-grid/_grid-auto-rows.scss +1 -1
  31. package/scss/flex-grid/_grid-column-start-end.scss +8 -3
  32. package/scss/flex-grid/_grid-row-start-end.scss +9 -3
  33. package/scss/flex-grid/_grid-template-columns.scss +1 -1
  34. package/scss/flex-grid/_grid-template-rows.scss +1 -1
  35. package/scss/flex-grid/_justify-content.scss +1 -1
  36. package/scss/flex-grid/_justify-items.scss +1 -1
  37. package/scss/flex-grid/_justify-self.scss +1 -1
  38. package/scss/flex-grid/_order.scss +20 -2
  39. package/scss/flex-grid/_place-content.scss +1 -1
  40. package/scss/flex-grid/_place-items.scss +1 -1
  41. package/scss/flex-grid/_place-self.scss +1 -1
  42. package/scss/index.import.scss +1 -1
  43. package/scss/interactivity/_accent-color.scss +1 -1
  44. package/scss/interactivity/_appearance.scss +6 -3
  45. package/scss/interactivity/_caret-color.scss +1 -1
  46. package/scss/interactivity/_cursor.scss +1 -1
  47. package/scss/interactivity/_pointer-events.scss +8 -3
  48. package/scss/interactivity/_resize.scss +12 -5
  49. package/scss/interactivity/_scroll.scss +6 -6
  50. package/scss/interactivity/_touch-action.scss +6 -3
  51. package/scss/interactivity/_user-select.scss +16 -8
  52. package/scss/interactivity/_will-change.scss +1 -1
  53. package/scss/layout/_aspect-ratio.scss +26 -2
  54. package/scss/layout/_clear.scss +22 -2
  55. package/scss/layout/_display.scss +32 -12
  56. package/scss/layout/_float.scss +17 -2
  57. package/scss/layout/_overflow.scss +32 -16
  58. package/scss/layout/_position.scss +53 -8
  59. package/scss/layout/_visibility.scss +1 -1
  60. package/scss/layout/_zindex.scss +1 -1
  61. package/scss/sizing/_height.scss +3 -3
  62. package/scss/sizing/_width.scss +3 -3
  63. package/scss/spacing/_margin.scss +1 -1
  64. package/scss/spacing/_padding.scss +1 -1
  65. package/scss/table/_border-collapse.scss +1 -1
  66. package/scss/table/_table-layout.scss +8 -3
  67. package/scss/transform/_flip.scss +6 -3
  68. package/scss/transform/_origin.scss +1 -1
  69. package/scss/transform/_rotate.scss +40 -2
  70. package/scss/transform/_scale.scss +18 -5
  71. package/scss/transform/_skew.scss +1 -1
  72. package/scss/transform/_translate.scss +60 -2
  73. package/scss/typography/_font-size.scss +5 -1
  74. package/scss/typography/_font-style.scss +1 -1
  75. package/scss/typography/_font-weight.scss +5 -1
  76. package/scss/typography/_text-align.scss +12 -5
  77. package/scss/typography/_text-color.scss +9 -0
  78. package/scss/typography/_text-transform.scss +9 -5
  79. package/scss/typography/_white-space.scss +21 -7
  80. package/scss/typography/index.import.scss +7 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-theme-utils",
3
3
  "description": "Utility first library alongside Kendo UI",
4
- "version": "5.12.1-dev.0",
4
+ "version": "5.12.1-dev.2",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -32,13 +32,16 @@
32
32
  "scripts": {
33
33
  "build": "sass-build",
34
34
  "sass": "sass-build",
35
+ "docs": "node ../../scripts/sassdoc.js",
36
+ "predocs": "npm run resolve-variables",
37
+ "resolve-variables": "node ../../scripts/resolve-variables.js",
35
38
  "nuget-pack": "jq '.version' package.json | xargs nuget pack package.nuspec -Version",
36
39
  "nuget-push": "nuget push *.nupkg -ApiKey $NUGET_API_KEY -Source $NUGET_FEED -SkipDuplicate",
37
40
  "prepublishOnly": "node ../../scripts/themes-prepublish.js",
38
41
  "postpublish": "echo 'no postpublish for utils'"
39
42
  },
40
43
  "dependencies": {
41
- "@progress/kendo-theme-core": "^5.12.1-dev.0"
44
+ "@progress/kendo-theme-core": "^5.12.1-dev.2"
42
45
  },
43
- "gitHead": "342125ccbda2aec05866a2bb2c5e6e0c6f64b2e3"
46
+ "gitHead": "14365a5e53996a453f9d6ad72894a3e4666e6ede"
44
47
  }
@@ -1,37 +1 @@
1
- // Replace `$search` with `$replace` in `$string`
2
- // Used on our SVG icon backgrounds for custom forms.
3
- //
4
- // @author Hugo Giraudel
5
- // @param {String} $string - Initial string
6
- // @param {String} $search - Substring to replace
7
- // @param {String} $replace ('') - New value
8
- // @return {String} - Updated string
9
- @function str-replace($string, $search, $replace: "") {
10
- @if type-of( $string ) == number {
11
- $string: $string + "";
12
- }
13
-
14
- $index: str-index($string, $search);
15
-
16
- @if $index {
17
- @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
18
- }
19
-
20
- @return $string;
21
- }
22
-
23
-
24
- $_kendo-escape-class-name: (
25
- ".": "\\.",
26
- "/": "\\/"
27
- );
28
-
29
- @function escape-class-name( $text ) {
30
- $_text: $text;
31
-
32
- @each $char, $rep in $_kendo-escape-class-name {
33
- $_text: str-replace( $_text, unquote( $char ), unquote( $rep ) );
34
- }
35
-
36
- @return $_text;
37
- }
1
+ @import "@progress/kendo-theme-core/scss/functions/index.import.scss";
package/scss/_mixins.scss CHANGED
@@ -1,25 +1,25 @@
1
1
  @mixin generate-utils( $name, $props, $values, $function: "", $important: $kendo-important ) {
2
2
  @if $values {
3
- $_props: if( type-of($props) == list, $props, ( $props ) );
4
- $_fn: if( function-exists( $function ), get-function( $function ), null );
3
+ $_props: if( k-meta-type-of($props) == list, $props, ( $props ) );
4
+ $_fn: if( k-meta-function-exists( $function ), k-meta-get-function( $function ), null );
5
5
 
6
6
  @each $key, $val in $values {
7
- $_key: escape-class-name( $key );
8
- $_val: if( type-of($values) == list, $key, $val );
9
- $_name: escape-class-name( $name );
7
+ $_key: k-escape-class-name( $key );
8
+ $_val: if( k-meta-type-of($values) == list, $key, $val );
9
+ $_name: k-escape-class-name( $name );
10
10
  $_selector: if( $_key == DEFAULT, #{$kendo-prefix}#{$_name}, #{$kendo-prefix}#{$_name}-#{$_key});
11
11
 
12
12
  @if $important != only {
13
13
  .#{$_selector} {
14
14
  @each $prop in $_props {
15
- #{$prop}: if( $_fn, call($_fn, $_val), $_val );
15
+ #{$prop}: if( $_fn, k-meta-call($_fn, $_val), $_val );
16
16
  }
17
17
  }
18
18
  }
19
19
  @if $important {
20
20
  .\!#{$_selector} {
21
21
  @each $prop in $_props {
22
- #{$prop}: if( $_fn, call($_fn, $_val), $_val ) !important; // sass-lint:disable-line no-important
22
+ #{$prop}: if( $_fn, k-meta-call($_fn, $_val), $_val ) !important; // sass-lint:disable-line no-important
23
23
  }
24
24
  }
25
25
  }
@@ -1,33 +1,49 @@
1
1
  $kendo-prefix: k- !default;
2
2
  $kendo-important: true !default;
3
- $kendo-colors: () !default;
3
+
4
+ $kendo-theme-colors: () !default;
5
+
6
+ $kendo-font-sizes: () !default;
7
+
4
8
  $kendo-spacing: (
9
+ // sass-lint:disable-block leading-zero
5
10
  0: 0,
6
- 0.5: .125rem, // sass-lint:disable-line leading-zero
11
+ 1px: 1px,
12
+ 0.5: .125rem,
7
13
  1: .25rem,
8
14
  1.5: .375rem,
9
15
  2: .5rem,
10
- 2.5: 6.25rem,
16
+ 2.5: .625rem,
11
17
  3: .75rem,
12
18
  3.5: .875rem,
13
19
  4: 1rem,
20
+ 4.5: 1.125rem,
14
21
  5: 1.25rem,
22
+ 5.5: 1.375rem,
15
23
  6: 1.5rem,
24
+ 6.5: 1.625rem,
16
25
  7: 1.75rem,
26
+ 7.5: 1.875rem,
17
27
  8: 2rem,
18
28
  9: 2.25rem,
19
29
  10: 2.5rem,
20
30
  11: 2.75rem,
21
31
  12: 3rem,
32
+ 13: 3.25rem,
22
33
  14: 3.5rem,
34
+ 15: 3.75rem,
23
35
  16: 4rem,
36
+ 17: 4.25rem,
37
+ 18: 4.5rem,
38
+ 19: 4.75rem,
24
39
  20: 5rem,
25
- 24: 6rem,
26
- px: 1px,
27
- thin: .125rem,
28
- hair: .0625rem
40
+ 21: 5.25rem,
41
+ 22: 5.5rem,
42
+ 23: 5.75rem,
43
+ 24: 6rem
29
44
  ) !default;
30
- $kendo-sizing: map-merge( $kendo-spacing, (
45
+
46
+ $kendo-sizing: k-map-merge( $kendo-spacing, (
31
47
  // sass-lint:disable-block indentation
32
48
  "auto": auto,
33
49
  "1/2": 50%,
@@ -62,6 +78,15 @@ $kendo-sizing: map-merge( $kendo-spacing, (
62
78
  "fit": fit-content
63
79
  )) !default;
64
80
 
81
+ $kendo-border-radii: (
82
+ DEFAULT: .25rem,
83
+ 0: 0,
84
+ sm: .125rem,
85
+ md: .25rem,
86
+ lg: .5rem,
87
+ full: 9999px
88
+ ) !default;
89
+
65
90
  //
66
91
 
67
92
  $kendo-utils: (
@@ -72,8 +97,9 @@ $kendo-utils: (
72
97
  // Layout
73
98
  "aspect-ratio": (
74
99
  auto: auto,
75
- square: unquote("1 / 1"),
76
- video: unquote("16 / 9")
100
+ 1: 1,
101
+ square: k-string-unquote("1 / 1"),
102
+ video: k-string-unquote("16 / 9")
77
103
  ),
78
104
  "container": (),
79
105
  "columns": (),
@@ -272,7 +298,7 @@ $kendo-utils: (
272
298
  10: span 10 / span 10,
273
299
  11: span 11 / span 11,
274
300
  12: span 12 / span 12,
275
- full: unquote("1 / -1"),
301
+ full: k-string-unquote("1 / -1"),
276
302
  auto: auto
277
303
  ),
278
304
  "grid-row-start": (
@@ -327,7 +353,8 @@ $kendo-utils: (
327
353
  row: row,
328
354
  col: column,
329
355
  row-dense: row dense,
330
- col-dense: column dense
356
+ col-dense: column dense,
357
+ unset: unset
331
358
  ),
332
359
  "grid-auto-columns": (
333
360
  auto: auto,
@@ -424,7 +451,7 @@ $kendo-utils: (
424
451
  "space-between": (),
425
452
 
426
453
  // Sizing
427
- "width": map-merge( $kendo-sizing, (
454
+ "width": k-map-merge( $kendo-sizing, (
428
455
  // sass-lint:disable-block indentation
429
456
  screen: 100vw
430
457
  )),
@@ -445,7 +472,7 @@ $kendo-utils: (
445
472
  max: max-content,
446
473
  fit: fit-content
447
474
  ),
448
- "height": map-merge( $kendo-sizing, (
475
+ "height": k-map-merge( $kendo-sizing, (
449
476
  // sass-lint:disable-block indentation
450
477
  screen: 100vh
451
478
  )),
@@ -497,7 +524,14 @@ $kendo-utils: (
497
524
  center,
498
525
  justify
499
526
  ),
500
- "text-color": (),
527
+ "text-color": k-map-merge( $kendo-theme-colors, (
528
+ // sass-lint:disable-block indentation
529
+ "inherit": inherit,
530
+ "current": currentColor,
531
+ "transparent": transparent,
532
+ "black": black,
533
+ "white": white
534
+ )),
501
535
  "text-decoration": (),
502
536
  "text-decoration-width": (),
503
537
  "text-decoration-style": (),
@@ -523,6 +557,13 @@ $kendo-utils: (
523
557
  "word-break": (),
524
558
 
525
559
  // Background
560
+ "background-color": k-map-merge( $kendo-theme-colors, (
561
+ // sass-lint:disable-block indentation
562
+ "inherit": inherit,
563
+ "transparent": transparent,
564
+ "black": black,
565
+ "white": white
566
+ )),
526
567
 
527
568
  // Border
528
569
  "border-width": (
@@ -540,16 +581,15 @@ $kendo-utils: (
540
581
  hidden,
541
582
  none
542
583
  ),
543
- "border-color": (),
544
- "border-radius": (
545
- DEFAULT: .25rem,
546
- 0: 0,
547
- sm: .125rem,
548
- md: .25rem,
549
- lg: .5rem,
550
- none: 0,
551
- full: 9999px
552
- ),
584
+ "border-color": k-map-merge( $kendo-theme-colors, (
585
+ // sass-lint:disable-block indentation
586
+ "inherit": inherit,
587
+ "current": currentColor,
588
+ "transparent": transparent,
589
+ "black": black,
590
+ "white": white
591
+ )),
592
+ "border-radius": $kendo-border-radii,
553
593
  "outline-width": (
554
594
  DEFAULT: 1px,
555
595
  0: 0,
@@ -596,13 +636,15 @@ $kendo-utils: (
596
636
  // Transform
597
637
  "flip": true,
598
638
  "scale": (
599
- "0",
600
- ".25",
601
- ".5",
602
- ".75",
603
- "1",
604
- "1.25",
605
- "1.5"
639
+ // sass-lint:disable-block leading-zero
640
+ 0: 0,
641
+ 0.25: .25,
642
+ 0.5: .5,
643
+ 0.75: .75,
644
+ 1: 1,
645
+ 1.25: 1.25,
646
+ 1.5: 1.5,
647
+ 2: 2
606
648
  ),
607
649
  "rotate": (
608
650
  0: 0deg,
@@ -614,7 +656,7 @@ $kendo-utils: (
614
656
  270: 270deg,
615
657
  315: 315deg
616
658
  ),
617
- "translate": map-remove( $kendo-sizing, "auto", "min", "max", "fit" ),
659
+ "translate": k-map-remove( $kendo-sizing, "auto", "min", "max", "fit" ),
618
660
  "skew": (
619
661
  0: 0deg,
620
662
  1: 1deg,
@@ -1,8 +1,8 @@
1
- $kendo-utils-accessibility: map-get( $kendo-utils, "accessibility" ) !default;
1
+ $kendo-utils-accessibility: k-map-get( $kendo-utils, "accessibility" ) !default;
2
2
 
3
3
  @if $kendo-utils-accessibility {
4
+ /// This class could be assigned to elements which should be visually hidden, but remain accessible for screen readers.
4
5
  /// @name .k-sr-only
5
- /// @description This class could be assigned to elements which should be visually hidden, but remain accessible for screen readers.
6
6
  /// @group accessibility
7
7
  .#{$kendo-prefix}sr-only {
8
8
  margin: -1px;
@@ -0,0 +1,5 @@
1
+ // TODO DOCS
2
+
3
+ $kendo-utils-background-color: k-map-get( $kendo-utils, "background-color" ) !default;
4
+
5
+ @include generate-utils( bg, background-color, $kendo-utils-background-color );
@@ -0,0 +1 @@
1
+ @import "./_background-color.scss";
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-border-color: map-get( $kendo-utils, "border-color" ) !default;
3
+ $kendo-utils-border-color: k-map-get( $kendo-utils, "border-color" ) !default;
4
4
 
5
5
  @include generate-utils( border, border-color, $kendo-utils-border-color );
6
6
  @include generate-utils( border-t, border-top-color, $kendo-utils-border-color );
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-border-radius: map-get( $kendo-utils, "border-radius" ) !default;
3
+ $kendo-utils-border-radius: k-map-get( $kendo-utils, "border-radius" ) !default;
4
4
 
5
5
  @include generate-utils( rounded, border-radius, $kendo-utils-border-radius );
6
6
  @include generate-utils( rounded-tl, border-top-left-radius, $kendo-utils-border-radius );
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-border-style: map-get( $kendo-utils, "border-style" ) !default;
3
+ $kendo-utils-border-style: k-map-get( $kendo-utils, "border-style" ) !default;
4
4
 
5
5
  @include generate-utils( border, border-style, $kendo-utils-border-style );
6
6
  @include generate-utils( border-t, border-top-style, $kendo-utils-border-style );
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-border-width: map-get( $kendo-utils, "border-width" ) !default;
3
+ $kendo-utils-border-width: k-map-get( $kendo-utils, "border-width" ) !default;
4
4
 
5
5
  @include generate-utils( border, border-width, $kendo-utils-border-width );
6
6
  @include generate-utils( border-t, border-top-width, $kendo-utils-border-width );
@@ -9,3 +9,10 @@ $kendo-utils-border-width: map-get( $kendo-utils, "border-width" ) !default;
9
9
  @include generate-utils( border-l, border-left-width, $kendo-utils-border-width );
10
10
  @include generate-utils( border-x, border-inline-width, $kendo-utils-border-width );
11
11
  @include generate-utils( border-y, border-block-width, $kendo-utils-border-width );
12
+
13
+
14
+ // Legacy aliases
15
+ @include generate-utils( border-top, border-top-width, $kendo-utils-border-width );
16
+ @include generate-utils( border-right, border-right-width, $kendo-utils-border-width );
17
+ @include generate-utils( border-bottom, border-bottom-width, $kendo-utils-border-width );
18
+ @include generate-utils( border-left, border-left-width, $kendo-utils-border-width );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-outline-color: map-get( $kendo-utils, "outline-color" ) !default;
3
+ $kendo-utils-outline-color: k-map-get( $kendo-utils, "outline-color" ) !default;
4
4
 
5
5
  @include generate-utils( outline, outline-color, $kendo-utils-outline-color );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-outline-offset: map-get( $kendo-utils, "outline-offset" ) !default;
3
+ $kendo-utils-outline-offset: k-map-get( $kendo-utils, "outline-offset" ) !default;
4
4
 
5
5
  @include generate-utils( outline-offset, outline-offset, $kendo-utils-outline-offset );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-outline-style: map-get( $kendo-utils, "outline-style" ) !default;
3
+ $kendo-utils-outline-style: k-map-get( $kendo-utils, "outline-style" ) !default;
4
4
 
5
5
  @include generate-utils( outline, outline-style, $kendo-utils-outline-style );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-outline-width: map-get( $kendo-utils, "outline-width" ) !default;
3
+ $kendo-utils-outline-width: k-map-get( $kendo-utils, "outline-width" ) !default;
4
4
 
5
5
  @include generate-utils( outline, outline-width, $kendo-utils-outline-width );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-align-content: map-get( $kendo-utils, "align-content" ) !default;
3
+ $kendo-utils-align-content: k-map-get( $kendo-utils, "align-content" ) !default;
4
4
 
5
5
  @include generate-utils( align-content, align-content, $kendo-utils-align-content );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-align-items: map-get( $kendo-utils, "align-items" ) !default;
3
+ $kendo-utils-align-items: k-map-get( $kendo-utils, "align-items" ) !default;
4
4
 
5
5
  @include generate-utils( align-items, align-items, $kendo-utils-align-items );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-align-self: map-get( $kendo-utils, "align-self" ) !default;
3
+ $kendo-utils-align-self: k-map-get( $kendo-utils, "align-self" ) !default;
4
4
 
5
5
  @include generate-utils( align-self, align-self, $kendo-utils-align-self );
@@ -1,14 +1,15 @@
1
+ /// This is equivalent to `flex-basis: auto`. It specifies the initial size of the flex item, before any available space is distributed according to the flex factors. It sizes the element according to its size property.
1
2
  /// @name .k-flex-basis-auto
2
- /// @description This is equivalent to `flex-basis: auto`. It specifies the initial size of the flex item, before any available space is distributed according to the flex factors. It sizes the element according to its size property.
3
3
  /// @group flex-basis
4
+ /// @contextType css
4
5
 
5
- // TODO DOCS
6
-
6
+ /// This is equivalent to `flex-basis: 0`. It specifies the initial size of the flex item, before any available space is distributed according to the flex factors. It disregards the element' size property.
7
7
  /// @name .k-flex-basis-0
8
- /// @description This is equivalent to `flex-basis: 0`. It specifies the initial size of the flex item, before any available space is distributed according to the flex factors. It disregards the element' size property.
9
8
  /// @group flex-basis
9
+ /// @contextType css
10
10
 
11
- $kendo-utils-flex-basis: map-get( $kendo-utils, "flex-basis" ) !default;
11
+ // Flex basis utility classes
12
+ $kendo-utils-flex-basis: k-map-get( $kendo-utils, "flex-basis" ) !default;
12
13
 
13
14
  @include generate-utils( basis, flex-basis, $kendo-utils-flex-basis );
14
15
  @include generate-utils( flex-basis, flex-basis, $kendo-utils-flex-basis );
@@ -1,19 +1,29 @@
1
+ /// This is equivalent to `flex-direction: row`. This establishes the main-axis to be horizontal, thus defining the direction flex items are placed in the flex container: left to right in `ltr`; right to left in `rtl`.
1
2
  /// @name .k-flex-row
2
- /// @description This is equivalent to `flex-direction: row`. This establishes the main-axis to be horizontal, thus defining the direction flex items are placed in the flex container: left to right in `ltr`; right to left in `rtl`.
3
3
  /// @group flex-direction
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `flex-direction: row-reverse`. This establishes the main-axis to be horizontal, thus defining the direction flex items are placed in the flex container: right to left in `ltr`; left to right in `rtl`.
5
7
  /// @name .k-flex-row-reverse
6
- /// @description This is equivalent to `flex-direction: row-reverse`. This establishes the main-axis to be horizontal, thus defining the direction flex items are placed in the flex container: right to left in `ltr`; left to right in `rtl`.
7
8
  /// @group flex-direction
9
+ /// @contextType css
8
10
 
11
+ /// This is equivalent to `flex-direction: column`. This establishes the main-axis to be vertical, thus defining the direction flex items are placed in the flex container: top to bottom.
9
12
  /// @name .k-flex-col
10
- /// @description This is equivalent to `flex-direction: column`. This establishes the main-axis to be vertical, thus defining the direction flex items are placed in the flex container: top to bottom.
11
13
  /// @group flex-direction
14
+ /// @contextType css
12
15
 
16
+ /// This is equivalent to `flex-direction: column-reverse`. This establishes the main-axis to be vertical, thus defining the direction flex items are placed in the flex container: bottom to top.
13
17
  /// @name .k-flex-col-reverse
14
- /// @description This is equivalent to `flex-direction: column-reverse`. This establishes the main-axis to be vertical, thus defining the direction flex items are placed in the flex container: bottom to top.
15
18
  /// @group flex-direction
19
+ /// @contextType css
16
20
 
17
- $kendo-utils-flex-direction: map-get( $kendo-utils, "flex-direction" ) !default;
21
+ // Flex direction utility classes
22
+ $kendo-utils-flex-direction: k-map-get( $kendo-utils, "flex-direction" ) !default;
18
23
 
19
24
  @include generate-utils( flex, flex-direction, $kendo-utils-flex-direction );
25
+
26
+
27
+ // Legacy aliases
28
+ .#{$kendo-prefix}flex-column { @extend .#{$kendo-prefix}flex-col !optional; }
29
+ .#{$kendo-prefix}flex-column-reverse { @extend .#{$kendo-prefix}flex-col-reverse !optional; }
@@ -1,12 +1,15 @@
1
+ /// This is equivalent to `flex-grow: 1`. It defines the ability for a flex item to grow if necessary. It accepts a unitless value that serves as a proportion. It dictates what amount of the available space inside the flex container the item should take up.
1
2
  /// @name .k-flex-grow
2
- /// @description This is equivalent to `flex-grow: 1`. It defines the ability for a flex item to grow if necessary. It accepts a unitless value that serves as a proportion. It dictates what amount of the available space inside the flex container the item should take up.
3
3
  /// @group flex-grow
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `flex-grow: 0`. The item will not grow.
5
7
  /// @name .k-flex-grow-0
6
- /// @description This is equivalent to `flex-grow: 0`. The item will not grow.
7
8
  /// @group flex-grow
9
+ /// @contextType css
8
10
 
9
- $kendo-utils-flex-grow: map-get( $kendo-utils, "flex-grow" ) !default;
11
+ // Flex grow utility classes
12
+ $kendo-utils-flex-grow: k-map-get( $kendo-utils, "flex-grow" ) !default;
10
13
 
11
14
  @include generate-utils( grow, flex-grow, $kendo-utils-flex-grow );
12
15
  @include generate-utils( flex-grow, flex-grow, $kendo-utils-flex-grow );
@@ -1,12 +1,15 @@
1
+ /// This is equivalent to `flex-shrink: 1`. It determines how much the flex item will shrink relative to the rest of the flex items in the flex container when there isn't enough space on the row.
1
2
  /// @name .k-flex-shrink
2
- /// @description This is equivalent to `flex-shrink: 1`. It determines how much the flex item will shrink relative to the rest of the flex items in the flex container when there isn't enough space on the row.
3
3
  /// @group flex-shrink
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `flex-shrink: 0`. The item will not shrink.
5
7
  /// @name .k-flex-shrink-0
6
- /// @description This is equivalent to `flex-shrink: 0`. The item will not shrink.
7
8
  /// @group flex-shrink
9
+ /// @contextType css
8
10
 
9
- $kendo-utils-flex-shrink: map-get( $kendo-utils, "flex-shrink" ) !default;
11
+ // Flex shrink utility classes
12
+ $kendo-utils-flex-shrink: k-map-get( $kendo-utils, "flex-shrink" ) !default;
10
13
 
11
14
  @include generate-utils( shrink, flex-shrink, $kendo-utils-flex-shrink );
12
15
  @include generate-utils( flex-shrink, flex-shrink, $kendo-utils-flex-shrink );
@@ -1,15 +1,19 @@
1
+ /// This is equivalent to `flex-wrap: wrap`. It allows flex items to wrap as needed onto multiple lines, from top to bottom.
1
2
  /// @name .k-flex-wrap
2
- /// @description This is equivalent to `flex-wrap: wrap`. It allows flex items to wrap as needed onto multiple lines, from top to bottom.
3
3
  /// @group flex-wrap
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `flex-wrap: nowrap`. All flex items will be on one line.
5
7
  /// @name .k-flex-nowrap
6
- /// @description This is equivalent to `flex-wrap: nowrap`. All flex items will be on one line.
7
8
  /// @group flex-wrap
9
+ /// @contextType css
8
10
 
11
+ /// This is equivalent to `flex-wrap: wrap-reverse`. It allows flex items to wrap as needed onto multiple lines, from bottom to top.
9
12
  /// @name .k-flex-wrap-reverse
10
- /// @description This is equivalent to `flex-wrap: wrap-reverse`. It allows flex items to wrap as needed onto multiple lines, from bottom to top.
11
13
  /// @group flex-wrap
14
+ /// @contextType css
12
15
 
13
- $kendo-utils-flex-wrap: map-get( $kendo-utils, "flex-wrap" ) !default;
16
+ // Flex wrap utility classes
17
+ $kendo-utils-flex-wrap: k-map-get( $kendo-utils, "flex-wrap" ) !default;
14
18
 
15
19
  @include generate-utils( flex, flex-wrap, $kendo-utils-flex-wrap );
@@ -1,19 +1,24 @@
1
+ /// This is equivalent to `flex: 1 1 0%`. It sizes the item not based on its `width`/`height` properties, but based on the available space. This is similar to `flex: 1 1 auto` except it is allowed to shrink beyond its initial size.
1
2
  /// @name .k-flex-1
2
- /// @description This is equivalent to `flex: 1 1 0%`. It sizes the item not based on its `width`/`height` properties, but based on the available space. This is similar to `flex: 1 1 auto` except it is allowed to shrink beyond its initial size.
3
3
  /// @group flex
4
+ /// @contextType css
4
5
 
6
+ /// This is equivalent to `flex: 1 1 auto`. Beware, this is not the default value. It sizes the item based on its `width`/`height` properties, but makes it fully flexible so that they absorb any extra space along the main axis. If all items are either `flex: auto`, `flex: initial`, or `flex: none`, any remaining space after the items have been sized will be distributed evenly to the items with `flex: auto`.
5
7
  /// @name .k-flex-auto
6
- /// @description This is equivalent to `flex: 1 1 auto`. Beware, this is not the default value. It sizes the item based on its `width`/`height` properties, but makes it fully flexible so that they absorb any extra space along the main axis. If all items are either `flex: auto`, `flex: initial`, or `flex: none`, any remaining space after the items have been sized will be distributed evenly to the items with `flex: auto`.
7
8
  /// @group flex
9
+ /// @contextType css
8
10
 
11
+ /// This is the same as `flex: initial;` and the shorthand for the default value: `flex: 0 1 auto`. It sizes the item based on its `width`/`height` properties (or its content if not set). It makes the flex item inflexible when there is some free space left, but allows it to shrink to its minimum when there is not enough space. The alignment abilities or `auto` margins can be used to align flex items along the main axis.
9
12
  /// @name .k-flex-initial
10
- /// @description This is the same as `flex: initial;` and the shorthand for the default value: `flex: 0 1 auto`. It sizes the item based on its `width`/`height` properties (or its content if not set). It makes the flex item inflexible when there is some free space left, but allows it to shrink to its minimum when there is not enough space. The alignment abilities or `auto` margins can be used to align flex items along the main axis.
11
13
  /// @group flex
14
+ /// @contextType css
12
15
 
16
+ /// This is equivalent to `flex: 0 0 auto`. It sizes the item according to its `width`/`height` properties, but makes it fully inflexible. This is similar to `flex: initial` except it is not allowed to shrink, even in an overflow situation.
13
17
  /// @name .k-flex-none
14
- /// @description This is equivalent to `flex: 0 0 auto`. It sizes the item according to its `width`/`height` properties, but makes it fully inflexible. This is similar to `flex: initial` except it is not allowed to shrink, even in an overflow situation.
15
18
  /// @group flex
19
+ /// @contextType css
16
20
 
17
- $kendo-utils-flex: map-get( $kendo-utils, "flex" ) !default;
21
+ // Flex utility classes
22
+ $kendo-utils-flex: k-map-get( $kendo-utils, "flex" ) !default;
18
23
 
19
24
  @include generate-utils( flex, flex, $kendo-utils-flex );
@@ -1,6 +1,6 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-gap: map-get( $kendo-utils, "gap" ) !default;
3
+ $kendo-utils-gap: k-map-get( $kendo-utils, "gap" ) !default;
4
4
 
5
5
  @include generate-utils( gap, gap, $kendo-utils-gap );
6
6
  @include generate-utils( gap-x, column-gap, $kendo-utils-gap );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-grid-auto-columns: map-get( $kendo-utils, "grid-auto-columns" ) !default;
3
+ $kendo-utils-grid-auto-columns: k-map-get( $kendo-utils, "grid-auto-columns" ) !default;
4
4
 
5
5
  @include generate-utils( grid-auto-cols, grid-auto-columns, $kendo-utils-grid-auto-columns );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-grid-auto-flow: map-get( $kendo-utils, "grid-auto-flow" ) !default;
3
+ $kendo-utils-grid-auto-flow: k-map-get( $kendo-utils, "grid-auto-flow" ) !default;
4
4
 
5
5
  @include generate-utils( grid-flow, grid-auto-flow, $kendo-utils-grid-auto-flow );
@@ -1,5 +1,5 @@
1
1
  // TODO DOCS
2
2
 
3
- $kendo-utils-grid-auto-rows: map-get( $kendo-utils, "grid-auto-rows" ) !default;
3
+ $kendo-utils-grid-auto-rows: k-map-get( $kendo-utils, "grid-auto-rows" ) !default;
4
4
 
5
5
  @include generate-utils( grid-auto-rows, grid-auto-rows, $kendo-utils-grid-auto-rows );