igniteui-theming 21.0.0-beta.2 → 21.0.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.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/sass/themes/_config.scss +15 -4
  3. package/sass/themes/_functions.scss +0 -20
  4. package/sass/themes/_mixins.scss +5 -5
  5. package/sass/themes/components/avatar/_avatar-theme.scss +4 -1
  6. package/sass/themes/components/badge/_badge-theme.scss +4 -1
  7. package/sass/themes/components/banner/_banner-theme.scss +4 -1
  8. package/sass/themes/components/bottom-nav/_bottom-nav-theme.scss +4 -1
  9. package/sass/themes/components/button/_button-theme.scss +2 -1
  10. package/sass/themes/components/button/_contained-button-theme.scss +8 -1
  11. package/sass/themes/components/button/_fab-button-theme.scss +8 -1
  12. package/sass/themes/components/button/_flat-button-theme.scss +8 -1
  13. package/sass/themes/components/button/_outlined-button-theme.scss +8 -1
  14. package/sass/themes/components/button-group/_button-group-theme.scss +4 -1
  15. package/sass/themes/components/calendar/_calendar-theme.scss +10 -1
  16. package/sass/themes/components/card/_card-theme.scss +4 -1
  17. package/sass/themes/components/carousel/_carousel-theme.scss +4 -1
  18. package/sass/themes/components/checkbox/_checkbox-theme.scss +4 -1
  19. package/sass/themes/components/chip/_chip-theme.scss +4 -1
  20. package/sass/themes/components/column-actions/_column-actions-theme.scss +4 -1
  21. package/sass/themes/components/combo/_combo-theme.scss +4 -1
  22. package/sass/themes/components/date-range-picker/_date-range-picker-theme.scss +4 -1
  23. package/sass/themes/components/dialog/_dialog-theme.scss +4 -1
  24. package/sass/themes/components/divider/_divider-theme.scss +4 -1
  25. package/sass/themes/components/dock-manager/_dock-manager-theme.scss +4 -2
  26. package/sass/themes/components/drop-down/_drop-down-theme.scss +4 -1
  27. package/sass/themes/components/expansion-panel/_expansion-panel-theme.scss +4 -1
  28. package/sass/themes/components/grid/_grid-summary-theme.scss +4 -1
  29. package/sass/themes/components/grid/_grid-theme.scss +12 -1
  30. package/sass/themes/components/grid/_grid-toolbar-theme.scss +4 -1
  31. package/sass/themes/components/highlight/_highlight-theme.scss +4 -1
  32. package/sass/themes/components/icon/_icon-theme.scss +4 -1
  33. package/sass/themes/components/icon-button/_contained-icon-button-theme.scss +36 -1
  34. package/sass/themes/components/icon-button/_flat-icon-button-theme.scss +36 -1
  35. package/sass/themes/components/icon-button/_icon-button-theme.scss +24 -1
  36. package/sass/themes/components/icon-button/_outlined-icon-button-theme.scss +36 -1
  37. package/sass/themes/components/input/_input-theme.scss +9 -1
  38. package/sass/themes/components/label/_label-theme.scss +4 -1
  39. package/sass/themes/components/list/_list-theme.scss +4 -1
  40. package/sass/themes/components/navbar/_navbar-theme.scss +4 -1
  41. package/sass/themes/components/navdrawer/_navdrawer-theme.scss +5 -2
  42. package/sass/themes/components/overlay/_overlay-theme.scss +8 -1
  43. package/sass/themes/components/paginator/_paginator-theme.scss +4 -1
  44. package/sass/themes/components/progress/_circular-theme.scss +12 -2
  45. package/sass/themes/components/progress/_linear-theme.scss +4 -3
  46. package/sass/themes/components/query-builder/_query-builder-theme.scss +8 -2
  47. package/sass/themes/components/radio/_radio-theme.scss +4 -1
  48. package/sass/themes/components/rating/_rating-theme.scss +2 -1
  49. package/sass/themes/components/ripple/_ripple-theme.scss +4 -1
  50. package/sass/themes/components/scrollbar/_scrollbar-theme.scss +3 -0
  51. package/sass/themes/components/select/_select-theme.scss +4 -1
  52. package/sass/themes/components/slider/_slider-theme.scss +4 -1
  53. package/sass/themes/components/snackbar/_snackbar-theme.scss +4 -1
  54. package/sass/themes/components/splitter/_splitter-theme.scss +7 -4
  55. package/sass/themes/components/stepper/_stepper-theme.scss +4 -1
  56. package/sass/themes/components/switch/_switch-theme.scss +4 -1
  57. package/sass/themes/components/tabs/_tabs-theme.scss +4 -3
  58. package/sass/themes/components/time-picker/_time-picker-theme.scss +7 -1
  59. package/sass/themes/components/toast/_toast-theme.scss +4 -7
  60. package/sass/themes/components/tooltip/_tooltip-theme.scss +5 -6
  61. package/sass/themes/components/tree/_tree-theme.scss +4 -1
  62. package/sass/themes/components/watermark/_watermark-theme.scss +4 -2
  63. package/tailwind/utilities/bootstrap.css +1 -1
  64. package/tailwind/utilities/fluent.css +1 -1
  65. package/tailwind/utilities/indigo.css +1 -1
  66. package/tailwind/utilities/material.css +1 -1
  67. package/sass/themes/components/_config.scss +0 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-theming",
