uikit-react-public 0.17.4 → 0.21.9
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/README.md +2 -4
- package/dist/components/Accordion/Accordion.Heading.d.ts +1 -0
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderBottom.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderNav.d.ts +1 -1
- package/dist/components/AppHeader/AppHeaderTop.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +3 -4
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +7 -3
- package/dist/components/Button/Button.stories.d.ts +17 -7
- package/dist/components/Button/style/buttonAccentStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonPrimaryDestructiveStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonPrimaryStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonPrimarySubtleStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonPrimaryWarningStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonSecondaryDestructiveStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonSecondaryStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonSecondarySubtleStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonTertiaryDestructiveStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonTertiaryNoPaddingStyle.d.ts +4 -0
- package/dist/components/Button/style/buttonTertiaryStyle.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/FooterNew/BackToTop.d.ts +8 -0
- package/dist/components/FooterNew/Footer.d.ts +23 -0
- package/dist/components/FooterNew/FooterColumn.d.ts +8 -0
- package/dist/components/FooterNew/FooterLinks.d.ts +7 -0
- package/dist/components/FooterNew/FooterNavLink.d.ts +8 -0
- package/dist/components/FooterNew/LegalAndCopyright.d.ts +14 -0
- package/dist/components/FooterNew/LogoAddressAndSocial.d.ts +10 -0
- package/dist/components/FooterNew/SocialLink.d.ts +8 -0
- package/dist/components/FooterNew/__tests__/Footer.test.d.ts +1 -0
- package/dist/components/FooterNew/index.d.ts +2 -0
- package/dist/components/HeaderNew/Header.d.ts +18 -0
- package/dist/components/HeaderNew/HeaderBorder.d.ts +7 -0
- package/dist/components/HeaderNew/HeaderLogo.d.ts +9 -0
- package/dist/components/HeaderNew/HeaderMenuContainer.d.ts +7 -0
- package/dist/components/HeaderNew/HeaderTitle.d.ts +9 -0
- package/dist/components/HeaderNew/__tests__/Header.test.d.ts +1 -0
- package/dist/components/HeaderNew/constants.d.ts +3 -0
- package/dist/components/HeaderNew/index.d.ts +3 -0
- package/dist/components/Heading/Heading.d.ts +6 -4
- package/dist/components/Heading/Heading.stories.d.ts +8 -6
- package/dist/components/Icon/svgImports.d.ts +7 -881
- package/dist/components/Link/BaseLink.d.ts +14 -5
- package/dist/components/Link/Link.d.ts +8 -3
- package/dist/components/Link/Link.stories.d.ts +3 -1
- package/dist/components/MenuNew/Menu.context.d.ts +14 -0
- package/dist/components/MenuNew/Menu.d.ts +20 -0
- package/dist/components/MenuNew/MenuContent.d.ts +9 -0
- package/dist/components/MenuNew/MenuItem.d.ts +10 -0
- package/dist/components/MenuNew/MenuSection.d.ts +7 -0
- package/dist/components/MenuNew/index.d.ts +6 -0
- package/dist/components/MenuNew/trigger/ButtonMenuTrigger.d.ts +8 -0
- package/dist/components/MenuNew/trigger/IconMenuTrigger.d.ts +8 -0
- package/dist/components/Overlay/Overlay.stories.d.ts +12 -12
- package/dist/components/Paragraph/Paragraph.d.ts +5 -2
- package/dist/components/Paragraph/Paragraph.stories.d.ts +6 -3
- package/dist/components/Select/Select.d.ts +2 -1
- package/dist/components/Select/Select.stories.d.ts +13 -1
- package/dist/components/Select/Select.types.d.ts +40 -13
- package/dist/components/Select/subcomponents/CustomSelect.d.ts +3 -3
- package/dist/components/Select/subcomponents/FilterInput.d.ts +3 -1
- package/dist/components/Select/subcomponents/NativeSelect.d.ts +2 -2
- package/dist/components/Select/subcomponents/VisibleField.d.ts +4 -1
- package/dist/components/Spinner/Spinner.d.ts +2 -0
- package/dist/components/StandaloneLink/StandaloneLink.d.ts +8 -5
- package/dist/components/StandaloneLink/StandaloneLink.stories.d.ts +3 -1
- package/dist/components/Table/Table.d.ts +3 -3
- package/dist/components/Table/Table.stories.d.ts +3 -3
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/components/Table/subcomponents/Cell/Cell.d.ts +5 -1
- package/dist/components/Table/subcomponents/Cell/Cell.stories.d.ts +15 -13
- package/dist/components/Table/subcomponents/Cell/CellContent.d.ts +5 -1
- package/dist/components/Table/subcomponents/HeadCell/HeadCell.d.ts +2 -1
- package/dist/components/Table/subcomponents/HeadCell/HeadCell.stories.d.ts +14 -13
- package/dist/components/Table/subcomponents/HeadCell/HeadCellContent.d.ts +2 -1
- package/dist/components/Table/subcomponents/__tests__/Row.test.d.ts +1 -0
- package/dist/components/UclLogoNew/UclLogo.d.ts +8 -0
- package/dist/components/UclLogoNew/index.d.ts +2 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/index.js +20104 -15317
- package/dist/theme/__tests__/fonts.test.d.ts +1 -0
- package/dist/theme/common/themeCommon.d.ts +904 -0
- package/dist/theme/fonts.d.ts +18 -0
- package/dist/theme/index.d.ts +6 -3
- package/dist/theme/light/lightColour.d.ts +126 -0
- package/dist/theme/light/lightTheme.d.ts +3 -0
- package/dist/theme/original/color.d.ts +166 -0
- package/dist/theme/original/defaultTheme.d.ts +1340 -0
- package/dist/theme/original/originalColourNewStructure.d.ts +126 -0
- package/dist/theme/useTheme.d.ts +2174 -0
- package/dist/utils/addAlphaToHex.d.ts +5 -0
- package/dist/utils/scrollToTop.d.ts +2 -0
- package/lib/components/Accordion/Accordion.Heading.tsx +51 -39
- package/lib/components/Accordion/Accordion.Panel.tsx +0 -4
- package/lib/components/Accordion/Accordion.tsx +34 -28
- package/lib/components/Accordion/__tests__/__snapshots__/Accordion.test.tsx.snap +12 -10
- package/lib/components/Alert/Alert.tsx +12 -12
- package/lib/components/Alert/__tests__/__snapshots__/Alert.test.tsx.snap +13 -39
- package/lib/components/AppHeader/AppHeader.tsx +6 -11
- package/lib/components/AppHeader/AppHeaderBottom.tsx +2 -3
- package/lib/components/AppHeader/AppHeaderNav.tsx +2 -3
- package/lib/components/AppHeader/AppHeaderTop.tsx +1 -1
- package/lib/components/AppHeader/__tests__/__snapshots__/AppHeader.test.tsx.snap +2 -2
- package/lib/components/AppMenu/__tests__/__snapshots__/AppMenu.test.tsx.snap +6 -19
- package/lib/components/Badge/Badge.stories.tsx +1 -1
- package/lib/components/Breadcrumbs/Breadcrumb.tsx +26 -12
- package/lib/components/Breadcrumbs/Breadcrumbs.tsx +1 -1
- package/lib/components/Breadcrumbs/__tests__/Breadcrumbs.test.tsx +9 -27
- package/lib/components/Breadcrumbs/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +24 -20
- package/lib/components/Button/Button.mdx +32 -279
- package/lib/components/Button/Button.stories.tsx +43 -50
- package/lib/components/Button/Button.tsx +165 -25
- package/lib/components/Button/__tests__/Button.test.tsx +49 -15
- package/lib/components/Button/__tests__/__snapshots__/Button.test.tsx.snap +80 -73
- package/lib/components/Button/style/buttonAccentStyle.ts +53 -0
- package/lib/components/Button/style/buttonPrimaryDestructiveStyle.ts +55 -0
- package/lib/components/Button/style/buttonPrimaryStyle.ts +53 -0
- package/lib/components/Button/style/buttonPrimarySubtleStyle.ts +64 -0
- package/lib/components/Button/style/buttonPrimaryWarningStyle.ts +56 -0
- package/lib/components/Button/style/buttonSecondaryDestructiveStyle.ts +63 -0
- package/lib/components/Button/style/buttonSecondaryStyle.ts +62 -0
- package/lib/components/Button/style/buttonSecondarySubtleStyle.ts +72 -0
- package/lib/components/Button/style/buttonTertiaryDestructiveStyle.ts +65 -0
- package/lib/components/Button/style/buttonTertiaryNoPaddingStyle.ts +52 -0
- package/lib/components/Button/style/buttonTertiaryStyle.ts +62 -0
- package/lib/components/Calendar/Calendar.stories.tsx +33 -13
- package/lib/components/Calendar/Calendar.tsx +2 -2
- package/lib/components/Calendar/__tests__/__snapshots__/Calendar.test.tsx.snap +99 -95
- package/lib/components/Calendar/subcomponents/AcademicWeek.tsx +2 -1
- package/lib/components/Calendar/subcomponents/AcademicWeeks.tsx +2 -3
- package/lib/components/Calendar/subcomponents/ColumnHeading.tsx +3 -7
- package/lib/components/Calendar/subcomponents/Controls.tsx +1 -1
- package/lib/components/Calendar/subcomponents/Day.stories.tsx +1 -1
- package/lib/components/Calendar/subcomponents/Day.tsx +7 -9
- package/lib/components/Calendar/subcomponents/EventDot.tsx +4 -8
- package/lib/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/lib/components/Checkbox/Checkbox.tsx +12 -10
- package/lib/components/Checkbox/__tests__/Checkbox.test.tsx +29 -0
- package/lib/components/Checkbox/__tests__/__snapshots__/Checkbox.test.tsx.snap +4 -4
- package/lib/components/Datepicker/__tests__/Datepicker.test.tsx +117 -0
- package/lib/components/Datepicker/__tests__/__snapshots__/Datepicker.test.tsx.snap +16 -44
- package/lib/components/Datepicker/subcomponents/CustomDatepicker.tsx +10 -1
- package/lib/components/Datepicker/subcomponents/VisibleField.tsx +24 -23
- package/lib/components/Dialog/BaseDialog.tsx +2 -2
- package/lib/components/Dialog/Dialog.stories.tsx +1 -1
- package/lib/components/Divider/__tests__/__snapshots__/Breadcrumbs.test.tsx.snap +12 -12
- package/lib/components/FeedbackDialog/FeedbackDialog.stories.tsx +1 -1
- package/lib/components/FeedbackDialog/FeedbackDialog.tsx +4 -6
- package/lib/components/Field/CharacterCount.tsx +2 -2
- package/lib/components/Field/ErrorText.tsx +1 -1
- package/lib/components/Field/Field.tsx +1 -1
- package/lib/components/Field/HelperText.tsx +3 -1
- package/lib/components/FileInput/FileInput.stories.tsx +1 -1
- package/lib/components/FileInput/__tests__/__snapshots__/FileInput.test.tsx.snap +4 -20
- package/lib/components/Footer/__tests__/__snapshots__/Footer.test.tsx.snap +70 -79
- package/lib/components/FooterNew/BackToTop.tsx +83 -0
- package/lib/components/FooterNew/Footer.tsx +110 -0
- package/lib/components/FooterNew/FooterColumn.tsx +79 -0
- package/lib/components/FooterNew/FooterLinks.tsx +44 -0
- package/lib/components/FooterNew/FooterNavLink.tsx +63 -0
- package/lib/components/FooterNew/LegalAndCopyright.tsx +150 -0
- package/lib/components/FooterNew/LogoAddressAndSocial.tsx +154 -0
- package/lib/components/FooterNew/SocialLink.tsx +108 -0
- package/lib/components/FooterNew/__tests__/Footer.test.tsx +51 -0
- package/lib/components/FooterNew/__tests__/__snapshots__/Footer.test.tsx.snap +1107 -0
- package/lib/components/FooterNew/index.ts +2 -0
- package/lib/components/HeaderDraft/__tests__/__snapshots__/Header.test.tsx.snap +3 -2
- package/lib/components/HeaderNew/Header.tsx +93 -0
- package/lib/components/HeaderNew/HeaderBorder.tsx +55 -0
- package/lib/components/HeaderNew/HeaderLogo.tsx +70 -0
- package/lib/components/HeaderNew/HeaderMenuContainer.tsx +35 -0
- package/lib/components/HeaderNew/HeaderTitle.tsx +53 -0
- package/lib/components/HeaderNew/__tests__/Header.test.tsx +42 -0
- package/lib/components/HeaderNew/__tests__/__snapshots__/Header.test.tsx.snap +79 -0
- package/lib/components/HeaderNew/constants.ts +3 -0
- package/lib/components/HeaderNew/index.ts +7 -0
- package/lib/components/Heading/Heading.stories.tsx +34 -41
- package/lib/components/Heading/Heading.tsx +180 -49
- package/lib/components/Heading/__tests__/__snapshots__/Heading.test.tsx.snap +4 -4
- package/lib/components/Icon/__tests__/__snapshots__/Icon.test.tsx.snap +16 -12
- package/lib/components/Icon/svgImports.ts +318 -296
- package/lib/components/IconButton/IconButton.tsx +3 -4
- package/lib/components/IconButton/__tests__/__snapshots__/IconButton.test.tsx.snap +12 -9
- package/lib/components/Link/BaseLink.tsx +114 -71
- package/lib/components/Link/Link.stories.tsx +1 -1
- package/lib/components/Link/Link.tsx +120 -109
- package/lib/components/Link/__tests__/__snapshots__/link.test.tsx.snap +2 -2
- package/lib/components/MenuNew/Menu.context.tsx +149 -0
- package/lib/components/MenuNew/Menu.tsx +75 -0
- package/lib/components/MenuNew/MenuContent.tsx +140 -0
- package/lib/components/MenuNew/MenuItem.tsx +101 -0
- package/lib/components/MenuNew/MenuSection.tsx +47 -0
- package/lib/components/MenuNew/index.ts +8 -0
- package/lib/components/MenuNew/trigger/ButtonMenuTrigger.tsx +42 -0
- package/lib/components/MenuNew/trigger/IconMenuTrigger.tsx +40 -0
- package/lib/components/Pagination/Pagination.stories.tsx +1 -1
- package/lib/components/Pagination/PaginationControls.tsx +4 -5
- package/lib/components/Pagination/PaginationInfo.tsx +2 -3
- package/lib/components/Paragraph/Paragraph.stories.tsx +29 -27
- package/lib/components/Paragraph/Paragraph.tsx +212 -81
- package/lib/components/Paragraph/__tests__/__snapshots__/Paragraph.test.tsx.snap +5 -5
- package/lib/components/Radio/Radio.stories.tsx +1 -1
- package/lib/components/Radio/Radio.tsx +8 -8
- package/lib/components/Radio/__tests__/__snapshots__/Radio.test.tsx.snap +4 -4
- package/lib/components/Search/__tests__/__snapshots__/Search.test.tsx.snap +12 -32
- package/lib/components/Select/Select.mdx +23 -0
- package/lib/components/Select/Select.stories.tsx +43 -10
- package/lib/components/Select/Select.tsx +14 -3
- package/lib/components/Select/Select.types.ts +53 -16
- package/lib/components/Select/__tests__/Select.test.tsx +250 -1
- package/lib/components/Select/__tests__/__snapshots__/Select.test.tsx.snap +5 -4
- package/lib/components/Select/subcomponents/CustomOption.tsx +10 -3
- package/lib/components/Select/subcomponents/CustomSelect.tsx +110 -10
- package/lib/components/Select/subcomponents/FilterInput.tsx +13 -3
- package/lib/components/Select/subcomponents/NativeSelect.tsx +10 -18
- package/lib/components/Select/subcomponents/Panel.tsx +2 -2
- package/lib/components/Select/subcomponents/VisibleField.tsx +48 -3
- package/lib/components/Snackbar/__tests__/__snapshots__/Snackbar.test.tsx.snap +9 -15
- package/lib/components/Spinner/Spinner.tsx +24 -5
- package/lib/components/Spinner/__tests__/Spinner.test.tsx +35 -5
- package/lib/components/Spinner/__tests__/__snapshots__/Spinner.test.tsx.snap +40 -16
- package/lib/components/StandaloneLink/StandaloneLink.stories.tsx +1 -1
- package/lib/components/StandaloneLink/StandaloneLink.tsx +180 -163
- package/lib/components/StandaloneLink/__tests__/__snapshots__/StandaloneLink.test.tsx.snap +2 -2
- package/lib/components/Table/Table.stories.tsx +1 -1
- package/lib/components/Table/Table.tsx +2 -0
- package/lib/components/Table/Table.types.ts +1 -0
- package/lib/components/Table/__tests__/Table.test.tsx +19 -0
- package/lib/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +7 -3
- package/lib/components/Table/subcomponents/Cell/Cell.stories.tsx +1 -1
- package/lib/components/Table/subcomponents/Cell/Cell.tsx +23 -2
- package/lib/components/Table/subcomponents/Cell/CellContent.tsx +12 -1
- package/lib/components/Table/subcomponents/Cell/__tests__/Cell.test.tsx +106 -0
- package/lib/components/Table/subcomponents/Cell/__tests__/__snapshots__/Cell.test.tsx.snap +4 -3
- package/lib/components/Table/subcomponents/HeadCell/HeadCell.stories.tsx +1 -1
- package/lib/components/Table/subcomponents/HeadCell/HeadCell.tsx +28 -6
- package/lib/components/Table/subcomponents/HeadCell/HeadCellContent.tsx +3 -0
- package/lib/components/Table/subcomponents/HeadCell/__tests__/HeadCell.test.tsx +221 -2
- package/lib/components/Table/subcomponents/HeadCell/__tests__/__snapshots__/HeadCell.test.tsx.snap +6 -4
- package/lib/components/Table/subcomponents/Row.tsx +2 -2
- package/lib/components/Table/subcomponents/SortIcon.tsx +1 -0
- package/lib/components/Table/subcomponents/__tests__/Row.test.tsx +59 -0
- package/lib/components/Tabs/Tab.tsx +3 -3
- package/lib/components/Tabs/Tabs.stories.tsx +1 -1
- package/lib/components/Tabs/Tabs.tsx +5 -3
- package/lib/components/Tabs/__tests__/__snapshots__/Tabs.test.tsx.snap +4 -4
- package/lib/components/Timepicker/Timepicker.stories.tsx +1 -1
- package/lib/components/Toggle/Toggle.tsx +5 -5
- package/lib/components/Toggle/ToggleHandle.tsx +2 -3
- package/lib/components/Tooltip/Tooltip.tsx +2 -2
- package/lib/components/Tooltip/__tests__/__snapshots__/tooltip.test.tsx.snap +2 -2
- package/lib/components/UclLogoNew/UclLogo.tsx +42 -0
- package/lib/components/UclLogoNew/index.ts +2 -0
- package/lib/components/WeekPicker/WeekPicker.stories.tsx +3 -5
- package/lib/components/common/Common.mdx +0 -1
- package/lib/components/index.ts +19 -1
- package/lib/theme/Colours.mdx +1 -1
- package/lib/theme/Theme.mdx +1 -1
- package/lib/theme/Typography.mdx +1 -1
- package/lib/theme/__tests__/fonts.test.ts +37 -0
- package/lib/theme/common/themeCommon.ts +515 -0
- package/lib/theme/fonts.ts +110 -0
- package/lib/theme/index.ts +6 -6
- package/lib/theme/light/lightColour.ts +232 -0
- package/lib/theme/light/lightTheme.ts +37 -0
- package/lib/theme/{defaultTheme.ts → original/color.ts} +17 -199
- package/lib/theme/original/defaultTheme.ts +207 -0
- package/lib/theme/original/originalColourNewStructure.ts +185 -0
- package/lib/theme/useTheme.tsx +72 -15
- package/lib/types/assets.d.ts +10 -0
- package/lib/utils/addAlphaToHex.ts +29 -0
- package/lib/utils/scrollToTop.ts +5 -0
- package/package.json +11 -6
- package/dist/components/Button/buttonPrimaryStyle.d.ts +0 -4
- package/dist/components/Button/buttonSecondaryStyle.d.ts +0 -4
- package/dist/components/Button/buttonTertiaryStyle.d.ts +0 -4
- package/dist/theme/defaultTheme.d.ts +0 -274
- package/lib/components/Button/buttonPrimaryStyle.ts +0 -62
- package/lib/components/Button/buttonSecondaryStyle.ts +0 -65
- package/lib/components/Button/buttonTertiaryStyle.ts +0 -54
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React, HTMLAttributes } from 'react';
|
|
2
2
|
export declare const NAME = "ucl-uikit-accordion__heading";
|
|
3
|
+
export declare const ICON_NAME = "ucl-uikit-accordion__heading__icon";
|
|
3
4
|
export interface AccordionHeadingProps extends HTMLAttributes<HTMLElement> {
|
|
4
5
|
as?: keyof HTMLElementTagNameMap;
|
|
5
6
|
testId?: string;
|
|
@@ -2,7 +2,7 @@ import { HTMLAttributes } from 'react';
|
|
|
2
2
|
import { default as AppHeaderTop } from './AppHeaderTop';
|
|
3
3
|
import { default as AppHeaderBottom } from './AppHeaderBottom';
|
|
4
4
|
import { default as AppHeaderNav } from './AppHeaderNav';
|
|
5
|
-
export declare const NAME = "ucl-
|
|
5
|
+
export declare const NAME = "ucl-uikit-app-header";
|
|
6
6
|
export declare const Z_INDEX = 3;
|
|
7
7
|
export declare const HEIGHT: number;
|
|
8
8
|
export interface AppHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const NAME = "ucl-
|
|
2
|
+
export declare const NAME = "ucl-uikit-app-header__bottom";
|
|
3
3
|
export declare const HEIGHT = 48;
|
|
4
4
|
export interface AppHeaderBottomProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
testId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const NAME = "ucl-
|
|
2
|
+
export declare const NAME = "ucl-uikit-app-header__top";
|
|
3
3
|
export declare const HEIGHT = 56;
|
|
4
4
|
export interface AppHeaderTopProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
uclLogo?: boolean;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { LinkProps } from '../';
|
|
2
|
-
export interface BreadcrumbProps extends LinkProps {
|
|
3
|
-
testId?: string;
|
|
1
|
+
import { LinkProps } from '../Link';
|
|
2
|
+
export interface BreadcrumbProps extends Omit<LinkProps<any>, 'href' | 'to'> {
|
|
4
3
|
uri: string;
|
|
5
4
|
isActive?: boolean;
|
|
6
5
|
}
|
|
7
|
-
declare const _default: import('react').MemoExoticComponent<({ testId, uri, className, children, isActive, ...props }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
declare const _default: import('react').MemoExoticComponent<({ testId, uri, className, children, isActive, component, ...props }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
7
|
export default _default;
|
|
@@ -4,6 +4,6 @@ export interface BreadcrumbsProps extends HTMLAttributes<HTMLElement> {
|
|
|
4
4
|
}
|
|
5
5
|
declare const Breadcrumbs: {
|
|
6
6
|
({ testId, className, children, ...props }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
Breadcrumb: React.MemoExoticComponent<({ testId, uri, className, children, isActive, ...props }: import('./Breadcrumb').BreadcrumbProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
Breadcrumb: React.MemoExoticComponent<({ testId, uri, className, children, isActive, component, ...props }: import('./Breadcrumb').BreadcrumbProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
8
|
};
|
|
9
9
|
export default Breadcrumbs;
|
|
@@ -3,7 +3,7 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: {
|
|
5
5
|
({ testId, className, children, ...props }: import('./Breadcrumbs').BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
Breadcrumb: import('react').MemoExoticComponent<({ testId, uri, className, children, isActive, ...props }: import('./Breadcrumb').BreadcrumbProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
Breadcrumb: import('react').MemoExoticComponent<({ testId, uri, className, children, isActive, component, ...props }: import('./Breadcrumb').BreadcrumbProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
7
|
};
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
@@ -2,10 +2,14 @@ import { ReactElement, ElementType, ComponentPropsWithRef } from 'react';
|
|
|
2
2
|
import { MarginProps } from '../common/marginsStyle';
|
|
3
3
|
export declare const NAME = "ucl-uikit-button";
|
|
4
4
|
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>['ref'];
|
|
5
|
+
export type ButtonVariant = 'accent' | 'primary' | 'secondary' | 'tertiary' | 'primary-subtle' | 'secondary-subtle' | 'tertiary-no-padding' | 'primary-destructive' | 'secondary-destructive' | 'tertiary-destructive' | 'primary-warning';
|
|
6
|
+
type LegacySize = 'default';
|
|
5
7
|
export interface ButtonBaseProps {
|
|
6
|
-
variant?:
|
|
8
|
+
variant?: ButtonVariant;
|
|
9
|
+
/** @deprecated Use variant="primary-destructive" / "secondary-destructive" instead */
|
|
7
10
|
destructive?: boolean;
|
|
8
|
-
size?: '
|
|
11
|
+
size?: 'xsmall' | 'small' | 'medium' | 'large' | LegacySize;
|
|
12
|
+
selected?: boolean;
|
|
9
13
|
disabled?: boolean;
|
|
10
14
|
icon?: ReactElement;
|
|
11
15
|
iconPosition?: 'left' | 'right';
|
|
@@ -19,6 +23,6 @@ export type ButtonProps<C extends ElementType = 'button'> = {
|
|
|
19
23
|
ref?: PolymorphicRef<C>;
|
|
20
24
|
className?: string;
|
|
21
25
|
} & ButtonBaseProps & MarginProps & Omit<ComponentPropsWithRef<C>, keyof ButtonBaseProps | 'as'>;
|
|
22
|
-
declare const Button: <C extends ElementType = "button">({ as, variant, destructive, size, disabled, icon, iconPosition, tooltip, loading, fullWidth, testId, ref, children, className, ...props }: ButtonProps<C>) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const Button: <C extends ElementType = "button">({ as, variant, destructive, size, selected, disabled, icon, iconPosition, tooltip, loading, fullWidth, testId, ref, children, className, ...props }: ButtonProps<C>) => import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
declare const MemoizedButton: typeof Button;
|
|
24
28
|
export default MemoizedButton;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: <C extends import('react').ElementType = "button">({ as, variant, destructive, size, disabled, icon, iconPosition, tooltip, loading, fullWidth, testId, ref, children, className, ...props }: import('./Button').ButtonProps<C>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: <C extends import('react').ElementType = "button">({ as, variant, destructive, size, selected, disabled, icon, iconPosition, tooltip, loading, fullWidth, testId, ref, children, className, ...props }: import('./Button').ButtonProps<C>) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
8
8
|
argTypes: {
|
|
9
9
|
variant: {
|
|
10
|
-
options:
|
|
10
|
+
options: readonly ["accent", "primary", "secondary", "tertiary", "primary-subtle", "secondary-subtle", "tertiary-no-padding", "primary-destructive", "secondary-destructive", "tertiary-destructive", "primary-warning"];
|
|
11
11
|
control: {
|
|
12
12
|
type: "select";
|
|
13
13
|
};
|
|
@@ -19,6 +19,12 @@ declare const meta: {
|
|
|
19
19
|
type: "select";
|
|
20
20
|
};
|
|
21
21
|
type: "string";
|
|
22
|
+
table: {
|
|
23
|
+
type: {
|
|
24
|
+
summary: string;
|
|
25
|
+
detail: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
22
28
|
};
|
|
23
29
|
as: {
|
|
24
30
|
options: string[];
|
|
@@ -38,6 +44,13 @@ declare const meta: {
|
|
|
38
44
|
type: "boolean";
|
|
39
45
|
};
|
|
40
46
|
type: "boolean";
|
|
47
|
+
description: string;
|
|
48
|
+
};
|
|
49
|
+
selected: {
|
|
50
|
+
control: {
|
|
51
|
+
type: "boolean";
|
|
52
|
+
};
|
|
53
|
+
type: "boolean";
|
|
41
54
|
};
|
|
42
55
|
disabled: {
|
|
43
56
|
control: {
|
|
@@ -222,15 +235,12 @@ export declare const Default: Story;
|
|
|
222
235
|
export declare const Primary: Story;
|
|
223
236
|
export declare const Secondary: Story;
|
|
224
237
|
export declare const Tertiary: Story;
|
|
238
|
+
export declare const Accent: Story;
|
|
225
239
|
export declare const Destructive: Story;
|
|
226
|
-
export declare const
|
|
240
|
+
export declare const PrimarySubtle: Story;
|
|
227
241
|
export declare const Small: Story;
|
|
228
242
|
export declare const Large: Story;
|
|
229
|
-
export declare const SmallSecondary: Story;
|
|
230
|
-
export declare const LargeSecondary: Story;
|
|
231
243
|
export declare const Disabled: Story;
|
|
232
|
-
export declare const DisabledSecondary: Story;
|
|
233
|
-
export declare const DisabledTertiary: Story;
|
|
234
244
|
export declare const WithIcon: Story & {
|
|
235
245
|
argTypes: {
|
|
236
246
|
iconName: {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonAccentStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"]) => string;
|
|
4
|
+
export default buttonAccentStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonPrimaryDestructiveStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"]) => string;
|
|
4
|
+
export default buttonPrimaryDestructiveStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonPrimaryStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"]) => string;
|
|
4
|
+
export default buttonPrimaryStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonPrimarySubtleStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"], paddingPx: number) => string;
|
|
4
|
+
export default buttonPrimarySubtleStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonPrimaryWarningStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"]) => string;
|
|
4
|
+
export default buttonPrimaryWarningStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonSecondaryDestructiveStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"]) => string;
|
|
4
|
+
export default buttonSecondaryDestructiveStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonSecondaryStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"]) => string;
|
|
4
|
+
export default buttonSecondaryStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonSecondarySubtleStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"], paddingPx: number) => string;
|
|
4
|
+
export default buttonSecondarySubtleStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonTertiaryDestructiveStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"], paddingPx: number) => string;
|
|
4
|
+
export default buttonTertiaryDestructiveStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonTertiaryNoPaddingStyle: (theme: ThemeType, disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"], paddingPx: number) => string;
|
|
4
|
+
export default buttonTertiaryNoPaddingStyle;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeType } from '../../../theme';
|
|
2
|
+
import { ButtonBaseProps } from '../Button';
|
|
3
|
+
declare const buttonTertiaryStyle: (theme: ThemeType, selected: ButtonBaseProps["selected"], disabled: ButtonBaseProps["disabled"], loading: ButtonBaseProps["loading"], paddingPx: number) => string;
|
|
4
|
+
export default buttonTertiaryStyle;
|
|
@@ -4,6 +4,7 @@ export declare const NAME = "ucl-uikit-checkbox";
|
|
|
4
4
|
export interface CheckboxBaseProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
5
5
|
indeterminate?: boolean;
|
|
6
6
|
testId?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
7
8
|
}
|
|
8
9
|
export type CheckboxProps = CheckboxBaseProps & MarginProps;
|
|
9
10
|
export type Ref = HTMLInputElement;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-footer__back-to-top";
|
|
3
|
+
export interface BackToTopProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const BackToTop: ({ compact, testId, className, ...props }: BackToTopProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BackToTop;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { default as FooterColumn } from './FooterColumn';
|
|
3
|
+
import { default as FooterNavLink } from './FooterNavLink';
|
|
4
|
+
export declare const NAME = "ucl-uikit-footer";
|
|
5
|
+
export interface FooterProps extends HTMLAttributes<HTMLElement> {
|
|
6
|
+
testId?: string;
|
|
7
|
+
addressFormat?: 'compact' | 'full';
|
|
8
|
+
showSocialLinks?: boolean;
|
|
9
|
+
disclaimer?: string;
|
|
10
|
+
freedomOfInformation?: string;
|
|
11
|
+
accessibility?: string;
|
|
12
|
+
cookies?: string;
|
|
13
|
+
privacy?: string;
|
|
14
|
+
slaveryStatement?: string;
|
|
15
|
+
login?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const MemoFooter: import('react').MemoExoticComponent<({ testId, className, addressFormat, showSocialLinks, disclaimer, freedomOfInformation, accessibility, cookies, privacy, slaveryStatement, login, children, ...props }: FooterProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
+
export interface IFooterSubComponents {
|
|
19
|
+
Column: typeof FooterColumn;
|
|
20
|
+
NavLink: typeof FooterNavLink;
|
|
21
|
+
}
|
|
22
|
+
declare const FooterWithSubComponents: typeof MemoFooter & IFooterSubComponents;
|
|
23
|
+
export default FooterWithSubComponents;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-footer__column";
|
|
3
|
+
export interface FooterColumnProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
heading: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('react').MemoExoticComponent<({ heading, testId, className, children, ...props }: FooterColumnProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-footer__links";
|
|
3
|
+
export interface FooterLinksProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
+
testId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const FooterLinks: ({ testId, className, children, ...props }: FooterLinksProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FooterLinks;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LinkProps } from '../..';
|
|
2
|
+
export declare const NAME = "ucl-uikit-footer__nav-link";
|
|
3
|
+
export interface FooterNavLinkProps extends LinkProps {
|
|
4
|
+
href: string;
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('react').MemoExoticComponent<({ href, testId, className, children, ...props }: FooterNavLinkProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-footer__legal-and-copyright";
|
|
3
|
+
export interface LegalAndCopyrightProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
disclaimer: string;
|
|
5
|
+
freedomOfInformation: string;
|
|
6
|
+
accessibility: string;
|
|
7
|
+
cookies: string;
|
|
8
|
+
privacy: string;
|
|
9
|
+
slaveryStatement: string;
|
|
10
|
+
login?: string;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const LegalAndCopyright: ({ disclaimer, freedomOfInformation, accessibility, cookies, privacy, slaveryStatement, login, testId, className, ...props }: LegalAndCopyrightProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default LegalAndCopyright;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-footer__logo-address-social";
|
|
3
|
+
export interface LogoAddressAndSocialProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
compact?: boolean;
|
|
5
|
+
addressFormat: 'compact' | 'full';
|
|
6
|
+
showSocialLinks?: boolean;
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const LogoAddressAndSocial: ({ compact, addressFormat, showSocialLinks, testId, className, ...props }: LogoAddressAndSocialProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default LogoAddressAndSocial;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LinkProps } from '../..';
|
|
2
|
+
export declare const NAME = "ucl-uikit-footer__social-link";
|
|
3
|
+
export interface SocialLinkProps extends LinkProps {
|
|
4
|
+
socialNetwork: 'bluesky' | 'instagram' | 'linkedin' | 'youtube' | 'tiktok' | 'facebook' | 'threads' | 'soundcloud';
|
|
5
|
+
testId?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('react').MemoExoticComponent<({ socialNetwork, testId, className, ...props }: SocialLinkProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { default as HeaderMenuContainer } from './HeaderMenuContainer';
|
|
3
|
+
export declare const NAME = "ucl-uikit-header";
|
|
4
|
+
export interface HeaderProps extends HTMLAttributes<HTMLElement> {
|
|
5
|
+
title: string;
|
|
6
|
+
titleAs?: React.ElementType<React.HTMLAttributes<HTMLElement>>;
|
|
7
|
+
titleClassName?: string;
|
|
8
|
+
titleProps?: Record<string, unknown>;
|
|
9
|
+
homeLinkHref?: string;
|
|
10
|
+
homeLinkProps?: Record<string, unknown>;
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const MemoAppHeader: import('react').MemoExoticComponent<({ title, titleAs, titleClassName, titleProps, homeLinkHref, homeLinkProps, testId, className, children, ...props }: HeaderProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export interface IHeaderSubComponents {
|
|
15
|
+
MenuContainer: typeof HeaderMenuContainer;
|
|
16
|
+
}
|
|
17
|
+
declare const HeaderWithSubComponents: typeof MemoAppHeader & IHeaderSubComponents;
|
|
18
|
+
export default HeaderWithSubComponents;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-header__border";
|
|
3
|
+
export interface HeaderBorderProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
testId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const HeaderBorder: ({ testId, className, ...props }: HeaderBorderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default HeaderBorder;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UclLogoProps } from '../..';
|
|
2
|
+
export declare const NAME = "ucl-uikit-header__logo";
|
|
3
|
+
export interface HeaderLogoProps extends UclLogoProps {
|
|
4
|
+
linkHref?: string;
|
|
5
|
+
linkProps?: Record<string, unknown>;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const HeaderLogo: ({ linkHref, linkProps, testId, className, ...props }: HeaderLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default HeaderLogo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-header__menu-container";
|
|
3
|
+
export interface HeaderMenuContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
testId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const HeaderMenuContainer: React.FC<HeaderMenuContainerProps>;
|
|
7
|
+
export default HeaderMenuContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-header__title";
|
|
3
|
+
export interface HeaderTitleProps extends HTMLAttributes<HTMLElement> {
|
|
4
|
+
title: string;
|
|
5
|
+
as?: React.ElementType<React.HTMLAttributes<HTMLElement>>;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const HeaderTitle: ({ title, as, testId, className, ...props }: HeaderTitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default HeaderTitle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { MarginProps } from '../common/marginsStyle';
|
|
3
3
|
export declare const NAME = "ucl-uikit-heading";
|
|
4
|
+
export type HeadingLevel = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
4
5
|
export interface HeadingBaseProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
5
|
-
level?: 1 | 2 | 3 | 4;
|
|
6
|
+
level?: HeadingLevel | 1 | 2 | 3 | 4;
|
|
7
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
|
|
6
8
|
margins?: boolean;
|
|
7
9
|
testId?: string;
|
|
10
|
+
ref?: React.Ref<HTMLHeadingElement>;
|
|
8
11
|
}
|
|
9
12
|
export type HeadingProps = HeadingBaseProps & MarginProps;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export default _default;
|
|
13
|
+
declare const Heading: import('react').MemoExoticComponent<({ level, as, margins, testId, className, ref, noMargins, ...props }: HeadingProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export default Heading;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').
|
|
4
|
+
component: import('react').MemoExoticComponent<({ level, as, margins, testId, className, ref, noMargins, ...props }: import('./Heading').HeadingProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
@@ -10,9 +10,11 @@ declare const meta: {
|
|
|
10
10
|
export default meta;
|
|
11
11
|
type Story = StoryObj<typeof meta>;
|
|
12
12
|
export declare const Default: Story;
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
13
|
+
export declare const LevelXxl: Story;
|
|
14
|
+
export declare const LevelXl: Story;
|
|
15
|
+
export declare const LevelLg: Story;
|
|
16
|
+
export declare const LevelMd: Story;
|
|
17
|
+
export declare const LevelSm: Story;
|
|
18
|
+
export declare const LevelXs: Story;
|
|
19
|
+
export declare const AsSpan: Story;
|
|
18
20
|
export declare const NoMargins: Story;
|