@equisoft/design-elements-react 9.9.4 → 9.9.5-snapshot.20250917203919
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 +3149 -3134
- 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/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 +2 -3
- 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/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 +1 -2
- 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 +10 -10
- 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 +1 -2
- package/dist/components/chooser-button-group/index.d.ts +2 -0
- package/dist/components/combobox/combobox.d.ts +4 -5
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/date-picker/calendar-header.d.ts +1 -1
- 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 +3 -3
- package/dist/components/device-context-provider/device-context-provider.d.ts +1 -1
- 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 +7 -4
- 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 +2 -2
- package/dist/components/dropdown-menu/list-items/group-item.d.ts +2 -2
- package/dist/components/dropdown-menu/list-items/index.d.ts +3 -3
- package/dist/components/dropdown-menu/list-items/item-content.d.ts +2 -2
- 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 +7 -8
- 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 +3 -4
- package/dist/components/error-summary/index.d.ts +2 -0
- package/dist/components/external-link/external-link.d.ts +1 -1
- 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 +2 -3
- 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/global-navigation/global-navigation.d.ts +3 -4
- package/dist/components/global-navigation/index.d.ts +2 -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 +1 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/index.d.ts +79 -0
- package/dist/components/internationalization-provider/index.d.ts +2 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/label.d.ts +3 -3
- package/dist/components/legend/index.d.ts +2 -0
- package/dist/components/legend/legend.d.ts +1 -2
- package/dist/components/link/index.d.ts +1 -0
- 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 +19 -2
- 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 +1 -1
- package/dist/components/nav-list/index.d.ts +3 -0
- package/dist/components/nav-list/nav-list-option.d.ts +1 -1
- package/dist/components/numeric-input/numeric-input.d.ts +3 -3
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.d.ts +1 -2
- 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 +1 -2
- package/dist/components/password-input/index.d.ts +2 -0
- package/dist/components/password-input/password-input.d.ts +2 -3
- package/dist/components/phone-input/index.d.ts +2 -0
- package/dist/components/phone-input/phone-input.d.ts +1 -2
- package/dist/components/progress-circle/index.d.ts +2 -0
- package/dist/components/progress-circle/progress-circle.d.ts +2 -3
- package/dist/components/progress-circular/index.d.ts +2 -0
- package/dist/components/progress-indicator/index.d.ts +2 -0
- package/dist/components/progress-indicator/progress-indicator.d.ts +4 -5
- package/dist/components/progress-tracker/index.d.ts +2 -0
- package/dist/components/progress-tracker/progress-tracker.d.ts +1 -2
- 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 +7 -8
- package/dist/components/radio-card-group/index.d.ts +4 -0
- package/dist/components/radio-card-group/radio-card-group.d.ts +1 -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 +4 -4
- package/dist/components/route-link/styles/index.d.ts +1 -0
- package/dist/components/screen-reader-only-text/ScreenReaderOnlyText.d.ts +2 -3
- package/dist/components/screen-reader-only-text/index.d.ts +2 -0
- package/dist/components/search/index.d.ts +4 -0
- package/dist/components/sectional-banner/index.d.ts +2 -0
- package/dist/components/sectional-banner/sectional-banner.d.ts +3 -4
- package/dist/components/segmented-control/index.d.ts +2 -0
- package/dist/components/segmented-control/segmented-control.d.ts +2 -3
- 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/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/index.d.ts +1 -0
- package/dist/components/spinner/spinner.d.ts +1 -2
- package/dist/components/status/index.d.ts +2 -0
- package/dist/components/status/status.d.ts +2 -3
- package/dist/components/stepper-input/index.d.ts +2 -0
- package/dist/components/stepper-input/stepper-input.d.ts +3 -3
- 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 +6 -6
- 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 +2 -2
- 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 +1 -1
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/toast-container.d.ts +2 -2
- package/dist/components/toggle-switch/index.d.ts +2 -0
- package/dist/components/toggle-switch/toggle-switch.d.ts +1 -2
- 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 +2 -3
- 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/global-navigation-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-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/status-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 +704 -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 +63 -67
- 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/modal/dialog/types.d.ts +0 -19
- package/dist/components/visually-hidden/visuallyhidden.d.ts +0 -2
- 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,9 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
1
|
/*!
|
|
8
2
|
Copyright (c) 2015 Jed Watson.
|
|
9
3
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
@@ -11,7 +5,7 @@ object-assign
|
|
|
11
5
|
*/
|
|
12
6
|
|
|
13
7
|
/*!
|
|
14
|
-
react-datepicker
|
|
8
|
+
react-datepicker v8.7.0
|
|
15
9
|
https://github.com/Hacker0x01/react-datepicker
|
|
16
10
|
Released under the MIT License.
|
|
17
11
|
*/
|
|
@@ -55,7 +49,18 @@ object-assign
|
|
|
55
49
|
* @license MIT
|
|
56
50
|
*/
|
|
57
51
|
|
|
58
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* @license React
|
|
54
|
+
* react-dom-server-legacy.browser.production.min.js
|
|
55
|
+
*
|
|
56
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the MIT license found in the
|
|
59
|
+
* LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @license React
|
|
59
64
|
* react-dom-server.browser.production.min.js
|
|
60
65
|
*
|
|
61
66
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -64,7 +69,8 @@ object-assign
|
|
|
64
69
|
* LICENSE file in the root directory of this source tree.
|
|
65
70
|
*/
|
|
66
71
|
|
|
67
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* @license React
|
|
68
74
|
* react-jsx-runtime.production.min.js
|
|
69
75
|
*
|
|
70
76
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type HeadingTag, type HeadingType } from '../heading';
|
|
3
3
|
export interface AccordionItemProps {
|
|
4
4
|
title: string;
|
|
5
5
|
id?: string;
|
|
6
|
-
headingType?:
|
|
7
|
-
headingTag?:
|
|
6
|
+
headingType?: HeadingType | undefined;
|
|
7
|
+
headingTag?: HeadingTag | undefined;
|
|
8
8
|
expanded?: boolean | undefined;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
onToggle?: () => void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { type HeadingTag, type HeadingType } from '../heading';
|
|
3
3
|
export interface ItemsProps {
|
|
4
4
|
title: string;
|
|
5
5
|
content: React.ReactNode | React.ReactElement;
|
|
6
6
|
id?: string;
|
|
7
|
-
headingType?:
|
|
8
|
-
headingTag?:
|
|
7
|
+
headingType?: HeadingType | undefined;
|
|
8
|
+
headingTag?: HeadingTag | undefined;
|
|
9
9
|
expanded?: boolean | undefined;
|
|
10
10
|
disabled?: boolean | undefined;
|
|
11
11
|
buttonRef?: React.RefObject<HTMLButtonElement> | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
type BadgePosition = 'top-right' | 'bottom-right' | 'top-left' | 'bottom-left';
|
|
2
|
+
export type BadgePosition = 'top-right' | 'bottom-right' | 'top-left' | 'bottom-left';
|
|
3
3
|
export declare const BadgeCircle: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
|
|
4
4
|
$animate?: boolean;
|
|
5
5
|
$position: BadgePosition;
|
|
@@ -12,7 +12,7 @@ export declare const BadgeDot: import("styled-components").StyledComponent<"span
|
|
|
12
12
|
$offsetX: number;
|
|
13
13
|
$offsetY: number;
|
|
14
14
|
}, never>;
|
|
15
|
-
interface BadgeProps {
|
|
15
|
+
export interface BadgeProps {
|
|
16
16
|
animate?: boolean;
|
|
17
17
|
className?: string;
|
|
18
18
|
/** The largest value to display, beyond which a + sign is shown */
|
|
@@ -29,4 +29,3 @@ interface BadgeProps {
|
|
|
29
29
|
value: number;
|
|
30
30
|
}
|
|
31
31
|
export declare const Badge: FunctionComponent<PropsWithChildren<BadgeProps>>;
|
|
32
|
-
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
2
|
import { ExternalItemProps, NavItemProps } from '../dropdown-menu/list-items';
|
|
3
3
|
import { ProductGroupProps } from './product-group';
|
|
4
|
-
interface BentoMenuButtonProps {
|
|
4
|
+
export interface BentoMenuButtonProps {
|
|
5
5
|
ariaLabel?: string;
|
|
6
6
|
buttonAriaLabel?: string;
|
|
7
7
|
externalLinks: ExternalItemProps[];
|
|
@@ -14,4 +14,3 @@ interface BentoMenuButtonProps {
|
|
|
14
14
|
title?: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const BentoMenuButton: FunctionComponent<PropsWithChildren<BentoMenuButtonProps>>;
|
|
17
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren, RefObject } from 'react';
|
|
2
|
-
import { NavItemProps } from '../dropdown-menu/list-items';
|
|
2
|
+
import { type NavItemProps } from '../dropdown-menu/list-items';
|
|
3
3
|
export interface ProductGroupProps {
|
|
4
4
|
onClick?(): void;
|
|
5
5
|
firstItemRef?: RefObject<HTMLAnchorElement>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { VoidFunctionComponent } from 'react';
|
|
2
|
-
import { NavListOption } from '../nav-list
|
|
2
|
+
import { type NavListOption } from '../nav-list';
|
|
3
3
|
export type BreadcrumbElement = NavListOption;
|
|
4
|
-
interface BreadcrumbProps {
|
|
4
|
+
export interface BreadcrumbProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
history: BreadcrumbElement[];
|
|
7
7
|
}
|
|
8
8
|
export declare const Breadcrumb: VoidFunctionComponent<BreadcrumbProps>;
|
|
9
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Overflow } from '../../hooks/use-overflow';
|
|
2
|
-
import { NavListOption } from '../nav-list
|
|
1
|
+
import { type Overflow } from '../../hooks/use-overflow';
|
|
2
|
+
import { type NavListOption } from '../nav-list';
|
|
3
3
|
interface UseBreadcrumbLayoutEffectRequest {
|
|
4
4
|
overflow: Overflow;
|
|
5
5
|
shownRoutes: NavListOption[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { NavListOption } from '../nav-list
|
|
3
|
-
import { Overflow } from './use-breadcrumb-overflow';
|
|
2
|
+
import { type NavListOption } from '../nav-list';
|
|
3
|
+
import { type Overflow } from './use-breadcrumb-overflow';
|
|
4
4
|
interface BreadcrumbRoutes {
|
|
5
5
|
shownRoutes: NavListOption[];
|
|
6
6
|
hiddenRoutes: NavListOption[];
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { type BaseButtonStyles } from './styles';
|
|
3
|
+
export declare const StyledAbstractButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, BaseButtonStyles, never>;
|
|
4
|
+
export type ButtonSize = 'small' | 'medium';
|
|
5
|
+
export interface AbstractButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
focusable?: boolean;
|
|
7
|
+
isMobile: boolean;
|
|
8
|
+
size?: ButtonSize;
|
|
9
|
+
tabIndex?: number;
|
|
10
|
+
}
|
|
2
11
|
export declare const AbstractButton: import("react").ForwardRefExoticComponent<AbstractButtonProps & {
|
|
3
12
|
children?: import("react").ReactNode | undefined;
|
|
4
13
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { FlattenInterpolation, ThemeProps } from 'styled-components';
|
|
2
|
-
import { ResolvedTheme } from '../../../themes
|
|
3
|
-
import {
|
|
2
|
+
import type { ResolvedTheme } from '../../../themes';
|
|
3
|
+
import type { ButtonSize } from './abstract-button';
|
|
4
4
|
export interface BaseButtonStyles {
|
|
5
|
-
$size?:
|
|
5
|
+
$size?: ButtonSize;
|
|
6
6
|
$isMobile: boolean;
|
|
7
7
|
$focusable?: boolean;
|
|
8
8
|
$inverted?: boolean;
|
|
9
9
|
}
|
|
10
10
|
export declare const getBaseButtonStyles: ({ $size, $isMobile, $focusable, $inverted, }: BaseButtonStyles) => FlattenInterpolation<ThemeProps<ResolvedTheme>>;
|
|
11
|
-
export declare const StyledAbstractButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, BaseButtonStyles, never>;
|
|
@@ -1,4 +1,44 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FocusEventHandler, type KeyboardEventHandler, type MouseEventHandler } from 'react';
|
|
2
|
+
import { type IconName } from '../icon';
|
|
3
|
+
import { type ButtonSize } from './abstract';
|
|
4
|
+
export type Type = 'submit' | 'button' | 'reset';
|
|
5
|
+
export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive-primary' | 'destructive-secondary' | 'destructive-tertiary';
|
|
6
|
+
export interface ButtonProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
autofocus?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Visual style
|
|
11
|
+
* @default primary
|
|
12
|
+
*/
|
|
13
|
+
buttonType: ButtonType;
|
|
14
|
+
className?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
focusable?: boolean;
|
|
20
|
+
inverted?: boolean;
|
|
21
|
+
label?: string;
|
|
22
|
+
loading?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* @default Loading...
|
|
25
|
+
*/
|
|
26
|
+
loadingLabel?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Size variant
|
|
29
|
+
* @default medium
|
|
30
|
+
*/
|
|
31
|
+
size?: ButtonSize;
|
|
32
|
+
tabIndex?: number;
|
|
33
|
+
title?: string;
|
|
34
|
+
type?: Type;
|
|
35
|
+
leftIconName?: IconName;
|
|
36
|
+
rightIconName?: IconName;
|
|
37
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
38
|
+
onFocus?: FocusEventHandler<HTMLButtonElement>;
|
|
39
|
+
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
40
|
+
onKeyDown?: KeyboardEventHandler<HTMLButtonElement>;
|
|
41
|
+
}
|
|
2
42
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & {
|
|
3
43
|
children?: import("react").ReactNode | undefined;
|
|
4
44
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { AvatarProps } from '../avatar
|
|
3
|
-
import { IconName, IconProps } from '../icon
|
|
4
|
-
import {
|
|
5
|
-
import { ButtonProps } from './
|
|
2
|
+
import { type AvatarProps } from '../avatar';
|
|
3
|
+
import { type IconName, type IconProps } from '../icon';
|
|
4
|
+
import { type ButtonSize } from './abstract';
|
|
5
|
+
import { type ButtonProps } from './button';
|
|
6
6
|
export interface IconButtonProps extends ButtonProps {
|
|
7
7
|
children?: ReactElement<IconProps | AvatarProps>;
|
|
8
8
|
/**
|
|
9
9
|
* Name of the desired icon (refer to icon library)
|
|
10
10
|
*/
|
|
11
11
|
iconName: IconName;
|
|
12
|
-
size?:
|
|
12
|
+
size?: ButtonSize;
|
|
13
13
|
}
|
|
14
14
|
export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { ButtonProps, ButtonType, Type } from './types';
|
|
3
|
-
export { getBaseButtonStyles } from './abstract/styled';
|
|
4
|
-
export { getButtonTypeStyles, getButtonStyles } from './styled';
|
|
1
|
+
export type { ButtonSize } from './abstract';
|
|
5
2
|
export { AbstractButton } from './abstract/abstract-button';
|
|
3
|
+
export { getBaseButtonStyles } from './abstract/styles';
|
|
6
4
|
export { Button } from './button';
|
|
7
|
-
export {
|
|
5
|
+
export type { ButtonProps, ButtonType, Type } from './button';
|
|
8
6
|
export { IconButton } from './icon-button';
|
|
7
|
+
export { SearchButton } from './search-button';
|
|
8
|
+
export { getButtonTypeStyles, getButtonStyles } from './styled';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlattenInterpolation, ThemeProps } from 'styled-components';
|
|
2
|
-
import { ResolvedTheme } from '../../themes
|
|
3
|
-
import { BaseButtonStyles } from './abstract/
|
|
4
|
-
import { ButtonProps, ButtonType } from './
|
|
2
|
+
import { ResolvedTheme } from '../../themes';
|
|
3
|
+
import { type BaseButtonStyles } from './abstract/styles';
|
|
4
|
+
import type { ButtonProps, ButtonType } from './button';
|
|
5
5
|
interface ButtonTypeStyles {
|
|
6
6
|
buttonType: ButtonType;
|
|
7
7
|
focusable?: boolean;
|
|
@@ -12,12 +12,12 @@ export declare function getButtonTypeStyles({ focusable, inverted, buttonType, t
|
|
|
12
12
|
interface ButtonStylesProps extends ButtonTypeStyles, BaseButtonStyles {
|
|
13
13
|
}
|
|
14
14
|
export declare const getButtonStyles: ({ buttonType, inverted, focusable, $size, $isMobile, theme, }: ButtonStylesProps) => FlattenInterpolation<ThemeProps<ResolvedTheme>>;
|
|
15
|
-
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("./abstract
|
|
15
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("./abstract").AbstractButtonProps & {
|
|
16
16
|
children?: import("react").ReactNode | undefined;
|
|
17
17
|
} & import("react").RefAttributes<HTMLButtonElement>>, import("styled-components").DefaultTheme, {
|
|
18
18
|
theme: ResolvedTheme;
|
|
19
19
|
} & ButtonProps, never>;
|
|
20
20
|
export declare const StyledSpinner: import("styled-components").StyledComponent<any, import("styled-components").DefaultTheme, object, string | number | symbol>;
|
|
21
|
-
export declare const LeftIcon: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<import("../icon
|
|
22
|
-
export declare const RightIcon: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<import("../icon
|
|
21
|
+
export declare const LeftIcon: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<import("../icon").IconProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
22
|
+
export declare const RightIcon: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<import("../icon").IconProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
23
23
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
export interface CardProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
noPadding?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const Card: FunctionComponent<PropsWithChildren<
|
|
7
|
-
export {};
|
|
6
|
+
export declare const Card: FunctionComponent<PropsWithChildren<CardProps>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VoidFunctionComponent } from 'react';
|
|
2
|
-
interface CardLinkProps {
|
|
2
|
+
export interface CardLinkProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
href: string;
|
|
5
5
|
label: string;
|
|
@@ -7,4 +7,3 @@ interface CardLinkProps {
|
|
|
7
7
|
replace?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const CardLink: VoidFunctionComponent<CardLinkProps>;
|
|
10
|
-
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ChangeEvent, VoidFunctionComponent } from 'react';
|
|
2
|
-
interface
|
|
2
|
+
export interface CheckboxGroupItem {
|
|
3
|
+
label: string;
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
defaultChecked?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface CheckboxGroupProps {
|
|
3
10
|
label?: string;
|
|
4
11
|
checkedValues?: string[];
|
|
5
|
-
checkboxGroup:
|
|
6
|
-
label: string;
|
|
7
|
-
name: string;
|
|
8
|
-
value: string;
|
|
9
|
-
defaultChecked?: boolean;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
}[];
|
|
12
|
+
checkboxGroup: CheckboxGroupItem[];
|
|
12
13
|
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
13
14
|
}
|
|
14
|
-
export declare const CheckboxGroup: VoidFunctionComponent<
|
|
15
|
-
export {};
|
|
15
|
+
export declare const CheckboxGroup: VoidFunctionComponent<CheckboxGroupProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode } from 'react';
|
|
2
|
-
interface ChooserButtonProps {
|
|
2
|
+
export interface ChooserButtonProps {
|
|
3
3
|
defaultChecked?: boolean;
|
|
4
4
|
checked?: boolean;
|
|
5
5
|
children: ReactNode;
|
|
@@ -9,4 +9,3 @@ interface ChooserButtonProps {
|
|
|
9
9
|
onChange(event: ChangeEvent<HTMLInputElement>): void;
|
|
10
10
|
}
|
|
11
11
|
export declare const ChooserButton: import("react").ForwardRefExoticComponent<ChooserButtonProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ChooserLabel: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -3,7 +3,7 @@ export interface ChooserButtonOption {
|
|
|
3
3
|
label: string;
|
|
4
4
|
value?: string;
|
|
5
5
|
}
|
|
6
|
-
interface ChooserButtonGroupProps {
|
|
6
|
+
export interface ChooserButtonGroupProps {
|
|
7
7
|
groupName: string;
|
|
8
8
|
options: ChooserButtonOption[];
|
|
9
9
|
/** Optional button to allow user to skip question */
|
|
@@ -15,4 +15,3 @@ interface ChooserButtonGroupProps {
|
|
|
15
15
|
onChange?(option: ChooserButtonOption): void;
|
|
16
16
|
}
|
|
17
17
|
export declare const ChooserButtonGroup: VoidFunctionComponent<ChooserButtonGroupProps>;
|
|
18
|
-
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { VoidFunctionComponent } from 'react';
|
|
2
|
-
import { ListboxOption } from '../listbox
|
|
3
|
-
import { ToggletipProps } from '../toggletip
|
|
4
|
-
import { TooltipProps } from '../tooltip
|
|
2
|
+
import { type ListboxOption } from '../listbox';
|
|
3
|
+
import { type ToggletipProps } from '../toggletip';
|
|
4
|
+
import { type TooltipProps } from '../tooltip';
|
|
5
5
|
export type ComboboxOption = ListboxOption;
|
|
6
|
-
interface ComboboxProps {
|
|
6
|
+
export interface ComboboxProps {
|
|
7
7
|
/**
|
|
8
8
|
* If true, the input can have a value not included in the list of options
|
|
9
9
|
*/
|
|
@@ -73,4 +73,3 @@ interface ComboboxProps {
|
|
|
73
73
|
onChange?(value: string): void;
|
|
74
74
|
}
|
|
75
75
|
export declare const Combobox: VoidFunctionComponent<ComboboxProps>;
|
|
76
|
-
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FocusEvent } from 'react';
|
|
2
|
-
import { ToggletipProps } from '../toggletip
|
|
3
|
-
import { TooltipProps } from '../tooltip
|
|
4
|
-
import { DayOfWeek, SupportedLocale } from './utils
|
|
2
|
+
import { type ToggletipProps } from '../toggletip';
|
|
3
|
+
import { type TooltipProps } from '../tooltip';
|
|
4
|
+
import { DayOfWeek, SupportedLocale } from './utils';
|
|
5
5
|
export interface DatepickerHandles {
|
|
6
6
|
reset(): void;
|
|
7
7
|
setDate(date: Date): void;
|
|
8
8
|
}
|
|
9
|
-
interface DatepickerProps {
|
|
9
|
+
export interface DatepickerProps {
|
|
10
10
|
className?: string;
|
|
11
11
|
/** Sets default selected date */
|
|
12
12
|
defaultDate?: Date;
|
|
@@ -55,8 +55,7 @@ interface DatepickerProps {
|
|
|
55
55
|
onBlur?(event: FocusEvent<HTMLInputElement>): void;
|
|
56
56
|
onCalendarClose?(): void;
|
|
57
57
|
onCalendarOpen?(): void;
|
|
58
|
-
onChange?(date: Date): void;
|
|
58
|
+
onChange?(date: Date | null): void;
|
|
59
59
|
onFocus?(event: FocusEvent<HTMLInputElement>): void;
|
|
60
60
|
}
|
|
61
61
|
export declare const Datepicker: import("react").ForwardRefExoticComponent<DatepickerProps & import("react").RefAttributes<DatepickerHandles>>;
|
|
62
|
-
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Locale } from 'date-fns';
|
|
2
|
-
import { DropdownListOption } from '../../dropdown-list
|
|
2
|
+
import { type DropdownListOption } from '../../dropdown-list';
|
|
3
3
|
export type SupportedLocale = 'fr-CA' | 'en-CA' | 'en-US';
|
|
4
4
|
export type DayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
export declare function getLocale(localeArray: Locale[], localeCode?: SupportedLocale): Locale;
|
|
@@ -9,8 +9,4 @@ export declare function getLocaleDatePlaceholder(locale?: Locale): string;
|
|
|
9
9
|
export declare function getLocaleMonthsOptions(locale: Locale): DropdownListOption[];
|
|
10
10
|
export declare function getYearsOptions(minDate?: Date | null, maxDate?: Date | null): DropdownListOption[];
|
|
11
11
|
export declare function setLocaleFirstDayOfWeek(locale: Locale, dayOfWeek?: DayOfWeek): void;
|
|
12
|
-
|
|
13
|
-
* The version of format as only numbers (ex: "yyyy-MM-dd" would become "yyyyMMdd").
|
|
14
|
-
* Note that Month and Day are always converted to the 2 digits format.
|
|
15
|
-
*/
|
|
16
|
-
export declare function getNumericalDateFormat(dateFormat: string): string | null;
|
|
12
|
+
export declare function getAlternateDateFormats(dateFormat: string): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './datepicker-utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { DeviceContextProviderProps } from './device-context-provider
|
|
3
|
-
import { IntlProviderProps } from './internationalization-provider
|
|
4
|
-
import { ThemeWrapperProps } from './theme-wrapper
|
|
2
|
+
import { DeviceContextProviderProps } from './device-context-provider';
|
|
3
|
+
import { IntlProviderProps } from './internationalization-provider';
|
|
4
|
+
import { ThemeWrapperProps } from './theme-wrapper';
|
|
5
5
|
export type DesignSystemProps = ThemeWrapperProps & DeviceContextProviderProps & IntlProviderProps;
|
|
6
6
|
export declare const DesignSystem: FunctionComponent<PropsWithChildren<DesignSystemProps>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { Breakpoints } from '../../legacy-constants/breakpoints';
|
|
2
|
+
import { type Breakpoints } from '../../legacy-constants/breakpoints';
|
|
3
3
|
export type DeviceType = 'desktop' | 'tablet' | 'mobile';
|
|
4
4
|
export interface DeviceContextProviderProps {
|
|
5
5
|
staticDevice?: DeviceType;
|
|
@@ -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
1
|
import { VoidFunctionComponent } from 'react';
|
|
2
|
-
import { IconName } from '../icon
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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)
|
|
@@ -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';
|