@progress/kendo-theme-core 9.1.1-dev.2 → 10.0.0-dev.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 (45) hide show
  1. package/dist/all.css +715 -712
  2. package/dist/all.scss +1 -6420
  3. package/dist/meta/sassdoc-data.json +3879 -3710
  4. package/dist/meta/sassdoc-raw-data.json +1844 -2568
  5. package/dist/meta/variables.json +430 -1219
  6. package/package.json +2 -3
  7. package/scss/_variables.scss +5 -3
  8. package/scss/all.scss +3 -2
  9. package/scss/border-radii/index.import.scss +13 -10
  10. package/scss/color-system/_functions.import.scss +182 -33
  11. package/scss/color-system/_mixins.import.scss +8 -2
  12. package/scss/color-system/_palettes.scss +272 -972
  13. package/scss/color-system/_swatch.scss +161 -159
  14. package/scss/color-system/index.import.scss +5 -6
  15. package/scss/elevation/index.import.scss +3 -3
  16. package/scss/functions/_color.import.scss +529 -0
  17. package/scss/functions/_list.import.scss +11 -9
  18. package/scss/functions/_map.import.scss +14 -11
  19. package/scss/functions/_math.import.scss +15 -13
  20. package/scss/functions/_meta.import.scss +9 -7
  21. package/scss/functions/_string.import.scss +36 -15
  22. package/scss/functions/index.import.scss +8 -12
  23. package/scss/index.import.scss +27 -10
  24. package/scss/mixins/_border-radius.scss +2 -0
  25. package/scss/mixins/_box-shadow.scss +2 -0
  26. package/scss/mixins/_decoration.scss +6 -13
  27. package/scss/mixins/_focus-indicator.scss +3 -0
  28. package/scss/mixins/_gradient.scss +2 -0
  29. package/scss/mixins/_import-once.scss +5 -3
  30. package/scss/mixins/index.import.scss +8 -8
  31. package/scss/spacing/index.import.scss +5 -4
  32. package/scss/styles/_base.scss +10 -6
  33. package/scss/styles/_selection.scss +6 -6
  34. package/scss/styles/index.import.scss +34 -22
  35. package/scss/typography/index.import.scss +10 -8
  36. package/dist/index.css +0 -0
  37. package/scss/color-system/_swatch-legacy.scss +0 -90
  38. package/scss/functions/_color-contrast.import.scss +0 -393
  39. package/scss/functions/_color-manipulation.import.scss +0 -134
  40. package/scss/functions/_color-system.import.scss +0 -138
  41. package/scss/functions/_escape-string.import.scss +0 -48
  42. package/scss/module-system/_components.scss +0 -240
  43. package/scss/module-system/_dependencies.scss +0 -731
  44. package/scss/module-system/index.import.scss +0 -55
  45. package/scss/styles/_colors.scss +0 -5
