Skip to content

Commit

Permalink
chore(tokens): rename tokens/internal/values `tokens/internal/valid…
Browse files Browse the repository at this point in the history
…ate`

The naming is a bit backwards. The file is about validation and the function is for the token values, not a file just for token values.

PiperOrigin-RevId: 599207580
  • Loading branch information
asyncLiz authored and copybara-github committed Jan 17, 2024
1 parent b986b1e commit a3a05e4
Show file tree
Hide file tree
Showing 50 changed files with 109 additions and 109 deletions.
4 changes: 2 additions & 2 deletions tokens/_md-comp-assist-chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -86,7 +86,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-assist-chip.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-shape';
@use './md-sys-state';
Expand Down Expand Up @@ -90,7 +90,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-checkbox.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-circular-progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@use 'sass:math';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-shape';
@use './v0_192/md-comp-circular-progress-indicator';
Expand Down Expand Up @@ -39,7 +39,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-circular-progress-indicator.values(
$deps,
$exclude-hardcoded-values
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -73,7 +73,7 @@ $unsupported-tokens: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-dialog.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-divider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './v0_192/md-comp-divider';
// go/keep-sorted end
Expand All @@ -21,7 +21,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
@return values.validate(
@return validate.values(
md-comp-divider.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens
);
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-elevated-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -77,7 +77,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-elevated-button.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-elevated-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -53,7 +53,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-elevated-card.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-elevation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
// go/keep-sorted end
Expand All @@ -29,5 +29,5 @@ $_default: (
'level': map.get($deps, 'md-sys-elevation', 'level0'),
'shadow-color': map.get($deps, 'md-sys-color', 'shadow'),
);
@return values.validate($tokens, $supported-tokens: $supported-tokens);
@return validate.values($tokens, $supported-tokens: $supported-tokens);
}
4 changes: 2 additions & 2 deletions tokens/_md-comp-fab-branded.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -100,7 +100,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-fab-branded.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-fab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -234,7 +234,7 @@ $_default: (
@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: md-comp-fab-surface.values($deps, $exclude-hardcoded-values);

$tokens: values.validate(
$tokens: validate.values(
$tokens,
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-filled-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -77,7 +77,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-filled-button.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-filled-card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -53,7 +53,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-filled-card.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-filled-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-shape';
@use './md-sys-state';
Expand Down Expand Up @@ -249,5 +249,5 @@ $_default: (
// go/keep-sorted end
);

@return values.validate($tokens, $supported-tokens: $supported-tokens);
@return validate.values($tokens, $supported-tokens: $supported-tokens);
}
4 changes: 2 additions & 2 deletions tokens/_md-comp-filled-icon-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-shape';
@use './md-sys-state';
Expand Down Expand Up @@ -65,7 +65,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-filled-icon-button.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-filled-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -159,7 +159,7 @@ $_default: (
$original-tokens,
_get-override-tokens($exclude-hardcoded-values)
);
$tokens: values.validate(
$tokens: validate.values(
$original-tokens,
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-filled-text-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-shape';
@use './md-sys-state';
Expand Down Expand Up @@ -120,7 +120,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-filled-text-field.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-filled-tonal-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -77,7 +77,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-filled-tonal-button.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-filled-tonal-icon-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-shape';
@use './md-sys-state';
Expand Down Expand Up @@ -65,7 +65,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-filled-tonal-icon-button.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-filter-chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@use 'sass:map';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-elevation';
@use './md-sys-shape';
Expand Down Expand Up @@ -128,7 +128,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-filter-chip.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-focus-ring.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@use 'sass:string';
// go/keep-sorted end
// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-motion';
@use './md-sys-shape';
Expand Down Expand Up @@ -43,5 +43,5 @@ $_default: (
'width': if($exclude-hardcoded-values, null, 3px),
);

@return values.validate($tokens, $supported-tokens: $supported-tokens);
@return validate.values($tokens, $supported-tokens: $supported-tokens);
}
4 changes: 2 additions & 2 deletions tokens/_md-comp-icon-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
@use './md-sys-color';
@use './md-sys-shape';
@use './md-sys-state';
Expand Down Expand Up @@ -54,7 +54,7 @@ $_default: (
);

@function values($deps: $_default, $exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
md-comp-icon-button.values($deps, $exclude-hardcoded-values),
$supported-tokens: $supported-tokens,
$unsupported-tokens: $unsupported-tokens,
Expand Down
4 changes: 2 additions & 2 deletions tokens/_md-comp-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//

// go/keep-sorted start
@use './internal/values';
@use './internal/validate';
// go/keep-sorted end

$supported-tokens: (
Expand All @@ -24,7 +24,7 @@ $supported-tokens: (
}

@function values($exclude-hardcoded-values: false) {
$tokens: values.validate(
$tokens: validate.values(
(),
$supported-tokens: $supported-tokens,
$new-tokens: _get-new-tokens($exclude-hardcoded-values)
Expand Down
Loading

0 comments on commit a3a05e4

Please sign in to comment.