@webority/ui-react 0.33.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/AppFileViewer.d.ts +8 -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 -9524
- 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,153 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
2
|
+
import t from "./warnUnknownProps.js";
|
|
3
|
+
import { forwardRef as n, useCallback as r, useEffect as i, useLayoutEffect as a, useRef as o, useState as s } from "react";
|
|
4
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/AppChart.jsx
|
|
6
|
+
var l = "wui-chart:select", u = "wui-chart:legend-change", d = "wui-chart:ready", f = [
|
|
7
|
+
"line",
|
|
8
|
+
"area",
|
|
9
|
+
"column",
|
|
10
|
+
"bar",
|
|
11
|
+
"donut",
|
|
12
|
+
"heatmap",
|
|
13
|
+
"calendar",
|
|
14
|
+
"funnel",
|
|
15
|
+
"gauge",
|
|
16
|
+
"waterfall",
|
|
17
|
+
"treemap",
|
|
18
|
+
"sankey",
|
|
19
|
+
"scatter",
|
|
20
|
+
"bubble",
|
|
21
|
+
"multiples"
|
|
22
|
+
], p = [
|
|
23
|
+
"none",
|
|
24
|
+
"stacked",
|
|
25
|
+
"percent"
|
|
26
|
+
], m = [
|
|
27
|
+
"ready",
|
|
28
|
+
"loading",
|
|
29
|
+
"empty",
|
|
30
|
+
"error"
|
|
31
|
+
], h = [
|
|
32
|
+
"auto",
|
|
33
|
+
"svg",
|
|
34
|
+
"canvas"
|
|
35
|
+
], g = ["chart", "table"], _ = "This chart couldn't load. Try again in a moment.", v = () => {
|
|
36
|
+
try {
|
|
37
|
+
return process.env.NODE_ENV !== "production";
|
|
38
|
+
} catch {
|
|
39
|
+
return !0;
|
|
40
|
+
}
|
|
41
|
+
}, y = !1;
|
|
42
|
+
function b() {
|
|
43
|
+
y || !v() || (y = !0, console.warn("[@webority/ui-react] <AppChart> has no `title`, which names the chart for assistive tech and its exported files."));
|
|
44
|
+
}
|
|
45
|
+
var x = (e) => e === "" ? void 0 : e, S = (e) => Array.isArray(e) ? e.map(S) : e == null || Object.getPrototypeOf(e) !== Object.prototype ? e : Object.fromEntries(Object.entries(e).filter(([, e]) => e !== "").map(([e, t]) => [e, S(t)])), C = (e) => ({
|
|
46
|
+
type: x(e.type),
|
|
47
|
+
title: x(e.title),
|
|
48
|
+
description: x(e.description),
|
|
49
|
+
data: e.data,
|
|
50
|
+
x: S(e.x),
|
|
51
|
+
series: S(e.series),
|
|
52
|
+
group: S(e.group),
|
|
53
|
+
to: S(e.to),
|
|
54
|
+
size: S(e.size),
|
|
55
|
+
trend: e.trend,
|
|
56
|
+
zoom: e.zoom,
|
|
57
|
+
bands: S(e.bands),
|
|
58
|
+
stack: x(e.stack),
|
|
59
|
+
y: S(e.y),
|
|
60
|
+
target: S(e.target),
|
|
61
|
+
height: e.height > 0 ? e.height : void 0,
|
|
62
|
+
state: x(e.state),
|
|
63
|
+
emptyText: x(e.emptyText),
|
|
64
|
+
errorText: x(e.errorText),
|
|
65
|
+
renderer: x(e.renderer)
|
|
66
|
+
}), w = (e, t) => t != null && Object.keys(e).every((n) => Object.is(e[n], t[n])), T = (e) => {
|
|
67
|
+
try {
|
|
68
|
+
return JSON.stringify(e);
|
|
69
|
+
} catch {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
}, E = n(function({ type: n, title: v, description: y, data: x, x: S, series: E, group: D, to: O, size: k, trend: A, zoom: j, bands: M, stack: N, y: P, target: F, height: I, state: L, emptyText: R, errorText: z, renderer: B, view: V, onSelect: H, onLegendChange: U, onReady: W, className: G = "", style: K, ...q }, J) {
|
|
73
|
+
t("AppChart", q), e("AppChart", "type", n, f), e("AppChart", "stack", N, p), e("AppChart", "state", L, m), e("AppChart", "renderer", B, h), e("AppChart", "view", V, g), v || b();
|
|
74
|
+
let Y = o(null), X = o({
|
|
75
|
+
props: null,
|
|
76
|
+
signature: null
|
|
77
|
+
}), Z = o({
|
|
78
|
+
onSelect: H,
|
|
79
|
+
onLegendChange: U,
|
|
80
|
+
onReady: W
|
|
81
|
+
}), [Q, $] = s(!1), ee = r((e) => {
|
|
82
|
+
Y.current = e, typeof J == "function" ? J(e) : J && (J.current = e);
|
|
83
|
+
}, [J]);
|
|
84
|
+
return i(() => {
|
|
85
|
+
Z.current = {
|
|
86
|
+
onSelect: H,
|
|
87
|
+
onLegendChange: U,
|
|
88
|
+
onReady: W
|
|
89
|
+
};
|
|
90
|
+
}), a(() => {
|
|
91
|
+
let e = Y.current;
|
|
92
|
+
if (!e) return;
|
|
93
|
+
let t = {
|
|
94
|
+
type: n,
|
|
95
|
+
title: v,
|
|
96
|
+
description: y,
|
|
97
|
+
data: x,
|
|
98
|
+
x: S,
|
|
99
|
+
series: E,
|
|
100
|
+
group: D,
|
|
101
|
+
to: O,
|
|
102
|
+
size: k,
|
|
103
|
+
trend: A,
|
|
104
|
+
zoom: j,
|
|
105
|
+
bands: M,
|
|
106
|
+
stack: N,
|
|
107
|
+
y: P,
|
|
108
|
+
target: F,
|
|
109
|
+
height: I,
|
|
110
|
+
state: L,
|
|
111
|
+
emptyText: R,
|
|
112
|
+
errorText: z,
|
|
113
|
+
renderer: B
|
|
114
|
+
};
|
|
115
|
+
if (w(t, X.current.props)) return;
|
|
116
|
+
X.current.props = t;
|
|
117
|
+
let r = C(t), i = T(r);
|
|
118
|
+
i !== null && i === X.current.signature || (X.current.signature = i, e.spec = r);
|
|
119
|
+
}), i(() => {
|
|
120
|
+
let e = Y.current, t = (e) => (t) => Z.current[e]?.(t.detail), n = [
|
|
121
|
+
[l, t("onSelect")],
|
|
122
|
+
[u, t("onLegendChange")],
|
|
123
|
+
[d, t("onReady")]
|
|
124
|
+
];
|
|
125
|
+
for (let [t, r] of n) e.addEventListener(t, r);
|
|
126
|
+
return () => {
|
|
127
|
+
for (let [t, r] of n) e.removeEventListener(t, r);
|
|
128
|
+
};
|
|
129
|
+
}, []), i(() => {
|
|
130
|
+
let e = !0;
|
|
131
|
+
return import("@webority/ui-elements/chart").catch((t) => {
|
|
132
|
+
console.warn("[AppChart] the chart failed to load:", t?.message), e && $(!0);
|
|
133
|
+
}), () => {
|
|
134
|
+
e = !1;
|
|
135
|
+
};
|
|
136
|
+
}, []), Q ? /* @__PURE__ */ c("div", {
|
|
137
|
+
className: G || void 0,
|
|
138
|
+
style: K,
|
|
139
|
+
role: "status",
|
|
140
|
+
children: /* @__PURE__ */ c("p", {
|
|
141
|
+
className: "wui-chart-state-text",
|
|
142
|
+
children: z || _
|
|
143
|
+
})
|
|
144
|
+
}) : /* @__PURE__ */ c("wui-chart", {
|
|
145
|
+
ref: ee,
|
|
146
|
+
view: V || void 0,
|
|
147
|
+
className: G || void 0,
|
|
148
|
+
style: K,
|
|
149
|
+
...q
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
//#endregion
|
|
153
|
+
export { E as default };
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import e from "./warnUnknownProps.js";
|
|
2
|
+
import t from "./AppIcon.js";
|
|
3
|
+
import n from "./AppButton.js";
|
|
4
|
+
import r from "./AppCard.js";
|
|
5
|
+
import i from "./AppDropdown.js";
|
|
6
|
+
import a from "./AppSegmented.js";
|
|
7
|
+
import { useLayoutEffect as o, useRef as s, useState as c } from "react";
|
|
8
|
+
import { Dropdown as l } from "react-bootstrap";
|
|
9
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
+
//#region src/components/AppChartCard.jsx
|
|
11
|
+
var p = [{
|
|
12
|
+
value: "chart",
|
|
13
|
+
label: "Chart",
|
|
14
|
+
icon: "chart"
|
|
15
|
+
}, {
|
|
16
|
+
value: "table",
|
|
17
|
+
label: "Table",
|
|
18
|
+
icon: "grid"
|
|
19
|
+
}], m = () => {
|
|
20
|
+
try {
|
|
21
|
+
return process.env.NODE_ENV !== "production";
|
|
22
|
+
} catch {
|
|
23
|
+
return !0;
|
|
24
|
+
}
|
|
25
|
+
}, h = !1;
|
|
26
|
+
function g() {
|
|
27
|
+
h || !m() || (h = !0, console.warn("[@webority/ui-react] <AppChartCard> has no `title`, which is the card's heading and names its menu button."));
|
|
28
|
+
}
|
|
29
|
+
var _ = (e) => e.getAttribute("view") === "table" ? "table" : "chart";
|
|
30
|
+
function v({ title: m, subtitle: h, toolbar: v = !0, onRetry: y, footer: b, children: x, className: S = "", ...C }) {
|
|
31
|
+
e("AppChartCard", C), m || g();
|
|
32
|
+
let w = s(null), T = s(null), [E, D] = c("chart"), O = s(E);
|
|
33
|
+
O.current = E;
|
|
34
|
+
let [k, A] = c(!0), j = () => w.current?.querySelector("wui-chart");
|
|
35
|
+
o(() => {
|
|
36
|
+
let e = w.current, t = () => {
|
|
37
|
+
let t = e.querySelector("wui-chart");
|
|
38
|
+
if (t) {
|
|
39
|
+
if (t === T.current) {
|
|
40
|
+
D(_(t));
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
T.current = t, t.hasAttribute("view") ? D(_(t)) : O.current !== "chart" && t.setAttribute("view", O.current);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
t();
|
|
47
|
+
let n = new MutationObserver(t);
|
|
48
|
+
return n.observe(e, {
|
|
49
|
+
childList: !0,
|
|
50
|
+
subtree: !0,
|
|
51
|
+
attributes: !0,
|
|
52
|
+
attributeFilter: ["view"]
|
|
53
|
+
}), () => n.disconnect();
|
|
54
|
+
}, []);
|
|
55
|
+
let M = /* @__PURE__ */ f(u, { children: [
|
|
56
|
+
/* @__PURE__ */ d("button", {
|
|
57
|
+
type: "button",
|
|
58
|
+
className: "topbar-icon-btn wui-chart-card-tool wui-chart-card-legend-tool",
|
|
59
|
+
"aria-pressed": k,
|
|
60
|
+
"aria-label": "Show legend",
|
|
61
|
+
title: "Show or hide the legend",
|
|
62
|
+
onClick: () => A(!k),
|
|
63
|
+
children: /* @__PURE__ */ d(t, {
|
|
64
|
+
name: "list",
|
|
65
|
+
size: 16
|
|
66
|
+
})
|
|
67
|
+
}),
|
|
68
|
+
/* @__PURE__ */ d(a, {
|
|
69
|
+
size: "sm",
|
|
70
|
+
label: "View",
|
|
71
|
+
options: p,
|
|
72
|
+
value: E,
|
|
73
|
+
onChange: (e) => {
|
|
74
|
+
D(e), j()?.setAttribute("view", e);
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ f(i, {
|
|
78
|
+
icon: "more-horizontal",
|
|
79
|
+
label: m ? `More actions for ${m}` : "More actions",
|
|
80
|
+
children: [/* @__PURE__ */ f(l.Item, {
|
|
81
|
+
as: "button",
|
|
82
|
+
type: "button",
|
|
83
|
+
onClick: () => j()?.exportPng?.(),
|
|
84
|
+
children: [/* @__PURE__ */ d(t, {
|
|
85
|
+
name: "image",
|
|
86
|
+
size: 16
|
|
87
|
+
}), "Download PNG"]
|
|
88
|
+
}), /* @__PURE__ */ f(l.Item, {
|
|
89
|
+
as: "button",
|
|
90
|
+
type: "button",
|
|
91
|
+
onClick: () => j()?.exportCsv?.(),
|
|
92
|
+
children: [/* @__PURE__ */ d(t, {
|
|
93
|
+
name: "download",
|
|
94
|
+
size: 16
|
|
95
|
+
}), "Download CSV"]
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
] }), N = [
|
|
99
|
+
"wui-chart-card",
|
|
100
|
+
k ? "" : "wui-chart-card-legend-off",
|
|
101
|
+
S
|
|
102
|
+
].filter(Boolean).join(" ");
|
|
103
|
+
return /* @__PURE__ */ f(r, {
|
|
104
|
+
title: m,
|
|
105
|
+
subtitle: h,
|
|
106
|
+
headerActions: v ? M : void 0,
|
|
107
|
+
footer: b,
|
|
108
|
+
className: N,
|
|
109
|
+
...C,
|
|
110
|
+
children: [/* @__PURE__ */ d("div", {
|
|
111
|
+
ref: w,
|
|
112
|
+
children: x
|
|
113
|
+
}), y && /* @__PURE__ */ d("div", {
|
|
114
|
+
className: "wui-chart-card-retry",
|
|
115
|
+
children: /* @__PURE__ */ d(n, {
|
|
116
|
+
variant: "outline",
|
|
117
|
+
size: "sm",
|
|
118
|
+
onClick: y,
|
|
119
|
+
children: "Try again"
|
|
120
|
+
})
|
|
121
|
+
})]
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
//#endregion
|
|
125
|
+
export { v as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import e from "./warnUnknownProps.js";
|
|
2
|
+
import t from "../lib/CheckField.js";
|
|
3
|
+
import { forwardRef as n } from "react";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/AppCheckbox.jsx
|
|
6
|
+
var i = n(function({ label: n, id: i, name: a, error: o, hint: s, className: c = "", ...l }, u) {
|
|
7
|
+
return e("AppCheckbox", l), /* @__PURE__ */ r(t, {
|
|
8
|
+
ref: u,
|
|
9
|
+
label: n,
|
|
10
|
+
id: i,
|
|
11
|
+
name: a,
|
|
12
|
+
error: o,
|
|
13
|
+
hint: s,
|
|
14
|
+
className: c,
|
|
15
|
+
rest: l,
|
|
16
|
+
inputType: "checkbox",
|
|
17
|
+
wrapperClass: "form-check"
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { i as default };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
2
|
+
import t from "./warnUnknownProps.js";
|
|
3
|
+
import n from "./AppIcon.js";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/AppChip.jsx
|
|
6
|
+
var o = [
|
|
7
|
+
"neutral",
|
|
8
|
+
"primary",
|
|
9
|
+
"success",
|
|
10
|
+
"warning",
|
|
11
|
+
"danger",
|
|
12
|
+
"info"
|
|
13
|
+
], s = [
|
|
14
|
+
"soft",
|
|
15
|
+
"outline",
|
|
16
|
+
"solid"
|
|
17
|
+
], c = ["sm", "md"];
|
|
18
|
+
function l({ label: l, children: u, tone: d = "neutral", variant: f = "soft", size: p = "md", leadingIcon: m, avatar: h, onRemove: g, onClick: _, disabled: v = !1, removeLabel: y, className: b = "", ...x }) {
|
|
19
|
+
t("AppChip", x), e("AppChip", "tone", d, o), e("AppChip", "variant", f, s), e("AppChip", "size", p, c);
|
|
20
|
+
let S = l ?? u, C = [
|
|
21
|
+
"chip",
|
|
22
|
+
d && d !== "neutral" ? d : "",
|
|
23
|
+
f === "outline" ? "chip-outline" : f === "solid" ? "chip-solid" : "",
|
|
24
|
+
p === "sm" ? "chip-sm" : "",
|
|
25
|
+
_ ? "chip-clickable" : "",
|
|
26
|
+
g ? "chip-removable" : "",
|
|
27
|
+
v ? "is-disabled" : "",
|
|
28
|
+
b
|
|
29
|
+
].filter(Boolean).join(" "), w = h ? /* @__PURE__ */ i("span", {
|
|
30
|
+
className: "chip-avatar",
|
|
31
|
+
children: typeof h == "string" ? /* @__PURE__ */ i("img", {
|
|
32
|
+
src: h,
|
|
33
|
+
alt: ""
|
|
34
|
+
}) : h
|
|
35
|
+
}) : m ? /* @__PURE__ */ i("span", {
|
|
36
|
+
className: "chip-ic",
|
|
37
|
+
children: /* @__PURE__ */ i(n, {
|
|
38
|
+
name: m,
|
|
39
|
+
size: p === "sm" ? 12 : 14
|
|
40
|
+
})
|
|
41
|
+
}) : null, T = _ ? /* @__PURE__ */ a("button", {
|
|
42
|
+
type: "button",
|
|
43
|
+
className: "chip-body",
|
|
44
|
+
onClick: _,
|
|
45
|
+
disabled: v,
|
|
46
|
+
children: [w, /* @__PURE__ */ i("span", {
|
|
47
|
+
className: "chip-label",
|
|
48
|
+
children: S
|
|
49
|
+
})]
|
|
50
|
+
}) : /* @__PURE__ */ a(r, { children: [w, /* @__PURE__ */ i("span", {
|
|
51
|
+
className: "chip-label",
|
|
52
|
+
children: S
|
|
53
|
+
})] });
|
|
54
|
+
return /* @__PURE__ */ a("span", {
|
|
55
|
+
className: C,
|
|
56
|
+
...x,
|
|
57
|
+
children: [T, g && /* @__PURE__ */ i("button", {
|
|
58
|
+
type: "button",
|
|
59
|
+
className: "chip-remove",
|
|
60
|
+
onClick: g,
|
|
61
|
+
disabled: v,
|
|
62
|
+
"aria-label": y || (typeof S == "string" ? `Remove ${S}` : "Remove"),
|
|
63
|
+
children: /* @__PURE__ */ i(n, {
|
|
64
|
+
name: "x",
|
|
65
|
+
size: p === "sm" ? 12 : 14
|
|
66
|
+
})
|
|
67
|
+
})]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
export { l as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
2
|
+
import t from "./warnUnknownProps.js";
|
|
3
|
+
import n from "./AppIcon.js";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/AppChoiceCard.jsx
|
|
6
|
+
var o = {
|
|
7
|
+
sm: " wui-struct-card-sm",
|
|
8
|
+
md: "",
|
|
9
|
+
lg: " wui-struct-card-lg"
|
|
10
|
+
}, s = {
|
|
11
|
+
inline: "",
|
|
12
|
+
stacked: " wui-struct-card-stacked"
|
|
13
|
+
}, c = {
|
|
14
|
+
sm: 16,
|
|
15
|
+
md: 18,
|
|
16
|
+
lg: 22
|
|
17
|
+
};
|
|
18
|
+
function l({ name: l, multiple: u = !1, value: d, checked: f, onChange: p, icon: m, iconNode: h, iconSize: g, image: _, imageAlt: v = "", children: y, title: b, description: x, checkIcon: S = "check", checkSize: C = 18, hideCheck: w = !1, size: T = "md", layout: E = "inline", className: D = "", ...O }) {
|
|
19
|
+
t("AppChoiceCard", O), e("AppChoiceCard", "size", T, Object.keys(o)), e("AppChoiceCard", "layout", E, Object.keys(s));
|
|
20
|
+
let k = o[T] ?? "", A = s[E] ?? "", j = g ?? c[T] ?? c.md;
|
|
21
|
+
return /* @__PURE__ */ a("label", {
|
|
22
|
+
className: `struct-card${_ ? " struct-card-img-card" : ""}${k}${A}${w ? " wui-struct-card-no-check" : ""}${f ? " checked" : ""}${D ? ` ${D}` : ""}`,
|
|
23
|
+
...O,
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ i("input", {
|
|
26
|
+
type: u ? "checkbox" : "radio",
|
|
27
|
+
name: l,
|
|
28
|
+
value: d,
|
|
29
|
+
className: "struct-card-input",
|
|
30
|
+
checked: f,
|
|
31
|
+
onChange: p
|
|
32
|
+
}),
|
|
33
|
+
_ ? /* @__PURE__ */ i("span", {
|
|
34
|
+
className: "struct-card-media",
|
|
35
|
+
children: /* @__PURE__ */ i("img", {
|
|
36
|
+
className: "struct-card-img",
|
|
37
|
+
src: _,
|
|
38
|
+
alt: v
|
|
39
|
+
})
|
|
40
|
+
}) : h || m ? /* @__PURE__ */ i("span", {
|
|
41
|
+
className: "struct-card-ic",
|
|
42
|
+
children: h || /* @__PURE__ */ i(n, {
|
|
43
|
+
name: m,
|
|
44
|
+
size: j,
|
|
45
|
+
variant: f ? "bold" : void 0
|
|
46
|
+
})
|
|
47
|
+
}) : null,
|
|
48
|
+
/* @__PURE__ */ i("span", {
|
|
49
|
+
className: "struct-card-body",
|
|
50
|
+
children: y || /* @__PURE__ */ a(r, { children: [b && /* @__PURE__ */ i("span", {
|
|
51
|
+
className: "struct-card-title",
|
|
52
|
+
children: b
|
|
53
|
+
}), x && /* @__PURE__ */ i("span", {
|
|
54
|
+
className: "struct-card-desc",
|
|
55
|
+
children: x
|
|
56
|
+
})] })
|
|
57
|
+
}),
|
|
58
|
+
!w && /* @__PURE__ */ i("span", {
|
|
59
|
+
className: "struct-card-check",
|
|
60
|
+
children: /* @__PURE__ */ i(n, {
|
|
61
|
+
name: S,
|
|
62
|
+
size: C
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
]
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { l as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
2
|
+
import t from "./warnUnknownProps.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/AppChoiceChip.jsx
|
|
5
|
+
var i = [
|
|
6
|
+
"sm",
|
|
7
|
+
"md",
|
|
8
|
+
"lg"
|
|
9
|
+
];
|
|
10
|
+
function a({ multiple: a = !0, label: o, name: s, value: c, checked: l, onChange: u, children: d, count: f, size: p = "md", className: m = "", ...h }) {
|
|
11
|
+
return t("AppChoiceChip", h), e("AppChoiceChip", "size", p, i), /* @__PURE__ */ r("label", {
|
|
12
|
+
className: `choice-chip${l ? " checked" : ""}${p === "sm" ? " choice-chip-sm" : p === "lg" ? " choice-chip-lg" : ""}${m ? ` ${m}` : ""}`,
|
|
13
|
+
...h,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ n("input", {
|
|
16
|
+
type: a ? "checkbox" : "radio",
|
|
17
|
+
name: s,
|
|
18
|
+
value: c,
|
|
19
|
+
checked: l,
|
|
20
|
+
onChange: u
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ n("span", { children: o ?? d }),
|
|
23
|
+
f != null && /* @__PURE__ */ n("span", {
|
|
24
|
+
className: "count",
|
|
25
|
+
children: f
|
|
26
|
+
})
|
|
27
|
+
]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as default };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import e from "./warnInvalidValue.js";
|
|
2
|
+
import t from "./warnUnknownProps.js";
|
|
3
|
+
import n from "./AppRequiredMark.js";
|
|
4
|
+
import { useId as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/AppColorField.jsx
|
|
7
|
+
var o = [
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg"
|
|
11
|
+
];
|
|
12
|
+
function s({ value: s = "#000000", onChange: c, label: l, required: u = !1, error: d, hint: f, name: p, id: m, disabled: h = !1, size: g = "md", className: _ = "", fieldClassName: v = "", ...y }) {
|
|
13
|
+
t("AppColorField", y), e("AppColorField", "size", g, o);
|
|
14
|
+
let b = r(), x = m || b, S = d ? `${x}-error` : f ? `${x}-hint` : void 0, C = (e) => /^#[0-9a-f]{6}$/i.test(e), w = g === "sm" ? " color-field-sm" : g === "lg" ? " color-field-lg" : "", T = g === "sm" ? " input-sm" : g === "lg" ? " input-lg" : "";
|
|
15
|
+
return /* @__PURE__ */ a("div", {
|
|
16
|
+
className: `field${v ? ` ${v}` : ""}`,
|
|
17
|
+
children: [
|
|
18
|
+
l && /* @__PURE__ */ a("label", {
|
|
19
|
+
className: "label",
|
|
20
|
+
htmlFor: x,
|
|
21
|
+
children: [l, u && /* @__PURE__ */ i(n, {})]
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ a("div", {
|
|
24
|
+
className: `color-field${w}`,
|
|
25
|
+
children: [/* @__PURE__ */ i("input", {
|
|
26
|
+
type: "color",
|
|
27
|
+
className: "color-field-swatch",
|
|
28
|
+
value: C(s) ? s : "#000000",
|
|
29
|
+
onChange: (e) => c?.(e.target.value),
|
|
30
|
+
disabled: h,
|
|
31
|
+
"aria-label": `${l || "Colour"}, colour picker`,
|
|
32
|
+
tabIndex: -1
|
|
33
|
+
}), /* @__PURE__ */ i("input", {
|
|
34
|
+
type: "text",
|
|
35
|
+
className: `input color-field-hex${T}${d ? " error" : ""}${_ ? ` ${_}` : ""}`,
|
|
36
|
+
id: x,
|
|
37
|
+
name: p,
|
|
38
|
+
value: s,
|
|
39
|
+
onChange: (e) => c?.(e.target.value),
|
|
40
|
+
placeholder: "#4F46E5",
|
|
41
|
+
spellCheck: !1,
|
|
42
|
+
maxLength: 7,
|
|
43
|
+
required: u,
|
|
44
|
+
disabled: h,
|
|
45
|
+
"aria-invalid": d ? "true" : "false",
|
|
46
|
+
"aria-describedby": S,
|
|
47
|
+
...y
|
|
48
|
+
})]
|
|
49
|
+
}),
|
|
50
|
+
d ? /* @__PURE__ */ i("div", {
|
|
51
|
+
className: "field-error",
|
|
52
|
+
id: `${x}-error`,
|
|
53
|
+
children: d
|
|
54
|
+
}) : f ? /* @__PURE__ */ i("div", {
|
|
55
|
+
className: "field-hint",
|
|
56
|
+
id: `${x}-hint`,
|
|
57
|
+
children: f
|
|
58
|
+
}) : null
|
|
59
|
+
]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
//#endregion
|
|
63
|
+
export { s as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e from "./warnUnknownProps.js";
|
|
2
|
+
import t from "./AppDropdown.js";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/AppColumnMenu.jsx
|
|
5
|
+
function i({ columns: i, hiddenColumns: a = [], onToggle: o, label: s = "Columns", className: c = "", ...l }) {
|
|
6
|
+
e("AppColumnMenu", l);
|
|
7
|
+
let u = i.filter((e) => e.hideable);
|
|
8
|
+
return /* @__PURE__ */ r(t, {
|
|
9
|
+
icon: "layout-grid",
|
|
10
|
+
label: s,
|
|
11
|
+
menuClassName: `wui-column-menu${c ? ` ${c}` : ""}`,
|
|
12
|
+
children: [/* @__PURE__ */ n("div", {
|
|
13
|
+
className: "wui-column-menu-title",
|
|
14
|
+
children: s
|
|
15
|
+
}), u.map((e) => /* @__PURE__ */ r("label", {
|
|
16
|
+
className: "wui-column-menu-item",
|
|
17
|
+
children: [/* @__PURE__ */ n("input", {
|
|
18
|
+
type: "checkbox",
|
|
19
|
+
className: "wui-check",
|
|
20
|
+
checked: !a.includes(e.key),
|
|
21
|
+
onChange: () => o(e.key)
|
|
22
|
+
}), e.label]
|
|
23
|
+
}, e.key))]
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { i as default };
|