@primer/behaviors 0.0.0-20251121101413 → 0.0.0-20251121102632

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/behaviors",
3
- "version": "0.0.0-20251121101413",
3
+ "version": "0.0.0-20251121102632",
4
4
  "description": "Shared behaviors for JavaScript components",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cjs/index.js",
@@ -1,19 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { type PositionSettings } from '../anchored-position';
3
- type AnchoredPositionArgs = Partial<PositionSettings> & {
4
- floatingWidth: number;
5
- floatingHeight: number;
6
- anchorWidth: number;
7
- anchorHeight: number;
8
- };
9
- declare const meta: Meta<AnchoredPositionArgs>;
10
- export default meta;
11
- type Story = StoryObj<AnchoredPositionArgs>;
12
- export declare const OutsideBottom: Story;
13
- export declare const OutsideTop: Story;
14
- export declare const OutsideRight: Story;
15
- export declare const OutsideLeft: Story;
16
- export declare const CenterAlignment: Story;
17
- export declare const EndAlignment: Story;
18
- export declare const InsideCenter: Story;
19
- export declare const WithOffsets: Story;
@@ -1,11 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- type FocusTrapArgs = {
3
- initialFocusIndex: number;
4
- autoCloseSeconds?: number;
5
- };
6
- declare const meta: Meta<FocusTrapArgs>;
7
- export default meta;
8
- type Story = StoryObj<FocusTrapArgs>;
9
- export declare const BasicTrap: Story;
10
- export declare const CustomInitialFocus: Story;
11
- export declare const ExternalAbortSignal: Story;
@@ -1,16 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- type BindKeysOption = 'Arrow Horizontal' | 'Arrow Vertical' | 'J and K' | 'H and L' | 'Home and End' | 'Page Up and Down' | 'W and S' | 'A and D' | 'Tab' | 'Backspace';
3
- type FocusZoneArgs = {
4
- bindKeys: BindKeysOption[];
5
- focusOutBehavior: 'stop' | 'wrap';
6
- focusInStrategy: 'first' | 'previous' | 'closest';
7
- };
8
- declare const meta: Meta<FocusZoneArgs>;
9
- export default meta;
10
- type Story = StoryObj<FocusZoneArgs>;
11
- export declare const VerticalList: Story;
12
- export declare const HorizontalList: Story;
13
- export declare const ClosestStrategy: Story;
14
- export declare const GridNavigation: Story;
15
- export declare const FilteredElements: Story;
16
- export declare const ActiveDescendant: Story;
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { type ScrollIntoViewOptions } from '../scroll-into-view';
3
- declare const meta: Meta<ScrollIntoViewOptions>;
4
- export default meta;
5
- type Story = StoryObj<ScrollIntoViewOptions>;
6
- export declare const Vertical: Story;
7
- export declare const Horizontal: Story;
8
- export declare const WithMargins: Story;
9
- export declare const InstantScroll: Story;
@@ -1,19 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { type PositionSettings } from '../anchored-position';
3
- type AnchoredPositionArgs = Partial<PositionSettings> & {
4
- floatingWidth: number;
5
- floatingHeight: number;
6
- anchorWidth: number;
7
- anchorHeight: number;
8
- };
9
- declare const meta: Meta<AnchoredPositionArgs>;
10
- export default meta;
11
- type Story = StoryObj<AnchoredPositionArgs>;
12
- export declare const OutsideBottom: Story;
13
- export declare const OutsideTop: Story;
14
- export declare const OutsideRight: Story;
15
- export declare const OutsideLeft: Story;
16
- export declare const CenterAlignment: Story;
17
- export declare const EndAlignment: Story;
18
- export declare const InsideCenter: Story;
19
- export declare const WithOffsets: Story;
@@ -1,11 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- type FocusTrapArgs = {
3
- initialFocusIndex: number;
4
- autoCloseSeconds?: number;
5
- };
6
- declare const meta: Meta<FocusTrapArgs>;
7
- export default meta;
8
- type Story = StoryObj<FocusTrapArgs>;
9
- export declare const BasicTrap: Story;
10
- export declare const CustomInitialFocus: Story;
11
- export declare const ExternalAbortSignal: Story;
@@ -1,16 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- type BindKeysOption = 'Arrow Horizontal' | 'Arrow Vertical' | 'J and K' | 'H and L' | 'Home and End' | 'Page Up and Down' | 'W and S' | 'A and D' | 'Tab' | 'Backspace';
3
- type FocusZoneArgs = {
4
- bindKeys: BindKeysOption[];
5
- focusOutBehavior: 'stop' | 'wrap';
6
- focusInStrategy: 'first' | 'previous' | 'closest';
7
- };
8
- declare const meta: Meta<FocusZoneArgs>;
9
- export default meta;
10
- type Story = StoryObj<FocusZoneArgs>;
11
- export declare const VerticalList: Story;
12
- export declare const HorizontalList: Story;
13
- export declare const ClosestStrategy: Story;
14
- export declare const GridNavigation: Story;
15
- export declare const FilteredElements: Story;
16
- export declare const ActiveDescendant: Story;
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react-vite';
2
- import { type ScrollIntoViewOptions } from '../scroll-into-view';
3
- declare const meta: Meta<ScrollIntoViewOptions>;
4
- export default meta;
5
- type Story = StoryObj<ScrollIntoViewOptions>;
6
- export declare const Vertical: Story;
7
- export declare const Horizontal: Story;
8
- export declare const WithMargins: Story;
9
- export declare const InstantScroll: Story;