@webority/ui-react 0.34.0 → 0.35.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 +57 -0
- package/dist/components/AppActionIcon.js +53 -0
- package/dist/components/AppAlert.js +85 -0
- package/dist/components/AppAsyncBlock.js +48 -0
- package/dist/components/AppAutocomplete.js +93 -0
- package/dist/components/AppAvatar.js +143 -0
- package/dist/components/AppAvatarGroup.js +43 -0
- package/dist/components/AppAvatarPicker.js +247 -0
- package/dist/components/AppBadge.js +28 -0
- package/dist/components/AppBanner.js +49 -0
- package/dist/components/AppBreadcrumbs.js +24 -0
- package/dist/components/AppButton.js +85 -0
- package/dist/components/AppCalendar.js +72 -0
- package/dist/components/AppCard.js +110 -0
- package/dist/components/AppChart.js +153 -0
- package/dist/components/AppChartCard.js +125 -0
- package/dist/components/AppCheckbox.js +21 -0
- package/dist/components/AppChip.js +71 -0
- package/dist/components/AppChoiceCard.js +69 -0
- package/dist/components/AppChoiceChip.js +31 -0
- package/dist/components/AppColorField.js +63 -0
- package/dist/components/AppColumnMenu.js +27 -0
- package/dist/components/AppCommandPalette.js +164 -0
- package/dist/components/AppCompareTable.js +41 -0
- package/dist/components/AppConfirmDialog.js +93 -0
- package/dist/components/AppConsentBanner.js +37 -0
- package/dist/components/AppContextMenu.js +46 -0
- package/dist/components/AppCopyButton.js +41 -0
- package/dist/components/AppCountrySelect.js +75 -0
- package/dist/components/AppDashboardCell.js +19 -0
- package/dist/components/AppDashboardGrid.js +12 -0
- package/dist/components/AppDataTable.js +213 -0
- package/dist/components/AppDatePicker.js +59 -0
- package/dist/components/AppDateRangePicker.js +73 -0
- package/dist/components/AppDescriptions.js +40 -0
- package/dist/components/AppDropZone.js +106 -0
- package/dist/components/AppDropdown.js +90 -0
- package/dist/components/AppEmptyState.js +37 -0
- package/dist/components/AppErrorSummary.js +37 -0
- package/dist/components/AppFileAttachment.js +140 -0
- package/dist/components/AppFilePicker.js +220 -0
- package/dist/components/AppFileViewer.js +50 -0
- package/dist/components/AppFilterBar.js +129 -0
- package/dist/components/AppFloatingDock.js +47 -0
- package/dist/components/AppFormActions.js +23 -0
- package/dist/components/AppFormRow.js +24 -0
- package/dist/components/AppFormSection.js +32 -0
- package/dist/components/AppIcon.js +147 -0
- package/dist/components/AppInfoList.js +36 -0
- package/dist/components/AppInfoTip.js +41 -0
- package/dist/components/AppInput.js +269 -0
- package/dist/components/AppKanban.js +269 -0
- package/dist/components/AppKpiTile.js +91 -0
- package/dist/components/AppLink.js +74 -0
- package/dist/components/AppLogoPicker.js +264 -0
- package/dist/components/AppMeter.js +42 -0
- package/dist/components/AppModal.js +124 -0
- package/dist/components/AppMultiSelect.js +75 -0
- package/dist/components/AppNumberInput.js +139 -0
- package/dist/components/AppOtpInput.js +53 -0
- package/dist/components/AppPageHeader.js +82 -0
- package/dist/components/AppPagination.js +66 -0
- package/dist/components/AppPhoneNumberInput.js +53 -0
- package/dist/components/AppPopover.js +47 -0
- package/dist/components/AppPricingCard.js +58 -0
- package/dist/components/AppProgress.js +42 -0
- package/dist/components/AppQrCode.js +40 -0
- package/dist/components/AppRadio.js +21 -0
- package/dist/components/AppRadioGroup.js +79 -0
- package/dist/components/AppRepeater.js +57 -0
- package/dist/components/AppRequiredMark.js +11 -0
- package/dist/components/AppResourceCard.js +38 -0
- package/dist/components/AppResult.js +66 -0
- package/dist/components/AppRichText.js +72 -0
- package/dist/components/AppScrollbar.js +16 -0
- package/dist/components/AppSearch.js +52 -0
- package/dist/components/AppSegmented.js +87 -0
- package/dist/components/AppSelect.js +95 -0
- package/dist/components/AppSelectMini.js +45 -0
- package/dist/components/AppShell.js +709 -0
- package/dist/components/AppSidebarMenu.js +77 -0
- package/dist/components/AppSkeleton.js +24 -0
- package/dist/components/AppSlider.js +76 -0
- package/dist/components/AppSortableList.js +63 -0
- package/dist/components/AppSparkline.js +47 -0
- package/dist/components/AppSpinner.js +23 -0
- package/dist/components/AppSplash.js +62 -0
- package/dist/components/AppStatusBadge.js +22 -0
- package/dist/components/AppStepper.js +94 -0
- package/dist/components/AppSwitch.js +26 -0
- package/dist/components/AppTableEmptyState.js +30 -0
- package/dist/components/AppTablePagination.js +85 -0
- package/dist/components/AppTableToolbar.js +41 -0
- package/dist/components/AppTabs.js +195 -0
- package/dist/components/AppTagInput.js +63 -0
- package/dist/components/AppTextarea.js +81 -0
- package/dist/components/AppThemeToggle.js +102 -0
- package/dist/components/AppTimePicker.js +68 -0
- package/dist/components/AppTimeline.js +102 -0
- package/dist/components/AppToast.js +169 -0
- package/dist/components/AppToolbar.js +63 -0
- package/dist/components/AppTooltip.js +50 -0
- package/dist/components/AppTour.js +39 -0
- package/dist/components/AppTreeView.js +61 -0
- package/dist/components/AppWizard.js +82 -0
- package/dist/components/AppWorkspaceSwitcher.js +176 -0
- package/dist/components/ModalIcons.js +18 -0
- package/dist/components/iconCatalogLoaders.g.js +170 -0
- package/dist/components/iconCatalogNames.g.js +4 -0
- package/dist/components/iconGlyphs.g.js +211 -0
- package/dist/components/renderIconProp.js +13 -0
- package/dist/components/toast.js +41 -0
- package/dist/components/toastStore.js +78 -0
- package/dist/components/useWuiControl.js +106 -0
- package/dist/components/warnInvalidValue.js +17 -0
- package/dist/components/warnUnknownProps.js +17 -0
- package/dist/components/withTooltip.js +12 -0
- package/dist/lib/CheckField.js +37 -0
- package/dist/lib/FileItemRow.js +44 -0
- package/dist/lib/emptyValue.js +6 -0
- package/dist/lib/fileItem.js +27 -0
- package/dist/lib/focusField.js +14 -0
- package/dist/lib/listQuery.js +57 -0
- package/dist/lib/navMatch.js +29 -0
- package/dist/lib/pageWindow.js +14 -0
- package/dist/lib/qrCode.js +577 -0
- package/dist/lib/shellCookie.js +16 -0
- package/dist/lib/useCommandPaletteShortcut.js +15 -0
- package/dist/lib/useFloatingStack.js +25 -0
- package/dist/lib/useListQuery.js +120 -0
- package/dist/lib/usePagination.js +29 -0
- package/dist/lib/useTableView.js +42 -0
- package/dist/types/components/AppAutocomplete.d.ts +1 -1
- package/dist/types/components/AppAvatarPicker.d.ts +55 -0
- package/dist/types/components/AppCommandPalette.d.ts +1 -1
- package/dist/types/components/AppConsentBanner.d.ts +1 -1
- package/dist/types/components/AppContextMenu.d.ts +1 -1
- package/dist/types/components/AppCountrySelect.d.ts +1 -1
- package/dist/types/components/AppDatePicker.d.ts +1 -1
- package/dist/types/components/AppDateRangePicker.d.ts +1 -1
- package/dist/types/components/AppFloatingDock.d.ts +1 -1
- package/dist/types/components/AppKanban.d.ts +7 -2
- package/dist/types/components/AppLogoPicker.d.ts +1 -0
- package/dist/types/components/AppMultiSelect.d.ts +1 -1
- package/dist/types/components/AppOtpInput.d.ts +1 -1
- package/dist/types/components/AppPhoneNumberInput.d.ts +1 -1
- package/dist/types/components/AppSelect.d.ts +1 -1
- package/dist/types/components/AppSelectMini.d.ts +1 -1
- package/dist/types/components/AppSlider.d.ts +1 -1
- package/dist/types/components/AppSortableList.d.ts +1 -1
- package/dist/types/components/AppTagInput.d.ts +1 -1
- package/dist/types/components/AppThemeToggle.d.ts +9 -6
- package/dist/types/components/AppTimePicker.d.ts +1 -1
- package/dist/types/components/AppTour.d.ts +1 -1
- package/dist/types/components/AppTreeView.d.ts +1 -1
- package/dist/types/components/AppWizard.d.ts +1 -1
- package/dist/types/components/ModalIcons.d.ts +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/ui-react.js +117 -9525
- package/package.json +3 -3
- /package/dist/{a.g-Cp8GEdyM.js → components/iconCatalogFull/bold/a.g.js} +0 -0
- /package/dist/{b.g-bKDfj9c5.js → components/iconCatalogFull/bold/b.g.js} +0 -0
- /package/dist/{c.g-DqGwABja.js → components/iconCatalogFull/bold/c.g.js} +0 -0
- /package/dist/{d.g-CipOBRsw.js → components/iconCatalogFull/bold/d.g.js} +0 -0
- /package/dist/{e.g-ChGIrYgq.js → components/iconCatalogFull/bold/e.g.js} +0 -0
- /package/dist/{f.g-DmHdWgNZ.js → components/iconCatalogFull/bold/f.g.js} +0 -0
- /package/dist/{g.g--ThCZYIr.js → components/iconCatalogFull/bold/g.g.js} +0 -0
- /package/dist/{h.g-Ci-Er6CR.js → components/iconCatalogFull/bold/h.g.js} +0 -0
- /package/dist/{i.g-DZQ65QIT.js → components/iconCatalogFull/bold/i.g.js} +0 -0
- /package/dist/{j.g-aomxS6QS.js → components/iconCatalogFull/bold/j.g.js} +0 -0
- /package/dist/{k.g-Bb2wQ2Ms.js → components/iconCatalogFull/bold/k.g.js} +0 -0
- /package/dist/{l.g-DZ1zMM1w.js → components/iconCatalogFull/bold/l.g.js} +0 -0
- /package/dist/{m.g-DFbdZm5W.js → components/iconCatalogFull/bold/m.g.js} +0 -0
- /package/dist/{n.g-UvurkmXk.js → components/iconCatalogFull/bold/n.g.js} +0 -0
- /package/dist/{o.g-D5Y5oCQH.js → components/iconCatalogFull/bold/o.g.js} +0 -0
- /package/dist/{p.g-CXg3EaEZ.js → components/iconCatalogFull/bold/p.g.js} +0 -0
- /package/dist/{q.g-Cy7tXvtO.js → components/iconCatalogFull/bold/q.g.js} +0 -0
- /package/dist/{r.g-C8yWsdze.js → components/iconCatalogFull/bold/r.g.js} +0 -0
- /package/dist/{s.g-Duv4gf-_.js → components/iconCatalogFull/bold/s.g.js} +0 -0
- /package/dist/{t.g-C4d7xUwA.js → components/iconCatalogFull/bold/t.g.js} +0 -0
- /package/dist/{u.g-D96_3gsv.js → components/iconCatalogFull/bold/u.g.js} +0 -0
- /package/dist/{v.g-taJ1oC9Z.js → components/iconCatalogFull/bold/v.g.js} +0 -0
- /package/dist/{w.g-DnmMiN_H.js → components/iconCatalogFull/bold/w.g.js} +0 -0
- /package/dist/{x.g-DWUT_reV.js → components/iconCatalogFull/bold/x.g.js} +0 -0
- /package/dist/{z.g-Bmt20-ur.js → components/iconCatalogFull/bold/z.g.js} +0 -0
- /package/dist/{a.g-B1BBAE2l.js → components/iconCatalogFull/broken/a.g.js} +0 -0
- /package/dist/{b.g-B162ikjP.js → components/iconCatalogFull/broken/b.g.js} +0 -0
- /package/dist/{c.g-DiBD244Y.js → components/iconCatalogFull/broken/c.g.js} +0 -0
- /package/dist/{d.g-Cs9TrwFl.js → components/iconCatalogFull/broken/d.g.js} +0 -0
- /package/dist/{e.g-Ce9W1eMC.js → components/iconCatalogFull/broken/e.g.js} +0 -0
- /package/dist/{f.g-YGFA9XSP.js → components/iconCatalogFull/broken/f.g.js} +0 -0
- /package/dist/{g.g-CztV9P0x.js → components/iconCatalogFull/broken/g.g.js} +0 -0
- /package/dist/{h.g-CzRUdkfn.js → components/iconCatalogFull/broken/h.g.js} +0 -0
- /package/dist/{i.g-iI15Wiv2.js → components/iconCatalogFull/broken/i.g.js} +0 -0
- /package/dist/{j.g-CTjAiDOh.js → components/iconCatalogFull/broken/j.g.js} +0 -0
- /package/dist/{k.g-CifZIVeO.js → components/iconCatalogFull/broken/k.g.js} +0 -0
- /package/dist/{l.g-BMDbVi8H.js → components/iconCatalogFull/broken/l.g.js} +0 -0
- /package/dist/{m.g-Dcv_pEO4.js → components/iconCatalogFull/broken/m.g.js} +0 -0
- /package/dist/{n.g-DG8THBSN.js → components/iconCatalogFull/broken/n.g.js} +0 -0
- /package/dist/{o.g-BmDWTFR9.js → components/iconCatalogFull/broken/o.g.js} +0 -0
- /package/dist/{p.g-DBbjzvfV.js → components/iconCatalogFull/broken/p.g.js} +0 -0
- /package/dist/{q.g-CtDV62pA.js → components/iconCatalogFull/broken/q.g.js} +0 -0
- /package/dist/{r.g-Dus-zLxh.js → components/iconCatalogFull/broken/r.g.js} +0 -0
- /package/dist/{s.g-Ccoxarre.js → components/iconCatalogFull/broken/s.g.js} +0 -0
- /package/dist/{t.g-Dhkar577.js → components/iconCatalogFull/broken/t.g.js} +0 -0
- /package/dist/{u.g-C6mC8OrR.js → components/iconCatalogFull/broken/u.g.js} +0 -0
- /package/dist/{v.g-Ccd_-2QB.js → components/iconCatalogFull/broken/v.g.js} +0 -0
- /package/dist/{w.g-DN5a2C4A.js → components/iconCatalogFull/broken/w.g.js} +0 -0
- /package/dist/{x.g-6q1-4uTL.js → components/iconCatalogFull/broken/x.g.js} +0 -0
- /package/dist/{z.g-z49BBBLF.js → components/iconCatalogFull/broken/z.g.js} +0 -0
- /package/dist/{a.g-5LWyM-GC.js → components/iconCatalogFull/bulk/a.g.js} +0 -0
- /package/dist/{b.g-Bu-DvCAC.js → components/iconCatalogFull/bulk/b.g.js} +0 -0
- /package/dist/{c.g-DL8VdtRB.js → components/iconCatalogFull/bulk/c.g.js} +0 -0
- /package/dist/{d.g-Dp8Eazt1.js → components/iconCatalogFull/bulk/d.g.js} +0 -0
- /package/dist/{e.g-DxMDwDJJ.js → components/iconCatalogFull/bulk/e.g.js} +0 -0
- /package/dist/{f.g-D2SOwc4J.js → components/iconCatalogFull/bulk/f.g.js} +0 -0
- /package/dist/{g.g-gPtoLmT2.js → components/iconCatalogFull/bulk/g.g.js} +0 -0
- /package/dist/{h.g-ezEFj2YC.js → components/iconCatalogFull/bulk/h.g.js} +0 -0
- /package/dist/{i.g-DMM4-xE0.js → components/iconCatalogFull/bulk/i.g.js} +0 -0
- /package/dist/{j.g-BPszpMm1.js → components/iconCatalogFull/bulk/j.g.js} +0 -0
- /package/dist/{k.g-BeMlVIgm.js → components/iconCatalogFull/bulk/k.g.js} +0 -0
- /package/dist/{l.g-C_pTRDDL.js → components/iconCatalogFull/bulk/l.g.js} +0 -0
- /package/dist/{m.g-CytECcy1.js → components/iconCatalogFull/bulk/m.g.js} +0 -0
- /package/dist/{n.g-BDt_DYat.js → components/iconCatalogFull/bulk/n.g.js} +0 -0
- /package/dist/{o.g-DSyIOA1B.js → components/iconCatalogFull/bulk/o.g.js} +0 -0
- /package/dist/{p.g-D5tA2vwU.js → components/iconCatalogFull/bulk/p.g.js} +0 -0
- /package/dist/{q.g-1Lw4aFTv.js → components/iconCatalogFull/bulk/q.g.js} +0 -0
- /package/dist/{r.g-C5gZi2H7.js → components/iconCatalogFull/bulk/r.g.js} +0 -0
- /package/dist/{s.g-D41EhCR8.js → components/iconCatalogFull/bulk/s.g.js} +0 -0
- /package/dist/{t.g-Bxhb2WIA.js → components/iconCatalogFull/bulk/t.g.js} +0 -0
- /package/dist/{u.g-D7I_vPrG.js → components/iconCatalogFull/bulk/u.g.js} +0 -0
- /package/dist/{v.g-CF_fpvOP.js → components/iconCatalogFull/bulk/v.g.js} +0 -0
- /package/dist/{w.g-7MAxYD_f.js → components/iconCatalogFull/bulk/w.g.js} +0 -0
- /package/dist/{x.g-DUo4WukH.js → components/iconCatalogFull/bulk/x.g.js} +0 -0
- /package/dist/{z.g-CIYyNruu.js → components/iconCatalogFull/bulk/z.g.js} +0 -0
- /package/dist/{a.g-CKE-UVlB.js → components/iconCatalogFull/linear/a.g.js} +0 -0
- /package/dist/{b.g-Dkq-W_Lw.js → components/iconCatalogFull/linear/b.g.js} +0 -0
- /package/dist/{c.g-b4cy8Ev3.js → components/iconCatalogFull/linear/c.g.js} +0 -0
- /package/dist/{d.g-C3NmjrFi.js → components/iconCatalogFull/linear/d.g.js} +0 -0
- /package/dist/{e.g-DNY2Uh45.js → components/iconCatalogFull/linear/e.g.js} +0 -0
- /package/dist/{f.g-_qCUZhKl.js → components/iconCatalogFull/linear/f.g.js} +0 -0
- /package/dist/{g.g-DiC2yVQt.js → components/iconCatalogFull/linear/g.g.js} +0 -0
- /package/dist/{h.g-C0eQ0GQE.js → components/iconCatalogFull/linear/h.g.js} +0 -0
- /package/dist/{i.g-V-F-OHrS.js → components/iconCatalogFull/linear/i.g.js} +0 -0
- /package/dist/{j.g-BvuipVWw.js → components/iconCatalogFull/linear/j.g.js} +0 -0
- /package/dist/{k.g-Bq4FcDK3.js → components/iconCatalogFull/linear/k.g.js} +0 -0
- /package/dist/{l.g-DA6nIw_z.js → components/iconCatalogFull/linear/l.g.js} +0 -0
- /package/dist/{m.g-Cj4NTa9B.js → components/iconCatalogFull/linear/m.g.js} +0 -0
- /package/dist/{n.g-DhZ0Lcm6.js → components/iconCatalogFull/linear/n.g.js} +0 -0
- /package/dist/{o.g-C5BY8UNh.js → components/iconCatalogFull/linear/o.g.js} +0 -0
- /package/dist/{p.g-CXYzEsVb.js → components/iconCatalogFull/linear/p.g.js} +0 -0
- /package/dist/{q.g-Bg-QqUEk.js → components/iconCatalogFull/linear/q.g.js} +0 -0
- /package/dist/{r.g-BSSEI7vV.js → components/iconCatalogFull/linear/r.g.js} +0 -0
- /package/dist/{s.g-5lIn93sd.js → components/iconCatalogFull/linear/s.g.js} +0 -0
- /package/dist/{t.g-C9DMEGtG.js → components/iconCatalogFull/linear/t.g.js} +0 -0
- /package/dist/{u.g-ia-nNvjK.js → components/iconCatalogFull/linear/u.g.js} +0 -0
- /package/dist/{v.g-IFr8O1YA.js → components/iconCatalogFull/linear/v.g.js} +0 -0
- /package/dist/{w.g-BrAIH76H.js → components/iconCatalogFull/linear/w.g.js} +0 -0
- /package/dist/{x.g-CIuI3Fqx.js → components/iconCatalogFull/linear/x.g.js} +0 -0
- /package/dist/{z.g-BUP3BJiy.js → components/iconCatalogFull/linear/z.g.js} +0 -0
- /package/dist/{a.g-KjYETv0g.js → components/iconCatalogFull/outline/a.g.js} +0 -0
- /package/dist/{b.g-MJlor3xB.js → components/iconCatalogFull/outline/b.g.js} +0 -0
- /package/dist/{c.g-PBMUuqTQ.js → components/iconCatalogFull/outline/c.g.js} +0 -0
- /package/dist/{d.g-DVdiUnBR.js → components/iconCatalogFull/outline/d.g.js} +0 -0
- /package/dist/{e.g-2mocZT4k.js → components/iconCatalogFull/outline/e.g.js} +0 -0
- /package/dist/{f.g-CIsVyKpG.js → components/iconCatalogFull/outline/f.g.js} +0 -0
- /package/dist/{g.g-CJ1Yjs6-.js → components/iconCatalogFull/outline/g.g.js} +0 -0
- /package/dist/{h.g-CgHsGdLb.js → components/iconCatalogFull/outline/h.g.js} +0 -0
- /package/dist/{i.g-Ba9q7vMi.js → components/iconCatalogFull/outline/i.g.js} +0 -0
- /package/dist/{j.g-AT7T_7fn.js → components/iconCatalogFull/outline/j.g.js} +0 -0
- /package/dist/{k.g-BJ0rj5XB.js → components/iconCatalogFull/outline/k.g.js} +0 -0
- /package/dist/{l.g-B_bLp8m2.js → components/iconCatalogFull/outline/l.g.js} +0 -0
- /package/dist/{m.g-Dgj5H5KY.js → components/iconCatalogFull/outline/m.g.js} +0 -0
- /package/dist/{n.g-CM9J_tyR.js → components/iconCatalogFull/outline/n.g.js} +0 -0
- /package/dist/{o.g-B9NPVFUv.js → components/iconCatalogFull/outline/o.g.js} +0 -0
- /package/dist/{p.g-Dt5NMAPz.js → components/iconCatalogFull/outline/p.g.js} +0 -0
- /package/dist/{q.g-C4dBmUaO.js → components/iconCatalogFull/outline/q.g.js} +0 -0
- /package/dist/{r.g-D1cgPNdo.js → components/iconCatalogFull/outline/r.g.js} +0 -0
- /package/dist/{s.g-CikU_E1r.js → components/iconCatalogFull/outline/s.g.js} +0 -0
- /package/dist/{t.g-Cvg4dLth.js → components/iconCatalogFull/outline/t.g.js} +0 -0
- /package/dist/{u.g-DihXFOEv.js → components/iconCatalogFull/outline/u.g.js} +0 -0
- /package/dist/{v.g-Yt58dVke.js → components/iconCatalogFull/outline/v.g.js} +0 -0
- /package/dist/{w.g-DgdwQxer.js → components/iconCatalogFull/outline/w.g.js} +0 -0
- /package/dist/{x.g-B-WlL4DI.js → components/iconCatalogFull/outline/x.g.js} +0 -0
- /package/dist/{z.g-CSusgZor.js → components/iconCatalogFull/outline/z.g.js} +0 -0
- /package/dist/{a.g-D1PdkV5E.js → components/iconCatalogFull/twotone/a.g.js} +0 -0
- /package/dist/{b.g-F1eKfRpo.js → components/iconCatalogFull/twotone/b.g.js} +0 -0
- /package/dist/{c.g-DKzspN6u.js → components/iconCatalogFull/twotone/c.g.js} +0 -0
- /package/dist/{d.g-C8KPpY8s.js → components/iconCatalogFull/twotone/d.g.js} +0 -0
- /package/dist/{e.g-B1bvEARe.js → components/iconCatalogFull/twotone/e.g.js} +0 -0
- /package/dist/{f.g-DEKavmMH.js → components/iconCatalogFull/twotone/f.g.js} +0 -0
- /package/dist/{g.g-B1u2EvQZ.js → components/iconCatalogFull/twotone/g.g.js} +0 -0
- /package/dist/{h.g-Dxw84X7K.js → components/iconCatalogFull/twotone/h.g.js} +0 -0
- /package/dist/{i.g-BNxSASLW.js → components/iconCatalogFull/twotone/i.g.js} +0 -0
- /package/dist/{j.g-BBP7_cik.js → components/iconCatalogFull/twotone/j.g.js} +0 -0
- /package/dist/{k.g-DSSazL_b.js → components/iconCatalogFull/twotone/k.g.js} +0 -0
- /package/dist/{l.g-eEit84D7.js → components/iconCatalogFull/twotone/l.g.js} +0 -0
- /package/dist/{m.g-DDIUTIAb.js → components/iconCatalogFull/twotone/m.g.js} +0 -0
- /package/dist/{n.g-BIYpVBEb.js → components/iconCatalogFull/twotone/n.g.js} +0 -0
- /package/dist/{o.g-B95BaazY.js → components/iconCatalogFull/twotone/o.g.js} +0 -0
- /package/dist/{p.g-HXmphCe0.js → components/iconCatalogFull/twotone/p.g.js} +0 -0
- /package/dist/{q.g-CPyhElA_.js → components/iconCatalogFull/twotone/q.g.js} +0 -0
- /package/dist/{r.g-DIEF7HkY.js → components/iconCatalogFull/twotone/r.g.js} +0 -0
- /package/dist/{s.g-BX2BLrIK.js → components/iconCatalogFull/twotone/s.g.js} +0 -0
- /package/dist/{t.g-9FQPNgd_.js → components/iconCatalogFull/twotone/t.g.js} +0 -0
- /package/dist/{u.g-Cl8s3gGa.js → components/iconCatalogFull/twotone/u.g.js} +0 -0
- /package/dist/{v.g-BxRTxjbP.js → components/iconCatalogFull/twotone/v.g.js} +0 -0
- /package/dist/{w.g-BRwJSEbR.js → components/iconCatalogFull/twotone/w.g.js} +0 -0
- /package/dist/{x.g-Cc7upOBC.js → components/iconCatalogFull/twotone/x.g.js} +0 -0
- /package/dist/{z.g-COIy6PjH.js → components/iconCatalogFull/twotone/z.g.js} +0 -0
- /package/dist/{iconVariants.g-BBn9-u3W.js → components/iconVariants.g.js} +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
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 };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import e from "./warnUnknownProps.js";
|
|
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 };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
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 };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import e from "./warnUnknownProps.js";
|
|
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 };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
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 };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
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 };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
2
|
+
import t from "./warnUnknownProps.js";
|
|
3
|
+
import n from "./AppIcon.js";
|
|
4
|
+
import { forwardRef as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
5
|
+
import { Dropdown as c } from "react-bootstrap";
|
|
6
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/AppWorkspaceSwitcher.jsx
|
|
8
|
+
var f = [
|
|
9
|
+
"sm",
|
|
10
|
+
"md",
|
|
11
|
+
"lg"
|
|
12
|
+
], p = /* @__PURE__ */ new Set([
|
|
13
|
+
"ArrowUp",
|
|
14
|
+
"ArrowDown",
|
|
15
|
+
"ArrowLeft",
|
|
16
|
+
"ArrowRight"
|
|
17
|
+
]);
|
|
18
|
+
function m({ tenants: r = [], currentId: l, onSelect: m, menuLabel: h, footerAction: y, linkComponent: b, searchable: x = !1, onCreate: S, canCreate: C = !1, createLabel: w = "Create workspace", compact: T = !1, size: E = "md", ariaLabel: D, ...O }) {
|
|
19
|
+
let { onToggle: k, ...A } = O;
|
|
20
|
+
t("AppWorkspaceSwitcher", A), e("AppWorkspaceSwitcher", "size", E, f);
|
|
21
|
+
let [j, M] = s(""), [N, P] = s(!1), F = o(null), I = (e, t) => {
|
|
22
|
+
P(e), k?.(e, t);
|
|
23
|
+
}, L = r.find((e) => e.id === l) ?? r[0], R = a(() => {
|
|
24
|
+
let e = j.trim().toLowerCase();
|
|
25
|
+
return !x || !e ? r : r.filter((t) => String(t.name ?? "").toLowerCase().includes(e));
|
|
26
|
+
}, [
|
|
27
|
+
r,
|
|
28
|
+
j,
|
|
29
|
+
x
|
|
30
|
+
]);
|
|
31
|
+
i(() => {
|
|
32
|
+
N && x && F.current?.focus();
|
|
33
|
+
}, [N, x]), i(() => {
|
|
34
|
+
if (!x) return;
|
|
35
|
+
let e = F.current;
|
|
36
|
+
if (!e) return;
|
|
37
|
+
let t = (e) => {
|
|
38
|
+
if (p.has(e.key)) {
|
|
39
|
+
e.stopPropagation();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
e.key === "Escape" && N && (e.preventDefault(), e.stopPropagation(), I(!1, {
|
|
43
|
+
source: "keydown",
|
|
44
|
+
originalEvent: e
|
|
45
|
+
}));
|
|
46
|
+
};
|
|
47
|
+
return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
|
|
48
|
+
}, [x, N]);
|
|
49
|
+
let z = L?.name ?? "", B = D ?? `Workspace ${z}`;
|
|
50
|
+
return /* @__PURE__ */ d(c, {
|
|
51
|
+
className: `workspace-switcher${E === "sm" ? " workspace-switcher-sm" : ""}${E === "lg" ? " workspace-switcher-lg" : ""}`,
|
|
52
|
+
show: N,
|
|
53
|
+
onToggle: I,
|
|
54
|
+
...A,
|
|
55
|
+
children: [/* @__PURE__ */ u(c.Toggle, {
|
|
56
|
+
as: v,
|
|
57
|
+
compact: T,
|
|
58
|
+
tenant: L,
|
|
59
|
+
"aria-label": B
|
|
60
|
+
}), /* @__PURE__ */ d(c.Menu, {
|
|
61
|
+
className: "workspace-switcher-menu",
|
|
62
|
+
renderOnMount: !0,
|
|
63
|
+
popperConfig: { strategy: "fixed" },
|
|
64
|
+
children: [
|
|
65
|
+
h ? /* @__PURE__ */ u("div", {
|
|
66
|
+
className: "workspace-switcher-menu-label",
|
|
67
|
+
children: h
|
|
68
|
+
}) : null,
|
|
69
|
+
x ? /* @__PURE__ */ d("div", {
|
|
70
|
+
className: "workspace-switcher-search",
|
|
71
|
+
children: [/* @__PURE__ */ u(n, {
|
|
72
|
+
name: "search",
|
|
73
|
+
size: 14
|
|
74
|
+
}), /* @__PURE__ */ u("input", {
|
|
75
|
+
ref: F,
|
|
76
|
+
type: "search",
|
|
77
|
+
className: "workspace-switcher-search-input",
|
|
78
|
+
placeholder: "Search workspaces",
|
|
79
|
+
"aria-label": "Search workspaces",
|
|
80
|
+
value: j,
|
|
81
|
+
onChange: (e) => M(e.target.value)
|
|
82
|
+
})]
|
|
83
|
+
}) : null,
|
|
84
|
+
/* @__PURE__ */ d("div", {
|
|
85
|
+
className: "workspace-switcher-list",
|
|
86
|
+
children: [R.map((e) => /* @__PURE__ */ d(c.Item, {
|
|
87
|
+
as: "button",
|
|
88
|
+
type: "button",
|
|
89
|
+
className: `workspace-switcher-option${e.id === L?.id ? " is-active" : ""}`,
|
|
90
|
+
onClick: () => m?.(e),
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ u(g, { tenant: e }),
|
|
93
|
+
/* @__PURE__ */ u("span", {
|
|
94
|
+
className: "workspace-switcher-option-name",
|
|
95
|
+
children: e.name
|
|
96
|
+
}),
|
|
97
|
+
e.badge ? /* @__PURE__ */ u("span", {
|
|
98
|
+
className: "workspace-switcher-badge",
|
|
99
|
+
children: e.badge
|
|
100
|
+
}) : null,
|
|
101
|
+
e.id === L?.id ? /* @__PURE__ */ u(n, {
|
|
102
|
+
name: "check",
|
|
103
|
+
size: 16,
|
|
104
|
+
className: "workspace-switcher-tick"
|
|
105
|
+
}) : null
|
|
106
|
+
]
|
|
107
|
+
}, e.id)), R.length === 0 ? /* @__PURE__ */ u("div", {
|
|
108
|
+
className: "workspace-switcher-empty",
|
|
109
|
+
children: "No workspaces match."
|
|
110
|
+
}) : null]
|
|
111
|
+
}),
|
|
112
|
+
C ? /* @__PURE__ */ d(c.Item, {
|
|
113
|
+
as: "button",
|
|
114
|
+
type: "button",
|
|
115
|
+
className: "workspace-switcher-create",
|
|
116
|
+
onClick: () => S?.(),
|
|
117
|
+
children: [/* @__PURE__ */ u(n, {
|
|
118
|
+
name: "plus",
|
|
119
|
+
size: 16
|
|
120
|
+
}), w]
|
|
121
|
+
}) : null,
|
|
122
|
+
y ? /* @__PURE__ */ u("div", {
|
|
123
|
+
className: "workspace-switcher-footer",
|
|
124
|
+
children: _(y, b)
|
|
125
|
+
}) : null
|
|
126
|
+
]
|
|
127
|
+
})]
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function h(e) {
|
|
131
|
+
let t = String(e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
132
|
+
return t.length === 0 ? "" : (t[0][0] + (t.length > 1 ? t[t.length - 1][0] : "")).toUpperCase();
|
|
133
|
+
}
|
|
134
|
+
function g({ tenant: e }) {
|
|
135
|
+
return e?.logoUrl ? /* @__PURE__ */ u("img", {
|
|
136
|
+
className: "workspace-switcher-mark",
|
|
137
|
+
src: e.logoUrl,
|
|
138
|
+
alt: "",
|
|
139
|
+
loading: "lazy"
|
|
140
|
+
}) : /* @__PURE__ */ u("span", {
|
|
141
|
+
className: "workspace-switcher-mark",
|
|
142
|
+
children: h(e?.name)
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function _(e, t) {
|
|
146
|
+
if (typeof e != "object" || !e || !("label" in e)) return e;
|
|
147
|
+
let { label: r, icon: i, href: a } = e;
|
|
148
|
+
return /* @__PURE__ */ d(a ? t ?? "a" : "button", {
|
|
149
|
+
className: "workspace-switcher-footer-action",
|
|
150
|
+
...a ? t ? { to: a } : { href: a } : { type: "button" },
|
|
151
|
+
children: [i ? /* @__PURE__ */ u(n, {
|
|
152
|
+
name: i,
|
|
153
|
+
size: 16
|
|
154
|
+
}) : null, r]
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
var v = r(function({ compact: e, tenant: t, "aria-label": r, className: i, ...a }, o) {
|
|
158
|
+
return /* @__PURE__ */ d("button", {
|
|
159
|
+
ref: o,
|
|
160
|
+
type: "button",
|
|
161
|
+
className: `workspace-switcher-trigger${e ? " is-compact" : ""}`,
|
|
162
|
+
"aria-haspopup": "true",
|
|
163
|
+
"aria-label": r,
|
|
164
|
+
...a,
|
|
165
|
+
children: [/* @__PURE__ */ u(g, { tenant: t }), e ? null : /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("span", {
|
|
166
|
+
className: "workspace-switcher-trigger-name",
|
|
167
|
+
children: t?.name
|
|
168
|
+
}), /* @__PURE__ */ u(n, {
|
|
169
|
+
name: "chevrons-up-down",
|
|
170
|
+
size: 16,
|
|
171
|
+
className: "workspace-switcher-chevron"
|
|
172
|
+
})] })]
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
//#endregion
|
|
176
|
+
export { m as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "@webority/ui-elements/elements/status-icon";
|
|
3
|
+
//#region src/components/ModalIcons.jsx
|
|
4
|
+
var t = (t) => function({ size: n = 72 }) {
|
|
5
|
+
return /* @__PURE__ */ e("wui-status-icon", {
|
|
6
|
+
tone: t,
|
|
7
|
+
size: n
|
|
8
|
+
});
|
|
9
|
+
}, n = t("success"), r = t("error"), i = t("warning"), a = t("info"), o = t("delete"), s = t("primary"), c = {
|
|
10
|
+
success: n,
|
|
11
|
+
error: r,
|
|
12
|
+
warning: i,
|
|
13
|
+
info: a,
|
|
14
|
+
delete: o,
|
|
15
|
+
primary: s
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { o as DeleteIcon, r as ErrorIcon, a as InfoIcon, c as MODAL_ICONS, s as PrimaryIcon, n as SuccessIcon, i as WarningIcon };
|