mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
BREAKING CHANGE: Replace `container-size` tokens with `container-width` and `container-height`. PiperOrigin-RevId: 566801178
83 lines
2.4 KiB
SCSS
83 lines
2.4 KiB
SCSS
//
|
|
// Copyright 2023 Google LLC
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
// go/keep-sorted start
|
|
@use './md-sys-color';
|
|
@use './md-sys-shape';
|
|
@use './md-sys-state';
|
|
@use './v0_192/md-comp-outlined-icon-button';
|
|
@use './values';
|
|
// go/keep-sorted end
|
|
|
|
$supported-tokens: (
|
|
// go/keep-sorted start
|
|
'container-height',
|
|
'container-shape',
|
|
'container-width',
|
|
'disabled-icon-color',
|
|
'disabled-icon-opacity',
|
|
'disabled-outline-color',
|
|
'disabled-outline-opacity',
|
|
'disabled-selected-container-color',
|
|
'disabled-selected-container-opacity',
|
|
'focus-icon-color',
|
|
'hover-icon-color',
|
|
'hover-state-layer-color',
|
|
'hover-state-layer-opacity',
|
|
'icon-color',
|
|
'icon-size',
|
|
'outline-color',
|
|
'outline-width',
|
|
'pressed-icon-color',
|
|
'pressed-state-layer-color',
|
|
'pressed-state-layer-opacity',
|
|
'selected-container-color',
|
|
'selected-focus-icon-color',
|
|
'selected-hover-icon-color',
|
|
'selected-hover-state-layer-color',
|
|
'selected-icon-color',
|
|
'selected-pressed-icon-color',
|
|
'selected-pressed-state-layer-color',
|
|
// go/keep-sorted end
|
|
);
|
|
|
|
$unsupported-tokens: (
|
|
// go/keep-sorted start
|
|
'focus-state-layer-color',
|
|
'focus-state-layer-opacity',
|
|
'selected-focus-state-layer-color',
|
|
// go/keep-sorted end
|
|
);
|
|
|
|
$_default: (
|
|
'md-sys-color': md-sys-color.values-light(),
|
|
'md-sys-shape': md-sys-shape.values(),
|
|
'md-sys-state': md-sys-state.values(),
|
|
);
|
|
|
|
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
$tokens: values.validate(
|
|
md-comp-outlined-icon-button.values($deps, $exclude-hardcoded-values),
|
|
$supported-tokens: $supported-tokens,
|
|
$unsupported-tokens: $unsupported-tokens,
|
|
$renamed-tokens: (
|
|
// TODO(b/292244480): remove default unselected prefix
|
|
'disabled-unselected-outline-color': 'disabled-outline-color',
|
|
'disabled-unselected-outline-opacity': 'disabled-outline-opacity',
|
|
'unselected-focus-icon-color': 'focus-icon-color',
|
|
'unselected-hover-icon-color': 'hover-icon-color',
|
|
'unselected-hover-state-layer-color': 'hover-state-layer-color',
|
|
'unselected-icon-color': 'icon-color',
|
|
'unselected-outline-color': 'outline-color',
|
|
'unselected-outline-width': 'outline-width',
|
|
'unselected-pressed-icon-color': 'pressed-icon-color',
|
|
'unselected-pressed-state-layer-color': 'pressed-state-layer-color',
|
|
'unselected-focus-state-layer-color': 'focus-state-layer-color'
|
|
)
|
|
);
|
|
|
|
@return $tokens;
|
|
}
|