@webority/ui-react 0.37.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AppAccordion.js +1 -57
- package/dist/components/AppActionIcon.js +1 -53
- package/dist/components/AppAlert.js +1 -85
- package/dist/components/AppAsyncBlock.js +1 -48
- package/dist/components/AppAutocomplete.js +1 -93
- package/dist/components/AppAvatar.js +1 -143
- package/dist/components/AppAvatarGroup.js +1 -43
- package/dist/components/AppAvatarPicker.js +1 -247
- package/dist/components/AppBadge.js +1 -28
- package/dist/components/AppBanner.js +1 -49
- package/dist/components/AppBreadcrumbs.js +1 -24
- package/dist/components/AppButton.js +1 -85
- package/dist/components/AppCalendar.js +1 -72
- package/dist/components/AppCard.js +1 -110
- package/dist/components/AppChart.js +1 -153
- package/dist/components/AppChartCard.js +1 -125
- package/dist/components/AppCheckbox.js +1 -21
- package/dist/components/AppChip.js +1 -71
- package/dist/components/AppChoiceCard.js +1 -69
- package/dist/components/AppChoiceChip.js +1 -31
- package/dist/components/AppColorField.js +1 -63
- package/dist/components/AppColumnMenu.js +1 -27
- package/dist/components/AppCommandPalette.js +1 -164
- package/dist/components/AppCompareTable.js +1 -41
- package/dist/components/AppConfirmDialog.js +1 -93
- package/dist/components/AppConsentBanner.js +1 -37
- package/dist/components/AppContextMenu.js +1 -46
- package/dist/components/AppCopyButton.js +1 -41
- package/dist/components/AppCountrySelect.js +1 -75
- package/dist/components/AppDashboardCell.js +1 -19
- package/dist/components/AppDashboardGrid.js +1 -12
- package/dist/components/AppDataTable.js +1 -213
- package/dist/components/AppDatePicker.js +1 -59
- package/dist/components/AppDateRangePicker.js +1 -73
- package/dist/components/AppDescriptions.js +1 -40
- package/dist/components/AppDropZone.js +1 -106
- package/dist/components/AppDropdown.js +1 -90
- package/dist/components/AppEmptyState.js +1 -37
- package/dist/components/AppErrorSummary.js +1 -37
- package/dist/components/AppFileAttachment.js +1 -140
- package/dist/components/AppFilePicker.js +1 -220
- package/dist/components/AppFileViewer.js +1 -50
- package/dist/components/AppFilterBar.js +1 -129
- package/dist/components/AppFloatingDock.js +1 -47
- package/dist/components/AppFormActions.js +1 -23
- package/dist/components/AppFormRow.js +1 -24
- package/dist/components/AppFormSection.js +1 -32
- package/dist/components/AppIcon.js +1 -147
- package/dist/components/AppInfoList.js +1 -36
- package/dist/components/AppInfoTip.js +1 -41
- package/dist/components/AppInput.js +1 -269
- package/dist/components/AppKanban.js +1 -270
- package/dist/components/AppKpiTile.js +1 -91
- package/dist/components/AppLink.js +1 -74
- package/dist/components/AppLogoPicker.js +1 -264
- package/dist/components/AppMeter.js +1 -42
- package/dist/components/AppModal.js +1 -124
- package/dist/components/AppMultiSelect.js +1 -75
- package/dist/components/AppNumberInput.js +1 -139
- package/dist/components/AppOtpInput.js +1 -53
- package/dist/components/AppPageHeader.js +1 -82
- package/dist/components/AppPagination.js +1 -66
- package/dist/components/AppPhoneNumberInput.js +1 -53
- package/dist/components/AppPopover.js +1 -47
- package/dist/components/AppPricingCard.js +1 -58
- package/dist/components/AppProgress.js +1 -42
- package/dist/components/AppQrCode.js +1 -40
- package/dist/components/AppRadio.js +1 -21
- package/dist/components/AppRadioGroup.js +1 -79
- package/dist/components/AppRepeater.js +1 -57
- package/dist/components/AppRequiredMark.js +1 -11
- package/dist/components/AppResourceCard.js +1 -38
- package/dist/components/AppResult.js +1 -66
- package/dist/components/AppRichText.js +1 -72
- package/dist/components/AppRouteError.js +1 -0
- package/dist/components/AppScrollbar.js +1 -16
- package/dist/components/AppSearch.js +1 -52
- package/dist/components/AppSegmented.js +1 -87
- package/dist/components/AppSelect.js +1 -95
- package/dist/components/AppSelectMini.js +1 -45
- package/dist/components/AppShell.js +1 -712
- package/dist/components/AppSidebarMenu.js +1 -77
- package/dist/components/AppSkeleton.js +1 -24
- package/dist/components/AppSlider.js +1 -76
- package/dist/components/AppSortableList.js +1 -63
- package/dist/components/AppSparkline.js +1 -47
- package/dist/components/AppSpinner.js +1 -23
- package/dist/components/AppSplash.js +1 -62
- package/dist/components/AppStatusBadge.js +1 -22
- package/dist/components/AppStepper.js +1 -94
- package/dist/components/AppSwitch.js +1 -26
- package/dist/components/AppTableEmptyState.js +1 -30
- package/dist/components/AppTablePagination.js +1 -85
- package/dist/components/AppTableToolbar.js +1 -41
- package/dist/components/AppTabs.js +1 -195
- package/dist/components/AppTagInput.js +1 -63
- package/dist/components/AppTextarea.js +1 -81
- package/dist/components/AppThemeToggle.js +1 -102
- package/dist/components/AppTimePicker.js +1 -68
- package/dist/components/AppTimeline.js +1 -102
- package/dist/components/AppToast.js +1 -169
- package/dist/components/AppToolbar.js +1 -63
- package/dist/components/AppTooltip.js +1 -50
- package/dist/components/AppTour.js +1 -39
- package/dist/components/AppTreeView.js +1 -61
- package/dist/components/AppUpdateBar.js +1 -0
- package/dist/components/AppWizard.js +1 -82
- package/dist/components/AppWorkspaceSwitcher.js +1 -176
- package/dist/components/ModalIcons.js +1 -18
- package/dist/components/iconCatalogFull/bold/a.g.js +1 -69
- package/dist/components/iconCatalogFull/bold/b.g.js +1 -79
- package/dist/components/iconCatalogFull/bold/c.g.js +1 -98
- package/dist/components/iconCatalogFull/bold/d.g.js +1 -54
- package/dist/components/iconCatalogFull/bold/e.g.js +1 -34
- package/dist/components/iconCatalogFull/bold/f.g.js +1 -39
- package/dist/components/iconCatalogFull/bold/g.g.js +1 -43
- package/dist/components/iconCatalogFull/bold/h.g.js +1 -38
- package/dist/components/iconCatalogFull/bold/i.g.js +1 -20
- package/dist/components/iconCatalogFull/bold/j.g.js +1 -8
- package/dist/components/iconCatalogFull/bold/k.g.js +1 -9
- package/dist/components/iconCatalogFull/bold/l.g.js +1 -38
- package/dist/components/iconCatalogFull/bold/m.g.js +1 -91
- package/dist/components/iconCatalogFull/bold/n.g.js +1 -23
- package/dist/components/iconCatalogFull/bold/o.g.js +1 -11
- package/dist/components/iconCatalogFull/bold/p.g.js +1 -45
- package/dist/components/iconCatalogFull/bold/q.g.js +1 -12
- package/dist/components/iconCatalogFull/bold/r.g.js +1 -47
- package/dist/components/iconCatalogFull/bold/s.g.js +1 -99
- package/dist/components/iconCatalogFull/bold/t.g.js +1 -60
- package/dist/components/iconCatalogFull/bold/u.g.js +1 -17
- package/dist/components/iconCatalogFull/bold/v.g.js +1 -27
- package/dist/components/iconCatalogFull/bold/w.g.js +1 -30
- package/dist/components/iconCatalogFull/bold/x.g.js +1 -8
- package/dist/components/iconCatalogFull/bold/y.g.js +1 -0
- package/dist/components/iconCatalogFull/bold/z.g.js +1 -7
- package/dist/components/iconCatalogFull/broken/a.g.js +1 -69
- package/dist/components/iconCatalogFull/broken/b.g.js +1 -79
- package/dist/components/iconCatalogFull/broken/c.g.js +1 -98
- package/dist/components/iconCatalogFull/broken/d.g.js +1 -54
- package/dist/components/iconCatalogFull/broken/e.g.js +1 -34
- package/dist/components/iconCatalogFull/broken/f.g.js +1 -39
- package/dist/components/iconCatalogFull/broken/g.g.js +1 -43
- package/dist/components/iconCatalogFull/broken/h.g.js +1 -38
- package/dist/components/iconCatalogFull/broken/i.g.js +1 -20
- package/dist/components/iconCatalogFull/broken/j.g.js +1 -8
- package/dist/components/iconCatalogFull/broken/k.g.js +1 -9
- package/dist/components/iconCatalogFull/broken/l.g.js +1 -38
- package/dist/components/iconCatalogFull/broken/m.g.js +1 -91
- package/dist/components/iconCatalogFull/broken/n.g.js +1 -23
- package/dist/components/iconCatalogFull/broken/o.g.js +1 -11
- package/dist/components/iconCatalogFull/broken/p.g.js +1 -45
- package/dist/components/iconCatalogFull/broken/q.g.js +1 -12
- package/dist/components/iconCatalogFull/broken/r.g.js +1 -47
- package/dist/components/iconCatalogFull/broken/s.g.js +1 -99
- package/dist/components/iconCatalogFull/broken/t.g.js +1 -60
- package/dist/components/iconCatalogFull/broken/u.g.js +1 -17
- package/dist/components/iconCatalogFull/broken/v.g.js +1 -27
- package/dist/components/iconCatalogFull/broken/w.g.js +1 -30
- package/dist/components/iconCatalogFull/broken/x.g.js +1 -8
- package/dist/components/iconCatalogFull/broken/y.g.js +1 -0
- package/dist/components/iconCatalogFull/broken/z.g.js +1 -7
- package/dist/components/iconCatalogFull/bulk/a.g.js +1 -69
- package/dist/components/iconCatalogFull/bulk/b.g.js +1 -79
- package/dist/components/iconCatalogFull/bulk/c.g.js +1 -98
- package/dist/components/iconCatalogFull/bulk/d.g.js +1 -54
- package/dist/components/iconCatalogFull/bulk/e.g.js +1 -34
- package/dist/components/iconCatalogFull/bulk/f.g.js +1 -39
- package/dist/components/iconCatalogFull/bulk/g.g.js +1 -43
- package/dist/components/iconCatalogFull/bulk/h.g.js +1 -38
- package/dist/components/iconCatalogFull/bulk/i.g.js +1 -20
- package/dist/components/iconCatalogFull/bulk/j.g.js +1 -8
- package/dist/components/iconCatalogFull/bulk/k.g.js +1 -9
- package/dist/components/iconCatalogFull/bulk/l.g.js +1 -38
- package/dist/components/iconCatalogFull/bulk/m.g.js +1 -91
- package/dist/components/iconCatalogFull/bulk/n.g.js +1 -23
- package/dist/components/iconCatalogFull/bulk/o.g.js +1 -11
- package/dist/components/iconCatalogFull/bulk/p.g.js +1 -45
- package/dist/components/iconCatalogFull/bulk/q.g.js +1 -12
- package/dist/components/iconCatalogFull/bulk/r.g.js +1 -47
- package/dist/components/iconCatalogFull/bulk/s.g.js +1 -99
- package/dist/components/iconCatalogFull/bulk/t.g.js +1 -60
- package/dist/components/iconCatalogFull/bulk/u.g.js +1 -17
- package/dist/components/iconCatalogFull/bulk/v.g.js +1 -27
- package/dist/components/iconCatalogFull/bulk/w.g.js +1 -30
- package/dist/components/iconCatalogFull/bulk/x.g.js +1 -8
- package/dist/components/iconCatalogFull/bulk/y.g.js +1 -0
- package/dist/components/iconCatalogFull/bulk/z.g.js +1 -7
- package/dist/components/iconCatalogFull/linear/a.g.js +1 -69
- package/dist/components/iconCatalogFull/linear/b.g.js +1 -79
- package/dist/components/iconCatalogFull/linear/c.g.js +1 -98
- package/dist/components/iconCatalogFull/linear/d.g.js +1 -54
- package/dist/components/iconCatalogFull/linear/e.g.js +1 -34
- package/dist/components/iconCatalogFull/linear/f.g.js +1 -39
- package/dist/components/iconCatalogFull/linear/g.g.js +1 -43
- package/dist/components/iconCatalogFull/linear/h.g.js +1 -38
- package/dist/components/iconCatalogFull/linear/i.g.js +1 -20
- package/dist/components/iconCatalogFull/linear/j.g.js +1 -8
- package/dist/components/iconCatalogFull/linear/k.g.js +1 -9
- package/dist/components/iconCatalogFull/linear/l.g.js +1 -38
- package/dist/components/iconCatalogFull/linear/m.g.js +1 -91
- package/dist/components/iconCatalogFull/linear/n.g.js +1 -23
- package/dist/components/iconCatalogFull/linear/o.g.js +1 -11
- package/dist/components/iconCatalogFull/linear/p.g.js +1 -45
- package/dist/components/iconCatalogFull/linear/q.g.js +1 -12
- package/dist/components/iconCatalogFull/linear/r.g.js +1 -47
- package/dist/components/iconCatalogFull/linear/s.g.js +1 -99
- package/dist/components/iconCatalogFull/linear/t.g.js +1 -60
- package/dist/components/iconCatalogFull/linear/u.g.js +1 -17
- package/dist/components/iconCatalogFull/linear/v.g.js +1 -27
- package/dist/components/iconCatalogFull/linear/w.g.js +1 -30
- package/dist/components/iconCatalogFull/linear/x.g.js +1 -8
- package/dist/components/iconCatalogFull/linear/y.g.js +1 -0
- package/dist/components/iconCatalogFull/linear/z.g.js +1 -7
- package/dist/components/iconCatalogFull/outline/a.g.js +1 -69
- package/dist/components/iconCatalogFull/outline/b.g.js +1 -79
- package/dist/components/iconCatalogFull/outline/c.g.js +1 -98
- package/dist/components/iconCatalogFull/outline/d.g.js +1 -54
- package/dist/components/iconCatalogFull/outline/e.g.js +1 -34
- package/dist/components/iconCatalogFull/outline/f.g.js +1 -39
- package/dist/components/iconCatalogFull/outline/g.g.js +1 -43
- package/dist/components/iconCatalogFull/outline/h.g.js +1 -38
- package/dist/components/iconCatalogFull/outline/i.g.js +1 -20
- package/dist/components/iconCatalogFull/outline/j.g.js +1 -8
- package/dist/components/iconCatalogFull/outline/k.g.js +1 -9
- package/dist/components/iconCatalogFull/outline/l.g.js +1 -38
- package/dist/components/iconCatalogFull/outline/m.g.js +1 -91
- package/dist/components/iconCatalogFull/outline/n.g.js +1 -23
- package/dist/components/iconCatalogFull/outline/o.g.js +1 -11
- package/dist/components/iconCatalogFull/outline/p.g.js +1 -45
- package/dist/components/iconCatalogFull/outline/q.g.js +1 -12
- package/dist/components/iconCatalogFull/outline/r.g.js +1 -47
- package/dist/components/iconCatalogFull/outline/s.g.js +1 -99
- package/dist/components/iconCatalogFull/outline/t.g.js +1 -60
- package/dist/components/iconCatalogFull/outline/u.g.js +1 -17
- package/dist/components/iconCatalogFull/outline/v.g.js +1 -27
- package/dist/components/iconCatalogFull/outline/w.g.js +1 -30
- package/dist/components/iconCatalogFull/outline/x.g.js +1 -8
- package/dist/components/iconCatalogFull/outline/y.g.js +1 -0
- package/dist/components/iconCatalogFull/outline/z.g.js +1 -7
- package/dist/components/iconCatalogFull/twotone/a.g.js +1 -69
- package/dist/components/iconCatalogFull/twotone/b.g.js +1 -79
- package/dist/components/iconCatalogFull/twotone/c.g.js +1 -98
- package/dist/components/iconCatalogFull/twotone/d.g.js +1 -54
- package/dist/components/iconCatalogFull/twotone/e.g.js +1 -34
- package/dist/components/iconCatalogFull/twotone/f.g.js +1 -39
- package/dist/components/iconCatalogFull/twotone/g.g.js +1 -43
- package/dist/components/iconCatalogFull/twotone/h.g.js +1 -38
- package/dist/components/iconCatalogFull/twotone/i.g.js +1 -20
- package/dist/components/iconCatalogFull/twotone/j.g.js +1 -8
- package/dist/components/iconCatalogFull/twotone/k.g.js +1 -9
- package/dist/components/iconCatalogFull/twotone/l.g.js +1 -38
- package/dist/components/iconCatalogFull/twotone/m.g.js +1 -91
- package/dist/components/iconCatalogFull/twotone/n.g.js +1 -23
- package/dist/components/iconCatalogFull/twotone/o.g.js +1 -11
- package/dist/components/iconCatalogFull/twotone/p.g.js +1 -45
- package/dist/components/iconCatalogFull/twotone/q.g.js +1 -12
- package/dist/components/iconCatalogFull/twotone/r.g.js +1 -47
- package/dist/components/iconCatalogFull/twotone/s.g.js +1 -99
- package/dist/components/iconCatalogFull/twotone/t.g.js +1 -60
- package/dist/components/iconCatalogFull/twotone/u.g.js +1 -17
- package/dist/components/iconCatalogFull/twotone/v.g.js +1 -27
- package/dist/components/iconCatalogFull/twotone/w.g.js +1 -30
- package/dist/components/iconCatalogFull/twotone/x.g.js +1 -8
- package/dist/components/iconCatalogFull/twotone/y.g.js +1 -0
- package/dist/components/iconCatalogFull/twotone/z.g.js +1 -7
- package/dist/components/iconCatalogLoaders.g.js +1 -170
- package/dist/components/iconCatalogNames.g.js +1 -4
- package/dist/components/iconGlyphs.g.js +1 -211
- package/dist/components/iconVariants.g.js +1 -1040
- package/dist/components/renderIconProp.js +1 -13
- package/dist/components/toast.js +1 -41
- package/dist/components/toastStore.js +1 -78
- package/dist/components/useWuiControl.js +1 -106
- package/dist/components/warnInvalidValue.js +1 -17
- package/dist/components/warnUnknownProps.js +1 -17
- package/dist/components/withTooltip.js +1 -12
- package/dist/lib/CheckField.js +1 -37
- package/dist/lib/FileItemRow.js +1 -44
- package/dist/lib/emptyValue.js +1 -6
- package/dist/lib/fileItem.js +1 -27
- package/dist/lib/focusField.js +1 -14
- package/dist/lib/listQuery.js +1 -57
- package/dist/lib/navMatch.js +1 -29
- package/dist/lib/pageWindow.js +1 -14
- package/dist/lib/qrCode.js +1 -577
- package/dist/lib/shellCookie.js +1 -16
- package/dist/lib/useCommandPaletteShortcut.js +1 -15
- package/dist/lib/useFloatingStack.js +1 -25
- package/dist/lib/useListQuery.js +1 -120
- package/dist/lib/usePagination.js +1 -29
- package/dist/lib/useTableView.js +1 -42
- package/dist/types/components/AppAlert.d.ts +6 -1
- package/dist/types/components/AppCalendar.d.ts +8 -6
- package/dist/types/components/AppDatePicker.d.ts +4 -1
- package/dist/types/components/AppDateRangePicker.d.ts +2 -1
- package/dist/types/components/AppDropdown.d.ts +12 -1
- package/dist/types/components/AppRouteError.d.ts +32 -0
- package/dist/types/components/AppStepper.d.ts +8 -1
- package/dist/types/components/AppUpdateBar.d.ts +20 -0
- package/dist/types/components/AppWizard.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bold/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/bold/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bold/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/bold/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bold/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bold/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/bold/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bold/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/bold/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bold/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bold/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/bold/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/bold/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/bold/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/bold/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bold/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/bold/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/bold/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bold/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bold/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bold/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/broken/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/broken/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/broken/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/broken/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/broken/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/broken/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/broken/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/broken/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/broken/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/broken/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/broken/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/broken/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/broken/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/broken/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/broken/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/broken/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/broken/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/broken/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/broken/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/broken/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/broken/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bulk/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/bulk/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bulk/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/bulk/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bulk/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bulk/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/bulk/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bulk/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/bulk/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bulk/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bulk/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/bulk/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/bulk/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/bulk/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/bulk/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/bulk/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/bulk/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/bulk/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bulk/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/bulk/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/bulk/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/linear/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/linear/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/linear/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/linear/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/linear/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/linear/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/linear/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/linear/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/linear/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/linear/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/linear/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/linear/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/linear/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/linear/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/linear/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/linear/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/linear/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/linear/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/linear/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/linear/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/linear/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/outline/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/outline/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/outline/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/outline/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/outline/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/outline/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/outline/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/outline/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/outline/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/outline/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/outline/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/outline/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/outline/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/outline/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/outline/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/outline/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/outline/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/outline/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/outline/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/outline/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/outline/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/twotone/a.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/twotone/b.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/twotone/c.g.d.ts +18 -0
- package/dist/types/components/iconCatalogFull/twotone/d.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/twotone/e.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/twotone/f.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/twotone/g.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/twotone/h.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/twotone/i.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/twotone/k.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/twotone/l.g.d.ts +5 -0
- package/dist/types/components/iconCatalogFull/twotone/m.g.d.ts +10 -0
- package/dist/types/components/iconCatalogFull/twotone/n.g.d.ts +1 -0
- package/dist/types/components/iconCatalogFull/twotone/p.g.d.ts +6 -0
- package/dist/types/components/iconCatalogFull/twotone/r.g.d.ts +4 -0
- package/dist/types/components/iconCatalogFull/twotone/s.g.d.ts +11 -0
- package/dist/types/components/iconCatalogFull/twotone/t.g.d.ts +7 -0
- package/dist/types/components/iconCatalogFull/twotone/u.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/twotone/v.g.d.ts +3 -0
- package/dist/types/components/iconCatalogFull/twotone/w.g.d.ts +2 -0
- package/dist/types/components/iconCatalogFull/twotone/y.g.d.ts +3 -0
- package/dist/types/components/iconCatalogLoaders.g.d.ts +6 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/ui-react.js +1 -117
- package/package.json +7 -9
- package/dist/types/components/__tests__/restPassthrough.d.ts +0 -9
|
@@ -1,102 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import n from "./AppIcon.js";
|
|
4
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/AppTimeline.jsx
|
|
6
|
-
var a = ["feed", "progress"], o = ["vertical", "horizontal"], s = [
|
|
7
|
-
"neutral",
|
|
8
|
-
"success",
|
|
9
|
-
"warning",
|
|
10
|
-
"danger",
|
|
11
|
-
"info"
|
|
12
|
-
], c = {
|
|
13
|
-
done: "check",
|
|
14
|
-
current: "clock",
|
|
15
|
-
"on-hold": "lock",
|
|
16
|
-
rejected: "x",
|
|
17
|
-
cancelled: "minus",
|
|
18
|
-
skipped: "arrow-right",
|
|
19
|
-
upcoming: null
|
|
20
|
-
};
|
|
21
|
-
function l({ items: l = [], variant: u = "feed", orientation: d = "vertical", size: f, className: p = "", style: m, ...h }) {
|
|
22
|
-
t("AppTimeline", h), e("AppTimeline", "variant", u, a), e("AppTimeline", "orientation", d, o);
|
|
23
|
-
for (let t of l) e("AppTimeline", "items[].tone", t.tone, s), u === "progress" && e("AppTimeline", "items[].status", t.status, Object.keys(c));
|
|
24
|
-
let g = u === "progress", _ = `timeline${g ? " timeline--progress" : ""}${d === "horizontal" ? " timeline--horizontal" : ""}${p ? ` ${p}` : ""}`, v = typeof f == "number" && f > 0 ? f : void 0, y = v ? Math.round(v * .54) : g ? 13 : 12;
|
|
25
|
-
return /* @__PURE__ */ r("ol", {
|
|
26
|
-
className: _,
|
|
27
|
-
style: v ? {
|
|
28
|
-
...m,
|
|
29
|
-
"--wui-timeline-dot": `${v}px`
|
|
30
|
-
} : m,
|
|
31
|
-
...h,
|
|
32
|
-
children: l.map((e, t) => {
|
|
33
|
-
let a = g ? e.status : void 0, o = a ? ` is-${a}` : "", s = e.tone && e.tone !== "neutral" ? ` ${e.tone}` : "", l = g ? e.icon ?? (a ? c[a] : void 0) : e.icon || "circle";
|
|
34
|
-
return /* @__PURE__ */ i("li", {
|
|
35
|
-
className: `timeline-item${o}${s}`,
|
|
36
|
-
children: [/* @__PURE__ */ r("span", {
|
|
37
|
-
className: "timeline-dot",
|
|
38
|
-
children: l ? /* @__PURE__ */ r(n, {
|
|
39
|
-
name: l,
|
|
40
|
-
size: y
|
|
41
|
-
}) : null
|
|
42
|
-
}), /* @__PURE__ */ i("div", {
|
|
43
|
-
className: "timeline-body",
|
|
44
|
-
children: [
|
|
45
|
-
g ? /* @__PURE__ */ i("div", {
|
|
46
|
-
className: "timeline-head",
|
|
47
|
-
children: [/* @__PURE__ */ r("div", {
|
|
48
|
-
className: "timeline-title",
|
|
49
|
-
children: e.title
|
|
50
|
-
}), (e.at || e.time) && /* @__PURE__ */ i("span", {
|
|
51
|
-
className: "timeline-when",
|
|
52
|
-
children: [e.at && /* @__PURE__ */ r("span", {
|
|
53
|
-
className: "timeline-at",
|
|
54
|
-
children: e.at
|
|
55
|
-
}), e.time && /* @__PURE__ */ r("span", {
|
|
56
|
-
className: "timeline-time",
|
|
57
|
-
children: e.time
|
|
58
|
-
})]
|
|
59
|
-
})]
|
|
60
|
-
}) : /* @__PURE__ */ r("div", {
|
|
61
|
-
className: "timeline-title",
|
|
62
|
-
children: e.title
|
|
63
|
-
}),
|
|
64
|
-
e.description && /* @__PURE__ */ r("div", {
|
|
65
|
-
className: "timeline-desc",
|
|
66
|
-
children: e.description
|
|
67
|
-
}),
|
|
68
|
-
!g && (e.at || e.time || e.by) && /* @__PURE__ */ i("div", {
|
|
69
|
-
className: "timeline-meta",
|
|
70
|
-
children: [(e.at || e.time) && /* @__PURE__ */ i("span", {
|
|
71
|
-
className: "timeline-when",
|
|
72
|
-
children: [e.at && /* @__PURE__ */ r("span", {
|
|
73
|
-
className: "timeline-at",
|
|
74
|
-
children: e.at
|
|
75
|
-
}), e.time && /* @__PURE__ */ r("span", {
|
|
76
|
-
className: "timeline-time",
|
|
77
|
-
children: e.time
|
|
78
|
-
})]
|
|
79
|
-
}), e.by && /* @__PURE__ */ r("span", {
|
|
80
|
-
className: "timeline-by",
|
|
81
|
-
children: e.by
|
|
82
|
-
})]
|
|
83
|
-
}),
|
|
84
|
-
g && e.by && /* @__PURE__ */ r("div", {
|
|
85
|
-
className: "timeline-meta",
|
|
86
|
-
children: /* @__PURE__ */ r("span", {
|
|
87
|
-
className: "timeline-by",
|
|
88
|
-
children: e.by
|
|
89
|
-
})
|
|
90
|
-
}),
|
|
91
|
-
e.note && /* @__PURE__ */ r("p", {
|
|
92
|
-
className: "timeline-note",
|
|
93
|
-
children: e.note
|
|
94
|
-
})
|
|
95
|
-
]
|
|
96
|
-
})]
|
|
97
|
-
}, e.key ?? `${e.at}-${t}`);
|
|
98
|
-
})
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
//#endregion
|
|
102
|
-
export { l as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";var a=[`feed`,`progress`],o=[`vertical`,`horizontal`],s=[`neutral`,`success`,`warning`,`danger`,`info`],c={done:`check`,current:`clock`,"on-hold":`lock`,rejected:`x`,cancelled:`minus`,skipped:`arrow-right`,upcoming:null};function l({items:l=[],variant:u=`feed`,orientation:d=`vertical`,size:f,className:p=``,style:m,...h}){t(`AppTimeline`,h),e(`AppTimeline`,`variant`,u,a),e(`AppTimeline`,`orientation`,d,o);for(let t of l)e(`AppTimeline`,`items[].tone`,t.tone,s),u===`progress`&&e(`AppTimeline`,`items[].status`,t.status,Object.keys(c));let g=u===`progress`,_=`timeline${g?` timeline--progress`:``}${d===`horizontal`?` timeline--horizontal`:``}${p?` ${p}`:``}`,v=typeof f==`number`&&f>0?f:void 0,y=v?Math.round(v*.54):g?13:12;return r(`ol`,{className:_,style:v?{...m,"--wui-timeline-dot":`${v}px`}:m,...h,children:l.map((e,t)=>{let a=g?e.status:void 0,o=a?` is-${a}`:``,s=e.tone&&e.tone!==`neutral`?` ${e.tone}`:``,l=g?e.icon??(a?c[a]:void 0):e.icon||`circle`;return i(`li`,{className:`timeline-item${o}${s}`,children:[r(`span`,{className:`timeline-dot`,children:l?r(n,{name:l,size:y}):null}),i(`div`,{className:`timeline-body`,children:[g?i(`div`,{className:`timeline-head`,children:[r(`div`,{className:`timeline-title`,children:e.title}),(e.at||e.time)&&i(`span`,{className:`timeline-when`,children:[e.at&&r(`span`,{className:`timeline-at`,children:e.at}),e.time&&r(`span`,{className:`timeline-time`,children:e.time})]})]}):r(`div`,{className:`timeline-title`,children:e.title}),e.description&&r(`div`,{className:`timeline-desc`,children:e.description}),!g&&(e.at||e.time||e.by)&&i(`div`,{className:`timeline-meta`,children:[(e.at||e.time)&&i(`span`,{className:`timeline-when`,children:[e.at&&r(`span`,{className:`timeline-at`,children:e.at}),e.time&&r(`span`,{className:`timeline-time`,children:e.time})]}),e.by&&r(`span`,{className:`timeline-by`,children:e.by})]}),g&&e.by&&r(`div`,{className:`timeline-meta`,children:r(`span`,{className:`timeline-by`,children:e.by})}),e.note&&r(`p`,{className:`timeline-note`,children:e.note})]})]},e.key??`${e.at}-${t}`)})})}export{l as default};
|
|
@@ -1,169 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import n from "./AppIcon.js";
|
|
4
|
-
import { adoptToast as r, dismissToast as i, subscribeToasts as a } from "./toastStore.js";
|
|
5
|
-
import { useEffect as o, useRef as s, useState as c } from "react";
|
|
6
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
-
//#region src/components/AppToast.jsx
|
|
8
|
-
var d = {
|
|
9
|
-
success: {
|
|
10
|
-
icon: "check-circle",
|
|
11
|
-
assertive: !1
|
|
12
|
-
},
|
|
13
|
-
info: {
|
|
14
|
-
icon: "info",
|
|
15
|
-
assertive: !1
|
|
16
|
-
},
|
|
17
|
-
warning: {
|
|
18
|
-
icon: "alert-triangle",
|
|
19
|
-
assertive: !0
|
|
20
|
-
},
|
|
21
|
-
danger: {
|
|
22
|
-
icon: "alert-circle",
|
|
23
|
-
assertive: !0
|
|
24
|
-
}
|
|
25
|
-
}, f = {
|
|
26
|
-
"top-start": "top-0 start-0",
|
|
27
|
-
"top-center": "top-0 start-50 translate-middle-x",
|
|
28
|
-
"top-end": "top-0 end-0",
|
|
29
|
-
"middle-center": "top-50 start-50 translate-middle",
|
|
30
|
-
"bottom-start": "bottom-0 start-0",
|
|
31
|
-
"bottom-center": "bottom-0 start-50 translate-middle-x",
|
|
32
|
-
"bottom-end": "bottom-0 end-0"
|
|
33
|
-
}, p = 64, m = /* @__PURE__ */ new Set([
|
|
34
|
-
"rise",
|
|
35
|
-
"organic",
|
|
36
|
-
"jelly",
|
|
37
|
-
"spring"
|
|
38
|
-
]), h = /* @__PURE__ */ new Set([
|
|
39
|
-
"rounded",
|
|
40
|
-
"pill",
|
|
41
|
-
"sharp"
|
|
42
|
-
]), g = /* @__PURE__ */ new Set(["auto", "inverse"]);
|
|
43
|
-
function _({ position: n = "bottom-end", maxVisible: r = 4, animation: i = "rise", shape: s = "rounded", surface: d = "auto", className: p = "", ..._ }) {
|
|
44
|
-
t("AppToast", _), e("AppToast", "position", n, Object.keys(f)), e("AppToast", "animation", i, m), e("AppToast", "shape", s, h), e("AppToast", "surface", d, g);
|
|
45
|
-
let [y, b] = c([]);
|
|
46
|
-
o(() => a(b), []);
|
|
47
|
-
let x = Math.max(0, y.length - r), S = x ? y.slice(x) : y, C = f[n] ?? f["bottom-end"];
|
|
48
|
-
return /* @__PURE__ */ u("div", {
|
|
49
|
-
..._,
|
|
50
|
-
className: `wui-toast-container toast-container position-fixed ${C} p-3 ${p}`.trim(),
|
|
51
|
-
children: [x > 0 && /* @__PURE__ */ u("div", {
|
|
52
|
-
className: "wui-toast-more",
|
|
53
|
-
"aria-hidden": "true",
|
|
54
|
-
children: [
|
|
55
|
-
"+",
|
|
56
|
-
x,
|
|
57
|
-
" more"
|
|
58
|
-
]
|
|
59
|
-
}), S.map((e) => /* @__PURE__ */ l(v, {
|
|
60
|
-
toast: e,
|
|
61
|
-
defaultAnimation: i,
|
|
62
|
-
defaultShape: s,
|
|
63
|
-
defaultSurface: d
|
|
64
|
-
}, e.id))]
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
function v({ toast: e, defaultAnimation: t = "rise", defaultShape: a = "rounded", defaultSurface: f = "auto" }) {
|
|
68
|
-
let _ = d[e.variant] ?? d.success, v = m.has(e.animation) ? e.animation : t, y = h.has(e.shape) ? e.shape : a, b = g.has(e.surface) ? e.surface : f, x = (v !== "rise" && m.has(v) ? ` wui-toast--anim-${v}` : "") + (y !== "rounded" && h.has(y) ? ` wui-toast--shape-${y}` : "") + (b === "inverse" ? " wui-toast--surface-inverse" : ""), S = e.duration === 0, [C, w] = c(0), [T, E] = c(!1), D = s(null), O = () => i(e.id), k = s(null);
|
|
69
|
-
o(() => {
|
|
70
|
-
if (e.duration === 0) return;
|
|
71
|
-
r(e.id);
|
|
72
|
-
let t = k.current, n = t == null ? "" : getComputedStyle(t).animationName;
|
|
73
|
-
if (t != null && (typeof t.getAnimations == "function" ? t.getAnimations().length > 0 : n !== "" && n !== "none")) return;
|
|
74
|
-
let a = setTimeout(() => i(e.id), e.duration);
|
|
75
|
-
return () => clearTimeout(a);
|
|
76
|
-
}, [e.id, e.duration]);
|
|
77
|
-
let A = (e) => {
|
|
78
|
-
e.button !== 0 || e.target.closest("button") || (D.current = e.clientX, E(!0), e.currentTarget.setPointerCapture?.(e.pointerId));
|
|
79
|
-
}, j = (e) => {
|
|
80
|
-
D.current !== null && w(e.clientX - D.current);
|
|
81
|
-
}, M = () => {
|
|
82
|
-
D.current = null, E(!1), w(0);
|
|
83
|
-
}, N = (e) => {
|
|
84
|
-
if (D.current === null) return;
|
|
85
|
-
let t = e.clientX - D.current;
|
|
86
|
-
if (Math.abs(t) > p) {
|
|
87
|
-
O();
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
M();
|
|
91
|
-
}, P = C ? {
|
|
92
|
-
transform: `translateX(${C}px)`,
|
|
93
|
-
opacity: Math.max(0, 1 - Math.abs(C) / 200)
|
|
94
|
-
} : void 0;
|
|
95
|
-
return /* @__PURE__ */ u("div", {
|
|
96
|
-
className: `toast show wui-toast wui-toast--${e.variant}${x}${T ? " wui-toast--dragging" : ""}`,
|
|
97
|
-
role: _.assertive ? "alert" : "status",
|
|
98
|
-
"aria-live": _.assertive ? "assertive" : "polite",
|
|
99
|
-
"aria-atomic": "true",
|
|
100
|
-
style: P,
|
|
101
|
-
onPointerDown: A,
|
|
102
|
-
onPointerMove: j,
|
|
103
|
-
onPointerUp: N,
|
|
104
|
-
onPointerCancel: M,
|
|
105
|
-
children: [
|
|
106
|
-
/* @__PURE__ */ l("span", {
|
|
107
|
-
className: "wui-toast-icon",
|
|
108
|
-
"aria-hidden": "true",
|
|
109
|
-
children: /* @__PURE__ */ l(n, {
|
|
110
|
-
name: _.icon,
|
|
111
|
-
size: 20
|
|
112
|
-
})
|
|
113
|
-
}),
|
|
114
|
-
/* @__PURE__ */ u("div", {
|
|
115
|
-
className: "wui-toast-content",
|
|
116
|
-
children: [
|
|
117
|
-
e.title && /* @__PURE__ */ l("div", {
|
|
118
|
-
className: "wui-toast-title",
|
|
119
|
-
children: e.title
|
|
120
|
-
}),
|
|
121
|
-
/* @__PURE__ */ l("div", {
|
|
122
|
-
className: "wui-toast-message",
|
|
123
|
-
children: e.message
|
|
124
|
-
}),
|
|
125
|
-
typeof e.progress == "number" && /* @__PURE__ */ u("div", {
|
|
126
|
-
className: "wui-toast-task",
|
|
127
|
-
children: [/* @__PURE__ */ l("div", {
|
|
128
|
-
className: "wui-toast-track",
|
|
129
|
-
role: "progressbar",
|
|
130
|
-
"aria-valuemin": 0,
|
|
131
|
-
"aria-valuemax": 100,
|
|
132
|
-
"aria-valuenow": Math.min(100, Math.max(0, Math.round(e.progress))),
|
|
133
|
-
children: /* @__PURE__ */ l("div", {
|
|
134
|
-
className: "wui-toast-track-fill",
|
|
135
|
-
style: { width: `${Math.min(100, Math.max(0, e.progress))}%` }
|
|
136
|
-
})
|
|
137
|
-
}), /* @__PURE__ */ u("span", {
|
|
138
|
-
className: "wui-toast-track-pct",
|
|
139
|
-
"aria-hidden": "true",
|
|
140
|
-
children: [Math.min(100, Math.max(0, Math.round(e.progress))), "%"]
|
|
141
|
-
})]
|
|
142
|
-
}),
|
|
143
|
-
e.action && /* @__PURE__ */ l("button", {
|
|
144
|
-
type: "button",
|
|
145
|
-
className: "wui-toast-action",
|
|
146
|
-
onClick: () => {
|
|
147
|
-
e.action.onClick?.(), O();
|
|
148
|
-
},
|
|
149
|
-
children: e.action.label
|
|
150
|
-
})
|
|
151
|
-
]
|
|
152
|
-
}),
|
|
153
|
-
/* @__PURE__ */ l("button", {
|
|
154
|
-
type: "button",
|
|
155
|
-
className: "btn-close wui-toast-close",
|
|
156
|
-
"aria-label": "Close",
|
|
157
|
-
onClick: O
|
|
158
|
-
}),
|
|
159
|
-
!S && /* @__PURE__ */ l("div", {
|
|
160
|
-
ref: k,
|
|
161
|
-
className: "wui-toast-progress",
|
|
162
|
-
style: { animationDuration: `${e.duration}ms` },
|
|
163
|
-
onAnimationEnd: O
|
|
164
|
-
})
|
|
165
|
-
]
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
//#endregion
|
|
169
|
-
export { _ as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import{adoptToast as r,dismissToast as i,subscribeToasts as a}from"./toastStore.js";import{useEffect as o,useRef as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";var d={success:{icon:`check-circle`,assertive:!1},info:{icon:`info`,assertive:!1},warning:{icon:`alert-triangle`,assertive:!0},danger:{icon:`alert-circle`,assertive:!0}},f={"top-start":`top-0 start-0`,"top-center":`top-0 start-50 translate-middle-x`,"top-end":`top-0 end-0`,"middle-center":`top-50 start-50 translate-middle`,"bottom-start":`bottom-0 start-0`,"bottom-center":`bottom-0 start-50 translate-middle-x`,"bottom-end":`bottom-0 end-0`},p=64,m=new Set([`rise`,`organic`,`jelly`,`spring`]),h=new Set([`rounded`,`pill`,`sharp`]),g=new Set([`auto`,`inverse`]);function _({position:n=`bottom-end`,maxVisible:r=4,animation:i=`rise`,shape:s=`rounded`,surface:d=`auto`,className:p=``,..._}){t(`AppToast`,_),e(`AppToast`,`position`,n,Object.keys(f)),e(`AppToast`,`animation`,i,m),e(`AppToast`,`shape`,s,h),e(`AppToast`,`surface`,d,g);let[y,b]=c([]);o(()=>a(b),[]);let x=Math.max(0,y.length-r),S=x?y.slice(x):y,C=f[n]??f[`bottom-end`];return u(`div`,{..._,className:`wui-toast-container toast-container position-fixed ${C} p-3 ${p}`.trim(),children:[x>0&&u(`div`,{className:`wui-toast-more`,"aria-hidden":`true`,children:[`+`,x,` more`]}),S.map(e=>l(v,{toast:e,defaultAnimation:i,defaultShape:s,defaultSurface:d},e.id))]})}function v({toast:e,defaultAnimation:t=`rise`,defaultShape:a=`rounded`,defaultSurface:f=`auto`}){let _=d[e.variant]??d.success,v=m.has(e.animation)?e.animation:t,y=h.has(e.shape)?e.shape:a,b=g.has(e.surface)?e.surface:f,x=(v!==`rise`&&m.has(v)?` wui-toast--anim-${v}`:``)+(y!==`rounded`&&h.has(y)?` wui-toast--shape-${y}`:``)+(b===`inverse`?` wui-toast--surface-inverse`:``),S=e.duration===0,[C,w]=c(0),[T,E]=c(!1),D=s(null),O=()=>i(e.id),k=s(null);o(()=>{if(e.duration===0)return;r(e.id);let t=k.current,n=t==null?``:getComputedStyle(t).animationName;if(t!=null&&(typeof t.getAnimations==`function`?t.getAnimations().length>0:n!==``&&n!==`none`))return;let a=setTimeout(()=>i(e.id),e.duration);return()=>clearTimeout(a)},[e.id,e.duration]);let A=e=>{e.button!==0||e.target.closest(`button`)||(D.current=e.clientX,E(!0),e.currentTarget.setPointerCapture?.(e.pointerId))},j=e=>{D.current!==null&&w(e.clientX-D.current)},M=()=>{D.current=null,E(!1),w(0)},N=e=>{if(D.current===null)return;let t=e.clientX-D.current;if(Math.abs(t)>p){O();return}M()},P=C?{transform:`translateX(${C}px)`,opacity:Math.max(0,1-Math.abs(C)/200)}:void 0;return u(`div`,{className:`toast show wui-toast wui-toast--${e.variant}${x}${T?` wui-toast--dragging`:``}`,role:_.assertive?`alert`:`status`,"aria-live":_.assertive?`assertive`:`polite`,"aria-atomic":`true`,style:P,onPointerDown:A,onPointerMove:j,onPointerUp:N,onPointerCancel:M,children:[l(`span`,{className:`wui-toast-icon`,"aria-hidden":`true`,children:l(n,{name:_.icon,size:20})}),u(`div`,{className:`wui-toast-content`,children:[e.title&&l(`div`,{className:`wui-toast-title`,children:e.title}),l(`div`,{className:`wui-toast-message`,children:e.message}),typeof e.progress==`number`&&u(`div`,{className:`wui-toast-task`,children:[l(`div`,{className:`wui-toast-track`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.min(100,Math.max(0,Math.round(e.progress))),children:l(`div`,{className:`wui-toast-track-fill`,style:{width:`${Math.min(100,Math.max(0,e.progress))}%`}})}),u(`span`,{className:`wui-toast-track-pct`,"aria-hidden":`true`,children:[Math.min(100,Math.max(0,Math.round(e.progress))),`%`]})]}),e.action&&l(`button`,{type:`button`,className:`wui-toast-action`,onClick:()=>{e.action.onClick?.(),O()},children:e.action.label})]}),l(`button`,{type:`button`,className:`btn-close wui-toast-close`,"aria-label":`Close`,onClick:O}),!S&&l(`div`,{ref:k,className:`wui-toast-progress`,style:{animationDuration:`${e.duration}ms`},onAnimationEnd:O})]})}export{_ as default};
|
|
@@ -1,63 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./renderIconProp.js";
|
|
3
|
-
import { useId as n, useState as r } from "react";
|
|
4
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/AppToolbar.jsx
|
|
6
|
-
function o({ items: o = [], actions: s = [], value: c, defaultValue: l, onSelect: u, label: d, name: f, disabled: p = !1, className: m = "", ...h }) {
|
|
7
|
-
e("AppToolbar", h);
|
|
8
|
-
let g = n(), _ = f || g, [v, y] = r(l), b = c === void 0 ? v : c;
|
|
9
|
-
return /* @__PURE__ */ a("div", {
|
|
10
|
-
className: [
|
|
11
|
-
"toolbar",
|
|
12
|
-
p ? "is-disabled" : "",
|
|
13
|
-
m
|
|
14
|
-
].filter(Boolean).join(" "),
|
|
15
|
-
role: "toolbar",
|
|
16
|
-
"aria-label": d,
|
|
17
|
-
"aria-disabled": p || void 0,
|
|
18
|
-
...h,
|
|
19
|
-
children: [
|
|
20
|
-
o.map((e) => /* @__PURE__ */ a("label", {
|
|
21
|
-
className: "toolbar-item",
|
|
22
|
-
children: [
|
|
23
|
-
/* @__PURE__ */ i("input", {
|
|
24
|
-
type: "radio",
|
|
25
|
-
className: "toolbar-input",
|
|
26
|
-
name: _,
|
|
27
|
-
value: e.value,
|
|
28
|
-
checked: e.value === b,
|
|
29
|
-
disabled: p || e.disabled,
|
|
30
|
-
onChange: () => {
|
|
31
|
-
c === void 0 && y(e.value), u?.(e.value);
|
|
32
|
-
}
|
|
33
|
-
}),
|
|
34
|
-
/* @__PURE__ */ i("span", {
|
|
35
|
-
className: "toolbar-item-icon",
|
|
36
|
-
children: t(e.icon, { size: 16 })
|
|
37
|
-
}),
|
|
38
|
-
/* @__PURE__ */ i("span", {
|
|
39
|
-
className: "toolbar-item-label",
|
|
40
|
-
children: e.title
|
|
41
|
-
})
|
|
42
|
-
]
|
|
43
|
-
}, e.value)),
|
|
44
|
-
s.length > 0 && /* @__PURE__ */ i("span", {
|
|
45
|
-
className: "toolbar-sep",
|
|
46
|
-
"aria-hidden": "true"
|
|
47
|
-
}),
|
|
48
|
-
s.map((e, n) => /* @__PURE__ */ i("button", {
|
|
49
|
-
type: "button",
|
|
50
|
-
className: "toolbar-action",
|
|
51
|
-
"aria-label": e.title,
|
|
52
|
-
disabled: p || e.disabled,
|
|
53
|
-
onClick: e.onClick,
|
|
54
|
-
children: /* @__PURE__ */ i("span", {
|
|
55
|
-
className: "toolbar-item-icon",
|
|
56
|
-
children: t(e.icon, { size: 16 })
|
|
57
|
-
})
|
|
58
|
-
}, e.key ?? `${e.title}-${n}`))
|
|
59
|
-
]
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
export { o as default };
|
|
1
|
+
import e from"./warnUnknownProps.js";import t from"./renderIconProp.js";import{useId as n,useState as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o({items:o=[],actions:s=[],value:c,defaultValue:l,onSelect:u,label:d,name:f,disabled:p=!1,className:m=``,...h}){e(`AppToolbar`,h);let g=n(),_=f||g,[v,y]=r(l),b=c===void 0?v:c;return a(`div`,{className:[`toolbar`,p?`is-disabled`:``,m].filter(Boolean).join(` `),role:`toolbar`,"aria-label":d,"aria-disabled":p||void 0,...h,children:[o.map(e=>a(`label`,{className:`toolbar-item`,children:[i(`input`,{type:`radio`,className:`toolbar-input`,name:_,value:e.value,checked:e.value===b,disabled:p||e.disabled,onChange:()=>{c===void 0&&y(e.value),u?.(e.value)}}),i(`span`,{className:`toolbar-item-icon`,children:t(e.icon,{size:16})}),i(`span`,{className:`toolbar-item-label`,children:e.title})]},e.value)),s.length>0&&i(`span`,{className:`toolbar-sep`,"aria-hidden":`true`}),s.map((e,n)=>i(`button`,{type:`button`,className:`toolbar-action`,"aria-label":e.title,disabled:p||e.disabled,onClick:e.onClick,children:i(`span`,{className:`toolbar-item-icon`,children:t(e.icon,{size:16})})},e.key??`${e.title}-${n}`))]})}export{o as default};
|
|
@@ -1,50 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import { cloneElement as n, useId as r } from "react";
|
|
4
|
-
import { OverlayTrigger as i, Tooltip as a } from "react-bootstrap";
|
|
5
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/AppTooltip.jsx
|
|
7
|
-
var s = [
|
|
8
|
-
"default",
|
|
9
|
-
"dark",
|
|
10
|
-
"primary",
|
|
11
|
-
"success",
|
|
12
|
-
"warning",
|
|
13
|
-
"danger"
|
|
14
|
-
], c = [
|
|
15
|
-
"sm",
|
|
16
|
-
"md",
|
|
17
|
-
"lg"
|
|
18
|
-
], l = {
|
|
19
|
-
start: "left",
|
|
20
|
-
end: "right",
|
|
21
|
-
top: "top",
|
|
22
|
-
bottom: "bottom"
|
|
23
|
-
}, u = [
|
|
24
|
-
"auto",
|
|
25
|
-
"top",
|
|
26
|
-
"bottom",
|
|
27
|
-
"start",
|
|
28
|
-
"end"
|
|
29
|
-
];
|
|
30
|
-
function d({ content: d, children: f, placement: p = "top", tone: m = "default", size: h = "md", className: g = "", ..._ }) {
|
|
31
|
-
t("AppTooltip", _), e("AppTooltip", "tone", m, s), e("AppTooltip", "size", h, c), e("AppTooltip", "placement", p, u);
|
|
32
|
-
let v = /* @__PURE__ */ o(a, {
|
|
33
|
-
id: r(),
|
|
34
|
-
className: [
|
|
35
|
-
"wui-tooltip",
|
|
36
|
-
m && m !== "default" ? `tone-${m}` : "",
|
|
37
|
-
h && h !== "md" ? `size-${h}` : "",
|
|
38
|
-
g
|
|
39
|
-
].filter(Boolean).join(" "),
|
|
40
|
-
children: d
|
|
41
|
-
});
|
|
42
|
-
return /* @__PURE__ */ o(i, {
|
|
43
|
-
trigger: ["hover", "focus"],
|
|
44
|
-
placement: l[p] || p,
|
|
45
|
-
overlay: v,
|
|
46
|
-
children: n(f, _)
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
export { d as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import{cloneElement as n,useId as r}from"react";import{OverlayTrigger as i,Tooltip as a}from"react-bootstrap";import{jsx as o}from"react/jsx-runtime";var s=[`default`,`dark`,`primary`,`success`,`warning`,`danger`],c=[`sm`,`md`,`lg`],l={start:`left`,end:`right`,top:`top`,bottom:`bottom`},u=[`auto`,`top`,`bottom`,`start`,`end`];function d({content:d,children:f,placement:p=`top`,tone:m=`default`,size:h=`md`,className:g=``,..._}){t(`AppTooltip`,_),e(`AppTooltip`,`tone`,m,s),e(`AppTooltip`,`size`,h,c),e(`AppTooltip`,`placement`,p,u);let v=o(a,{id:r(),className:[`wui-tooltip`,m&&m!=="default"?`tone-${m}`:``,h&&h!==`md`?`size-${h}`:``,g].filter(Boolean).join(` `),children:d});return o(i,{trigger:[`hover`,`focus`],placement:l[p]||p,overlay:v,children:n(f,_)})}export{d as default};
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import "@webority/ui-elements/elements/tour";
|
|
3
|
-
import { forwardRef as t, useEffect as n, useLayoutEffect as r, useRef as i } from "react";
|
|
4
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
5
|
-
//#region src/components/AppTour.jsx
|
|
6
|
-
var o = t(function({ open: t, onClose: o, tourId: s, steps: c, seenStore: l, onBeforeStep: u, labels: d, className: f, ...p }, m) {
|
|
7
|
-
e("AppTour", p);
|
|
8
|
-
let h = i(null), g = (e) => {
|
|
9
|
-
h.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
|
|
10
|
-
};
|
|
11
|
-
r(() => {
|
|
12
|
-
let e = h.current;
|
|
13
|
-
e.seenStore = l ?? null, e.onBeforeStep = u ?? null;
|
|
14
|
-
}), r(() => {
|
|
15
|
-
let e = h.current;
|
|
16
|
-
t ? e.setAttribute("open", "") : e.removeAttribute("open");
|
|
17
|
-
}, [t]);
|
|
18
|
-
let _ = i(o);
|
|
19
|
-
return _.current = o, n(() => {
|
|
20
|
-
let e = h.current, t = (e) => _.current?.(e.detail.reason);
|
|
21
|
-
return e.addEventListener("wui-tour:close", t), () => e.removeEventListener("wui-tour:close", t);
|
|
22
|
-
}, []), /* @__PURE__ */ a("wui-tour", {
|
|
23
|
-
ref: g,
|
|
24
|
-
"tour-id": s,
|
|
25
|
-
"back-label": d?.back,
|
|
26
|
-
"next-label": d?.next,
|
|
27
|
-
"skip-label": d?.skip,
|
|
28
|
-
"done-label": d?.done,
|
|
29
|
-
class: f || void 0,
|
|
30
|
-
...p,
|
|
31
|
-
children: c.map((e) => /* @__PURE__ */ a("wui-tour-step", {
|
|
32
|
-
target: e.target,
|
|
33
|
-
title: e.title,
|
|
34
|
-
children: e.description
|
|
35
|
-
}, `${e.target}|${e.description}`))
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
//#endregion
|
|
39
|
-
export { o as default };
|
|
1
|
+
import e from"./warnUnknownProps.js";import"@webority/ui-elements/elements/tour";import{forwardRef as t,useEffect as n,useLayoutEffect as r,useRef as i}from"react";import{jsx as a}from"react/jsx-runtime";var o=t(function({open:t,onClose:o,tourId:s,steps:c,seenStore:l,onBeforeStep:u,labels:d,className:f,...p},m){e(`AppTour`,p);let h=i(null),g=e=>{h.current=e,typeof m==`function`?m(e):m&&(m.current=e)};r(()=>{let e=h.current;e.seenStore=l??null,e.onBeforeStep=u??null}),r(()=>{let e=h.current;t?e.setAttribute(`open`,``):e.removeAttribute(`open`)},[t]);let _=i(o);return _.current=o,n(()=>{let e=h.current,t=e=>_.current?.(e.detail.reason);return e.addEventListener(`wui-tour:close`,t),()=>e.removeEventListener(`wui-tour:close`,t)},[]),a(`wui-tour`,{ref:g,"tour-id":s,"back-label":d?.back,"next-label":d?.next,"skip-label":d?.skip,"done-label":d?.done,class:f||void 0,...p,children:c.map(e=>a(`wui-tour-step`,{target:e.target,title:e.title,children:e.description},`${e.target}|${e.description}`))})});export{o as default};
|
|
@@ -1,61 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import n, { readValues as r, writeValues as i } from "./useWuiControl.js";
|
|
4
|
-
import { forwardRef as a, useEffect as o, useRef as s } from "react";
|
|
5
|
-
import { jsx as c } from "react/jsx-runtime";
|
|
6
|
-
import "@webority/ui-elements/elements/tree";
|
|
7
|
-
//#region src/components/AppTreeView.jsx
|
|
8
|
-
var l = [
|
|
9
|
-
"none",
|
|
10
|
-
"single",
|
|
11
|
-
"multiple"
|
|
12
|
-
], u = a(function({ nodes: a, selection: u, selected: d, onSelect: f, checked: p, onCheck: m, loadChildren: h, loadUrl: g, onLoadError: _, name: v, loadingText: y, errorText: b, ariaLabel: x, id: S, className: C = "", ...w }, T) {
|
|
13
|
-
t("AppTreeView", w), e("AppTreeView", "selection", u, l);
|
|
14
|
-
let { setRef: E, innerRef: D } = n({
|
|
15
|
-
ref: T,
|
|
16
|
-
value: p,
|
|
17
|
-
readValue: r,
|
|
18
|
-
writeValue: i,
|
|
19
|
-
on: {
|
|
20
|
-
"wui-tree:check": (e) => m?.(e.detail.values, {
|
|
21
|
-
id: e.detail.id,
|
|
22
|
-
checked: e.detail.checked
|
|
23
|
-
}),
|
|
24
|
-
"wui-tree:select": (e) => {
|
|
25
|
-
f?.(e.detail.id, e.detail.node), d !== void 0 && e.currentTarget.selected !== d && (e.currentTarget.selected = d);
|
|
26
|
-
},
|
|
27
|
-
"wui-tree:error": (e) => _?.(e.detail.id, e.detail.message)
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
o(() => {
|
|
31
|
-
let e = D.current;
|
|
32
|
-
e && a !== void 0 && (e.nodes = a);
|
|
33
|
-
}, [a, D]), o(() => {
|
|
34
|
-
let e = D.current;
|
|
35
|
-
e && (e.loadChildren = h);
|
|
36
|
-
}, [h, D]);
|
|
37
|
-
let O = s(!1);
|
|
38
|
-
return o(() => {
|
|
39
|
-
let e = D.current;
|
|
40
|
-
if (e) {
|
|
41
|
-
if (d === void 0) {
|
|
42
|
-
O.current && (e.selected = null), O.current = !1;
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
O.current = !0, e.selected !== d && (e.selected = d);
|
|
46
|
-
}
|
|
47
|
-
}, [d, D]), /* @__PURE__ */ c("wui-tree", {
|
|
48
|
-
ref: E,
|
|
49
|
-
id: S || void 0,
|
|
50
|
-
selection: u || void 0,
|
|
51
|
-
name: v || void 0,
|
|
52
|
-
"load-url": g || void 0,
|
|
53
|
-
"loading-text": y || void 0,
|
|
54
|
-
"error-text": b || void 0,
|
|
55
|
-
"aria-label": x || void 0,
|
|
56
|
-
className: C || void 0,
|
|
57
|
-
...w
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
//#endregion
|
|
61
|
-
export { u as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n,{readValues as r,writeValues as i}from"./useWuiControl.js";import{forwardRef as a,useEffect as o,useRef as s}from"react";import{jsx as c}from"react/jsx-runtime";import"@webority/ui-elements/elements/tree";var l=[`none`,`single`,`multiple`],u=a(function({nodes:a,selection:u,selected:d,onSelect:f,checked:p,onCheck:m,loadChildren:h,loadUrl:g,onLoadError:_,name:v,loadingText:y,errorText:b,ariaLabel:x,id:S,className:C=``,...w},T){t(`AppTreeView`,w),e(`AppTreeView`,`selection`,u,l);let{setRef:E,innerRef:D}=n({ref:T,value:p,readValue:r,writeValue:i,on:{"wui-tree:check":e=>m?.(e.detail.values,{id:e.detail.id,checked:e.detail.checked}),"wui-tree:select":e=>{f?.(e.detail.id,e.detail.node),d!==void 0&&e.currentTarget.selected!==d&&(e.currentTarget.selected=d)},"wui-tree:error":e=>_?.(e.detail.id,e.detail.message)}});o(()=>{let e=D.current;e&&a!==void 0&&(e.nodes=a)},[a,D]),o(()=>{let e=D.current;e&&(e.loadChildren=h)},[h,D]);let O=s(!1);return o(()=>{let e=D.current;if(e){if(d===void 0){O.current&&(e.selected=null),O.current=!1;return}O.current=!0,e.selected!==d&&(e.selected=d)}},[d,D]),c(`wui-tree`,{ref:E,id:S||void 0,selection:u||void 0,name:v||void 0,"load-url":g||void 0,"loading-text":y||void 0,"error-text":b||void 0,"aria-label":x||void 0,className:C||void 0,...w})});export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./warnUnknownProps.js";import t from"./AppButton.js";import n from"./AppBanner.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";var a=()=>window.location.reload();function o({onReload:o=a,dismissible:s=!1,onDismiss:c,className:l=``,...u}){return e(`AppUpdateBar`,u),i(n,{tone:`info`,icon:`refresh-cw`,dismissible:s,onDismiss:c,className:l,...u,children:[r(`span`,{className:`me-3`,children:`A new version of this app is ready.`}),r(t,{size:`sm`,variant:`primary`,onClick:o,children:`Reload`})]})}export{o as default};
|
|
@@ -1,82 +1 @@
|
|
|
1
|
-
import e from
|
|
2
|
-
import t from "./warnUnknownProps.js";
|
|
3
|
-
import { Children as n, forwardRef as r, useEffect as i, useRef as a } from "react";
|
|
4
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
5
|
-
import "@webority/ui-elements/elements/wizard";
|
|
6
|
-
//#region src/components/AppWizard.jsx
|
|
7
|
-
var s = [
|
|
8
|
-
"steps",
|
|
9
|
-
"journey",
|
|
10
|
-
"icons"
|
|
11
|
-
], c = [
|
|
12
|
-
"primary",
|
|
13
|
-
"success",
|
|
14
|
-
"warning",
|
|
15
|
-
"danger",
|
|
16
|
-
"info"
|
|
17
|
-
], l = ["horizontal", "vertical"], u = [
|
|
18
|
-
"done",
|
|
19
|
-
"active",
|
|
20
|
-
"pending",
|
|
21
|
-
"error"
|
|
22
|
-
], d = r(function({ steps: r = [], children: d, active: f, defaultActive: p = 0, onStepChange: m, onFinish: h, onSkip: g, beforeNext: _, onInvalid: v, variant: y = "steps", tone: b, doneTone: x, orientation: S = "horizontal", skippable: C = !1, nonLinear: w = !1, hideStepper: T = !1, hideConnectors: E = !1, disabled: D = !1, label: O = "Progress", backLabel: k = "Back", nextLabel: A = "Next", skipLabel: j = "Skip", finishLabel: M = "Finish", className: N = "", ...P }, F) {
|
|
23
|
-
t("AppWizard", P), e("AppWizard", "variant", y, s), e("AppWizard", "tone", b, c), e("AppWizard", "doneTone", x, c), e("AppWizard", "orientation", S, l);
|
|
24
|
-
for (let t of r) e("AppWizard", "steps[].status", t.status, u);
|
|
25
|
-
let I = a(null), L = (e) => {
|
|
26
|
-
I.current = e, typeof F == "function" ? F(e) : F && (F.current = e);
|
|
27
|
-
}, R = n.toArray(d), z = [
|
|
28
|
-
b && `wui-step-tone-${b}`,
|
|
29
|
-
x && `wui-step-done-tone-${x}`,
|
|
30
|
-
N
|
|
31
|
-
].filter(Boolean).join(" ");
|
|
32
|
-
return i(() => {
|
|
33
|
-
let e = I.current;
|
|
34
|
-
if (!e) return;
|
|
35
|
-
let t = f === void 0 ? p : f;
|
|
36
|
-
t && (e.active = t);
|
|
37
|
-
}, []), i(() => {
|
|
38
|
-
let e = I.current;
|
|
39
|
-
e && f !== void 0 && Number(e.active) !== f && (e.active = f);
|
|
40
|
-
}, [f]), i(() => {
|
|
41
|
-
let e = I.current;
|
|
42
|
-
e && (e.beforeNext = _ ?? null);
|
|
43
|
-
}, [_]), i(() => {
|
|
44
|
-
let e = I.current;
|
|
45
|
-
if (!e) return;
|
|
46
|
-
let t = (e) => m?.(e.detail.index, e.detail), n = (e) => h?.(e.detail), r = (e) => g?.(e.detail.index), i = (e) => v?.(e.detail.index);
|
|
47
|
-
return e.addEventListener("wui-wizard:change", t), e.addEventListener("wui-wizard:finish", n), e.addEventListener("wui-wizard:skip", r), e.addEventListener("wui-wizard:invalid", i), () => {
|
|
48
|
-
e.removeEventListener("wui-wizard:change", t), e.removeEventListener("wui-wizard:finish", n), e.removeEventListener("wui-wizard:skip", r), e.removeEventListener("wui-wizard:invalid", i);
|
|
49
|
-
};
|
|
50
|
-
}, [
|
|
51
|
-
m,
|
|
52
|
-
h,
|
|
53
|
-
g,
|
|
54
|
-
v
|
|
55
|
-
]), /* @__PURE__ */ o("wui-wizard", {
|
|
56
|
-
ref: L,
|
|
57
|
-
variant: y,
|
|
58
|
-
orientation: S,
|
|
59
|
-
skippable: C ? "" : void 0,
|
|
60
|
-
"non-linear": w ? "" : void 0,
|
|
61
|
-
"hide-stepper": T ? "" : void 0,
|
|
62
|
-
"hide-connectors": E ? "" : void 0,
|
|
63
|
-
disabled: D ? "" : void 0,
|
|
64
|
-
label: O,
|
|
65
|
-
"back-label": k,
|
|
66
|
-
"next-label": A,
|
|
67
|
-
"skip-label": j,
|
|
68
|
-
"finish-label": M,
|
|
69
|
-
className: z || void 0,
|
|
70
|
-
...P,
|
|
71
|
-
children: r.map((e, t) => /* @__PURE__ */ o("wui-wizard-step", {
|
|
72
|
-
label: e.label,
|
|
73
|
-
description: e.description || void 0,
|
|
74
|
-
optional: e.optional ? "" : void 0,
|
|
75
|
-
icon: e.icon || void 0,
|
|
76
|
-
status: e.status || void 0,
|
|
77
|
-
children: R[t]
|
|
78
|
-
}, e.key ?? `${e.label}-${t}`))
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
//#endregion
|
|
82
|
-
export { d as default };
|
|
1
|
+
import e from"./warnInvalidValue.js";import t from"./warnUnknownProps.js";import n from"./AppIcon.js";import{Children as r,forwardRef as i,useEffect as a,useRef as o}from"react";import{jsx as s,jsxs as c}from"react/jsx-runtime";import"@webority/ui-elements/elements/wizard";var l=[`steps`,`journey`,`icons`],u=[`primary`,`success`,`warning`,`danger`,`info`],d=[`horizontal`,`vertical`],f=[`done`,`active`,`pending`,`error`],p=[`linear`,`outline`,`bold`,`bulk`,`broken`,`twotone`],m=[`check`,`alert-triangle`,`minus`],h=[`sm`,`md`,`lg`],g={sm:14,md:16,lg:20},_=i(function({steps:i=[],children:_,active:v,defaultActive:y=0,onStepChange:b,onFinish:x,onSkip:S,beforeNext:C,onInvalid:w,variant:T=`steps`,tone:E,doneTone:D,orientation:O=`horizontal`,iconVariant:k,size:A=`md`,iconSize:j,skippable:M=!1,nonLinear:N=!1,hideStepper:P=!1,hideConnectors:F=!1,disabled:I=!1,label:L=`Progress`,backLabel:R=`Back`,nextLabel:z=`Next`,skipLabel:B=`Skip`,finishLabel:V=`Finish`,className:H=``,...U},W){t(`AppWizard`,U),e(`AppWizard`,`variant`,T,l),e(`AppWizard`,`tone`,E,u),e(`AppWizard`,`doneTone`,D,u),e(`AppWizard`,`orientation`,O,d),e(`AppWizard`,`iconVariant`,k,p),e(`AppWizard`,`size`,A,h);let G=j>0?j:g[A]??g.md;for(let t of i)e(`AppWizard`,`steps[].status`,t.status,f);let K=o(null),q=e=>{K.current=e,typeof W==`function`?W(e):W&&(W.current=e)},J=r.toArray(_),Y=k&&k!==`linear`?[...new Set([...m,...i.map(e=>e.icon).filter(Boolean)])]:[],X=[E&&`wui-step-tone-${E}`,D&&`wui-step-done-tone-${D}`,A!==`md`&&h.includes(A)&&`wui-step-size-${A}`,H].filter(Boolean).join(` `);return a(()=>{let e=K.current;if(!e)return;let t=v===void 0?y:v;t&&(e.active=t)},[]),a(()=>{let e=K.current;e&&v!==void 0&&Number(e.active)!==v&&(e.active=v)},[v]),a(()=>{let e=K.current;e&&(e.beforeNext=C??null)},[C]),a(()=>{let e=K.current;if(!e)return;let t=e=>b?.(e.detail.index,e.detail),n=e=>x?.(e.detail),r=e=>S?.(e.detail.index),i=e=>w?.(e.detail.index);return e.addEventListener(`wui-wizard:change`,t),e.addEventListener(`wui-wizard:finish`,n),e.addEventListener(`wui-wizard:skip`,r),e.addEventListener(`wui-wizard:invalid`,i),()=>{e.removeEventListener(`wui-wizard:change`,t),e.removeEventListener(`wui-wizard:finish`,n),e.removeEventListener(`wui-wizard:skip`,r),e.removeEventListener(`wui-wizard:invalid`,i)}},[b,x,S,w]),c(`wui-wizard`,{ref:q,variant:T,orientation:O,"icon-size":G===16?void 0:G,skippable:M?``:void 0,"non-linear":N?``:void 0,"hide-stepper":P?``:void 0,"hide-connectors":F?``:void 0,disabled:I?``:void 0,label:L,"back-label":R,"next-label":z,"skip-label":B,"finish-label":V,className:X||void 0,...U,children:[i.map((e,t)=>s(`wui-wizard-step`,{label:e.label,description:e.description||void 0,optional:e.optional?``:void 0,icon:e.icon||void 0,status:e.status||void 0,children:J[t]},e.key??`${e.label}-${t}`)),Y.length>0&&s(`span`,{hidden:!0,"data-wui-glyphs":``,children:Y.map(e=>s(n,{name:e,size:G,variant:k},e))})]})});export{_ as default};
|