<commit_before>/**
@license
Copyright 2019 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

@use '@material/theme/custom-properties';
@use '@material/notched-outline' as notchedoutline;
@use '@material/theme';
@use '@material/rtl';

@include notchedoutline.core-styles();

:host {
  display: block;
  position: absolute;
  right: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 100%;
  /* @noflip */
  text-align: left;
  pointer-events: none;

  @include rtl.rtl() {
    /* @noflip */
    text-align: right;
  }
}

::slotted(.mdc-floating-label) {
  display: inline-block;
  position: relative;
  top: 17px;
  bottom: auto;
  max-width: 100%;
}

::slotted(.mdc-floating-label--float-above) {
  text-overflow: clip;
}

.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above) {
  max-width: calc(100% / .75);
}

.mdc-notched-outline {
  // Normally shape-radius is included by textfield/select's shape radius mixin
  @include notchedoutline.shape-radius(small);
}

.mdc-notched-outline__leading,
.mdc-notched-outline__notch,
.mdc-notched-outline__trailing {
  border-color: var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #{theme.$primary}));

  @include theme.prop(border-width, (
    varname: --mdc-notched-outline-stroke-width,
    fallback: 1px
  ));
}

.mdc-notched-outline--notched .mdc-notched-outline__notch {
  @include theme.prop(padding-top, (
    // TODO: Collapse this to also use the --mdc-notched-outline-stroke-width
    // variable and update default value to 1px to correct textfield notched
    // label misalignment (currently ~1px higher than center-aligned).
    // Currently this is only overridden in mwc-select.
    // Context: go/mwc-textfield-label-misalignment
    varname: --mdc-notched-outline-notch-offset,
    fallback: 0
  ));
}<commit_msg>refactor: Use individual theme modules in notched outline<commit_after>/**
@license
Copyright 2019 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

@use '@material/theme/custom-properties';
@use '@material/notched-outline' as notchedoutline;
@use '@material/theme/theme';
@use '@material/theme/theme-color';
@use '@material/rtl';

@include notchedoutline.core-styles();

:host {
  display: block;
  position: absolute;
  right: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 100%;
  /* @noflip */
  text-align: left;
  pointer-events: none;

  @include rtl.rtl() {
    /* @noflip */
    text-align: right;
  }
}

::slotted(.mdc-floating-label) {
  display: inline-block;
  position: relative;
  top: 17px;
  bottom: auto;
  max-width: 100%;
}

::slotted(.mdc-floating-label--float-above) {
  text-overflow: clip;
}

.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above) {
  max-width: calc(100% / .75);
}

.mdc-notched-outline {
  // Normally shape-radius is included by textfield/select's shape radius mixin
  @include notchedoutline.shape-radius(small);
}

.mdc-notched-outline__leading,
.mdc-notched-outline__notch,
.mdc-notched-outline__trailing {
  border-color: var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #{theme-color.$primary}));

  @include theme.prop(border-width, (
    varname: --mdc-notched-outline-stroke-width,
    fallback: 1px
  ));
}

.mdc-notched-outline--notched .mdc-notched-outline__notch {
  @include theme.prop(padding-top, (
    // TODO: Collapse this to also use the --mdc-notched-outline-stroke-width
    // variable and update default value to 1px to correct textfield notched
    // label misalignment (currently ~1px higher than center-aligned).
    // Currently this is only overridden in mwc-select.
    // Context: go/mwc-textfield-label-misalignment
    varname: --mdc-notched-outline-notch-offset,
    fallback: 0
  ));
}
{'fraction_non_alphanumeric': 0.13046192259675407, 'fraction_numerical': 0.01373283395755306, 'mean_word_length': 3.7359605911330047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7052671', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1589, 'n_words': 435}