uikit-react-public 0.42.0 → 0.43.0
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/dist/components/SkipToContent/SkipToContent.d.ts +8 -0
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +36 -0
- package/dist/components/SkipToContent/__tests__/SkipToContent.test.d.ts +1 -0
- package/dist/components/SkipToContent/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +3328 -3281
- package/lib/components/SkipToContent/SkipToContent.stories.tsx +47 -0
- package/lib/components/SkipToContent/SkipToContent.tsx +68 -0
- package/lib/components/SkipToContent/__tests__/SkipToContent.test.tsx +38 -0
- package/lib/components/SkipToContent/index.ts +2 -0
- package/lib/components/index.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, Ref } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-skip-to-content";
|
|
3
|
+
export interface SkipToContentProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
testId?: string;
|
|
5
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('react').MemoExoticComponent<({ href, testId, className, children, ref, ...props }: SkipToContentProps) => import("react").JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').MemoExoticComponent<({ href, testId, className, children, ref, ...props }: import('./SkipToContent').SkipToContentProps) => import("react").JSX.Element>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
argTypes: {
|
|
9
|
+
href: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
children: {
|
|
15
|
+
control: {
|
|
16
|
+
type: "text";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
testId: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "text";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
className: {
|
|
25
|
+
control: false;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
args: {
|
|
29
|
+
href: string;
|
|
30
|
+
children: string;
|
|
31
|
+
};
|
|
32
|
+
tags: string[];
|
|
33
|
+
};
|
|
34
|
+
export default meta;
|
|
35
|
+
type Story = StoryObj<typeof meta>;
|
|
36
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -121,6 +121,8 @@ export { default as CookieNotice } from './CookieNotice';
|
|
|
121
121
|
export type { CookieNoticeProps } from './CookieNotice';
|
|
122
122
|
export { default as Search } from './Search';
|
|
123
123
|
export type { SearchProps } from './Search';
|
|
124
|
+
export { default as SkipToContent } from './SkipToContent';
|
|
125
|
+
export type { SkipToContentProps } from './SkipToContent';
|
|
124
126
|
export { default as Dropdown } from './Dropdown';
|
|
125
127
|
export type { DropdownProps, DropdownTriggerProps, DropdownContentProps, } from './Dropdown';
|
|
126
128
|
export { default as DropdownMenu } from './DropdownMenu';
|