Files
HRM-System/node_modules/@react-stately/flags/src/index.ts
2026-04-13 09:30:59 +08:00

31 lines
957 B
TypeScript

/*
* Copyright 2023 Adobe. All rights reserved.
* This file is licensed to you 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 REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
let _tableNestedRows = false;
let _shadowDOM = false;
export function enableTableNestedRows(): void {
_tableNestedRows = true;
}
export function tableNestedRows(): boolean {
return _tableNestedRows;
}
export function enableShadowDOM(): void {
_shadowDOM = true;
}
export function shadowDOM(): boolean {
return _shadowDOM;
}