@equisoft/design-elements-react 9.9.6 → 9.9.7-snapshot.20251014033756
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/bundle.js +2779 -2992
- package/dist/bundle.js.LICENSE.txt +15 -9
- package/dist/components/accordion/accordion-item.d.ts +3 -3
- package/dist/components/accordion/accordion.d.ts +3 -3
- package/dist/components/accordion/index.d.ts +1 -2
- package/dist/components/avatar/avatar.d.ts +2 -2
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/badge/badge.d.ts +2 -3
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/bento-menu-button/bento-menu-button.d.ts +1 -2
- package/dist/components/bento-menu-button/index.d.ts +3 -0
- package/dist/components/bento-menu-button/product-group.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +4 -5
- package/dist/components/breadcrumb/index.d.ts +2 -0
- package/dist/components/breadcrumb/use-breadcrumb-layout-effect.d.ts +2 -2
- package/dist/components/breadcrumb/use-breadcrumb-overflow.d.ts +1 -1
- package/dist/components/breadcrumb/use-breadcrumb-routes.d.ts +2 -2
- package/dist/components/buttons/abstract/abstract-button.d.ts +10 -1
- package/dist/components/buttons/abstract/index.d.ts +2 -0
- package/dist/components/buttons/abstract/{styled.d.ts → styles.d.ts} +3 -4
- package/dist/components/buttons/button.d.ts +41 -1
- package/dist/components/buttons/icon-button.d.ts +5 -5
- package/dist/components/buttons/index.d.ts +5 -5
- package/dist/components/buttons/search-button.d.ts +2 -2
- package/dist/components/buttons/styled.d.ts +6 -6
- package/dist/components/card/card.d.ts +2 -3
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card-link/card-link.d.ts +3 -4
- package/dist/components/card-link/index.d.ts +2 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +11 -11
- package/dist/components/checkbox-group/index.d.ts +2 -0
- package/dist/components/chooser-button/chooser-button.d.ts +1 -2
- package/dist/components/chooser-button/chooser-label.d.ts +1 -0
- package/dist/components/chooser-button/index.d.ts +2 -0
- package/dist/components/chooser-button-group/chooser-button-group.d.ts +3 -4
- package/dist/components/chooser-button-group/index.d.ts +2 -0
- package/dist/components/combobox/combobox.d.ts +7 -7
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/date-picker/calendar-header.d.ts +3 -3
- package/dist/components/date-picker/date-picker.d.ts +5 -6
- package/dist/components/date-picker/index.d.ts +3 -0
- package/dist/components/date-picker/utils/datepicker-utils.d.ts +2 -6
- package/dist/components/date-picker/utils/index.d.ts +1 -0
- package/dist/components/design-system.d.ts +4 -3
- package/dist/components/device-context-provider/device-context-provider.d.ts +2 -2
- package/dist/components/device-context-provider/index.d.ts +2 -0
- package/dist/components/disclosure/disclosure.d.ts +7 -8
- package/dist/components/disclosure/index.d.ts +2 -0
- package/dist/components/dropdown-list/dropdown-list.d.ts +9 -6
- package/dist/components/dropdown-list/index.d.ts +2 -0
- package/dist/components/dropdown-list/utils/dropdown-list-utils.d.ts +1 -1
- package/dist/components/dropdown-list/utils/index.d.ts +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu/index.d.ts +3 -0
- package/dist/components/dropdown-menu/list-items/external-item.d.ts +3 -3
- package/dist/components/dropdown-menu/list-items/group-item.d.ts +4 -4
- package/dist/components/dropdown-menu/list-items/index.d.ts +3 -3
- package/dist/components/dropdown-menu/list-items/item-content.d.ts +4 -4
- package/dist/components/dropdown-menu/list-items/label-item.d.ts +2 -2
- package/dist/components/dropdown-menu/list-items/nav-item.d.ts +4 -4
- package/dist/components/dropdown-menu-button/dropdown-menu-button.d.ts +8 -9
- package/dist/components/dropdown-menu-button/index.d.ts +2 -0
- package/dist/components/dropdown-navigation/dropdown-navigation.d.ts +5 -6
- package/dist/components/dropdown-navigation/index.d.ts +2 -0
- package/dist/components/error-summary/error-summary.d.ts +5 -6
- package/dist/components/error-summary/index.d.ts +2 -0
- package/dist/components/external-link/external-link.d.ts +3 -3
- package/dist/components/external-link/index.d.ts +2 -0
- package/dist/components/feedbacks/index.d.ts +2 -0
- package/dist/components/feedbacks/invalid-field.d.ts +3 -4
- package/dist/components/field-container/field-container.d.ts +2 -2
- package/dist/components/field-container/index.d.ts +2 -0
- package/dist/components/fieldset/fieldset.d.ts +16 -1
- package/dist/components/fieldset/index.d.ts +2 -1
- package/dist/components/fieldset/legend.d.ts +12 -2
- package/dist/components/global-banner/global-banner.d.ts +1 -2
- package/dist/components/global-banner/index.d.ts +2 -0
- package/dist/components/global-header/global-header.d.ts +2 -3
- package/dist/components/global-header/index.d.ts +3 -0
- package/dist/components/heading/heading.d.ts +4 -4
- package/dist/components/heading/index.d.ts +2 -0
- package/dist/components/icon/icon.d.ts +2 -2
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/index.d.ts +72 -0
- package/dist/components/internationalization-provider/index.d.ts +2 -0
- package/dist/components/internationalization-provider/internationalization-provider.d.ts +1 -1
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/label.d.ts +3 -3
- package/dist/components/link/index.d.ts +1 -0
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/types.d.ts +5 -5
- package/dist/components/listbox/index.d.ts +2 -0
- package/dist/components/lozenge/index.d.ts +2 -0
- package/dist/components/lozenge/lozenge.d.ts +3 -4
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +3 -3
- package/dist/components/menu-button/index.d.ts +2 -0
- package/dist/components/menu-button/menu-button.d.ts +4 -4
- package/dist/components/modal/dialog/index.d.ts +2 -0
- package/dist/components/modal/dialog/modal-dialog.d.ts +20 -3
- package/dist/components/modal/dialog/styled.d.ts +3 -3
- package/dist/components/modal/index.d.ts +4 -0
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/styled.d.ts +1 -1
- package/dist/components/modal/use-modal.d.ts +1 -2
- package/dist/components/money-input/money-input.d.ts +3 -3
- package/dist/components/nav-list/index.d.ts +3 -0
- package/dist/components/nav-list/nav-list-item.d.ts +2 -2
- package/dist/components/nav-list/nav-list-option.d.ts +1 -1
- package/dist/components/numeric-input/numeric-input.d.ts +5 -5
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.d.ts +3 -4
- package/dist/components/pagination/util/index.d.ts +1 -0
- package/dist/components/pagination/util/pagination-util.d.ts +1 -2
- package/dist/components/password-creation-input/index.d.ts +4 -0
- package/dist/components/password-creation-input/password-creation-input.d.ts +3 -4
- package/dist/components/password-creation-input/password-rule.d.ts +2 -2
- package/dist/components/password-creation-input/password-strength-container.d.ts +2 -2
- package/dist/components/password-creation-input/password-strength-meter.d.ts +2 -2
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/password-input.d.ts +3 -4
- package/dist/components/phone-input/index.d.ts +2 -0
- package/dist/components/phone-input/phone-input.d.ts +3 -4
- package/dist/components/progress-circular/index.d.ts +2 -0
- package/dist/components/progress-circular/progress-circular.d.ts +2 -2
- package/dist/components/progress-indicator/index.d.ts +1 -0
- package/dist/components/progress-indicator/progress-indicator.d.ts +1 -13
- package/dist/components/progress-tracker/index.d.ts +2 -0
- package/dist/components/progress-tracker/progress-tracker.d.ts +3 -4
- package/dist/components/radio-button/index.d.ts +2 -0
- package/dist/components/radio-button/radio-button.d.ts +1 -2
- package/dist/components/radio-button/radio-input.d.ts +1 -2
- package/dist/components/radio-button-group/index.d.ts +2 -0
- package/dist/components/radio-button-group/radio-button-group.d.ts +8 -9
- package/dist/components/radio-card-group/index.d.ts +4 -0
- package/dist/components/radio-card-group/radio-card-group.d.ts +3 -4
- package/dist/components/radio-card-group/radio-card.d.ts +2 -2
- package/dist/components/radio-card-group/styled-components.d.ts +1 -1
- package/dist/components/route-link/index.d.ts +2 -0
- package/dist/components/route-link/route-link.d.ts +5 -5
- package/dist/components/route-link/styles/index.d.ts +1 -0
- package/dist/components/screen-reader-only-text/ScreenReaderOnlyText.d.ts +3 -4
- package/dist/components/screen-reader-only-text/index.d.ts +2 -0
- package/dist/components/search/index.d.ts +4 -0
- package/dist/components/search/search-contextual.d.ts +2 -2
- package/dist/components/search/search-global.d.ts +2 -2
- package/dist/components/search/search-input.d.ts +2 -2
- package/dist/components/sectional-banner/index.d.ts +2 -0
- package/dist/components/sectional-banner/sectional-banner.d.ts +5 -6
- package/dist/components/segmented-control/index.d.ts +2 -0
- package/dist/components/segmented-control/segmented-control.d.ts +4 -5
- package/dist/components/shadow-wrapper/index.d.ts +2 -0
- package/dist/components/shadow-wrapper/shadow-wrapper.d.ts +1 -2
- package/dist/components/side-drawer/index.d.ts +2 -0
- package/dist/components/side-drawer/side-drawer.d.ts +1 -1
- package/dist/components/skip-link/index.d.ts +2 -0
- package/dist/components/skip-link/skip-link.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slider.d.ts +3 -3
- package/dist/components/slider/value-tooltip.d.ts +2 -2
- package/dist/components/spinner/{spinner.d.ts → index.d.ts} +4 -1
- package/dist/components/stepper-input/index.d.ts +2 -0
- package/dist/components/stepper-input/stepper-buttons.d.ts +2 -2
- package/dist/components/stepper-input/stepper-input.d.ts +5 -5
- package/dist/components/table/index.d.ts +3 -2
- package/dist/components/table/table-caption.d.ts +14 -0
- package/dist/components/table/table-footer.d.ts +1 -1
- package/dist/components/table/table-row.d.ts +1 -1
- package/dist/components/table/table.d.ts +7 -4
- package/dist/components/table/types.d.ts +3 -3
- package/dist/components/table/utils/index.d.ts +1 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tab-button.d.ts +1 -15
- package/dist/components/tabs/tab-panel.d.ts +2 -9
- package/dist/components/tabs/tabs-classes.d.ts +5 -0
- package/dist/components/tabs/tabs.d.ts +7 -7
- package/dist/components/tabs/types.d.ts +30 -0
- package/dist/components/tag/index.d.ts +4 -0
- package/dist/components/tag/tag.d.ts +3 -3
- package/dist/components/tag/toggle-tag.d.ts +1 -1
- package/dist/components/text-area/index.d.ts +2 -0
- package/dist/components/text-area/text-area.d.ts +4 -4
- package/dist/components/text-input/index.d.ts +4 -2
- package/dist/components/text-input/styles/index.d.ts +1 -0
- package/dist/components/text-input/styles/inputs.d.ts +2 -2
- package/dist/components/text-input/text-input.d.ts +2 -2
- package/dist/components/theme-wrapper/index.d.ts +2 -0
- package/dist/components/theme-wrapper/theme-wrapper.d.ts +2 -2
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/toast-container.d.ts +4 -4
- package/dist/components/toast/toasts-container.d.ts +2 -2
- package/dist/components/toggle-switch/index.d.ts +2 -0
- package/dist/components/toggle-switch/toggle-switch.d.ts +3 -4
- package/dist/components/toggletip/index.d.ts +2 -0
- package/dist/components/toggletip/toggletip.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/user-profile/index.d.ts +2 -0
- package/dist/components/user-profile/user-profile.d.ts +4 -5
- package/dist/components/visually-hidden/index.d.ts +2 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +3 -0
- package/dist/hooks/use-theme.d.ts +1 -1
- package/dist/hooks/use-toast.d.ts +1 -1
- package/dist/hooks/use-toasts.d.ts +1 -1
- package/dist/index.d.ts +2 -81
- package/dist/theme.js +1 -1
- package/dist/themes/build-theme.d.ts +1 -1
- package/dist/themes/index.d.ts +1 -0
- package/dist/themes/theme.d.ts +13 -8
- package/dist/themes/tokens/alias/color-tokens.d.ts +3 -0
- package/dist/themes/tokens/alias/text-tokens.d.ts +3 -0
- package/dist/themes/tokens/alias-tokens.d.ts +195 -47
- package/dist/themes/tokens/component/accordion-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/avatar-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/badge-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/bento-menu-button-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/breadcrumb-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/button-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/caption-tokens.d.ts +3 -0
- package/dist/themes/tokens/component/card-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/carousel-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/checkbox-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/chooser-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/combobox-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/datepicker-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/disclosure-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/dropdown-list-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/dropdown-menu-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/field-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/focus-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/global-banner-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/global-header-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/heading-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/label-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/legend-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/link-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/listbox-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/lozenge-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/menu-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/modal-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/nav-list-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/numeric-input-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/pagination-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/password-input-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/phone-input-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/progress-circular-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/progress-indicator-tokens.d.ts +3 -0
- package/dist/themes/tokens/component/progress-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/radio-button-group-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/radio-card-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/search-input-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/sectional-banner-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/segmented-control-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/side-drawer-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/slider-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/spinner-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/stepper-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/tab-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/table-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/tag-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/text-area-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/text-input-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/toast-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/toggle-switch-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/toggletip-tokens.d.ts +3 -8
- package/dist/themes/tokens/component/tooltip-tokens.d.ts +3 -8
- package/dist/themes/tokens/component-tokens.d.ts +684 -66
- package/dist/themes/tokens/index.d.ts +1 -0
- package/dist/themes/tokens/ref/palette-tokens.d.ts +3 -6
- package/dist/themes/tokens/ref/text-tokens.d.ts +3 -0
- package/dist/themes/tokens/ref/utility-tokens.d.ts +3 -0
- package/dist/themes/tokens/ref-tokens.d.ts +209 -9
- package/dist/themes/tokens/tokens.d.ts +11 -0
- package/dist/utils/css-state.d.ts +1 -1
- package/package.json +59 -63
- package/dist/components/buttons/abstract/types.d.ts +0 -7
- package/dist/components/buttons/types.d.ts +0 -40
- package/dist/components/chooser-button/styles/choose.d.ts +0 -1
- package/dist/components/dropdown-list/dropdown-list-option.d.ts +0 -4
- package/dist/components/fieldset/styled.d.ts +0 -9
- package/dist/components/fieldset/types.d.ts +0 -17
- package/dist/components/global-navigation/global-navigation.d.ts +0 -20
- package/dist/components/legend/legend.d.ts +0 -12
- package/dist/components/modal/dialog/types.d.ts +0 -19
- package/dist/components/progress-circle/circle.d.ts +0 -9
- package/dist/components/progress-circle/progress-circle.d.ts +0 -12
- package/dist/components/progress-indicator/bar.d.ts +0 -9
- package/dist/components/status/status.d.ts +0 -9
- package/dist/components/visually-hidden/visuallyhidden.d.ts +0 -2
- package/dist/themes/tokens/component/global-navigation-tokens.d.ts +0 -8
- package/dist/themes/tokens/component/status-tokens.d.ts +0 -8
- package/dist/themes/tokens/ref/color-utility-tokens.d.ts +0 -6
- package/dist/themes/tokens/ref/text-attributes-tokens.d.ts +0 -6
- package/dist/utility-types.d.ts +0 -1
- /package/dist/components/visually-hidden/{styles/visuallyhidden.d.ts → visually-hidden.style.d.ts} +0 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { IconName } from '../icon
|
|
4
|
-
export type
|
|
2
|
+
import { type ButtonProps, type ButtonSize } from '../buttons';
|
|
3
|
+
import { type IconName } from '../icon';
|
|
4
|
+
export type DisclosureButtonProps = Omit<ButtonProps, 'onClick'> & {
|
|
5
5
|
iconName?: IconName;
|
|
6
|
-
size?:
|
|
6
|
+
size?: ButtonSize;
|
|
7
7
|
};
|
|
8
|
-
interface
|
|
8
|
+
export interface DisclosureProps {
|
|
9
9
|
idContent?: string;
|
|
10
|
-
buttonProps:
|
|
10
|
+
buttonProps: DisclosureButtonProps;
|
|
11
11
|
}
|
|
12
12
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
13
13
|
$expanded: boolean;
|
|
14
14
|
}, never>;
|
|
15
|
-
export declare const Disclosure: FunctionComponent<PropsWithChildren<
|
|
16
|
-
export {};
|
|
15
|
+
export declare const Disclosure: FunctionComponent<PropsWithChildren<DisclosureProps>>;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IconName } from '../icon
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { type IconName } from '../icon';
|
|
3
|
+
import { type ListboxOption } from '../listbox';
|
|
4
|
+
import { type ToggletipProps } from '../toggletip';
|
|
5
|
+
import { type TooltipProps } from '../tooltip';
|
|
6
6
|
type Value = string | string[];
|
|
7
7
|
export interface TagValue {
|
|
8
8
|
id?: string;
|
|
9
9
|
label: string;
|
|
10
10
|
}
|
|
11
|
+
export interface DropdownListOption extends ListboxOption {
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
11
14
|
export interface DropdownListProps<M extends boolean | undefined> {
|
|
12
15
|
/**
|
|
13
16
|
* Aria label for the input (used when no visual label is present)
|
|
@@ -65,5 +68,5 @@ export interface DropdownListProps<M extends boolean | undefined> {
|
|
|
65
68
|
*/
|
|
66
69
|
onChange?(option: M extends true ? DropdownListOption[] : DropdownListOption): void;
|
|
67
70
|
}
|
|
68
|
-
export declare const DropdownList:
|
|
71
|
+
export declare const DropdownList: FC<DropdownListProps<boolean | undefined>>;
|
|
69
72
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DropdownListOption } from '../dropdown-list
|
|
1
|
+
import type { DropdownListOption } from '../dropdown-list';
|
|
2
2
|
export declare function optionsAreEqual(option: DropdownListOption, optionToCompare: DropdownListOption): boolean;
|
|
3
3
|
export declare function addUniqueOption(newOption: DropdownListOption, options?: DropdownListOption[]): DropdownListOption[];
|
|
4
4
|
export declare function removeOption(optionToRemove: DropdownListOption, options?: DropdownListOption[]): DropdownListOption[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dropdown-list-utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { KeyboardEvent, ReactElement } from 'react';
|
|
2
|
-
import { GroupItemProps } from './list-items';
|
|
2
|
+
import { type GroupItemProps } from './list-items';
|
|
3
3
|
export interface DropdownMenuProps {
|
|
4
4
|
children?: ReactElement<GroupItemProps> | ReactElement<GroupItemProps>[];
|
|
5
5
|
id?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
3
|
-
import { ExternalLinkProps } from '../../external-link
|
|
2
|
+
import { type DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
3
|
+
import { type ExternalLinkProps } from '../../external-link';
|
|
4
4
|
export interface ExternalItemProps extends ExternalLinkProps {
|
|
5
5
|
label: string;
|
|
6
6
|
href: string;
|
|
@@ -11,6 +11,6 @@ export interface ExternalItemProps extends ExternalLinkProps {
|
|
|
11
11
|
interface ExternalItemsStyledProps extends ExternalItemProps {
|
|
12
12
|
$device: DeviceContextProps;
|
|
13
13
|
}
|
|
14
|
-
export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").
|
|
14
|
+
export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").FC<ExternalLinkProps>, import("styled-components").DefaultTheme, ExternalItemsStyledProps, never>;
|
|
15
15
|
export declare const ExternalItem: ({ href, label, disabled, target, onClick, }: ExternalItemProps) => ReactElement;
|
|
16
16
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HeadingProps } from '../../heading
|
|
3
|
-
import { NavItemProps } from './nav-item';
|
|
1
|
+
import { type FC, ReactElement } from 'react';
|
|
2
|
+
import { type HeadingProps } from '../../heading';
|
|
3
|
+
import { type NavItemProps } from './nav-item';
|
|
4
4
|
export interface GroupItemProps {
|
|
5
5
|
id?: string;
|
|
6
6
|
children: ReactElement<NavItemProps> | ReactElement<NavItemProps>[];
|
|
@@ -8,4 +8,4 @@ export interface GroupItemProps {
|
|
|
8
8
|
label?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const StyledHeading: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>, import("styled-components").DefaultTheme, HeadingProps, never>;
|
|
11
|
-
export declare const GroupItem:
|
|
11
|
+
export declare const GroupItem: FC<GroupItemProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { ExternalItem, ExternalItemProps } from './external-item';
|
|
2
|
-
export { GroupItem, GroupItemProps } from './group-item';
|
|
1
|
+
export { ExternalItem, type ExternalItemProps } from './external-item';
|
|
2
|
+
export { GroupItem, type GroupItemProps } from './group-item';
|
|
3
3
|
export { ItemContent } from './item-content';
|
|
4
4
|
export { LabelItem } from './label-item';
|
|
5
|
-
export { NavItem, NavItemProps } from './nav-item';
|
|
5
|
+
export { NavItem, type NavItemProps } from './nav-item';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
3
|
-
import { IconName } from '../../icon
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
3
|
+
import { type IconName } from '../../icon';
|
|
4
4
|
export interface ItemContentProps {
|
|
5
5
|
device: DeviceContextProps;
|
|
6
6
|
smallLabel?: boolean;
|
|
@@ -9,4 +9,4 @@ export interface ItemContentProps {
|
|
|
9
9
|
label: string;
|
|
10
10
|
lozenge?: string;
|
|
11
11
|
}
|
|
12
|
-
export declare const ItemContent:
|
|
12
|
+
export declare const ItemContent: FC<ItemContentProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
3
|
-
import { IconName } from '../../icon
|
|
2
|
+
import { type DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
3
|
+
import { type IconName } from '../../icon';
|
|
4
4
|
interface LabelItemProps {
|
|
5
5
|
description?: string;
|
|
6
6
|
iconName?: IconName;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
-
import { NavLinkProps } from 'react-router-dom';
|
|
3
|
-
import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
4
|
-
import { IconName } from '../../icon
|
|
2
|
+
import { type NavLinkProps } from 'react-router-dom';
|
|
3
|
+
import { type DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
4
|
+
import { type IconName } from '../../icon';
|
|
5
5
|
export interface NavItemProps {
|
|
6
6
|
value: string;
|
|
7
7
|
href: string;
|
|
@@ -24,6 +24,6 @@ interface LinkProps {
|
|
|
24
24
|
}
|
|
25
25
|
export declare const StyledNavItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<NavLinkProps & import("react").RefAttributes<HTMLAnchorElement>>, import("styled-components").DefaultTheme, LinkProps & NavLinkProps, never>;
|
|
26
26
|
export declare const HtmlLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, LinkProps, never>;
|
|
27
|
-
export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").
|
|
27
|
+
export declare const StyledExternalLink: import("styled-components").StyledComponent<import("react").FC<import("../../external-link").ExternalLinkProps>, import("styled-components").DefaultTheme, LinkProps, never>;
|
|
28
28
|
export declare const NavItem: import("react").ForwardRefExoticComponent<NavItemProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
29
29
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactElement, RefObject
|
|
2
|
-
import { AvatarProps } from '../avatar
|
|
3
|
-
import { ButtonType } from '../buttons
|
|
4
|
-
import { GroupItemProps } from '../dropdown-menu
|
|
5
|
-
import { IconProps } from '../icon
|
|
6
|
-
export declare const StyledDropdownMenu: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../dropdown-menu
|
|
7
|
-
interface
|
|
1
|
+
import { FC, ReactElement, RefObject } from 'react';
|
|
2
|
+
import { AvatarProps } from '../avatar';
|
|
3
|
+
import { type ButtonType } from '../buttons';
|
|
4
|
+
import { type GroupItemProps } from '../dropdown-menu';
|
|
5
|
+
import { type IconProps } from '../icon';
|
|
6
|
+
export declare const StyledDropdownMenu: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../dropdown-menu").DropdownMenuProps & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export interface DropdownMenuButtonProps {
|
|
8
8
|
label?: string;
|
|
9
9
|
title?: string;
|
|
10
10
|
/**
|
|
@@ -34,5 +34,4 @@ interface MenuButtonProps {
|
|
|
34
34
|
onMenuVisibilityChanged?(isOpen: boolean): void;
|
|
35
35
|
render?(close: () => void): ReactElement<GroupItemProps> | ReactElement<GroupItemProps>[];
|
|
36
36
|
}
|
|
37
|
-
export declare const DropdownMenuButton:
|
|
38
|
-
export {};
|
|
37
|
+
export declare const DropdownMenuButton: FC<DropdownMenuButtonProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { ButtonType } from '../buttons
|
|
3
|
-
import { IconName } from '../icon
|
|
4
|
-
import { NavListOption } from '../nav-list
|
|
5
|
-
interface
|
|
2
|
+
import { type ButtonType } from '../buttons';
|
|
3
|
+
import { type IconName } from '../icon';
|
|
4
|
+
import { type NavListOption } from '../nav-list';
|
|
5
|
+
export interface DropdownNavigationProps {
|
|
6
6
|
/**
|
|
7
7
|
* Sets nav's description
|
|
8
8
|
* @default 'Menu'
|
|
@@ -33,5 +33,4 @@ interface NavButtonProps {
|
|
|
33
33
|
onDropdownVisibilityChanged?(isOpen: boolean): void;
|
|
34
34
|
onLinkSelected?(option: NavListOption): void;
|
|
35
35
|
}
|
|
36
|
-
export declare const DropdownNavigation: FunctionComponent<PropsWithChildren<
|
|
37
|
-
export {};
|
|
36
|
+
export declare const DropdownNavigation: FunctionComponent<PropsWithChildren<DropdownNavigationProps>>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type
|
|
1
|
+
import { type FC, RefObject } from 'react';
|
|
2
|
+
export type ErrorSummaryHeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
3
3
|
export interface ErrorMessage {
|
|
4
4
|
text: string;
|
|
5
5
|
target: RefObject<HTMLElement> | string;
|
|
6
6
|
}
|
|
7
|
-
interface ErrorSummaryProps {
|
|
7
|
+
export interface ErrorSummaryProps {
|
|
8
8
|
className?: string;
|
|
9
9
|
/**
|
|
10
10
|
* @default h2
|
|
11
11
|
*/
|
|
12
|
-
headingTag?:
|
|
12
|
+
headingTag?: ErrorSummaryHeadingTag;
|
|
13
13
|
/**
|
|
14
14
|
* Array of objects with a `text` attribute containing the error message and a `target`
|
|
15
15
|
* referencing the target input that will get the focus when clicking the error. The
|
|
@@ -17,5 +17,4 @@ interface ErrorSummaryProps {
|
|
|
17
17
|
*/
|
|
18
18
|
messages: ErrorMessage[];
|
|
19
19
|
}
|
|
20
|
-
export declare const ErrorSummary:
|
|
21
|
-
export {};
|
|
20
|
+
export declare const ErrorSummary: FC<ErrorSummaryProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IconName } from '../icon
|
|
1
|
+
import { type FC, MouseEvent } from 'react';
|
|
2
|
+
import { type IconName } from '../icon';
|
|
3
3
|
export interface ExternalLinkProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
disabled?: boolean;
|
|
@@ -12,4 +12,4 @@ export interface ExternalLinkProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* @deprecated This component is deprecated and will be removed in future releases. Use Link instead.
|
|
14
14
|
*/
|
|
15
|
-
export declare const ExternalLink:
|
|
15
|
+
export declare const ExternalLink: FC<ExternalLinkProps>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
interface InvalidFieldProps {
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
export interface InvalidFieldProps {
|
|
3
3
|
controlId: string;
|
|
4
4
|
feedbackMsg: string;
|
|
5
5
|
noIcon?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const InvalidField:
|
|
8
|
-
export { InvalidField };
|
|
7
|
+
export declare const InvalidField: FC<InvalidFieldProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { ToggletipProps } from '../toggletip
|
|
3
|
-
import { TooltipProps } from '../tooltip
|
|
2
|
+
import { type ToggletipProps } from '../toggletip';
|
|
3
|
+
import { type TooltipProps } from '../tooltip';
|
|
4
4
|
export interface FieldContainerProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
fieldId: string;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldsetHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { type LegendProps } from './legend';
|
|
3
|
+
type BaseFieldsetProps = Pick<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'disabled' | 'id' | 'aria-disabled' | 'aria-label' | 'role'>;
|
|
4
|
+
export type FieldsetOrientation = 'horizontal' | 'vertical';
|
|
5
|
+
export type FieldsetLegendProps = Omit<LegendProps, 'children'> & {
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
export interface FieldsetProps extends BaseFieldsetProps {
|
|
9
|
+
legend?: FieldsetLegendProps;
|
|
10
|
+
orientation?: FieldsetOrientation;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const StyledFieldset: import("styled-components").StyledComponent<"fieldset", import("styled-components").DefaultTheme, {
|
|
14
|
+
$orientation: FieldsetProps["orientation"];
|
|
15
|
+
}, never>;
|
|
2
16
|
export declare const Fieldset: import("react").ForwardRefExoticComponent<FieldsetProps & import("react").RefAttributes<HTMLFieldSetElement>>;
|
|
17
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Fieldset } from './fieldset';
|
|
2
|
+
export type { FieldsetLegendProps, FieldsetOrientation, FieldsetProps } from './fieldset';
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
|
|
1
|
+
import { type FC, HTMLAttributes } from 'react';
|
|
2
|
+
export type LegendSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export interface LegendProps extends HTMLAttributes<HTMLLegendElement> {
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: LegendSize;
|
|
6
|
+
bold?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const StyledLegend: import("styled-components").StyledComponent<"legend", import("styled-components").DefaultTheme, {
|
|
9
|
+
$size: LegendProps["size"];
|
|
10
|
+
$bold: LegendProps["bold"];
|
|
11
|
+
$isMobile: boolean;
|
|
12
|
+
}, never>;
|
|
3
13
|
export declare const Legend: FC<LegendProps>;
|
|
@@ -4,7 +4,7 @@ export interface ActionButton {
|
|
|
4
4
|
label: string;
|
|
5
5
|
onClick(event: MouseEvent<HTMLButtonElement>): void;
|
|
6
6
|
}
|
|
7
|
-
interface GlobalBannerProps {
|
|
7
|
+
export interface GlobalBannerProps {
|
|
8
8
|
actionButton?: ActionButton;
|
|
9
9
|
secondaryActionButton?: ActionButton;
|
|
10
10
|
className?: string;
|
|
@@ -20,4 +20,3 @@ interface GlobalBannerProps {
|
|
|
20
20
|
type?: GlobalBannerType;
|
|
21
21
|
}
|
|
22
22
|
export declare const GlobalBanner: import("react").ForwardRefExoticComponent<GlobalBannerProps & import("react").RefAttributes<HTMLElement>>;
|
|
23
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
-
import { SkipLinkProps } from '../skip-link
|
|
2
|
+
import { type SkipLinkProps } from '../skip-link';
|
|
3
3
|
import { LogoName } from './logo';
|
|
4
|
-
interface GlobalHeaderProps {
|
|
4
|
+
export interface GlobalHeaderProps {
|
|
5
5
|
/** Set the app name to get the proper logos */
|
|
6
6
|
appName?: LogoName;
|
|
7
7
|
/** Sets app title which appears next to logo on desktop */
|
|
@@ -21,4 +21,3 @@ interface GlobalHeaderProps {
|
|
|
21
21
|
usesReactRouter?: boolean;
|
|
22
22
|
}
|
|
23
23
|
export declare const GlobalHeader: FunctionComponent<PropsWithChildren<GlobalHeaderProps>>;
|
|
24
|
-
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export type
|
|
3
|
-
export type
|
|
2
|
+
export type HeadingType = 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall' | 'subtitle';
|
|
3
|
+
export type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
4
4
|
export interface HeadingProps {
|
|
5
5
|
bold?: boolean;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
id?: string;
|
|
9
9
|
noMargin?: boolean;
|
|
10
|
-
tag?:
|
|
11
|
-
type:
|
|
10
|
+
tag?: HeadingTag;
|
|
11
|
+
type: HeadingType;
|
|
12
12
|
}
|
|
13
13
|
export declare const Heading: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
declare const iconMapping: {
|
|
3
3
|
readonly alertCircle: any;
|
|
4
4
|
readonly alertFilled: any;
|
|
@@ -90,5 +90,5 @@ export interface IconProps {
|
|
|
90
90
|
color?: string;
|
|
91
91
|
role?: string;
|
|
92
92
|
}
|
|
93
|
-
export declare const Icon:
|
|
93
|
+
export declare const Icon: FC<IconProps>;
|
|
94
94
|
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './avatar';
|
|
3
|
+
export * from './badge';
|
|
4
|
+
export * from './bento-menu-button';
|
|
5
|
+
export * from './breadcrumb';
|
|
6
|
+
export * from './buttons';
|
|
7
|
+
export * from './card';
|
|
8
|
+
export * from './card-link';
|
|
9
|
+
export * from './carousel';
|
|
10
|
+
export * from './checkbox';
|
|
11
|
+
export * from './checkbox-group';
|
|
12
|
+
export * from './chooser-button';
|
|
13
|
+
export * from './chooser-button-group';
|
|
14
|
+
export * from './combobox';
|
|
15
|
+
export * from './date-picker';
|
|
16
|
+
export * from './design-system';
|
|
17
|
+
export * from './disclosure';
|
|
18
|
+
export * from './dropdown-list';
|
|
19
|
+
export * from './dropdown-menu';
|
|
20
|
+
export * from './dropdown-menu-button';
|
|
21
|
+
export * from './dropdown-navigation';
|
|
22
|
+
export * from './error-summary';
|
|
23
|
+
export * from './external-link';
|
|
24
|
+
export * from './feedbacks';
|
|
25
|
+
export * from './field-container';
|
|
26
|
+
export * from './fieldset';
|
|
27
|
+
export * from './global-banner';
|
|
28
|
+
export * from './global-header';
|
|
29
|
+
export * from './heading';
|
|
30
|
+
export * from './icon';
|
|
31
|
+
export * from './label';
|
|
32
|
+
export * from './link';
|
|
33
|
+
export * from './listbox';
|
|
34
|
+
export * from './lozenge';
|
|
35
|
+
export * from './menu';
|
|
36
|
+
export * from './menu-button';
|
|
37
|
+
export * from './modal';
|
|
38
|
+
export * from './money-input';
|
|
39
|
+
export * from './nav-list';
|
|
40
|
+
export * from './numeric-input';
|
|
41
|
+
export * from './pagination';
|
|
42
|
+
export * from './password-creation-input';
|
|
43
|
+
export * from './password-input';
|
|
44
|
+
export * from './phone-input';
|
|
45
|
+
export * from './progress-circular';
|
|
46
|
+
export * from './progress-indicator';
|
|
47
|
+
export * from './progress-tracker';
|
|
48
|
+
export * from './radio-button';
|
|
49
|
+
export * from './radio-button-group';
|
|
50
|
+
export * from './radio-card-group';
|
|
51
|
+
export * from './route-link';
|
|
52
|
+
export * from './screen-reader-only-text';
|
|
53
|
+
export * from './search';
|
|
54
|
+
export * from './sectional-banner';
|
|
55
|
+
export * from './segmented-control';
|
|
56
|
+
export * from './shadow-wrapper';
|
|
57
|
+
export * from './side-drawer';
|
|
58
|
+
export * from './skip-link';
|
|
59
|
+
export * from './slider';
|
|
60
|
+
export * from './spinner';
|
|
61
|
+
export * from './stepper-input';
|
|
62
|
+
export * from './table';
|
|
63
|
+
export * from './tabs';
|
|
64
|
+
export * from './tag';
|
|
65
|
+
export * from './text-area';
|
|
66
|
+
export * from './text-input';
|
|
67
|
+
export * from './toast';
|
|
68
|
+
export * from './toggle-switch';
|
|
69
|
+
export * from './toggletip';
|
|
70
|
+
export * from './tooltip';
|
|
71
|
+
export * from './user-profile';
|
|
72
|
+
export * from './visually-hidden';
|
|
@@ -10,7 +10,7 @@ interface IntlContextProps {
|
|
|
10
10
|
i18n: i18nType;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* @
|
|
13
|
+
* @internal Use {@link DesignSystem} instead
|
|
14
14
|
*/
|
|
15
15
|
export declare const IntlProvider: FunctionComponent<PropsWithChildren<IntlProviderProps>>;
|
|
16
16
|
export declare function useIntlContext(): IntlContextProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { ToggletipProps } from '../toggletip
|
|
3
|
-
import { TooltipProps } from '../tooltip
|
|
4
|
-
interface LabelProps {
|
|
2
|
+
import { type ToggletipProps } from '../toggletip';
|
|
3
|
+
import { type TooltipProps } from '../tooltip';
|
|
4
|
+
export interface LabelProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
forId: string;
|
|
7
7
|
id?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { ButtonProps } from '../buttons';
|
|
4
|
-
import { IconName } from '../icon
|
|
1
|
+
import { type AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { Link as ReactRouterLink, NavLink, type NavLinkProps } from 'react-router-dom';
|
|
3
|
+
import { type ButtonProps } from '../buttons';
|
|
4
|
+
import { type IconName } from '../icon';
|
|
5
5
|
type BaseLinkProps = Pick<AnchorHTMLAttributes<HTMLAnchorElement>, 'id' | 'className' | 'onClick' | 'aria-disabled' | 'aria-label' | 'target' | 'children' | 'href' | 'rel' | 'onFocus' | 'onBlur' | 'onKeyDown'> & Pick<NavLinkProps, 'end'>;
|
|
6
|
-
type LinkButtonProps = Pick<ButtonProps, 'autofocus' | 'buttonType' | 'disabled' | 'focusable' | 'inverted' | 'size' | 'title' | 'type'>;
|
|
6
|
+
export type LinkButtonProps = Pick<ButtonProps, 'autofocus' | 'buttonType' | 'disabled' | 'focusable' | 'inverted' | 'size' | 'title' | 'type'>;
|
|
7
7
|
export interface LinkProps extends BaseLinkProps {
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
/** Button Link Variant */
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { IconName } from '../icon
|
|
2
|
+
import { type IconName } from '../icon';
|
|
3
3
|
export type LozengeVariant = 'neutral' | 'success' | 'alert' | 'warning' | 'info' | 'discovery';
|
|
4
|
-
interface
|
|
4
|
+
export interface LozengeProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
variant?: LozengeVariant;
|
|
7
7
|
icon?: IconName;
|
|
8
8
|
subtle?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const Lozenge: FunctionComponent<PropsWithChildren<
|
|
11
|
-
export {};
|
|
10
|
+
export declare const Lozenge: FunctionComponent<PropsWithChildren<LozengeProps>>;
|