@equisoft/design-elements-react 9.11.5-snapshot.20260223051416 → 9.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +2388 -2364
- package/dist/bundle.js.LICENSE.txt +12 -18
- 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 +2 -1
- package/dist/components/avatar/avatar.d.ts +6 -17
- package/dist/components/badge/badge.d.ts +3 -2
- package/dist/components/bento-menu-button/bento-menu-button.d.ts +2 -1
- package/dist/components/bento-menu-button/product-group.d.ts +1 -1
- package/dist/components/breadcrumb/breadcrumb.d.ts +5 -4
- 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 +1 -10
- package/dist/components/buttons/abstract/{styles.d.ts → styled.d.ts} +4 -3
- package/dist/components/buttons/abstract/types.d.ts +7 -0
- package/dist/components/buttons/button.d.ts +1 -41
- package/dist/components/buttons/icon-button.d.ts +6 -4
- package/dist/components/buttons/index.d.ts +5 -5
- package/dist/components/buttons/search-button.d.ts +3 -3
- package/dist/components/buttons/styled.d.ts +7 -7
- package/dist/components/buttons/toggle-button.d.ts +12 -12
- package/dist/components/buttons/types.d.ts +40 -0
- package/dist/components/card/card.d.ts +3 -2
- package/dist/components/card-link/card-link.d.ts +4 -3
- package/dist/components/checkbox-group/checkbox-group.d.ts +11 -11
- package/dist/components/chooser-button/chooser-button.d.ts +2 -1
- package/dist/components/chooser-button/styles/choose.d.ts +1 -0
- package/dist/components/chooser-button-group/chooser-button-group.d.ts +4 -3
- package/dist/components/combobox/combobox.d.ts +10 -21
- package/dist/components/date-picker/calendar-header.d.ts +3 -3
- package/dist/components/date-picker/date-picker.d.ts +5 -9
- package/dist/components/date-picker/utils/datepicker-utils.d.ts +1 -1
- package/dist/components/design-system.d.ts +3 -4
- package/dist/components/device-context-provider/device-context-provider.d.ts +2 -2
- package/dist/components/disclosure/disclosure.d.ts +12 -12
- package/dist/components/dropdown-list/dropdown-list-option.d.ts +4 -0
- package/dist/components/dropdown-list/dropdown-list.d.ts +9 -8
- package/dist/components/dropdown-list/utils/dropdown-list-utils.d.ts +9 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +2 -1
- 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 +15 -26
- package/dist/components/dropdown-navigation/dropdown-navigation.d.ts +6 -5
- package/dist/components/error-summary/error-summary.d.ts +6 -5
- package/dist/components/external-link/external-link.d.ts +3 -3
- package/dist/components/feedbacks/invalid-field.d.ts +4 -3
- package/dist/components/field-container/field-container.d.ts +2 -2
- package/dist/components/fieldset/fieldset.d.ts +1 -16
- package/dist/components/fieldset/index.d.ts +1 -2
- package/dist/components/fieldset/legend.d.ts +2 -12
- package/dist/components/fieldset/styled.d.ts +9 -0
- package/dist/components/fieldset/types.d.ts +17 -0
- package/dist/components/global-banner/global-banner.d.ts +2 -1
- package/dist/components/global-header/global-header.d.ts +3 -2
- package/dist/components/global-navigation/global-navigation.d.ts +20 -0
- package/dist/components/heading/heading.d.ts +4 -4
- package/dist/components/icon/icon.d.ts +96 -7
- package/dist/components/internationalization-provider/internationalization-provider.d.ts +1 -1
- package/dist/components/label/label.d.ts +5 -5
- package/dist/components/legend/legend.d.ts +12 -0
- package/dist/components/link/index.d.ts +0 -1
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/types.d.ts +5 -5
- package/dist/components/listbox/listbox-option.d.ts +5 -0
- package/dist/components/listbox/listbox.d.ts +6 -36
- package/dist/components/lozenge/lozenge.d.ts +4 -3
- package/dist/components/menu/menu.d.ts +5 -3
- package/dist/components/menu-button/menu-button.d.ts +4 -4
- package/dist/components/modal/dialog/modal-dialog.d.ts +3 -20
- package/dist/components/modal/dialog/styled.d.ts +3 -3
- package/dist/components/modal/dialog/types.d.ts +19 -0
- package/dist/components/modal/index.d.ts +0 -4
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/styled.d.ts +1 -1
- package/dist/components/modal/types.d.ts +0 -2
- package/dist/components/modal/use-modal.d.ts +2 -1
- package/dist/components/money-input/money-input.d.ts +3 -3
- 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/nav-list/nav-list.d.ts +1 -0
- package/dist/components/numeric-input/numeric-input.d.ts +5 -5
- package/dist/components/pagination/pagination.d.ts +4 -3
- package/dist/components/pagination/util/pagination-util.d.ts +2 -1
- package/dist/components/password-creation-input/password-creation-input.d.ts +4 -3
- 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/password-input.d.ts +4 -3
- package/dist/components/phone-input/phone-input.d.ts +4 -3
- package/dist/components/progress-circle/circle.d.ts +9 -0
- package/dist/components/progress-circle/progress-circle.d.ts +12 -0
- package/dist/components/progress-circular/progress-circular.d.ts +2 -2
- package/dist/components/progress-indicator/bar.d.ts +9 -0
- package/dist/components/progress-indicator/progress-indicator.d.ts +11 -3
- package/dist/components/progress-tracker/progress-tracker.d.ts +4 -3
- package/dist/components/radio-button/radio-button.d.ts +2 -1
- package/dist/components/radio-button/radio-input.d.ts +2 -1
- package/dist/components/radio-button-group/radio-button-group.d.ts +9 -8
- package/dist/components/radio-card-group/radio-card-group.d.ts +4 -3
- 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/route-link.d.ts +5 -5
- package/dist/components/screen-reader-only-text/ScreenReaderOnlyText.d.ts +4 -3
- package/dist/components/search/search-contextual.d.ts +2 -1
- 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/sectional-banner.d.ts +6 -5
- package/dist/components/segmented-control/segmented-control.d.ts +5 -4
- package/dist/components/shadow-wrapper/shadow-wrapper.d.ts +2 -1
- package/dist/components/side-drawer/side-drawer.d.ts +1 -1
- package/dist/components/skip-link/skip-link.d.ts +2 -2
- 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 +6 -0
- package/dist/components/status/status.d.ts +9 -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 +2 -3
- 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 +3 -6
- package/dist/components/table/types.d.ts +3 -3
- package/dist/components/tabs/tab-button.d.ts +15 -1
- package/dist/components/tabs/tab-panel.d.ts +9 -2
- package/dist/components/tabs/tabs.d.ts +7 -7
- package/dist/components/tag/tag.d.ts +3 -3
- package/dist/components/tag/toggle-tag.d.ts +1 -1
- package/dist/components/text-area/text-area.d.ts +4 -4
- package/dist/components/text-input/index.d.ts +2 -4
- 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/theme-wrapper.d.ts +2 -2
- 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/toggle-switch.d.ts +4 -3
- package/dist/components/toggletip/toggletip.d.ts +1 -1
- package/dist/components/user-profile/user-profile.d.ts +5 -4
- package/dist/components/visually-hidden/visuallyhidden.d.ts +2 -0
- package/dist/hooks/use-list-select.d.ts +1 -3
- package/dist/hooks/use-scroll-into-view.d.ts +1 -2
- 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/i18n/translations.d.ts +0 -22
- package/dist/index.d.ts +82 -2
- package/dist/theme.js +1 -1
- package/dist/themes/build-theme.d.ts +1 -1
- package/dist/themes/index.d.ts +0 -1
- package/dist/themes/theme.d.ts +8 -13
- package/dist/themes/tokens/alias-tokens.d.ts +51 -195
- package/dist/themes/tokens/component/accordion-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/avatar-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/badge-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/bento-menu-button-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/breadcrumb-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/button-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/card-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/carousel-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/checkbox-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/chooser-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/combobox-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/datepicker-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/disclosure-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/dropdown-list-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/dropdown-menu-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/field-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/focus-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/global-banner-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/global-header-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/global-navigation-tokens.d.ts +8 -0
- package/dist/themes/tokens/component/heading-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/label-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/legend-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/link-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/listbox-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/lozenge-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/menu-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/modal-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/nav-list-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/numeric-input-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/pagination-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/password-input-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/phone-input-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/progress-circular-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/progress-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/radio-button-group-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/radio-card-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/search-input-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/sectional-banner-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/segmented-control-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/side-drawer-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/slider-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/spinner-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/status-tokens.d.ts +8 -0
- package/dist/themes/tokens/component/stepper-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/tab-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/table-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/tag-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/text-area-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/text-input-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/toast-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/toggle-button-tokens.d.ts +7 -2
- package/dist/themes/tokens/component/toggle-switch-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/toggletip-tokens.d.ts +8 -3
- package/dist/themes/tokens/component/tooltip-tokens.d.ts +8 -3
- package/dist/themes/tokens/component-tokens.d.ts +66 -738
- package/dist/themes/tokens/index.d.ts +0 -1
- package/dist/themes/tokens/ref/color-utility-tokens.d.ts +6 -0
- package/dist/themes/tokens/ref/palette-tokens.d.ts +6 -3
- package/dist/themes/tokens/ref/text-attributes-tokens.d.ts +6 -0
- package/dist/themes/tokens/ref-tokens.d.ts +9 -209
- package/dist/utility-types.d.ts +1 -0
- package/dist/utils/array.d.ts +0 -1
- package/dist/utils/component-classes.d.ts +0 -1
- package/dist/utils/css-state.d.ts +1 -4
- package/dist/utils/dom.d.ts +1 -1
- package/package.json +62 -61
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/badge/badge-classes.d.ts +0 -5
- package/dist/components/badge/index.d.ts +0 -3
- package/dist/components/bento-menu-button/index.d.ts +0 -3
- package/dist/components/breadcrumb/index.d.ts +0 -2
- package/dist/components/buttons/abstract/index.d.ts +0 -2
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card-link/index.d.ts +0 -2
- package/dist/components/carousel/index.d.ts +0 -2
- package/dist/components/checkbox/index.d.ts +0 -2
- package/dist/components/checkbox-group/index.d.ts +0 -2
- package/dist/components/chooser-button/chooser-label.d.ts +0 -1
- package/dist/components/chooser-button/index.d.ts +0 -2
- package/dist/components/chooser-button-group/index.d.ts +0 -2
- package/dist/components/combobox/index.d.ts +0 -2
- package/dist/components/date-picker/index.d.ts +0 -3
- package/dist/components/date-picker/utils/index.d.ts +0 -1
- package/dist/components/device-context-provider/index.d.ts +0 -2
- package/dist/components/disclosure/index.d.ts +0 -2
- package/dist/components/dropdown-list/index.d.ts +0 -2
- package/dist/components/dropdown-menu/index.d.ts +0 -3
- package/dist/components/dropdown-menu-button/dropdown-menu-button-classes.d.ts +0 -7
- package/dist/components/dropdown-menu-button/index.d.ts +0 -3
- package/dist/components/dropdown-navigation/index.d.ts +0 -2
- package/dist/components/error-summary/index.d.ts +0 -2
- package/dist/components/external-link/index.d.ts +0 -2
- package/dist/components/feedbacks/index.d.ts +0 -2
- package/dist/components/field-container/index.d.ts +0 -2
- package/dist/components/filters/filter-multi.d.ts +0 -16
- package/dist/components/filters/filter-option.d.ts +0 -5
- package/dist/components/filters/filter-single.d.ts +0 -18
- package/dist/components/filters/index.d.ts +0 -5
- package/dist/components/filters/internal/clear-filters.d.ts +0 -6
- package/dist/components/filters/internal/filter-dropdown-button.d.ts +0 -13
- package/dist/components/filters/internal/list-container.d.ts +0 -18
- package/dist/components/filters/internal/use-list-filter.d.ts +0 -15
- package/dist/components/filters/internal/use.search.d.ts +0 -11
- package/dist/components/global-banner/index.d.ts +0 -2
- package/dist/components/global-header/index.d.ts +0 -3
- package/dist/components/heading/index.d.ts +0 -2
- package/dist/components/icon/index.d.ts +0 -2
- package/dist/components/index.d.ts +0 -74
- package/dist/components/internationalization-provider/index.d.ts +0 -2
- package/dist/components/label/index.d.ts +0 -2
- package/dist/components/listbox/index.d.ts +0 -2
- package/dist/components/listbox/listbox-classes.d.ts +0 -6
- package/dist/components/listbox/listbox-tag.d.ts +0 -18
- package/dist/components/listbox/utils/index.d.ts +0 -1
- package/dist/components/listbox/utils/listbox-utils.d.ts +0 -36
- package/dist/components/lozenge/index.d.ts +0 -2
- package/dist/components/menu/index.d.ts +0 -2
- package/dist/components/menu-button/index.d.ts +0 -2
- package/dist/components/modal/dialog/index.d.ts +0 -2
- package/dist/components/nav-list/index.d.ts +0 -3
- package/dist/components/pagination/index.d.ts +0 -2
- package/dist/components/pagination/util/index.d.ts +0 -1
- package/dist/components/password-creation-input/index.d.ts +0 -4
- package/dist/components/password-input/index.d.ts +0 -2
- package/dist/components/phone-input/index.d.ts +0 -2
- package/dist/components/progress-circular/index.d.ts +0 -2
- package/dist/components/progress-indicator/index.d.ts +0 -1
- package/dist/components/progress-tracker/index.d.ts +0 -2
- package/dist/components/radio-button/index.d.ts +0 -2
- package/dist/components/radio-button-group/index.d.ts +0 -2
- package/dist/components/radio-card-group/index.d.ts +0 -4
- package/dist/components/route-link/index.d.ts +0 -2
- package/dist/components/route-link/styles/index.d.ts +0 -1
- package/dist/components/screen-reader-only-text/index.d.ts +0 -2
- package/dist/components/search/index.d.ts +0 -4
- package/dist/components/sectional-banner/index.d.ts +0 -2
- package/dist/components/segmented-control/index.d.ts +0 -2
- package/dist/components/shadow-wrapper/index.d.ts +0 -2
- package/dist/components/side-drawer/index.d.ts +0 -2
- package/dist/components/skip-link/index.d.ts +0 -2
- package/dist/components/slider/index.d.ts +0 -2
- package/dist/components/spinner/index.d.ts +0 -5
- package/dist/components/stepper-input/index.d.ts +0 -2
- package/dist/components/table/table-caption.d.ts +0 -14
- package/dist/components/table/utils/index.d.ts +0 -1
- package/dist/components/tabs/index.d.ts +0 -2
- package/dist/components/tabs/tabs-classes.d.ts +0 -5
- package/dist/components/tabs/types.d.ts +0 -30
- package/dist/components/tag/index.d.ts +0 -4
- package/dist/components/text-area/index.d.ts +0 -2
- package/dist/components/text-input/styles/index.d.ts +0 -1
- package/dist/components/theme-wrapper/index.d.ts +0 -2
- package/dist/components/toast/index.d.ts +0 -3
- package/dist/components/toggle-switch/index.d.ts +0 -2
- package/dist/components/toggletip/index.d.ts +0 -2
- package/dist/components/tooltip/index.d.ts +0 -2
- package/dist/components/user-profile/index.d.ts +0 -2
- package/dist/components/view-control/index.d.ts +0 -3
- package/dist/components/view-control/internal/view-control-dropdown-button.d.ts +0 -10
- package/dist/components/view-control/view-control-option.d.ts +0 -7
- package/dist/components/view-control/view-control.d.ts +0 -17
- package/dist/components/visually-hidden/index.d.ts +0 -2
- package/dist/components/visually-hidden/visually-hidden.d.ts +0 -3
- package/dist/hooks/use-dropdown/index.d.ts +0 -2
- package/dist/hooks/use-dropdown/use-dropdown.d.ts +0 -20
- package/dist/themes/tokens/alias/color-tokens.d.ts +0 -3
- package/dist/themes/tokens/alias/text-tokens.d.ts +0 -3
- package/dist/themes/tokens/component/caption-tokens.d.ts +0 -3
- package/dist/themes/tokens/component/filter-tokens.d.ts +0 -3
- package/dist/themes/tokens/component/progress-indicator-tokens.d.ts +0 -3
- package/dist/themes/tokens/component/view-control-tokens.d.ts +0 -3
- package/dist/themes/tokens/ref/text-tokens.d.ts +0 -3
- package/dist/themes/tokens/ref/utility-tokens.d.ts +0 -3
- package/dist/themes/tokens/tokens.d.ts +0 -11
- package/dist/utils/css-values/box-shadow.d.ts +0 -11
- package/dist/utils/css-values/box-shadow.test.d.ts +0 -1
- package/dist/utils/css-values/index.d.ts +0 -2
- package/dist/utils/css-values/size.d.ts +0 -5
- package/dist/utils/css-values/size.test.d.ts +0 -1
- package/dist/utils/predicate.d.ts +0 -1
- package/dist/utils/predicate.test.d.ts +0 -1
- package/dist/utils/types.d.ts +0 -5
- /package/dist/components/{listbox/utils/listbox-utils.test.d.ts → dropdown-list/utils/dropdown-list-utils.test.d.ts} +0 -0
- /package/dist/components/visually-hidden/{visually-hidden.style.d.ts → styles/visuallyhidden.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { HTMLProps, ReactNode, VoidFunctionComponent } from 'react';
|
|
2
|
+
import { ToggletipProps } from '../toggletip/toggletip';
|
|
3
|
+
import { TooltipProps } from '../tooltip/tooltip';
|
|
4
|
+
import { UseNumericInputParams } from './use-numeric-input';
|
|
5
5
|
type NativeInputProps = Pick<HTMLProps<HTMLInputElement>, 'disabled' | 'onFocus' | 'placeholder'>;
|
|
6
6
|
export interface NumericInputProps extends NativeInputProps {
|
|
7
7
|
adornment?: ReactNode;
|
|
@@ -26,5 +26,5 @@ export interface NumericInputProps extends NativeInputProps {
|
|
|
26
26
|
validationErrorMessage?: string;
|
|
27
27
|
value?: number | string;
|
|
28
28
|
}
|
|
29
|
-
export declare const NumericInput:
|
|
29
|
+
export declare const NumericInput: VoidFunctionComponent<NumericInputProps>;
|
|
30
30
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
interface PaginationProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
/**
|
|
5
5
|
* Number of results to display per page
|
|
@@ -28,4 +28,5 @@ export interface PaginationProps {
|
|
|
28
28
|
*/
|
|
29
29
|
activePage?: number;
|
|
30
30
|
}
|
|
31
|
-
export declare const Pagination:
|
|
31
|
+
export declare const Pagination: VoidFunctionComponent<PaginationProps>;
|
|
32
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
1
|
+
import { ChangeEvent, VoidFunctionComponent } from 'react';
|
|
2
2
|
import { ValidationCondition } from './validation-condition';
|
|
3
|
-
|
|
3
|
+
interface PasswordCreationInputProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
id?: string;
|
|
6
6
|
onChange(newPassword: string, isValid: boolean, event: ChangeEvent<HTMLInputElement>): void;
|
|
7
7
|
validations?: ValidationCondition[];
|
|
8
8
|
}
|
|
9
|
-
export declare const PasswordCreationInput:
|
|
9
|
+
export declare const PasswordCreationInput: VoidFunctionComponent<PasswordCreationInputProps>;
|
|
10
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
interface PasswordConditionProps {
|
|
3
3
|
label: string;
|
|
4
4
|
isEmpty: boolean;
|
|
5
5
|
isValid: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const PasswordRule:
|
|
7
|
+
export declare const PasswordRule: VoidFunctionComponent<PasswordConditionProps>;
|
|
8
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
import { PasswordStrengthEnum } from './password-strength.enum';
|
|
3
3
|
interface PasswordStrengthContainerProps {
|
|
4
4
|
strength: PasswordStrengthEnum;
|
|
5
5
|
id: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const PasswordStrengthContainer:
|
|
7
|
+
export declare const PasswordStrengthContainer: VoidFunctionComponent<PasswordStrengthContainerProps>;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
import { PasswordStrengthEnum } from './password-strength.enum';
|
|
3
3
|
interface PasswordStrengthMeterProps {
|
|
4
4
|
strength: PasswordStrengthEnum;
|
|
5
5
|
}
|
|
6
|
-
export declare const PasswordStrengthMeter:
|
|
6
|
+
export declare const PasswordStrengthMeter: VoidFunctionComponent<PasswordStrengthMeterProps>;
|
|
7
7
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
2
|
-
|
|
1
|
+
import { ChangeEvent, VoidFunctionComponent, FocusEvent } from 'react';
|
|
2
|
+
interface PasswordInputProps {
|
|
3
3
|
id?: string;
|
|
4
4
|
name?: string;
|
|
5
5
|
label?: string;
|
|
@@ -14,4 +14,5 @@ export interface PasswordInputProps {
|
|
|
14
14
|
onFocus?(event: FocusEvent<HTMLInputElement>): void;
|
|
15
15
|
}
|
|
16
16
|
export declare const ShowPasswordButton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
-
export declare const PasswordInput:
|
|
17
|
+
export declare const PasswordInput: VoidFunctionComponent<PasswordInputProps>;
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
interface PhoneInputProps {
|
|
3
3
|
pattern: string;
|
|
4
4
|
defaultValue?: string;
|
|
5
5
|
readOnly?: boolean;
|
|
@@ -11,4 +11,5 @@ export interface PhoneInputProps {
|
|
|
11
11
|
id?: string;
|
|
12
12
|
validationErrorMessage?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const PhoneInput:
|
|
14
|
+
export declare const PhoneInput: VoidFunctionComponent<PhoneInputProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
color: string;
|
|
5
|
+
/** Bottom label */
|
|
6
|
+
descriptionLabel?: string;
|
|
7
|
+
percent: number;
|
|
8
|
+
/** Center label */
|
|
9
|
+
resultLabel: string | number;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProgressCircle: VoidFunctionComponent<Props>;
|
|
12
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
declare const sizes: {
|
|
3
3
|
xsmall: number;
|
|
4
4
|
small: number;
|
|
@@ -12,5 +12,5 @@ export interface ProgressCircularProps {
|
|
|
12
12
|
inverted?: boolean;
|
|
13
13
|
value: number;
|
|
14
14
|
}
|
|
15
|
-
export declare const ProgressCircular:
|
|
15
|
+
export declare const ProgressCircular: VoidFunctionComponent<ProgressCircularProps>;
|
|
16
16
|
export {};
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { ReactText, VoidFunctionComponent } from 'react';
|
|
2
|
+
interface Props {
|
|
3
3
|
className?: string;
|
|
4
|
+
/** [0 - 100] */
|
|
5
|
+
percent: number;
|
|
6
|
+
color: string;
|
|
7
|
+
/** End label */
|
|
8
|
+
resultLabel: ReactText;
|
|
9
|
+
/** Top label */
|
|
10
|
+
descriptionLabel?: string;
|
|
4
11
|
}
|
|
5
|
-
export declare const ProgressIndicator:
|
|
12
|
+
export declare const ProgressIndicator: VoidFunctionComponent<Props>;
|
|
13
|
+
export {};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
export interface ProgressTrackerStep {
|
|
3
3
|
href?: string;
|
|
4
4
|
label: string;
|
|
5
5
|
completion?: 'completed' | 'uncompleted';
|
|
6
6
|
onClick?: (stepNumber: number) => void;
|
|
7
7
|
}
|
|
8
|
-
|
|
8
|
+
interface ProgressTrackerProps {
|
|
9
9
|
ariaLabel?: string;
|
|
10
10
|
className?: string;
|
|
11
11
|
linear?: boolean;
|
|
12
12
|
steps: ProgressTrackerStep[];
|
|
13
13
|
value: number;
|
|
14
14
|
}
|
|
15
|
-
export declare const ProgressTracker:
|
|
15
|
+
export declare const ProgressTracker: VoidFunctionComponent<ProgressTrackerProps>;
|
|
16
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, FunctionComponent } from 'react';
|
|
2
|
-
|
|
2
|
+
interface RadioButtonProps {
|
|
3
3
|
ariaLabel?: string;
|
|
4
4
|
ariaLabelledBy?: string[];
|
|
5
5
|
checked?: boolean;
|
|
@@ -13,3 +13,4 @@ export interface RadioButtonProps {
|
|
|
13
13
|
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
14
14
|
}
|
|
15
15
|
export declare const RadioButton: FunctionComponent<RadioButtonProps>;
|
|
16
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, FocusEvent } from 'react';
|
|
2
|
-
|
|
2
|
+
interface RadioInputProps {
|
|
3
3
|
ariaLabel?: string;
|
|
4
4
|
ariaLabelledBy?: string[];
|
|
5
5
|
checked?: boolean;
|
|
@@ -14,3 +14,4 @@ export interface RadioInputProps {
|
|
|
14
14
|
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
15
15
|
}
|
|
16
16
|
export declare const RadioInput: import("react").ForwardRefExoticComponent<RadioInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
17
|
+
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
2
|
-
import { ToggletipProps } from '../toggletip';
|
|
3
|
-
import { TooltipProps } from '../tooltip';
|
|
4
|
-
|
|
1
|
+
import { ChangeEvent, VoidFunctionComponent } from 'react';
|
|
2
|
+
import { ToggletipProps } from '../toggletip/toggletip';
|
|
3
|
+
import { TooltipProps } from '../tooltip/tooltip';
|
|
4
|
+
interface RadioButtonProps {
|
|
5
5
|
label: string;
|
|
6
6
|
value: string;
|
|
7
7
|
id?: string;
|
|
8
8
|
defaultChecked?: boolean;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
content?: {
|
|
11
|
-
element: ReactElement;
|
|
11
|
+
element: React.ReactElement;
|
|
12
12
|
maxHeight?: number;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
interface RadioButtonGroupProps {
|
|
16
16
|
ariaLabel?: string;
|
|
17
17
|
ariaLabelledBy?: string[];
|
|
18
18
|
className?: string;
|
|
@@ -23,9 +23,10 @@ export interface RadioButtonGroupProps {
|
|
|
23
23
|
/** Sets the name property of all buttons */
|
|
24
24
|
groupName: string;
|
|
25
25
|
checkedValue?: string;
|
|
26
|
-
buttons:
|
|
26
|
+
buttons: RadioButtonProps[];
|
|
27
27
|
/** Duration in milliseconds */
|
|
28
28
|
transitionDuration?: number;
|
|
29
29
|
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
30
30
|
}
|
|
31
|
-
export declare const RadioButtonGroup:
|
|
31
|
+
export declare const RadioButtonGroup: VoidFunctionComponent<RadioButtonGroupProps>;
|
|
32
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement, VoidFunctionComponent } from 'react';
|
|
2
2
|
import { RadioCardProps } from './radio-card';
|
|
3
|
-
|
|
3
|
+
interface RadioCardGroupProps {
|
|
4
4
|
children: ReactElement<RadioCardProps> | ReactElement<RadioCardProps>[];
|
|
5
5
|
className?: string;
|
|
6
6
|
label?: string;
|
|
7
7
|
orientation?: 'horizontal' | 'vertical';
|
|
8
8
|
}
|
|
9
|
-
export declare const RadioCardGroup:
|
|
9
|
+
export declare const RadioCardGroup: VoidFunctionComponent<RadioCardGroupProps>;
|
|
10
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
1
|
+
import { ChangeEvent, ReactElement, ReactNode, VoidFunctionComponent } from 'react';
|
|
2
2
|
export interface RadioCardProps {
|
|
3
3
|
checked?: boolean;
|
|
4
4
|
children?: ReactNode;
|
|
@@ -12,5 +12,5 @@ export interface RadioCardProps {
|
|
|
12
12
|
value: string;
|
|
13
13
|
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
14
14
|
}
|
|
15
|
-
export declare const RadioCard:
|
|
15
|
+
export declare const RadioCard: VoidFunctionComponent<RadioCardProps>;
|
|
16
16
|
export declare const isRadioCard: (child: unknown) => child is ReactElement<RadioCardProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef,
|
|
2
|
-
import { Link as ReactRouterLink
|
|
3
|
-
import { IconName } from '../icon';
|
|
1
|
+
import { ComponentPropsWithoutRef, MouseEvent, VoidFunctionComponent } from 'react';
|
|
2
|
+
import { NavLink, Link as ReactRouterLink } from 'react-router-dom';
|
|
3
|
+
import { IconName } from '../icon/icon';
|
|
4
4
|
type RouterLinkProps = Pick<ComponentPropsWithoutRef<typeof NavLink>, 'end'>;
|
|
5
|
-
|
|
5
|
+
interface LinkProps extends RouterLinkProps {
|
|
6
6
|
className?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
href: string;
|
|
@@ -14,5 +14,5 @@ export interface RouteLinkProps extends RouterLinkProps {
|
|
|
14
14
|
/**
|
|
15
15
|
* @deprecated This component is deprecated and will be removed in future releases. Use Link instead.
|
|
16
16
|
*/
|
|
17
|
-
export declare const RouteLink:
|
|
17
|
+
export declare const RouteLink: VoidFunctionComponent<LinkProps>;
|
|
18
18
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
interface Props {
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const ScreenReaderOnlyText:
|
|
5
|
+
export declare const ScreenReaderOnlyText: VoidFunctionComponent<Props>;
|
|
6
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
1
2
|
import { CommonSearchProps } from './search-input';
|
|
2
3
|
export type SearchContextualProps = CommonSearchProps;
|
|
3
|
-
export declare const SearchContextual:
|
|
4
|
+
export declare const SearchContextual: VoidFunctionComponent<SearchContextualProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
import { CommonSearchProps } from './search-input';
|
|
3
3
|
export type SearchGlobalProps = CommonSearchProps;
|
|
4
|
-
export declare const SearchGlobal:
|
|
4
|
+
export declare const SearchGlobal: VoidFunctionComponent<SearchGlobalProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeEvent, FocusEvent, VoidFunctionComponent } from 'react';
|
|
2
2
|
export interface CommonSearchProps {
|
|
3
3
|
id?: string;
|
|
4
4
|
disabled?: boolean;
|
|
@@ -16,4 +16,4 @@ export interface SearchInputProps extends CommonSearchProps {
|
|
|
16
16
|
hasButton?: boolean;
|
|
17
17
|
hasIcon?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare const SearchInput:
|
|
19
|
+
export declare const SearchInput: VoidFunctionComponent<SearchInputProps>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ReactNode, VoidFunctionComponent } from 'react';
|
|
2
|
+
import { Tag } from '../heading/heading';
|
|
3
3
|
export type SectionalBannerType = 'neutral' | 'info' | 'discovery' | 'success' | 'warning' | 'alert';
|
|
4
|
-
|
|
4
|
+
interface SectionalBannerProps {
|
|
5
5
|
buttonLabel?: string;
|
|
6
6
|
className?: string;
|
|
7
7
|
children: ReactNode;
|
|
8
8
|
focusable?: boolean;
|
|
9
|
-
headingTag?:
|
|
9
|
+
headingTag?: Tag;
|
|
10
10
|
id?: string;
|
|
11
11
|
/** Sets custom message title */
|
|
12
12
|
title?: string;
|
|
@@ -15,4 +15,5 @@ export interface SectionalBannerProps {
|
|
|
15
15
|
onButtonClicked?(): void;
|
|
16
16
|
onDismiss?(): void;
|
|
17
17
|
}
|
|
18
|
-
export declare const SectionalBanner:
|
|
18
|
+
export declare const SectionalBanner: VoidFunctionComponent<SectionalBannerProps>;
|
|
19
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { MouseEvent, VoidFunctionComponent } from 'react';
|
|
2
|
+
import { IconName } from '../icon/icon';
|
|
3
|
+
interface SegmentedControlProps {
|
|
4
4
|
/**
|
|
5
5
|
* Takes an array of objects containing all the buttons needed
|
|
6
6
|
*/
|
|
@@ -20,4 +20,5 @@ export interface SegmentedControlProps {
|
|
|
20
20
|
toggleable?: boolean;
|
|
21
21
|
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
22
22
|
}
|
|
23
|
-
export declare const SegmentedControl:
|
|
23
|
+
export declare const SegmentedControl: VoidFunctionComponent<SegmentedControlProps>;
|
|
24
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
interface ShadowWrapperProps {
|
|
3
3
|
/**
|
|
4
4
|
* Sets host element tag
|
|
5
5
|
* @default div
|
|
@@ -7,3 +7,4 @@ export 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 { MouseEvent, VoidFunctionComponent } 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: VoidFunctionComponent<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/toggletip';
|
|
3
|
+
import { TooltipProps } from '../tooltip/tooltip';
|
|
4
4
|
type InferValueType<T> = T extends number ? number : number[];
|
|
5
|
-
|
|
5
|
+
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 { FunctionComponent } from 'react';
|
|
2
|
+
import { SliderValueLabelSlotProps } from '@mui/base/Slider';
|
|
3
3
|
export declare const ValueTooltipContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export declare const ValueTooltip: FunctionComponent<SliderValueLabelSlotProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SVGProps, VFC } from 'react';
|
|
2
|
+
export declare const StyledSpinner: import("styled-components").StyledComponent<VFC<SVGProps<SVGSVGElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export interface SpinnerProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Spinner: VFC<SpinnerProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
export type StatusType = 'enabled' | 'disabled' | 'blocked';
|
|
3
|
+
interface Props {
|
|
4
|
+
className?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: StatusType;
|
|
7
|
+
}
|
|
8
|
+
export declare const Status: VoidFunctionComponent<Props>;
|
|
9
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { VoidFunctionComponent } 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: VoidFunctionComponent<StepperButtonsProps>;
|
|
9
9
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ToggletipProps } from '../toggletip';
|
|
3
|
-
import { TooltipProps } from '../tooltip';
|
|
1
|
+
import { DetailedHTMLProps, InputHTMLAttributes, VoidFunctionComponent } from 'react';
|
|
2
|
+
import { ToggletipProps } from '../toggletip/toggletip';
|
|
3
|
+
import { TooltipProps } from '../tooltip/tooltip';
|
|
4
4
|
type PartialStepperInputProps = Pick<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'disabled' | 'onFocus' | 'onBlur' | 'step'>;
|
|
5
5
|
type Value = undefined | number | null;
|
|
6
|
-
|
|
6
|
+
interface StepperInputProps extends PartialStepperInputProps {
|
|
7
7
|
defaultValue?: number;
|
|
8
8
|
hint?: string;
|
|
9
9
|
id?: string;
|
|
@@ -19,5 +19,5 @@ export 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: VoidFunctionComponent<StepperInputProps>;
|
|
23
23
|
export {};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Table } from './table';
|
|
2
|
-
export type
|
|
3
|
-
export type { TableColumn, TableData } from './types';
|
|
1
|
+
export { Table, type TableProps, type TableRowId } from './table';
|
|
2
|
+
export { type TableData, type TableColumn } from './types';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ColumnSort, Row } from '@tanstack/react-table';
|
|
2
2
|
import { ReactElement } from 'react';
|
|
3
|
-
import { TableCaptionSize } from './table-caption';
|
|
4
3
|
import { type TableColumn } from './types';
|
|
5
4
|
type RowSize = 'small' | 'medium' | 'large';
|
|
6
5
|
export type RowSelectionMode = 'single' | 'multiple';
|
|
@@ -9,14 +8,11 @@ type RowIdField<T> = {
|
|
|
9
8
|
[K in keyof T]: T[K] extends TableRowId ? K : never;
|
|
10
9
|
}[keyof T];
|
|
11
10
|
export interface TableProps<T extends object> {
|
|
12
|
-
ariaLabelledBy?: string;
|
|
13
|
-
ariaDescribedBy?: string;
|
|
14
11
|
ariaLabelledByColumnId?: string;
|
|
15
12
|
data: T[];
|
|
16
13
|
defaultSort?: ColumnSort;
|
|
17
|
-
caption?: string;
|
|
18
|
-
captionSize?: TableCaptionSize;
|
|
19
14
|
columns: TableColumn<T>[];
|
|
15
|
+
excludeGroupsFromSelection?: boolean;
|
|
20
16
|
expandableRows?: 'single' | 'multiple';
|
|
21
17
|
expandChildrenOnRowSelection?: boolean;
|
|
22
18
|
hideSelectAll?: boolean;
|
|
@@ -46,7 +42,8 @@ export interface TableProps<T extends object> {
|
|
|
46
42
|
stickyFooter?: boolean;
|
|
47
43
|
manualSort?: boolean;
|
|
48
44
|
onRowClick?(row: Row<T>): void;
|
|
49
|
-
onSelectedRowIdsChange?(
|
|
45
|
+
onSelectedRowIdsChange?(selectedRows: TableRowId[]): void;
|
|
46
|
+
onSelectedRowsChange?(selectedRows: T[]): void;
|
|
50
47
|
onSort?(sort: ColumnSort | null): void;
|
|
51
48
|
}
|
|
52
49
|
type TableComponent = <T extends object>(props: TableProps<T>) => ReactElement;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Cell, Column, ColumnDef, Header } from '@tanstack/react-table';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
3
|
export type TableData<TData> = TData & {
|
|
4
4
|
error?: boolean;
|
|
5
5
|
subRows?: TableData<TData>[];
|
|
6
|
-
subContent?: ReactNode;
|
|
6
|
+
subContent?: React.ReactNode;
|
|
7
7
|
};
|
|
8
8
|
export type TableColumn<TData> = ColumnDef<TData> & {
|
|
9
9
|
className?: string;
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { KeyboardEvent } from 'react';
|
|
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
|
+
}
|
|
2
15
|
export declare const TabButton: import("react").ForwardRefExoticComponent<TabButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export {};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
|
|
1
|
+
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
interface TabPanelProps {
|
|
3
|
+
buttonId: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
hidden: boolean;
|
|
6
|
+
id: string;
|
|
7
|
+
global?: boolean;
|
|
8
|
+
}
|
|
3
9
|
export declare const TabPanel: FunctionComponent<PropsWithChildren<TabPanelProps>>;
|
|
10
|
+
export {};
|