@awsui/component-toolkit
Advanced tools
Comparing version 1.0.0-beta.76 to 1.0.0-beta.77
export { default as findUpUntil } from './find-up-until'; | ||
export { default as nodeContains } from './node-contains'; | ||
export { default as nodeBelongs } from './node-belongs'; |
@@ -5,1 +5,2 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
export { default as nodeContains } from './node-contains'; | ||
export { default as nodeBelongs } from './node-belongs'; |
@@ -8,2 +8,2 @@ /** | ||
*/ | ||
export declare function nodeBelongs(container: Node | null, target: Node | EventTarget | null): boolean; | ||
export default function nodeBelongs(container: Node | null, target: Node | EventTarget | null): boolean; |
@@ -12,3 +12,3 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
*/ | ||
export function nodeBelongs(container, target) { | ||
export default function nodeBelongs(container, target) { | ||
var _a; | ||
@@ -15,0 +15,0 @@ if (!isNode(target)) { |
@@ -15,1 +15,5 @@ export { useComponentMetadata, COMPONENT_METADATA_KEY } from './base-component/component-metadata'; | ||
export { getGlobalFlag } from './global-flags'; | ||
export { SingleTabStopNavigationAPI, SingleTabStopNavigationProvider, useSingleTabStopNavigation, } from './single-tab-stop'; | ||
export { isFocusable, getAllFocusables, getFirstFocusable, getLastFocusable } from './focus-lock-utils/utils'; | ||
export { default as handleKey } from './utils/handle-key'; | ||
export { default as circleIndex } from './utils/circle-index'; |
@@ -17,1 +17,5 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
export { getGlobalFlag } from './global-flags'; | ||
export { SingleTabStopNavigationProvider, useSingleTabStopNavigation, } from './single-tab-stop'; | ||
export { isFocusable, getAllFocusables, getFirstFocusable, getLastFocusable } from './focus-lock-utils/utils'; | ||
export { default as handleKey } from './utils/handle-key'; | ||
export { default as circleIndex } from './utils/circle-index'; |
{ | ||
"commit": "6f710c74d06d4fdd4729cbd9b89ea3109ec51ff0" | ||
"commit": "3c08c6f77e60b69344fd3eafb9efde7a220d1896" | ||
} |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import React, { createContext, forwardRef, useContext, useImperativeHandle, useLayoutEffect, useRef, useState, } from 'react'; | ||
import { nodeBelongs } from '../../dom/node-belongs'; | ||
import nodeBelongs from '../../dom/node-belongs'; | ||
export const defaultValue = { | ||
@@ -6,0 +6,0 @@ navigationActive: false, |
@@ -1,1 +0,1 @@ | ||
export declare function circleIndex(index: number, [from, to]: [number, number]): number; | ||
export default function circleIndex(index: number, [from, to]: [number, number]): number; |
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Returns given index if it is in range or the opposite range boundary otherwise. | ||
export function circleIndex(index, [from, to]) { | ||
export default function circleIndex(index, [from, to]) { | ||
if (index < from) { | ||
@@ -6,0 +6,0 @@ return to; |
{ | ||
"name": "@awsui/component-toolkit", | ||
"version": "1.0.0-beta.76", | ||
"version": "1.0.0-beta.77", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "container-queries", |
102797
2080