@payfit/unity-components 0.0.0-alpha.15 → 0.0.0-alpha.17
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/actionable/Actionable.d.ts +3 -1
- package/dist/esm/components/actionable/Actionable.js +59 -18
- package/dist/esm/components/app-menu/parts/AppMenuFooter.js +100 -99
- package/dist/esm/components/autocomplete/parts/AutocompleteItemGroup.d.ts +5 -5
- package/dist/esm/components/autocomplete/parts/AutocompletePanel.d.ts +5 -5
- package/dist/esm/components/bottom-sheet/BottomSheet.js +1 -1
- package/dist/esm/components/bottom-sheet/parts/BottomSheetHeader.d.ts +5 -5
- package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/esm/components/breadcrumbs/Breadcrumbs.js +19 -10
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.d.ts +1 -1
- package/dist/esm/components/breadcrumbs/parts/Breadcrumb.js +22 -20
- package/dist/esm/components/button/Button.variants.d.ts +2 -0
- package/dist/esm/components/button/Button.variants.js +20 -1
- package/dist/esm/components/data-table/DataTable.js +27 -27
- package/dist/esm/components/dialog/Dialog.js +1 -1
- package/dist/esm/components/fieldset/Fieldset.d.ts +2 -2
- package/dist/esm/components/form/Form.context.js +3 -3
- package/dist/esm/components/funnel-layout/FunnelLayout.context.d.ts +18 -0
- package/dist/esm/components/funnel-layout/FunnelLayout.context.js +27 -0
- package/dist/esm/components/funnel-layout/FunnelLayout.d.ts +40 -0
- package/dist/esm/components/funnel-layout/FunnelLayout.js +137 -0
- package/dist/esm/components/funnel-layout/parts/FunnelBody.d.ts +36 -0
- package/dist/esm/components/funnel-layout/parts/FunnelBody.js +23 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPage.d.ts +36 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPage.js +36 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageAction.d.ts +40 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageAction.js +36 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageActions.d.ts +47 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageActions.js +41 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageContent.d.ts +35 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageContent.js +23 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageFooter.d.ts +36 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageFooter.js +29 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageHeader.d.ts +101 -0
- package/dist/esm/components/funnel-layout/parts/FunnelPageHeader.js +55 -0
- package/dist/esm/components/funnel-layout/parts/FunnelProgressBar.d.ts +81 -0
- package/dist/esm/components/funnel-layout/parts/FunnelProgressBar.js +49 -0
- package/dist/esm/components/funnel-layout/parts/FunnelSidebar.d.ts +75 -0
- package/dist/esm/components/funnel-layout/parts/FunnelSidebar.js +44 -0
- package/dist/esm/components/funnel-layout/parts/FunnelTopBar.d.ts +107 -0
- package/dist/esm/components/funnel-layout/parts/FunnelTopBar.js +125 -0
- package/dist/esm/components/icon-button/IconButton.d.ts +1 -4
- package/dist/esm/components/icon-button/IconButton.js +52 -49
- package/dist/esm/components/icon-button/IconButton.variants.d.ts +2 -0
- package/dist/esm/components/icon-button/IconButton.variants.js +30 -7
- package/dist/esm/components/menu/Menu.d.ts +2 -5
- package/dist/esm/components/menu/Menu.js +6 -6
- package/dist/esm/components/menu/parts/MenuContent.d.ts +2 -1
- package/dist/esm/components/menu/parts/MenuContent.js +10 -8
- package/dist/esm/components/page/parts/PageHeader.d.ts +5 -5
- package/dist/esm/components/pagination/parts/PaginationEllipsis.d.ts +7 -2
- package/dist/esm/components/select/parts/SearchInput.js +2 -1
- package/dist/esm/components/select-field/test-utils.d.ts +2 -1
- package/dist/esm/components/select-field/test-utils.js +7 -6
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.d.ts +4 -0
- package/dist/esm/components/selectable-button-group/parts/SelectableButton.js +16 -16
- package/dist/esm/components/side-panel/SidePanel.js +1 -1
- package/dist/esm/components/side-panel/parts/SidePanelHeader.d.ts +5 -5
- package/dist/esm/components/table/parts/TableBody.d.ts +36 -1
- package/dist/esm/components/table/parts/TableBody.js +24 -20
- package/dist/esm/components/tabs/parts/TabPanel.js +5 -5
- package/dist/esm/components/task-menu/TaskMenu.context.d.ts +24 -0
- package/dist/esm/components/task-menu/TaskMenu.context.js +60 -0
- package/dist/esm/components/task-menu/TaskMenu.d.ts +92 -0
- package/dist/esm/components/task-menu/TaskMenu.js +28 -0
- package/dist/esm/components/task-menu/parts/Content.d.ts +9 -0
- package/dist/esm/components/task-menu/parts/Content.js +47 -0
- package/dist/esm/components/task-menu/parts/Header.d.ts +5 -0
- package/dist/esm/components/task-menu/parts/Header.js +55 -0
- package/dist/esm/components/task-menu/parts/SubTask.d.ts +281 -0
- package/dist/esm/components/task-menu/parts/SubTask.js +193 -0
- package/dist/esm/components/task-menu/parts/Task.d.ts +279 -0
- package/dist/esm/components/task-menu/parts/Task.js +171 -0
- package/dist/esm/components/task-menu/parts/TaskGroup.d.ts +30 -0
- package/dist/esm/components/task-menu/parts/TaskGroup.js +174 -0
- package/dist/esm/components/task-menu/parts/dot.svg.js +5 -0
- package/dist/esm/components/task-menu/parts/task.variants.d.ts +152 -0
- package/dist/esm/components/task-menu/parts/task.variants.js +54 -0
- package/dist/esm/hooks/use-media-query.js +12 -12
- package/dist/esm/index.d.ts +51 -37
- package/dist/esm/index.js +358 -318
- package/dist/esm/utils/platform.js +3 -7
- package/i18n/en-GB.json +13 -1
- package/i18n/es-ES.json +13 -1
- package/i18n/fr-FR.json +13 -1
- package/package.json +34 -40
- package/dist/cjs/components/actionable/Actionable.cjs +0 -1
- package/dist/cjs/components/actionable/Actionable.d.cts +0 -12
- package/dist/cjs/components/alert/Alert.cjs +0 -1
- package/dist/cjs/components/alert/Alert.d.cts +0 -155
- package/dist/cjs/components/alert/parts/AlertActions.cjs +0 -1
- package/dist/cjs/components/alert/parts/AlertActions.d.cts +0 -55
- package/dist/cjs/components/alert/parts/AlertContent.cjs +0 -1
- package/dist/cjs/components/alert/parts/AlertContent.d.cts +0 -17
- package/dist/cjs/components/alert/parts/AlertTitle.cjs +0 -1
- package/dist/cjs/components/alert/parts/AlertTitle.d.cts +0 -17
- package/dist/cjs/components/anchor/Anchor.cjs +0 -1
- package/dist/cjs/components/anchor/Anchor.d.cts +0 -15
- package/dist/cjs/components/app-layout/AppLayout.cjs +0 -1
- package/dist/cjs/components/app-layout/AppLayout.d.cts +0 -27
- package/dist/cjs/components/app-menu/AppMenu.cjs +0 -1
- package/dist/cjs/components/app-menu/AppMenu.d.cts +0 -9
- package/dist/cjs/components/app-menu/parts/AppMenu.context.cjs +0 -1
- package/dist/cjs/components/app-menu/parts/AppMenu.context.d.cts +0 -9
- package/dist/cjs/components/app-menu/parts/AppMenuFooter.cjs +0 -1
- package/dist/cjs/components/app-menu/parts/AppMenuFooter.d.cts +0 -31
- package/dist/cjs/components/app-menu/parts/AppMenuHeader.cjs +0 -1
- package/dist/cjs/components/app-menu/parts/AppMenuHeader.d.cts +0 -9
- package/dist/cjs/components/app-menu/parts/AppMenuNavContent.cjs +0 -1
- package/dist/cjs/components/app-menu/parts/AppMenuNavContent.d.cts +0 -5
- package/dist/cjs/components/autocomplete/Autocomplete.cjs +0 -1
- package/dist/cjs/components/autocomplete/Autocomplete.d.cts +0 -156
- package/dist/cjs/components/autocomplete/parts/AutocompleteClearButton.cjs +0 -1
- package/dist/cjs/components/autocomplete/parts/AutocompleteClearButton.d.cts +0 -18
- package/dist/cjs/components/autocomplete/parts/AutocompleteItem.cjs +0 -1
- package/dist/cjs/components/autocomplete/parts/AutocompleteItem.d.cts +0 -56
- package/dist/cjs/components/autocomplete/parts/AutocompleteItemGroup.cjs +0 -1
- package/dist/cjs/components/autocomplete/parts/AutocompleteItemGroup.d.cts +0 -96
- package/dist/cjs/components/autocomplete/parts/AutocompletePanel.cjs +0 -1
- package/dist/cjs/components/autocomplete/parts/AutocompletePanel.d.cts +0 -76
- package/dist/cjs/components/avatar/Avatar.cjs +0 -1
- package/dist/cjs/components/avatar/Avatar.context.cjs +0 -1
- package/dist/cjs/components/avatar/Avatar.context.d.cts +0 -11
- package/dist/cjs/components/avatar/Avatar.d.cts +0 -206
- package/dist/cjs/components/avatar/Avatar.variants.cjs +0 -1
- package/dist/cjs/components/avatar/Avatar.variants.d.cts +0 -85
- package/dist/cjs/components/avatar/parts/AvatarFallback.cjs +0 -1
- package/dist/cjs/components/avatar/parts/AvatarFallback.d.cts +0 -170
- package/dist/cjs/components/avatar/parts/AvatarImage.cjs +0 -1
- package/dist/cjs/components/avatar/parts/AvatarImage.d.cts +0 -8
- package/dist/cjs/components/avatar/parts/AvatarPair.cjs +0 -1
- package/dist/cjs/components/avatar/parts/AvatarPair.d.cts +0 -48
- package/dist/cjs/components/avatar/utils.cjs +0 -1
- package/dist/cjs/components/avatar/utils.d.cts +0 -1
- package/dist/cjs/components/badge/Badge.cjs +0 -1
- package/dist/cjs/components/badge/Badge.d.cts +0 -94
- package/dist/cjs/components/bottom-sheet/BottomSheet.cjs +0 -1
- package/dist/cjs/components/bottom-sheet/BottomSheet.d.cts +0 -153
- package/dist/cjs/components/bottom-sheet/parts/BottomSheetContent.cjs +0 -1
- package/dist/cjs/components/bottom-sheet/parts/BottomSheetContent.d.cts +0 -70
- package/dist/cjs/components/bottom-sheet/parts/BottomSheetDragIndicator.cjs +0 -1
- package/dist/cjs/components/bottom-sheet/parts/BottomSheetDragIndicator.d.cts +0 -54
- package/dist/cjs/components/bottom-sheet/parts/BottomSheetFooter.cjs +0 -1
- package/dist/cjs/components/bottom-sheet/parts/BottomSheetFooter.d.cts +0 -27
- package/dist/cjs/components/bottom-sheet/parts/BottomSheetHeader.cjs +0 -1
- package/dist/cjs/components/bottom-sheet/parts/BottomSheetHeader.d.cts +0 -83
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.cjs +0 -1
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.context.cjs +0 -1
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.context.d.cts +0 -12
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.d.cts +0 -33
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.variant.cjs +0 -1
- package/dist/cjs/components/breadcrumbs/Breadcrumbs.variant.d.cts +0 -73
- package/dist/cjs/components/breadcrumbs/parts/Breadcrumb.cjs +0 -1
- package/dist/cjs/components/breadcrumbs/parts/Breadcrumb.d.cts +0 -9
- package/dist/cjs/components/button/Button.cjs +0 -1
- package/dist/cjs/components/button/Button.d.cts +0 -45
- package/dist/cjs/components/button/Button.variants.cjs +0 -1
- package/dist/cjs/components/button/Button.variants.d.cts +0 -536
- package/dist/cjs/components/checkbox/Checkbox.cjs +0 -1
- package/dist/cjs/components/checkbox/Checkbox.d.cts +0 -102
- package/dist/cjs/components/checkbox/Checkbox.variants.cjs +0 -1
- package/dist/cjs/components/checkbox/Checkbox.variants.d.cts +0 -123
- package/dist/cjs/components/checkbox/CheckboxStandalone.cjs +0 -1
- package/dist/cjs/components/checkbox/CheckboxStandalone.d.cts +0 -63
- package/dist/cjs/components/checkbox/parts/CheckboxIndicator.cjs +0 -1
- package/dist/cjs/components/checkbox/parts/CheckboxIndicator.d.cts +0 -13
- package/dist/cjs/components/checkbox-field/CheckboxField.cjs +0 -1
- package/dist/cjs/components/checkbox-field/CheckboxField.d.cts +0 -74
- package/dist/cjs/components/checkbox-group/CheckboxGroup.cjs +0 -1
- package/dist/cjs/components/checkbox-group/CheckboxGroup.d.cts +0 -65
- package/dist/cjs/components/checkbox-group-field/CheckboxGroupField.cjs +0 -1
- package/dist/cjs/components/checkbox-group-field/CheckboxGroupField.d.cts +0 -79
- package/dist/cjs/components/collapsible/Collapsible.cjs +0 -1
- package/dist/cjs/components/collapsible/Collapsible.d.cts +0 -33
- package/dist/cjs/components/collapsible/parts/CollapsibleContent.cjs +0 -1
- package/dist/cjs/components/collapsible/parts/CollapsibleContent.d.cts +0 -36
- package/dist/cjs/components/collapsible/parts/CollapsibleTitle.cjs +0 -1
- package/dist/cjs/components/collapsible/parts/CollapsibleTitle.d.cts +0 -39
- package/dist/cjs/components/data-table/DataTable.cjs +0 -1
- package/dist/cjs/components/data-table/DataTable.d.cts +0 -91
- package/dist/cjs/components/data-table/mocks/employee-columns.d.cts +0 -3
- package/dist/cjs/components/data-table/mocks/employee-data.d.cts +0 -17
- package/dist/cjs/components/data-table/parts/ColumnSortHeader.cjs +0 -1
- package/dist/cjs/components/data-table/parts/ColumnSortHeader.d.cts +0 -10
- package/dist/cjs/components/date-calendar/DateCalendar.cjs +0 -1
- package/dist/cjs/components/date-calendar/DateCalendar.d.cts +0 -23
- package/dist/cjs/components/date-calendar/hooks/useMonthsList.cjs +0 -1
- package/dist/cjs/components/date-calendar/hooks/useMonthsList.d.cts +0 -4
- package/dist/cjs/components/date-calendar/hooks/useYearsList.cjs +0 -1
- package/dist/cjs/components/date-calendar/hooks/useYearsList.d.cts +0 -10
- package/dist/cjs/components/date-calendar/parts/DateSegmentSelect.cjs +0 -1
- package/dist/cjs/components/date-calendar/parts/DateSegmentSelect.d.cts +0 -15
- package/dist/cjs/components/date-picker/DatePicker.cjs +0 -1
- package/dist/cjs/components/date-picker/DatePicker.d.cts +0 -67
- package/dist/cjs/components/date-picker/hooks/useMonthsList.d.cts +0 -4
- package/dist/cjs/components/date-picker/hooks/useYearsList.d.cts +0 -10
- package/dist/cjs/components/date-picker/parts/DateInput.cjs +0 -1
- package/dist/cjs/components/date-picker/parts/DateInput.d.cts +0 -155
- package/dist/cjs/components/date-picker/utils.d.cts +0 -12
- package/dist/cjs/components/date-picker-field/DatePickerField.cjs +0 -1
- package/dist/cjs/components/date-picker-field/DatePickerField.d.cts +0 -83
- package/dist/cjs/components/date-picker-field/test-utils.cjs +0 -1
- package/dist/cjs/components/date-picker-field/test-utils.d.cts +0 -12
- package/dist/cjs/components/definition-tooltip/DefinitionTooltip.cjs +0 -1
- package/dist/cjs/components/definition-tooltip/DefinitionTooltip.d.cts +0 -23
- package/dist/cjs/components/dialog/Dialog.cjs +0 -1
- package/dist/cjs/components/dialog/Dialog.d.cts +0 -117
- package/dist/cjs/components/dialog/parts/DialogActions/DialogButton.cjs +0 -1
- package/dist/cjs/components/dialog/parts/DialogActions/DialogButton.d.cts +0 -22
- package/dist/cjs/components/dialog/parts/DialogActions.cjs +0 -1
- package/dist/cjs/components/dialog/parts/DialogActions.d.cts +0 -6
- package/dist/cjs/components/dialog/parts/DialogContent.cjs +0 -1
- package/dist/cjs/components/dialog/parts/DialogContent.d.cts +0 -4
- package/dist/cjs/components/dialog/parts/DialogTitle.cjs +0 -1
- package/dist/cjs/components/dialog/parts/DialogTitle.d.cts +0 -6
- package/dist/cjs/components/fieldset/Fieldset.cjs +0 -1
- package/dist/cjs/components/fieldset/Fieldset.d.cts +0 -150
- package/dist/cjs/components/fieldset/parts/FieldGroup.cjs +0 -1
- package/dist/cjs/components/fieldset/parts/FieldGroup.d.cts +0 -27
- package/dist/cjs/components/flex/Flex.cjs +0 -1
- package/dist/cjs/components/flex/Flex.d.cts +0 -64
- package/dist/cjs/components/flex/Flex.variants.cjs +0 -1
- package/dist/cjs/components/flex/Flex.variants.d.cts +0 -484
- package/dist/cjs/components/flex/FlexItem.cjs +0 -1
- package/dist/cjs/components/flex/FlexItem.d.cts +0 -40
- package/dist/cjs/components/form/Form.cjs +0 -1
- package/dist/cjs/components/form/Form.context.cjs +0 -1
- package/dist/cjs/components/form/Form.context.d.cts +0 -12
- package/dist/cjs/components/form/Form.d.cts +0 -33
- package/dist/cjs/components/form-field/FormField.cjs +0 -1
- package/dist/cjs/components/form-field/FormField.context.cjs +0 -1
- package/dist/cjs/components/form-field/FormField.context.d.cts +0 -38
- package/dist/cjs/components/form-field/FormField.d.cts +0 -61
- package/dist/cjs/components/form-field/parts/FormContextualLink.cjs +0 -1
- package/dist/cjs/components/form-field/parts/FormContextualLink.d.cts +0 -20
- package/dist/cjs/components/form-field/parts/FormControl.cjs +0 -1
- package/dist/cjs/components/form-field/parts/FormControl.d.cts +0 -30
- package/dist/cjs/components/form-field/parts/FormFeedbackText.cjs +0 -1
- package/dist/cjs/components/form-field/parts/FormFeedbackText.d.cts +0 -7
- package/dist/cjs/components/form-field/parts/FormHelperText.cjs +0 -1
- package/dist/cjs/components/form-field/parts/FormHelperText.d.cts +0 -7
- package/dist/cjs/components/form-field/parts/FormLabel.cjs +0 -1
- package/dist/cjs/components/form-field/parts/FormLabel.d.cts +0 -8
- package/dist/cjs/components/form-field/utils/isFieldRequired.cjs +0 -1
- package/dist/cjs/components/form-field/utils/isFieldRequired.d.cts +0 -8
- package/dist/cjs/components/full-page-loader/FullPageLoader.cjs +0 -1
- package/dist/cjs/components/full-page-loader/FullPageLoader.d.cts +0 -13
- package/dist/cjs/components/grid/Grid.cjs +0 -1
- package/dist/cjs/components/grid/Grid.d.cts +0 -54
- package/dist/cjs/components/grid/Grid.variants.cjs +0 -1
- package/dist/cjs/components/grid/Grid.variants.d.cts +0 -394
- package/dist/cjs/components/grid/GridItem.cjs +0 -1
- package/dist/cjs/components/grid/GridItem.d.cts +0 -60
- package/dist/cjs/components/icon/Icon.cjs +0 -1
- package/dist/cjs/components/icon/Icon.d.cts +0 -574
- package/dist/cjs/components/icon-button/CircularIconButton.cjs +0 -1
- package/dist/cjs/components/icon-button/CircularIconButton.d.cts +0 -86
- package/dist/cjs/components/icon-button/IconButton.cjs +0 -1
- package/dist/cjs/components/icon-button/IconButton.d.cts +0 -26
- package/dist/cjs/components/icon-button/IconButton.variants.cjs +0 -1
- package/dist/cjs/components/icon-button/IconButton.variants.d.cts +0 -589
- package/dist/cjs/components/input/Input.cjs +0 -1
- package/dist/cjs/components/input/Input.d.cts +0 -48
- package/dist/cjs/components/label/Label.cjs +0 -1
- package/dist/cjs/components/label/Label.d.cts +0 -17
- package/dist/cjs/components/link/Link.cjs +0 -1
- package/dist/cjs/components/link/Link.d.cts +0 -83
- package/dist/cjs/components/link/Link.variants.cjs +0 -1
- package/dist/cjs/components/link/Link.variants.d.cts +0 -120
- package/dist/cjs/components/link/utils.cjs +0 -1
- package/dist/cjs/components/link/utils.d.cts +0 -1
- package/dist/cjs/components/menu/Menu.cjs +0 -1
- package/dist/cjs/components/menu/Menu.d.cts +0 -10
- package/dist/cjs/components/menu/parts/MenuContent.cjs +0 -1
- package/dist/cjs/components/menu/parts/MenuContent.d.cts +0 -11
- package/dist/cjs/components/menu/parts/MenuHeader.cjs +0 -1
- package/dist/cjs/components/menu/parts/MenuHeader.d.cts +0 -9
- package/dist/cjs/components/menu/parts/MenuItem.cjs +0 -1
- package/dist/cjs/components/menu/parts/MenuItem.d.cts +0 -15
- package/dist/cjs/components/menu/parts/MenuSeparator.cjs +0 -1
- package/dist/cjs/components/menu/parts/MenuSeparator.d.cts +0 -4
- package/dist/cjs/components/menu/parts/MenuTrigger.cjs +0 -1
- package/dist/cjs/components/menu/parts/MenuTrigger.d.cts +0 -10
- package/dist/cjs/components/multi-select/MultiSelect.cjs +0 -1
- package/dist/cjs/components/multi-select/MultiSelect.d.cts +0 -62
- package/dist/cjs/components/multi-select/Multiselect.context.cjs +0 -1
- package/dist/cjs/components/multi-select/Multiselect.context.d.cts +0 -7
- package/dist/cjs/components/multi-select/Multiselect.types.d.cts +0 -109
- package/dist/cjs/components/multi-select/hooks/use-combobox-filter.cjs +0 -1
- package/dist/cjs/components/multi-select/hooks/use-combobox-filter.d.cts +0 -12
- package/dist/cjs/components/multi-select/hooks/use-multiselection-state.cjs +0 -1
- package/dist/cjs/components/multi-select/hooks/use-multiselection-state.d.cts +0 -14
- package/dist/cjs/components/multi-select/parts/MultiSelectButton.cjs +0 -1
- package/dist/cjs/components/multi-select/parts/MultiSelectButton.d.cts +0 -16
- package/dist/cjs/components/multi-select/parts/MultiSelectOptGroup.cjs +0 -1
- package/dist/cjs/components/multi-select/parts/MultiSelectOptGroup.d.cts +0 -69
- package/dist/cjs/components/multi-select/parts/MultiSelectOption.cjs +0 -1
- package/dist/cjs/components/multi-select/parts/MultiSelectOption.d.cts +0 -20
- package/dist/cjs/components/multi-select/parts/MultiSelectPopover.cjs +0 -1
- package/dist/cjs/components/multi-select/parts/MultiSelectPopover.d.cts +0 -7
- package/dist/cjs/components/multi-select-field/MultiSelectField.cjs +0 -1
- package/dist/cjs/components/multi-select-field/MultiSelectField.d.cts +0 -59
- package/dist/cjs/components/nav/Nav.cjs +0 -1
- package/dist/cjs/components/nav/Nav.d.cts +0 -12
- package/dist/cjs/components/nav/parts/NavGroup.cjs +0 -1
- package/dist/cjs/components/nav/parts/NavGroup.d.cts +0 -30
- package/dist/cjs/components/nav/parts/NavItem.cjs +0 -1
- package/dist/cjs/components/nav/parts/NavItem.d.cts +0 -285
- package/dist/cjs/components/number-field/NumberField.cjs +0 -1
- package/dist/cjs/components/number-field/NumberField.d.cts +0 -47
- package/dist/cjs/components/number-input/NumberInput.cjs +0 -1
- package/dist/cjs/components/number-input/NumberInput.d.cts +0 -216
- package/dist/cjs/components/page/Page.cjs +0 -1
- package/dist/cjs/components/page/Page.d.cts +0 -75
- package/dist/cjs/components/page/parts/PageHeader.cjs +0 -1
- package/dist/cjs/components/page/parts/PageHeader.d.cts +0 -100
- package/dist/cjs/components/page/parts/PageHeading.cjs +0 -1
- package/dist/cjs/components/page/parts/PageHeading.d.cts +0 -30
- package/dist/cjs/components/pagination/Pagination.cjs +0 -1
- package/dist/cjs/components/pagination/Pagination.d.cts +0 -106
- package/dist/cjs/components/pagination/hooks/use-pagination.cjs +0 -1
- package/dist/cjs/components/pagination/hooks/use-pagination.d.cts +0 -12
- package/dist/cjs/components/pagination/parts/PaginationEllipsis.cjs +0 -1
- package/dist/cjs/components/pagination/parts/PaginationEllipsis.d.cts +0 -6
- package/dist/cjs/components/pagination/parts/PaginationJumpDialog.cjs +0 -1
- package/dist/cjs/components/pagination/parts/PaginationJumpDialog.d.cts +0 -8
- package/dist/cjs/components/pagination/parts/PaginationLink.cjs +0 -1
- package/dist/cjs/components/pagination/parts/PaginationLink.d.cts +0 -46
- package/dist/cjs/components/pagination/parts/PaginationNavButton.cjs +0 -1
- package/dist/cjs/components/pagination/parts/PaginationNavButton.d.cts +0 -9
- package/dist/cjs/components/pagination/utils/pagination-window.cjs +0 -1
- package/dist/cjs/components/pagination/utils/pagination-window.d.cts +0 -8
- package/dist/cjs/components/payfit-brand/PayFitBrand.cjs +0 -1
- package/dist/cjs/components/payfit-brand/PayFitBrand.d.cts +0 -22
- package/dist/cjs/components/payfit-brand/PayFitPreprod.cjs +0 -1
- package/dist/cjs/components/payfit-brand/PayFitPreprod.d.cts +0 -10
- package/dist/cjs/components/pill/Pill.cjs +0 -1
- package/dist/cjs/components/pill/Pill.d.cts +0 -143
- package/dist/cjs/components/popover/Popover.cjs +0 -1
- package/dist/cjs/components/popover/Popover.d.cts +0 -56
- package/dist/cjs/components/popover/parts/PopoverContent.d.cts +0 -6
- package/dist/cjs/components/popover/parts/PopoverHeader.cjs +0 -1
- package/dist/cjs/components/popover/parts/PopoverHeader.d.cts +0 -20
- package/dist/cjs/components/progress-bar/ProgressBar.cjs +0 -1
- package/dist/cjs/components/progress-bar/ProgressBar.d.cts +0 -10
- package/dist/cjs/components/radio-button-group/RadioButtonGroup.cjs +0 -1
- package/dist/cjs/components/radio-button-group/RadioButtonGroup.d.cts +0 -22
- package/dist/cjs/components/radio-button-group/parts/RadioButton.cjs +0 -1
- package/dist/cjs/components/radio-button-group/parts/RadioButton.d.cts +0 -74
- package/dist/cjs/components/radio-button-group/parts/RadioButtonHelper.cjs +0 -1
- package/dist/cjs/components/radio-button-group/parts/RadioButtonHelper.d.cts +0 -19
- package/dist/cjs/components/radio-button-group/parts/radio-input-selected.svg.cjs +0 -1
- package/dist/cjs/components/radio-button-group/parts/radio-input-unselected.svg.cjs +0 -1
- package/dist/cjs/components/radio-button-group-field/RadioButtonGroupField.cjs +0 -1
- package/dist/cjs/components/radio-button-group-field/RadioButtonGroupField.d.cts +0 -47
- package/dist/cjs/components/search/Search.cjs +0 -1
- package/dist/cjs/components/search/Search.d.cts +0 -180
- package/dist/cjs/components/segmented-button-group/SegmentedButtonGroup.cjs +0 -1
- package/dist/cjs/components/segmented-button-group/SegmentedButtonGroup.d.cts +0 -43
- package/dist/cjs/components/segmented-button-group/SegmentedButtonGroups.context.cjs +0 -1
- package/dist/cjs/components/segmented-button-group/SegmentedButtonGroups.context.d.cts +0 -8
- package/dist/cjs/components/segmented-button-group/parts/ToggleButton.cjs +0 -1
- package/dist/cjs/components/segmented-button-group/parts/ToggleButton.d.cts +0 -47
- package/dist/cjs/components/select/Select.cjs +0 -1
- package/dist/cjs/components/select/Select.d.cts +0 -56
- package/dist/cjs/components/select/parts/SearchInput.cjs +0 -1
- package/dist/cjs/components/select/parts/SearchInput.d.cts +0 -2
- package/dist/cjs/components/select/parts/SelectButton.cjs +0 -1
- package/dist/cjs/components/select/parts/SelectButton.d.cts +0 -8
- package/dist/cjs/components/select/parts/SelectOption.cjs +0 -1
- package/dist/cjs/components/select/parts/SelectOption.context.cjs +0 -1
- package/dist/cjs/components/select/parts/SelectOption.context.d.cts +0 -8
- package/dist/cjs/components/select/parts/SelectOption.d.cts +0 -13
- package/dist/cjs/components/select/parts/SelectOptionGroup.cjs +0 -1
- package/dist/cjs/components/select/parts/SelectOptionGroup.d.cts +0 -12
- package/dist/cjs/components/select/parts/SelectOptionHelper.cjs +0 -1
- package/dist/cjs/components/select/parts/SelectOptionHelper.d.cts +0 -4
- package/dist/cjs/components/select-field/SelectField.cjs +0 -1
- package/dist/cjs/components/select-field/SelectField.d.cts +0 -50
- package/dist/cjs/components/select-field/test-utils.cjs +0 -1
- package/dist/cjs/components/select-field/test-utils.d.cts +0 -11
- package/dist/cjs/components/selectable-button-group/SelectableButtonGroup.cjs +0 -1
- package/dist/cjs/components/selectable-button-group/SelectableButtonGroup.context.cjs +0 -1
- package/dist/cjs/components/selectable-button-group/SelectableButtonGroup.context.d.cts +0 -6
- package/dist/cjs/components/selectable-button-group/SelectableButtonGroup.d.cts +0 -65
- package/dist/cjs/components/selectable-button-group/parts/SelectableButton.cjs +0 -1
- package/dist/cjs/components/selectable-button-group/parts/SelectableButton.d.cts +0 -162
- package/dist/cjs/components/selectable-button-group-field/SelectableButtonGroupField.cjs +0 -1
- package/dist/cjs/components/selectable-button-group-field/SelectableButtonGroupField.d.cts +0 -59
- package/dist/cjs/components/selectable-card/internals/Content.cjs +0 -1
- package/dist/cjs/components/selectable-card/internals/Content.d.cts +0 -6
- package/dist/cjs/components/selectable-card/internals/Description.cjs +0 -1
- package/dist/cjs/components/selectable-card/internals/Description.d.cts +0 -6
- package/dist/cjs/components/selectable-card/internals/Illustration.cjs +0 -1
- package/dist/cjs/components/selectable-card/internals/Illustration.d.cts +0 -6
- package/dist/cjs/components/selectable-card/internals/SelectedIndicator.cjs +0 -1
- package/dist/cjs/components/selectable-card/internals/SelectedIndicator.d.cts +0 -6
- package/dist/cjs/components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.cjs +0 -1
- package/dist/cjs/components/selectable-card/selectable-card-checkbox-group/SelectableCardCheckboxGroup.d.cts +0 -20
- package/dist/cjs/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.cjs +0 -1
- package/dist/cjs/components/selectable-card/selectable-card-checkbox-group/parts/SelectableCardCheckbox.d.cts +0 -47
- package/dist/cjs/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.cjs +0 -1
- package/dist/cjs/components/selectable-card/selectable-card-radio-group/SelectableCardRadioGroup.d.cts +0 -20
- package/dist/cjs/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.cjs +0 -1
- package/dist/cjs/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.d.cts +0 -8
- package/dist/cjs/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.cjs +0 -1
- package/dist/cjs/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.d.cts +0 -50
- package/dist/cjs/components/selectable-card/selectableCard.variant.cjs +0 -1
- package/dist/cjs/components/selectable-card/selectableCard.variant.d.cts +0 -35
- package/dist/cjs/components/selectable-card-checkbox-group-field/SelectableCardCheckboxGroupField.cjs +0 -1
- package/dist/cjs/components/selectable-card-checkbox-group-field/SelectableCardCheckboxGroupField.d.cts +0 -31
- package/dist/cjs/components/selectable-card-radio-group-field/SelectableCardRadioGroupField.cjs +0 -1
- package/dist/cjs/components/selectable-card-radio-group-field/SelectableCardRadioGroupField.d.cts +0 -31
- package/dist/cjs/components/side-panel/SidePanel.cjs +0 -1
- package/dist/cjs/components/side-panel/SidePanel.d.cts +0 -158
- package/dist/cjs/components/side-panel/parts/SidePanelContent.cjs +0 -1
- package/dist/cjs/components/side-panel/parts/SidePanelContent.d.cts +0 -71
- package/dist/cjs/components/side-panel/parts/SidePanelDragIndicator.cjs +0 -1
- package/dist/cjs/components/side-panel/parts/SidePanelDragIndicator.d.cts +0 -54
- package/dist/cjs/components/side-panel/parts/SidePanelFooter.cjs +0 -1
- package/dist/cjs/components/side-panel/parts/SidePanelFooter.d.cts +0 -27
- package/dist/cjs/components/side-panel/parts/SidePanelHeader.cjs +0 -1
- package/dist/cjs/components/side-panel/parts/SidePanelHeader.d.cts +0 -75
- package/dist/cjs/components/spinner/Spinner.cjs +0 -1
- package/dist/cjs/components/spinner/Spinner.d.cts +0 -17
- package/dist/cjs/components/spinner/dynamic-content.d.cts +0 -2
- package/dist/cjs/components/stepper/Stepper.context.d.cts +0 -8
- package/dist/cjs/components/stepper/Stepper.d.cts +0 -45
- package/dist/cjs/components/stepper/hooks/useStepper.d.cts +0 -12
- package/dist/cjs/components/stepper/parts/Step.d.cts +0 -15
- package/dist/cjs/components/table/Table.cjs +0 -1
- package/dist/cjs/components/table/Table.context.cjs +0 -1
- package/dist/cjs/components/table/Table.context.d.cts +0 -59
- package/dist/cjs/components/table/Table.d.cts +0 -97
- package/dist/cjs/components/table/assets/EmptyStateError.svg.cjs +0 -1
- package/dist/cjs/components/table/assets/EmptyStateNoData.svg.cjs +0 -1
- package/dist/cjs/components/table/hooks/useTableAnnouncer.d.cts +0 -5
- package/dist/cjs/components/table/hooks/useTableKeyboardNavigation.cjs +0 -1
- package/dist/cjs/components/table/hooks/useTableKeyboardNavigation.d.cts +0 -39
- package/dist/cjs/components/table/parts/TableBody.cjs +0 -1
- package/dist/cjs/components/table/parts/TableBody.d.cts +0 -56
- package/dist/cjs/components/table/parts/TableCell.cjs +0 -1
- package/dist/cjs/components/table/parts/TableCell.d.cts +0 -80
- package/dist/cjs/components/table/parts/TableColumnHeader.cjs +0 -1
- package/dist/cjs/components/table/parts/TableColumnHeader.d.cts +0 -89
- package/dist/cjs/components/table/parts/TableEmptyState.cjs +0 -1
- package/dist/cjs/components/table/parts/TableEmptyState.d.cts +0 -177
- package/dist/cjs/components/table/parts/TableHeader.cjs +0 -1
- package/dist/cjs/components/table/parts/TableHeader.d.cts +0 -29
- package/dist/cjs/components/table/parts/TablePagination.cjs +0 -1
- package/dist/cjs/components/table/parts/TablePagination.d.cts +0 -135
- package/dist/cjs/components/table/parts/TableRow.cjs +0 -1
- package/dist/cjs/components/table/parts/TableRow.d.cts +0 -40
- package/dist/cjs/components/tabs/Tabs.cjs +0 -1
- package/dist/cjs/components/tabs/Tabs.context.cjs +0 -1
- package/dist/cjs/components/tabs/Tabs.context.d.cts +0 -11
- package/dist/cjs/components/tabs/Tabs.d.cts +0 -12
- package/dist/cjs/components/tabs/Tabs.variant.cjs +0 -1
- package/dist/cjs/components/tabs/Tabs.variant.d.cts +0 -156
- package/dist/cjs/components/tabs/parts/NavigationButton.cjs +0 -1
- package/dist/cjs/components/tabs/parts/NavigationButton.d.cts +0 -7
- package/dist/cjs/components/tabs/parts/Tab.cjs +0 -1
- package/dist/cjs/components/tabs/parts/Tab.d.cts +0 -9
- package/dist/cjs/components/tabs/parts/TabList.cjs +0 -1
- package/dist/cjs/components/tabs/parts/TabList.d.cts +0 -4
- package/dist/cjs/components/tabs/parts/TabPanel.cjs +0 -1
- package/dist/cjs/components/tabs/parts/TabPanel.d.cts +0 -4
- package/dist/cjs/components/text/Text.cjs +0 -1
- package/dist/cjs/components/text/Text.d.cts +0 -84
- package/dist/cjs/components/text/Text.variants.cjs +0 -1
- package/dist/cjs/components/text/Text.variants.d.cts +0 -680
- package/dist/cjs/components/text-area/TextArea.cjs +0 -1
- package/dist/cjs/components/text-area/TextArea.d.cts +0 -220
- package/dist/cjs/components/text-field/TextField.cjs +0 -1
- package/dist/cjs/components/text-field/TextField.d.cts +0 -63
- package/dist/cjs/components/toast/Toast.context.cjs +0 -1
- package/dist/cjs/components/toast/Toast.context.d.cts +0 -8
- package/dist/cjs/components/toast/ToastManager.cjs +0 -1
- package/dist/cjs/components/toast/ToastManager.d.cts +0 -7
- package/dist/cjs/components/toast/UnityToast.cjs +0 -1
- package/dist/cjs/components/toast/UnityToast.d.cts +0 -55
- package/dist/cjs/components/toast/parts/ToastAction.cjs +0 -1
- package/dist/cjs/components/toast/parts/ToastAction.d.cts +0 -9
- package/dist/cjs/components/toast/parts/ToastContent.cjs +0 -1
- package/dist/cjs/components/toast/parts/ToastContent.d.cts +0 -6
- package/dist/cjs/components/toast/parts/ToastTitle.cjs +0 -1
- package/dist/cjs/components/toast/parts/ToastTitle.d.cts +0 -6
- package/dist/cjs/components/toast/toast.cjs +0 -1
- package/dist/cjs/components/toast/toast.d.cts +0 -44
- package/dist/cjs/components/toggle-switch/ToggleSwitch.cjs +0 -1
- package/dist/cjs/components/toggle-switch/ToggleSwitch.d.cts +0 -133
- package/dist/cjs/components/toggle-switch-field/ToggleSwitchField.cjs +0 -1
- package/dist/cjs/components/toggle-switch-field/ToggleSwitchField.d.cts +0 -68
- package/dist/cjs/components/toggle-switch-group/ToggleSwitchGroup.cjs +0 -1
- package/dist/cjs/components/toggle-switch-group/ToggleSwitchGroup.d.cts +0 -71
- package/dist/cjs/components/toggle-switch-group-field/ToggleSwitchGroupField.cjs +0 -1
- package/dist/cjs/components/toggle-switch-group-field/ToggleSwitchGroupField.d.cts +0 -82
- package/dist/cjs/components/tooltip/Tooltip.cjs +0 -1
- package/dist/cjs/components/tooltip/Tooltip.d.cts +0 -8
- package/dist/cjs/docs/blocks/Cards.d.cts +0 -18
- package/dist/cjs/docs/table/mocks/employee-columns.d.cts +0 -3
- package/dist/cjs/hooks/use-async-list.d.cts +0 -2
- package/dist/cjs/hooks/use-breakpoint-listener.cjs +0 -1
- package/dist/cjs/hooks/use-breakpoint-listener.d.cts +0 -2
- package/dist/cjs/hooks/use-form.cjs +0 -1
- package/dist/cjs/hooks/use-form.d.cts +0 -48
- package/dist/cjs/hooks/use-form.types.d.cts +0 -3
- package/dist/cjs/hooks/use-id.cjs +0 -1
- package/dist/cjs/hooks/use-id.d.cts +0 -2
- package/dist/cjs/hooks/use-media-query.cjs +0 -1
- package/dist/cjs/hooks/use-media-query.d.cts +0 -8
- package/dist/cjs/hooks/use-resizable.cjs +0 -1
- package/dist/cjs/hooks/use-resizable.d.cts +0 -13
- package/dist/cjs/index.cjs +0 -1
- package/dist/cjs/index.d.cts +0 -147
- package/dist/cjs/index.storybook-testing.d.cts +0 -2
- package/dist/cjs/mocks/employees.d.cts +0 -17
- package/dist/cjs/providers/router/RouterProvider.cjs +0 -1
- package/dist/cjs/providers/router/RouterProvider.d.cts +0 -37
- package/dist/cjs/providers/router/integrations/UnityReactRouterV5Provider.cjs +0 -1
- package/dist/cjs/providers/router/integrations/UnityReactRouterV5Provider.d.cts +0 -6
- package/dist/cjs/storybook-testing.cjs +0 -1
- package/dist/cjs/storybook-utilities/breadcrumbs/transform.d.cts +0 -2
- package/dist/cjs/storybook-utilities/previewTransform.d.cts +0 -1
- package/dist/cjs/types/DataAttributes.d.cts +0 -1
- package/dist/cjs/types/testing.d.cts +0 -2
- package/dist/cjs/types/utils.d.cts +0 -1
- package/dist/cjs/utils/platform.cjs +0 -1
- package/dist/cjs/utils/platform.d.cts +0 -3
|
@@ -4,9 +4,11 @@ export interface ActionableProps extends AriaButtonProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
/** set to true to remove the Actionable's base styles */
|
|
6
6
|
isUnstyled?: boolean;
|
|
7
|
+
/** The HTML element to render the actionable as. */
|
|
8
|
+
asElement?: 'span' | 'div';
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* The Actionable primitive is a component that helps you build interactive surfaces of any kind.
|
|
10
12
|
*/
|
|
11
|
-
declare const Actionable: import('react').ForwardRefExoticComponent<ActionableProps & import('react').RefAttributes<
|
|
13
|
+
declare const Actionable: import('react').ForwardRefExoticComponent<ActionableProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
14
|
export { Actionable };
|
|
@@ -1,31 +1,72 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { jsx as D } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as H, useState as k } from "react";
|
|
3
|
+
import { useFocusVisible as F, useHover as E, useFocus as w } from "@react-aria/interactions";
|
|
4
|
+
import { useObjectRef as x, mergeProps as c } from "@react-aria/utils";
|
|
5
|
+
import { useButton as N } from "react-aria";
|
|
6
|
+
import { twMerge as S } from "tailwind-merge";
|
|
7
|
+
import { tv as U } from "tailwind-variants";
|
|
8
|
+
const V = U({
|
|
7
9
|
base: "group",
|
|
8
10
|
variants: {
|
|
9
11
|
isUnstyled: {
|
|
10
12
|
true: "",
|
|
11
|
-
false: "disabled:uy-cursor-not-allowed disabled:uy-text-content-neutral-disabled"
|
|
13
|
+
false: "aria-disabled:uy-cursor-not-allowed aria-disabled:uy-text-content-neutral-disabled"
|
|
12
14
|
}
|
|
13
15
|
},
|
|
14
16
|
defaultVariants: {
|
|
15
17
|
isUnstyled: !1
|
|
16
18
|
}
|
|
17
|
-
}),
|
|
18
|
-
|
|
19
|
-
i,
|
|
19
|
+
}), j = H((d, s) => {
|
|
20
|
+
const {
|
|
21
|
+
asElement: i = "div",
|
|
22
|
+
isUnstyled: u = !1,
|
|
23
|
+
className: m,
|
|
24
|
+
children: o,
|
|
25
|
+
...e
|
|
26
|
+
} = d;
|
|
27
|
+
s = x(s);
|
|
28
|
+
const { isFocusVisible: p } = F(), { isHovered: f, hoverProps: r } = E({
|
|
29
|
+
onHoverStart: e.onHoverStart,
|
|
30
|
+
onHoverEnd: e.onHoverEnd,
|
|
31
|
+
onHoverChange: e.onHoverChange,
|
|
32
|
+
isDisabled: e.isDisabled
|
|
33
|
+
}), [b, g] = k(!1), { focusProps: n } = w({
|
|
34
|
+
onFocusChange: g,
|
|
35
|
+
isDisabled: e.isDisabled
|
|
36
|
+
}), { buttonProps: a, isPressed: v } = N(
|
|
20
37
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
38
|
+
...e,
|
|
39
|
+
elementType: i
|
|
40
|
+
},
|
|
41
|
+
s
|
|
42
|
+
), P = i, C = (t) => {
|
|
43
|
+
if (e.isDisabled) {
|
|
44
|
+
t.preventDefault(), t.stopPropagation();
|
|
45
|
+
return;
|
|
25
46
|
}
|
|
26
|
-
|
|
27
|
-
);
|
|
28
|
-
|
|
47
|
+
const l = c(a, r, n);
|
|
48
|
+
l.onClick && l.onClick(t);
|
|
49
|
+
}, h = c(a, r, n), { onClick: A, ...y } = h;
|
|
50
|
+
return /* @__PURE__ */ D(
|
|
51
|
+
P,
|
|
52
|
+
{
|
|
53
|
+
...y,
|
|
54
|
+
onClick: C,
|
|
55
|
+
className: S(V({ isUnstyled: u }), m),
|
|
56
|
+
ref: s,
|
|
57
|
+
children: typeof o == "function" ? o({
|
|
58
|
+
isHovered: f,
|
|
59
|
+
isPressed: v,
|
|
60
|
+
isFocused: b,
|
|
61
|
+
isDisabled: !!e.isDisabled,
|
|
62
|
+
isFocusVisible: p,
|
|
63
|
+
isPending: !1,
|
|
64
|
+
defaultChildren: null
|
|
65
|
+
}) : o
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
});
|
|
69
|
+
j.displayName = "Actionable";
|
|
29
70
|
export {
|
|
30
|
-
|
|
71
|
+
j as Actionable
|
|
31
72
|
};
|
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { FormattedMessage as
|
|
4
|
-
import { twMerge as
|
|
5
|
-
import { Actionable as
|
|
6
|
-
import { Avatar as
|
|
7
|
-
import { AvatarFallback as
|
|
8
|
-
import { AvatarImage as
|
|
9
|
-
import { Badge as
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { Menu as
|
|
12
|
-
import { MenuContent as
|
|
13
|
-
import { MenuHeader as
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
V,
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as g, useRef as I, isValidElement as O, cloneElement as V } from "react";
|
|
3
|
+
import { FormattedMessage as v, useIntl as z } from "react-intl";
|
|
4
|
+
import { twMerge as h } from "tailwind-merge";
|
|
5
|
+
import { Actionable as x } from "../../actionable/Actionable.js";
|
|
6
|
+
import { Avatar as F } from "../../avatar/Avatar.js";
|
|
7
|
+
import { AvatarFallback as H } from "../../avatar/parts/AvatarFallback.js";
|
|
8
|
+
import { AvatarImage as j } from "../../avatar/parts/AvatarImage.js";
|
|
9
|
+
import { Badge as A } from "../../badge/Badge.js";
|
|
10
|
+
import { Icon as M } from "../../icon/Icon.js";
|
|
11
|
+
import { Menu as E } from "../../menu/Menu.js";
|
|
12
|
+
import { MenuContent as S } from "../../menu/parts/MenuContent.js";
|
|
13
|
+
import { MenuHeader as B } from "../../menu/parts/MenuHeader.js";
|
|
14
|
+
import { useAppMenuContext as C } from "./AppMenu.context.js";
|
|
15
|
+
const N = (t) => /* @__PURE__ */ l(
|
|
16
|
+
F,
|
|
18
17
|
{
|
|
19
18
|
"aria-label": `${t.title} avatar`,
|
|
20
19
|
size: "md",
|
|
21
20
|
variant: "square",
|
|
22
21
|
"aria-labelledby": "profile-button-label",
|
|
23
22
|
children: [
|
|
24
|
-
/* @__PURE__ */ e(
|
|
25
|
-
/* @__PURE__ */ e(
|
|
26
|
-
t.avatarPair &&
|
|
23
|
+
/* @__PURE__ */ e(j, { src: t.avatar, alt: t.title ?? "" }),
|
|
24
|
+
/* @__PURE__ */ e(H, { variant: "initials", delayMs: 100, children: t.title }),
|
|
25
|
+
t.avatarPair && O(t.avatarPair) && V(t.avatarPair, {
|
|
27
26
|
isHidden: !t.isPairAvatarVisible
|
|
28
27
|
})
|
|
29
28
|
]
|
|
30
29
|
}
|
|
31
|
-
),
|
|
30
|
+
), R = ({
|
|
32
31
|
avatar: t,
|
|
33
|
-
avatarPair:
|
|
34
|
-
title:
|
|
35
|
-
uploadAvatarCallback:
|
|
32
|
+
avatarPair: n,
|
|
33
|
+
title: u,
|
|
34
|
+
uploadAvatarCallback: a,
|
|
36
35
|
uploadAvatarLabel: c,
|
|
37
|
-
uploadAvatarDescription:
|
|
36
|
+
uploadAvatarDescription: r
|
|
38
37
|
}) => {
|
|
39
|
-
const [o, s] =
|
|
40
|
-
|
|
41
|
-
}, d =
|
|
38
|
+
const [o, s] = g(!0), y = z(), i = () => {
|
|
39
|
+
n && s((f) => !f);
|
|
40
|
+
}, d = h(
|
|
42
41
|
"uy-group uy-relative uy-leading-[0] uy-rounded-75 focus-visible:uy-outline-none focus-visible:uy-ring-2 focus-visible:uy-ring-utility-focus-ring focus-visible:uy-ring-offset-2"
|
|
43
42
|
);
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
|
|
43
|
+
return /* @__PURE__ */ l(
|
|
44
|
+
x,
|
|
46
45
|
{
|
|
47
46
|
"aria-describedby": "profile-picture-change-desc",
|
|
48
47
|
"aria-label": c || y.formatMessage({
|
|
@@ -55,21 +54,21 @@ const v = (t) => /* @__PURE__ */ u(
|
|
|
55
54
|
onFocus: i,
|
|
56
55
|
onBlur: i,
|
|
57
56
|
onPress: () => {
|
|
58
|
-
|
|
57
|
+
a == null || a();
|
|
59
58
|
},
|
|
60
59
|
children: [
|
|
61
60
|
/* @__PURE__ */ e(
|
|
62
|
-
|
|
61
|
+
N,
|
|
63
62
|
{
|
|
64
63
|
avatar: t,
|
|
65
|
-
avatarPair:
|
|
66
|
-
title:
|
|
64
|
+
avatarPair: n,
|
|
65
|
+
title: u,
|
|
67
66
|
isPairAvatarVisible: o
|
|
68
67
|
}
|
|
69
68
|
),
|
|
70
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ l("div", { className: "uy-flex uy-pointer-events-none uy-opacity-0 group-hover:uy-opacity-70 group-hover:uy-pointer-events-auto group-focus-visible:uy-opacity-70 group-focus-visible:uy-pointer-events-auto uy-bg-utility-backdrop uy-rounded-circle 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: [
|
|
71
70
|
/* @__PURE__ */ e(
|
|
72
|
-
|
|
71
|
+
M,
|
|
73
72
|
{
|
|
74
73
|
alt: "Camera",
|
|
75
74
|
color: "content.inverted",
|
|
@@ -77,8 +76,8 @@ const v = (t) => /* @__PURE__ */ u(
|
|
|
77
76
|
src: "CameraOutlined"
|
|
78
77
|
}
|
|
79
78
|
),
|
|
80
|
-
/* @__PURE__ */ e("span", { className: "uy-sr-only", id: "profile-picture-change-desc", children:
|
|
81
|
-
|
|
79
|
+
/* @__PURE__ */ e("span", { className: "uy-sr-only", id: "profile-picture-change-desc", children: r || /* @__PURE__ */ e(
|
|
80
|
+
v,
|
|
82
81
|
{
|
|
83
82
|
id: "unity:component:app-menu:footer:profile-button:avatar:change-description",
|
|
84
83
|
defaultMessage: "Press enter to change profile picture"
|
|
@@ -88,38 +87,38 @@ const v = (t) => /* @__PURE__ */ u(
|
|
|
88
87
|
]
|
|
89
88
|
}
|
|
90
89
|
);
|
|
91
|
-
},
|
|
90
|
+
}, b = ({
|
|
92
91
|
asMenuHeader: t = !1,
|
|
93
|
-
avatar:
|
|
94
|
-
avatarPair:
|
|
95
|
-
badgeLabel:
|
|
92
|
+
avatar: n,
|
|
93
|
+
avatarPair: u,
|
|
94
|
+
badgeLabel: a,
|
|
96
95
|
description: c,
|
|
97
|
-
menuTriggerDescription:
|
|
96
|
+
menuTriggerDescription: r,
|
|
98
97
|
title: o,
|
|
99
98
|
uploadAvatarCallback: s,
|
|
100
99
|
uploadAvatarLabel: y,
|
|
101
100
|
uploadAvatarDescription: i
|
|
102
|
-
}) => /* @__PURE__ */
|
|
101
|
+
}) => /* @__PURE__ */ l("div", { className: "uy-min-w-[240px] uy-w-full uy-flex uy-items-center", children: [
|
|
103
102
|
/* @__PURE__ */ e("div", { className: "uy-mr-150 uy-flex uy-items-center", children: s ? /* @__PURE__ */ e(
|
|
104
|
-
|
|
103
|
+
R,
|
|
105
104
|
{
|
|
106
|
-
avatar:
|
|
107
|
-
avatarPair:
|
|
105
|
+
avatar: n,
|
|
106
|
+
avatarPair: u,
|
|
108
107
|
title: o,
|
|
109
108
|
uploadAvatarLabel: y,
|
|
110
109
|
uploadAvatarDescription: i,
|
|
111
110
|
uploadAvatarCallback: s
|
|
112
111
|
}
|
|
113
112
|
) : /* @__PURE__ */ e(
|
|
114
|
-
|
|
113
|
+
N,
|
|
115
114
|
{
|
|
116
|
-
avatar:
|
|
117
|
-
avatarPair:
|
|
115
|
+
avatar: n,
|
|
116
|
+
avatarPair: u,
|
|
118
117
|
title: o,
|
|
119
118
|
isPairAvatarVisible: !0
|
|
120
119
|
}
|
|
121
120
|
) }),
|
|
122
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ l("div", { className: "uy-flex uy-flex-col uy-text-left uy-leading-125 uy-min-w-[50%] uy-flex-grow", children: [
|
|
123
122
|
/* @__PURE__ */ e(
|
|
124
123
|
"span",
|
|
125
124
|
{
|
|
@@ -137,16 +136,16 @@ const v = (t) => /* @__PURE__ */ u(
|
|
|
137
136
|
children: c
|
|
138
137
|
}
|
|
139
138
|
),
|
|
140
|
-
!t && /* @__PURE__ */ e("span", { id: "profile-button-description", className: "uy-sr-only", children:
|
|
141
|
-
|
|
139
|
+
!t && /* @__PURE__ */ e("span", { id: "profile-button-description", className: "uy-sr-only", children: r || /* @__PURE__ */ e(
|
|
140
|
+
v,
|
|
142
141
|
{
|
|
143
142
|
id: "unity:component:app-menu:footer:profile-button:description",
|
|
144
143
|
defaultMessage: "Press this button to open the profile menu."
|
|
145
144
|
}
|
|
146
145
|
) })
|
|
147
146
|
] }),
|
|
148
|
-
/* @__PURE__ */ e("div", { className: "uy-p-100", children: t ? /* @__PURE__ */ e(
|
|
149
|
-
|
|
147
|
+
/* @__PURE__ */ e("div", { className: "uy-p-100", children: t ? /* @__PURE__ */ e(A, { className: "uy-capitalize", variant: "neutral", children: a }) : /* @__PURE__ */ e(
|
|
148
|
+
M,
|
|
150
149
|
{
|
|
151
150
|
src: "CaretUpDownOutlined",
|
|
152
151
|
alt: "open",
|
|
@@ -154,79 +153,81 @@ const v = (t) => /* @__PURE__ */ u(
|
|
|
154
153
|
color: "content.neutral.low"
|
|
155
154
|
}
|
|
156
155
|
) })
|
|
157
|
-
] }),
|
|
156
|
+
] }), D = ({
|
|
158
157
|
avatar: t,
|
|
159
|
-
avatarPair:
|
|
160
|
-
badgeLabel:
|
|
161
|
-
children:
|
|
158
|
+
avatarPair: n,
|
|
159
|
+
badgeLabel: u,
|
|
160
|
+
children: a,
|
|
162
161
|
computeSlot: c,
|
|
163
|
-
description:
|
|
162
|
+
description: r,
|
|
164
163
|
title: o,
|
|
165
164
|
menuTriggerDescription: s,
|
|
166
165
|
uploadAvatarCallback: y,
|
|
167
166
|
uploadAvatarLabel: i,
|
|
168
167
|
uploadAvatarDescription: d
|
|
169
168
|
}) => {
|
|
170
|
-
const { isMobileMenuOpen:
|
|
169
|
+
const { isMobileMenuOpen: f } = C(), [w, m] = g(!1), p = I(null), P = h(
|
|
171
170
|
"uy-fixed uy-bottom-0 uy-left-0 uy-right-0 uy-z-10 uy-bg-canvas",
|
|
172
171
|
"uy-p-150",
|
|
173
172
|
"md:uy-static md:uy-mt-auto md:uy-p-0 md:uy-bg-[transparent]",
|
|
174
173
|
"data-[mobile-open=false]:uy-hidden md:data-[mobile-open=false]:uy-block data-[mobile-open=true]:uy-block"
|
|
175
174
|
);
|
|
176
|
-
return /* @__PURE__ */
|
|
175
|
+
return /* @__PURE__ */ l(
|
|
177
176
|
"aside",
|
|
178
177
|
{
|
|
179
|
-
className:
|
|
180
|
-
"data-mobile-open":
|
|
178
|
+
className: P,
|
|
179
|
+
"data-mobile-open": f,
|
|
181
180
|
id: "app-menu-profile-button",
|
|
182
181
|
children: [
|
|
183
182
|
c,
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
badgeLabel: a,
|
|
197
|
-
description: n,
|
|
198
|
-
menuTriggerDescription: s,
|
|
199
|
-
title: o,
|
|
200
|
-
uploadAvatarCallback: y,
|
|
201
|
-
uploadAvatarLabel: i,
|
|
202
|
-
uploadAvatarDescription: d
|
|
203
|
-
}
|
|
204
|
-
)
|
|
205
|
-
}
|
|
206
|
-
) }),
|
|
207
|
-
/* @__PURE__ */ u(j, { width: 312, placement: "top left", children: [
|
|
208
|
-
/* @__PURE__ */ e(A, { className: "uy-rounded-75", children: /* @__PURE__ */ e(
|
|
209
|
-
f,
|
|
183
|
+
/* @__PURE__ */ e(
|
|
184
|
+
x,
|
|
185
|
+
{
|
|
186
|
+
ref: p,
|
|
187
|
+
className: "uy-rounded-75 uy-px-150 uy-py-100 uy-w-full enabled:hover:uy-bg-surface-neutral-hover enabled:active:uy-bg-surface-neutral-active enabled:data-[pressed]:uy-bg-surface-neutral-active enabled:focus-visible:uy-outline-none enabled:focus-visible:uy-ring-2 enabled:focus-visible:uy-ring-utility-focus-ring enabled:focus-visible:uy-ring-offset-2",
|
|
188
|
+
"aria-labelledby": "profile-button-label",
|
|
189
|
+
"aria-describedby": "profile-button-description",
|
|
190
|
+
onPress: () => {
|
|
191
|
+
m(!0);
|
|
192
|
+
},
|
|
193
|
+
children: /* @__PURE__ */ e(
|
|
194
|
+
b,
|
|
210
195
|
{
|
|
211
|
-
asMenuHeader: !0,
|
|
212
196
|
avatar: t,
|
|
213
|
-
avatarPair:
|
|
214
|
-
badgeLabel:
|
|
215
|
-
description:
|
|
197
|
+
avatarPair: n,
|
|
198
|
+
badgeLabel: u,
|
|
199
|
+
description: r,
|
|
216
200
|
menuTriggerDescription: s,
|
|
217
201
|
title: o,
|
|
218
202
|
uploadAvatarCallback: y,
|
|
219
203
|
uploadAvatarLabel: i,
|
|
220
204
|
uploadAvatarDescription: d
|
|
221
205
|
}
|
|
222
|
-
)
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
206
|
+
)
|
|
207
|
+
}
|
|
208
|
+
),
|
|
209
|
+
/* @__PURE__ */ e(E, { isOpen: w, onOpenChange: m, children: /* @__PURE__ */ l(S, { width: 312, placement: "top left", triggerRef: p, children: [
|
|
210
|
+
/* @__PURE__ */ e(B, { className: "uy-rounded-75", children: /* @__PURE__ */ e(
|
|
211
|
+
b,
|
|
212
|
+
{
|
|
213
|
+
asMenuHeader: !0,
|
|
214
|
+
avatar: t,
|
|
215
|
+
avatarPair: n,
|
|
216
|
+
badgeLabel: u,
|
|
217
|
+
description: r,
|
|
218
|
+
menuTriggerDescription: s,
|
|
219
|
+
title: o,
|
|
220
|
+
uploadAvatarCallback: y,
|
|
221
|
+
uploadAvatarLabel: i,
|
|
222
|
+
uploadAvatarDescription: d
|
|
223
|
+
}
|
|
224
|
+
) }),
|
|
225
|
+
a
|
|
226
|
+
] }) })
|
|
226
227
|
]
|
|
227
228
|
}
|
|
228
229
|
);
|
|
229
230
|
};
|
|
230
231
|
export {
|
|
231
|
-
|
|
232
|
+
D as AppMenuFooter
|
|
232
233
|
};
|
|
@@ -4,17 +4,17 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
4
4
|
export declare const autocompleteItemGroup: import('tailwind-variants').TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
7
|
-
separator?: import('tailwind-merge').ClassNameValue;
|
|
8
7
|
base?: import('tailwind-merge').ClassNameValue;
|
|
9
8
|
header?: import('tailwind-merge').ClassNameValue;
|
|
9
|
+
separator?: import('tailwind-merge').ClassNameValue;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: {
|
|
14
14
|
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
15
|
-
separator?: import('tailwind-merge').ClassNameValue;
|
|
16
15
|
base?: import('tailwind-merge').ClassNameValue;
|
|
17
16
|
header?: import('tailwind-merge').ClassNameValue;
|
|
17
|
+
separator?: import('tailwind-merge').ClassNameValue;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
} | {}, {
|
|
@@ -24,17 +24,17 @@ export declare const autocompleteItemGroup: import('tailwind-variants').TVReturn
|
|
|
24
24
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<unknown, {
|
|
25
25
|
[key: string]: {
|
|
26
26
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
27
|
-
separator?: import('tailwind-merge').ClassNameValue;
|
|
28
27
|
base?: import('tailwind-merge').ClassNameValue;
|
|
29
28
|
header?: import('tailwind-merge').ClassNameValue;
|
|
29
|
+
separator?: import('tailwind-merge').ClassNameValue;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
} | {}>, {
|
|
33
33
|
[key: string]: {
|
|
34
34
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
35
|
-
separator?: import('tailwind-merge').ClassNameValue;
|
|
36
35
|
base?: import('tailwind-merge').ClassNameValue;
|
|
37
36
|
header?: import('tailwind-merge').ClassNameValue;
|
|
37
|
+
separator?: import('tailwind-merge').ClassNameValue;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
} | {}, {
|
|
@@ -48,9 +48,9 @@ export declare const autocompleteItemGroup: import('tailwind-variants').TVReturn
|
|
|
48
48
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<unknown, {
|
|
49
49
|
[key: string]: {
|
|
50
50
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
51
|
-
separator?: import('tailwind-merge').ClassNameValue;
|
|
52
51
|
base?: import('tailwind-merge').ClassNameValue;
|
|
53
52
|
header?: import('tailwind-merge').ClassNameValue;
|
|
53
|
+
separator?: import('tailwind-merge').ClassNameValue;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
} | {}>, unknown, unknown, undefined>>;
|
|
@@ -5,15 +5,15 @@ import { AutocompleteProps } from '../Autocomplete.js';
|
|
|
5
5
|
export declare const autocompletePanel: import('tailwind-variants').TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
8
|
-
list?: import('tailwind-merge').ClassNameValue;
|
|
9
8
|
base?: import('tailwind-merge').ClassNameValue;
|
|
9
|
+
list?: import('tailwind-merge').ClassNameValue;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: {
|
|
14
14
|
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
15
|
-
list?: import('tailwind-merge').ClassNameValue;
|
|
16
15
|
base?: import('tailwind-merge').ClassNameValue;
|
|
16
|
+
list?: import('tailwind-merge').ClassNameValue;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
} | {}, {
|
|
@@ -22,15 +22,15 @@ export declare const autocompletePanel: import('tailwind-variants').TVReturnType
|
|
|
22
22
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<unknown, {
|
|
23
23
|
[key: string]: {
|
|
24
24
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
25
|
-
list?: import('tailwind-merge').ClassNameValue;
|
|
26
25
|
base?: import('tailwind-merge').ClassNameValue;
|
|
26
|
+
list?: import('tailwind-merge').ClassNameValue;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
} | {}>, {
|
|
30
30
|
[key: string]: {
|
|
31
31
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
32
|
-
list?: import('tailwind-merge').ClassNameValue;
|
|
33
32
|
base?: import('tailwind-merge').ClassNameValue;
|
|
33
|
+
list?: import('tailwind-merge').ClassNameValue;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
} | {}, {
|
|
@@ -42,8 +42,8 @@ export declare const autocompletePanel: import('tailwind-variants').TVReturnType
|
|
|
42
42
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<unknown, {
|
|
43
43
|
[key: string]: {
|
|
44
44
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
45
|
-
list?: import('tailwind-merge').ClassNameValue;
|
|
46
45
|
base?: import('tailwind-merge').ClassNameValue;
|
|
46
|
+
list?: import('tailwind-merge').ClassNameValue;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
} | {}>, unknown, unknown, undefined>>;
|
|
@@ -6,7 +6,7 @@ import { BottomSheetDragIndicator as w } from "./parts/BottomSheetDragIndicator.
|
|
|
6
6
|
const g = x({
|
|
7
7
|
slots: {
|
|
8
8
|
overlay: [
|
|
9
|
-
"uy-fixed uy-inset-0 uy-z-
|
|
9
|
+
"uy-fixed uy-inset-0 uy-z-30 uy-overflow-y-auto",
|
|
10
10
|
"uy-backdrop-blur-sm uy-bg-utility-backdrop/65",
|
|
11
11
|
"data-[entering]:uy-animate-fade-in data-[exiting]:uy-animate-fade-out"
|
|
12
12
|
],
|
|
@@ -3,18 +3,18 @@ import { VariantProps } from 'tailwind-variants';
|
|
|
3
3
|
export declare const bottomSheetHeader: import('tailwind-variants').TVReturnType<{
|
|
4
4
|
[key: string]: {
|
|
5
5
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
6
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
6
7
|
content?: import('tailwind-merge').ClassNameValue;
|
|
7
8
|
heading?: import('tailwind-merge').ClassNameValue;
|
|
8
|
-
base?: import('tailwind-merge').ClassNameValue;
|
|
9
9
|
buttonContainer?: import('tailwind-merge').ClassNameValue;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: {
|
|
14
14
|
[x: string]: import('tailwind-merge').ClassNameValue | {
|
|
15
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
15
16
|
content?: import('tailwind-merge').ClassNameValue;
|
|
16
17
|
heading?: import('tailwind-merge').ClassNameValue;
|
|
17
|
-
base?: import('tailwind-merge').ClassNameValue;
|
|
18
18
|
buttonContainer?: import('tailwind-merge').ClassNameValue;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
@@ -26,18 +26,18 @@ export declare const bottomSheetHeader: import('tailwind-variants').TVReturnType
|
|
|
26
26
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<unknown, {
|
|
27
27
|
[key: string]: {
|
|
28
28
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
29
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
29
30
|
content?: import('tailwind-merge').ClassNameValue;
|
|
30
31
|
heading?: import('tailwind-merge').ClassNameValue;
|
|
31
|
-
base?: import('tailwind-merge').ClassNameValue;
|
|
32
32
|
buttonContainer?: import('tailwind-merge').ClassNameValue;
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
35
|
} | {}>, {
|
|
36
36
|
[key: string]: {
|
|
37
37
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
38
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
38
39
|
content?: import('tailwind-merge').ClassNameValue;
|
|
39
40
|
heading?: import('tailwind-merge').ClassNameValue;
|
|
40
|
-
base?: import('tailwind-merge').ClassNameValue;
|
|
41
41
|
buttonContainer?: import('tailwind-merge').ClassNameValue;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
@@ -54,9 +54,9 @@ export declare const bottomSheetHeader: import('tailwind-variants').TVReturnType
|
|
|
54
54
|
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<unknown, {
|
|
55
55
|
[key: string]: {
|
|
56
56
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
57
|
+
base?: import('tailwind-merge').ClassNameValue;
|
|
57
58
|
content?: import('tailwind-merge').ClassNameValue;
|
|
58
59
|
heading?: import('tailwind-merge').ClassNameValue;
|
|
59
|
-
base?: import('tailwind-merge').ClassNameValue;
|
|
60
60
|
buttonContainer?: import('tailwind-merge').ClassNameValue;
|
|
61
61
|
};
|
|
62
62
|
};
|
|
@@ -15,7 +15,7 @@ export interface BreadcrumbsProps extends AriaAriaBreadcrumbsProps, Pick<AriaBre
|
|
|
15
15
|
*/
|
|
16
16
|
wrap: VariantProps<typeof breadcrumbsVariant>['wrap'];
|
|
17
17
|
}
|
|
18
|
-
export interface BreadcrumbsWithItemProps extends AriaAriaBreadcrumbsProps, VariantProps<typeof breadcrumbsVariant> {
|
|
18
|
+
export interface BreadcrumbsWithItemProps extends AriaAriaBreadcrumbsProps, VariantProps<typeof breadcrumbsVariant>, Pick<AriaBreadcrumbsProps<BreadcrumbsProps>, 'onAction'> {
|
|
19
19
|
/**
|
|
20
20
|
* The list of items to render, when using the dynamic API.
|
|
21
21
|
*/
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Breadcrumbs as
|
|
4
|
-
import { useBreakpointListener as
|
|
5
|
-
import { BreadcrumbsProvider as
|
|
6
|
-
import { breadcrumbsVariant as
|
|
7
|
-
const
|
|
8
|
-
const { base:
|
|
2
|
+
import { forwardRef as m, Fragment as d } from "react";
|
|
3
|
+
import { Breadcrumbs as p } from "react-aria-components";
|
|
4
|
+
import { useBreakpointListener as u } from "../../hooks/use-breakpoint-listener.js";
|
|
5
|
+
import { BreadcrumbsProvider as f } from "./Breadcrumbs.context.js";
|
|
6
|
+
import { breadcrumbsVariant as l } from "./Breadcrumbs.variant.js";
|
|
7
|
+
const b = (o, r, t) => o ? r.length === 0 ? null : t(r.at(r.length === 1 ? 0 : -2)) : r.map((a) => /* @__PURE__ */ e(d, { children: t(a) }, `${a.label}${a.href}`)), w = m(({ items: o, children: r, wrap: t = "nowrap", ...a }, i) => {
|
|
8
|
+
const { base: c } = l({ wrap: t }), n = u(), s = n === "xs" || n === "sm";
|
|
9
9
|
return /* @__PURE__ */ e(
|
|
10
|
-
|
|
10
|
+
f,
|
|
11
11
|
{
|
|
12
12
|
wrap: t,
|
|
13
13
|
isMobile: s,
|
|
14
14
|
isStaticApi: o === void 0,
|
|
15
|
-
children: /* @__PURE__ */ e(
|
|
15
|
+
children: /* @__PURE__ */ e(
|
|
16
|
+
p,
|
|
17
|
+
{
|
|
18
|
+
"data-dd-privacy": "allow",
|
|
19
|
+
ref: i,
|
|
20
|
+
className: c(),
|
|
21
|
+
...a,
|
|
22
|
+
children: o ? b(s, o, r) : r
|
|
23
|
+
}
|
|
24
|
+
)
|
|
16
25
|
}
|
|
17
26
|
);
|
|
18
27
|
});
|
|
19
28
|
export {
|
|
20
|
-
|
|
29
|
+
w as Breadcrumbs
|
|
21
30
|
};
|
|
@@ -5,5 +5,5 @@ export interface BreadcrumbProps extends Omit<AriaBreadcrumbProps, 'children'> {
|
|
|
5
5
|
/** The text of the breadcrumb */
|
|
6
6
|
label: string;
|
|
7
7
|
}
|
|
8
|
-
declare const Breadcrumb: import('react').ForwardRefExoticComponent<BreadcrumbProps & import('react').RefAttributes<
|
|
8
|
+
declare const Breadcrumb: import('react').ForwardRefExoticComponent<BreadcrumbProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
9
9
|
export { Breadcrumb };
|