// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
// See LICENSE in the project root for license information.

// ---------------------------------------------------------------------

/// Variables to determine if `$scope` is to be displayed.
///
/// Configure `$scope: true` via `@use ... with (...)` when a scoped selector output is wanted.
///
/// @group scope-prefix
/// @type boolean
/// @example scss - configure and load
///   @use "./node_modules/@aurodesignsystem/webcorestylesheets/dist/libSupport/manageScope" with ($scope: true);
/// @example scss - return example
///   .auro [selector] { ... }

$scope: null !default;

/// Variables to determine if $prefix is to be displayed
///
/// Configure `$prefix: true` via `@use ... with (...)` when a prefixed selector output is wanted.
///
/// @group scope-prefix
/// @type boolean
/// @example scss - configure and load
///   @use "./node_modules/@aurodesignsystem/webcorestylesheets/dist/libSupport/manageScope" with ($prefix: true);
/// @example scss - return example
///   .auro_[selector] { ... }

$prefix: null !default;
$sym: null !default;

@if $scope {
  $scope: '.auro ';
}

@if $prefix {
  $prefix: 'auro_';
  $sym: '.';
}
