@ng-matero/extensions 16.3.0 → 17.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.
- package/_index.scss +2 -1
- package/alert/_alert-theme.scss +54 -24
- package/alert/alert.d.ts +3 -6
- package/alert/alert.scss +3 -3
- package/button/_button-theme.scss +6 -4
- package/button/button-loading.d.ts +5 -10
- package/button/button-module.d.ts +5 -5
- package/checkbox-group/checkbox-group.d.ts +4 -9
- package/colorpicker/_colorpicker-theme.scss +62 -34
- package/colorpicker/colorpicker-input.d.ts +1 -3
- package/colorpicker/colorpicker-toggle.d.ts +2 -3
- package/colorpicker/colorpicker.d.ts +5 -6
- package/core/color/_all-color.scss +7 -18
- package/core/density/_all-density.scss +28 -14
- package/core/mdc-helpers/_mdc-helpers.scss +27 -238
- package/core/style/_sass-utils.scss +13 -1
- package/core/style/_validation.scss +43 -0
- package/core/theming/_all-theme.scss +32 -17
- package/core/theming/_inspection.scss +303 -0
- package/core/theming/_m2-inspection.scss +266 -0
- package/core/tokens/_token-utils.scss +4 -5
- package/core/tokens/m2/mdc/_plain-tooltip.scss +21 -29
- package/core/tokens/m2/mtx/_alert.scss +14 -15
- package/core/tokens/m2/mtx/_colorpicker.scss +8 -11
- package/core/tokens/m2/mtx/_datetimepicker.scss +38 -47
- package/core/tokens/m2/mtx/_drawer.scss +9 -10
- package/core/tokens/m2/mtx/_grid.scss +34 -22
- package/core/tokens/m2/mtx/_loader.scss +6 -6
- package/core/tokens/m2/mtx/_popover.scss +10 -11
- package/core/tokens/m2/mtx/_progress.scss +18 -17
- package/core/tokens/m2/mtx/_select.scss +65 -25
- package/core/tokens/m2/mtx/_split.scss +8 -11
- package/core/typography/_all-typography.scss +40 -0
- package/core/typography/_typography.scss +1 -579
- package/datetimepicker/_datetimepicker-theme.scss +75 -48
- package/datetimepicker/calendar.d.ts +7 -14
- package/datetimepicker/calendar.scss +16 -4
- package/datetimepicker/clock.d.ts +1 -2
- package/datetimepicker/datetimepicker-content.scss +3 -3
- package/datetimepicker/datetimepicker-input.d.ts +1 -2
- package/datetimepicker/datetimepicker-toggle.d.ts +2 -3
- package/datetimepicker/datetimepicker.d.ts +15 -26
- package/datetimepicker/month-view.d.ts +1 -1
- package/datetimepicker/multi-year-view.d.ts +1 -1
- package/datetimepicker/time.d.ts +3 -5
- package/datetimepicker/time.scss +2 -2
- package/datetimepicker/year-view.d.ts +1 -1
- package/drawer/_drawer-theme.scss +55 -22
- package/drawer/drawer-container.scss +25 -4
- package/esm2022/alert/alert-module.mjs +4 -4
- package/esm2022/alert/alert.mjs +11 -18
- package/esm2022/button/button-loading.mjs +13 -23
- package/esm2022/button/button-module.mjs +6 -7
- package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
- package/esm2022/checkbox-group/checkbox-group.mjs +18 -29
- package/esm2022/colorpicker/colorpicker-input.mjs +13 -14
- package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
- package/esm2022/colorpicker/colorpicker-toggle.mjs +18 -18
- package/esm2022/colorpicker/colorpicker.mjs +31 -36
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/column-resize/column-resize-module.mjs +4 -4
- package/esm2022/column-resize/column-resize-notifier.mjs +7 -7
- package/esm2022/column-resize/column-resize.mjs +3 -3
- package/esm2022/column-resize/column-size-store.mjs +3 -3
- package/esm2022/column-resize/event-dispatcher.mjs +4 -4
- package/esm2022/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/column-resize/resizable.mjs +3 -3
- package/esm2022/column-resize/resize-strategy.mjs +13 -13
- package/esm2022/core/datetime/datetime.module.mjs +8 -8
- package/esm2022/core/datetime/native-datetime-adapter.mjs +5 -5
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +3 -3
- package/esm2022/core/pipes/pipes.module.mjs +4 -4
- package/esm2022/core/pipes/to-observable.pipe.mjs +3 -3
- package/esm2022/datetimepicker/calendar-body.mjs +5 -6
- package/esm2022/datetimepicker/calendar.mjs +30 -47
- package/esm2022/datetimepicker/clock.mjs +10 -9
- package/esm2022/datetimepicker/datetimepicker-input.mjs +14 -15
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +18 -18
- package/esm2022/datetimepicker/datetimepicker.mjs +57 -80
- package/esm2022/datetimepicker/month-view.mjs +8 -9
- package/esm2022/datetimepicker/multi-year-view.mjs +8 -8
- package/esm2022/datetimepicker/time.mjs +18 -24
- package/esm2022/datetimepicker/year-view.mjs +8 -8
- package/esm2022/dialog/dialog-container.mjs +7 -7
- package/esm2022/dialog/dialog-module.mjs +4 -4
- package/esm2022/dialog/dialog.mjs +4 -4
- package/esm2022/drawer/drawer-container.mjs +7 -7
- package/esm2022/drawer/drawer-module.mjs +4 -4
- package/esm2022/drawer/drawer.mjs +5 -5
- package/esm2022/grid/cell.mjs +6 -6
- package/esm2022/grid/column-menu.mjs +5 -5
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +6 -6
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +6 -6
- package/esm2022/grid/column-resize/resize-strategy.mjs +5 -5
- package/esm2022/grid/expansion-toggle.mjs +5 -5
- package/esm2022/grid/grid-module.mjs +4 -4
- package/esm2022/grid/grid-pipes.mjs +22 -22
- package/esm2022/grid/grid-utils.mjs +4 -4
- package/esm2022/grid/grid.mjs +76 -44
- package/esm2022/loader/loader-module.mjs +4 -4
- package/esm2022/loader/loader.mjs +17 -29
- package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
- package/esm2022/photoviewer/photoviewer.mjs +7 -7
- package/esm2022/popover/popover-content.mjs +8 -8
- package/esm2022/popover/popover-module.mjs +4 -4
- package/esm2022/popover/popover-target.mjs +4 -4
- package/esm2022/popover/popover-trigger.mjs +6 -6
- package/esm2022/popover/popover.mjs +52 -137
- package/esm2022/progress/progress-module.mjs +4 -4
- package/esm2022/progress/progress.mjs +14 -25
- package/esm2022/select/option.mjs +11 -17
- package/esm2022/select/select-module.mjs +4 -4
- package/esm2022/select/select.mjs +13 -13
- package/esm2022/select/templates.mjs +44 -44
- package/esm2022/split/split-module.mjs +4 -4
- package/esm2022/split/split-pane.mjs +5 -5
- package/esm2022/split/split.mjs +7 -7
- package/esm2022/tooltip/tooltip-module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +22 -22
- package/fesm2022/mtxAlert.mjs +14 -21
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +17 -28
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +21 -32
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +61 -64
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +48 -48
- package/fesm2022/mtxCore.mjs +23 -23
- package/fesm2022/mtxDatetimepicker.mjs +150 -190
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +14 -14
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +17 -17
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +150 -118
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +20 -32
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +10 -10
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +73 -158
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +17 -28
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +68 -73
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +14 -14
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +26 -26
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +60 -24
- package/grid/column-menu.scss +32 -3
- package/grid/grid.d.ts +33 -1
- package/grid/grid.scss +36 -108
- package/loader/_loader-theme.scss +55 -22
- package/loader/loader.d.ts +4 -9
- package/loader/loader.scss +1 -1
- package/package.json +35 -41
- package/photoviewer/photoviewer.d.ts +1 -0
- package/popover/_popover-theme.scss +55 -22
- package/popover/popover.d.ts +23 -54
- package/popover/popover.scss +2 -2
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress/_progress-theme.scss +60 -22
- package/progress/progress.d.ts +4 -9
- package/progress/progress.scss +3 -3
- package/select/_select-theme.scss +66 -34
- package/select/option.d.ts +2 -5
- package/select/select.d.ts +1 -3
- package/select/select.scss +104 -127
- package/split/_split-theme.scss +62 -32
- package/split/split.scss +2 -4
- package/tooltip/_tooltip-theme.scss +66 -34
- package/_theming.scss +0 -16
- package/alert/_alert-theme.import.scss +0 -2
- package/button/_button-theme.import.scss +0 -2
- package/colorpicker/_colorpicker-theme.import.scss +0 -2
- package/core/style/_elevation.scss +0 -91
- package/core/style/_private.scss +0 -32
- package/core/style/_variables.scss +0 -44
- package/core/style/_vendor-prefixes.scss +0 -46
- package/core/theming/_palette.scss +0 -746
- package/core/theming/_theming.scss +0 -463
- package/core/typography/_typography-utils.scss +0 -101
- package/datetimepicker/_datetimepicker-theme.import.scss +0 -4
- package/drawer/_drawer-theme.import.scss +0 -2
- package/grid/_grid-theme.import.scss +0 -2
- package/loader/_loader-theme.import.scss +0 -2
- package/popover/_popover-theme.import.scss +0 -2
- package/progress/_progress-theme.import.scss +0 -2
- package/select/_select-density.scss +0 -68
- package/select/_select-theme.import.scss +0 -3
- package/split/_split-theme.import.scss +0 -2
- package/tooltip/_tooltip-theme.import.scss +0 -1
|
@@ -1,57 +1,56 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
+
@use 'sass:math';
|
|
3
|
+
@use '@material/textfield' as mdc-textfield;
|
|
4
|
+
@use '@material/density' as mdc-density;
|
|
5
|
+
@use '@angular/material' as mat;
|
|
2
6
|
@use '../../token-utils';
|
|
3
|
-
@use '../../../theming/theming';
|
|
4
7
|
@use '../../../style/sass-utils';
|
|
5
8
|
|
|
6
9
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
10
|
$prefix: (mtx, select);
|
|
8
11
|
|
|
9
12
|
// Generates the tokens used to theme the option based on a palette.
|
|
10
|
-
@function private-get-color-palette-color-tokens($
|
|
11
|
-
$palette: map.get($config, $palette-name);
|
|
12
|
-
|
|
13
|
+
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
13
14
|
@return (
|
|
14
|
-
option-selected-state-text-color:
|
|
15
|
+
option-selected-state-text-color: mat.get-theme-color($theme, $palette-name),
|
|
15
16
|
);
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
// Tokens that can't be configured through Angular Material's current theming API,
|
|
19
20
|
// but may be in a future version of the theming API.
|
|
20
21
|
@function get-unthemable-tokens() {
|
|
21
|
-
@return (
|
|
22
|
+
@return (
|
|
23
|
+
container-shape: 4px,
|
|
24
|
+
);
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
25
|
-
@function get-color-tokens($
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
$
|
|
30
|
-
$
|
|
31
|
-
$
|
|
32
|
-
$
|
|
33
|
-
$disabled-text-color: theming.get-color-from-palette($foreground, disabled-text);
|
|
34
|
-
$divider-color: theming.get-color-from-palette($foreground, divider);
|
|
35
|
-
$hover-color: theming.get-color-from-palette($background, hover);
|
|
36
|
-
$palette-tokens: private-get-color-palette-color-tokens($config, primary);
|
|
28
|
+
@function get-color-tokens($theme) {
|
|
29
|
+
$text-color: mat.get-theme-color($theme, foreground, text);
|
|
30
|
+
$hint-text-color: mat.get-theme-color($theme, foreground, hint-text);
|
|
31
|
+
$secondary-text-color: mat.get-theme-color($theme, foreground, secondary-text);
|
|
32
|
+
$disabled-text-color: mat.get-theme-color($theme, foreground, disabled-text);
|
|
33
|
+
$divider-color: mat.get-theme-color($theme, foreground, divider);
|
|
34
|
+
$hover-color: mat.get-theme-color($theme, background, hover);
|
|
35
|
+
$palette-tokens: private-get-color-palette-color-tokens($theme, primary);
|
|
37
36
|
|
|
38
37
|
@return map.merge($palette-tokens, (
|
|
39
38
|
container-text-color: $text-color,
|
|
40
39
|
placeholder-text-color: $hint-text-color,
|
|
41
40
|
disabled-text-color: $hint-text-color,
|
|
42
41
|
|
|
43
|
-
multiple-value-background-color:
|
|
42
|
+
multiple-value-background-color: mat.get-theme-color($theme, background, unselected-chip),
|
|
44
43
|
multiple-value-border-color: $divider-color,
|
|
45
44
|
multiple-value-icon-hover-background-color: $divider-color,
|
|
46
45
|
|
|
47
46
|
clear-icon-color: $secondary-text-color,
|
|
48
|
-
clear-icon-hover-color:
|
|
47
|
+
clear-icon-hover-color: mat.get-theme-color($theme, warn),
|
|
49
48
|
|
|
50
49
|
enabled-arrow-color: $secondary-text-color,
|
|
51
50
|
disabled-arrow-color: $disabled-text-color,
|
|
52
|
-
invalid-arrow-color:
|
|
51
|
+
invalid-arrow-color: mat.get-theme-color($theme, warn),
|
|
53
52
|
|
|
54
|
-
panel-background-color:
|
|
53
|
+
panel-background-color: mat.get-theme-color($theme, background, card),
|
|
55
54
|
panel-divider-color: $divider-color,
|
|
56
55
|
optgroup-label-text-color: $secondary-text-color,
|
|
57
56
|
option-label-text-color: $text-color,
|
|
@@ -62,13 +61,54 @@ $prefix: (mtx, select);
|
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
65
|
-
@function get-typography-tokens($
|
|
64
|
+
@function get-typography-tokens($theme) {
|
|
66
65
|
@return ();
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
70
|
-
@function get-density-tokens($
|
|
71
|
-
|
|
69
|
+
@function get-density-tokens($theme) {
|
|
70
|
+
$density-scale: mat.private-clamp-density(mat.get-theme-density($theme), -4);
|
|
71
|
+
$height: mdc-density.prop-value(
|
|
72
|
+
$density-config: mdc-textfield.$density-config,
|
|
73
|
+
$density-scale: mat.get-theme-density($theme),
|
|
74
|
+
$property-name: height,
|
|
75
|
+
);
|
|
76
|
+
$hide-label: $height < mdc-textfield.$minimum-height-for-filled-label;
|
|
77
|
+
|
|
78
|
+
// We computed the desired height of the form-field using the density configuration. The
|
|
79
|
+
// spec only describes vertical spacing/alignment in non-dense mode. This means that we
|
|
80
|
+
// cannot update the spacing to explicit numbers based on the density scale. Instead, we
|
|
81
|
+
// determine the height reduction and equally subtract it from the default `top` and `bottom`
|
|
82
|
+
// padding that is provided by the Material Design specification.
|
|
83
|
+
$vertical-deduction: math.div(mdc-textfield.$height - $height, 2);
|
|
84
|
+
|
|
85
|
+
// Note: these calculations are trivial enough that we could do them at runtime with `calc`
|
|
86
|
+
// and the value of the `height` token. The problem is that because we need to hide the label
|
|
87
|
+
// if the container becomes too short, we have to change the padding calculation. This is
|
|
88
|
+
// complicated further by the fact that filled form fields without labels have the same
|
|
89
|
+
// vertical padding as outlined ones. Alternatives:
|
|
90
|
+
// 1. Using container queries to hide the label and change the padding - this doesn't work
|
|
91
|
+
// because size container queries require setting the `container-type` property which breaks
|
|
92
|
+
// the form field layout. We could use style queries, but they're only supported in Chrome.
|
|
93
|
+
// 2. Monitoring the size of the label - we already have a `ResizeObserver` on the label so we
|
|
94
|
+
// could reuse it to also check when it becomes `display: none`. This would allows us to remove
|
|
95
|
+
// the three padding tokens. We don't do it, because it would require us to always set up
|
|
96
|
+
// the resize observer, as opposed to currently where it's only set up for outlined form fields.
|
|
97
|
+
// This may lead to performance regressions.
|
|
98
|
+
// 3. Conditionally adding `::before` and `::after` to the infix with positive and negative
|
|
99
|
+
// margin respectively - this works, but is likely to break a lot of overrides that are targeting
|
|
100
|
+
// a specific padding. It also runs the risk of overflowing the container.
|
|
101
|
+
// TODO: switch the padding tokens to style-based container queries
|
|
102
|
+
// when they become available in all the browsers we support.
|
|
103
|
+
$filled-with-label-padding: 24px - $vertical-deduction;
|
|
104
|
+
$filled-with-label-padding-bottom: 8px - $vertical-deduction;
|
|
105
|
+
$vertical-padding: 16px - $vertical-deduction;
|
|
106
|
+
|
|
107
|
+
@return (
|
|
108
|
+
vertical-padding: $vertical-padding,
|
|
109
|
+
filled-padding-top: if($hide-label, $vertical-padding, $filled-with-label-padding),
|
|
110
|
+
filled-padding-bottom: if($hide-label, $vertical-padding, $filled-with-label-padding-bottom),
|
|
111
|
+
);
|
|
72
112
|
}
|
|
73
113
|
|
|
74
114
|
// Combines the tokens generated by the above functions into a single map with placeholder values.
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use 'sass:meta';
|
|
4
|
+
@use '@angular/material' as mat;
|
|
4
5
|
@use '../../token-utils';
|
|
5
|
-
@use '../../../theming/theming';
|
|
6
6
|
@use '../../../style/sass-utils';
|
|
7
7
|
|
|
8
8
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
9
9
|
$prefix: (mtx, split);
|
|
10
10
|
|
|
11
|
-
@function private-get-color-palette-color-tokens($
|
|
12
|
-
$palette: map.get($config, $palette-name);
|
|
13
|
-
|
|
11
|
+
@function private-get-color-palette-color-tokens($theme, $palette-name) {
|
|
14
12
|
@return (
|
|
15
|
-
gutter-hover-state-background-color:
|
|
13
|
+
gutter-hover-state-background-color: mat.get-theme-color($theme, $palette-name, text),
|
|
16
14
|
);
|
|
17
15
|
}
|
|
18
16
|
|
|
@@ -23,22 +21,21 @@ $prefix: (mtx, split);
|
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
// Tokens that can be configured through Angular Material's color theming API.
|
|
26
|
-
@function get-color-tokens($
|
|
27
|
-
$
|
|
28
|
-
$gutter-tokens: private-get-color-palette-color-tokens($config, primary);
|
|
24
|
+
@function get-color-tokens($theme) {
|
|
25
|
+
$gutter-tokens: private-get-color-palette-color-tokens($theme, primary);
|
|
29
26
|
|
|
30
27
|
@return sass-utils.merge-all($gutter-tokens, (
|
|
31
|
-
gutter-background-color:
|
|
28
|
+
gutter-background-color: mat.get-theme-color($theme, foreground, divider),
|
|
32
29
|
));
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
// Tokens that can be configured through Angular Material's typography theming API.
|
|
36
|
-
@function get-typography-tokens($
|
|
33
|
+
@function get-typography-tokens($theme) {
|
|
37
34
|
@return ();
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
// Tokens that can be configured through Angular Material's density theming API.
|
|
41
|
-
@function get-density-tokens($
|
|
38
|
+
@function get-density-tokens($theme) {
|
|
42
39
|
@return ();
|
|
43
40
|
}
|
|
44
41
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use './typography';
|
|
2
|
+
@use '../theming/inspection';
|
|
3
|
+
@use '../../alert/alert-theme';
|
|
4
|
+
@use '../../button/button-theme';
|
|
5
|
+
@use '../../colorpicker/colorpicker-theme';
|
|
6
|
+
@use '../../datetimepicker/datetimepicker-theme';
|
|
7
|
+
@use '../../drawer/drawer-theme';
|
|
8
|
+
@use '../../grid/grid-theme';
|
|
9
|
+
@use '../../loader/loader-theme';
|
|
10
|
+
@use '../../popover/popover-theme';
|
|
11
|
+
@use '../../progress/progress-theme';
|
|
12
|
+
@use '../../select/select-theme';
|
|
13
|
+
@use '../../split/split-theme';
|
|
14
|
+
@use '../../tooltip/tooltip-theme';
|
|
15
|
+
|
|
16
|
+
// Includes all of the typographic styles.
|
|
17
|
+
@mixin all-component-typographies($theme: null) {
|
|
18
|
+
// If no actual color configuration has been specified, create a default one.
|
|
19
|
+
@if not inspection.theme-has($theme, typography) {
|
|
20
|
+
$theme: typography.define-typography-config();
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include alert-theme.typography($theme);
|
|
24
|
+
@include button-theme.typography($theme);
|
|
25
|
+
@include colorpicker-theme.typography($theme);
|
|
26
|
+
@include datetimepicker-theme.typography($theme);
|
|
27
|
+
@include drawer-theme.typography($theme);
|
|
28
|
+
@include grid-theme.typography($theme);
|
|
29
|
+
@include loader-theme.typography($theme);
|
|
30
|
+
@include popover-theme.typography($theme);
|
|
31
|
+
@include progress-theme.typography($theme);
|
|
32
|
+
@include select-theme.typography($theme);
|
|
33
|
+
@include split-theme.typography($theme);
|
|
34
|
+
@include tooltip-theme.typography($theme);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// @deprecated Use `all-component-typographies`.
|
|
38
|
+
@mixin material-extensions-typography($theme: null) {
|
|
39
|
+
@include all-component-typographies($theme);
|
|
40
|
+
}
|