@@ -1,138 +0,0 @@
1
- /// Generates all color variations of a given main color
2
- /// @param {String} $name - The name of the main color
3
- /// @param {Color} $color - The color value to be assigned to the main color
4
- /// @param {String} $theme - The theme the colors will be generated for
5
- /// @return {Map} - A map with the generated keys and values
6
- ///
7
- /// @group color-system
8
- @function k-generate-color-variations( $name, $color, $theme: null ) {
9
- $result: ();
10
-
11
- // DataViz
12
- @if (
13
- $name == 'series-a' or
14
- $name == 'series-b' or
15
- $name == 'series-c' or
16
- $name == 'series-d' or
17
- $name == 'series-e' or
18
- $name == 'series-f'
19
- ) {
20
- $_variations: (
21
- #{$name}: $color,
22
- #{$name}-bold: k-color-mix(black, $color, 25%),
23
- #{$name}-bolder: k-color-mix(black, $color, 50%),
24
- #{$name}-subtle: k-color-mix(white, $color, 25%),
25
- #{$name}-subtler: k-color-mix(white, $color, 50%),
26
- );
27
-
28
- $result: k-map-merge($result, $_variations);
29
- } @else {
30
- // Default
31
- @if ( $theme == 'default' or $theme == null ) { // stylelint-disable-line
32
- $_variations: (
33
- #{$name}-subtle: if( $name == 'base', k-try-shade( $color, 4% ), k-try-tint( $color, 80% )),
34
- #{$name}-subtle-hover: if( $name == 'base', k-try-shade( $color, 8% ), k-try-tint($color, 65% )),
35
- #{$name}-subtle-active: if( $name == 'base', k-try-shade( $color, 13% ), k-try-tint( $color, 50% )),
36
- #{$name}: $color,
37
- #{$name}-hover: k-try-shade( $color, 0.5 ),
38
- #{$name}-active: k-try-shade( $color, 1.5 ),
39
- #{$name}-emphasis: if( $name == 'base', k-try-shade( $color, 21% ), k-try-tint( $color, 25% )),
40
- #{$name}-on-subtle: if( $name == 'base', k-try-shade( $color, 75% ), k-try-shade( $color, 65% )),
41
- on-#{$name}: if( $name == 'base', k-try-shade( $color, 75% ), k-contrast-legacy( $color )),
42
- #{$name}-on-surface: if( $name == 'base', k-try-shade( $color, 75% ), k-try-shade( $color, 25% )),
43
- );
44
-
45
- $result: k-map-merge($result, $_variations);
46
- }
47
-
48
- // Bootstrap
49
- @if ( $theme == 'bootstrap' ) {
50
- $_variations: (
51
- #{$name}-subtle: if( $name == 'base', k-try-tint( $color, 30% ), k-try-tint( $color, 80% )),
52
- #{$name}-subtle-hover: if( $name == 'base', $color, k-try-tint($color, 65% )),
53
- #{$name}-subtle-active: if( $name == 'base', k-try-shade( $color, 8% ), k-try-tint( $color, 50% )),
54
- #{$name}: $color,
55
- #{$name}-hover: k-color-darken( $color, 7.5% ),
56
- #{$name}-active: k-color-darken( $color, 10% ),
57
- #{$name}-emphasis: if( $name == 'base', k-try-shade( $color, 21% ), k-try-tint( $color, 25% )),
58
- #{$name}-on-subtle: if( $name == 'base', k-try-shade( $color, 84% ), k-try-shade( $color, 65% )),
59
- on-#{$name}: if( $name == 'base', k-try-shade( $color, 84% ), k-contrast-legacy( $color )),
60
- #{$name}-on-surface: if( $name == 'base', k-try-shade( $color, 84% ), k-try-shade( $color, 25% )),
61
- );
62
-
63
- $result: k-map-merge($result, $_variations);
64
- }
65
-
66
- // Material
67
- @if ( $theme == 'material' ) {
68
- $_variations: (
69
- #{$name}-subtle: if( $name == 'base', k-try-shade( $color, 12% ), k-try-tint( $color, 80% )),
70
- #{$name}-subtle-hover: if( $name == 'base', k-try-shade( $color, 16% ), k-try-tint($color, 65% )),
71
- #{$name}-subtle-active: if( $name == 'base', k-try-shade( $color, 24% ), k-try-tint( $color, 50% )),
72
- #{$name}: $color,
73
- #{$name}-hover: k-try-shade( $color, 0.5 ),
74
- #{$name}-active: k-try-shade( $color, 1.5 ),
75
- #{$name}-emphasis: if( $name == 'base', k-try-shade( $color, 32% ), k-try-tint( $color, 25% )),
76
- #{$name}-on-subtle: if( $name == 'base', k-try-shade( $color, 87% ), k-try-shade( $color, 65% )),
77
- on-#{$name}: if( $name == 'base', k-try-shade( $color, 87% ), k-contrast-color( $color )),
78
- #{$name}-on-surface: if( $name == 'base', k-try-shade( $color, 87% ), k-try-shade( $color, 50% )),
79
- );
80
-
81
- $result: k-map-merge($result, $_variations);
82
- }
83
-
84
- // Fluent
85
- @if ( $theme == 'fluent' ) {
86
- $_variations: (
87
- #{$name}-subtle: if( $name == 'base', k-try-shade( $color, 2% ), k-try-tint( $color, 80% )),
88
- #{$name}-subtle-hover: if( $name == 'base', k-try-shade( $color, 8% ), k-try-tint($color, 65% )),
89
- #{$name}-subtle-active: if( $name == 'base', k-try-shade( $color, 12% ), k-try-tint( $color, 50% )),
90
- #{$name}: $color,
91
- #{$name}-hover: k-try-shade( $color, 0.5 ),
92
- #{$name}-active: k-try-shade( $color, 1.5 ),
93
- #{$name}-emphasis: if( $name == 'base', k-try-shade( $color, 18% ), k-try-tint( $color, 25% )),
94
- #{$name}-on-subtle: if( $name == 'base', k-try-shade( $color, 74% ), k-try-shade( $color, 65% )),
95
- on-#{$name}: if( $name == 'base', k-try-shade( $color, 86% ), k-contrast-legacy( $color )),
96
- #{$name}-on-surface: if( $name == 'base', k-try-shade( $color, 86% ), k-try-shade( $color, 25% )),
97
- );
98
-
99
- $result: k-map-merge($result, $_variations);
100
- }
101
-
102
- // Classic
103
- @if ( $theme == 'classic' ) {
104
- $_variations: (
105
- #{$name}-subtle: if( $name == 'base', k-try-tint( $color, 20% ), k-try-tint( $color, 80% )),
106
- #{$name}-subtle-hover: if( $name == 'base', k-try-tint( $color, 8% ), k-try-tint($color, 65% )),
107
- #{$name}-subtle-active: if( $name == 'base', k-try-shade( $color, 6% ), k-try-tint( $color, 50% )),
108
- #{$name}: $color,
109
- #{$name}-hover: k-try-shade( $color, 1 ),
110
- #{$name}-active: k-try-shade( $color, 2 ),
111
- #{$name}-emphasis: if( $name == 'base', k-try-shade( $color, 14% ), k-try-tint( $color, 25% )),
112
- #{$name}-on-subtle: if( $name == 'base', k-try-shade( $color, 84% ), k-try-shade( $color, 65% )),
113
- on-#{$name}: if( $name == 'base', k-try-shade( $color, 84% ), k-contrast-legacy( $color )),
114
- #{$name}-on-surface: if( $name == 'base', k-try-shade( $color, 84% ), k-try-shade( $color, 25% )),
115
- );
116
-
117
- $result: k-map-merge($result, $_variations);
118
- }
119
- }
120
-
121
- @return $result;
122
- }
123
-
124
- /// Takes a color name from the $kendo-colors map as a parameter
125
- /// and returns a CSS variable with the actual color as a fallback
126
- /// @param {String} $key - The name of a color/key in the $kendo-colors map
127
- /// @return {String} - CSS variable with the actual color as a fallback
128
- ///
129
- /// @group color-system
130
- @function k-color($key) {
131
- $_color: k-map-get($kendo-colors, $key);
132
-
133
- @if ($_color) {
134
- @return var(--kendo-color-#{$key}, $_color);
135
- } @else {
136
- @error "Color Variable \`#{$key}\` does not exists in the color collection.";
137
- }
138
- }
@@ -1,48 +0,0 @@
1
- $_kendo-svg-escaped-characters: (
2
- ("%", "%25"),
3
- ("<", "%3c"),
4
- (">", "%3e"),
5
- ("#", "%23"),
6
- ("(", "%28"),
7
- (")", "%29")
8
- ) !default;
9
-
10
- /// Escapes SVG characters in a string
11
- /// @param {String} $string - The string to escape
12
- /// @return {String} - The escaped string
13
- ///
14
- /// @link https://codepen.io/kevinweber/pen/dXWoRw
15
- @function k-escape-svg($string) {
16
- @if k-string-index($string, "data:image/svg+xml") {
17
- @each $char, $encoded in $_kendo-svg-escaped-characters {
18
- // Do not escape the url brackets
19
- @if k-string-index($string, "url(") == 1 {
20
- $string: url("#{k-string-replace(k-string-slice($string, 6, -3), $char, $encoded)}");
21
- } @else {
22
- $string: k-string-replace($string, $char, $encoded);
23
- }
24
- }
25
- }
26
-
27
- @return $string;
28
- }
29
-
30
-
31
-
32
- $_kendo-escape-class-name: (
33
- ".": "\\.",
34
- "/": "\\/"
35
- );
36
-
37
- /// Escapes special characters in a class name
38
- /// @param {String} $text - The string to escape
39
- /// @return {String} - The escaped string
40
- @function k-escape-class-name( $text ) {
41
- $_text: $text;
42
-
43
- @each $char, $rep in $_kendo-escape-class-name {
44
- $_text: k-string-replace( $_text, k-string-unquote( $char ), k-string-unquote( $rep ) );
45
- }
46
-
47
- @return $_text;
48
- }
@@ -1,240 +0,0 @@
1
- $kendo-components: (
2
- // Utils
3
- "utils",
4
- "utils-accessibility-screen-readers",
5
- "utils-background-clip",
6
- "utils-background-color",
7
- "utils-background-position",
8
- "utils-background-size",
9
- "utils-border-color",
10
- "utils-border-radius",
11
- "utils-border-style",
12
- "utils-border-width",
13
- "utils-outline-color",
14
- "utils-outline-offset",
15
- "utils-outline-style",
16
- "utils-outline-width",
17
- "utils-effects-opacity",
18
- "utils-elevation",
19
- "utils-filter-backdrop",
20
- "utils-flex-grid-align-content",
21
- "utils-flex-grid-align-items",
22
- "utils-flex-grid-align-self",
23
- "utils-flex-grid-flex-basis",
24
- "utils-flex-grid-flex-direction",
25
- "utils-flex-grid-flex-grow",
26
- "utils-flex-grid-flex-shrink",
27
- "utils-flex-grid-flex-wrap",
28
- "utils-flex-grid-flex",
29
- "utils-flex-grid-gap",
30
- "utils-flex-grid-grid-auto-columns",
31
- "utils-flex-grid-grid-auto-flow",
32
- "utils-flex-grid-grid-auto-rows",
33
- "utils-flex-grid-grid-column-start-end",
34
- "utils-flex-grid-grid-row-start-end",
35
- "utils-flex-grid-grid-template-columns",
36
- "utils-flex-grid-grid-template-rows",
37
- "utils-flex-grid-justify-content",
38
- "utils-flex-grid-justify-items",
39
- "utils-flex-grid-justify-self",
40
- "utils-flex-grid-order",
41
- "utils-flex-grid-place-content",
42
- "utils-flex-grid-place-items",
43
- "utils-flex-grid-place-self",
44
- "utils-interactivity-accent-color",
45
- "utils-interactivity-appearance",
46
- "utils-interactivity-caret-color",
47
- "utils-interactivity-cursor",
48
- "utils-interactivity-pointer-events",
49
- "utils-interactivity-resize",
50
- "utils-interactivity-scroll",
51
- "utils-interactivity-touch-action",
52
- "utils-interactivity-user-select",
53
- "utils-interactivity-will-change",
54
- "utils-layout-aspect-ratio",
55
- "utils-layout-box-sizing",
56
- "utils-layout-clear",
57
- "utils-layout-columns",
58
- "utils-layout-display",
59
- "utils-layout-float",
60
- "utils-layout-object-fit",
61
- "utils-layout-object-position",
62
- "utils-layout-overflow",
63
- "utils-layout-placement",
64
- "utils-layout-position",
65
- "utils-layout-visibility",
66
- "utils-layout-zindex",
67
- "utils-sizing-height",
68
- "utils-sizing-width",
69
- "utils-spacing-margin",
70
- "utils-spacing-padding",
71
- "utils-spacing-space-between",
72
- "utils-svg-fill",
73
- "utils-svg-stroke",
74
- "utils-table-border-collapse",
75
- "utils-table-table-layout",
76
- "utils-transform-flip",
77
- "utils-transform-origin",
78
- "utils-transform-rotate",
79
- "utils-transform-scale",
80
- "utils-transform-skew",
81
- "utils-transform-translate",
82
- "utils-typography-font-family",
83
- "utils-typography-font-size",
84
- "utils-typography-font-style",
85
- "utils-typography-font-weight",
86
- "utils-typography-letter-spacing",
87
- "utils-typography-line-height",
88
- "utils-typography-list-style",
89
- "utils-typography-text-align",
90
- "utils-typography-text-color",
91
- "utils-typography-text-decoration",
92
- "utils-typography-text-overflow",
93
- "utils-typography-text-transform",
94
- "utils-typography-vertical-align",
95
- "utils-typography-white-space",
96
-
97
- // Typography
98
- "typography",
99
- "draggable",
100
-
101
- // Generic content
102
- "table",
103
- "icon",
104
- "chip",
105
- "messagebox",
106
-
107
- // Primitive components
108
- "input",
109
- "list",
110
- "listgroup",
111
- "overlay",
112
- "ripple",
113
- "virtual-scroller",
114
- "no-data",
115
-
116
- // Indicators
117
- "avatar",
118
- "badge",
119
- "color-preview",
120
- "loader",
121
- "skeleton",
122
- "tooltip",
123
- "time-marker",
124
-
125
- // Native forms
126
- "button",
127
- "split-button",
128
- "menu-button",
129
- "textbox",
130
- "textarea",
131
- "checkbox",
132
- "listbox",
133
- "progressbar",
134
- "radio",
135
- "slider",
136
-
137
- // Form helpers
138
- "form",
139
- "validator",
140
- "floating-label",
141
-
142
- // Form requirements
143
- "calendar",
144
- "popup",
145
- "time-selector",
146
-
147
- // Augmented inputs
148
- "autocomplete",
149
- "captcha",
150
- "color-palette",
151
- "color-gradient",
152
- "color-editor",
153
- "color-picker",
154
- "combobox",
155
- "date-input",
156
- "date-picker",
157
- "time-picker",
158
- "date-time-picker",
159
- "date-range-picker",
160
- "dropdown-grid",
161
- "dropdown-list",
162
- "dropdown-tree",
163
- "masked-textbox",
164
- "multiselect",
165
- "numeric-textbox",
166
- "rating",
167
- "searchbox",
168
- "switch",
169
- "upload",
170
- "dropzone",
171
-
172
- // Command interfaces
173
- "action-buttons",
174
- "appbar",
175
- "fab",
176
- "menu",
177
- "toolbar",
178
-
179
- // Popups and modals
180
- "action-sheet",
181
- "dialog",
182
- "drawer",
183
- "notification",
184
- "popover",
185
- "responsive-panel",
186
- "window",
187
-
188
- // Navigation
189
- "bottom-navigation",
190
- "breadcrumb",
191
- "pager",
192
- "stepper",
193
- "tabstrip",
194
- "treeview",
195
- "wizard",
196
-
197
- // Layout & containers
198
- "card",
199
- "expander",
200
- "panel",
201
- "panelbar",
202
- "splitter",
203
- "tile-layout",
204
- "dock-manager",
205
- "chart-wizard",
206
-
207
- // Data management
208
- "grid",
209
- "listview",
210
- "spreadsheet",
211
- "pivotgrid",
212
- "treelist",
213
- "filter",
214
- "file-manager",
215
- "task-board",
216
-
217
- // Editors
218
- "editor",
219
- "image-editor",
220
-
221
- // Scheduling
222
- "gantt",
223
- "scheduler",
224
-
225
- // Misc
226
- "adaptive",
227
- "chat",
228
- "media-player",
229
- "timeline",
230
- "pdf-viewer",
231
- "scroller",
232
- "scrollview",
233
- "prompt",
234
-
235
- // Dataviz
236
- "dataviz",
237
- "map",
238
- "orgchart",
239
- "signature"
240
- ) !default;