@equisoft/design-elements-react 9.9.7-snapshot.20260114214150 → 9.10.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 +3106 -3013
- package/dist/bundle.js.LICENSE.txt +14 -15
- 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 +2 -2
- 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 +5 -5
- 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 +6 -6
- 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 +6 -5
- package/dist/components/date-picker/utils/datepicker-utils.d.ts +6 -2
- 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 +8 -7
- package/dist/components/dropdown-list/dropdown-list-option.d.ts +4 -0
- package/dist/components/dropdown-list/dropdown-list.d.ts +8 -7
- 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 -23
- 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 +2 -2
- package/dist/components/internationalization-provider/internationalization-provider.d.ts +1 -1
- package/dist/components/label/label.d.ts +3 -3
- 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 +2 -10
- 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/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 +13 -1
- 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/{index.d.ts → spinner.d.ts} +1 -4
- 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 +4 -7
- 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 -26
- package/dist/index.d.ts +81 -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 +47 -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-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 -705
- 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/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 +64 -64
- package/dist/components/avatar/index.d.ts +0 -2
- package/dist/components/badge/index.d.ts +0 -2
- 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 -17
- package/dist/components/filters/filter-option.d.ts +0 -5
- package/dist/components/filters/filter-single.d.ts +0 -14
- 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 -12
- package/dist/components/filters/internal/list-container.d.ts +0 -17
- 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 -73
- 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-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 -34
- 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/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/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/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/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,3 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
/*!
|
|
2
8
|
Copyright (c) 2015 Jed Watson.
|
|
3
9
|
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
@@ -5,7 +11,7 @@
|
|
|
5
11
|
*/
|
|
6
12
|
|
|
7
13
|
/*!
|
|
8
|
-
react-datepicker
|
|
14
|
+
react-datepicker v7.5.0
|
|
9
15
|
https://github.com/Hacker0x01/react-datepicker
|
|
10
16
|
Released under the MIT License.
|
|
11
17
|
*/
|
|
@@ -22,6 +28,11 @@
|
|
|
22
28
|
* http://api.jqueryui.com/category/ui-core/
|
|
23
29
|
*/
|
|
24
30
|
|
|
31
|
+
/*!
|
|
32
|
+
* tabbable 6.2.0
|
|
33
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
34
|
+
*/
|
|
35
|
+
|
|
25
36
|
/**
|
|
26
37
|
* react-table
|
|
27
38
|
*
|
|
@@ -44,18 +55,7 @@
|
|
|
44
55
|
* @license MIT
|
|
45
56
|
*/
|
|
46
57
|
|
|
47
|
-
/**
|
|
48
|
-
* @license React
|
|
49
|
-
* react-dom-server-legacy.browser.production.min.js
|
|
50
|
-
*
|
|
51
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the MIT license found in the
|
|
54
|
-
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @license React
|
|
58
|
+
/** @license React v17.0.2
|
|
59
59
|
* react-dom-server.browser.production.min.js
|
|
60
60
|
*
|
|
61
61
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -64,8 +64,7 @@
|
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
66
|
|
|
67
|
-
/**
|
|
68
|
-
* @license React
|
|
67
|
+
/** @license React v17.0.2
|
|
69
68
|
* react-jsx-runtime.production.min.js
|
|
70
69
|
*
|
|
71
70
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Type, Tag } from '../heading/heading';
|
|
3
3
|
export interface AccordionItemProps {
|
|
4
4
|
title: string;
|
|
5
5
|
id?: string;
|
|
6
|
-
headingType?:
|
|
7
|
-
headingTag?:
|
|
6
|
+
headingType?: Type | undefined;
|
|
7
|
+
headingTag?: Tag | 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, Tag } from '../heading/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?: Type | undefined;
|
|
8
|
+
headingTag?: Tag | undefined;
|
|
9
9
|
expanded?: boolean | undefined;
|
|
10
10
|
disabled?: boolean | undefined;
|
|
11
11
|
buttonRef?: React.RefObject<HTMLButtonElement> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
export type AvatarSize = 'xsmall' | 'small' | 'medium' | 'large';
|
|
3
3
|
export interface AvatarProps {
|
|
4
4
|
className?: string;
|
|
@@ -7,4 +7,4 @@ export interface AvatarProps {
|
|
|
7
7
|
imgSrc?: string;
|
|
8
8
|
size?: AvatarSize;
|
|
9
9
|
}
|
|
10
|
-
export declare const Avatar:
|
|
10
|
+
export declare const Avatar: VoidFunctionComponent<AvatarProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
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
|
-
|
|
15
|
+
interface BadgeProps {
|
|
16
16
|
animate?: boolean;
|
|
17
17
|
className?: string;
|
|
18
18
|
/** The largest value to display, beyond which a + sign is shown */
|
|
@@ -29,3 +29,4 @@ export 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
|
-
|
|
4
|
+
interface BentoMenuButtonProps {
|
|
5
5
|
ariaLabel?: string;
|
|
6
6
|
buttonAriaLabel?: string;
|
|
7
7
|
externalLinks: ExternalItemProps[];
|
|
@@ -14,3 +14,4 @@ export 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 {
|
|
2
|
+
import { NavItemProps } from '../dropdown-menu/list-items';
|
|
3
3
|
export interface ProductGroupProps {
|
|
4
4
|
onClick?(): void;
|
|
5
5
|
firstItemRef?: RefObject<HTMLAnchorElement>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
import { NavListOption } from '../nav-list/nav-list-option';
|
|
3
3
|
export type BreadcrumbElement = NavListOption;
|
|
4
|
-
|
|
4
|
+
interface BreadcrumbProps {
|
|
5
5
|
className?: string;
|
|
6
6
|
history: BreadcrumbElement[];
|
|
7
7
|
}
|
|
8
|
-
export declare const Breadcrumb:
|
|
8
|
+
export declare const Breadcrumb: VoidFunctionComponent<BreadcrumbProps>;
|
|
9
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Overflow } from '../../hooks/use-overflow';
|
|
2
|
+
import { NavListOption } from '../nav-list/nav-list-option';
|
|
3
3
|
interface UseBreadcrumbLayoutEffectRequest {
|
|
4
4
|
overflow: Overflow;
|
|
5
5
|
shownRoutes: NavListOption[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { NavListOption } from '../nav-list/nav-list-option';
|
|
3
|
+
import { Overflow } from './use-breadcrumb-overflow';
|
|
4
4
|
interface BreadcrumbRoutes {
|
|
5
5
|
shownRoutes: NavListOption[];
|
|
6
6
|
hiddenRoutes: NavListOption[];
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
}
|
|
1
|
+
import { AbstractButtonProps } from './types';
|
|
11
2
|
export declare const AbstractButton: import("react").ForwardRefExoticComponent<AbstractButtonProps & {
|
|
12
3
|
children?: import("react").ReactNode | undefined;
|
|
13
4
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { FlattenInterpolation, ThemeProps } from 'styled-components';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { ResolvedTheme } from '../../../themes/theme';
|
|
3
|
+
import { Size } from './types';
|
|
4
4
|
export interface BaseButtonStyles {
|
|
5
|
-
$size?:
|
|
5
|
+
$size?: Size;
|
|
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,44 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
}
|
|
1
|
+
import { ButtonProps } from './types';
|
|
42
2
|
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & {
|
|
43
3
|
children?: import("react").ReactNode | undefined;
|
|
44
4
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { AvatarProps } from '../avatar/avatar';
|
|
3
|
+
import { IconName, IconProps } from '../icon/icon';
|
|
4
|
+
import { Size } from './abstract/types';
|
|
5
|
+
import { ButtonProps } from './types';
|
|
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?: Size;
|
|
13
13
|
}
|
|
14
14
|
export declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { Size } from './abstract/types';
|
|
2
|
+
export { ButtonProps, ButtonType, Type } from './types';
|
|
3
|
+
export { getBaseButtonStyles } from './abstract/styled';
|
|
4
|
+
export { getButtonTypeStyles, getButtonStyles } from './styled';
|
|
2
5
|
export { AbstractButton } from './abstract/abstract-button';
|
|
3
|
-
export { getBaseButtonStyles } from './abstract/styles';
|
|
4
6
|
export { Button } from './button';
|
|
5
|
-
export type { ButtonProps, ButtonType, Type } from './button';
|
|
6
|
-
export { IconButton } from './icon-button';
|
|
7
7
|
export { SearchButton } from './search-button';
|
|
8
|
-
export {
|
|
8
|
+
export { IconButton } from './icon-button';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MouseEvent, VoidFunctionComponent } from 'react';
|
|
2
2
|
interface ButtonProps {
|
|
3
|
-
className
|
|
3
|
+
className: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
onClick?(event: MouseEvent<HTMLButtonElement>): void;
|
|
6
6
|
}
|
|
7
|
-
export declare const SearchButton:
|
|
7
|
+
export declare const SearchButton: VoidFunctionComponent<ButtonProps>;
|
|
8
8
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlattenInterpolation, ThemeProps } from 'styled-components';
|
|
2
|
-
import { ResolvedTheme } from '../../themes';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
2
|
+
import { ResolvedTheme } from '../../themes/theme';
|
|
3
|
+
import { BaseButtonStyles } from './abstract/styled';
|
|
4
|
+
import { ButtonProps, ButtonType } from './types';
|
|
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").AbstractButtonProps & {
|
|
15
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("./abstract/types").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").
|
|
22
|
-
export declare const RightIcon: import("styled-components").StyledComponent<import("react").
|
|
21
|
+
export declare const LeftIcon: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<import("../icon/icon").IconProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
22
|
+
export declare const RightIcon: import("styled-components").StyledComponent<import("react").VoidFunctionComponent<import("../icon/icon").IconProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
23
23
|
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { FocusEventHandler, MouseEventHandler, KeyboardEventHandler } from 'react';
|
|
2
|
+
import { IconName } from '../icon/icon';
|
|
3
|
+
import { Size } from './abstract/types';
|
|
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?: Size;
|
|
32
|
+
title?: string;
|
|
33
|
+
type?: Type;
|
|
34
|
+
leftIconName?: IconName;
|
|
35
|
+
rightIconName?: IconName;
|
|
36
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
37
|
+
onFocus?: FocusEventHandler<HTMLButtonElement>;
|
|
38
|
+
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
39
|
+
onKeyDown?: KeyboardEventHandler<HTMLButtonElement>;
|
|
40
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
interface Props {
|
|
3
3
|
className?: string;
|
|
4
4
|
noPadding?: boolean;
|
|
5
5
|
}
|
|
6
|
-
export declare const Card: FunctionComponent<PropsWithChildren<
|
|
6
|
+
export declare const Card: FunctionComponent<PropsWithChildren<Props>>;
|
|
7
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
interface CardLinkProps {
|
|
3
3
|
className?: string;
|
|
4
4
|
href: string;
|
|
5
5
|
label: string;
|
|
6
6
|
/** When true, clicking the link will replace the current entry in the history stack instead of adding a new one. */
|
|
7
7
|
replace?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const CardLink:
|
|
9
|
+
export declare const CardLink: VoidFunctionComponent<CardLinkProps>;
|
|
10
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ChangeEvent,
|
|
2
|
-
|
|
3
|
-
label: string;
|
|
4
|
-
name: string;
|
|
5
|
-
value: string;
|
|
6
|
-
defaultChecked?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface CheckboxGroupProps {
|
|
1
|
+
import { ChangeEvent, VoidFunctionComponent } from 'react';
|
|
2
|
+
interface CheckboxProps {
|
|
10
3
|
label?: string;
|
|
11
4
|
checkedValues?: string[];
|
|
12
|
-
checkboxGroup:
|
|
5
|
+
checkboxGroup: {
|
|
6
|
+
label: string;
|
|
7
|
+
name: string;
|
|
8
|
+
value: string;
|
|
9
|
+
defaultChecked?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}[];
|
|
13
12
|
onChange?(event: ChangeEvent<HTMLInputElement>): void;
|
|
14
13
|
}
|
|
15
|
-
export declare const CheckboxGroup:
|
|
14
|
+
export declare const CheckboxGroup: VoidFunctionComponent<CheckboxProps>;
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
interface ChooserButtonProps {
|
|
3
3
|
defaultChecked?: boolean;
|
|
4
4
|
checked?: boolean;
|
|
5
5
|
children: ReactNode;
|
|
@@ -9,3 +9,4 @@ export 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 Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
2
|
export interface ChooserButtonOption {
|
|
3
3
|
label: string;
|
|
4
4
|
value?: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface ChooserButtonGroupProps {
|
|
7
7
|
groupName: string;
|
|
8
8
|
options: ChooserButtonOption[];
|
|
9
9
|
/** Optional button to allow user to skip question */
|
|
@@ -14,4 +14,5 @@ export interface ChooserButtonGroupProps {
|
|
|
14
14
|
value?: string | null;
|
|
15
15
|
onChange?(option: ChooserButtonOption): void;
|
|
16
16
|
}
|
|
17
|
-
export declare const ChooserButtonGroup:
|
|
17
|
+
export declare const ChooserButtonGroup: VoidFunctionComponent<ChooserButtonGroupProps>;
|
|
18
|
+
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ListboxOption } from '../listbox';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
type Value = string | string[];
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
import { ListboxOption } from '../listbox/listbox';
|
|
3
|
+
import { ToggletipProps } from '../toggletip/toggletip';
|
|
4
|
+
import { TooltipProps } from '../tooltip/tooltip';
|
|
6
5
|
export type ComboboxOption = ListboxOption;
|
|
7
|
-
|
|
6
|
+
interface ComboboxProps {
|
|
8
7
|
/**
|
|
9
8
|
* If true, the input can have a value not included in the list of options
|
|
10
9
|
*/
|
|
@@ -13,10 +12,6 @@ export interface ComboboxProps {
|
|
|
13
12
|
* Aria label for the input (used when no visual label is present)
|
|
14
13
|
*/
|
|
15
14
|
ariaLabel?: string;
|
|
16
|
-
/**
|
|
17
|
-
* If true, when the input value matches an option, that option is automatically selected
|
|
18
|
-
*/
|
|
19
|
-
autoSelectMatchingOption?: boolean;
|
|
20
15
|
className?: string;
|
|
21
16
|
/**
|
|
22
17
|
* @default false
|
|
@@ -25,7 +20,7 @@ export interface ComboboxProps {
|
|
|
25
20
|
/**
|
|
26
21
|
* The default value and selected option
|
|
27
22
|
*/
|
|
28
|
-
defaultValue?:
|
|
23
|
+
defaultValue?: string;
|
|
29
24
|
/**
|
|
30
25
|
* Disables the input
|
|
31
26
|
*/
|
|
@@ -52,14 +47,9 @@ export interface ComboboxProps {
|
|
|
52
47
|
inlineAutoComplete?: boolean;
|
|
53
48
|
isLoading?: boolean;
|
|
54
49
|
label?: string;
|
|
55
|
-
/**
|
|
56
|
-
* If true, multiple options can be selected and displayed as tags
|
|
57
|
-
*/
|
|
58
|
-
multiselect?: boolean;
|
|
59
50
|
name?: string;
|
|
60
51
|
options: ComboboxOption[];
|
|
61
52
|
placeholder?: string;
|
|
62
|
-
readOnly?: boolean;
|
|
63
53
|
required?: boolean;
|
|
64
54
|
tooltip?: TooltipProps;
|
|
65
55
|
toggletip?: ToggletipProps;
|
|
@@ -75,13 +65,12 @@ export interface ComboboxProps {
|
|
|
75
65
|
/**
|
|
76
66
|
* Sets the selected value (makes the component controlled)
|
|
77
67
|
*/
|
|
78
|
-
value?:
|
|
68
|
+
value?: string;
|
|
79
69
|
hint?: string;
|
|
80
70
|
/**
|
|
81
|
-
* OnChange callback function, invoked when value
|
|
71
|
+
* OnChange callback function, invoked when the value is changed
|
|
82
72
|
*/
|
|
83
|
-
onChange?(value: string
|
|
84
|
-
onInputChange?(value: string): void;
|
|
73
|
+
onChange?(value: string): void;
|
|
85
74
|
}
|
|
86
|
-
export declare const Combobox:
|
|
75
|
+
export declare const Combobox: VoidFunctionComponent<ComboboxProps>;
|
|
87
76
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { VoidFunctionComponent } from 'react';
|
|
2
|
+
import { DropdownListOption } from '../dropdown-list/dropdown-list-option';
|
|
3
3
|
interface CalendarHeaderProps {
|
|
4
4
|
date: Date;
|
|
5
5
|
months: string[];
|
|
@@ -12,5 +12,5 @@ interface CalendarHeaderProps {
|
|
|
12
12
|
decreaseMonth(): void;
|
|
13
13
|
increaseMonth(): void;
|
|
14
14
|
}
|
|
15
|
-
export declare const CalendarHeader:
|
|
15
|
+
export declare const CalendarHeader: VoidFunctionComponent<CalendarHeaderProps>;
|
|
16
16
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FocusEvent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { DayOfWeek, SupportedLocale } from './utils';
|
|
2
|
+
import { ToggletipProps } from '../toggletip/toggletip';
|
|
3
|
+
import { TooltipProps } from '../tooltip/tooltip';
|
|
4
|
+
import { DayOfWeek, SupportedLocale } from './utils/datepicker-utils';
|
|
5
5
|
export interface DatepickerHandles {
|
|
6
6
|
reset(): void;
|
|
7
7
|
setDate(date: Date): void;
|
|
8
8
|
}
|
|
9
|
-
|
|
9
|
+
interface DatepickerProps {
|
|
10
10
|
className?: string;
|
|
11
11
|
/** Sets default selected date */
|
|
12
12
|
defaultDate?: Date;
|
|
@@ -55,7 +55,8 @@ export interface DatepickerProps {
|
|
|
55
55
|
onBlur?(event: FocusEvent<HTMLInputElement>): void;
|
|
56
56
|
onCalendarClose?(): void;
|
|
57
57
|
onCalendarOpen?(): void;
|
|
58
|
-
onChange?(date: Date
|
|
58
|
+
onChange?(date: Date): 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 {
|
|
2
|
+
import { DropdownListOption } from '../../dropdown-list/dropdown-list-option';
|
|
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,4 +9,8 @@ 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
|
-
|
|
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;
|
|
@@ -1,7 +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';
|
|
5
|
-
export type { DeviceType } from './device-context-provider';
|
|
2
|
+
import { DeviceContextProviderProps } from './device-context-provider/device-context-provider';
|
|
3
|
+
import { IntlProviderProps } from './internationalization-provider/internationalization-provider';
|
|
4
|
+
import { ThemeWrapperProps } from './theme-wrapper/theme-wrapper';
|
|
6
5
|
export type DesignSystemProps = ThemeWrapperProps & DeviceContextProviderProps & IntlProviderProps;
|
|
7
6
|
export declare const DesignSystem: FunctionComponent<PropsWithChildren<DesignSystemProps>>;
|