@payfit/unity-components 1.2.0 → 2.1.4
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/esm/components/action-bar/ActionBar.js +14 -14
- package/dist/esm/components/actionable/Actionable.js +31 -28
- package/dist/esm/components/alert/Alert.js +41 -29
- package/dist/esm/components/alert/parts/AlertTitle.js +8 -8
- package/dist/esm/components/app-layout/AppLayout.d.ts +2 -0
- package/dist/esm/components/app-layout/AppLayout.js +17 -17
- package/dist/esm/components/app-menu/parts/AppMenuFooter.js +23 -23
- package/dist/esm/components/app-menu/parts/AppMenuHeader.d.ts +87 -5
- package/dist/esm/components/app-menu/parts/AppMenuHeader.js +25 -25
- package/dist/esm/components/autocomplete/Autocomplete.d.ts +0 -9
- package/dist/esm/components/autocomplete/Autocomplete.js +54 -57
- package/dist/esm/components/autocomplete/parts/AutocompleteItem.js +8 -8
- package/dist/esm/components/avatar/Avatar.variants.js +1 -1
- package/dist/esm/components/avatar/parts/AvatarFallback.js +26 -27
- package/dist/esm/components/badge/Badge.js +1 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.context.js +3 -3
- package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +19 -11
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +29 -18
- package/dist/esm/components/breadcrumbs/Breadcrumbs.variant.js +1 -1
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.d.ts +30 -5
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.js +35 -27
- package/dist/esm/components/breadcrumbs/parts/RawBreadcrumbLink.d.ts +37 -0
- package/dist/esm/components/breadcrumbs/parts/RawBreadcrumbLink.js +36 -0
- package/dist/esm/components/button/Button.js +6 -6
- package/dist/esm/components/button/Button.variants.d.ts +1 -0
- package/dist/esm/components/button/Button.variants.js +22 -15
- package/dist/esm/components/card/Card.context.d.ts +5 -0
- package/dist/esm/components/card/Card.context.js +14 -0
- package/dist/esm/components/card/Card.d.ts +210 -0
- package/dist/esm/components/card/Card.js +93 -0
- package/dist/esm/components/card/parts/CardContent.d.ts +37 -0
- package/dist/esm/components/card/parts/CardContent.js +8 -0
- package/dist/esm/components/card/parts/CardTitle.d.ts +55 -0
- package/dist/esm/components/card/parts/CardTitle.js +33 -0
- package/dist/esm/components/checkbox/Checkbox.js +38 -30
- package/dist/esm/components/checkbox/Checkbox.variants.d.ts +9 -9
- package/dist/esm/components/checkbox/Checkbox.variants.js +23 -7
- package/dist/esm/components/checkbox/TanstackCheckbox.d.ts +28 -0
- package/dist/esm/components/checkbox/TanstackCheckbox.js +51 -0
- package/dist/esm/components/checkbox/parts/CheckboxIndicator.js +7 -7
- package/dist/esm/components/checkbox-field/CheckboxField.d.ts +2 -0
- package/dist/esm/components/checkbox-field/TanstackCheckboxField.d.ts +14 -0
- package/dist/esm/components/checkbox-field/TanstackCheckboxField.js +40 -0
- package/dist/esm/components/checkbox-group/TanstackCheckboxGroup.d.ts +4 -0
- package/dist/esm/components/checkbox-group/TanstackCheckboxGroup.js +37 -0
- package/dist/esm/components/checkbox-group-field/CheckboxGroupField.d.ts +2 -0
- package/dist/esm/components/checkbox-group-field/TanstackCheckGroupField.d.ts +72 -0
- package/dist/esm/components/checkbox-group-field/TanstackCheckGroupField.js +40 -0
- package/dist/esm/components/client-side-pagination/ClientSidePagination.d.ts +103 -0
- package/dist/esm/components/client-side-pagination/ClientSidePagination.js +177 -0
- package/dist/esm/components/client-side-pagination/parts/PaginationEllipsis.d.ts +11 -0
- package/dist/esm/components/client-side-pagination/parts/PaginationEllipsis.js +30 -0
- package/dist/esm/components/client-side-pagination/parts/PaginationJumpDialog.d.ts +8 -0
- package/dist/esm/components/{pagination → client-side-pagination}/parts/PaginationNavButton.js +1 -1
- package/dist/esm/components/{pagination/parts/PaginationLink.d.ts → client-side-pagination/parts/RawPaginationLink.d.ts} +2 -2
- package/dist/esm/components/{pagination/parts/PaginationLink.js → client-side-pagination/parts/RawPaginationLink.js} +12 -12
- package/dist/esm/components/client-side-pagination/utils/pagination-window.d.ts +8 -0
- package/dist/esm/components/client-side-pagination/utils/pagination-window.js +33 -0
- package/dist/esm/components/collapsible/parts/CollapsibleContent.js +5 -5
- package/dist/esm/components/collapsible/parts/CollapsibleTitle.js +8 -8
- package/dist/esm/components/data-table/DataTable.d.ts +109 -16
- package/dist/esm/components/data-table/DataTable.js +107 -93
- package/dist/esm/components/data-table/mocks/employee-data.d.ts +1 -0
- package/dist/esm/components/date-calendar/DateCalendar.js +1 -1
- package/dist/esm/components/date-calendar/parts/DateSegmentSelect.js +1 -1
- package/dist/esm/components/date-picker/DatePicker.d.ts +1 -1
- package/dist/esm/components/date-picker/DatePicker.js +59 -50
- package/dist/esm/components/date-picker/TanstackDatePicker.d.ts +22 -0
- package/dist/esm/components/date-picker/TanstackDatePicker.js +53 -0
- package/dist/esm/components/date-picker/parts/DateInput.js +4 -4
- package/dist/esm/components/date-picker-field/DatePickerField.d.ts +2 -0
- package/dist/esm/components/date-picker-field/TanstackDatePickerField.d.ts +71 -0
- package/dist/esm/components/date-picker-field/TanstackDatePickerField.js +41 -0
- package/dist/esm/components/definition-list/DefinitionList.context.d.ts +19 -0
- package/dist/esm/components/definition-list/DefinitionList.d.ts +24 -0
- package/dist/esm/components/definition-list/parts/DefinitionItem.d.ts +25 -0
- package/dist/esm/components/dialog/Dialog.d.ts +34 -22
- package/dist/esm/components/dialog/Dialog.js +90 -52
- package/dist/esm/components/dialog/parts/DialogActions.js +6 -6
- package/dist/esm/components/dialog/parts/DialogTitle.js +7 -4
- package/dist/esm/components/dialog/test-utils.d.ts +28 -0
- package/dist/esm/components/dialog/test-utils.js +78 -0
- package/dist/esm/components/error-state/ErrorState.d.ts +13 -1
- package/dist/esm/components/error-state/ErrorState.js +133 -92
- package/dist/esm/components/error-state/initConfig.js +1 -1
- package/dist/esm/components/fieldset/Fieldset.d.ts +19 -0
- package/dist/esm/components/fieldset/Fieldset.js +32 -26
- package/dist/esm/components/filter/Filter.controls.d.ts +192 -0
- package/dist/esm/components/filter/Filter.controls.js +45 -0
- package/dist/esm/components/filter/Filter.d.ts +189 -0
- package/dist/esm/components/filter/Filter.js +147 -0
- package/dist/esm/components/filter/Filter.types.d.ts +121 -0
- package/dist/esm/components/filter/hooks/useFilterIds.d.ts +49 -0
- package/dist/esm/components/filter/hooks/useFilterIds.js +13 -0
- package/dist/esm/components/filter/hooks/useFilterState.d.ts +74 -0
- package/dist/esm/components/filter/hooks/useFilterState.js +23 -0
- package/dist/esm/components/filter/hooks/useFilterValue.d.ts +61 -0
- package/dist/esm/components/filter/hooks/useFilterValue.js +31 -0
- package/dist/esm/components/filter/parts/FilterButton.d.ts +75 -0
- package/dist/esm/components/filter/parts/FilterButton.js +55 -0
- package/dist/esm/components/filter/parts/FilterLabel.d.ts +96 -0
- package/dist/esm/components/filter/parts/FilterLabel.js +57 -0
- package/dist/esm/components/filter/parts/FilterPopover.d.ts +95 -0
- package/dist/esm/components/filter/parts/FilterPopover.js +79 -0
- package/dist/esm/components/filter/utils/value-formatters.d.ts +62 -0
- package/dist/esm/components/filter/utils/value-formatters.js +14 -0
- package/dist/esm/components/filter-toolbar/FilterToolbar.d.ts +110 -0
- package/dist/esm/components/filter-toolbar/FilterToolbar.js +172 -0
- package/dist/esm/components/filter-toolbar/FilterToolbar.types.d.ts +119 -0
- package/dist/esm/components/filter-toolbar/hooks/use-filter-toolbar-state.d.ts +96 -0
- package/dist/esm/components/filter-toolbar/hooks/use-filter-toolbar-state.js +132 -0
- package/dist/esm/components/filter-toolbar/parts/AddFilter.d.ts +63 -0
- package/dist/esm/components/filter-toolbar/parts/AddFilter.js +107 -0
- package/dist/esm/components/filter-toolbar/parts/AddFilterItem.d.ts +18 -0
- package/dist/esm/components/filter-toolbar/parts/AddFilterItem.js +18 -0
- package/dist/esm/components/filter-toolbar/utils/filter-adapters.d.ts +93 -0
- package/dist/esm/components/filter-toolbar/utils/filter-adapters.js +88 -0
- package/dist/esm/components/filter-toolbar/utils/normalize-filter-value.d.ts +24 -0
- package/dist/esm/components/filter-toolbar/utils/normalize-filter-value.js +19 -0
- package/dist/esm/components/flex/Flex.js +52 -37
- package/dist/esm/components/form/Form.d.ts +2 -0
- package/dist/esm/components/form/TanstackForm.d.ts +24 -0
- package/dist/esm/components/form/TanstackForm.js +29 -0
- package/dist/esm/components/form-field/FormField.d.ts +2 -0
- package/dist/esm/components/form-field/FormField.js +12 -12
- package/dist/esm/components/form-field/TanstackFormField.context.d.ts +10 -0
- package/dist/esm/components/form-field/TanstackFormField.context.js +14 -0
- package/dist/esm/components/form-field/TanstackFormField.d.ts +49 -0
- package/dist/esm/components/form-field/TanstackFormField.js +46 -0
- package/dist/esm/components/form-field/parts/FormControl.d.ts +2 -0
- package/dist/esm/components/form-field/parts/FormFeedbackText.d.ts +2 -0
- package/dist/esm/components/form-field/parts/FormHelperText.d.ts +2 -0
- package/dist/esm/components/form-field/parts/FormLabel.d.ts +2 -0
- package/dist/esm/components/form-field/parts/RawFormContextualLink.d.ts +22 -0
- package/dist/esm/components/form-field/parts/RawFormContextualLink.js +39 -0
- package/dist/esm/components/form-field/parts/TanstackFormFeedbackText.d.ts +12 -0
- package/dist/esm/components/form-field/parts/TanstackFormFeedbackText.js +32 -0
- package/dist/esm/components/form-field/parts/TanstackFormHelperText.d.ts +11 -0
- package/dist/esm/components/form-field/parts/TanstackFormHelperText.js +25 -0
- package/dist/esm/components/form-field/parts/TanstackFormLabel.d.ts +8 -0
- package/dist/esm/components/form-field/parts/TanstackFormLabel.js +26 -0
- package/dist/esm/components/form-field/parts/TanstackRawFormContextualLink.d.ts +26 -0
- package/dist/esm/components/form-field/parts/TanstackRawFormContextualLink.js +45 -0
- package/dist/esm/components/funnel-layout/parts/FunnelSidebar.d.ts +2 -2
- package/dist/esm/components/icon/Icon.js +23 -19
- package/dist/esm/components/icon-button/CircularIconButton.d.ts +9 -9
- package/dist/esm/components/icon-button/CircularIconButton.js +53 -36
- package/dist/esm/components/icon-button/IconButton.variants.d.ts +1 -0
- package/dist/esm/components/icon-button/IconButton.variants.js +44 -28
- package/dist/esm/components/input/Input.js +36 -35
- package/dist/esm/components/input/TanstackInput.d.ts +22 -0
- package/dist/esm/components/input/TanstackInput.js +38 -0
- package/dist/esm/components/label/Label.js +12 -12
- package/dist/esm/components/link/{Link.variants.d.ts → RawLink.d.ts} +92 -0
- package/dist/esm/components/link/{Link.variants.js → RawLink.js} +78 -5
- package/dist/esm/components/list-view/ListView.d.ts +56 -0
- package/dist/esm/components/list-view/ListView.fixtures.d.ts +20 -0
- package/dist/esm/components/list-view/ListView.js +44 -0
- package/dist/esm/components/list-view/parts/ListViewItemLabel.d.ts +34 -0
- package/dist/esm/components/list-view/parts/ListViewItemLabel.js +22 -0
- package/dist/esm/components/list-view/parts/ListViewItemText.d.ts +33 -0
- package/dist/esm/components/list-view/parts/ListViewItemText.js +22 -0
- package/dist/esm/components/list-view/parts/ListViewSection.d.ts +14 -0
- package/dist/esm/components/list-view/parts/ListViewSection.js +21 -0
- package/dist/esm/components/list-view/parts/RawListViewItem.d.ts +102 -0
- package/dist/esm/components/list-view/parts/RawListViewItem.js +80 -0
- package/dist/esm/components/menu/parts/{MenuItem.d.ts → RawMenuItem.d.ts} +3 -4
- package/dist/esm/components/menu/parts/{MenuItem.js → RawMenuItem.js} +9 -9
- package/dist/esm/components/multi-select/MultiSelect.d.ts +5 -7
- package/dist/esm/components/multi-select/MultiSelect.js +199 -176
- package/dist/esm/components/multi-select/MultiselectTypes.d.ts +114 -0
- package/dist/esm/components/multi-select/TanstackMultiSelect.d.ts +7 -0
- package/dist/esm/components/multi-select/TanstackMultiSelect.js +41 -0
- package/dist/esm/components/multi-select/parts/MultiSelectButton.d.ts +2 -0
- package/dist/esm/components/multi-select/parts/MultiSelectButton.js +62 -46
- package/dist/esm/components/multi-select/parts/MultiSelectPopover.js +15 -15
- package/dist/esm/components/multi-select-field/MultiSelectField.d.ts +45 -12
- package/dist/esm/components/multi-select-field/MultiSelectField.js +56 -66
- package/dist/esm/components/multi-select-field/TanstackMultiSelectField.d.ts +92 -0
- package/dist/esm/components/multi-select-field/TanstackMultiSelectField.js +48 -0
- package/dist/esm/components/multi-select-field/test-utils.d.ts +17 -0
- package/dist/esm/components/multi-select-field/test-utils.js +45 -0
- package/dist/esm/components/nav/parts/NavGroup.d.ts +3 -3
- package/dist/esm/components/nav/parts/NavGroup.js +62 -51
- package/dist/esm/components/nav/parts/{NavItem.d.ts → RawNavItem.d.ts} +102 -5
- package/dist/esm/components/nav/parts/RawNavItem.js +106 -0
- package/dist/esm/components/navigation-card/NavigationCard.context.d.ts +31 -0
- package/dist/esm/components/navigation-card/NavigationCard.context.js +13 -0
- package/dist/esm/components/navigation-card/NavigationCard.d.ts +46 -0
- package/dist/esm/components/navigation-card/NavigationCard.js +62 -0
- package/dist/esm/components/navigation-card/NavigationCard.types.d.ts +37 -0
- package/dist/esm/components/navigation-card/NavigationCard.variants.d.ts +1147 -0
- package/dist/esm/components/navigation-card/NavigationCard.variants.js +164 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardDescription.d.ts +39 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardDescription.js +22 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardGroup.d.ts +146 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardGroup.js +93 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardLabel.d.ts +32 -0
- package/dist/esm/components/navigation-card/parts/NavigationCardLabel.js +24 -0
- package/dist/esm/components/number-field/NumberField.d.ts +2 -0
- package/dist/esm/components/number-field/TanstackNumberField.d.ts +74 -0
- package/dist/esm/components/number-field/TanstackNumberField.js +44 -0
- package/dist/esm/components/number-input/NumberInput.js +31 -29
- package/dist/esm/components/number-input/TanstackNumberInput.d.ts +58 -0
- package/dist/esm/components/number-input/TanstackNumberInput.js +38 -0
- package/dist/esm/components/page/Page.js +13 -12
- package/dist/esm/components/page/parts/PageHeader.d.ts +79 -9
- package/dist/esm/components/page/parts/PageHeader.js +22 -20
- package/dist/esm/components/pagination/Pagination.d.ts +23 -44
- package/dist/esm/components/pagination/Pagination.js +89 -163
- package/dist/esm/components/pagination/PaginationContext.d.ts +11 -0
- package/dist/esm/components/pagination/PaginationContext.js +15 -0
- package/dist/esm/components/pagination/hooks/use-pagination-state.d.ts +63 -0
- package/dist/esm/components/pagination/hooks/use-pagination-state.js +27 -0
- package/dist/esm/components/pagination/hooks/use-pagination-window.d.ts +64 -0
- package/dist/esm/components/pagination/hooks/use-pagination-window.js +15 -0
- package/dist/esm/components/pagination/parts/PaginationContent.d.ts +30 -0
- package/dist/esm/components/pagination/parts/PaginationContent.js +37 -0
- package/dist/esm/components/pagination/parts/PaginationEllipsis.d.ts +23 -4
- package/dist/esm/components/pagination/parts/PaginationEllipsis.js +20 -16
- package/dist/esm/components/pagination/parts/PaginationItem.d.ts +38 -0
- package/dist/esm/components/pagination/parts/PaginationItem.js +22 -0
- package/dist/esm/components/pagination/parts/RawPaginationLink.d.ts +11 -0
- package/dist/esm/components/pagination/parts/RawPaginationLink.js +60 -0
- package/dist/esm/components/pagination/parts/RawPaginationNext.d.ts +22 -0
- package/dist/esm/components/pagination/parts/RawPaginationNext.js +70 -0
- package/dist/esm/components/pagination/parts/RawPaginationPrevious.d.ts +22 -0
- package/dist/esm/components/pagination/parts/RawPaginationPrevious.js +67 -0
- package/dist/esm/components/pagination/utils/pagination-window.js +29 -20
- package/dist/esm/components/payfit-brand/PayFitBrand.d.ts +4 -0
- package/dist/esm/components/payfit-brand/PayFitBrand.js +30 -22
- package/dist/esm/components/payfit-brand/PayFitPreprod.js +25 -25
- package/dist/esm/components/phone-number/PhoneNumberInput.d.ts +67 -0
- package/dist/esm/components/phone-number/PhoneNumberInput.js +322 -0
- package/dist/esm/components/phone-number/TanstackPhoneNumberInput.d.ts +64 -0
- package/dist/esm/components/phone-number/TanstackPhoneNumberInput.js +33 -0
- package/dist/esm/components/phone-number/parts/PhoneNumberItem.d.ts +42 -0
- package/dist/esm/components/phone-number/parts/PhoneNumberItem.js +68 -0
- package/dist/esm/components/phone-number/unknownFlag.svg.js +4 -0
- package/dist/esm/components/phone-number-field/TanstackPhoneNumberField.d.ts +15 -0
- package/dist/esm/components/phone-number-field/TanstackPhoneNumberField.js +32 -0
- package/dist/esm/components/pill/Pill.d.ts +2 -2
- package/dist/esm/components/pill/Pill.js +8 -8
- package/dist/esm/components/popover/Popover.js +6 -6
- package/dist/esm/components/promo-dialog/PromoDialog.d.ts +149 -0
- package/dist/esm/components/promo-dialog/PromoDialog.js +219 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogActions.d.ts +44 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogActions.js +29 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogContent.d.ts +43 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogContent.js +20 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogHero.d.ts +47 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogHero.js +25 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogSubtitle.d.ts +53 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogSubtitle.js +21 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogTitle.d.ts +6 -0
- package/dist/esm/components/promo-dialog/parts/PromoDialogTitle.js +18 -0
- package/dist/esm/components/radio-button-group/TanstackRadioButtonGroup.d.ts +13 -0
- package/dist/esm/components/radio-button-group/TanstackRadioButtonGroup.js +43 -0
- package/dist/esm/components/radio-button-group/parts/RadioButton.d.ts +29 -11
- package/dist/esm/components/radio-button-group/parts/RadioButton.js +53 -51
- package/dist/esm/components/radio-button-group-field/RadioButtonGroupField.d.ts +2 -0
- package/dist/esm/components/radio-button-group-field/TanstackRadioButtonGroupField.d.ts +13 -0
- package/dist/esm/components/radio-button-group-field/TanstackRadioButtonGroupField.js +38 -0
- package/dist/esm/components/search/Search.js +46 -46
- package/dist/esm/components/segmented-button-group/parts/ToggleButton.js +5 -5
- package/dist/esm/components/select/Select.d.ts +5 -4
- package/dist/esm/components/select/Select.js +79 -53
- package/dist/esm/components/select/TanstackSelect.d.ts +80 -0
- package/dist/esm/components/select/TanstackSelect.js +34 -0
- package/dist/esm/components/select/parts/SearchInput.d.ts +4 -1
- package/dist/esm/components/select/parts/SearchInput.js +49 -31
- package/dist/esm/components/select/parts/SelectButton.js +19 -17
- package/dist/esm/components/select/parts/SelectOption.js +9 -9
- package/dist/esm/components/select-field/SelectField.d.ts +2 -0
- package/dist/esm/components/select-field/SelectField.js +8 -9
- package/dist/esm/components/select-field/TanstackSelectField.d.ts +124 -0
- package/dist/esm/components/select-field/TanstackSelectField.js +44 -0
- package/dist/esm/components/select-list/SelectList.d.ts +95 -0
- package/dist/esm/components/select-list/SelectList.js +79 -0
- package/dist/esm/components/select-list/SelectList.types.d.ts +29 -0
- package/dist/esm/components/select-list/constants.d.ts +36 -0
- package/dist/esm/components/select-list/constants.js +29 -0
- package/dist/esm/components/select-list/helpers.d.ts +42 -0
- package/dist/esm/components/select-list/helpers.js +48 -0
- package/dist/esm/components/select-list/hooks/useControlledSelection.d.ts +23 -0
- package/dist/esm/components/select-list/hooks/useControlledSelection.js +16 -0
- package/dist/esm/components/select-list/hooks/useSelectedFirstSorting.d.ts +23 -0
- package/dist/esm/components/select-list/hooks/useSelectedFirstSorting.js +31 -0
- package/dist/esm/components/select-list/parts/SelectListEmptyState.d.ts +8 -0
- package/dist/esm/components/select-list/parts/SelectListEmptyState.js +25 -0
- package/dist/esm/components/select-list/parts/SelectListOptGroup.d.ts +118 -0
- package/dist/esm/components/select-list/parts/SelectListOptGroup.js +28 -0
- package/dist/esm/components/select-list/parts/SelectListOption.d.ts +24 -0
- package/dist/esm/components/select-list/parts/SelectListOption.js +72 -0
- package/dist/esm/components/select-list/parts/SelectListSearchInput.d.ts +2 -0
- package/dist/esm/components/select-list/parts/SelectListSearchInput.js +43 -0
- package/dist/esm/components/select-list/parts/SelectedItemsSection.d.ts +54 -0
- package/dist/esm/components/select-list/parts/SelectedItemsSection.js +35 -0
- package/dist/esm/components/select-list/utils/partition.d.ts +13 -0
- package/dist/esm/components/select-list/utils/partition.js +9 -0
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.context.d.ts +1 -5
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.d.ts +6 -1
- package/dist/esm/components/selectable-button-group/SelectableButtonGroup.js +23 -23
- package/dist/esm/components/selectable-button-group/TanstackSelectableButtonGroup.d.ts +27 -0
- package/dist/esm/components/selectable-button-group/TanstackSelectableButtonGroup.js +34 -0
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.d.ts +1 -16
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +56 -57
- package/dist/esm/components/selectable-button-group-field/SelectableButtonGroupField.d.ts +2 -0
- package/dist/esm/components/selectable-button-group-field/TanstackSelectableButtonGroupField.d.ts +81 -0
- package/dist/esm/components/selectable-button-group-field/TanstackSelectableButtonGroupField.js +47 -0
- package/dist/esm/components/selectable-card/internals/Description.js +1 -1
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.js +1 -1
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/TanstackSelectableCardCheckboxGroup.d.ts +26 -0
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/TanstackSelectableCardCheckboxGroup.js +32 -0
- package/dist/esm/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.js +24 -24
- package/dist/esm/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.d.ts +2 -0
- package/dist/esm/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.js +12 -14
- package/dist/esm/components/selectable-card/selectable-card-radio-group/TanstackSelectableCardRadioGroup.d.ts +28 -0
- package/dist/esm/components/selectable-card/selectable-card-radio-group/TanstackSelectableCardRadioGroup.js +32 -0
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.js +14 -13
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.js +27 -25
- package/dist/esm/components/selectable-card/selectableCard.variant.js +5 -5
- package/dist/esm/components/selectable-card-checkbox-group-field/SelectableCardCheckboxGroupField.d.ts +2 -0
- package/dist/esm/components/selectable-card-checkbox-group-field/TanstackSelectableCardCheckboxGroupField.d.ts +10 -0
- package/dist/esm/components/selectable-card-checkbox-group-field/TanstackSelectableCardCheckboxGroupField.js +38 -0
- package/dist/esm/components/selectable-card-radio-group-field/SelectableCardRadioGroupField.d.ts +2 -0
- package/dist/esm/components/selectable-card-radio-group-field/TanstackSelectableCardRadioGroupField.d.ts +10 -0
- package/dist/esm/components/selectable-card-radio-group-field/TanstackSelectableCardRadioGroupField.js +38 -0
- package/dist/esm/components/skip-links/SkipLinks.js +1 -1
- package/dist/esm/components/table/Table.context.d.ts +5 -0
- package/dist/esm/components/table/Table.context.js +14 -13
- package/dist/esm/components/table/Table.d.ts +94 -0
- package/dist/esm/components/table/Table.js +145 -108
- package/dist/esm/components/table/hooks/useTableKeyboardNavigation.js +6 -6
- package/dist/esm/components/table/parts/TableBody.js +83 -21
- package/dist/esm/components/table/parts/TableCell.js +29 -26
- package/dist/esm/components/table/parts/TableEmptyState.js +6 -6
- package/dist/esm/components/table/parts/TableHeader.js +1 -1
- package/dist/esm/components/table/parts/TablePagination.d.ts +5 -5
- package/dist/esm/components/table/parts/TablePagination.js +11 -11
- package/dist/esm/components/table/parts/TableRow.js +22 -18
- package/dist/esm/components/tabs/Tabs.variant.d.ts +0 -6
- package/dist/esm/components/tabs/Tabs.variant.js +11 -12
- package/dist/esm/components/tabs/parts/{Tab.d.ts → RawTab.d.ts} +2 -2
- package/dist/esm/components/tabs/parts/{Tab.js → RawTab.js} +6 -6
- package/dist/esm/components/task-menu/TaskMenu.d.ts +4 -4
- package/dist/esm/components/task-menu/parts/{SubTask.d.ts → RawSubTask.d.ts} +7 -7
- package/dist/esm/components/task-menu/parts/{SubTask.js → RawSubTask.js} +43 -43
- package/dist/esm/components/task-menu/parts/{Task.d.ts → RawTask.d.ts} +7 -7
- package/dist/esm/components/task-menu/parts/{Task.js → RawTask.js} +45 -41
- package/dist/esm/components/task-menu/parts/TaskGroup.d.ts +5 -5
- package/dist/esm/components/task-menu/parts/TaskGroup.js +30 -26
- package/dist/esm/components/task-menu/parts/task.variants.js +4 -2
- package/dist/esm/components/text/Text.d.ts +11 -1
- package/dist/esm/components/text/Text.js +43 -30
- package/dist/esm/components/text/Text.variants.d.ts +12 -0
- package/dist/esm/components/text/Text.variants.js +4 -0
- package/dist/esm/components/text-area/TanstackTextArea.d.ts +21 -0
- package/dist/esm/components/text-area/TanstackTextArea.js +35 -0
- package/dist/esm/components/text-area/TextArea.js +31 -29
- package/dist/esm/components/text-field/TanstackTextField.d.ts +79 -0
- package/dist/esm/components/text-field/TanstackTextField.js +60 -0
- package/dist/esm/components/text-field/TextField.d.ts +2 -0
- package/dist/esm/components/toast/UnityToast.js +5 -5
- package/dist/esm/components/toast/test-utils.d.ts +36 -0
- package/dist/esm/components/toast/test-utils.js +118 -0
- package/dist/esm/components/toggle-switch/TanstackToggleSwitch.d.ts +46 -0
- package/dist/esm/components/toggle-switch/TanstackToggleSwitch.js +25 -0
- package/dist/esm/components/toggle-switch/ToggleSwitch.d.ts +21 -9
- package/dist/esm/components/toggle-switch/ToggleSwitch.js +71 -32
- package/dist/esm/components/toggle-switch-field/TanstackToggleSwitchField.d.ts +11 -0
- package/dist/esm/components/toggle-switch-field/TanstackToggleSwitchField.js +34 -0
- package/dist/esm/components/toggle-switch-field/ToggleSwitchField.d.ts +2 -0
- package/dist/esm/components/toggle-switch-group/TanstackToggleSwitchGroup.d.ts +57 -0
- package/dist/esm/components/toggle-switch-group/TanstackToggleSwitchGroup.js +23 -0
- package/dist/esm/components/toggle-switch-group/ToggleSwitchGroup.js +1 -1
- package/dist/esm/components/toggle-switch-group-field/TanstackToggleSwitchGroupField.d.ts +19 -0
- package/dist/esm/components/toggle-switch-group-field/TanstackToggleSwitchGroupField.js +50 -0
- package/dist/esm/components/toggle-switch-group-field/ToggleSwitchGroupField.d.ts +2 -0
- package/dist/esm/docs/{table → examples/data}/mocks/employee-columns.d.ts +1 -1
- package/dist/esm/hooks/tanstack-form-context.d.ts +1 -0
- package/dist/esm/hooks/tanstack-form-context.js +8 -0
- package/dist/esm/hooks/use-container-query-level.d.ts +42 -0
- package/dist/esm/hooks/use-container-query-level.js +33 -0
- package/dist/esm/hooks/use-form.d.ts +2 -0
- package/dist/esm/hooks/use-has-scroll.d.ts +71 -0
- package/dist/esm/hooks/use-has-scroll.js +75 -0
- package/dist/esm/hooks/use-tanstack-form.d.ts +369 -0
- package/dist/esm/hooks/use-tanstack-form.js +209 -0
- package/dist/esm/index.d.ts +64 -30
- package/dist/esm/index.js +482 -394
- package/dist/esm/index.storybook-testing.d.ts +3 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/Breadcrumb.d.ts +23 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/BreadcrumbLink.d.ts +38 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/BreadcrumbLink.js +7 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/Breadcrumbs.d.ts +23 -0
- package/dist/esm/integrations/tanstack-router/components/breadcrumbs/use-route-breadcrumb.d.ts +53 -0
- package/dist/esm/integrations/tanstack-router/components/form-contextual-link/FormContextualLink.d.ts +45 -0
- package/dist/esm/integrations/tanstack-router/components/form-contextual-link/FormContextualLink.js +7 -0
- package/dist/esm/integrations/tanstack-router/components/form-contextual-link/TanstackFormContextualLink.d.ts +43 -0
- package/dist/esm/integrations/tanstack-router/components/link/Link.d.ts +33 -0
- package/dist/esm/integrations/tanstack-router/components/link/Link.js +7 -0
- package/dist/esm/integrations/tanstack-router/components/list-view/ListView.d.ts +34 -0
- package/dist/esm/integrations/tanstack-router/components/list-view/ListView.js +25 -0
- package/dist/esm/integrations/tanstack-router/components/list-view/parts/ListViewItem.d.ts +51 -0
- package/dist/esm/integrations/tanstack-router/components/list-view/parts/ListViewItem.js +32 -0
- package/dist/esm/integrations/tanstack-router/components/menu-item/MenuItem.d.ts +49 -0
- package/dist/esm/integrations/tanstack-router/components/menu-item/MenuItem.js +16 -0
- package/dist/esm/integrations/tanstack-router/components/nav-item/NavItem.d.ts +52 -0
- package/dist/esm/integrations/tanstack-router/components/nav-item/NavItem.js +29 -0
- package/dist/esm/integrations/tanstack-router/components/navigation-card/NavigationCard.d.ts +73 -0
- package/dist/esm/integrations/tanstack-router/components/navigation-card/NavigationCard.js +37 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationLink.d.ts +54 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationLink.js +21 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationNext.d.ts +52 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationNext.js +22 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationPrevious.d.ts +51 -0
- package/dist/esm/integrations/tanstack-router/components/pagination/PaginationPrevious.js +22 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/Tabs.d.ts +82 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/Tabs.js +41 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/Tab.d.ts +52 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/Tab.js +15 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/TabList.d.ts +5 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/TabPanel.d.ts +77 -0
- package/dist/esm/integrations/tanstack-router/components/tabs/parts/TabPanel.js +16 -0
- package/dist/esm/integrations/tanstack-router/components/task-menu/SubTask.d.ts +69 -0
- package/dist/esm/integrations/tanstack-router/components/task-menu/SubTask.js +14 -0
- package/dist/esm/integrations/tanstack-router/components/task-menu/Task.d.ts +64 -0
- package/dist/esm/integrations/tanstack-router/components/task-menu/Task.js +14 -0
- package/dist/esm/integrations/tanstack-router/index.d.ts +19 -0
- package/dist/esm/integrations/tanstack-router/utils/decorators.d.ts +23 -0
- package/dist/esm/integrations/tanstack-router.js +40 -0
- package/dist/esm/mocks/employees.d.ts +1 -5
- package/dist/esm/providers/router/RouterProvider.d.ts +7 -2
- package/dist/esm/providers/router/RouterProvider.js +14 -10
- package/dist/esm/storybook-testing.js +8 -2
- package/dist/esm/storybook-utilities/previewTransform.d.ts +1 -0
- package/dist/esm/types/DataAttributes.d.ts +1 -1
- package/dist/esm/utils/scroll-detection.d.ts +77 -0
- package/dist/esm/utils/scroll-detection.js +33 -0
- package/dist/esm/utils/spacing.d.ts +63 -0
- package/dist/esm/utils/spacing.js +15 -0
- package/i18n/en-GB.json +22 -8
- package/i18n/es-ES.json +24 -10
- package/i18n/fr-FR.json +25 -11
- package/package.json +66 -45
- package/dist/esm/components/form-field/parts/FormContextualLink.d.ts +0 -20
- package/dist/esm/components/form-field/parts/FormContextualLink.js +0 -37
- package/dist/esm/components/link/Link.d.ts +0 -93
- package/dist/esm/components/link/Link.js +0 -68
- package/dist/esm/components/multi-select/Multiselect.types.d.ts +0 -109
- package/dist/esm/components/nav/parts/NavItem.js +0 -95
- package/dist/esm/integrations/react-router/v5/UnityReactRouterV5Provider.d.ts +0 -6
- package/dist/esm/integrations/react-router/v5/UnityReactRouterV5Provider.js +0 -28
- package/dist/esm/integrations/react-router/v5/index.d.ts +0 -1
- package/dist/esm/integrations/react-router/v5.js +0 -4
- /package/dist/esm/components/{pagination → client-side-pagination}/hooks/use-pagination.d.ts +0 -0
- /package/dist/esm/components/{pagination → client-side-pagination}/hooks/use-pagination.js +0 -0
- /package/dist/esm/components/{pagination → client-side-pagination}/parts/PaginationJumpDialog.js +0 -0
- /package/dist/esm/components/{pagination → client-side-pagination}/parts/PaginationNavButton.d.ts +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import P, { forwardRef as T, useCallback as
|
|
3
|
-
import { uyTv as
|
|
4
|
-
import { Toolbar as
|
|
2
|
+
import P, { forwardRef as T, useCallback as R, isValidElement as j } from "react";
|
|
3
|
+
import { uyTv as z } from "@payfit/unity-themes";
|
|
4
|
+
import { Toolbar as D, Group as y } from "react-aria-components";
|
|
5
5
|
import { useIntl as S, FormattedMessage as l } from "react-intl";
|
|
6
6
|
import { Button as _ } from "../button/Button.js";
|
|
7
7
|
import { IconButton as E } from "../icon-button/IconButton.js";
|
|
8
8
|
import { Icon as F } from "../icon/Icon.js";
|
|
9
9
|
import { Menu as G } from "../menu/Menu.js";
|
|
10
10
|
import { MenuContent as K } from "../menu/parts/MenuContent.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { MenuTrigger as L } from "../menu/parts/MenuTrigger.js";
|
|
12
|
+
import { RawMenuItem as O } from "../menu/parts/RawMenuItem.js";
|
|
13
13
|
import { ActionBarAction as U } from "./parts/ActionBarAction.js";
|
|
14
|
-
const V =
|
|
14
|
+
const V = z({
|
|
15
15
|
slots: {
|
|
16
16
|
base: [
|
|
17
17
|
"uy:bg-surface-inverted uy:text-content-inverted",
|
|
@@ -46,14 +46,14 @@ const V = D({
|
|
|
46
46
|
const { base: g, selectionArea: x, selectionCountText: A, actionArea: M } = V(), m = S(), s = a !== void 0 && typeof r == "function", k = i["aria-keyshortcuts"] !== void 0, B = p ?? m.formatMessage({
|
|
47
47
|
id: "unity:component:action-bar:toolbar-label",
|
|
48
48
|
defaultMessage: "Bulk actions toolbar"
|
|
49
|
-
}), I =
|
|
49
|
+
}), I = R(() => {
|
|
50
50
|
if (s) {
|
|
51
51
|
const e = r;
|
|
52
52
|
return a.map((o, N) => e(o, N));
|
|
53
53
|
}
|
|
54
54
|
return r;
|
|
55
|
-
}, [r, a, s]),
|
|
56
|
-
if (!
|
|
55
|
+
}, [r, a, s]), w = !!r || "actions" in i && i.actions.length > 0, C = s ? a.filter((e) => e.variant !== "primary") : P.Children.map(r, (e) => {
|
|
56
|
+
if (!j(e) || e.type !== U)
|
|
57
57
|
return null;
|
|
58
58
|
const o = e.props;
|
|
59
59
|
return o.variant === "primary" ? null : {
|
|
@@ -66,7 +66,7 @@ const V = D({
|
|
|
66
66
|
};
|
|
67
67
|
})?.filter(Boolean);
|
|
68
68
|
return /* @__PURE__ */ n(
|
|
69
|
-
|
|
69
|
+
D,
|
|
70
70
|
{
|
|
71
71
|
...i,
|
|
72
72
|
id: d,
|
|
@@ -126,7 +126,7 @@ const V = D({
|
|
|
126
126
|
]
|
|
127
127
|
}
|
|
128
128
|
),
|
|
129
|
-
|
|
129
|
+
w && /* @__PURE__ */ n(
|
|
130
130
|
y,
|
|
131
131
|
{
|
|
132
132
|
className: M(),
|
|
@@ -135,7 +135,7 @@ const V = D({
|
|
|
135
135
|
children: [
|
|
136
136
|
I(),
|
|
137
137
|
/* @__PURE__ */ t("div", { className: "uy:block uy:md:hidden", children: /* @__PURE__ */ n(G, { children: [
|
|
138
|
-
/* @__PURE__ */ t(
|
|
138
|
+
/* @__PURE__ */ t(L, { asChild: !0, children: /* @__PURE__ */ t(
|
|
139
139
|
E,
|
|
140
140
|
{
|
|
141
141
|
icon: "DotsThreeOutlined",
|
|
@@ -144,8 +144,8 @@ const V = D({
|
|
|
144
144
|
color: "inverted"
|
|
145
145
|
}
|
|
146
146
|
) }),
|
|
147
|
-
/* @__PURE__ */ t(K, { children:
|
|
148
|
-
|
|
147
|
+
/* @__PURE__ */ t(K, { children: C.map((e) => /* @__PURE__ */ t(
|
|
148
|
+
O,
|
|
149
149
|
{
|
|
150
150
|
onAction: () => {
|
|
151
151
|
e.onPress?.({});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { uyTv as
|
|
4
|
-
import { useFocusVisible as
|
|
5
|
-
import { useObjectRef as
|
|
6
|
-
import { useButton as
|
|
7
|
-
const
|
|
1
|
+
import { jsx as H } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as k, useState as F, useMemo as E } from "react";
|
|
3
|
+
import { uyTv as N } from "@payfit/unity-themes";
|
|
4
|
+
import { useFocusVisible as x, useHover as S, useFocus as U } from "@react-aria/interactions";
|
|
5
|
+
import { useObjectRef as V, mergeProps as f } from "@react-aria/utils";
|
|
6
|
+
import { useButton as j } from "react-aria";
|
|
7
|
+
const w = N({
|
|
8
8
|
base: "uy:group",
|
|
9
9
|
variants: {
|
|
10
10
|
isUnstyled: {
|
|
@@ -19,45 +19,48 @@ const V = F({
|
|
|
19
19
|
defaultVariants: {
|
|
20
20
|
isUnstyled: !1
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), A = k((v, e) => {
|
|
23
23
|
const {
|
|
24
24
|
asElement: l = "div",
|
|
25
|
-
isUnstyled:
|
|
26
|
-
className:
|
|
25
|
+
isUnstyled: d = !1,
|
|
26
|
+
className: c,
|
|
27
27
|
children: o,
|
|
28
28
|
...s
|
|
29
|
-
} =
|
|
30
|
-
e =
|
|
31
|
-
const { isFocusVisible: i } =
|
|
29
|
+
} = v;
|
|
30
|
+
e = V(e);
|
|
31
|
+
const { isFocusVisible: i } = x(), { isHovered: a, hoverProps: u } = S({
|
|
32
32
|
onHoverStart: s.onHoverStart,
|
|
33
33
|
onHoverEnd: s.onHoverEnd,
|
|
34
34
|
onHoverChange: s.onHoverChange,
|
|
35
35
|
isDisabled: s.isDisabled
|
|
36
|
-
}), [t, D] =
|
|
36
|
+
}), [t, D] = F(!1), { focusProps: b } = U({
|
|
37
37
|
onFocusChange: D,
|
|
38
38
|
isDisabled: s.isDisabled
|
|
39
|
-
}), { buttonProps:
|
|
39
|
+
}), { buttonProps: m, isPressed: n } = j(
|
|
40
40
|
{
|
|
41
41
|
...s,
|
|
42
42
|
isDisabled: s.isDisabled,
|
|
43
43
|
elementType: l
|
|
44
44
|
},
|
|
45
45
|
e
|
|
46
|
-
), y =
|
|
46
|
+
), y = E(
|
|
47
|
+
() => w({ isUnstyled: d, className: c }),
|
|
48
|
+
[c, d]
|
|
49
|
+
), g = l, C = (r) => {
|
|
47
50
|
if (s.isDisabled) {
|
|
48
|
-
|
|
51
|
+
r.preventDefault(), r.stopPropagation();
|
|
49
52
|
return;
|
|
50
53
|
}
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
}, P =
|
|
54
|
-
return /* @__PURE__ */
|
|
55
|
-
|
|
54
|
+
const p = f(m, u, b);
|
|
55
|
+
p.onClick && p.onClick(r);
|
|
56
|
+
}, P = f(m, u, b), { onClick: M, ...h } = P;
|
|
57
|
+
return /* @__PURE__ */ H(
|
|
58
|
+
g,
|
|
56
59
|
{
|
|
57
60
|
...h,
|
|
58
|
-
onClick:
|
|
59
|
-
className:
|
|
60
|
-
...
|
|
61
|
+
onClick: C,
|
|
62
|
+
className: y,
|
|
63
|
+
...n && { "data-pressed": n },
|
|
61
64
|
...t && { "data-focused": t },
|
|
62
65
|
...a && { "data-hovered": a },
|
|
63
66
|
...s.isDisabled && { "data-disabled": s.isDisabled },
|
|
@@ -65,7 +68,7 @@ const V = F({
|
|
|
65
68
|
ref: e,
|
|
66
69
|
children: typeof o == "function" ? o({
|
|
67
70
|
isHovered: a,
|
|
68
|
-
isPressed:
|
|
71
|
+
isPressed: n,
|
|
69
72
|
isFocused: t,
|
|
70
73
|
isDisabled: !!s.isDisabled,
|
|
71
74
|
isFocusVisible: i,
|
|
@@ -75,7 +78,7 @@ const V = F({
|
|
|
75
78
|
}
|
|
76
79
|
);
|
|
77
80
|
});
|
|
78
|
-
|
|
81
|
+
A.displayName = "Actionable";
|
|
79
82
|
export {
|
|
80
|
-
|
|
83
|
+
A as Actionable
|
|
81
84
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as b } from "react";
|
|
3
3
|
import { uyTv as g } from "@payfit/unity-themes";
|
|
4
|
-
import { CircularIconButton as
|
|
5
|
-
import { Icon as
|
|
6
|
-
const
|
|
4
|
+
import { CircularIconButton as a } from "../icon-button/CircularIconButton.js";
|
|
5
|
+
import { Icon as w } from "../icon/Icon.js";
|
|
6
|
+
const p = g({
|
|
7
7
|
slots: {
|
|
8
|
-
base: "uy:p-200 uy:flex uy:gap-200 uy:border uy:border-solid uy:rounded-100",
|
|
9
|
-
content: "uy:flex uy:flex-col uy:flex-1 uy:
|
|
10
|
-
icon: "uy:mt-50"
|
|
8
|
+
base: "uy:p-200 uy:flex uy:flex-col uy:sm:flex-row uy:gap-100 uy:sm:gap-200 uy:border uy:border-solid uy:rounded-150 uy:sm:rounded-100",
|
|
9
|
+
content: "uy:flex uy:flex-col uy:flex-1 uy:[&>header:has(+*:not(footer))]:mb-100 uy:[&>*+footer]:mt-200",
|
|
10
|
+
icon: "uy:sm:mt-50 uy:flex uy:justify-between uy:items-center uy:sm:items-start"
|
|
11
11
|
},
|
|
12
12
|
variants: {
|
|
13
13
|
variant: {
|
|
@@ -28,43 +28,55 @@ const w = g({
|
|
|
28
28
|
defaultVariants: {
|
|
29
29
|
variant: "info"
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
31
|
+
}), x = {
|
|
32
32
|
info: { src: "InfoFilled", color: "content.info" },
|
|
33
33
|
warning: { src: "WarningFilled", color: "content.warning" },
|
|
34
34
|
success: { src: "CheckCircleFilled", color: "content.success" },
|
|
35
35
|
danger: { src: "WarningCircleFilled", color: "content.danger" }
|
|
36
|
-
},
|
|
36
|
+
}, h = b(
|
|
37
37
|
({
|
|
38
|
-
children:
|
|
38
|
+
children: c,
|
|
39
39
|
variant: e,
|
|
40
|
-
isDismissable:
|
|
41
|
-
onDismiss:
|
|
42
|
-
dismissButtonLabel:
|
|
43
|
-
...
|
|
44
|
-
},
|
|
45
|
-
const { base:
|
|
40
|
+
isDismissable: o,
|
|
41
|
+
onDismiss: s,
|
|
42
|
+
dismissButtonLabel: n,
|
|
43
|
+
...l
|
|
44
|
+
}, i) => {
|
|
45
|
+
const { base: u, content: d, icon: y } = p({ variant: e }), f = x[e], m = {
|
|
46
46
|
role: e === "danger" ? "alert" : "status",
|
|
47
47
|
"aria-live": e === "danger" ? "assertive" : "polite",
|
|
48
48
|
"aria-atomic": !0,
|
|
49
49
|
"aria-relevant": "additions removals"
|
|
50
50
|
};
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ t(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
"data-dd-privacy": "mask",
|
|
55
|
-
ref:
|
|
56
|
-
className:
|
|
57
|
-
...
|
|
58
|
-
...
|
|
55
|
+
ref: i,
|
|
56
|
+
className: u(),
|
|
57
|
+
...m,
|
|
58
|
+
...l,
|
|
59
59
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
/* @__PURE__ */ t("div", { className: y(), children: [
|
|
61
|
+
/* @__PURE__ */ r(w, { size: 24, ...f, alt: `${e} alert` }),
|
|
62
|
+
o && /* @__PURE__ */ r(
|
|
63
|
+
a,
|
|
64
|
+
{
|
|
65
|
+
title: n,
|
|
66
|
+
icon: "CloseOutlined",
|
|
67
|
+
onPress: s,
|
|
68
|
+
className: "uy:sm:hidden"
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] }),
|
|
72
|
+
/* @__PURE__ */ r("section", { className: d(), children: c }),
|
|
73
|
+
o && /* @__PURE__ */ r(
|
|
74
|
+
a,
|
|
64
75
|
{
|
|
65
|
-
title:
|
|
76
|
+
title: n,
|
|
66
77
|
icon: "CloseOutlined",
|
|
67
|
-
onPress:
|
|
78
|
+
onPress: s,
|
|
79
|
+
className: "uy:hidden uy:sm:flex"
|
|
68
80
|
}
|
|
69
81
|
)
|
|
70
82
|
]
|
|
@@ -72,7 +84,7 @@ const w = g({
|
|
|
72
84
|
);
|
|
73
85
|
}
|
|
74
86
|
);
|
|
75
|
-
|
|
87
|
+
h.displayName = "Alert";
|
|
76
88
|
export {
|
|
77
|
-
|
|
89
|
+
h as Alert
|
|
78
90
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Text as
|
|
4
|
-
const l =
|
|
5
|
-
({ children: e, asElement: t = "h3", ...
|
|
6
|
-
|
|
2
|
+
import { forwardRef as a } from "react";
|
|
3
|
+
import { Text as i } from "../../text/Text.js";
|
|
4
|
+
const l = a(
|
|
5
|
+
({ children: e, asElement: t = "h3", ...m }, o) => /* @__PURE__ */ r("header", { children: /* @__PURE__ */ r(
|
|
6
|
+
i,
|
|
7
7
|
{
|
|
8
8
|
variant: "h4",
|
|
9
9
|
asElement: t,
|
|
10
|
-
ref:
|
|
11
|
-
className: "uy:pt-50",
|
|
12
|
-
...
|
|
10
|
+
ref: o,
|
|
11
|
+
className: "uy:sm:pt-50",
|
|
12
|
+
...m,
|
|
13
13
|
children: e
|
|
14
14
|
}
|
|
15
15
|
) })
|
|
@@ -23,5 +23,7 @@ export type AppLayoutProps = PropsWithChildren<{
|
|
|
23
23
|
/**
|
|
24
24
|
* The `AppLayout` component creates a responsive base structure with a fixed menu sidebar.
|
|
25
25
|
* Use this when you need a complex layout with a persistent navigation menu.
|
|
26
|
+
*
|
|
27
|
+
* On mobile devices, the menu appears above the content, and the content area becomes scrollable while the menu remains static.
|
|
26
28
|
*/
|
|
27
29
|
export declare function AppLayout({ children, menu: MenuElement, header: HeaderElement, footer: FooterElement, withoutContentPadding, }: AppLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -37,36 +37,36 @@ const w = x({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
function R({
|
|
40
|
-
children:
|
|
41
|
-
menu:
|
|
42
|
-
header:
|
|
40
|
+
children: l,
|
|
41
|
+
menu: a,
|
|
42
|
+
header: r,
|
|
43
43
|
footer: u,
|
|
44
|
-
withoutContentPadding:
|
|
44
|
+
withoutContentPadding: p = !1
|
|
45
45
|
}) {
|
|
46
|
-
const
|
|
47
|
-
ref:
|
|
46
|
+
const o = v(null), { height: y = 0 } = g({
|
|
47
|
+
ref: o,
|
|
48
48
|
box: "border-box"
|
|
49
|
-
}), { body:
|
|
50
|
-
withoutContentPadding:
|
|
49
|
+
}), { body: s, header: n, menu: d, layoutWrapper: i, contentWrapper: c, content: f, footer: h } = w({
|
|
50
|
+
withoutContentPadding: p
|
|
51
51
|
}), m = {
|
|
52
|
-
"--uy-app-layout-menu-height": `calc(100dvh - ${
|
|
53
|
-
"--uy-app-layout-header-sticky-offset": `${
|
|
52
|
+
"--uy-app-layout-menu-height": `calc(100dvh - ${y}px)`,
|
|
53
|
+
"--uy-app-layout-header-sticky-offset": `${y}px`
|
|
54
54
|
};
|
|
55
|
-
return /* @__PURE__ */ t("div", { className:
|
|
56
|
-
|
|
55
|
+
return /* @__PURE__ */ t("div", { className: s(), style: m, children: [
|
|
56
|
+
r && /* @__PURE__ */ e(
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
|
-
ref:
|
|
60
|
-
className:
|
|
59
|
+
ref: o,
|
|
60
|
+
className: n(),
|
|
61
61
|
role: "alert",
|
|
62
62
|
"aria-live": "assertive",
|
|
63
|
-
children:
|
|
63
|
+
children: r
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
66
|
/* @__PURE__ */ t("div", { className: i(), children: [
|
|
67
|
-
/* @__PURE__ */ e("div", { className: d(), children:
|
|
67
|
+
a && /* @__PURE__ */ e("div", { className: d(), children: a }),
|
|
68
68
|
/* @__PURE__ */ t("div", { className: c(), children: [
|
|
69
|
-
/* @__PURE__ */ e("div", { className: f(), children:
|
|
69
|
+
/* @__PURE__ */ e("div", { className: f(), children: l }),
|
|
70
70
|
u && /* @__PURE__ */ e("footer", { className: h(), children: u })
|
|
71
71
|
] })
|
|
72
72
|
] })
|
|
@@ -12,7 +12,7 @@ import { Menu as j } from "../../menu/Menu.js";
|
|
|
12
12
|
import { MenuContent as k } from "../../menu/parts/MenuContent.js";
|
|
13
13
|
import { MenuHeader as E } from "../../menu/parts/MenuHeader.js";
|
|
14
14
|
import { useAppMenuContext as S } from "./AppMenu.context.js";
|
|
15
|
-
const
|
|
15
|
+
const w = (t) => /* @__PURE__ */ l(
|
|
16
16
|
V,
|
|
17
17
|
{
|
|
18
18
|
"aria-label": `${t.title} avatar`,
|
|
@@ -30,12 +30,12 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
30
30
|
), B = ({
|
|
31
31
|
avatar: t,
|
|
32
32
|
avatarPair: a,
|
|
33
|
-
title:
|
|
33
|
+
title: n,
|
|
34
34
|
uploadAvatarCallback: y,
|
|
35
35
|
uploadAvatarLabel: s,
|
|
36
36
|
uploadAvatarDescription: r
|
|
37
37
|
}) => {
|
|
38
|
-
const [
|
|
38
|
+
const [o, u] = v(!0), c = O(), i = () => {
|
|
39
39
|
a && u((f) => !f);
|
|
40
40
|
}, d = g(
|
|
41
41
|
"uy:group/avatar uy:cursor-pointer uy:relative uy:leading-[0] uy:rounded-75 uy:focus-visible:outline-none uy:focus-visible:ring-2 uy:focus-visible:ring-utility-focus-ring uy:focus-visible:ring-offset-2"
|
|
@@ -58,12 +58,12 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
58
58
|
},
|
|
59
59
|
children: [
|
|
60
60
|
/* @__PURE__ */ e(
|
|
61
|
-
|
|
61
|
+
w,
|
|
62
62
|
{
|
|
63
63
|
avatar: t,
|
|
64
64
|
avatarPair: a,
|
|
65
|
-
title:
|
|
66
|
-
isPairAvatarVisible:
|
|
65
|
+
title: n,
|
|
66
|
+
isPairAvatarVisible: o
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
69
|
/* @__PURE__ */ l("div", { className: "uy:flex uy:pointer-events-none uy:opacity-0 uy:group-hover/avatar:opacity-90 uy:group-hover/avatar:pointer-events-auto uy:group-focus-visible/avatar:opacity-90 uy:group-focus-visible/avatar:pointer-events-auto uy:bg-utility-backdrop uy:rounded-75 uy:absolute uy:top-0 uy:left-0 uy:w-full uy:h-full uy:transition-all uy:duration-200 uy:items-center uy:justify-center", children: [
|
|
@@ -90,11 +90,11 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
90
90
|
}, b = ({
|
|
91
91
|
asMenuHeader: t = !1,
|
|
92
92
|
avatar: a,
|
|
93
|
-
avatarPair:
|
|
93
|
+
avatarPair: n,
|
|
94
94
|
badgeLabel: y,
|
|
95
95
|
description: s,
|
|
96
96
|
menuTriggerDescription: r,
|
|
97
|
-
title:
|
|
97
|
+
title: o,
|
|
98
98
|
uploadAvatarCallback: u,
|
|
99
99
|
uploadAvatarLabel: c,
|
|
100
100
|
uploadAvatarDescription: i
|
|
@@ -103,18 +103,18 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
103
103
|
B,
|
|
104
104
|
{
|
|
105
105
|
avatar: a,
|
|
106
|
-
avatarPair:
|
|
107
|
-
title:
|
|
106
|
+
avatarPair: n,
|
|
107
|
+
title: o,
|
|
108
108
|
uploadAvatarLabel: c,
|
|
109
109
|
uploadAvatarDescription: i,
|
|
110
110
|
uploadAvatarCallback: u
|
|
111
111
|
}
|
|
112
112
|
) : /* @__PURE__ */ e(
|
|
113
|
-
|
|
113
|
+
w,
|
|
114
114
|
{
|
|
115
115
|
avatar: a,
|
|
116
|
-
avatarPair:
|
|
117
|
-
title:
|
|
116
|
+
avatarPair: n,
|
|
117
|
+
title: o,
|
|
118
118
|
isPairAvatarVisible: !0
|
|
119
119
|
}
|
|
120
120
|
) }),
|
|
@@ -125,7 +125,7 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
125
125
|
id: "profile-button-label",
|
|
126
126
|
className: "uy:typography-body-strong uy:text-content-neutral uy:text-wrap",
|
|
127
127
|
"data-dd-privacy": "mask",
|
|
128
|
-
children:
|
|
128
|
+
children: o
|
|
129
129
|
}
|
|
130
130
|
),
|
|
131
131
|
/* @__PURE__ */ e(
|
|
@@ -156,17 +156,17 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
156
156
|
] }), D = ({
|
|
157
157
|
avatar: t,
|
|
158
158
|
avatarPair: a,
|
|
159
|
-
badgeLabel:
|
|
159
|
+
badgeLabel: n,
|
|
160
160
|
children: y,
|
|
161
161
|
computeSlot: s,
|
|
162
162
|
description: r,
|
|
163
|
-
title:
|
|
163
|
+
title: o,
|
|
164
164
|
menuTriggerDescription: u,
|
|
165
165
|
uploadAvatarCallback: c,
|
|
166
166
|
uploadAvatarLabel: i,
|
|
167
167
|
uploadAvatarDescription: d
|
|
168
168
|
}) => {
|
|
169
|
-
const { isMobileMenuOpen: f } = S(), [
|
|
169
|
+
const { isMobileMenuOpen: f } = S(), [N, p] = v(!1), m = A(null), P = g(
|
|
170
170
|
"uy:fixed uy:bottom-0 uy:left-0 uy:right-0 uy:z-10 uy:bg-canvas",
|
|
171
171
|
"uy:p-150",
|
|
172
172
|
"uy:md:static uy:md:mt-auto uy:md:p-0 uy:md:bg-[transparent]",
|
|
@@ -184,7 +184,7 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
184
184
|
x,
|
|
185
185
|
{
|
|
186
186
|
ref: m,
|
|
187
|
-
className: "uy:transition-colors uy:rounded-75 uy:px-150 uy:py-100 uy:w-full uy:not-aria-disabled:hover:bg-surface-neutral-hover uy:not-aria-disabled:active:bg-surface-neutral-active uy:not-aria-disabled:data-[pressed=true]:bg-surface-neutral-active uy:not-aria-disabled:focus-visible:outline-none uy:not-aria-disabled:focus-visible:ring-2 uy:not-aria-disabled:focus-visible:ring-utility-focus-ring uy:not-aria-disabled:focus-visible:ring-offset-2",
|
|
187
|
+
className: "uy:transition-colors uy:rounded-75 uy:px-150 uy:py-100 uy:w-full uy:not-aria-disabled:hover:bg-surface-neutral-low-hover uy:not-aria-disabled:active:bg-surface-neutral-low-active uy:not-aria-disabled:data-[pressed=true]:bg-surface-neutral-low-active uy:not-aria-disabled:focus-visible:outline-none uy:not-aria-disabled:focus-visible:ring-2 uy:not-aria-disabled:focus-visible:ring-utility-focus-ring uy:not-aria-disabled:focus-visible:ring-offset-2",
|
|
188
188
|
"aria-labelledby": "profile-button-label",
|
|
189
189
|
"aria-describedby": "profile-button-description",
|
|
190
190
|
onPress: () => {
|
|
@@ -195,10 +195,10 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
195
195
|
{
|
|
196
196
|
avatar: t,
|
|
197
197
|
avatarPair: a,
|
|
198
|
-
badgeLabel:
|
|
198
|
+
badgeLabel: n,
|
|
199
199
|
description: r,
|
|
200
200
|
menuTriggerDescription: u,
|
|
201
|
-
title:
|
|
201
|
+
title: o,
|
|
202
202
|
uploadAvatarCallback: c,
|
|
203
203
|
uploadAvatarLabel: i,
|
|
204
204
|
uploadAvatarDescription: d
|
|
@@ -206,17 +206,17 @@ const N = (t) => /* @__PURE__ */ l(
|
|
|
206
206
|
)
|
|
207
207
|
}
|
|
208
208
|
),
|
|
209
|
-
/* @__PURE__ */ e(j, { isOpen:
|
|
209
|
+
/* @__PURE__ */ e(j, { isOpen: N, onOpenChange: p, children: /* @__PURE__ */ l(k, { width: 312, placement: "top left", triggerRef: m, children: [
|
|
210
210
|
/* @__PURE__ */ e(E, { className: "uy:rounded-75", children: /* @__PURE__ */ e(
|
|
211
211
|
b,
|
|
212
212
|
{
|
|
213
213
|
asMenuHeader: !0,
|
|
214
214
|
avatar: t,
|
|
215
215
|
avatarPair: a,
|
|
216
|
-
badgeLabel:
|
|
216
|
+
badgeLabel: n,
|
|
217
217
|
description: r,
|
|
218
218
|
menuTriggerDescription: u,
|
|
219
|
-
title:
|
|
219
|
+
title: o,
|
|
220
220
|
uploadAvatarCallback: c,
|
|
221
221
|
uploadAvatarLabel: i,
|
|
222
222
|
uploadAvatarDescription: d
|
|
@@ -1,9 +1,91 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export interface AppMenuHeaderProps {
|
|
3
|
+
/**
|
|
4
|
+
* The application environment. Determines which brand logo variant to display.
|
|
5
|
+
*/
|
|
6
|
+
environment: 'prod' | 'staging' | 'dev' | 'local';
|
|
7
|
+
/**
|
|
8
|
+
* Accessible label for the brand logo link.
|
|
9
|
+
*/
|
|
10
|
+
brandLabel: string;
|
|
11
|
+
/**
|
|
12
|
+
* Optional notification component to display in the header.
|
|
13
|
+
*/
|
|
6
14
|
notificationsComponent?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Optional search component to display in the header.
|
|
17
|
+
*/
|
|
7
18
|
searchComponent?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Render function for the brand logo link. Enables integration with any routing library.
|
|
21
|
+
* Provides href and children (the logo component) for flexible link implementation.
|
|
22
|
+
* Defaults to React Aria's Link component, which works with Unity's RouterProvider for router-agnostic behavior.
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // With Tanstack Router
|
|
26
|
+
* import { Link } from '@tanstack/react-router'
|
|
27
|
+
*
|
|
28
|
+
* <AppMenuHeader
|
|
29
|
+
* renderLink={({ href, children }) => (
|
|
30
|
+
* <Link to={href}>{children}</Link>
|
|
31
|
+
* )}
|
|
32
|
+
* />
|
|
33
|
+
*
|
|
34
|
+
* // With React Router v5/v6
|
|
35
|
+
* import { Link } from 'react-router-dom'
|
|
36
|
+
*
|
|
37
|
+
* <AppMenuHeader
|
|
38
|
+
* renderLink={({ href, children }) => (
|
|
39
|
+
* <Link to={href}>{children}</Link>
|
|
40
|
+
* )}
|
|
41
|
+
* />
|
|
42
|
+
*
|
|
43
|
+
* // With plain HTML link
|
|
44
|
+
* <AppMenuHeader
|
|
45
|
+
* renderLink={({ href, children }) => (
|
|
46
|
+
* <a href={href}>{children}</a>
|
|
47
|
+
* )}
|
|
48
|
+
* />
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
renderLink?: (props: {
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
}) => ReactNode;
|
|
8
54
|
}
|
|
9
|
-
|
|
55
|
+
/**
|
|
56
|
+
* The header section of the AppMenu component, displaying the PayFit brand logo, search, and notifications.
|
|
57
|
+
* Provides a router-agnostic approach through a render prop pattern for the brand logo link.
|
|
58
|
+
* @param props - Component props
|
|
59
|
+
* @param props.environment - The application environment (determines brand logo variant)
|
|
60
|
+
* @param props.brandLabel - Accessible label for the brand logo link
|
|
61
|
+
* @param props.notificationsComponent - Optional notification component to display
|
|
62
|
+
* @param props.searchComponent - Optional search component to display
|
|
63
|
+
* @param props.renderLink - Optional render function for custom link implementation
|
|
64
|
+
* @example
|
|
65
|
+
* ```tsx
|
|
66
|
+
* import { AppMenuHeader } from '@payfit/unity-components'
|
|
67
|
+
*
|
|
68
|
+
* function AppShell() {
|
|
69
|
+
* return (
|
|
70
|
+
* <AppMenu>
|
|
71
|
+
* <AppMenuHeader
|
|
72
|
+
* environment="production"
|
|
73
|
+
* linkHref="/"
|
|
74
|
+
* linkLabel="PayFit Home"
|
|
75
|
+
* />
|
|
76
|
+
* </AppMenu>
|
|
77
|
+
* )
|
|
78
|
+
* }
|
|
79
|
+
* ```
|
|
80
|
+
* @remarks
|
|
81
|
+
* - The brand logo automatically adapts based on the environment prop (production displays standard logo, others display pre-production variants)
|
|
82
|
+
* - By default, uses React Aria's Link component which integrates with Unity's RouterProvider
|
|
83
|
+
* - For router-specific implementations, pass a custom `renderLink` function with your router's Link component
|
|
84
|
+
* - On mobile viewports, displays a menu toggle button; on desktop, displays the brand logo with optional search and notifications
|
|
85
|
+
* @see {@link AppMenuHeaderProps} for all available props
|
|
86
|
+
* @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/libs/shared/unity/components/src/components/app-menu GitHub}
|
|
87
|
+
* @see Design specs {@link https://www.figma.com/design/poaMyU7abAgL9VRhx4ygyy/Unity-DS-%3E-Components-Library Figma}
|
|
88
|
+
* @see Design docs in {@link https://www.payfit.design/ Payfit.design}
|
|
89
|
+
* @see Developer docs in {@link https://unity-components.payfit.io/?path=/ unity-components.payfit.io}
|
|
90
|
+
*/
|
|
91
|
+
export declare const AppMenuHeader: ({ environment, brandLabel: linkLabel, notificationsComponent, searchComponent, renderLink, }: AppMenuHeaderProps) => import("react/jsx-runtime").JSX.Element;
|