@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,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
interface ShadowWrapperProps {
|
|
2
|
+
export interface ShadowWrapperProps {
|
|
3
3
|
/**
|
|
4
4
|
* Sets host element tag
|
|
5
5
|
* @default div
|
|
@@ -7,4 +7,3 @@ interface ShadowWrapperProps {
|
|
|
7
7
|
tagName?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const ShadowWrapper: FunctionComponent<PropsWithChildren<ShadowWrapperProps>>;
|
|
10
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FC, MouseEvent } from 'react';
|
|
2
2
|
export interface SkipLinkProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
href: string;
|
|
5
5
|
onClick?(event: MouseEvent<HTMLAnchorElement>): void;
|
|
6
6
|
}
|
|
7
|
-
export declare const SkipLink:
|
|
7
|
+
export declare const SkipLink: FC<SkipLinkProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { ToggletipProps } from '../toggletip
|
|
3
|
-
import { TooltipProps } from '../tooltip
|
|
2
|
+
import { ToggletipProps } from '../toggletip';
|
|
3
|
+
import { TooltipProps } from '../tooltip';
|
|
4
4
|
type InferValueType<T> = T extends number ? number : number[];
|
|
5
|
-
interface SliderProps<TValue extends number | number[]> {
|
|
5
|
+
export interface SliderProps<TValue extends number | number[]> {
|
|
6
6
|
className?: string;
|
|
7
7
|
id?: string;
|
|
8
8
|
max: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { type SliderValueLabelSlotProps } from '@mui/base/Slider';
|
|
2
|
+
import { type FunctionComponent } from 'react';
|
|
3
3
|
export declare const ValueTooltipContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const ValueTooltip: FunctionComponent<SliderValueLabelSlotProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
2
|
interface StepperButtonsProps {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
onIncrement?(event: React.MouseEvent<HTMLButtonElement>): void;
|
|
5
5
|
onDecrement?(event: React.MouseEvent<HTMLButtonElement>): void;
|
|
6
6
|
onStop?(): void;
|
|
7
7
|
}
|
|
8
|
-
export declare const StepperButtons:
|
|
8
|
+
export declare const StepperButtons: FC<StepperButtonsProps>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DetailedHTMLProps,
|
|
2
|
-
import { ToggletipProps } from '../toggletip
|
|
3
|
-
import { TooltipProps } from '../tooltip
|
|
1
|
+
import { type DetailedHTMLProps, type FC, type InputHTMLAttributes } from 'react';
|
|
2
|
+
import { ToggletipProps } from '../toggletip';
|
|
3
|
+
import { TooltipProps } from '../tooltip';
|
|
4
4
|
type PartialStepperInputProps = Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'disabled' | 'onFocus' | 'onBlur' | 'step'>;
|
|
5
5
|
type Value = undefined | number | null;
|
|
6
|
-
interface StepperInputProps extends PartialStepperInputProps {
|
|
6
|
+
export interface StepperInputProps extends PartialStepperInputProps {
|
|
7
7
|
defaultValue?: number;
|
|
8
8
|
hint?: string;
|
|
9
9
|
id?: string;
|
|
@@ -19,5 +19,5 @@ interface StepperInputProps extends PartialStepperInputProps {
|
|
|
19
19
|
required?: boolean;
|
|
20
20
|
onChange?(value: Value): void;
|
|
21
21
|
}
|
|
22
|
-
export declare const StepperInput:
|
|
22
|
+
export declare const StepperInput: FC<StepperInputProps>;
|
|
23
23
|
export {};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { Table
|
|
2
|
-
export {
|
|
1
|
+
export { Table } from './table';
|
|
2
|
+
export type { TableProps, TableRowId } from './table';
|
|
3
|
+
export type { TableColumn, TableData } from './types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type TableCaptionSize = 'large' | 'medium' | 'small';
|
|
3
|
+
export interface TableCaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
6
|
+
bold?: boolean;
|
|
7
|
+
size?: TableCaptionSize;
|
|
8
|
+
}
|
|
9
|
+
export interface StyledTableCaptionProps {
|
|
10
|
+
$bold?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const TableCaption: import("react").ForwardRefExoticComponent<TableCaptionProps & {
|
|
13
|
+
children?: import("react").ReactNode | undefined;
|
|
14
|
+
} & import("react").RefAttributes<HTMLTableCaptionElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ColumnSort, Row } from '@tanstack/react-table';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
|
+
import { TableCaptionSize } from './table-caption';
|
|
3
4
|
import { type TableColumn } from './types';
|
|
4
5
|
type RowSize = 'small' | 'medium' | 'large';
|
|
5
6
|
export type RowSelectionMode = 'single' | 'multiple';
|
|
@@ -8,11 +9,14 @@ type RowIdField<T> = {
|
|
|
8
9
|
[K in keyof T]: T[K] extends TableRowId ? K : never;
|
|
9
10
|
}[keyof T];
|
|
10
11
|
export interface TableProps<T extends object> {
|
|
12
|
+
ariaLabelledBy?: string;
|
|
13
|
+
ariaDescribedBy?: string;
|
|
11
14
|
ariaLabelledByColumnId?: string;
|
|
12
15
|
data: T[];
|
|
13
16
|
defaultSort?: ColumnSort;
|
|
17
|
+
caption?: string;
|
|
18
|
+
captionSize?: TableCaptionSize;
|
|
14
19
|
columns: TableColumn<T>[];
|
|
15
|
-
excludeGroupsFromSelection?: boolean;
|
|
16
20
|
expandableRows?: 'single' | 'multiple';
|
|
17
21
|
expandChildrenOnRowSelection?: boolean;
|
|
18
22
|
hideSelectAll?: boolean;
|
|
@@ -42,9 +46,8 @@ export interface TableProps<T extends object> {
|
|
|
42
46
|
stickyFooter?: boolean;
|
|
43
47
|
manualSort?: boolean;
|
|
44
48
|
onRowClick?(row: Row<T>): void;
|
|
45
|
-
onSelectedRowIdsChange?(
|
|
46
|
-
onSelectedRowsChange?(selectedRows: T[]): void;
|
|
49
|
+
onSelectedRowIdsChange?(selectedRowIds: TableRowId[]): void;
|
|
47
50
|
onSort?(sort: ColumnSort | null): void;
|
|
48
51
|
}
|
|
49
|
-
export declare const Table: <T extends object>({ ariaLabelledByColumnId, className, data, rowIdField, defaultSort, columns: providedColumns,
|
|
52
|
+
export declare const Table: <T extends object>({ ariaLabelledBy, ariaDescribedBy, ariaLabelledByColumnId, caption, captionSize, className, data, rowIdField, defaultSort, columns: providedColumns, expandableRows, expandChildrenOnRowSelection, hideSelectAll, selectedRowIds, stickyHeader, stickyFooter, rowNumbers, rowSize, rowSelectionMode, striped, manualSort, onRowClick, onSelectedRowIdsChange, onSort, }: TableProps<T>) => ReactElement;
|
|
50
53
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Cell, Column, ColumnDef, Header } from '@tanstack/react-table';
|
|
2
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import type { Cell, Column, ColumnDef, Header } from '@tanstack/react-table';
|
|
2
|
+
import type { CSSProperties, ReactNode } from 'react';
|
|
3
3
|
export type TableData<TData> = TData & {
|
|
4
4
|
error?: boolean;
|
|
5
5
|
subRows?: TableData<TData>[];
|
|
6
|
-
subContent?:
|
|
6
|
+
subContent?: ReactNode;
|
|
7
7
|
};
|
|
8
8
|
export type TableColumn<TData> = ColumnDef<TData> & {
|
|
9
9
|
className?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './table-utils';
|
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IconName } from '../icon/icon';
|
|
3
|
-
interface TabButtonProps {
|
|
4
|
-
global?: boolean;
|
|
5
|
-
id: string;
|
|
6
|
-
children: string;
|
|
7
|
-
panelId: string;
|
|
8
|
-
leftIcon?: IconName;
|
|
9
|
-
rightIcon?: IconName;
|
|
10
|
-
isSelected: boolean;
|
|
11
|
-
onClick(): void;
|
|
12
|
-
onRemove?(): void;
|
|
13
|
-
onKeyDown?(event: KeyboardEvent<HTMLDivElement>): void;
|
|
14
|
-
}
|
|
1
|
+
import type { TabButtonProps } from './types';
|
|
15
2
|
export declare const TabButton: import("react").ForwardRefExoticComponent<TabButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
-
export {};
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { FunctionComponent, PropsWithChildren
|
|
2
|
-
|
|
3
|
-
buttonId: string;
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
hidden: boolean;
|
|
6
|
-
id: string;
|
|
7
|
-
global?: boolean;
|
|
8
|
-
}
|
|
1
|
+
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
+
import type { TabPanelProps } from './types';
|
|
9
3
|
export declare const TabPanel: FunctionComponent<PropsWithChildren<TabPanelProps>>;
|
|
10
|
-
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IconName } from '../icon
|
|
1
|
+
import { type FC, ReactNode } from 'react';
|
|
2
|
+
import { IconName } from '../icon';
|
|
3
|
+
import { TabSize } from './types';
|
|
3
4
|
export interface Tab {
|
|
4
5
|
id: string;
|
|
5
6
|
title: string;
|
|
@@ -8,17 +9,17 @@ export interface Tab {
|
|
|
8
9
|
panelContent: ReactNode;
|
|
9
10
|
onBeforeUnload?(): Promise<boolean>;
|
|
10
11
|
}
|
|
11
|
-
interface AddButtonProps {
|
|
12
|
+
export interface AddButtonProps {
|
|
12
13
|
label?: string;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
loading?: boolean;
|
|
15
16
|
tooltipContent?: string;
|
|
16
17
|
onClick(): void;
|
|
17
18
|
}
|
|
18
|
-
interface
|
|
19
|
+
export interface TabsProps {
|
|
19
20
|
className?: string;
|
|
20
21
|
forceRenderTabPanels?: boolean;
|
|
21
|
-
|
|
22
|
+
size?: TabSize;
|
|
22
23
|
tabs: Tab[];
|
|
23
24
|
defaultSelectedId?: string;
|
|
24
25
|
addButton?: AddButtonProps;
|
|
@@ -32,5 +33,4 @@ interface Props {
|
|
|
32
33
|
*/
|
|
33
34
|
onTabChange?(tabId: string): void;
|
|
34
35
|
}
|
|
35
|
-
export declare const Tabs:
|
|
36
|
-
export {};
|
|
36
|
+
export declare const Tabs: FC<TabsProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { KeyboardEvent, ReactNode } from 'react';
|
|
2
|
+
import type { IconName } from '../icon';
|
|
3
|
+
export type TabSize = 'medium' | 'small';
|
|
4
|
+
export interface Tab {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
leftIcon?: IconName;
|
|
8
|
+
rightIcon?: IconName;
|
|
9
|
+
panelContent: ReactNode;
|
|
10
|
+
onBeforeUnload?(): Promise<boolean>;
|
|
11
|
+
}
|
|
12
|
+
export interface TabButtonProps {
|
|
13
|
+
size: TabSize;
|
|
14
|
+
id: string;
|
|
15
|
+
panelId: string;
|
|
16
|
+
leftIcon?: IconName;
|
|
17
|
+
rightIcon?: IconName;
|
|
18
|
+
isSelected: boolean;
|
|
19
|
+
onClick(): void;
|
|
20
|
+
onRemove?(): void;
|
|
21
|
+
onKeyDown?(event: KeyboardEvent<HTMLDivElement>): void;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export interface TabPanelProps {
|
|
25
|
+
buttonId: string;
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
hidden: boolean;
|
|
28
|
+
id: string;
|
|
29
|
+
size?: TabSize;
|
|
30
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Ref } from 'react';
|
|
2
|
-
import { IconName } from '../icon
|
|
2
|
+
import { type IconName } from '../icon';
|
|
3
3
|
export type TagColor = 'default' | 'decorative-01' | 'decorative-02' | 'decorative-03' | 'decorative-04' | 'decorative-05' | 'decorative-06' | 'decorative-07' | 'decorative-08' | 'decorative-09' | 'decorative-10';
|
|
4
4
|
export type TagSize = 'small' | 'medium';
|
|
5
5
|
export interface TagValue {
|
|
@@ -8,11 +8,11 @@ export interface TagValue {
|
|
|
8
8
|
}
|
|
9
9
|
export interface TagProps {
|
|
10
10
|
className?: string;
|
|
11
|
+
color?: TagColor;
|
|
12
|
+
iconName?: IconName;
|
|
11
13
|
labelRef?: Ref<HTMLSpanElement>;
|
|
12
14
|
size?: TagSize;
|
|
13
15
|
value: TagValue;
|
|
14
|
-
iconName?: IconName;
|
|
15
|
-
color?: TagColor;
|
|
16
16
|
onRemove?(tag: TagValue): void;
|
|
17
17
|
}
|
|
18
18
|
export declare const Tag: import("react").ForwardRefExoticComponent<TagProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
2
|
-
import { ToggletipProps } from '../toggletip
|
|
3
|
-
import { TooltipProps } from '../tooltip
|
|
1
|
+
import { ChangeEvent, type FC, FocusEvent } from 'react';
|
|
2
|
+
import { type ToggletipProps } from '../toggletip';
|
|
3
|
+
import { type TooltipProps } from '../tooltip';
|
|
4
4
|
export interface TextAreaProps {
|
|
5
5
|
id?: string;
|
|
6
6
|
className?: string;
|
|
@@ -27,4 +27,4 @@ export interface TextAreaProps {
|
|
|
27
27
|
onChange?(event: ChangeEvent<HTMLTextAreaElement>): void;
|
|
28
28
|
onFocus?(event: FocusEvent<HTMLTextAreaElement>): void;
|
|
29
29
|
}
|
|
30
|
-
export declare const TextArea:
|
|
30
|
+
export declare const TextArea: FC<TextAreaProps>;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export { TextInput
|
|
2
|
-
export {
|
|
1
|
+
export { TextInput } from './text-input';
|
|
2
|
+
export type { TextInputProps } from './text-input';
|
|
3
|
+
export { textInputClasses } from './text-input-classes';
|
|
4
|
+
export type { TextInputClasses } from './text-input-classes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './inputs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlattenSimpleInterpolation } from 'styled-components';
|
|
2
|
-
import { ResolvedTheme } from '../../../themes
|
|
2
|
+
import { ResolvedTheme } from '../../../themes';
|
|
3
3
|
import { DeviceContextProps } from '../../device-context-provider/device-context-provider';
|
|
4
|
-
|
|
4
|
+
interface InputStyleOptions {
|
|
5
5
|
theme: ResolvedTheme;
|
|
6
6
|
isMobile?: boolean;
|
|
7
7
|
isFocusable?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent, ClipboardEvent, DetailedHTMLProps, FocusEvent, FormEvent, InputHTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { ToggletipProps } from '../toggletip
|
|
3
|
-
import { TooltipProps } from '../tooltip
|
|
2
|
+
import { ToggletipProps } from '../toggletip';
|
|
3
|
+
import { TooltipProps } from '../tooltip';
|
|
4
4
|
type PartialInputProps = Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'inputMode' | 'name' | 'value' | 'autoComplete'>;
|
|
5
5
|
export interface TextInputProps extends PartialInputProps {
|
|
6
6
|
ariaDescribedBy?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { ResolvedTheme } from '../../themes
|
|
2
|
+
import { type ResolvedTheme } from '../../themes';
|
|
3
3
|
export interface ThemeWrapperProps {
|
|
4
4
|
/**
|
|
5
5
|
* When true, components are mounted in the Shadow DOM
|
|
@@ -9,6 +9,6 @@ export interface ThemeWrapperProps {
|
|
|
9
9
|
theme?: ResolvedTheme;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* @
|
|
12
|
+
* @internal Use {@link DesignSystem} instead
|
|
13
13
|
*/
|
|
14
14
|
export declare const ThemeWrapper: FunctionComponent<PropsWithChildren<ThemeWrapperProps>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ToastPosition } from './toast-position';
|
|
3
|
-
import { ToastType } from './toast-type';
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import type { ToastPosition } from './toast-position';
|
|
3
|
+
import type { ToastType } from './toast-type';
|
|
4
4
|
interface ToastContainerProps {
|
|
5
5
|
id: string;
|
|
6
6
|
className?: string;
|
|
@@ -8,5 +8,5 @@ interface ToastContainerProps {
|
|
|
8
8
|
message: string;
|
|
9
9
|
position: ToastPosition;
|
|
10
10
|
}
|
|
11
|
-
export declare const ToastContainer:
|
|
11
|
+
export declare const ToastContainer: FC<ToastContainerProps>;
|
|
12
12
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
import { ToastPosition } from './toast-position';
|
|
3
3
|
interface ToastProps {
|
|
4
4
|
position: ToastPosition;
|
|
5
5
|
}
|
|
6
|
-
export declare const ToastsContainer:
|
|
6
|
+
export declare const ToastsContainer: FC<ToastProps>;
|
|
7
7
|
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type FC } from 'react';
|
|
2
2
|
export type LabelPosition = 'left' | 'right';
|
|
3
|
-
interface ToggleSwitchProps {
|
|
3
|
+
export interface ToggleSwitchProps {
|
|
4
4
|
label: string;
|
|
5
5
|
labelPosition?: LabelPosition;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
toggled: boolean;
|
|
8
8
|
onToggle(value: boolean): void;
|
|
9
9
|
}
|
|
10
|
-
export declare const ToggleSwitch:
|
|
11
|
-
export {};
|
|
10
|
+
export declare const ToggleSwitch: FC<ToggleSwitchProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import { IconName } from '../icon
|
|
2
|
+
import { type IconName } from '../icon';
|
|
3
3
|
type Size = 'small' | 'medium';
|
|
4
4
|
type MaxWidth = 'small' | 'medium' | 'large';
|
|
5
5
|
export type ToggletipPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NavItemProps } from '../dropdown-menu/list-items';
|
|
1
|
+
import { type FC } from 'react';
|
|
2
|
+
import { type NavItemProps } from '../dropdown-menu/list-items';
|
|
3
3
|
export declare function getFirstFocusableItem(options: NavItemProps[]): NavItemProps | undefined;
|
|
4
|
-
interface UserProfileProps {
|
|
4
|
+
export interface UserProfileProps {
|
|
5
5
|
/**
|
|
6
6
|
* Sets nav's description
|
|
7
7
|
* @default 'User menu'
|
|
@@ -23,5 +23,4 @@ interface UserProfileProps {
|
|
|
23
23
|
userEmail?: string;
|
|
24
24
|
onMenuVisibilityChanged?(isOpen: boolean): void;
|
|
25
25
|
}
|
|
26
|
-
export declare const UserProfile:
|
|
27
|
-
export {};
|
|
26
|
+
export declare const UserProfile: FC<UserProfileProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResolvedTheme } from '../themes
|
|
1
|
+
import { ResolvedTheme } from '../themes';
|
|
2
2
|
export declare function useTheme(): ResolvedTheme;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ToastContextProps } from '../components/toast/toast-context';
|
|
1
|
+
import { type ToastContextProps } from '../components/toast/toast-context';
|
|
2
2
|
export declare function useToasts(): ToastContextProps;
|