3
- "version": "21.0.0-beta.2",
3
+ "version": "21.0.0",
4
4
  "description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,11 +1,22 @@
1
- $_prefix: null !default;
1
+ $_variable-prefix: null !default;
2
+ $_element-prefix: null !default;
2
3
 
3
- @mixin configure-prefix($value) {
4
+ @mixin configure-variable-prefix($value) {
4
5
  @if $value {
5
6
  $_prefix: $value !global;
6
7
  }
7
8
  }
8
9
 
9
- @function prefix() {
10
- @return $_prefix or 'igx';
10
+ @mixin configure-element-prefix($value) {
11
+ @if $value {
12
+ $_prefix: $value !global;
13
+ }
14
+ }
15
+
16
+ @function variable-prefix() {
17
+ @return $_variable-prefix or 'igx';
18
+ }
19
+
20
+ @function element-prefix() {
21
+ @return $_element-prefix or 'igx';
11
22
  }
@@ -3,7 +3,6 @@
3
3
  @use 'sass:meta';
4
4
  @use 'sass:string';
5
5
  @use 'sass:math';
6
- @use 'config';
7
6
  @use '../typography/functions' as *;
8
7
  @use '../elevations/functions' as *;
9
8
  @use '../color/functions' as color;
@@ -38,16 +37,6 @@
38
37
  $result: map.merge($result, (#{$key}: $value));
39
38
  }
40
39
 
41
- // Enrich _meta key if present with additional information
42
- @if meta.type-of($value) == 'map' and $key == '_meta' {
43
- $result: map.merge(
44
- $result,
45
- (
46
- _meta: enrich-meta($value),
47
- )
48
- );
49
- }
50
-
51
40
  // Special case for chart elevation literals
52
41
  @if string.index($key, 'elevation') {
53
42
  $result: map.merge($result, (#{$key}: #{elevation($value)}));
@@ -62,15 +51,6 @@
62
51
  @return $result;
63
52
  }
64
53
 
65
- @function enrich-meta($meta) {
66
- @return map.merge(
67
- $meta,
68
- (
69
- 'element-prefix': config.prefix(),
70
- )
71
- );
72
- }
73
-
74
54
  /// Resolves schema values, where the keys of the passed value map are the names
75
55
  /// of the functions to be called and the value for a given key is the argument
76
56
  /// the function should be called with.
@@ -31,11 +31,11 @@ $ignored-keys: ('name', 'palette', 'variant', 'selector', 'type', 'theme', 'typo
31
31
  $t: map.get($theme, '_meta', 'theme');
32
32
 
33
33
  // This is here only because the button theme consists of 4 nested themes.
34
- @if $themes and meta.type-of($themes) == 'map' {
35
- @each $theme in $themes {
36
- @include css-vars(list.nth($theme, 2));
37
- }
38
- }
34
+ // @if $themes and meta.type-of($themes) == 'map' {
35
+ // @each $theme in $themes {
36
+ // @include css-vars(list.nth($theme, 2));
37
+ // }
38
+ // }
39
39
 
40
40
  @each $key, $value in map.remove($theme, $ignored...) {
41
41
  $variable: if($prefix, #{$prefix}-#{$key}, #{$key});
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -34,7 +35,8 @@
34
35
  $border-radius: null,
35
36
  $size: null
36
37
  ) {
37
- $name: #{config.prefix() + '-' + 'avatar'};
38
+ $name: #{config.variable-prefix() + '-' + 'avatar'};
39
+ $selector: #{config.element-prefix() + '-' + 'avatar'};
38
40
  $avatar-schema: ();
39
41
 
40
42
  @if map.has-key($schema, 'avatar') {
@@ -57,6 +59,7 @@
57
59
  $theme,
58
60
  (
59
61
  name: $name,
62
+ selector: $selector,
60
63
  background: $background,
61
64
  color: $color,
62
65
  icon-color: $icon-color,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -42,7 +43,8 @@
42
43
  $background-color: null,
43
44
  $shadow: null
44
45
  ) {
45
- $name: #{config.prefix() + '-' + 'badge'};
46
+ $name: #{config.variable-prefix() + '-' + 'badge'};
47
+ $selector: #{config.element-prefix() + '-' + 'badge'};
46
48
  $badge-schema: ();
47
49
 
48
50
  @if map.has-key($schema, 'badge') {
@@ -70,6 +72,7 @@
70
72
  $theme,
71
73
  (
72
74
  name: $name,
75
+ selector: $selector,
73
76
  icon-color: $icon-color,
74
77
  text-color: $text-color,
75
78
  border-color: $border-color,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -36,7 +37,8 @@
36
37
  $banner-illustration-color: null,
37
38
  $border-radius: null
38
39
  ) {
39
- $name: #{config.prefix() + '-' + 'banner'};
40
+ $name: #{config.variable-prefix() + '-' + 'banner'};
41
+ $selector: (#{config.element-prefix() + '-' + 'banner'}, #{'.' + config.element-prefix() + '-' + 'banner'});
40
42
  $banner-schema: ();
41
43
 
42
44
  @if map.has-key($schema, 'banner') {
@@ -59,6 +61,7 @@
59
61
  $theme,
60
62
  (
61
63
  name: $name,
64
+ selector: $selector,
62
65
  banner-background: $banner-background,
63
66
  banner-message-color: $banner-message-color,
64
67
  banner-border-color: $banner-border-color,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -42,7 +43,8 @@
42
43
  $border-color: null,
43
44
  $shadow: null
44
45
  ) {
45
- $name: #{config.prefix() + '-' + 'bottom-nav'};
46
+ $name: #{config.variable-prefix() + '-' + 'bottom-nav'};
47
+ $selector: #{config.element-prefix() + '-' + 'bottom-nav'};
46
48
  $bottom-nav-schema: ();
47
49
 
48
50
  @if map.has-key($schema, 'bottom-nav') {
@@ -94,6 +96,7 @@
94
96
  $theme,
95
97
  (
96
98
  name: $name,
99
+ selector: $selector,
97
100
  background: $background,
98
101
  icon-color: $icon-color,
99
102
  icon-selected-color: $icon-selected-color,
@@ -11,6 +11,7 @@
11
11
  @forward './fab-button-theme';
12
12
 
13
13
  ////
14
+ /// @package theming
14
15
  /// @group themes
15
16
  /// @access public
16
17
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -104,7 +105,7 @@
104
105
  $disabled-border-color: null,
105
106
  $size: null
106
107
  ) {
107
- $name: #{config.prefix() + '-' + 'button'};
108
+ $name: #{config.variable-prefix() + '-' + 'button'};
108
109
  $button-schema: ();
109
110
 
110
111
  @if map.has-key($schema, 'button') {
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -100,7 +101,12 @@
100
101
  $disabled-border-color: null,
101
102
  $size: null
102
103
  ) {
103
- $name: #{config.prefix() + '-' + 'contained-button'};
104
+ $name: #{config.variable-prefix() + '-' + 'contained-button'};
105
+ $selector: (
106
+ #{'[' + config.element-prefix() + 'Button="contained"]'},
107
+ #{config.element-prefix() + '-' + 'button[variant="contained"]'},
108
+ #{'.' + config.element-prefix() + '-' + 'button--contained'}
109
+ );
104
110
  $button-schema: ();
105
111
 
106
112
  @if map.has-key($schema, 'button') {
@@ -266,6 +272,7 @@
266
272
  $theme,
267
273
  (
268
274
  name: $name,
275
+ selector: $selector,
269
276
  background: $background,
270
277
  foreground: $foreground,
271
278
  icon-color: $icon-color,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -100,7 +101,12 @@
100
101
  $disabled-border-color: null,
101
102
  $size: null
102
103
  ) {
103
- $name: #{config.prefix() + '-' + 'fab-button'};
104
+ $name: #{config.variable-prefix() + '-' + 'fab-button'};
105
+ $selector: (
106
+ #{'[' + config.element-prefix() + 'Button="fab"]'},
107
+ #{config.element-prefix() + '-' + 'button[variant="fab"]'},
108
+ #{'.' + config.element-prefix() + '-' + 'button--fab'}
109
+ );
104
110
  $button-schema: ();
105
111
 
106
112
  @if map.has-key($schema, 'button') {
@@ -242,6 +248,7 @@
242
248
  $theme,
243
249
  (
244
250
  name: $name,
251
+ selector: $selector,
245
252
  background: $background,
246
253
  foreground: $foreground,
247
254
  icon-color: $icon-color,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -99,7 +100,12 @@
99
100
  $disabled-border-color: null,
100
101
  $size: null
101
102
  ) {
102
- $name: #{config.prefix() + '-' + 'flat-button'};
103
+ $name: #{config.variable-prefix() + '-' + 'flat-button'};
104
+ $selector: (
105
+ #{'[' + config.element-prefix() + 'Button="flat"]'},
106
+ #{config.element-prefix() + '-' + 'button[variant="flat"]'},
107
+ #{'.' + config.element-prefix() + '-' + 'button--flat'}
108
+ );
103
109
  $button-schema: ();
104
110
 
105
111
  @if map.has-key($schema, 'button') {
@@ -301,6 +307,7 @@
301
307
  $theme,
302
308
  (
303
309
  name: $name,
310
+ selector: $selector,
304
311
  background: $background,
305
312
  foreground: $foreground,
306
313
  icon-color: $icon-color,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -99,7 +100,12 @@
99
100
  $disabled-border-color: null,
100
101
  $size: null
101
102
  ) {
102
- $name: #{config.prefix() + '-' + 'outlined-button'};
103
+ $name: #{config.variable-prefix() + '-' + 'outlined-button'};
104
+ $selector: (
105
+ #{'[' + config.element-prefix() + 'Button="outlined"]'},
106
+ #{config.element-prefix() + '-' + 'button[variant="outlined"]'},
107
+ #{'.' + config.element-prefix() + '-' + 'button--outlined'}
108
+ );
103
109
  $button-schema: ();
104
110
 
105
111
  @if map.has-key($schema, 'button') {
@@ -367,6 +373,7 @@
367
373
  $theme,
368
374
  (
369
375
  name: $name,
376
+ selector: $selector,
370
377
  background: $background,
371
378
  foreground: $foreground,
372
379
  icon-color: $icon-color,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -111,7 +112,8 @@
111
112
  $disabled-selected-background: null,
112
113
  $disabled-selected-border-color: null
113
114
  ) {
114
- $name: #{config.prefix() + '-' + 'button-group'};
115
+ $name: #{config.variable-prefix() + '-' + 'button-group'};
116
+ $selector: (#{config.element-prefix() + '-' + 'buttongroup'}, #{config.element-prefix() + '-' + 'button-group'});
115
117
  $button-group-schema: ();
116
118
 
117
119
  @if map.has-key($schema, 'button-group') {
@@ -259,6 +261,7 @@
259
261
  $theme,
260
262
  (
261
263
  name: $name,
264
+ selector: $selector,
262
265
  item-text-color: $item-text-color,
263
266
  item-icon-color: $item-icon-color,
264
267
  item-background: $item-background,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -323,7 +324,14 @@
323
324
  $size: null,
324
325
  $inner-size: null
325
326
  ) {
326
- $name: #{config.prefix() + '-' + 'calendar'};
327
+ $name: #{config.variable-prefix() + '-' + 'calendar'};
328
+ $selector: (
329
+ #{config.element-prefix() + '-' + 'calendar'},
330
+ #{config.element-prefix() + '-' + 'date-picker'},
331
+ #{config.element-prefix() + '-' + 'month-picker'},
332
+ '.igx-days-view--standalone',
333
+ '.igx-calendar-view--standalone'
334
+ );
327
335
  $calendar-schema: ();
328
336
 
329
337
  @if map.has-key($schema, 'calendar') {
@@ -957,6 +965,7 @@
957
965
  $theme,
958
966
  (
959
967
  name: $name,
968
+ selector: $selector,
960
969
 
961
970
  content-background: $content-background,
962
971
  content-foreground: $content-foreground,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -45,7 +46,8 @@
45
46
  $resting-shadow: null,
46
47
  $hover-shadow: null
47
48
  ) {
48
- $name: #{config.prefix() + '-' + 'card'};
49
+ $name: #{config.variable-prefix() + '-' + 'card'};
50
+ $selector: #{config.element-prefix() + '-' + 'card'};
49
51
  $card-schema: ();
50
52
 
51
53
  @if map.has-key($schema, 'card') {
@@ -86,6 +88,7 @@
86
88
  $theme,
87
89
  (
88
90
  name: $name,
91
+ selector: $selector,
89
92
  background: $background,
90
93
  outline-color: $outline-color,
91
94
  border-radius: $border-radius,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  /////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -77,7 +78,8 @@
77
78
  $indicator-active-border-color: null,
78
79
  $indicator-active-hover-dot-color: null
79
80
  ) {
80
- $name: #{config.prefix() + '-' + 'carousel'};
81
+ $name: #{config.variable-prefix() + '-' + 'carousel'};
82
+ $selector: #{config.element-prefix() + '-' + 'carousel'};
81
83
  $carousel-schema: ();
82
84
 
83
85
  @if map.has-key($schema, 'carousel') {
@@ -194,6 +196,7 @@
194
196
  $theme,
195
197
  (
196
198
  name: $name,
199
+ selector: $selector,
197
200
 
198
201
  slide-background: $slide-background,
199
202
 
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -69,7 +70,8 @@
69
70
  $error-color-hover: null,
70
71
  $focus-outline-color-error: null
71
72
  ) {
72
- $name: #{config.prefix() + '-' + 'checkbox'};
73
+ $name: #{config.variable-prefix() + '-' + 'checkbox'};
74
+ $selector: #{config.element-prefix() + '-' + 'checkbox'};
73
75
  $checkbox-schema: ();
74
76
 
75
77
  @if map.has-key($schema, 'checkbox') {
@@ -133,6 +135,7 @@
133
135
  $theme,
134
136
  (
135
137
  name: $name,
138
+ selector: $selector,
136
139
  label-color: $label-color,
137
140
  label-color-hover: $label-color-hover,
138
141
  empty-color: $empty-color,
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -96,7 +97,8 @@
96
97
  $remove-icon-color-focus: null,
97
98
  $size: null
98
99
  ) {
99
- $name: #{config.prefix() + '-' + 'chip'};
100
+ $name: #{config.variable-prefix() + '-' + 'chip'};
101
+ $selector: (#{config.element-prefix() + '-' + 'chip'}, '.igx-chip__ghost');
100
102
  $chip-schema: ();
101
103
 
102
104
  @if map.has-key($schema, 'chip') {
@@ -213,6 +215,7 @@
213
215
  $theme,
214
216
  (
215
217
  name: $name,
218
+ selector: $selector,
216
219
  border-radius: $border-radius,
217
220
 
218
221
  text-color: $text-color,
@@ -5,6 +5,7 @@
5
5
  @use '../../../utils/map' as *;
6
6
 
7
7
  ////
8
+ /// @package theming
8
9
  /// @group themes
9
10
  /// @access public
10
11
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -29,7 +30,8 @@
29
30
  $title-color: null,
30
31
  $background-color: null
31
32
  ) {
32
- $name: #{config.prefix() + '-' + 'column-actions'};
33
+ $name: #{config.variable-prefix() + '-' + 'column-actions'};
34
+ $selector: #{config.element-prefix() + '-' + 'column-actions'};
33
35
  $column-actions-schema: ();
34
36
 
35
37
  @if map.has-key($schema, 'column-actions') {
@@ -48,6 +50,7 @@
48
50
  $theme,
49
51
  (
50
52
  name: $name,
53
+ selector: $selector,
51
54
  title-color: $title-color,
52
55
  background-color: $background-color,
53
56
  )
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -52,7 +53,8 @@
52
53
  $clear-button-foreground-focus: null,
53
54
  $toggle-button-foreground-filled: null
54
55
  ) {
55
- $name: #{config.prefix() + '-' + 'combo'};
56
+ $name: #{config.variable-prefix() + '-' + 'combo'};
57
+ $selector: (#{config.element-prefix() + '-' + 'combo'}, #{config.element-prefix() + '-' + 'simple-combo'});
56
58
  $combo-schema: ();
57
59
 
58
60
  @if map.has-key($schema, 'combo') {
@@ -110,6 +112,7 @@
110
112
  $theme,
111
113
  (
112
114
  name: $name,
115
+ selector: $selector,
113
116
  search-separator-border-color: $search-separator-border-color,
114
117
  empty-list-placeholder-color: $empty-list-placeholder-color,
115
118
  empty-list-background: $empty-list-background,
@@ -5,6 +5,7 @@
5
5
  @use '../../../utils/map' as *;
6
6
 
7
7
  ////
8
+ /// @package theming
8
9
  /// @group themes
9
10
  /// @access public
10
11
  /// @author <a href="https://github.com/desig9stein" target="_blank">Marin Popov</a>
@@ -13,7 +14,8 @@
13
14
  /// @param {Map} $schema [$light-material-schema] - The schema used as basis for styling the component.
14
15
  /// @param {color} $label-color [null] - The color for date range separator label.
15
16
  @function date-range-picker-theme($schema: $light-material-schema, $label-color: null) {
16
- $name: #{config.prefix() + '-' + 'date-range-picker'};
17
+ $name: #{config.variable-prefix() + '-' + 'date-range-picker'};
18
+ $selector: #{config.element-prefix() + '-' + 'date-range-picker'};
17
19
  $date-range-schema: ();
18
20
 
19
21
  @if map.has-key($schema, 'date-range') {
@@ -28,6 +30,7 @@
28
30
  $theme,
29
31
  (
30
32
  name: $name,
33
+ selector: $selector,
31
34
  label-color: $label-color,
32
35
  )
33
36
  );
@@ -7,6 +7,7 @@
7
7
  @use '../../../elevations/' as *;
8
8
 
9
9
  ////
10
+ /// @package theming
10
11
  /// @group themes
11
12
  /// @access public
12
13
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -37,7 +38,8 @@
37
38
  $message-color: null,
38
39
  $shadow: null
39
40
  ) {
40
- $name: #{config.prefix() + '-' + 'dialog'};
41
+ $name: #{config.variable-prefix() + '-' + 'dialog'};
42
+ $selector: (#{config.element-prefix() + '-' + 'dialog'}, '.igx-dialog');
41
43
  $dialog-schema: ();
42
44
 
43
45
  @if map.has-key($schema, 'dialog') {
@@ -69,6 +71,7 @@
69
71
  $theme,
70
72
  (
71
73
  name: $name,
74
+ selector: $selector,
72
75
  border-radius: $border-radius,
73
76
  background: $background,
74
77
  title-color: $title-color,
@@ -6,6 +6,7 @@
6
6
  @use '../../../color/functions' as *;
7
7
 
8
8
  ////
9
+ /// @package theming
9
10
  /// @group themes
10
11
  /// @access public
11
12
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -21,7 +22,8 @@
21
22
  /// // Pass the theme to the css-vars() mixin
22
23
  /// @include css-vars($my-divider-theme);
23
24
  @function divider-theme($schema: $light-material-schema, $color: null, $inset: null) {
24
- $name: #{config.prefix() + '-' + 'divider'};
25
+ $name: #{config.variable-prefix() + '-' + 'divider'};
26
+ $selector: #{config.element-prefix() + '-' + 'divider'};
25
27
  $divider-schema: ();
26
28
 
27
29
  @if map.has-key($schema, 'divider') {
@@ -36,6 +38,7 @@
36
38
  $theme,
37
39
  (
38
40
  name: $name,
41
+ selector: $selector,
39
42
  color: $color,
40
43
  inset: $inset,
41
44
  )
@@ -8,6 +8,7 @@
8
8
  @use '../../../elevations/' as *;
9
9
 
10
10
  ////
11
+ /// @package theming
11
12
  /// @group themes
12
13
  /// @access public
13
14
  /// @author <a href="https://github.com/simeonoff" target="_blank">Simeon Simeonoff</a>
@@ -56,7 +57,8 @@
56
57
  /// // Pass the theme to the css-vars() mixin
57
58
  /// @include css-vars($my-dock-manager-theme);
58
59
  @function dock-manager-theme($schema: $light-material-schema, $rest...) {
59
- $name: #{config.prefix() + '-' + 'dockmanager'};
60
+ $name: #{config.variable-prefix() + '-' + 'dockmanager'};
61
+ $selector: 'igc-dockmanager';
60
62
  $dock-manager-schema: ();
61
63
 
62
64
  @if map.has-key($schema, 'dockmanager') {
@@ -71,7 +73,7 @@
71
73
  $theme,
72
74
  (
73
75
  name: $name,
74
- prefix: 'igc',
76
+ selector: $selector,
75
77
  ),
76
78
  meta.keywords($rest)
77
79
  );