@ng-matero/extensions 19.4.0 → 20.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 +1 -1
- package/alert/_alert-theme.scss +26 -31
- package/alert/_m2-alert.scss +59 -0
- package/alert/_m3-alert.scss +41 -0
- package/alert/alert.scss +27 -31
- package/alert/index.d.ts +30 -5
- package/button/index.d.ts +31 -5
- package/checkbox-group/index.d.ts +117 -5
- package/colorpicker/_colorpicker-theme.scss +31 -36
- package/{core/tokens/m2/mtx/_colorpicker.scss → colorpicker/_m2-colorpicker.scss} +6 -10
- package/colorpicker/_m3-colorpicker.scss +23 -0
- package/colorpicker/colorpicker-toggle.scss +4 -9
- package/colorpicker/index.d.ts +285 -3
- package/column-resize/index.d.ts +456 -3
- package/core/index.d.ts +147 -5
- package/core/theming/_color-api-backwards-compatibility.scss +8 -15
- package/core/theming/_definition.scss +81 -75
- package/core/theming/_palettes.scss +1036 -0
- package/core/tokens/{m2/_index.scss → _m2-tokens.scss} +22 -22
- package/core/tokens/_m2-utils.scss +108 -0
- package/core/tokens/_m3-system.scss +128 -106
- package/core/tokens/_m3-tokens.scss +36 -282
- package/core/tokens/_m3-utils.scss +48 -0
- package/core/tokens/_token-utils.scss +67 -239
- package/core/tokens/m3/_index.scss +7 -0
- package/core/tokens/m3/_md-sys-color.scss +156 -0
- package/core/tokens/m3/_md-sys-elevation.scss +15 -0
- package/core/tokens/m3/_md-sys-motion.scss +35 -0
- package/core/tokens/m3/_md-sys-shape.scss +21 -0
- package/core/tokens/m3/_md-sys-state.scss +13 -0
- package/core/tokens/m3/_md-sys-typescale.scss +128 -0
- package/core/tokens/m3/_theme.scss +47 -0
- package/datetimepicker/_datetimepicker-theme.scss +29 -39
- package/datetimepicker/_m2-datetimepicker.scss +149 -0
- package/datetimepicker/_m3-datetimepicker.scss +81 -0
- package/datetimepicker/calendar-body.scss +31 -56
- package/datetimepicker/calendar.scss +43 -79
- package/datetimepicker/clock.scss +28 -47
- package/datetimepicker/datetimepicker-content.scss +9 -15
- package/datetimepicker/datetimepicker-toggle.scss +4 -9
- package/datetimepicker/index.d.ts +1208 -3
- package/datetimepicker/time-view.scss +26 -32
- package/dialog/index.d.ts +54 -5
- package/drawer/_drawer-theme.scss +25 -30
- package/{core/tokens/m2/mtx/_drawer.scss → drawer/_m2-drawer.scss} +9 -12
- package/drawer/_m3-drawer.scss +24 -0
- package/drawer/drawer-container.scss +13 -24
- package/drawer/index.d.ts +221 -3
- package/fesm2022/mtxAlert.mjs +7 -7
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +7 -7
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxColorpicker.mjs +21 -21
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +232 -103
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxDatetimepicker.mjs +63 -63
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +10 -10
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +10 -10
- package/fesm2022/mtxGrid.mjs +78 -77
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPopover.mjs +24 -25
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +7 -7
- package/fesm2022/mtxSelect.mjs +54 -54
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +10 -10
- package/fesm2022/mtxTooltip.mjs +13 -13
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +22 -35
- package/grid/_m2-grid.scss +66 -0
- package/grid/_m3-grid.scss +35 -0
- package/grid/column-menu.scss +6 -23
- package/grid/column-resize/_column-resize.scss +35 -30
- package/grid/grid.scss +41 -73
- package/grid/index.d.ts +799 -3
- package/index.d.ts +2 -5
- package/loader/_loader-theme.scss +26 -31
- package/{core/tokens/m2/mtx/_loader.scss → loader/_m2-loader.scss} +5 -10
- package/loader/_m3-loader.scss +20 -0
- package/loader/index.d.ts +43 -5
- package/loader/loader.scss +4 -5
- package/package.json +29 -29
- package/photoviewer/index.d.ts +26 -5
- package/{core/tokens/m2/mtx/_popover.scss → popover/_m2-popover.scss} +9 -12
- package/popover/_m3-popover.scss +26 -0
- package/popover/_popover-theme.scss +26 -31
- package/popover/index.d.ts +399 -3
- package/popover/popover.scss +23 -29
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress/_m2-progress.scss +53 -0
- package/progress/_m3-progress.scss +33 -0
- package/progress/_progress-theme.scss +22 -34
- package/progress/index.d.ts +35 -5
- package/progress/progress.scss +28 -43
- package/select/_m2-select.scss +79 -0
- package/select/_m3-select.scss +46 -0
- package/select/_select-theme.scss +27 -37
- package/select/index.d.ts +381 -3
- package/select/select.scss +189 -205
- package/{core/tokens/m2/mtx/_split.scss → split/_m2-split.scss} +6 -9
- package/split/_m3-split.scss +23 -0
- package/split/_split-theme.scss +31 -34
- package/split/index.d.ts +255 -3
- package/split/split.scss +8 -11
- package/tooltip/_m2-tooltip.scss +50 -0
- package/tooltip/_m3-tooltip.scss +28 -0
- package/tooltip/_tooltip-theme.scss +23 -47
- package/tooltip/index.d.ts +345 -3
- package/tooltip/tooltip.scss +11 -15
- package/alert/alert-module.d.ts +0 -8
- package/alert/alert.d.ts +0 -19
- package/alert/public-api.d.ts +0 -2
- package/button/button-loading.d.ts +0 -19
- package/button/button-module.d.ts +0 -10
- package/button/public-api.d.ts +0 -2
- package/checkbox-group/checkbox-group-module.d.ts +0 -11
- package/checkbox-group/checkbox-group.d.ts +0 -86
- package/checkbox-group/interfaces.d.ts +0 -17
- package/checkbox-group/public-api.d.ts +0 -3
- package/colorpicker/colorpicker-animations.d.ts +0 -9
- package/colorpicker/colorpicker-input.d.ts +0 -88
- package/colorpicker/colorpicker-module.d.ts +0 -15
- package/colorpicker/colorpicker-toggle.d.ts +0 -39
- package/colorpicker/colorpicker.d.ts +0 -140
- package/colorpicker/public-api.d.ts +0 -5
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -29
- package/column-resize/column-resize-directives/column-resize.d.ts +0 -29
- package/column-resize/column-resize-directives/constants.d.ts +0 -10
- package/column-resize/column-resize-module.d.ts +0 -12
- package/column-resize/column-resize-notifier.d.ts +0 -48
- package/column-resize/column-resize.d.ts +0 -39
- package/column-resize/column-size-store.d.ts +0 -12
- package/column-resize/event-dispatcher.d.ts +0 -35
- package/column-resize/overlay-handle.d.ts +0 -43
- package/column-resize/polyfill.d.ts +0 -9
- package/column-resize/public-api.d.ts +0 -12
- package/column-resize/resizable.d.ts +0 -63
- package/column-resize/resize-ref.d.ts +0 -17
- package/column-resize/resize-strategy.d.ts +0 -84
- package/column-resize/selectors.d.ts +0 -10
- package/core/datetime/datetime-adapter.d.ts +0 -45
- package/core/datetime/datetime-formats.d.ts +0 -22
- package/core/datetime/datetime.module.d.ts +0 -15
- package/core/datetime/index.d.ts +0 -5
- package/core/datetime/native-datetime-adapter.d.ts +0 -40
- package/core/datetime/native-datetime-formats.d.ts +0 -2
- package/core/pipes/index.d.ts +0 -3
- package/core/pipes/is-template-ref.pipe.d.ts +0 -7
- package/core/pipes/pipes.module.d.ts +0 -9
- package/core/pipes/to-observable.pipe.d.ts +0 -8
- package/core/public-api.d.ts +0 -2
- package/core/theming/_inspection.scss +0 -38
- package/core/theming/_validation.scss +0 -5
- package/core/tokens/_density.scss +0 -49
- package/core/tokens/_format-tokens.scss +0 -5
- package/core/tokens/_token-definition.scss +0 -271
- package/core/tokens/m2/mdc/_plain-tooltip.scss +0 -63
- package/core/tokens/m2/mtx/_alert.scss +0 -62
- package/core/tokens/m2/mtx/_datetimepicker.scss +0 -152
- package/core/tokens/m2/mtx/_grid.scss +0 -69
- package/core/tokens/m2/mtx/_progress.scss +0 -56
- package/core/tokens/m2/mtx/_select.scss +0 -82
- package/core/tokens/m3/definitions/_index.scss +0 -9
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +0 -51
- package/core/tokens/m3/definitions/_md-ref-palette.scss +0 -100
- package/core/tokens/m3/definitions/_md-ref-typeface.scss +0 -14
- package/core/tokens/m3/definitions/_md-sys-color.scss +0 -126
- package/core/tokens/m3/definitions/_md-sys-elevation.scss +0 -15
- package/core/tokens/m3/definitions/_md-sys-motion.scss +0 -46
- package/core/tokens/m3/definitions/_md-sys-shape.scss +0 -24
- package/core/tokens/m3/definitions/_md-sys-state.scss +0 -13
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +0 -308
- package/core/tokens/m3/index.scss +0 -47
- package/core/tokens/m3/mdc/_plain-tooltip.scss +0 -15
- package/core/tokens/m3/mtx/_alert.scss +0 -41
- package/core/tokens/m3/mtx/_colorpicker.scss +0 -19
- package/core/tokens/m3/mtx/_datetimepicker.scss +0 -140
- package/core/tokens/m3/mtx/_drawer.scss +0 -22
- package/core/tokens/m3/mtx/_grid.scss +0 -32
- package/core/tokens/m3/mtx/_loader.scss +0 -22
- package/core/tokens/m3/mtx/_popover.scss +0 -25
- package/core/tokens/m3/mtx/_progress.scss +0 -32
- package/core/tokens/m3/mtx/_select.scss +0 -76
- package/core/tokens/m3/mtx/_split.scss +0 -30
- package/datetimepicker/calendar-body.d.ts +0 -66
- package/datetimepicker/calendar.d.ts +0 -157
- package/datetimepicker/clock.d.ts +0 -101
- package/datetimepicker/datetimepicker-actions.d.ts +0 -36
- package/datetimepicker/datetimepicker-animations.d.ts +0 -11
- package/datetimepicker/datetimepicker-errors.d.ts +0 -2
- package/datetimepicker/datetimepicker-filtertype.d.ts +0 -5
- package/datetimepicker/datetimepicker-input.d.ts +0 -105
- package/datetimepicker/datetimepicker-intl.d.ts +0 -53
- package/datetimepicker/datetimepicker-module.d.ts +0 -22
- package/datetimepicker/datetimepicker-toggle.d.ts +0 -42
- package/datetimepicker/datetimepicker-types.d.ts +0 -6
- package/datetimepicker/datetimepicker.d.ts +0 -274
- package/datetimepicker/month-view.d.ts +0 -80
- package/datetimepicker/multi-year-view.d.ts +0 -86
- package/datetimepicker/public-api.d.ts +0 -16
- package/datetimepicker/time-view.d.ts +0 -147
- package/datetimepicker/year-view.d.ts +0 -68
- package/dialog/dialog-config.d.ts +0 -17
- package/dialog/dialog-container.d.ts +0 -11
- package/dialog/dialog-module.d.ts +0 -12
- package/dialog/dialog.d.ts +0 -15
- package/dialog/public-api.d.ts +0 -4
- package/drawer/drawer-animations.d.ts +0 -8
- package/drawer/drawer-config.d.ts +0 -63
- package/drawer/drawer-container.d.ts +0 -35
- package/drawer/drawer-module.d.ts +0 -10
- package/drawer/drawer-ref.d.ts +0 -53
- package/drawer/drawer.d.ts +0 -59
- package/drawer/public-api.d.ts +0 -6
- package/grid/cell.d.ts +0 -32
- package/grid/column-menu.d.ts +0 -39
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -24
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -24
- package/grid/column-resize/column-resize-directives/common.d.ts +0 -13
- package/grid/column-resize/column-resize-module.d.ts +0 -17
- package/grid/column-resize/index.d.ts +0 -7
- package/grid/column-resize/overlay-handle.d.ts +0 -32
- package/grid/column-resize/resizable-directives/common.d.ts +0 -19
- package/grid/column-resize/resizable-directives/resizable.d.ts +0 -32
- package/grid/column-resize/resize-strategy.d.ts +0 -20
- package/grid/expansion-toggle.d.ts +0 -17
- package/grid/grid-module.d.ts +0 -31
- package/grid/grid-pipes.d.ts +0 -39
- package/grid/grid-utils.d.ts +0 -33
- package/grid/grid.d.ts +0 -268
- package/grid/interfaces.d.ts +0 -180
- package/grid/public-api.d.ts +0 -17
- package/grid/selectable-cell.d.ts +0 -16
- package/loader/loader-module.d.ts +0 -10
- package/loader/loader.d.ts +0 -30
- package/loader/public-api.d.ts +0 -2
- package/photoviewer/photoviewer-module.d.ts +0 -7
- package/photoviewer/photoviewer.d.ts +0 -17
- package/photoviewer/public-api.d.ts +0 -2
- package/popover/popover-animations.d.ts +0 -11
- package/popover/popover-content.d.ts +0 -43
- package/popover/popover-errors.d.ts +0 -14
- package/popover/popover-interfaces.d.ts +0 -50
- package/popover/popover-module.d.ts +0 -13
- package/popover/popover-target.d.ts +0 -7
- package/popover/popover-trigger.d.ts +0 -132
- package/popover/popover-types.d.ts +0 -10
- package/popover/popover.d.ts +0 -147
- package/popover/public-api.d.ts +0 -8
- package/progress/progress-module.d.ts +0 -8
- package/progress/progress.d.ts +0 -24
- package/progress/public-api.d.ts +0 -2
- package/public-api.d.ts +0 -2
- package/select/option.d.ts +0 -21
- package/select/public-api.d.ts +0 -5
- package/select/select-intl.d.ts +0 -18
- package/select/select-module.d.ts +0 -12
- package/select/select.d.ts +0 -270
- package/select/templates.d.ts +0 -67
- package/split/interfaces.d.ts +0 -52
- package/split/public-api.d.ts +0 -5
- package/split/split-module.d.ts +0 -9
- package/split/split-pane.d.ts +0 -53
- package/split/split.d.ts +0 -133
- package/split/utils.d.ts +0 -13
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip-animations.d.ts +0 -9
- package/tooltip/tooltip-module.d.ts +0 -13
- package/tooltip/tooltip.d.ts +0 -321
|
@@ -2,21 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
@use '@angular/material' as mat;
|
|
5
|
+
@use './palettes';
|
|
5
6
|
@use '../tokens/m3-tokens';
|
|
6
7
|
@use './config-validation';
|
|
8
|
+
@use '../tokens/m3';
|
|
7
9
|
|
|
8
10
|
// Prefix used for component token fallback variables, e.g.
|
|
9
|
-
// `color: var(--
|
|
11
|
+
// `color: var(--mat-text-button-label-text-color, var(--mat-sys-primary));`
|
|
10
12
|
$system-fallback-prefix: mat-sys;
|
|
11
13
|
|
|
12
14
|
// Default system level prefix to use when directly calling the `system-level-*` mixins.
|
|
13
15
|
// Prefix used for component token fallback variables, e.g.
|
|
14
|
-
// `color: var(--
|
|
16
|
+
// `color: var(--mat-text-button-label-text-color, var(--mat-sys-primary));`
|
|
15
17
|
// TODO: Remove this variable after internal clients are migrated from "sys"
|
|
16
18
|
$system-level-prefix: mat-sys;
|
|
17
19
|
|
|
18
20
|
/// Map key used to store internals of theme config.
|
|
19
21
|
$internals: _mat-theming-internals-do-not-access;
|
|
22
|
+
|
|
20
23
|
/// The theme version of generated themes.
|
|
21
24
|
$theme-version: 1;
|
|
22
25
|
|
|
@@ -29,98 +32,101 @@ $theme-version: 1;
|
|
|
29
32
|
@error $err;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
$color-config: map.get($config, color) or ();
|
|
36
|
+
$typography-config: map.get($config, typography) or ();
|
|
37
|
+
$density-config: map.get($config, density) or ();
|
|
38
|
+
|
|
39
|
+
// colors
|
|
40
|
+
$type: map.get($color-config, theme-type) or light;
|
|
41
|
+
$primary: map.get($color-config, primary) or palettes.$violet-palette;
|
|
42
|
+
$tertiary: map.get($color-config, tertiary) or $primary;
|
|
43
|
+
$color-system-variables-prefix:
|
|
44
|
+
map.get($color-config, system-variables-prefix) or $system-level-prefix;
|
|
45
|
+
mat.$private-use-system-color-variables: map.get($color-config, use-system-variables) or false;
|
|
46
|
+
|
|
47
|
+
$palettes: (
|
|
48
|
+
primary: map.remove($primary, neutral, neutral-variant, secondary),
|
|
49
|
+
secondary: map.get($primary, secondary),
|
|
50
|
+
tertiary: map.remove($tertiary, neutral, neutral-variant, secondary, error),
|
|
51
|
+
neutral: map.get($primary, neutral),
|
|
52
|
+
neutral-variant: map.get($primary, neutral-variant),
|
|
53
|
+
error: map.get($primary, error),
|
|
37
54
|
);
|
|
38
|
-
}
|
|
39
55
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
$
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
56
|
+
// typography
|
|
57
|
+
$default-plain: (Roboto, sans-serif);
|
|
58
|
+
$default-brand: $default-plain;
|
|
59
|
+
$plain: map.get($typography-config, plain-family) or $default-plain;
|
|
60
|
+
$brand: map.get($typography-config, brand-family) or $default-brand;
|
|
61
|
+
$bold: map.get($typography-config, bold-weight) or 700;
|
|
62
|
+
$medium: map.get($typography-config, medium-weight) or 500;
|
|
63
|
+
$regular: map.get($typography-config, regular-weight) or 400;
|
|
64
|
+
$typography-system-variables-prefix: map.get($typography-config, system-variables-prefix) or
|
|
65
|
+
$system-level-prefix;
|
|
66
|
+
mat.$private-use-system-typography-variables:
|
|
67
|
+
map.get($typography-config, use-system-variables) or false;
|
|
68
|
+
$typography: (
|
|
69
|
+
plain: $plain,
|
|
70
|
+
brand: $brand,
|
|
71
|
+
bold: $bold,
|
|
72
|
+
medium: $medium,
|
|
73
|
+
regular: $regular,
|
|
74
|
+
);
|
|
48
75
|
|
|
49
|
-
|
|
50
|
-
$
|
|
51
|
-
$tertiary: map.get($config, tertiary) or $primary;
|
|
52
|
-
$system-variables-prefix: map.get($config, system-variables-prefix) or $system-level-prefix;
|
|
53
|
-
mat.$private-use-system-color-variables: map.get($config, use-system-variables) or false;
|
|
76
|
+
// density
|
|
77
|
+
$density-scale: map.get($density-config, scale) or 0;
|
|
54
78
|
|
|
55
79
|
@return (
|
|
56
80
|
$internals: (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
81
|
+
base-tokens: m3-tokens.generate-base-tokens(),
|
|
82
|
+
color-system-variables-prefix: $color-system-variables-prefix,
|
|
83
|
+
color-tokens:
|
|
84
|
+
m3-tokens.generate-color-tokens($type, $palettes, $color-system-variables-prefix),
|
|
85
|
+
density-scale: $density-scale,
|
|
86
|
+
font-definition: $typography,
|
|
87
|
+
md-sys-color: m3-tokens.get-sys-color($type, $palettes, $color-system-variables-prefix),
|
|
88
|
+
md-sys-elevation: m3.md-sys-elevation-values(),
|
|
89
|
+
md-sys-motion: m3.md-sys-motion-values(),
|
|
90
|
+
md-sys-shape: m3.md-sys-shape-values(),
|
|
91
|
+
md-sys-state: m3.md-sys-state-values(),
|
|
92
|
+
md-ref-palette: (
|
|
93
|
+
// Form field native select option text color
|
|
94
|
+
neutral10: map.get($palettes, neutral, 10),
|
|
95
|
+
// Sidenav scrim (container background shadow when opened),
|
|
96
|
+
neutral-variant20: map.get($palettes, neutral-variant, 20),
|
|
66
97
|
),
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
98
|
+
md-sys-typescale:
|
|
99
|
+
m3-tokens.get-sys-typeface($typography, $typography-system-variables-prefix),
|
|
100
|
+
palettes: $palettes,
|
|
101
|
+
theme-type: $type,
|
|
102
|
+
theme-version: $theme-version,
|
|
103
|
+
typography-system-variables-prefix: $typography-system-variables-prefix,
|
|
104
|
+
typography-tokens:
|
|
105
|
+
m3-tokens.generate-typography-tokens($typography, $typography-system-variables-prefix),
|
|
70
106
|
)
|
|
71
107
|
);
|
|
72
108
|
}
|
|
73
109
|
|
|
110
|
+
/// Defines an Angular Material theme object with color settings.
|
|
111
|
+
/// @param {Map} $config The color configuration
|
|
112
|
+
/// @return {Map} A theme object
|
|
113
|
+
/// @deprecated Use define-theme with a map using the "color" key
|
|
114
|
+
@function define-colors($config: ()) {
|
|
115
|
+
@return define-theme((color: $config));
|
|
116
|
+
}
|
|
117
|
+
|
|
74
118
|
/// Defines an Angular Material theme object with typography settings.
|
|
75
119
|
/// @param {Map} $config The typography configuration
|
|
76
120
|
/// @return {Map} A theme object
|
|
121
|
+
/// @deprecated Use define-theme with a map using the "typography" key
|
|
77
122
|
@function define-typography($config: ()) {
|
|
78
|
-
|
|
79
|
-
@if $err {
|
|
80
|
-
@error $err;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
$plain: map.get($config, plain-family) or (Roboto, sans-serif);
|
|
84
|
-
$brand: map.get($config, brand-family) or $plain;
|
|
85
|
-
$bold: map.get($config, bold-weight) or 700;
|
|
86
|
-
$medium: map.get($config, medium-weight) or 500;
|
|
87
|
-
$regular: map.get($config, regular-weight) or 400;
|
|
88
|
-
$system-variables-prefix: map.get($config, system-variables-prefix) or sys;
|
|
89
|
-
mat.$private-use-system-typography-variables: map.get($config, use-system-variables) or false;
|
|
90
|
-
|
|
91
|
-
@return (
|
|
92
|
-
$internals: (
|
|
93
|
-
theme-version: $theme-version,
|
|
94
|
-
font-definition: (
|
|
95
|
-
plain: $plain,
|
|
96
|
-
brand: $brand,
|
|
97
|
-
bold: $bold,
|
|
98
|
-
medium: $medium,
|
|
99
|
-
regular: $regular,
|
|
100
|
-
),
|
|
101
|
-
typography-system-variables-prefix: $system-variables-prefix,
|
|
102
|
-
typography-tokens: m3-tokens.generate-typography-tokens(
|
|
103
|
-
$brand, $plain, $bold, $medium, $regular, $system-variables-prefix)
|
|
104
|
-
)
|
|
105
|
-
);
|
|
123
|
+
@return define-theme((typography: $config));
|
|
106
124
|
}
|
|
107
125
|
|
|
108
126
|
/// Defines an Angular Material theme object with density settings.
|
|
109
127
|
/// @param {Map} $config The density configuration
|
|
110
128
|
/// @return {Map} A theme object
|
|
129
|
+
/// @deprecated Use define-theme with a map using the "density" key
|
|
111
130
|
@function define-density($config: ()) {
|
|
112
|
-
|
|
113
|
-
@if $err {
|
|
114
|
-
@error $err;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
$density-scale: map.get($config, scale) or 0;
|
|
118
|
-
|
|
119
|
-
@return (
|
|
120
|
-
$internals: (
|
|
121
|
-
theme-version: $theme-version,
|
|
122
|
-
density-scale: $density-scale,
|
|
123
|
-
density-tokens: m3-tokens.generate-density-tokens($density-scale)
|
|
124
|
-
)
|
|
125
|
-
);
|
|
131
|
+
@return define-theme((density: $config));
|
|
126
132
|
}
|