@startdownnotez404/ui 1.0.0 → 1.3.5
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/README.md +110 -0
- package/dist/AutocompleteField-ZKNU2IRR.mjs +181 -0
- package/dist/AutocompleteField-ZKNU2IRR.mjs.map +1 -0
- package/dist/AvatarField-SAODT3CZ.mjs +275 -0
- package/dist/AvatarField-SAODT3CZ.mjs.map +1 -0
- package/dist/CodeEditor-JF55ZNVD.mjs +34 -0
- package/dist/CodeEditor-JF55ZNVD.mjs.map +1 -0
- package/dist/DateField-ZYMZFHL4.mjs +82 -0
- package/dist/DateField-ZYMZFHL4.mjs.map +1 -0
- package/dist/DateTimeField-TPTJ7YIZ.mjs +65 -0
- package/dist/DateTimeField-TPTJ7YIZ.mjs.map +1 -0
- package/dist/FileUploadField-NTMWBJER.mjs +78 -0
- package/dist/FileUploadField-NTMWBJER.mjs.map +1 -0
- package/dist/JSONEditorField-TMRWGXVR.mjs +64 -0
- package/dist/JSONEditorField-TMRWGXVR.mjs.map +1 -0
- package/dist/PopperMenu-LJ36RPBW.mjs +416 -0
- package/dist/PopperMenu-LJ36RPBW.mjs.map +1 -0
- package/dist/TelField-LOGRVZ4I.mjs +88 -0
- package/dist/TelField-LOGRVZ4I.mjs.map +1 -0
- package/dist/alert.d.mts +202 -0
- package/dist/alert.d.ts +202 -0
- package/dist/alert.js +784 -0
- package/dist/alert.js.map +1 -0
- package/dist/alert.mjs +47 -0
- package/dist/alert.mjs.map +1 -0
- package/dist/appBar.d.mts +21 -0
- package/dist/appBar.d.ts +21 -0
- package/dist/appBar.js +64 -0
- package/dist/appBar.js.map +1 -0
- package/dist/appBar.mjs +12 -0
- package/dist/appBar.mjs.map +1 -0
- package/dist/autocomplete.d.mts +121 -0
- package/dist/autocomplete.d.ts +121 -0
- package/dist/autocomplete.js +2052 -0
- package/dist/autocomplete.js.map +1 -0
- package/dist/autocomplete.mjs +21 -0
- package/dist/autocomplete.mjs.map +1 -0
- package/dist/avatar.d.mts +253 -0
- package/dist/avatar.d.ts +253 -0
- package/dist/avatar.js +992 -0
- package/dist/avatar.js.map +1 -0
- package/dist/avatar.mjs +41 -0
- package/dist/avatar.mjs.map +1 -0
- package/dist/badge.d.mts +123 -0
- package/dist/badge.d.ts +123 -0
- package/dist/badge.js +151 -0
- package/dist/badge.js.map +1 -0
- package/dist/badge.mjs +10 -0
- package/dist/badge.mjs.map +1 -0
- package/dist/box.d.mts +36 -0
- package/dist/box.d.ts +36 -0
- package/dist/box.js +199 -0
- package/dist/box.js.map +1 -0
- package/dist/box.mjs +14 -0
- package/dist/box.mjs.map +1 -0
- package/dist/button.d.mts +230 -52
- package/dist/button.d.ts +230 -52
- package/dist/button.js +392 -60
- package/dist/button.js.map +1 -1
- package/dist/button.mjs +14 -8
- package/dist/card.d.mts +47 -0
- package/dist/card.d.ts +47 -0
- package/dist/card.js +135 -0
- package/dist/card.js.map +1 -0
- package/dist/card.mjs +24 -0
- package/dist/card.mjs.map +1 -0
- package/dist/chart.d.mts +40 -0
- package/dist/chart.d.ts +40 -0
- package/dist/chart.js +1234 -0
- package/dist/chart.js.map +1 -0
- package/dist/chart.mjs +10 -0
- package/dist/chart.mjs.map +1 -0
- package/dist/checkbox.d.mts +62 -0
- package/dist/checkbox.d.ts +62 -0
- package/dist/checkbox.js +299 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/checkbox.mjs +14 -0
- package/dist/checkbox.mjs.map +1 -0
- package/dist/chip.d.mts +96 -0
- package/dist/chip.d.ts +96 -0
- package/dist/chip.js +112 -0
- package/dist/chip.js.map +1 -0
- package/dist/chip.mjs +10 -0
- package/dist/chip.mjs.map +1 -0
- package/dist/chunk-24XDGNJ6.mjs +1450 -0
- package/dist/chunk-24XDGNJ6.mjs.map +1 -0
- package/dist/chunk-27KYFU7R.mjs +30 -0
- package/dist/chunk-27KYFU7R.mjs.map +1 -0
- package/dist/chunk-2FFLT5VP.mjs +7 -0
- package/dist/chunk-2FFLT5VP.mjs.map +1 -0
- package/dist/chunk-2ZZJTBTE.mjs +148 -0
- package/dist/chunk-2ZZJTBTE.mjs.map +1 -0
- package/dist/chunk-3DQINB57.mjs +15 -0
- package/dist/chunk-3DQINB57.mjs.map +1 -0
- package/dist/chunk-3VUAM2GY.mjs +52 -0
- package/dist/chunk-3VUAM2GY.mjs.map +1 -0
- package/dist/chunk-4Q54P737.mjs +19 -0
- package/dist/chunk-4Q54P737.mjs.map +1 -0
- package/dist/chunk-4RPFRNXG.mjs +62 -0
- package/dist/chunk-4RPFRNXG.mjs.map +1 -0
- package/dist/chunk-56TI2ZBT.mjs +114 -0
- package/dist/chunk-56TI2ZBT.mjs.map +1 -0
- package/dist/chunk-6REEQBJI.mjs +62 -0
- package/dist/chunk-6REEQBJI.mjs.map +1 -0
- package/dist/chunk-AAH2O24U.mjs +325 -0
- package/dist/chunk-AAH2O24U.mjs.map +1 -0
- package/dist/chunk-B7DAB22K.mjs +16 -0
- package/dist/chunk-B7DAB22K.mjs.map +1 -0
- package/dist/chunk-BGB7JHIU.mjs +222 -0
- package/dist/chunk-BGB7JHIU.mjs.map +1 -0
- package/dist/chunk-CRYIEYZZ.mjs +756 -0
- package/dist/chunk-CRYIEYZZ.mjs.map +1 -0
- package/dist/chunk-CWFWRZWU.mjs +23 -0
- package/dist/chunk-CWFWRZWU.mjs.map +1 -0
- package/dist/chunk-DELCADNF.mjs +1926 -0
- package/dist/chunk-DELCADNF.mjs.map +1 -0
- package/dist/chunk-E3I2VDHZ.mjs +292 -0
- package/dist/chunk-E3I2VDHZ.mjs.map +1 -0
- package/dist/chunk-EEH7HACG.mjs +249 -0
- package/dist/chunk-EEH7HACG.mjs.map +1 -0
- package/dist/chunk-EKPULYPU.mjs +497 -0
- package/dist/chunk-EKPULYPU.mjs.map +1 -0
- package/dist/chunk-EW4DTFH3.mjs +69 -0
- package/dist/chunk-EW4DTFH3.mjs.map +1 -0
- package/dist/chunk-FJ6ZGZIA.mjs +43 -0
- package/dist/chunk-FJ6ZGZIA.mjs.map +1 -0
- package/dist/chunk-HE7MY3RT.mjs +23 -0
- package/dist/chunk-HE7MY3RT.mjs.map +1 -0
- package/dist/chunk-HR3A4H4E.mjs +1289 -0
- package/dist/chunk-HR3A4H4E.mjs.map +1 -0
- package/dist/chunk-I5JWS4Z7.mjs +91 -0
- package/dist/chunk-I5JWS4Z7.mjs.map +1 -0
- package/dist/chunk-IN3O4R7Q.mjs +932 -0
- package/dist/chunk-IN3O4R7Q.mjs.map +1 -0
- package/dist/chunk-JIU5GVM7.mjs +414 -0
- package/dist/chunk-JIU5GVM7.mjs.map +1 -0
- package/dist/chunk-JWANK42G.mjs +170 -0
- package/dist/chunk-JWANK42G.mjs.map +1 -0
- package/dist/chunk-MDAUF7IL.mjs +9 -0
- package/dist/chunk-MDAUF7IL.mjs.map +1 -0
- package/dist/chunk-MI64T62E.mjs +26 -0
- package/dist/chunk-MI64T62E.mjs.map +1 -0
- package/dist/chunk-NJYNJLT7.mjs +172 -0
- package/dist/chunk-NJYNJLT7.mjs.map +1 -0
- package/dist/chunk-NLBDBJ3R.mjs +97 -0
- package/dist/chunk-NLBDBJ3R.mjs.map +1 -0
- package/dist/chunk-OGNGPI3M.mjs +333 -0
- package/dist/chunk-OGNGPI3M.mjs.map +1 -0
- package/dist/chunk-OJV6V7YZ.mjs +552 -0
- package/dist/chunk-OJV6V7YZ.mjs.map +1 -0
- package/dist/chunk-ONQMRE2G.mjs +26 -0
- package/dist/chunk-ONQMRE2G.mjs.map +1 -0
- package/dist/chunk-OP6LKXPA.mjs +75 -0
- package/dist/chunk-OP6LKXPA.mjs.map +1 -0
- package/dist/chunk-QFF3HTHL.mjs +14 -0
- package/dist/chunk-QFF3HTHL.mjs.map +1 -0
- package/dist/chunk-QKGCW37O.mjs +1175 -0
- package/dist/chunk-QKGCW37O.mjs.map +1 -0
- package/dist/chunk-R5MKQN6D.mjs +227 -0
- package/dist/chunk-R5MKQN6D.mjs.map +1 -0
- package/dist/chunk-RXBQ7KXF.mjs +652 -0
- package/dist/chunk-RXBQ7KXF.mjs.map +1 -0
- package/dist/chunk-S6EZVRZC.mjs +161 -0
- package/dist/chunk-S6EZVRZC.mjs.map +1 -0
- package/dist/chunk-SGCUDWO3.mjs +396 -0
- package/dist/chunk-SGCUDWO3.mjs.map +1 -0
- package/dist/chunk-SRWPHN2N.mjs +188 -0
- package/dist/chunk-SRWPHN2N.mjs.map +1 -0
- package/dist/chunk-T34IULP5.mjs +242 -0
- package/dist/chunk-T34IULP5.mjs.map +1 -0
- package/dist/chunk-T4X375IG.mjs +100 -0
- package/dist/chunk-T4X375IG.mjs.map +1 -0
- package/dist/chunk-T6AMRENK.mjs +376 -0
- package/dist/chunk-T6AMRENK.mjs.map +1 -0
- package/dist/chunk-TDRA5EZI.mjs +325 -0
- package/dist/chunk-TDRA5EZI.mjs.map +1 -0
- package/dist/chunk-UDREPVEY.mjs +356 -0
- package/dist/chunk-UDREPVEY.mjs.map +1 -0
- package/dist/chunk-UGMRJMFZ.mjs +172 -0
- package/dist/chunk-UGMRJMFZ.mjs.map +1 -0
- package/dist/chunk-UMJ5SCIQ.mjs +438 -0
- package/dist/chunk-UMJ5SCIQ.mjs.map +1 -0
- package/dist/chunk-UTVSYS6S.mjs +270 -0
- package/dist/chunk-UTVSYS6S.mjs.map +1 -0
- package/dist/chunk-V26V2S3W.mjs +197 -0
- package/dist/chunk-V26V2S3W.mjs.map +1 -0
- package/dist/chunk-VYD3PDBB.mjs +38 -0
- package/dist/chunk-VYD3PDBB.mjs.map +1 -0
- package/dist/chunk-WYYP3Y34.mjs +55 -0
- package/dist/chunk-WYYP3Y34.mjs.map +1 -0
- package/dist/chunk-XIMFP6RB.mjs +161 -0
- package/dist/chunk-XIMFP6RB.mjs.map +1 -0
- package/dist/chunk-XJ2SXC2Q.mjs +558 -0
- package/dist/chunk-XJ2SXC2Q.mjs.map +1 -0
- package/dist/chunk-Y74ALKBL.mjs +565 -0
- package/dist/chunk-Y74ALKBL.mjs.map +1 -0
- package/dist/chunk-ZG3NQI77.mjs +353 -0
- package/dist/chunk-ZG3NQI77.mjs.map +1 -0
- package/dist/chunk-ZVFYOXDE.mjs +297 -0
- package/dist/chunk-ZVFYOXDE.mjs.map +1 -0
- package/dist/collapse.d.mts +10 -0
- package/dist/collapse.d.ts +10 -0
- package/dist/collapse.js +53 -0
- package/dist/collapse.js.map +1 -0
- package/dist/collapse.mjs +10 -0
- package/dist/collapse.mjs.map +1 -0
- package/dist/datePicker.d.mts +133 -0
- package/dist/datePicker.d.ts +133 -0
- package/dist/datePicker.js +482 -0
- package/dist/datePicker.js.map +1 -0
- package/dist/datePicker.mjs +29 -0
- package/dist/datePicker.mjs.map +1 -0
- package/dist/displayFile.d.mts +95 -0
- package/dist/displayFile.d.ts +95 -0
- package/dist/displayFile.js +357 -0
- package/dist/displayFile.js.map +1 -0
- package/dist/displayFile.mjs +19 -0
- package/dist/displayFile.mjs.map +1 -0
- package/dist/divider.d.mts +9 -0
- package/dist/divider.d.ts +9 -0
- package/dist/divider.js +52 -0
- package/dist/divider.js.map +1 -0
- package/dist/divider.mjs +10 -0
- package/dist/divider.mjs.map +1 -0
- package/dist/fileUploader.d.mts +86 -0
- package/dist/fileUploader.d.ts +86 -0
- package/dist/fileUploader.js +722 -0
- package/dist/fileUploader.js.map +1 -0
- package/dist/fileUploader.mjs +16 -0
- package/dist/fileUploader.mjs.map +1 -0
- package/dist/flowMap.d.mts +353 -0
- package/dist/flowMap.d.ts +353 -0
- package/dist/flowMap.js +94806 -0
- package/dist/flowMap.js.map +1 -0
- package/dist/flowMap.mjs +94585 -0
- package/dist/flowMap.mjs.map +1 -0
- package/dist/form.d.mts +84 -0
- package/dist/form.d.ts +84 -0
- package/dist/form.js +144 -0
- package/dist/form.js.map +1 -0
- package/dist/form.mjs +24 -0
- package/dist/form.mjs.map +1 -0
- package/dist/icons.d.mts +160 -0
- package/dist/icons.d.ts +160 -0
- package/dist/icons.js +540 -0
- package/dist/icons.js.map +1 -0
- package/dist/icons.mjs +306 -0
- package/dist/icons.mjs.map +1 -0
- package/dist/image.d.mts +49 -0
- package/dist/image.d.ts +49 -0
- package/dist/image.js +1348 -0
- package/dist/image.js.map +1 -0
- package/dist/image.mjs +19 -0
- package/dist/image.mjs.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.js +20198 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +912 -0
- package/dist/index.mjs.map +1 -0
- package/dist/input.d.mts +195 -0
- package/dist/input.d.ts +195 -0
- package/dist/input.js +1101 -0
- package/dist/input.js.map +1 -0
- package/dist/input.mjs +32 -0
- package/dist/input.mjs.map +1 -0
- package/dist/jsonEditor.d.mts +13 -0
- package/dist/jsonEditor.d.ts +13 -0
- package/dist/jsonEditor.js +247 -0
- package/dist/jsonEditor.js.map +1 -0
- package/dist/jsonEditor.mjs +9 -0
- package/dist/jsonEditor.mjs.map +1 -0
- package/dist/list.d.mts +83 -0
- package/dist/list.d.ts +83 -0
- package/dist/list.js +564 -0
- package/dist/list.js.map +1 -0
- package/dist/list.mjs +39 -0
- package/dist/list.mjs.map +1 -0
- package/dist/loading.d.mts +48 -0
- package/dist/loading.d.ts +48 -0
- package/dist/loading.js +383 -0
- package/dist/loading.js.map +1 -0
- package/dist/loading.mjs +23 -0
- package/dist/loading.mjs.map +1 -0
- package/dist/markdown.d.mts +14 -0
- package/dist/markdown.d.ts +14 -0
- package/dist/markdown.js +25927 -0
- package/dist/markdown.js.map +1 -0
- package/dist/markdown.mjs +25623 -0
- package/dist/markdown.mjs.map +1 -0
- package/dist/menu.d.mts +368 -0
- package/dist/menu.d.ts +368 -0
- package/dist/menu.js +1571 -0
- package/dist/menu.js.map +1 -0
- package/dist/menu.mjs +43 -0
- package/dist/menu.mjs.map +1 -0
- package/dist/modal.d.mts +90 -0
- package/dist/modal.d.ts +90 -0
- package/dist/modal.js +883 -0
- package/dist/modal.js.map +1 -0
- package/dist/modal.mjs +25 -0
- package/dist/modal.mjs.map +1 -0
- package/dist/overlay.d.mts +2 -0
- package/dist/overlay.d.ts +2 -0
- package/dist/overlay.js +46 -0
- package/dist/overlay.js.map +1 -0
- package/dist/overlay.mjs +10 -0
- package/dist/overlay.mjs.map +1 -0
- package/dist/paper.d.mts +38 -0
- package/dist/paper.d.ts +38 -0
- package/dist/paper.js +90 -0
- package/dist/paper.js.map +1 -0
- package/dist/paper.mjs +12 -0
- package/dist/paper.mjs.map +1 -0
- package/dist/patterns.d.mts +133 -0
- package/dist/patterns.d.ts +133 -0
- package/dist/patterns.js +483 -0
- package/dist/patterns.js.map +1 -0
- package/dist/patterns.mjs +46 -0
- package/dist/patterns.mjs.map +1 -0
- package/dist/process.d.mts +125 -0
- package/dist/process.d.ts +125 -0
- package/dist/process.js +1471 -0
- package/dist/process.js.map +1 -0
- package/dist/process.mjs +30 -0
- package/dist/process.mjs.map +1 -0
- package/dist/progress.d.mts +44 -0
- package/dist/progress.d.ts +44 -0
- package/dist/progress.js +94 -0
- package/dist/progress.js.map +1 -0
- package/dist/progress.mjs +14 -0
- package/dist/progress.mjs.map +1 -0
- package/dist/resizablePanel.d.mts +297 -0
- package/dist/resizablePanel.d.ts +297 -0
- package/dist/resizablePanel.js +122 -0
- package/dist/resizablePanel.js.map +1 -0
- package/dist/resizablePanel.mjs +22 -0
- package/dist/resizablePanel.mjs.map +1 -0
- package/dist/scrollToLoad.d.mts +41 -0
- package/dist/scrollToLoad.d.ts +41 -0
- package/dist/scrollToLoad.js +256 -0
- package/dist/scrollToLoad.js.map +1 -0
- package/dist/scrollToLoad.mjs +16 -0
- package/dist/scrollToLoad.mjs.map +1 -0
- package/dist/select.d.mts +50 -0
- package/dist/select.d.ts +50 -0
- package/dist/select.js +426 -0
- package/dist/select.js.map +1 -0
- package/dist/select.mjs +24 -0
- package/dist/select.mjs.map +1 -0
- package/dist/skeleton.d.mts +13 -0
- package/dist/skeleton.d.ts +13 -0
- package/dist/skeleton.js +68 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/skeleton.mjs +11 -0
- package/dist/skeleton.mjs.map +1 -0
- package/dist/slider.d.mts +65 -0
- package/dist/slider.d.ts +65 -0
- package/dist/slider.js +106 -0
- package/dist/slider.js.map +1 -0
- package/dist/slider.mjs +10 -0
- package/dist/slider.mjs.map +1 -0
- package/dist/stepper.d.mts +98 -0
- package/dist/stepper.d.ts +98 -0
- package/dist/stepper.js +313 -0
- package/dist/stepper.js.map +1 -0
- package/dist/stepper.mjs +38 -0
- package/dist/stepper.mjs.map +1 -0
- package/dist/switch.d.mts +151 -0
- package/dist/switch.d.ts +151 -0
- package/dist/switch.js +289 -0
- package/dist/switch.js.map +1 -0
- package/dist/switch.mjs +17 -0
- package/dist/switch.mjs.map +1 -0
- package/dist/tab.d.mts +182 -0
- package/dist/tab.d.ts +182 -0
- package/dist/tab.js +1418 -0
- package/dist/tab.js.map +1 -0
- package/dist/tab.mjs +34 -0
- package/dist/tab.mjs.map +1 -0
- package/dist/table.d.mts +720 -0
- package/dist/table.d.ts +720 -0
- package/dist/table.js +10882 -0
- package/dist/table.js.map +1 -0
- package/dist/table.mjs +63 -0
- package/dist/table.mjs.map +1 -0
- package/dist/theme.d.mts +30 -4
- package/dist/theme.d.ts +30 -4
- package/dist/theme.js +3210 -170
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +52 -230
- package/dist/theme.mjs.map +1 -1
- package/dist/timeline.d.mts +30 -0
- package/dist/timeline.d.ts +30 -0
- package/dist/timeline.js +273 -0
- package/dist/timeline.js.map +1 -0
- package/dist/timeline.mjs +14 -0
- package/dist/timeline.mjs.map +1 -0
- package/dist/toggleButtonGroup.d.mts +125 -0
- package/dist/toggleButtonGroup.d.ts +125 -0
- package/dist/toggleButtonGroup.js +190 -0
- package/dist/toggleButtonGroup.js.map +1 -0
- package/dist/toggleButtonGroup.mjs +15 -0
- package/dist/toggleButtonGroup.mjs.map +1 -0
- package/dist/tooltip.d.mts +13 -0
- package/dist/tooltip.d.ts +13 -0
- package/dist/tooltip.js +56 -0
- package/dist/tooltip.js.map +1 -0
- package/dist/tooltip.mjs +10 -0
- package/dist/tooltip.mjs.map +1 -0
- package/dist/typography.d.mts +21 -23
- package/dist/typography.d.ts +21 -23
- package/dist/typography.js +37 -63
- package/dist/typography.js.map +1 -1
- package/dist/typography.mjs +2 -1
- package/dist/useForm.d.mts +588 -0
- package/dist/useForm.d.ts +588 -0
- package/dist/useForm.js +8743 -0
- package/dist/useForm.js.map +1 -0
- package/dist/useForm.mjs +45 -0
- package/dist/useForm.mjs.map +1 -0
- package/dist/useSearch.d.mts +126 -0
- package/dist/useSearch.d.ts +126 -0
- package/dist/useSearch.js +1125 -0
- package/dist/useSearch.js.map +1 -0
- package/dist/useSearch.mjs +42 -0
- package/dist/useSearch.mjs.map +1 -0
- package/dist/variablesRenderer.d.mts +45 -0
- package/dist/variablesRenderer.d.ts +45 -0
- package/dist/variablesRenderer.js +511 -0
- package/dist/variablesRenderer.js.map +1 -0
- package/dist/variablesRenderer.mjs +21 -0
- package/dist/variablesRenderer.mjs.map +1 -0
- package/package.json +109 -15
- package/dist/chunk-PKADXEAD.mjs +0 -116
- package/dist/chunk-PKADXEAD.mjs.map +0 -1
- package/dist/chunk-YGBJCPUS.mjs +0 -88
- package/dist/chunk-YGBJCPUS.mjs.map +0 -1
- package/dist/theme.css +0 -44
- package/dist/theme.css.map +0 -1
|
@@ -0,0 +1,2052 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __esm = (fn, res) => function __init() {
|
|
9
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
|
+
};
|
|
11
|
+
var __export = (target, all) => {
|
|
12
|
+
for (var name in all)
|
|
13
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
|
+
|
|
33
|
+
// src/_utils/_func/array.ts
|
|
34
|
+
function sortByCondi(array, key, condition, reverse = false) {
|
|
35
|
+
const anchor = reverse ? -1 : 1;
|
|
36
|
+
const sorted = [...array];
|
|
37
|
+
sorted.sort((a, b) => {
|
|
38
|
+
if (condition(a[key], b[key])) {
|
|
39
|
+
return -anchor;
|
|
40
|
+
} else {
|
|
41
|
+
return anchor;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return sorted;
|
|
45
|
+
}
|
|
46
|
+
function sortByKey(array, key, reverse = false) {
|
|
47
|
+
const condi = (a, b) => {
|
|
48
|
+
return a < b;
|
|
49
|
+
};
|
|
50
|
+
const sorted = sortByCondi(array, key, condi, reverse);
|
|
51
|
+
return sorted;
|
|
52
|
+
}
|
|
53
|
+
var init_array = __esm({
|
|
54
|
+
"src/_utils/_func/array.ts"() {
|
|
55
|
+
"use strict";
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// src/_utils/_func/random.ts
|
|
60
|
+
function randomStrGenerator(length = 20) {
|
|
61
|
+
let result = "";
|
|
62
|
+
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
63
|
+
for (let i = 0; i < length; i++) {
|
|
64
|
+
result += characters.charAt(Math.floor(Math.random() * characters.length));
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
var init_random = __esm({
|
|
69
|
+
"src/_utils/_func/random.ts"() {
|
|
70
|
+
"use strict";
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// src/_utils/_func/sx.ts
|
|
75
|
+
function flattenSx(part) {
|
|
76
|
+
if (part == null || typeof part === "boolean") {
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
if (Array.isArray(part)) {
|
|
80
|
+
return part.flatMap(flattenSx);
|
|
81
|
+
}
|
|
82
|
+
if (typeof part === "function" || typeof part === "object") {
|
|
83
|
+
return [part];
|
|
84
|
+
}
|
|
85
|
+
return [];
|
|
86
|
+
}
|
|
87
|
+
function mergeSx(...parts) {
|
|
88
|
+
const list = parts.flatMap(flattenSx);
|
|
89
|
+
if (list.length === 0) {
|
|
90
|
+
return void 0;
|
|
91
|
+
}
|
|
92
|
+
if (list.length === 1) {
|
|
93
|
+
return list[0];
|
|
94
|
+
}
|
|
95
|
+
return list;
|
|
96
|
+
}
|
|
97
|
+
var init_sx = __esm({
|
|
98
|
+
"src/_utils/_func/sx.ts"() {
|
|
99
|
+
"use strict";
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
// src/_utils/_func/index.ts
|
|
104
|
+
var init_func = __esm({
|
|
105
|
+
"src/_utils/_func/index.ts"() {
|
|
106
|
+
"use strict";
|
|
107
|
+
init_array();
|
|
108
|
+
init_random();
|
|
109
|
+
init_sx();
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
// src/components/elemental/Box/src/BorderBox/index.ts
|
|
114
|
+
var init_BorderBox = __esm({
|
|
115
|
+
"src/components/elemental/Box/src/BorderBox/index.ts"() {
|
|
116
|
+
"use strict";
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// src/components/elemental/Box/src/index.ts
|
|
121
|
+
var import_Box, import_Stack, import_Grid;
|
|
122
|
+
var init_src = __esm({
|
|
123
|
+
"src/components/elemental/Box/src/index.ts"() {
|
|
124
|
+
"use strict";
|
|
125
|
+
init_BorderBox();
|
|
126
|
+
import_Box = __toESM(require("@mui/material/Box"));
|
|
127
|
+
import_Stack = __toESM(require("@mui/material/Stack"));
|
|
128
|
+
import_Grid = __toESM(require("@mui/material/Grid"));
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
// src/components/elemental/Box/index.ts
|
|
133
|
+
var init_Box = __esm({
|
|
134
|
+
"src/components/elemental/Box/index.ts"() {
|
|
135
|
+
"use strict";
|
|
136
|
+
init_src();
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
// src/components/elemental/Typography/src/Typography.ts
|
|
141
|
+
var import_Typography;
|
|
142
|
+
var init_Typography = __esm({
|
|
143
|
+
"src/components/elemental/Typography/src/Typography.ts"() {
|
|
144
|
+
"use strict";
|
|
145
|
+
import_Typography = __toESM(require("@mui/material/Typography"));
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
// src/components/elemental/Typography/src/Variants.tsx
|
|
150
|
+
var import_Typography2, import_jsx_runtime;
|
|
151
|
+
var init_Variants = __esm({
|
|
152
|
+
"src/components/elemental/Typography/src/Variants.tsx"() {
|
|
153
|
+
"use strict";
|
|
154
|
+
import_Typography2 = __toESM(require("@mui/material/Typography"));
|
|
155
|
+
import_jsx_runtime = require("react/jsx-runtime");
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
// src/components/elemental/Typography/src/theme.ts
|
|
160
|
+
var init_theme = __esm({
|
|
161
|
+
"src/components/elemental/Typography/src/theme.ts"() {
|
|
162
|
+
"use strict";
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
// src/components/elemental/Typography/src/index.ts
|
|
167
|
+
var init_src2 = __esm({
|
|
168
|
+
"src/components/elemental/Typography/src/index.ts"() {
|
|
169
|
+
"use strict";
|
|
170
|
+
init_Typography();
|
|
171
|
+
init_Variants();
|
|
172
|
+
init_theme();
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
// src/components/elemental/Typography/index.ts
|
|
177
|
+
var init_Typography2 = __esm({
|
|
178
|
+
"src/components/elemental/Typography/index.ts"() {
|
|
179
|
+
"use strict";
|
|
180
|
+
init_src2();
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
// src/components/elemental/Button/src/Button/Button.tsx
|
|
185
|
+
function Button(p) {
|
|
186
|
+
const { children, slotProps, ...rest } = p;
|
|
187
|
+
const { sx, ...boxRest } = slotProps?.innerBox ?? {};
|
|
188
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_Button.default, { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
189
|
+
import_Box.default,
|
|
190
|
+
{
|
|
191
|
+
...boxRest,
|
|
192
|
+
sx: mergeSx(
|
|
193
|
+
{
|
|
194
|
+
textOverflow: "ellipsis",
|
|
195
|
+
overflow: "hidden",
|
|
196
|
+
whiteSpace: "pre"
|
|
197
|
+
},
|
|
198
|
+
sx
|
|
199
|
+
),
|
|
200
|
+
children
|
|
201
|
+
}
|
|
202
|
+
) });
|
|
203
|
+
}
|
|
204
|
+
var import_Button, import_jsx_runtime2;
|
|
205
|
+
var init_Button = __esm({
|
|
206
|
+
"src/components/elemental/Button/src/Button/Button.tsx"() {
|
|
207
|
+
"use strict";
|
|
208
|
+
import_Button = __toESM(require("@mui/material/Button"));
|
|
209
|
+
init_Box();
|
|
210
|
+
init_func();
|
|
211
|
+
import_jsx_runtime2 = require("react/jsx-runtime");
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
// src/components/elemental/Button/src/Button/themes.ts
|
|
216
|
+
var init_themes = __esm({
|
|
217
|
+
"src/components/elemental/Button/src/Button/themes.ts"() {
|
|
218
|
+
"use strict";
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
// src/components/elemental/Button/src/Button/index.ts
|
|
223
|
+
var init_Button2 = __esm({
|
|
224
|
+
"src/components/elemental/Button/src/Button/index.ts"() {
|
|
225
|
+
"use strict";
|
|
226
|
+
init_Button();
|
|
227
|
+
init_themes();
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
// src/components/elemental/Tooltip/src/Tooltip/theme.tsx
|
|
232
|
+
var init_theme2 = __esm({
|
|
233
|
+
"src/components/elemental/Tooltip/src/Tooltip/theme.tsx"() {
|
|
234
|
+
"use strict";
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
|
|
238
|
+
// src/components/elemental/Tooltip/src/Tooltip/index.ts
|
|
239
|
+
var import_Tooltip;
|
|
240
|
+
var init_Tooltip = __esm({
|
|
241
|
+
"src/components/elemental/Tooltip/src/Tooltip/index.ts"() {
|
|
242
|
+
"use strict";
|
|
243
|
+
import_Tooltip = __toESM(require("@mui/material/Tooltip"));
|
|
244
|
+
init_theme2();
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
// src/components/elemental/Tooltip/src/index.ts
|
|
249
|
+
var init_src3 = __esm({
|
|
250
|
+
"src/components/elemental/Tooltip/src/index.ts"() {
|
|
251
|
+
"use strict";
|
|
252
|
+
init_Tooltip();
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
// src/components/elemental/Tooltip/index.ts
|
|
257
|
+
var init_Tooltip2 = __esm({
|
|
258
|
+
"src/components/elemental/Tooltip/index.ts"() {
|
|
259
|
+
"use strict";
|
|
260
|
+
init_src3();
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
// src/components/elemental/Button/src/IconButton/IconButton.tsx
|
|
265
|
+
var import_react, import_IconButton, import_jsx_runtime3, IconButton, IconButton_default;
|
|
266
|
+
var init_IconButton = __esm({
|
|
267
|
+
"src/components/elemental/Button/src/IconButton/IconButton.tsx"() {
|
|
268
|
+
"use strict";
|
|
269
|
+
"use client";
|
|
270
|
+
import_react = require("react");
|
|
271
|
+
import_IconButton = __toESM(require("@mui/material/IconButton"));
|
|
272
|
+
init_Tooltip2();
|
|
273
|
+
init_Box();
|
|
274
|
+
import_jsx_runtime3 = require("react/jsx-runtime");
|
|
275
|
+
IconButton = (0, import_react.forwardRef)(({
|
|
276
|
+
title = "",
|
|
277
|
+
children,
|
|
278
|
+
color,
|
|
279
|
+
size,
|
|
280
|
+
slotProps,
|
|
281
|
+
selected,
|
|
282
|
+
className,
|
|
283
|
+
...props
|
|
284
|
+
}, ref) => {
|
|
285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
286
|
+
import_Tooltip.default,
|
|
287
|
+
{
|
|
288
|
+
title,
|
|
289
|
+
slotProps: {
|
|
290
|
+
popper: {
|
|
291
|
+
sx: {
|
|
292
|
+
textTransform: "capitalize"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
...slotProps?.tooltip
|
|
296
|
+
},
|
|
297
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_Box.default, { component: "span", sx: { width: "fit-content" }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
298
|
+
import_IconButton.default,
|
|
299
|
+
{
|
|
300
|
+
ref,
|
|
301
|
+
color,
|
|
302
|
+
size,
|
|
303
|
+
className: [className, selected ? "Mui-selected" : ""].filter(Boolean).join(" "),
|
|
304
|
+
...props,
|
|
305
|
+
children
|
|
306
|
+
}
|
|
307
|
+
) })
|
|
308
|
+
}
|
|
309
|
+
);
|
|
310
|
+
});
|
|
311
|
+
IconButton_default = IconButton;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
// src/components/elemental/Button/src/IconButton/theme.ts
|
|
316
|
+
var init_theme3 = __esm({
|
|
317
|
+
"src/components/elemental/Button/src/IconButton/theme.ts"() {
|
|
318
|
+
"use strict";
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
// src/components/elemental/Button/src/IconButton/index.ts
|
|
323
|
+
var init_IconButton2 = __esm({
|
|
324
|
+
"src/components/elemental/Button/src/IconButton/index.ts"() {
|
|
325
|
+
"use strict";
|
|
326
|
+
init_IconButton();
|
|
327
|
+
init_theme3();
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
// src/components/elemental/Chip/src/Chip/Chip.tsx
|
|
332
|
+
function Chip({ color = "default", ...props }) {
|
|
333
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_Chip.default, { ...props, color });
|
|
334
|
+
}
|
|
335
|
+
var import_Chip, import_jsx_runtime4;
|
|
336
|
+
var init_Chip = __esm({
|
|
337
|
+
"src/components/elemental/Chip/src/Chip/Chip.tsx"() {
|
|
338
|
+
"use strict";
|
|
339
|
+
import_Chip = __toESM(require("@mui/material/Chip"));
|
|
340
|
+
import_jsx_runtime4 = require("react/jsx-runtime");
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
|
|
344
|
+
// src/components/elemental/Chip/src/Chip/themes.ts
|
|
345
|
+
var init_themes2 = __esm({
|
|
346
|
+
"src/components/elemental/Chip/src/Chip/themes.ts"() {
|
|
347
|
+
"use strict";
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
// src/components/elemental/Chip/src/Chip/index.ts
|
|
352
|
+
var init_Chip2 = __esm({
|
|
353
|
+
"src/components/elemental/Chip/src/Chip/index.ts"() {
|
|
354
|
+
"use strict";
|
|
355
|
+
init_Chip();
|
|
356
|
+
init_themes2();
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
// src/components/elemental/Chip/src/index.ts
|
|
361
|
+
var init_src4 = __esm({
|
|
362
|
+
"src/components/elemental/Chip/src/index.ts"() {
|
|
363
|
+
"use strict";
|
|
364
|
+
init_Chip2();
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
// src/components/elemental/Chip/index.ts
|
|
369
|
+
var init_Chip3 = __esm({
|
|
370
|
+
"src/components/elemental/Chip/index.ts"() {
|
|
371
|
+
"use strict";
|
|
372
|
+
init_src4();
|
|
373
|
+
}
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
// src/components/elemental/Button/src/TagButton/theme.ts
|
|
377
|
+
var tagButtonVars;
|
|
378
|
+
var init_theme4 = __esm({
|
|
379
|
+
"src/components/elemental/Button/src/TagButton/theme.ts"() {
|
|
380
|
+
"use strict";
|
|
381
|
+
tagButtonVars = {
|
|
382
|
+
"--tag-color": "var(--mui-palette-text-grey-1)",
|
|
383
|
+
"--tag-bg": "var(--mui-palette-background-grey-1)",
|
|
384
|
+
"--tag-bg-hover": "var(--mui-palette-focus-soft-1)"
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
// src/components/elemental/Button/src/TagButton/TagButton.tsx
|
|
390
|
+
var import_styles, TagButton, TagButton_default;
|
|
391
|
+
var init_TagButton = __esm({
|
|
392
|
+
"src/components/elemental/Button/src/TagButton/TagButton.tsx"() {
|
|
393
|
+
"use strict";
|
|
394
|
+
"use client";
|
|
395
|
+
init_Chip3();
|
|
396
|
+
import_styles = require("@mui/material/styles");
|
|
397
|
+
init_theme4();
|
|
398
|
+
TagButton = (0, import_styles.styled)(Chip, {})(() => ({
|
|
399
|
+
...tagButtonVars,
|
|
400
|
+
"&.MuiChip-root": {
|
|
401
|
+
maxWidth: "fit-content",
|
|
402
|
+
textTransform: "lowercase",
|
|
403
|
+
color: "var(--tag-color)",
|
|
404
|
+
fontStyle: "italic",
|
|
405
|
+
padding: "2px 4px",
|
|
406
|
+
border: "none",
|
|
407
|
+
borderRadius: "var(--mui-shape-borderRadius)",
|
|
408
|
+
// use theme shape token
|
|
409
|
+
fontSize: "12px",
|
|
410
|
+
lineHeight: "16px",
|
|
411
|
+
height: "auto",
|
|
412
|
+
width: "auto",
|
|
413
|
+
boxShadow: "none",
|
|
414
|
+
gap: "2px",
|
|
415
|
+
background: "var(--tag-bg)",
|
|
416
|
+
transition: "none",
|
|
417
|
+
borderWidth: "0px",
|
|
418
|
+
"&.MuiChip-clickable:hover": {
|
|
419
|
+
background: "var(--tag-bg-hover)",
|
|
420
|
+
boxShadow: "none"
|
|
421
|
+
},
|
|
422
|
+
"& .MuiChip-icon": {
|
|
423
|
+
color: "var(--tag-color)",
|
|
424
|
+
fontSize: "1rem",
|
|
425
|
+
margin: "0",
|
|
426
|
+
padding: "0"
|
|
427
|
+
},
|
|
428
|
+
"& .MuiChip-label": {
|
|
429
|
+
padding: "0 1px",
|
|
430
|
+
margin: "0",
|
|
431
|
+
marginRight: "4px"
|
|
432
|
+
},
|
|
433
|
+
"& .MuiChip-deleteIcon": {
|
|
434
|
+
fontSize: "1rem",
|
|
435
|
+
borderRadius: "50%",
|
|
436
|
+
color: "var(--tag-color)",
|
|
437
|
+
margin: "0"
|
|
438
|
+
},
|
|
439
|
+
"& .MuiSvgIcon-root": {
|
|
440
|
+
fontSize: "1em"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}));
|
|
444
|
+
TagButton_default = TagButton;
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
// src/components/elemental/Button/src/TagButton/index.ts
|
|
449
|
+
var init_TagButton2 = __esm({
|
|
450
|
+
"src/components/elemental/Button/src/TagButton/index.ts"() {
|
|
451
|
+
"use strict";
|
|
452
|
+
init_TagButton();
|
|
453
|
+
}
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
// src/components/elemental/Button/src/index.ts
|
|
457
|
+
var init_src5 = __esm({
|
|
458
|
+
"src/components/elemental/Button/src/index.ts"() {
|
|
459
|
+
"use strict";
|
|
460
|
+
init_Button2();
|
|
461
|
+
init_IconButton2();
|
|
462
|
+
init_TagButton2();
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
|
|
466
|
+
// src/components/elemental/Button/index.ts
|
|
467
|
+
var init_Button3 = __esm({
|
|
468
|
+
"src/components/elemental/Button/index.ts"() {
|
|
469
|
+
"use strict";
|
|
470
|
+
init_src5();
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
// src/components/elemental/Overlay/src/index.ts
|
|
475
|
+
var import_ClickAwayListener, import_Popper;
|
|
476
|
+
var init_src6 = __esm({
|
|
477
|
+
"src/components/elemental/Overlay/src/index.ts"() {
|
|
478
|
+
"use strict";
|
|
479
|
+
import_ClickAwayListener = __toESM(require("@mui/material/ClickAwayListener"));
|
|
480
|
+
import_Popper = __toESM(require("@mui/material/Popper"));
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
// src/components/elemental/Overlay/index.ts
|
|
485
|
+
var init_Overlay = __esm({
|
|
486
|
+
"src/components/elemental/Overlay/index.ts"() {
|
|
487
|
+
"use strict";
|
|
488
|
+
init_src6();
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
// src/components/Icons/MuiIcon/index.ts
|
|
493
|
+
var import_ArrowRightAlt, import_DescriptionOutlined, import_Description, import_PictureAsPdf, import_AudioFile, import_VideoFile, import_TableChart, import_FolderZip, import_InsertDriveFile, import_ImageOutlined, import_LayersOutlined, import_TextFormat, import_Remove, import_PostAdd, import_ErrorOutline, import_QuestionMarkOutlined, import_MeetingRoomOutlined, import_PlaylistRemove, import_ChecklistRtl, import_HideImageOutlined, import_RemoveRedEyeTwoTone, import_PhotoSizeSelectLarge, import_LockPersonOutlined, import_Person, import_InsertEmoticon, import_RemoveDoneOutlined, import_Tag, import_Audiotrack, import_Videocam, import_Code, import_Equalizer, import_PivotTableChart, import_Search, import_DataObject, import_SortByAlpha, import_ThumbUp, import_AttachMoneyOutlined, import_Storage, import_WorkspacePremium, import_Numbers, import_Functions, import_Lightbulb, import_CropRotate, import_PhotoSizeSelectLarge2, import_CollectionsBookmark, import_Schedule, import_Style, import_Crop169, import_CropSquare, import_GraphicEqRounded, import_MemoryRounded, import_AddCircleOutlineRounded, import_Add, import_Close, import_ExpandMore, import_Autorenew, import_CheckCircle, import_Menu, import_MoreVert, import_MoreHoriz, import_ContentCopy, import_ContentPaste, import_Cloud, import_DownloadOutlined, import_DownloadDoneOutlined, import_StarBorderOutlined, import_DeleteForever, import_LayersClear, import_Check, import_DoneAll, import_PowerSettingsNew, import_Send, import_ZoomInMap, import_ZoomOutMap, import_HomeRepairService, import_Construction, import_Help, import_EmojiFlags, import_Edit, import_ForkRight, import_Settings, import_Restore, import_EditNote, import_HomeOutlined, import_ExitToAppOutlined, import_WbSunnyOutlined, import_DarkModeOutlined, import_AttachFileOutlined, import_NoteAdd, import_CloudUpload, import_KeyboardDoubleArrowRight, import_KeyboardDoubleArrowLeft, import_KeyboardDoubleArrowRightRounded, import_FitScreen, import_Fullscreen, import_Biotech, import_Share, import_FilterAlt, import_Sync, import_PlayArrow, import_PauseOutlined, import_Casino, import_Paid, import_Save, import_StopRounded, import_Replay, import_AccountTree, import_Close2, import_KeyboardArrowDown, import_KeyboardArrowRight, import_SearchRounded, import_CloseRounded, import_SortByAlphaRounded, import_FilterAltOutlined, import_InboxOutlined, import_SearchOff, import_ClearRounded, import_ArrowDropDownRounded, import_AccountBox, import_Logout, import_Login, import_Dashboard, import_AccountTreeOutlined, import_HelpOutline, import_NavigateBefore, import_NavigateNext, import_Person2, import_CalendarToday, import_QuestionAnswerOutlined, import_Today, import_DeleteForever2, import_AdsClick, import_Fingerprint, import_SportsEsportsOutlined, import_HelpOutlineRounded, import_AccountTreeOutlined2, import_SmartToyOutlined, import_AcUnit, import_Loop, import_Pending, import_AllInclusive, import_WarningOutlined, import_InfoOutlined, import_AutoAwesomeRounded, import_ErrorOutlineOutlined, import_Download;
|
|
494
|
+
var init_MuiIcon = __esm({
|
|
495
|
+
"src/components/Icons/MuiIcon/index.ts"() {
|
|
496
|
+
"use strict";
|
|
497
|
+
import_ArrowRightAlt = __toESM(require("@mui/icons-material/ArrowRightAlt"));
|
|
498
|
+
import_DescriptionOutlined = __toESM(require("@mui/icons-material/DescriptionOutlined"));
|
|
499
|
+
import_Description = __toESM(require("@mui/icons-material/Description"));
|
|
500
|
+
import_PictureAsPdf = __toESM(require("@mui/icons-material/PictureAsPdf"));
|
|
501
|
+
import_AudioFile = __toESM(require("@mui/icons-material/AudioFile"));
|
|
502
|
+
import_VideoFile = __toESM(require("@mui/icons-material/VideoFile"));
|
|
503
|
+
import_TableChart = __toESM(require("@mui/icons-material/TableChart"));
|
|
504
|
+
import_FolderZip = __toESM(require("@mui/icons-material/FolderZip"));
|
|
505
|
+
import_InsertDriveFile = __toESM(require("@mui/icons-material/InsertDriveFile"));
|
|
506
|
+
import_ImageOutlined = __toESM(require("@mui/icons-material/ImageOutlined"));
|
|
507
|
+
import_LayersOutlined = __toESM(require("@mui/icons-material/LayersOutlined"));
|
|
508
|
+
import_TextFormat = __toESM(require("@mui/icons-material/TextFormat"));
|
|
509
|
+
import_Remove = __toESM(require("@mui/icons-material/Remove"));
|
|
510
|
+
import_PostAdd = __toESM(require("@mui/icons-material/PostAdd"));
|
|
511
|
+
import_ErrorOutline = __toESM(require("@mui/icons-material/ErrorOutline"));
|
|
512
|
+
import_QuestionMarkOutlined = __toESM(require("@mui/icons-material/QuestionMarkOutlined"));
|
|
513
|
+
import_MeetingRoomOutlined = __toESM(require("@mui/icons-material/MeetingRoomOutlined"));
|
|
514
|
+
import_PlaylistRemove = __toESM(require("@mui/icons-material/PlaylistRemove"));
|
|
515
|
+
import_ChecklistRtl = __toESM(require("@mui/icons-material/ChecklistRtl"));
|
|
516
|
+
import_HideImageOutlined = __toESM(require("@mui/icons-material/HideImageOutlined"));
|
|
517
|
+
import_RemoveRedEyeTwoTone = __toESM(require("@mui/icons-material/RemoveRedEyeTwoTone"));
|
|
518
|
+
import_PhotoSizeSelectLarge = __toESM(require("@mui/icons-material/PhotoSizeSelectLarge"));
|
|
519
|
+
import_LockPersonOutlined = __toESM(require("@mui/icons-material/LockPersonOutlined"));
|
|
520
|
+
import_Person = __toESM(require("@mui/icons-material/Person"));
|
|
521
|
+
import_InsertEmoticon = __toESM(require("@mui/icons-material/InsertEmoticon"));
|
|
522
|
+
import_RemoveDoneOutlined = __toESM(require("@mui/icons-material/RemoveDoneOutlined"));
|
|
523
|
+
import_Tag = __toESM(require("@mui/icons-material/Tag"));
|
|
524
|
+
import_Audiotrack = __toESM(require("@mui/icons-material/Audiotrack"));
|
|
525
|
+
import_Videocam = __toESM(require("@mui/icons-material/Videocam"));
|
|
526
|
+
import_Code = __toESM(require("@mui/icons-material/Code"));
|
|
527
|
+
import_Equalizer = __toESM(require("@mui/icons-material/Equalizer"));
|
|
528
|
+
import_PivotTableChart = __toESM(require("@mui/icons-material/PivotTableChart"));
|
|
529
|
+
import_Search = __toESM(require("@mui/icons-material/Search"));
|
|
530
|
+
import_DataObject = __toESM(require("@mui/icons-material/DataObject"));
|
|
531
|
+
import_SortByAlpha = __toESM(require("@mui/icons-material/SortByAlpha"));
|
|
532
|
+
import_ThumbUp = __toESM(require("@mui/icons-material/ThumbUp"));
|
|
533
|
+
import_AttachMoneyOutlined = __toESM(require("@mui/icons-material/AttachMoneyOutlined"));
|
|
534
|
+
import_Storage = __toESM(require("@mui/icons-material/Storage"));
|
|
535
|
+
import_WorkspacePremium = __toESM(require("@mui/icons-material/WorkspacePremium"));
|
|
536
|
+
import_Numbers = __toESM(require("@mui/icons-material/Numbers"));
|
|
537
|
+
import_Functions = __toESM(require("@mui/icons-material/Functions"));
|
|
538
|
+
import_Lightbulb = __toESM(require("@mui/icons-material/Lightbulb"));
|
|
539
|
+
import_CropRotate = __toESM(require("@mui/icons-material/CropRotate"));
|
|
540
|
+
import_PhotoSizeSelectLarge2 = __toESM(require("@mui/icons-material/PhotoSizeSelectLarge"));
|
|
541
|
+
import_CollectionsBookmark = __toESM(require("@mui/icons-material/CollectionsBookmark"));
|
|
542
|
+
import_Schedule = __toESM(require("@mui/icons-material/Schedule"));
|
|
543
|
+
import_Style = __toESM(require("@mui/icons-material/Style"));
|
|
544
|
+
import_Crop169 = __toESM(require("@mui/icons-material/Crop169"));
|
|
545
|
+
import_CropSquare = __toESM(require("@mui/icons-material/CropSquare"));
|
|
546
|
+
import_GraphicEqRounded = __toESM(require("@mui/icons-material/GraphicEqRounded"));
|
|
547
|
+
import_MemoryRounded = __toESM(require("@mui/icons-material/MemoryRounded"));
|
|
548
|
+
import_AddCircleOutlineRounded = __toESM(require("@mui/icons-material/AddCircleOutlineRounded"));
|
|
549
|
+
import_Add = __toESM(require("@mui/icons-material/Add"));
|
|
550
|
+
import_Close = __toESM(require("@mui/icons-material/Close"));
|
|
551
|
+
import_ExpandMore = __toESM(require("@mui/icons-material/ExpandMore"));
|
|
552
|
+
import_Autorenew = __toESM(require("@mui/icons-material/Autorenew"));
|
|
553
|
+
import_CheckCircle = __toESM(require("@mui/icons-material/CheckCircle"));
|
|
554
|
+
import_Menu = __toESM(require("@mui/icons-material/Menu"));
|
|
555
|
+
import_MoreVert = __toESM(require("@mui/icons-material/MoreVert"));
|
|
556
|
+
import_MoreHoriz = __toESM(require("@mui/icons-material/MoreHoriz"));
|
|
557
|
+
import_ContentCopy = __toESM(require("@mui/icons-material/ContentCopy"));
|
|
558
|
+
import_ContentPaste = __toESM(require("@mui/icons-material/ContentPaste"));
|
|
559
|
+
import_Cloud = __toESM(require("@mui/icons-material/Cloud"));
|
|
560
|
+
import_DownloadOutlined = __toESM(require("@mui/icons-material/DownloadOutlined"));
|
|
561
|
+
import_DownloadDoneOutlined = __toESM(require("@mui/icons-material/DownloadDoneOutlined"));
|
|
562
|
+
import_StarBorderOutlined = __toESM(require("@mui/icons-material/StarBorderOutlined"));
|
|
563
|
+
import_DeleteForever = __toESM(require("@mui/icons-material/DeleteForever"));
|
|
564
|
+
import_LayersClear = __toESM(require("@mui/icons-material/LayersClear"));
|
|
565
|
+
import_Check = __toESM(require("@mui/icons-material/Check"));
|
|
566
|
+
import_DoneAll = __toESM(require("@mui/icons-material/DoneAll"));
|
|
567
|
+
import_PowerSettingsNew = __toESM(require("@mui/icons-material/PowerSettingsNew"));
|
|
568
|
+
import_Send = __toESM(require("@mui/icons-material/Send"));
|
|
569
|
+
import_ZoomInMap = __toESM(require("@mui/icons-material/ZoomInMap"));
|
|
570
|
+
import_ZoomOutMap = __toESM(require("@mui/icons-material/ZoomOutMap"));
|
|
571
|
+
import_HomeRepairService = __toESM(require("@mui/icons-material/HomeRepairService"));
|
|
572
|
+
import_Construction = __toESM(require("@mui/icons-material/Construction"));
|
|
573
|
+
import_Help = __toESM(require("@mui/icons-material/Help"));
|
|
574
|
+
import_EmojiFlags = __toESM(require("@mui/icons-material/EmojiFlags"));
|
|
575
|
+
import_Edit = __toESM(require("@mui/icons-material/Edit"));
|
|
576
|
+
import_ForkRight = __toESM(require("@mui/icons-material/ForkRight"));
|
|
577
|
+
import_Settings = __toESM(require("@mui/icons-material/Settings"));
|
|
578
|
+
import_Restore = __toESM(require("@mui/icons-material/Restore"));
|
|
579
|
+
import_EditNote = __toESM(require("@mui/icons-material/EditNote"));
|
|
580
|
+
import_HomeOutlined = __toESM(require("@mui/icons-material/HomeOutlined"));
|
|
581
|
+
import_ExitToAppOutlined = __toESM(require("@mui/icons-material/ExitToAppOutlined"));
|
|
582
|
+
import_WbSunnyOutlined = __toESM(require("@mui/icons-material/WbSunnyOutlined"));
|
|
583
|
+
import_DarkModeOutlined = __toESM(require("@mui/icons-material/DarkModeOutlined"));
|
|
584
|
+
import_AttachFileOutlined = __toESM(require("@mui/icons-material/AttachFileOutlined"));
|
|
585
|
+
import_NoteAdd = __toESM(require("@mui/icons-material/NoteAdd"));
|
|
586
|
+
import_CloudUpload = __toESM(require("@mui/icons-material/CloudUpload"));
|
|
587
|
+
import_KeyboardDoubleArrowRight = __toESM(require("@mui/icons-material/KeyboardDoubleArrowRight"));
|
|
588
|
+
import_KeyboardDoubleArrowLeft = __toESM(require("@mui/icons-material/KeyboardDoubleArrowLeft"));
|
|
589
|
+
import_KeyboardDoubleArrowRightRounded = __toESM(require("@mui/icons-material/KeyboardDoubleArrowRightRounded"));
|
|
590
|
+
import_FitScreen = __toESM(require("@mui/icons-material/FitScreen"));
|
|
591
|
+
import_Fullscreen = __toESM(require("@mui/icons-material/Fullscreen"));
|
|
592
|
+
import_Biotech = __toESM(require("@mui/icons-material/Biotech"));
|
|
593
|
+
import_Share = __toESM(require("@mui/icons-material/Share"));
|
|
594
|
+
import_FilterAlt = __toESM(require("@mui/icons-material/FilterAlt"));
|
|
595
|
+
import_Sync = __toESM(require("@mui/icons-material/Sync"));
|
|
596
|
+
import_PlayArrow = __toESM(require("@mui/icons-material/PlayArrow"));
|
|
597
|
+
import_PauseOutlined = __toESM(require("@mui/icons-material/PauseOutlined"));
|
|
598
|
+
import_Casino = __toESM(require("@mui/icons-material/Casino"));
|
|
599
|
+
import_Paid = __toESM(require("@mui/icons-material/Paid"));
|
|
600
|
+
import_Save = __toESM(require("@mui/icons-material/Save"));
|
|
601
|
+
import_StopRounded = __toESM(require("@mui/icons-material/StopRounded"));
|
|
602
|
+
import_Replay = __toESM(require("@mui/icons-material/Replay"));
|
|
603
|
+
import_AccountTree = __toESM(require("@mui/icons-material/AccountTree"));
|
|
604
|
+
import_Close2 = __toESM(require("@mui/icons-material/Close"));
|
|
605
|
+
import_KeyboardArrowDown = __toESM(require("@mui/icons-material/KeyboardArrowDown"));
|
|
606
|
+
import_KeyboardArrowRight = __toESM(require("@mui/icons-material/KeyboardArrowRight"));
|
|
607
|
+
import_SearchRounded = __toESM(require("@mui/icons-material/SearchRounded"));
|
|
608
|
+
import_CloseRounded = __toESM(require("@mui/icons-material/CloseRounded"));
|
|
609
|
+
import_SortByAlphaRounded = __toESM(require("@mui/icons-material/SortByAlphaRounded"));
|
|
610
|
+
import_FilterAltOutlined = __toESM(require("@mui/icons-material/FilterAltOutlined"));
|
|
611
|
+
import_InboxOutlined = __toESM(require("@mui/icons-material/InboxOutlined"));
|
|
612
|
+
import_SearchOff = __toESM(require("@mui/icons-material/SearchOff"));
|
|
613
|
+
import_ClearRounded = __toESM(require("@mui/icons-material/ClearRounded"));
|
|
614
|
+
import_ArrowDropDownRounded = __toESM(require("@mui/icons-material/ArrowDropDownRounded"));
|
|
615
|
+
import_AccountBox = __toESM(require("@mui/icons-material/AccountBox"));
|
|
616
|
+
import_Logout = __toESM(require("@mui/icons-material/Logout"));
|
|
617
|
+
import_Login = __toESM(require("@mui/icons-material/Login"));
|
|
618
|
+
import_Dashboard = __toESM(require("@mui/icons-material/Dashboard"));
|
|
619
|
+
import_AccountTreeOutlined = __toESM(require("@mui/icons-material/AccountTreeOutlined"));
|
|
620
|
+
import_HelpOutline = __toESM(require("@mui/icons-material/HelpOutline"));
|
|
621
|
+
import_NavigateBefore = __toESM(require("@mui/icons-material/NavigateBefore"));
|
|
622
|
+
import_NavigateNext = __toESM(require("@mui/icons-material/NavigateNext"));
|
|
623
|
+
import_Person2 = __toESM(require("@mui/icons-material/Person"));
|
|
624
|
+
import_CalendarToday = __toESM(require("@mui/icons-material/CalendarToday"));
|
|
625
|
+
import_QuestionAnswerOutlined = __toESM(require("@mui/icons-material/QuestionAnswerOutlined"));
|
|
626
|
+
import_Today = __toESM(require("@mui/icons-material/Today"));
|
|
627
|
+
import_DeleteForever2 = __toESM(require("@mui/icons-material/DeleteForever"));
|
|
628
|
+
import_AdsClick = __toESM(require("@mui/icons-material/AdsClick"));
|
|
629
|
+
import_Fingerprint = __toESM(require("@mui/icons-material/Fingerprint"));
|
|
630
|
+
import_SportsEsportsOutlined = __toESM(require("@mui/icons-material/SportsEsportsOutlined"));
|
|
631
|
+
import_HelpOutlineRounded = __toESM(require("@mui/icons-material/HelpOutlineRounded"));
|
|
632
|
+
import_AccountTreeOutlined2 = __toESM(require("@mui/icons-material/AccountTreeOutlined"));
|
|
633
|
+
import_SmartToyOutlined = __toESM(require("@mui/icons-material/SmartToyOutlined"));
|
|
634
|
+
import_AcUnit = __toESM(require("@mui/icons-material/AcUnit"));
|
|
635
|
+
import_Loop = __toESM(require("@mui/icons-material/Loop"));
|
|
636
|
+
import_Pending = __toESM(require("@mui/icons-material/Pending"));
|
|
637
|
+
import_AllInclusive = __toESM(require("@mui/icons-material/AllInclusive"));
|
|
638
|
+
import_WarningOutlined = __toESM(require("@mui/icons-material/WarningOutlined"));
|
|
639
|
+
import_InfoOutlined = __toESM(require("@mui/icons-material/InfoOutlined"));
|
|
640
|
+
import_AutoAwesomeRounded = __toESM(require("@mui/icons-material/AutoAwesomeRounded"));
|
|
641
|
+
import_ErrorOutlineOutlined = __toESM(require("@mui/icons-material/ErrorOutlineOutlined"));
|
|
642
|
+
import_Download = __toESM(require("@mui/icons-material/Download"));
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
|
|
646
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/theme.ts
|
|
647
|
+
var import_styles2, gitHubPickerRootStyle, gitHubPickerRootSx, PickerField, OptionBox;
|
|
648
|
+
var init_theme5 = __esm({
|
|
649
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/theme.ts"() {
|
|
650
|
+
"use strict";
|
|
651
|
+
import_styles2 = require("@mui/material/styles");
|
|
652
|
+
init_Box();
|
|
653
|
+
gitHubPickerRootStyle = {
|
|
654
|
+
"--option-subscript": "var(--mui-palette-text-subscript)",
|
|
655
|
+
"--picker-focus-soft": "color-mix(in lab, var(--mui-palette-focus-soft-1), transparent 18%)",
|
|
656
|
+
"--picker-focus": "var(--mui-palette-focus-1)",
|
|
657
|
+
"--picker-border": "color-mix(in lab, var(--mui-palette-common-white), transparent 94%)",
|
|
658
|
+
"--picker-border-hover": "var(--mui-palette-border-hover-1)",
|
|
659
|
+
"--picker-border-emphasis": "color-mix(in lab, var(--mui-palette-primary-emphasis), transparent 50%)",
|
|
660
|
+
"--picker-text": "var(--mui-palette-text-primary)",
|
|
661
|
+
"--picker-text-secondary": "var(--mui-palette-text-secondary)",
|
|
662
|
+
"--picker-text-disabled": "var(--mui-palette-text-disabled)",
|
|
663
|
+
"--picker-surface": "color-mix(in lab, var(--mui-palette-common-black), transparent 68%)",
|
|
664
|
+
"--picker-paper-bg": "color-mix(in lab, var(--mui-palette-background-paper), transparent 30%)",
|
|
665
|
+
"--picker-hover-bg": "var(--mui-palette-background-hover-1)",
|
|
666
|
+
"--picker-chip-bg": "color-mix(in lab, var(--mui-palette-secondary-main), transparent 88%)",
|
|
667
|
+
"--picker-chip-border": "color-mix(in lab, var(--mui-palette-common-white), transparent 94%)",
|
|
668
|
+
"--picker-chip-shadow": "inset 0 1px 0 color-mix(in lab, var(--mui-palette-common-white), transparent 88%), inset 0 0 0 1px color-mix(in lab, var(--mui-palette-common-white), transparent 91%)",
|
|
669
|
+
"--picker-error": "var(--mui-palette-error-main)",
|
|
670
|
+
// Dark closed field: true mid glass — between washed and dim.
|
|
671
|
+
"--picker-highlight": "color-mix(in lab, var(--mui-palette-common-white), transparent 92%)",
|
|
672
|
+
"--picker-sheen": "none",
|
|
673
|
+
"--picker-shadow": [
|
|
674
|
+
"0 18px 48px color-mix(in srgb, var(--mui-palette-common-black), transparent 72%)",
|
|
675
|
+
"0 0 0 1px color-mix(in srgb, var(--mui-palette-common-black), transparent 88%)"
|
|
676
|
+
].join(", "),
|
|
677
|
+
"--picker-focus-ring": "color-mix(in lab, var(--mui-palette-primary-emphasis), transparent 82%)",
|
|
678
|
+
"--picker-check": "var(--mui-palette-primary-emphasis)",
|
|
679
|
+
"--picker-search-bg": "var(--mui-palette-background-hover-1)",
|
|
680
|
+
"--picker-search-shadow": "inset 0 1px 0 var(--picker-highlight)",
|
|
681
|
+
"--picker-search-border": "color-mix(in lab, var(--picker-highlight), transparent 40%)",
|
|
682
|
+
"--picker-divider": "var(--mui-palette-divider)",
|
|
683
|
+
"--picker-icon-well": "color-mix(in lab, var(--mui-palette-background-hover-1), transparent 20%)",
|
|
684
|
+
"--picker-blur": "8px",
|
|
685
|
+
"--picker-glass": "saturate(1.15) blur(var(--picker-blur))",
|
|
686
|
+
"[color-scheme=light] &": {
|
|
687
|
+
"--picker-blur": "10px",
|
|
688
|
+
"--picker-glass": "saturate(1.08) blur(var(--picker-blur))",
|
|
689
|
+
"--picker-surface": "color-mix(in lab, var(--mui-palette-common-white), transparent 46%)",
|
|
690
|
+
"--picker-paper-bg": "color-mix(in lab, var(--mui-palette-common-white), transparent 48%)",
|
|
691
|
+
"--picker-highlight": "color-mix(in lab, var(--mui-palette-common-white), transparent 55%)",
|
|
692
|
+
"--picker-sheen": "none",
|
|
693
|
+
"--picker-border": "color-mix(in lab, var(--mui-palette-border-1), transparent 95%)",
|
|
694
|
+
"--picker-chip-bg": "color-mix(in lab, var(--mui-palette-common-white), transparent 32%)",
|
|
695
|
+
"--picker-chip-border": "color-mix(in lab, var(--mui-palette-common-black), transparent 94%)",
|
|
696
|
+
"--picker-chip-shadow": "inset 0 1px 0 color-mix(in lab, var(--mui-palette-common-white), transparent 40%), inset 0 0 0 1px color-mix(in lab, var(--mui-palette-common-black), transparent 92%)",
|
|
697
|
+
"--picker-search-bg": "color-mix(in lab, var(--mui-palette-common-black), transparent 95%)",
|
|
698
|
+
"--picker-search-shadow": "inset 0 1px 1px color-mix(in lab, var(--mui-palette-common-black), transparent 92%)",
|
|
699
|
+
"--picker-search-border": "color-mix(in lab, var(--mui-palette-common-black), transparent 93%)",
|
|
700
|
+
"--picker-focus-soft": "color-mix(in lab, var(--mui-palette-common-black), transparent 95%)",
|
|
701
|
+
"--picker-hover-bg": "color-mix(in lab, var(--mui-palette-common-black), transparent 96%)",
|
|
702
|
+
"--picker-shadow": [
|
|
703
|
+
"inset 0 1px 0 color-mix(in lab, var(--mui-palette-common-white), transparent 28%)",
|
|
704
|
+
"0 1px 2px color-mix(in srgb, var(--mui-palette-common-black), transparent 90%)",
|
|
705
|
+
"0 10px 28px color-mix(in srgb, var(--mui-palette-common-black), transparent 86%)"
|
|
706
|
+
].join(", "),
|
|
707
|
+
"--picker-field-shadow": [
|
|
708
|
+
"inset 0 1px 0 color-mix(in lab, var(--mui-palette-common-white), transparent 28%)",
|
|
709
|
+
"0 8px 22px color-mix(in srgb, var(--mui-palette-common-black), transparent 88%)"
|
|
710
|
+
].join(", "),
|
|
711
|
+
"--picker-icon-well": "color-mix(in lab, var(--mui-palette-common-black), transparent 96%)"
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
gitHubPickerRootSx = {
|
|
715
|
+
...gitHubPickerRootStyle
|
|
716
|
+
};
|
|
717
|
+
PickerField = (0, import_styles2.styled)(import_Box.default, {
|
|
718
|
+
shouldForwardProp: (prop) => prop !== "open" && prop !== "error" && prop !== "disabled"
|
|
719
|
+
})({
|
|
720
|
+
...gitHubPickerRootStyle,
|
|
721
|
+
boxSizing: "border-box",
|
|
722
|
+
width: "100%",
|
|
723
|
+
minWidth: 240,
|
|
724
|
+
display: "flex",
|
|
725
|
+
flexDirection: "column",
|
|
726
|
+
gap: 8,
|
|
727
|
+
padding: "12px 14px 14px",
|
|
728
|
+
borderRadius: 12,
|
|
729
|
+
border: "1px solid var(--picker-field-border)",
|
|
730
|
+
backgroundColor: "var(--picker-surface)",
|
|
731
|
+
backgroundImage: "var(--picker-sheen)",
|
|
732
|
+
backdropFilter: "saturate(1.2) blur(12px)",
|
|
733
|
+
WebkitBackdropFilter: "saturate(1.2) blur(12px)",
|
|
734
|
+
cursor: "var(--picker-field-cursor)",
|
|
735
|
+
outline: "none",
|
|
736
|
+
boxShadow: "var(--picker-field-shadow)",
|
|
737
|
+
transition: "border-color 160ms ease, box-shadow 160ms ease",
|
|
738
|
+
"& *": {
|
|
739
|
+
cursor: "inherit"
|
|
740
|
+
},
|
|
741
|
+
"--picker-field-border": "var(--picker-border)",
|
|
742
|
+
"--picker-field-shadow": "inset 0 1px 0 color-mix(in lab, var(--mui-palette-common-white), transparent 88%), inset 0 0 0 1px color-mix(in lab, var(--mui-palette-common-white), transparent 91%), 0 0 20px color-mix(in lab, var(--mui-palette-primary-emphasis), transparent 93%), 0 9px 22px color-mix(in srgb, var(--mui-palette-common-black), transparent 77%)",
|
|
743
|
+
"--picker-field-cursor": "pointer",
|
|
744
|
+
"&:hover": {
|
|
745
|
+
"--picker-field-border": "color-mix(in lab, var(--mui-palette-common-white), transparent 92%)"
|
|
746
|
+
},
|
|
747
|
+
"&:focus-visible": {
|
|
748
|
+
"--picker-field-border": "color-mix(in lab, var(--mui-palette-common-white), transparent 92%)",
|
|
749
|
+
"--picker-field-shadow": "inset 0 1px 0 color-mix(in lab, var(--mui-palette-common-white), transparent 88%), inset 0 0 0 1px color-mix(in lab, var(--mui-palette-common-white), transparent 91%), 0 0 20px color-mix(in lab, var(--mui-palette-primary-emphasis), transparent 93%), 0 9px 22px color-mix(in srgb, var(--mui-palette-common-black), transparent 77%)"
|
|
750
|
+
},
|
|
751
|
+
variants: [
|
|
752
|
+
{
|
|
753
|
+
props: { open: true },
|
|
754
|
+
style: {
|
|
755
|
+
"--picker-field-border": "color-mix(in lab, var(--mui-palette-common-white), transparent 92%)",
|
|
756
|
+
"--picker-field-shadow": "inset 0 1px 0 color-mix(in lab, var(--mui-palette-common-white), transparent 88%), inset 0 0 0 1px color-mix(in lab, var(--mui-palette-common-white), transparent 91%), 0 0 20px color-mix(in lab, var(--mui-palette-primary-emphasis), transparent 93%), 0 9px 22px color-mix(in srgb, var(--mui-palette-common-black), transparent 77%)"
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
props: { error: true },
|
|
761
|
+
style: {
|
|
762
|
+
"--picker-field-border": "var(--picker-error)"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
props: { disabled: true },
|
|
767
|
+
style: {
|
|
768
|
+
"--picker-field-cursor": "default",
|
|
769
|
+
opacity: 0.58,
|
|
770
|
+
pointerEvents: "none"
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
]
|
|
774
|
+
});
|
|
775
|
+
OptionBox = (0, import_styles2.styled)(import_Box.default, {
|
|
776
|
+
shouldForwardProp: (prop) => prop !== "selected" && prop !== "isIconClickable" && prop !== "disabled" && prop !== "disableBR"
|
|
777
|
+
})({
|
|
778
|
+
...gitHubPickerRootStyle,
|
|
779
|
+
width: "100%",
|
|
780
|
+
padding: 0,
|
|
781
|
+
backgroundColor: "var(--bg)",
|
|
782
|
+
border: "1px solid var(--bd)",
|
|
783
|
+
borderRadius: "var(--br)",
|
|
784
|
+
boxShadow: "var(--chip-shadow)",
|
|
785
|
+
cursor: "var(--curosr)",
|
|
786
|
+
"--bg": "transparent",
|
|
787
|
+
"--bd": "transparent",
|
|
788
|
+
"--br": "10px",
|
|
789
|
+
"--chip-shadow": "none",
|
|
790
|
+
"--ai": "flex-start",
|
|
791
|
+
"--curosr": "pointer",
|
|
792
|
+
"& *": {
|
|
793
|
+
cursor: "inherit"
|
|
794
|
+
},
|
|
795
|
+
variants: [
|
|
796
|
+
{
|
|
797
|
+
props: { isIconClickable: true },
|
|
798
|
+
style: {
|
|
799
|
+
width: "auto",
|
|
800
|
+
maxWidth: "100%",
|
|
801
|
+
"--bg": "var(--picker-chip-bg)",
|
|
802
|
+
"--bd": "var(--picker-chip-border)",
|
|
803
|
+
"--br": "999px",
|
|
804
|
+
"--chip-shadow": "var(--picker-chip-shadow)",
|
|
805
|
+
"--ai": "center",
|
|
806
|
+
"--curosr": "pointer"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
props: { isIconClickable: false },
|
|
811
|
+
style: {
|
|
812
|
+
"--bg": "transparent",
|
|
813
|
+
"--bd": "transparent",
|
|
814
|
+
"--ai": "flex-start"
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
props: { disabled: true },
|
|
819
|
+
style: {
|
|
820
|
+
"--curosr": "default"
|
|
821
|
+
}
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
props: { disabled: false },
|
|
825
|
+
style: {
|
|
826
|
+
"--curosr": "pointer"
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
props: { disableBR: true },
|
|
831
|
+
style: {
|
|
832
|
+
"--br": 0
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
|
|
840
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/OptionRenderer.tsx
|
|
841
|
+
function OptionRenderer({
|
|
842
|
+
option,
|
|
843
|
+
isIconClickable = false,
|
|
844
|
+
selected,
|
|
845
|
+
disabled,
|
|
846
|
+
disableBR = false,
|
|
847
|
+
removeItemHandler,
|
|
848
|
+
slotProps = {}
|
|
849
|
+
}) {
|
|
850
|
+
if (!option) return null;
|
|
851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Wrapper, { selected, isIconClickable, disabled, disableBR, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
852
|
+
import_Box.default,
|
|
853
|
+
{
|
|
854
|
+
sx: {
|
|
855
|
+
"&.MuiBox-root": {
|
|
856
|
+
width: "100%",
|
|
857
|
+
display: "flex",
|
|
858
|
+
alignItems: "var(--ai)",
|
|
859
|
+
gap: isIconClickable ? "6px" : "10px",
|
|
860
|
+
cursor: "var(--curosr)",
|
|
861
|
+
padding: isIconClickable ? "3px 6px 3px 8px" : "8px 10px"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
865
|
+
DM,
|
|
866
|
+
{
|
|
867
|
+
option,
|
|
868
|
+
onDelete: removeItemHandler ? () => removeItemHandler(option.id) : void 0,
|
|
869
|
+
isIconClickable,
|
|
870
|
+
selected,
|
|
871
|
+
disabled,
|
|
872
|
+
...slotProps.DM
|
|
873
|
+
}
|
|
874
|
+
)
|
|
875
|
+
}
|
|
876
|
+
) });
|
|
877
|
+
}
|
|
878
|
+
function Wrapper({
|
|
879
|
+
children,
|
|
880
|
+
selected = false,
|
|
881
|
+
isIconClickable = false,
|
|
882
|
+
disabled = false,
|
|
883
|
+
disableBR = false
|
|
884
|
+
}) {
|
|
885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(OptionBox, { selected, isIconClickable, disabled, disableBR, children });
|
|
886
|
+
}
|
|
887
|
+
function ItemIcon({ option, compact }) {
|
|
888
|
+
if (!option.icon) return null;
|
|
889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
890
|
+
import_Box.default,
|
|
891
|
+
{
|
|
892
|
+
component: "span",
|
|
893
|
+
sx: {
|
|
894
|
+
flexShrink: 0,
|
|
895
|
+
width: compact ? 18 : 28,
|
|
896
|
+
height: compact ? 18 : 28,
|
|
897
|
+
borderRadius: compact ? "50%" : "8px",
|
|
898
|
+
display: "flex",
|
|
899
|
+
alignItems: "center",
|
|
900
|
+
justifyContent: "center",
|
|
901
|
+
alignSelf: "center",
|
|
902
|
+
backgroundColor: compact ? "transparent" : "var(--picker-icon-well)",
|
|
903
|
+
color: "var(--picker-text-secondary)",
|
|
904
|
+
"& svg": ICON_STYLE
|
|
905
|
+
},
|
|
906
|
+
children: option.icon
|
|
907
|
+
}
|
|
908
|
+
);
|
|
909
|
+
}
|
|
910
|
+
function ItemLabel({
|
|
911
|
+
option,
|
|
912
|
+
isShowDescription = false,
|
|
913
|
+
compact = false
|
|
914
|
+
}) {
|
|
915
|
+
const isUseTag = option.tags.length > 0;
|
|
916
|
+
const description = option.description?.trim();
|
|
917
|
+
const showSecondary = isShowDescription && (isUseTag || Boolean(description));
|
|
918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
919
|
+
import_Box.default,
|
|
920
|
+
{
|
|
921
|
+
sx: {
|
|
922
|
+
flexGrow: 1,
|
|
923
|
+
minWidth: 0,
|
|
924
|
+
display: "flex",
|
|
925
|
+
flexDirection: "column",
|
|
926
|
+
justifyContent: "center",
|
|
927
|
+
gap: showSecondary ? "2px" : 0
|
|
928
|
+
},
|
|
929
|
+
children: [
|
|
930
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
931
|
+
import_Typography.default,
|
|
932
|
+
{
|
|
933
|
+
component: "span",
|
|
934
|
+
sx: {
|
|
935
|
+
display: "block",
|
|
936
|
+
fontSize: compact ? "0.8125rem" : "0.875rem",
|
|
937
|
+
fontWeight: compact ? 500 : 600,
|
|
938
|
+
lineHeight: 1.3,
|
|
939
|
+
letterSpacing: compact ? 0 : "0.01em",
|
|
940
|
+
color: "var(--picker-text)",
|
|
941
|
+
textOverflow: "ellipsis",
|
|
942
|
+
whiteSpace: "nowrap",
|
|
943
|
+
overflow: "hidden",
|
|
944
|
+
m: 0
|
|
945
|
+
},
|
|
946
|
+
children: option.label
|
|
947
|
+
}
|
|
948
|
+
),
|
|
949
|
+
showSecondary ? isUseTag ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_Box.default, { sx: { display: "flex", gap: "4px", flexWrap: "wrap", pt: 0.25 }, children: option.tags.map((tag, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
950
|
+
TagButton_default,
|
|
951
|
+
{
|
|
952
|
+
label: (tag?.tagIcon ? "" : "# ") + tag.tagName,
|
|
953
|
+
icon: tag?.tagIcon ?? void 0
|
|
954
|
+
},
|
|
955
|
+
i
|
|
956
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
957
|
+
import_Typography.default,
|
|
958
|
+
{
|
|
959
|
+
component: "span",
|
|
960
|
+
sx: {
|
|
961
|
+
display: "block",
|
|
962
|
+
fontSize: "0.75rem",
|
|
963
|
+
lineHeight: 1.35,
|
|
964
|
+
color: "var(--option-subscript)",
|
|
965
|
+
textOverflow: "ellipsis",
|
|
966
|
+
whiteSpace: "nowrap",
|
|
967
|
+
overflow: "hidden",
|
|
968
|
+
m: 0
|
|
969
|
+
},
|
|
970
|
+
children: description
|
|
971
|
+
}
|
|
972
|
+
) : null
|
|
973
|
+
]
|
|
974
|
+
}
|
|
975
|
+
);
|
|
976
|
+
}
|
|
977
|
+
function DM({
|
|
978
|
+
option,
|
|
979
|
+
selected,
|
|
980
|
+
onDelete,
|
|
981
|
+
alwaysShowEndIcon = false,
|
|
982
|
+
isIconClickable = false,
|
|
983
|
+
disabled = false,
|
|
984
|
+
endIcon = null,
|
|
985
|
+
isShowEndIcon = true,
|
|
986
|
+
isShowDescription = true
|
|
987
|
+
}) {
|
|
988
|
+
const showClose = Boolean(isShowEndIcon && isIconClickable && (selected || alwaysShowEndIcon));
|
|
989
|
+
const showCheck = Boolean(isShowEndIcon && !isIconClickable && selected);
|
|
990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
991
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ItemIcon, { option, compact: isIconClickable }),
|
|
992
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ItemLabel, { option, isShowDescription, compact: isIconClickable }),
|
|
993
|
+
showClose ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
994
|
+
IconButton_default,
|
|
995
|
+
{
|
|
996
|
+
size: "small",
|
|
997
|
+
disabled,
|
|
998
|
+
"aria-label": `Remove ${option.label}`,
|
|
999
|
+
onClick: (event) => {
|
|
1000
|
+
event.stopPropagation();
|
|
1001
|
+
onDelete?.(event);
|
|
1002
|
+
},
|
|
1003
|
+
sx: {
|
|
1004
|
+
padding: "2px",
|
|
1005
|
+
flexShrink: 0,
|
|
1006
|
+
cursor: disabled ? "default" : "pointer",
|
|
1007
|
+
backgroundColor: "transparent",
|
|
1008
|
+
border: "none",
|
|
1009
|
+
color: "var(--picker-text-secondary)",
|
|
1010
|
+
"&:hover": {
|
|
1011
|
+
backgroundColor: "var(--picker-hover-bg)",
|
|
1012
|
+
border: "none",
|
|
1013
|
+
color: "var(--picker-text)"
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
1016
|
+
children: endIcon ?? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_Close.default, { sx: { fontSize: "0.95rem" } })
|
|
1017
|
+
}
|
|
1018
|
+
) : null,
|
|
1019
|
+
showCheck ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1020
|
+
import_Box.default,
|
|
1021
|
+
{
|
|
1022
|
+
sx: {
|
|
1023
|
+
display: "flex",
|
|
1024
|
+
alignItems: "center",
|
|
1025
|
+
alignSelf: "center",
|
|
1026
|
+
flexShrink: 0,
|
|
1027
|
+
color: "var(--picker-check)",
|
|
1028
|
+
pl: 0.5
|
|
1029
|
+
},
|
|
1030
|
+
children: endIcon ?? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_Check.default, { sx: { fontSize: "1.05rem" } })
|
|
1031
|
+
}
|
|
1032
|
+
) : null
|
|
1033
|
+
] });
|
|
1034
|
+
}
|
|
1035
|
+
var import_jsx_runtime6, ICON_STYLE;
|
|
1036
|
+
var init_OptionRenderer = __esm({
|
|
1037
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/OptionRenderer.tsx"() {
|
|
1038
|
+
"use strict";
|
|
1039
|
+
"use client";
|
|
1040
|
+
init_Box();
|
|
1041
|
+
init_MuiIcon();
|
|
1042
|
+
init_Button3();
|
|
1043
|
+
init_Typography2();
|
|
1044
|
+
init_Button3();
|
|
1045
|
+
init_theme5();
|
|
1046
|
+
import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1047
|
+
ICON_STYLE = {
|
|
1048
|
+
height: 16,
|
|
1049
|
+
width: 16,
|
|
1050
|
+
opacity: 0.85
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
|
|
1055
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/states/states.tsx
|
|
1056
|
+
function init({
|
|
1057
|
+
selectedIds,
|
|
1058
|
+
options,
|
|
1059
|
+
isMultiple
|
|
1060
|
+
}) {
|
|
1061
|
+
return {
|
|
1062
|
+
ids: isMultiple ? selectedIds : selectedIds[0] ?? null,
|
|
1063
|
+
minimal: isMultiple ? options.filter((o) => selectedIds.includes(o.id)).map((o) => o.minimal()) : options.find((o) => o.id === selectedIds[0])?.minimal() ?? null,
|
|
1064
|
+
isMultiple
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
function equalIds(a, b) {
|
|
1068
|
+
if (a === b) return true;
|
|
1069
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
1070
|
+
return a.length === b.length && a.every((id, i) => id === b[i]);
|
|
1071
|
+
}
|
|
1072
|
+
return false;
|
|
1073
|
+
}
|
|
1074
|
+
function equalMinimalOption(a, b) {
|
|
1075
|
+
return a.id === b.id && a.label === b.label && a.filterKey === b.filterKey && a.disabled === b.disabled && a.group === b.group && a.value === b.value;
|
|
1076
|
+
}
|
|
1077
|
+
function equalMinimal(a, b) {
|
|
1078
|
+
if (a === b) return true;
|
|
1079
|
+
if (a == null || b == null) return false;
|
|
1080
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
1081
|
+
return a.length === b.length && a.every((opt, i) => equalMinimalOption(opt, b[i]));
|
|
1082
|
+
}
|
|
1083
|
+
if (!Array.isArray(a) && !Array.isArray(b)) {
|
|
1084
|
+
return equalMinimalOption(a, b);
|
|
1085
|
+
}
|
|
1086
|
+
return false;
|
|
1087
|
+
}
|
|
1088
|
+
function equalState(a, b) {
|
|
1089
|
+
return a.isMultiple === b.isMultiple && equalIds(a.ids, b.ids) && equalMinimal(a.minimal, b.minimal);
|
|
1090
|
+
}
|
|
1091
|
+
var import_react2, import_jsx_runtime7, Context, useStateContext, Provider, useSelector;
|
|
1092
|
+
var init_states = __esm({
|
|
1093
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/states/states.tsx"() {
|
|
1094
|
+
"use strict";
|
|
1095
|
+
"use client";
|
|
1096
|
+
import_react2 = require("react");
|
|
1097
|
+
import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1098
|
+
Context = (0, import_react2.createContext)(null);
|
|
1099
|
+
useStateContext = () => {
|
|
1100
|
+
const ctx = (0, import_react2.useContext)(Context);
|
|
1101
|
+
if (!ctx) throw new Error("useStateContext must be used within LocalSelectedProvider");
|
|
1102
|
+
return ctx;
|
|
1103
|
+
};
|
|
1104
|
+
Provider = ({ children, selectedIds, options, isMultiple, open = false }) => {
|
|
1105
|
+
const [state, setState] = (0, import_react2.useState)(() => init({ selectedIds, options, isMultiple }));
|
|
1106
|
+
const stateRef = (0, import_react2.useRef)(state);
|
|
1107
|
+
stateRef.current = state;
|
|
1108
|
+
(0, import_react2.useEffect)(() => {
|
|
1109
|
+
const next = init({ selectedIds, options, isMultiple });
|
|
1110
|
+
if (equalState(stateRef.current, next)) return;
|
|
1111
|
+
if (open) return;
|
|
1112
|
+
stateRef.current = next;
|
|
1113
|
+
setState(next);
|
|
1114
|
+
}, [selectedIds, options, isMultiple, open]);
|
|
1115
|
+
const computeNextState = (0, import_react2.useCallback)((prev, option) => {
|
|
1116
|
+
if (prev.isMultiple) {
|
|
1117
|
+
const newOptions = Array.isArray(option) ? option : [];
|
|
1118
|
+
return { ...prev, ids: newOptions.map((o) => o.id), minimal: newOptions };
|
|
1119
|
+
}
|
|
1120
|
+
const newOption = option && !Array.isArray(option) ? option : null;
|
|
1121
|
+
return { ...prev, ids: newOption?.id ?? null, minimal: newOption };
|
|
1122
|
+
}, []);
|
|
1123
|
+
const select = (0, import_react2.useCallback)((option) => {
|
|
1124
|
+
let produced;
|
|
1125
|
+
setState((prev) => {
|
|
1126
|
+
produced = computeNextState(prev, option);
|
|
1127
|
+
stateRef.current = produced;
|
|
1128
|
+
return produced;
|
|
1129
|
+
});
|
|
1130
|
+
if (produced === void 0) {
|
|
1131
|
+
produced = computeNextState(stateRef.current, option);
|
|
1132
|
+
stateRef.current = produced;
|
|
1133
|
+
}
|
|
1134
|
+
return produced;
|
|
1135
|
+
}, [computeNextState]);
|
|
1136
|
+
const value = (0, import_react2.useMemo)(() => ({ state, select }), [state, select]);
|
|
1137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Context.Provider, { value, children });
|
|
1138
|
+
};
|
|
1139
|
+
useSelector = () => {
|
|
1140
|
+
const { state } = useStateContext();
|
|
1141
|
+
return (key) => {
|
|
1142
|
+
return state[key];
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
|
|
1148
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/states/index.ts
|
|
1149
|
+
var init_states2 = __esm({
|
|
1150
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/states/index.ts"() {
|
|
1151
|
+
"use strict";
|
|
1152
|
+
init_states();
|
|
1153
|
+
}
|
|
1154
|
+
});
|
|
1155
|
+
|
|
1156
|
+
// src/components/elemental/Paper/src/Paper/Paper.tsx
|
|
1157
|
+
function MuiPaper(props) {
|
|
1158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_Paper.default, { ...props });
|
|
1159
|
+
}
|
|
1160
|
+
var import_Paper, import_jsx_runtime8;
|
|
1161
|
+
var init_Paper = __esm({
|
|
1162
|
+
"src/components/elemental/Paper/src/Paper/Paper.tsx"() {
|
|
1163
|
+
"use strict";
|
|
1164
|
+
import_Paper = __toESM(require("@mui/material/Paper"));
|
|
1165
|
+
import_jsx_runtime8 = require("react/jsx-runtime");
|
|
1166
|
+
}
|
|
1167
|
+
});
|
|
1168
|
+
|
|
1169
|
+
// src/components/elemental/Paper/src/Paper/themes.ts
|
|
1170
|
+
var init_themes3 = __esm({
|
|
1171
|
+
"src/components/elemental/Paper/src/Paper/themes.ts"() {
|
|
1172
|
+
"use strict";
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
|
|
1176
|
+
// src/components/elemental/Paper/src/Paper/index.ts
|
|
1177
|
+
var init_Paper2 = __esm({
|
|
1178
|
+
"src/components/elemental/Paper/src/Paper/index.ts"() {
|
|
1179
|
+
"use strict";
|
|
1180
|
+
init_Paper();
|
|
1181
|
+
init_themes3();
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
|
|
1185
|
+
// src/components/elemental/Paper/src/index.ts
|
|
1186
|
+
var init_src7 = __esm({
|
|
1187
|
+
"src/components/elemental/Paper/src/index.ts"() {
|
|
1188
|
+
"use strict";
|
|
1189
|
+
init_Paper2();
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1192
|
+
|
|
1193
|
+
// src/components/elemental/Paper/index.ts
|
|
1194
|
+
var init_Paper3 = __esm({
|
|
1195
|
+
"src/components/elemental/Paper/index.ts"() {
|
|
1196
|
+
"use strict";
|
|
1197
|
+
init_src7();
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
|
|
1201
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/popperTheme.ts
|
|
1202
|
+
var import_styles3, import_Autocomplete, PickerPopper, PickerOptionLi, PickerPaper, pickerSearchSx, pickerGroupLabelSx;
|
|
1203
|
+
var init_popperTheme = __esm({
|
|
1204
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/popperTheme.ts"() {
|
|
1205
|
+
"use strict";
|
|
1206
|
+
import_styles3 = require("@mui/material/styles");
|
|
1207
|
+
init_Overlay();
|
|
1208
|
+
import_Autocomplete = require("@mui/material/Autocomplete");
|
|
1209
|
+
init_Paper3();
|
|
1210
|
+
init_theme5();
|
|
1211
|
+
PickerPopper = (0, import_styles3.styled)(import_Popper.default)(({ theme }) => ({
|
|
1212
|
+
...gitHubPickerRootStyle,
|
|
1213
|
+
width: "var(--w)",
|
|
1214
|
+
minWidth: 280,
|
|
1215
|
+
zIndex: theme.zIndex.modal,
|
|
1216
|
+
fontSize: 13,
|
|
1217
|
+
overflow: "hidden",
|
|
1218
|
+
borderRadius: 14,
|
|
1219
|
+
border: "1px solid var(--picker-border)",
|
|
1220
|
+
backgroundColor: "var(--mui-palette-background-paper)",
|
|
1221
|
+
backgroundImage: "none",
|
|
1222
|
+
boxShadow: "var(--picker-shadow)",
|
|
1223
|
+
backdropFilter: "none",
|
|
1224
|
+
WebkitBackdropFilter: "none",
|
|
1225
|
+
"--picker-blur": "0px",
|
|
1226
|
+
"--picker-glass": "none"
|
|
1227
|
+
}));
|
|
1228
|
+
PickerOptionLi = (0, import_styles3.styled)("li")(() => ({
|
|
1229
|
+
...gitHubPickerRootStyle,
|
|
1230
|
+
[`.${import_Autocomplete.autocompleteClasses.listbox} &.${import_Autocomplete.autocompleteClasses.option}`]: {
|
|
1231
|
+
padding: 0,
|
|
1232
|
+
margin: "2px 6px",
|
|
1233
|
+
borderRadius: 10,
|
|
1234
|
+
minHeight: 0
|
|
1235
|
+
},
|
|
1236
|
+
[`
|
|
1237
|
+
&.${import_Autocomplete.autocompleteClasses.option},
|
|
1238
|
+
&.${import_Autocomplete.autocompleteClasses.option}[aria-selected="true"],
|
|
1239
|
+
`]: {
|
|
1240
|
+
backgroundColor: "transparent"
|
|
1241
|
+
},
|
|
1242
|
+
[`
|
|
1243
|
+
&.${import_Autocomplete.autocompleteClasses.option}:hover,
|
|
1244
|
+
&.${import_Autocomplete.autocompleteClasses.option}[aria-selected="true"]:hover,
|
|
1245
|
+
`]: {
|
|
1246
|
+
backgroundColor: "var(--picker-hover-bg)"
|
|
1247
|
+
},
|
|
1248
|
+
[`
|
|
1249
|
+
&.${import_Autocomplete.autocompleteClasses.option}.${import_Autocomplete.autocompleteClasses.focused},
|
|
1250
|
+
&.${import_Autocomplete.autocompleteClasses.option}.${import_Autocomplete.autocompleteClasses.focused}[aria-selected="true"]
|
|
1251
|
+
`]: {
|
|
1252
|
+
backgroundColor: "var(--picker-focus-soft)"
|
|
1253
|
+
},
|
|
1254
|
+
[`&.${import_Autocomplete.autocompleteClasses.option}[aria-selected="true"]`]: {
|
|
1255
|
+
backgroundColor: "var(--picker-focus-soft)",
|
|
1256
|
+
boxShadow: "inset 0 1px 0 var(--picker-highlight)"
|
|
1257
|
+
}
|
|
1258
|
+
}));
|
|
1259
|
+
PickerPaper = (0, import_styles3.styled)(MuiPaper)({
|
|
1260
|
+
...gitHubPickerRootStyle,
|
|
1261
|
+
borderRadius: 14,
|
|
1262
|
+
border: "none",
|
|
1263
|
+
"--paper-bg": "transparent",
|
|
1264
|
+
backgroundColor: "transparent",
|
|
1265
|
+
backgroundImage: "none",
|
|
1266
|
+
boxShadow: "none",
|
|
1267
|
+
"&.MuiPaper-root": {
|
|
1268
|
+
"--paper-bg": "transparent",
|
|
1269
|
+
backgroundColor: "transparent",
|
|
1270
|
+
backgroundImage: "none",
|
|
1271
|
+
boxShadow: "none",
|
|
1272
|
+
border: "none"
|
|
1273
|
+
}
|
|
1274
|
+
});
|
|
1275
|
+
pickerSearchSx = {
|
|
1276
|
+
display: "flex",
|
|
1277
|
+
alignItems: "center",
|
|
1278
|
+
gap: 1,
|
|
1279
|
+
mx: 1,
|
|
1280
|
+
mt: 0.5,
|
|
1281
|
+
mb: 0.75,
|
|
1282
|
+
px: 1.25,
|
|
1283
|
+
py: 0.5,
|
|
1284
|
+
borderRadius: 2,
|
|
1285
|
+
backgroundColor: "var(--picker-search-bg)",
|
|
1286
|
+
border: "1px solid var(--picker-search-border)",
|
|
1287
|
+
boxShadow: "var(--picker-search-shadow)",
|
|
1288
|
+
"& .MuiInputBase-root": {
|
|
1289
|
+
fontSize: "0.875rem",
|
|
1290
|
+
color: "var(--picker-text)"
|
|
1291
|
+
},
|
|
1292
|
+
"& .MuiInputBase-input": {
|
|
1293
|
+
py: 0.6,
|
|
1294
|
+
"&::placeholder": {
|
|
1295
|
+
color: "var(--picker-text-secondary)",
|
|
1296
|
+
opacity: 0.8
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
};
|
|
1300
|
+
pickerGroupLabelSx = {
|
|
1301
|
+
px: 1.75,
|
|
1302
|
+
pt: 1.25,
|
|
1303
|
+
pb: 0.5,
|
|
1304
|
+
fontSize: "0.66rem",
|
|
1305
|
+
fontWeight: 700,
|
|
1306
|
+
letterSpacing: "0.08em",
|
|
1307
|
+
textTransform: "uppercase",
|
|
1308
|
+
lineHeight: 1.4,
|
|
1309
|
+
color: "var(--picker-text-secondary)"
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
|
|
1314
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/_utils/_const.ts
|
|
1315
|
+
var MY_LOCAL_DISABLE_GROUP, DISABLED_GROUP;
|
|
1316
|
+
var init_const = __esm({
|
|
1317
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/_utils/_const.ts"() {
|
|
1318
|
+
"use strict";
|
|
1319
|
+
MY_LOCAL_DISABLE_GROUP = "My Local Disable Group - c7EgCbQ9T1";
|
|
1320
|
+
DISABLED_GROUP = "Disabled";
|
|
1321
|
+
}
|
|
1322
|
+
});
|
|
1323
|
+
|
|
1324
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/_utils/OptionClass.ts
|
|
1325
|
+
function defaultGetFilterKey(p) {
|
|
1326
|
+
const tagsStr = p.tags?.map((t) => t.tagName).join(" ") ?? "";
|
|
1327
|
+
return `${p.group ?? ""} ${p.label ?? ""} ${p.description ?? ""} ${p.value ?? ""} ${p.disabled ? DISABLED_GROUP : ""} ${tagsStr}`;
|
|
1328
|
+
}
|
|
1329
|
+
var Option;
|
|
1330
|
+
var init_OptionClass = __esm({
|
|
1331
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/_utils/OptionClass.ts"() {
|
|
1332
|
+
"use strict";
|
|
1333
|
+
init_func();
|
|
1334
|
+
init_const();
|
|
1335
|
+
Option = class {
|
|
1336
|
+
id;
|
|
1337
|
+
label;
|
|
1338
|
+
description;
|
|
1339
|
+
disabled;
|
|
1340
|
+
group;
|
|
1341
|
+
icon;
|
|
1342
|
+
filterKey;
|
|
1343
|
+
value;
|
|
1344
|
+
defaultSelected;
|
|
1345
|
+
otherProps;
|
|
1346
|
+
tags;
|
|
1347
|
+
constructor(p) {
|
|
1348
|
+
this.id = p.id ?? randomStrGenerator();
|
|
1349
|
+
this.label = p.label ?? "label";
|
|
1350
|
+
this.description = p.description ?? "description";
|
|
1351
|
+
this.disabled = p.disabled ?? false;
|
|
1352
|
+
this.group = p.group ?? "group";
|
|
1353
|
+
this.icon = p.icon ?? null;
|
|
1354
|
+
this.filterKey = p.filterKey || defaultGetFilterKey(p);
|
|
1355
|
+
this.defaultSelected = p.defaultSelected ?? false;
|
|
1356
|
+
this.value = p.value ?? "";
|
|
1357
|
+
this.otherProps = p.otherProps ?? {};
|
|
1358
|
+
this.tags = p.tags ?? [];
|
|
1359
|
+
}
|
|
1360
|
+
minimal() {
|
|
1361
|
+
return {
|
|
1362
|
+
id: this.id,
|
|
1363
|
+
label: this.label,
|
|
1364
|
+
filterKey: this.filterKey,
|
|
1365
|
+
disabled: this.disabled,
|
|
1366
|
+
group: this.group,
|
|
1367
|
+
value: this.value
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
});
|
|
1373
|
+
|
|
1374
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/_utils/index.ts
|
|
1375
|
+
var init_utils = __esm({
|
|
1376
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/_utils/index.ts"() {
|
|
1377
|
+
"use strict";
|
|
1378
|
+
init_const();
|
|
1379
|
+
init_OptionClass();
|
|
1380
|
+
}
|
|
1381
|
+
});
|
|
1382
|
+
|
|
1383
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/PopperMenu.tsx
|
|
1384
|
+
var PopperMenu_exports = {};
|
|
1385
|
+
__export(PopperMenu_exports, {
|
|
1386
|
+
default: () => MyPopper
|
|
1387
|
+
});
|
|
1388
|
+
function MyPopper({
|
|
1389
|
+
id,
|
|
1390
|
+
listboxId,
|
|
1391
|
+
anchorEl,
|
|
1392
|
+
allMinimalOptions,
|
|
1393
|
+
options,
|
|
1394
|
+
closeHandler,
|
|
1395
|
+
title,
|
|
1396
|
+
placement = "bottom-start",
|
|
1397
|
+
multiple = true,
|
|
1398
|
+
disabled = false,
|
|
1399
|
+
useGroup,
|
|
1400
|
+
isAddOptionEnabled,
|
|
1401
|
+
addOptionHandler,
|
|
1402
|
+
isPopperFreezed
|
|
1403
|
+
}) {
|
|
1404
|
+
const minimal = useSelector()("minimal");
|
|
1405
|
+
const { select } = useStateContext();
|
|
1406
|
+
const [query, setQuery] = (0, import_react3.useState)("");
|
|
1407
|
+
const open = Boolean(anchorEl);
|
|
1408
|
+
const listboxRef = (0, import_react3.useRef)(null);
|
|
1409
|
+
const pinnedScrollTop = (0, import_react3.useRef)(null);
|
|
1410
|
+
(0, import_react3.useEffect)(() => {
|
|
1411
|
+
if (open) setQuery("");
|
|
1412
|
+
}, [open]);
|
|
1413
|
+
(0, import_react3.useLayoutEffect)(() => {
|
|
1414
|
+
if (!open) {
|
|
1415
|
+
pinnedScrollTop.current = null;
|
|
1416
|
+
return;
|
|
1417
|
+
}
|
|
1418
|
+
const list = listboxRef.current;
|
|
1419
|
+
const top = pinnedScrollTop.current;
|
|
1420
|
+
if (list == null || top == null) return;
|
|
1421
|
+
list.scrollTop = top;
|
|
1422
|
+
const id2 = window.requestAnimationFrame(() => {
|
|
1423
|
+
if (listboxRef.current) listboxRef.current.scrollTop = top;
|
|
1424
|
+
pinnedScrollTop.current = null;
|
|
1425
|
+
});
|
|
1426
|
+
return () => window.cancelAnimationFrame(id2);
|
|
1427
|
+
}, [open, minimal]);
|
|
1428
|
+
(0, import_react3.useEffect)(() => {
|
|
1429
|
+
if (!open) return;
|
|
1430
|
+
const id2 = window.setTimeout(() => {
|
|
1431
|
+
if (listboxRef.current) listboxRef.current.scrollTop = 0;
|
|
1432
|
+
}, 30);
|
|
1433
|
+
return () => window.clearTimeout(id2);
|
|
1434
|
+
}, [open]);
|
|
1435
|
+
const handleChange = (event, newValue, reason) => {
|
|
1436
|
+
if (event.type === "keydown" && reason === "removeOption") {
|
|
1437
|
+
return;
|
|
1438
|
+
}
|
|
1439
|
+
if (listboxRef.current) {
|
|
1440
|
+
pinnedScrollTop.current = listboxRef.current.scrollTop;
|
|
1441
|
+
}
|
|
1442
|
+
if (!multiple && (newValue == null || newValue === "")) {
|
|
1443
|
+
const cleared = select(null);
|
|
1444
|
+
if (!isPopperFreezed) closeHandler?.(cleared);
|
|
1445
|
+
return;
|
|
1446
|
+
}
|
|
1447
|
+
const currentId = !multiple && minimal && !Array.isArray(minimal) ? minimal.id : null;
|
|
1448
|
+
const nextOption = Array.isArray(newValue) ? newValue[0] : newValue;
|
|
1449
|
+
if (!multiple && currentId && nextOption && nextOption.id === currentId) {
|
|
1450
|
+
const cleared = select(null);
|
|
1451
|
+
if (!isPopperFreezed) closeHandler?.(cleared);
|
|
1452
|
+
return;
|
|
1453
|
+
}
|
|
1454
|
+
const newState = select(newValue);
|
|
1455
|
+
if (!multiple && !isPopperFreezed) {
|
|
1456
|
+
closeHandler?.(newState);
|
|
1457
|
+
}
|
|
1458
|
+
};
|
|
1459
|
+
const popperId = open ? id : void 0;
|
|
1460
|
+
const popperWidth = Math.max(anchorEl?.offsetWidth ?? 320, 320);
|
|
1461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1462
|
+
PickerPopper,
|
|
1463
|
+
{
|
|
1464
|
+
id: popperId,
|
|
1465
|
+
open,
|
|
1466
|
+
anchorEl,
|
|
1467
|
+
disablePortal: true,
|
|
1468
|
+
placement,
|
|
1469
|
+
style: { "--w": `${popperWidth}px` },
|
|
1470
|
+
modifiers: [
|
|
1471
|
+
{ name: "offset", options: { offset: [0, 8] } },
|
|
1472
|
+
{ name: "preventOverflow", options: { padding: 8 } }
|
|
1473
|
+
],
|
|
1474
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(PickerPaper, { elevation: 0, variant: "outlined", children: [
|
|
1475
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Box.default, { sx: { px: 1.75, pt: 1.5, pb: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1476
|
+
import_Typography.default,
|
|
1477
|
+
{
|
|
1478
|
+
sx: {
|
|
1479
|
+
fontSize: "0.78rem",
|
|
1480
|
+
fontWeight: 600,
|
|
1481
|
+
letterSpacing: "0.02em",
|
|
1482
|
+
color: "var(--picker-text-secondary)",
|
|
1483
|
+
m: 0
|
|
1484
|
+
},
|
|
1485
|
+
children: title
|
|
1486
|
+
}
|
|
1487
|
+
) }) : null,
|
|
1488
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1489
|
+
import_Autocomplete2.default,
|
|
1490
|
+
{
|
|
1491
|
+
open,
|
|
1492
|
+
disabled,
|
|
1493
|
+
multiple,
|
|
1494
|
+
onClose: (_event, reason) => {
|
|
1495
|
+
if (reason === "escape" && !isPopperFreezed) {
|
|
1496
|
+
closeHandler?.();
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
value: multiple ? Array.isArray(minimal) ? minimal : [] : minimal && !Array.isArray(minimal) ? minimal : null,
|
|
1500
|
+
inputValue: query,
|
|
1501
|
+
onInputChange: (_, value, reason) => {
|
|
1502
|
+
if (reason === "reset") return;
|
|
1503
|
+
setQuery(value);
|
|
1504
|
+
},
|
|
1505
|
+
onChange: handleChange,
|
|
1506
|
+
disableCloseOnSelect: Boolean(multiple),
|
|
1507
|
+
selectOnFocus: false,
|
|
1508
|
+
clearOnBlur: false,
|
|
1509
|
+
slots: {
|
|
1510
|
+
popper: PopperComponent,
|
|
1511
|
+
paper: ListSurface
|
|
1512
|
+
},
|
|
1513
|
+
slotProps: {
|
|
1514
|
+
listbox: {
|
|
1515
|
+
id: listboxId,
|
|
1516
|
+
sx: {
|
|
1517
|
+
maxHeight: 320,
|
|
1518
|
+
py: 0.5,
|
|
1519
|
+
overflowX: "hidden",
|
|
1520
|
+
overflowAnchor: "none"
|
|
1521
|
+
},
|
|
1522
|
+
ref: listboxRef
|
|
1523
|
+
}
|
|
1524
|
+
},
|
|
1525
|
+
noOptionsText: "No matches",
|
|
1526
|
+
renderOption: (liProps, option, { selected }, ownerState) => {
|
|
1527
|
+
const { key, onClick, ...optionProps } = liProps;
|
|
1528
|
+
const fullOption = options.find((o) => o.id === option.id);
|
|
1529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1530
|
+
PickerOptionLi,
|
|
1531
|
+
{
|
|
1532
|
+
...optionProps,
|
|
1533
|
+
onClick: (event) => {
|
|
1534
|
+
if (!multiple && selected) {
|
|
1535
|
+
event.preventDefault();
|
|
1536
|
+
event.stopPropagation();
|
|
1537
|
+
if (listboxRef.current) {
|
|
1538
|
+
pinnedScrollTop.current = listboxRef.current.scrollTop;
|
|
1539
|
+
}
|
|
1540
|
+
const cleared = select(null);
|
|
1541
|
+
if (!isPopperFreezed) closeHandler?.(cleared);
|
|
1542
|
+
return;
|
|
1543
|
+
}
|
|
1544
|
+
onClick?.(event);
|
|
1545
|
+
},
|
|
1546
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1547
|
+
OptionRenderer,
|
|
1548
|
+
{
|
|
1549
|
+
disableBR: true,
|
|
1550
|
+
option: fullOption ?? null,
|
|
1551
|
+
selected,
|
|
1552
|
+
disabled: ownerState.disabled || option.disabled,
|
|
1553
|
+
slotProps: {
|
|
1554
|
+
DM: {
|
|
1555
|
+
isShowEndIcon: true,
|
|
1556
|
+
isShowDescription: true
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
)
|
|
1561
|
+
},
|
|
1562
|
+
key
|
|
1563
|
+
);
|
|
1564
|
+
},
|
|
1565
|
+
options: allMinimalOptions,
|
|
1566
|
+
groupBy: useGroup ? ((option) => option.disabled ? MY_LOCAL_DISABLE_GROUP : option.group) : void 0,
|
|
1567
|
+
getOptionLabel: (option) => option.label,
|
|
1568
|
+
getOptionKey: (option) => option.id,
|
|
1569
|
+
getOptionDisabled: (option) => option.disabled ?? false,
|
|
1570
|
+
isOptionEqualToValue: (option, value) => option.id === value?.id,
|
|
1571
|
+
filterOptions: (options2, { inputValue }) => {
|
|
1572
|
+
return options2.filter((option) => {
|
|
1573
|
+
const filterKey = option.filterKey.toLowerCase();
|
|
1574
|
+
const inputVal = inputValue.toLowerCase().split(" ");
|
|
1575
|
+
return inputVal.every((val) => filterKey.includes(val));
|
|
1576
|
+
});
|
|
1577
|
+
},
|
|
1578
|
+
renderInput: (params) => {
|
|
1579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_Box.default, { ref: params.InputProps.ref, sx: pickerSearchSx, children: [
|
|
1580
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Search.default, { sx: { fontSize: 18, color: "var(--picker-text-secondary)", flexShrink: 0 } }),
|
|
1581
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1582
|
+
import_InputBase.default,
|
|
1583
|
+
{
|
|
1584
|
+
fullWidth: true,
|
|
1585
|
+
autoFocus: true,
|
|
1586
|
+
placeholder: "Search",
|
|
1587
|
+
value: query,
|
|
1588
|
+
onChange: (event) => setQuery(event.target.value),
|
|
1589
|
+
inputProps: {
|
|
1590
|
+
...params.inputProps,
|
|
1591
|
+
value: query,
|
|
1592
|
+
onBlur: (e) => {
|
|
1593
|
+
e.preventDefault();
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
)
|
|
1598
|
+
] });
|
|
1599
|
+
},
|
|
1600
|
+
renderGroup: (p) => {
|
|
1601
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("li", { children: [
|
|
1602
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Box.default, { className: `${import_Autocomplete2.autocompleteClasses.groupLabel}`, sx: pickerGroupLabelSx, children: p.group === MY_LOCAL_DISABLE_GROUP ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_Box.default, { component: "span", sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
1603
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_RemoveDoneOutlined.default, { sx: { fontSize: 14 } }),
|
|
1604
|
+
DISABLED_GROUP
|
|
1605
|
+
] }) : p.group }),
|
|
1606
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Box.default, { component: "ul", sx: { padding: 0, margin: 0 }, className: `${import_Autocomplete2.autocompleteClasses.groupUl}`, children: p.children })
|
|
1607
|
+
] }, p.key);
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
),
|
|
1611
|
+
isAddOptionEnabled ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1612
|
+
import_Box.default,
|
|
1613
|
+
{
|
|
1614
|
+
sx: {
|
|
1615
|
+
borderTop: "1px solid var(--picker-divider)",
|
|
1616
|
+
px: 0.75,
|
|
1617
|
+
py: 0.5
|
|
1618
|
+
},
|
|
1619
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1620
|
+
Button,
|
|
1621
|
+
{
|
|
1622
|
+
variant: "text",
|
|
1623
|
+
size: "small",
|
|
1624
|
+
startIcon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Add.default, {}),
|
|
1625
|
+
onClick: addOptionHandler,
|
|
1626
|
+
sx: {
|
|
1627
|
+
width: "100%",
|
|
1628
|
+
justifyContent: "flex-start",
|
|
1629
|
+
px: 1,
|
|
1630
|
+
color: "var(--picker-text-secondary)",
|
|
1631
|
+
fontWeight: 600,
|
|
1632
|
+
letterSpacing: "0.02em"
|
|
1633
|
+
},
|
|
1634
|
+
children: "New option"
|
|
1635
|
+
}
|
|
1636
|
+
)
|
|
1637
|
+
}
|
|
1638
|
+
) : null
|
|
1639
|
+
] })
|
|
1640
|
+
}
|
|
1641
|
+
);
|
|
1642
|
+
}
|
|
1643
|
+
function ListSurface({
|
|
1644
|
+
children,
|
|
1645
|
+
...other
|
|
1646
|
+
}) {
|
|
1647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Box.default, { ...other, sx: { boxShadow: "none", backgroundColor: "transparent" }, children });
|
|
1648
|
+
}
|
|
1649
|
+
function PopperComponent(props) {
|
|
1650
|
+
const { children, sx, ...other } = props;
|
|
1651
|
+
const evaluatedSx = typeof sx === "function" ? {} : sx;
|
|
1652
|
+
const content = typeof children === "function" ? children() : children;
|
|
1653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Box.default, { ...other, sx: evaluatedSx, children: content });
|
|
1654
|
+
}
|
|
1655
|
+
var import_react3, import_Autocomplete2, import_InputBase, import_jsx_runtime9;
|
|
1656
|
+
var init_PopperMenu = __esm({
|
|
1657
|
+
"src/components/elemental/Autocomplete/src/GitHubPicker/PopperMenu.tsx"() {
|
|
1658
|
+
"use strict";
|
|
1659
|
+
"use client";
|
|
1660
|
+
import_react3 = require("react");
|
|
1661
|
+
import_Autocomplete2 = __toESM(require("@mui/material/Autocomplete"));
|
|
1662
|
+
import_InputBase = __toESM(require("@mui/material/InputBase"));
|
|
1663
|
+
init_Box();
|
|
1664
|
+
init_Typography2();
|
|
1665
|
+
init_Button3();
|
|
1666
|
+
init_MuiIcon();
|
|
1667
|
+
init_OptionRenderer();
|
|
1668
|
+
init_popperTheme();
|
|
1669
|
+
init_utils();
|
|
1670
|
+
init_states2();
|
|
1671
|
+
import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
|
|
1675
|
+
// src/components/elemental/Autocomplete/index.ts
|
|
1676
|
+
var Autocomplete_exports = {};
|
|
1677
|
+
__export(Autocomplete_exports, {
|
|
1678
|
+
GitHubPicker: () => GitHubPicker,
|
|
1679
|
+
OptionClass: () => Option
|
|
1680
|
+
});
|
|
1681
|
+
module.exports = __toCommonJS(Autocomplete_exports);
|
|
1682
|
+
|
|
1683
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/GitHubPicker.tsx
|
|
1684
|
+
var import_react4 = require("react");
|
|
1685
|
+
init_Box();
|
|
1686
|
+
init_Typography2();
|
|
1687
|
+
init_Button3();
|
|
1688
|
+
|
|
1689
|
+
// src/components/elemental/Badge/src/Badge/Badge.tsx
|
|
1690
|
+
var import_Badge = __toESM(require("@mui/material/Badge"));
|
|
1691
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1692
|
+
function Badge(p) {
|
|
1693
|
+
const { style_variant, variant, className, ...rest } = p;
|
|
1694
|
+
const badge_var_class = style_variant === "outlined" ? "badge-outlined" : style_variant === "filled" ? "badge-filled" : "badge-outlined";
|
|
1695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_Badge.default, { ...rest, variant, className: badge_var_class + (className ? ` ${className}` : "") });
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/GitHubPicker.tsx
|
|
1699
|
+
init_Overlay();
|
|
1700
|
+
init_MuiIcon();
|
|
1701
|
+
init_func();
|
|
1702
|
+
init_OptionRenderer();
|
|
1703
|
+
init_theme5();
|
|
1704
|
+
init_states2();
|
|
1705
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1706
|
+
var PopperMenu = (0, import_react4.lazy)(() => Promise.resolve().then(() => (init_PopperMenu(), PopperMenu_exports)));
|
|
1707
|
+
var PICKER_ACCENT = {
|
|
1708
|
+
primary: "var(--mui-palette-primary-emphasis)",
|
|
1709
|
+
secondary: "var(--mui-palette-secondary-main)",
|
|
1710
|
+
error: "var(--mui-palette-error-main)",
|
|
1711
|
+
info: "var(--mui-palette-info-main)",
|
|
1712
|
+
success: "var(--mui-palette-success-main)",
|
|
1713
|
+
warning: "var(--mui-palette-warning-main)",
|
|
1714
|
+
system: "var(--mui-palette-system-main)",
|
|
1715
|
+
insight: "var(--mui-palette-insight-main)"
|
|
1716
|
+
};
|
|
1717
|
+
function GitHubPicker({
|
|
1718
|
+
multiple = true,
|
|
1719
|
+
...p
|
|
1720
|
+
}) {
|
|
1721
|
+
const _selectedIdProps = p.selectedIdProps[0];
|
|
1722
|
+
const [anchorEl, setAnchorEl] = (0, import_react4.useState)(null);
|
|
1723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Provider, { selectedIds: _selectedIdProps, options: p.options, isMultiple: multiple, open: Boolean(anchorEl), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Picker, { ...p, multiple, anchorEl, setAnchorEl }) });
|
|
1724
|
+
}
|
|
1725
|
+
function Picker(p) {
|
|
1726
|
+
const {
|
|
1727
|
+
selectedIdProps,
|
|
1728
|
+
options = [],
|
|
1729
|
+
// options for rendering and autocomplete
|
|
1730
|
+
additionSort,
|
|
1731
|
+
title,
|
|
1732
|
+
subtitle,
|
|
1733
|
+
titleIcon,
|
|
1734
|
+
onChange,
|
|
1735
|
+
onDelete,
|
|
1736
|
+
error = false,
|
|
1737
|
+
multiple,
|
|
1738
|
+
// default value set in Parent
|
|
1739
|
+
disabled = false,
|
|
1740
|
+
useGroup = true,
|
|
1741
|
+
isAddOptionEnabled = false,
|
|
1742
|
+
addOptionHandler,
|
|
1743
|
+
isPopperFreezed,
|
|
1744
|
+
variant = "field",
|
|
1745
|
+
color = "secondary",
|
|
1746
|
+
anchorEl,
|
|
1747
|
+
setAnchorEl
|
|
1748
|
+
} = p;
|
|
1749
|
+
const tone = error ? "error" : color;
|
|
1750
|
+
const accent = PICKER_ACCENT[tone];
|
|
1751
|
+
const pickerId = (0, import_react4.useId)();
|
|
1752
|
+
const menuId = `${pickerId}-menu`;
|
|
1753
|
+
const listboxId = `${pickerId}-listbox`;
|
|
1754
|
+
const [selectedIds, sIds] = selectedIdProps;
|
|
1755
|
+
const allMinimalOptions = (0, import_react4.useMemo)(() => getMinimalOptions(options, additionSort), [options, additionSort]);
|
|
1756
|
+
const selectedOpt = allMinimalOptions.filter((itm) => selectedIds.includes(itm.id));
|
|
1757
|
+
const { state, select } = useStateContext();
|
|
1758
|
+
const open = Boolean(anchorEl);
|
|
1759
|
+
const closeHandler = (passedState) => {
|
|
1760
|
+
const newValue = passedState === void 0 ? state.minimal : passedState.minimal;
|
|
1761
|
+
const nextIds = idsFromSelection(Boolean(multiple), newValue);
|
|
1762
|
+
sIds(nextIds);
|
|
1763
|
+
onChange(nextIds);
|
|
1764
|
+
if (anchorEl) {
|
|
1765
|
+
anchorEl.focus();
|
|
1766
|
+
}
|
|
1767
|
+
setAnchorEl(null);
|
|
1768
|
+
};
|
|
1769
|
+
const removeItemHandler = (id) => () => {
|
|
1770
|
+
onDelete(id);
|
|
1771
|
+
sIds((old) => old.filter((itm) => itm !== id));
|
|
1772
|
+
if (multiple) {
|
|
1773
|
+
const current = Array.isArray(state.minimal) ? state.minimal : [];
|
|
1774
|
+
select(current.filter((opt) => opt.id !== id));
|
|
1775
|
+
} else if (!Array.isArray(state.minimal) && state.minimal?.id === id) {
|
|
1776
|
+
select(null);
|
|
1777
|
+
} else if (Array.isArray(state.minimal)) {
|
|
1778
|
+
select(state.minimal.filter((opt) => opt.id !== id));
|
|
1779
|
+
}
|
|
1780
|
+
};
|
|
1781
|
+
const togglePicker = (element) => {
|
|
1782
|
+
if (disabled) return;
|
|
1783
|
+
if (open) {
|
|
1784
|
+
if (isPopperFreezed) return;
|
|
1785
|
+
closeHandler();
|
|
1786
|
+
return;
|
|
1787
|
+
}
|
|
1788
|
+
setAnchorEl(element);
|
|
1789
|
+
};
|
|
1790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1791
|
+
import_ClickAwayListener.default,
|
|
1792
|
+
{
|
|
1793
|
+
onClickAway: () => {
|
|
1794
|
+
if (!open || isPopperFreezed) return;
|
|
1795
|
+
closeHandler();
|
|
1796
|
+
},
|
|
1797
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_Box.default, { children: [
|
|
1798
|
+
variant === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1799
|
+
IconTrigger,
|
|
1800
|
+
{
|
|
1801
|
+
id: pickerId,
|
|
1802
|
+
menuId,
|
|
1803
|
+
open,
|
|
1804
|
+
color: tone,
|
|
1805
|
+
disabled,
|
|
1806
|
+
title,
|
|
1807
|
+
titleIcon,
|
|
1808
|
+
selectedCount: selectedOpt.length,
|
|
1809
|
+
selectedLabels: selectedOpt.map((opt) => opt.label),
|
|
1810
|
+
onToggle: togglePicker
|
|
1811
|
+
}
|
|
1812
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1813
|
+
FieldTrigger,
|
|
1814
|
+
{
|
|
1815
|
+
id: pickerId,
|
|
1816
|
+
menuId,
|
|
1817
|
+
open,
|
|
1818
|
+
error,
|
|
1819
|
+
accent,
|
|
1820
|
+
disabled,
|
|
1821
|
+
title,
|
|
1822
|
+
titleIcon,
|
|
1823
|
+
selectedOpt,
|
|
1824
|
+
options,
|
|
1825
|
+
removeItemHandler,
|
|
1826
|
+
multiple: Boolean(multiple),
|
|
1827
|
+
onToggle: togglePicker
|
|
1828
|
+
}
|
|
1829
|
+
),
|
|
1830
|
+
anchorEl ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react4.Suspense, { fallback: null, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1831
|
+
PopperMenu,
|
|
1832
|
+
{
|
|
1833
|
+
id: menuId,
|
|
1834
|
+
listboxId,
|
|
1835
|
+
anchorEl,
|
|
1836
|
+
allMinimalOptions,
|
|
1837
|
+
options,
|
|
1838
|
+
closeHandler,
|
|
1839
|
+
multiple,
|
|
1840
|
+
disabled,
|
|
1841
|
+
title: subtitle ?? title,
|
|
1842
|
+
useGroup,
|
|
1843
|
+
isAddOptionEnabled,
|
|
1844
|
+
addOptionHandler,
|
|
1845
|
+
isPopperFreezed
|
|
1846
|
+
}
|
|
1847
|
+
) }) : null
|
|
1848
|
+
] })
|
|
1849
|
+
}
|
|
1850
|
+
);
|
|
1851
|
+
}
|
|
1852
|
+
function idsFromSelection(multiple, newValue) {
|
|
1853
|
+
if (multiple) {
|
|
1854
|
+
const list = Array.isArray(newValue) ? newValue : [];
|
|
1855
|
+
return sortByKey(list, "filterKey").map((item) => item.id);
|
|
1856
|
+
}
|
|
1857
|
+
const single = Array.isArray(newValue) ? newValue[0] : newValue;
|
|
1858
|
+
return single?.id ? [single.id] : [];
|
|
1859
|
+
}
|
|
1860
|
+
function getMinimalOptions(options, additionSort) {
|
|
1861
|
+
const minimal = options.map((itm) => itm.minimal());
|
|
1862
|
+
const sortedByFilterKey = sortByKey(minimal, "filterKey");
|
|
1863
|
+
const afterAdditionSort = additionSort ? sortedByFilterKey.sort(additionSort) : sortedByFilterKey;
|
|
1864
|
+
const sortedByGroup = sortByKey(afterAdditionSort, "group");
|
|
1865
|
+
const sortedByDisabled = sortByKey(sortedByGroup, "disabled");
|
|
1866
|
+
return sortedByDisabled;
|
|
1867
|
+
}
|
|
1868
|
+
function FieldTrigger(p) {
|
|
1869
|
+
const { id, menuId, open, error, accent, disabled, title, titleIcon, selectedOpt, options, removeItemHandler, multiple, onToggle } = p;
|
|
1870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1871
|
+
PickerField,
|
|
1872
|
+
{
|
|
1873
|
+
id,
|
|
1874
|
+
open,
|
|
1875
|
+
error,
|
|
1876
|
+
disabled,
|
|
1877
|
+
role: "combobox",
|
|
1878
|
+
tabIndex: disabled ? -1 : 0,
|
|
1879
|
+
"aria-expanded": open,
|
|
1880
|
+
"aria-haspopup": "listbox",
|
|
1881
|
+
"aria-controls": open ? menuId : void 0,
|
|
1882
|
+
"aria-disabled": disabled,
|
|
1883
|
+
style: {
|
|
1884
|
+
"--picker-border-emphasis": accent,
|
|
1885
|
+
"--picker-check": accent,
|
|
1886
|
+
"--picker-focus-ring": `color-mix(in lab, ${accent}, transparent 82%)`
|
|
1887
|
+
},
|
|
1888
|
+
onClick: (event) => onToggle(event.currentTarget),
|
|
1889
|
+
onKeyDown: (event) => {
|
|
1890
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
1891
|
+
event.preventDefault();
|
|
1892
|
+
onToggle(event.currentTarget);
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
children: [
|
|
1896
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1897
|
+
import_Box.default,
|
|
1898
|
+
{
|
|
1899
|
+
sx: {
|
|
1900
|
+
display: "flex",
|
|
1901
|
+
alignItems: "center",
|
|
1902
|
+
gap: 1,
|
|
1903
|
+
minHeight: 20
|
|
1904
|
+
},
|
|
1905
|
+
children: [
|
|
1906
|
+
titleIcon ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1907
|
+
import_Box.default,
|
|
1908
|
+
{
|
|
1909
|
+
sx: {
|
|
1910
|
+
display: "inline-flex",
|
|
1911
|
+
color: "var(--picker-check)",
|
|
1912
|
+
"& svg": { fontSize: "1.05rem" }
|
|
1913
|
+
},
|
|
1914
|
+
children: titleIcon
|
|
1915
|
+
}
|
|
1916
|
+
) : null,
|
|
1917
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1918
|
+
import_Typography.default,
|
|
1919
|
+
{
|
|
1920
|
+
component: "span",
|
|
1921
|
+
sx: {
|
|
1922
|
+
flex: 1,
|
|
1923
|
+
minWidth: 0,
|
|
1924
|
+
fontSize: "0.68rem",
|
|
1925
|
+
fontWeight: 700,
|
|
1926
|
+
letterSpacing: "0.08em",
|
|
1927
|
+
textTransform: "uppercase",
|
|
1928
|
+
color: "var(--picker-text-secondary)",
|
|
1929
|
+
overflow: "hidden",
|
|
1930
|
+
textOverflow: "ellipsis",
|
|
1931
|
+
whiteSpace: "nowrap",
|
|
1932
|
+
m: 0
|
|
1933
|
+
},
|
|
1934
|
+
children: title
|
|
1935
|
+
}
|
|
1936
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Box.default, { sx: { flex: 1 } }),
|
|
1937
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1938
|
+
import_KeyboardArrowDown.default,
|
|
1939
|
+
{
|
|
1940
|
+
sx: {
|
|
1941
|
+
fontSize: 20,
|
|
1942
|
+
color: "var(--picker-text-secondary)",
|
|
1943
|
+
flexShrink: 0,
|
|
1944
|
+
transform: open ? "rotate(180deg)" : "rotate(0deg)",
|
|
1945
|
+
transition: "transform 180ms ease"
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
)
|
|
1949
|
+
]
|
|
1950
|
+
}
|
|
1951
|
+
),
|
|
1952
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1953
|
+
DisplaySelected,
|
|
1954
|
+
{
|
|
1955
|
+
selectedOpt,
|
|
1956
|
+
options,
|
|
1957
|
+
removeItemHandler,
|
|
1958
|
+
disabled,
|
|
1959
|
+
multiple
|
|
1960
|
+
}
|
|
1961
|
+
)
|
|
1962
|
+
]
|
|
1963
|
+
}
|
|
1964
|
+
);
|
|
1965
|
+
}
|
|
1966
|
+
function IconTrigger(p) {
|
|
1967
|
+
const { id, menuId, open, color, disabled, title, titleIcon, selectedCount, selectedLabels, onToggle } = p;
|
|
1968
|
+
const tooltip = selectedLabels.length > 0 ? selectedLabels.join(", ") : title ?? "Select";
|
|
1969
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1970
|
+
Badge,
|
|
1971
|
+
{
|
|
1972
|
+
badgeContent: selectedCount,
|
|
1973
|
+
invisible: selectedCount === 0,
|
|
1974
|
+
color,
|
|
1975
|
+
style_variant: "filled",
|
|
1976
|
+
overlap: "circular",
|
|
1977
|
+
sx: gitHubPickerRootSx,
|
|
1978
|
+
max: 99,
|
|
1979
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Box.default, { sx: { display: "inline-flex" }, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1980
|
+
IconButton_default,
|
|
1981
|
+
{
|
|
1982
|
+
id,
|
|
1983
|
+
title: open ? "" : tooltip,
|
|
1984
|
+
disabled,
|
|
1985
|
+
selected: open,
|
|
1986
|
+
color,
|
|
1987
|
+
"aria-label": title ?? "Select",
|
|
1988
|
+
"aria-expanded": open,
|
|
1989
|
+
"aria-haspopup": "listbox",
|
|
1990
|
+
"aria-controls": open ? menuId : void 0,
|
|
1991
|
+
onClick: (event) => onToggle(event.currentTarget),
|
|
1992
|
+
children: titleIcon ?? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_FilterAlt.default, {})
|
|
1993
|
+
}
|
|
1994
|
+
) })
|
|
1995
|
+
}
|
|
1996
|
+
);
|
|
1997
|
+
}
|
|
1998
|
+
function DisplaySelected(p) {
|
|
1999
|
+
const { selectedOpt, options, removeItemHandler, disabled, multiple } = p;
|
|
2000
|
+
const selectedIds = selectedOpt.map((itm) => itm.id);
|
|
2001
|
+
const displaySelectedOptions = options.filter((itm) => selectedIds.includes(itm.id));
|
|
2002
|
+
if (displaySelectedOptions.length === 0) {
|
|
2003
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
2004
|
+
import_Typography.default,
|
|
2005
|
+
{
|
|
2006
|
+
sx: {
|
|
2007
|
+
fontSize: "0.9rem",
|
|
2008
|
+
fontWeight: 500,
|
|
2009
|
+
color: "var(--picker-text-secondary)",
|
|
2010
|
+
opacity: 0.78,
|
|
2011
|
+
lineHeight: 1.4,
|
|
2012
|
+
m: 0
|
|
2013
|
+
},
|
|
2014
|
+
children: multiple ? "Select options" : "Select an option"
|
|
2015
|
+
}
|
|
2016
|
+
);
|
|
2017
|
+
}
|
|
2018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Box.default, { sx: {
|
|
2019
|
+
overflow: "hidden",
|
|
2020
|
+
display: "flex",
|
|
2021
|
+
flexWrap: "wrap",
|
|
2022
|
+
gap: "6px"
|
|
2023
|
+
}, children: displaySelectedOptions.map((o) => {
|
|
2024
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Box.default, { sx: {
|
|
2025
|
+
overflow: "hidden",
|
|
2026
|
+
maxWidth: "100%"
|
|
2027
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
2028
|
+
OptionRenderer,
|
|
2029
|
+
{
|
|
2030
|
+
option: o,
|
|
2031
|
+
selected: true,
|
|
2032
|
+
isIconClickable: true,
|
|
2033
|
+
removeItemHandler: removeItemHandler(o?.id),
|
|
2034
|
+
disabled,
|
|
2035
|
+
slotProps: {
|
|
2036
|
+
DM: {
|
|
2037
|
+
isShowDescription: false
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
) }, o.id);
|
|
2042
|
+
}) });
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
// src/components/elemental/Autocomplete/src/GitHubPicker/index.ts
|
|
2046
|
+
init_utils();
|
|
2047
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2048
|
+
0 && (module.exports = {
|
|
2049
|
+
GitHubPicker,
|
|
2050
|
+
OptionClass
|
|
2051
|
+
});
|
|
2052
|
+
//# sourceMappingURL=autocomplete.js.map
|