@vuer-ai/vuer-uikit 0.0.101 → 0.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SyncScroll/SyncScroll.cjs +4 -4
- package/dist/SyncScroll/SyncScroll.mjs +4 -4
- package/dist/SyncScroll/index.cjs +4 -4
- package/dist/SyncScroll/index.mjs +4 -4
- package/dist/auth/context/auth-context.cjs +10 -0
- package/dist/auth/context/auth-context.d.cts +15 -0
- package/dist/auth/context/auth-context.d.ts +15 -0
- package/dist/auth/context/auth-context.mjs +1 -0
- package/dist/auth/handler/create-client.cjs +12 -0
- package/dist/auth/handler/create-client.d.cts +7 -0
- package/dist/auth/handler/create-client.d.ts +7 -0
- package/dist/auth/handler/create-client.mjs +3 -0
- package/dist/auth/handler/sign-in-handler.cjs +11 -0
- package/dist/auth/handler/sign-in-handler.d.cts +7 -0
- package/dist/auth/handler/sign-in-handler.d.ts +7 -0
- package/dist/auth/handler/sign-in-handler.mjs +2 -0
- package/dist/auth/hooks/use-vuer-auth.cjs +11 -0
- package/dist/auth/hooks/use-vuer-auth.d.cts +9 -0
- package/dist/auth/hooks/use-vuer-auth.d.ts +9 -0
- package/dist/auth/hooks/use-vuer-auth.mjs +2 -0
- package/dist/auth/hooks/use-vuer-method.cjs +14 -0
- package/dist/auth/hooks/use-vuer-method.d.cts +11 -0
- package/dist/auth/hooks/use-vuer-method.d.ts +11 -0
- package/dist/auth/hooks/use-vuer-method.mjs +5 -0
- package/dist/auth/index.cjs +33 -0
- package/dist/auth/index.d.cts +10 -0
- package/dist/auth/index.d.ts +10 -0
- package/dist/auth/index.mjs +8 -0
- package/dist/auth/localstorage-key.cjs +14 -0
- package/dist/auth/localstorage-key.d.cts +4 -0
- package/dist/auth/localstorage-key.d.ts +4 -0
- package/dist/auth/localstorage-key.mjs +1 -0
- package/dist/auth/types.cjs +14 -0
- package/dist/auth/types.d.cts +3481 -0
- package/dist/auth/types.d.ts +3481 -0
- package/dist/auth/types.mjs +1 -0
- package/dist/auth/vuer-auth-provider.cjs +14 -0
- package/dist/auth/vuer-auth-provider.d.cts +9 -0
- package/dist/auth/vuer-auth-provider.d.ts +9 -0
- package/dist/auth/vuer-auth-provider.mjs +5 -0
- package/dist/{chunk-OJUK6WJ5.mjs → chunk-24IUD6Q3.mjs} +1 -1
- package/dist/{chunk-BMJX3SEO.cjs → chunk-2EG65KGO.cjs} +2 -2
- package/dist/{chunk-MDR7WUX6.cjs → chunk-2JV7MJIF.cjs} +10 -11
- package/dist/{chunk-LPA6WYFD.cjs → chunk-2WD4ZL27.cjs} +4 -4
- package/dist/chunk-3IVDCAFM.mjs +10 -0
- package/dist/{chunk-U7XH7M5B.mjs → chunk-3NSSQHRK.mjs} +7 -8
- package/dist/{chunk-OWEYAVGT.mjs → chunk-3OMGBQ7I.mjs} +8 -5
- package/dist/chunk-3PDV3ZKD.cjs +26 -0
- package/dist/{chunk-ZZLF2YWP.mjs → chunk-3TUONMQ6.mjs} +1 -1
- package/dist/{chunk-TPPM276W.mjs → chunk-3VVQWVDE.mjs} +1 -1
- package/dist/{chunk-JA6XS5KY.cjs → chunk-3XTBLV6T.cjs} +3 -3
- package/dist/chunk-4B44SRRP.cjs +12 -0
- package/dist/{chunk-NT5ZTF56.mjs → chunk-4JGGLCXT.mjs} +1 -1
- package/dist/{chunk-KMCZXNKA.mjs → chunk-4THQPG6Y.mjs} +1 -1
- package/dist/{chunk-PQEAXTVY.mjs → chunk-5KJP6A6C.mjs} +12 -26
- package/dist/chunk-5XBMFADS.cjs +42 -0
- package/dist/{chunk-HKJCPZZG.cjs → chunk-64L2SNKA.cjs} +2 -2
- package/dist/chunk-6BD5MQ5R.cjs +8 -0
- package/dist/chunk-6DYF6WO6.mjs +24 -0
- package/dist/{chunk-2FGRTFK4.mjs → chunk-6XOTWZFC.mjs} +2 -2
- package/dist/{chunk-AAWWWYRN.cjs → chunk-7GJVMFKJ.cjs} +4 -4
- package/dist/{chunk-C4E2MFZB.mjs → chunk-7HOEFGEO.mjs} +1 -1
- package/dist/chunk-7KQXX7QB.mjs +54 -0
- package/dist/{chunk-AJYO5W6O.mjs → chunk-7P563TWH.mjs} +4 -4
- package/dist/{chunk-BIUDC66P.mjs → chunk-7UO6NLB6.mjs} +9 -11
- package/dist/{chunk-OTR4SFDC.cjs → chunk-A2UZY7Y2.cjs} +2 -2
- package/dist/chunk-ACYOVCGH.mjs +30 -0
- package/dist/chunk-ACYZOKPT.mjs +64 -0
- package/dist/chunk-AJQEHMYV.cjs +47 -0
- package/dist/{chunk-7YMH34JL.cjs → chunk-AOV3ADTV.cjs} +2 -2
- package/dist/{chunk-A2PCEL5S.mjs → chunk-AYYX3TVN.mjs} +2 -2
- package/dist/{chunk-MEE3IHTT.mjs → chunk-BFNETXJK.mjs} +185 -22
- package/dist/{chunk-62VCQ2SU.cjs → chunk-BSOJYJ4D.cjs} +1 -1
- package/dist/{chunk-QUFZWF4E.cjs → chunk-C7WHIFJZ.cjs} +4 -4
- package/dist/chunk-CFOMX6SF.mjs +328 -0
- package/dist/{chunk-CZ2YNM7Y.mjs → chunk-CGUQWS2I.mjs} +1 -1
- package/dist/chunk-CHYXRETV.cjs +23 -0
- package/dist/{chunk-INHZ5D7P.mjs → chunk-CZ4GQOXG.mjs} +1 -6
- package/dist/{chunk-CUOGY4FW.mjs → chunk-D4DKSGER.mjs} +1 -1
- package/dist/{chunk-MUQYO2G3.cjs → chunk-D5WOPTKY.cjs} +2 -2
- package/dist/{chunk-D3IW2NW6.mjs → chunk-E2EMVLII.mjs} +1 -1
- package/dist/{chunk-CWAVHHJA.cjs → chunk-EAXBNWXE.cjs} +2 -2
- package/dist/{chunk-73VF2W3D.mjs → chunk-EI5ZOFWX.mjs} +1 -1
- package/dist/{chunk-MIGXY5PR.mjs → chunk-EXQQRW7T.mjs} +1 -1
- package/dist/{chunk-7LLDKYND.mjs → chunk-FK6ZROZE.mjs} +31 -29
- package/dist/chunk-G6U2K2GR.cjs +32 -0
- package/dist/{chunk-DREOOKO2.cjs → chunk-GOGJVFRN.cjs} +4 -4
- package/dist/{chunk-W3J4QTKS.cjs → chunk-H6MFBIRB.cjs} +7 -7
- package/dist/{chunk-NSQOQD43.cjs → chunk-HBIZQDDS.cjs} +1 -6
- package/dist/{chunk-7RIGSS5X.cjs → chunk-HN3AMWUM.cjs} +2 -2
- package/dist/chunk-HPK4YEVK.cjs +27 -0
- package/dist/{chunk-EC4HJUX6.cjs → chunk-IQ5MDNCR.cjs} +4 -4
- package/dist/chunk-IXNXSECD.mjs +45 -0
- package/dist/chunk-IY36FZ5R.mjs +40 -0
- package/dist/{chunk-FFCQKAQA.cjs → chunk-JFIAWTRH.cjs} +2 -2
- package/dist/{chunk-AEVZSYGJ.cjs → chunk-JFJRNNPQ.cjs} +2 -2
- package/dist/{chunk-G7FYBSFO.cjs → chunk-JMFTHHHE.cjs} +5 -5
- package/dist/{chunk-7R2ZBAE6.mjs → chunk-JUSFLIU5.mjs} +1 -1
- package/dist/chunk-JYIVDUDL.cjs +66 -0
- package/dist/{chunk-NTGUD2JN.mjs → chunk-KBC7VNER.mjs} +1 -1
- package/dist/{chunk-JM6NBUDT.cjs → chunk-KR7VBV3B.cjs} +31 -30
- package/dist/{chunk-VTEWRMGQ.mjs → chunk-KRNKB4FM.mjs} +3 -3
- package/dist/{chunk-3UEVUYFQ.cjs → chunk-LQGXG373.cjs} +4 -6
- package/dist/{chunk-4XUJBMDE.mjs → chunk-LRSDE62T.mjs} +4 -6
- package/dist/chunk-LSKJOUAE.cjs +56 -0
- package/dist/{chunk-NO35POZW.mjs → chunk-MHJM7YMG.mjs} +4 -33
- package/dist/{chunk-ZAP4EHBO.cjs → chunk-MIT3YWUC.cjs} +2 -2
- package/dist/{chunk-GDUVAZDW.cjs → chunk-NSUFTZNC.cjs} +2 -2
- package/dist/{chunk-V2IP7UUV.mjs → chunk-PIC2EJWA.mjs} +2 -2
- package/dist/chunk-PKSIXQJX.mjs +20 -0
- package/dist/{chunk-YUHHUSIO.cjs → chunk-PTCDBU72.cjs} +2 -2
- package/dist/{chunk-SQQXY4AY.mjs → chunk-PTGMHZFS.mjs} +1 -1
- package/dist/chunk-PZMA33PL.mjs +25 -0
- package/dist/{chunk-GWIACOMY.cjs → chunk-Q2HC5ZL4.cjs} +3 -38
- package/dist/{chunk-OYNLQTHW.cjs → chunk-RGV3EB3K.cjs} +11 -13
- package/dist/{chunk-LG3PNH2P.mjs → chunk-RIJUPORK.mjs} +1 -1
- package/dist/{chunk-QBFOBDBC.cjs → chunk-RZILHP75.cjs} +2 -2
- package/dist/{chunk-UCRLH44Q.cjs → chunk-SPRBKXGP.cjs} +2 -2
- package/dist/{chunk-PIXIN3IG.mjs → chunk-SYX6TMCQ.mjs} +1 -1
- package/dist/chunk-TC3W4VRO.mjs +6 -0
- package/dist/{chunk-L26ULDYM.mjs → chunk-THMYDDZF.mjs} +1 -1
- package/dist/{chunk-VO3C6RE2.mjs → chunk-UA3OTLX4.mjs} +2 -2
- package/dist/{chunk-6CM4GYJU.mjs → chunk-VEWWUO2N.mjs} +1 -1
- package/dist/{chunk-76V4RD4V.cjs → chunk-VLOFKTSL.cjs} +3 -3
- package/dist/{chunk-6J7ZVRSY.mjs → chunk-VUMOJPEC.mjs} +1 -1
- package/dist/chunk-WGVKFNG6.mjs +5 -0
- package/dist/{chunk-JD4J3RDN.cjs → chunk-WHV4VATL.cjs} +12 -26
- package/dist/{chunk-55RSKLJ5.cjs → chunk-XG56MLQH.cjs} +4 -4
- package/dist/{chunk-TZC4ST5T.cjs → chunk-XOIIYO5J.cjs} +20 -335
- package/dist/{chunk-M5UZ3SBY.cjs → chunk-Z6KE4XDB.cjs} +214 -47
- package/dist/{chunk-AIYM5PFP.cjs → chunk-ZFIEYXJO.cjs} +8 -4
- package/dist/{chunk-5TXABUNC.mjs → chunk-ZNM6PNI6.mjs} +1 -1
- package/dist/{chunk-EQIEKFCA.cjs → chunk-ZRRCYQ53.cjs} +3 -3
- package/dist/chunk-ZULCZ5L6.cjs +8 -0
- package/dist/dial/DialPanel.cjs +67 -66
- package/dist/dial/DialPanel.mjs +66 -65
- package/dist/dial/index.cjs +83 -82
- package/dist/dial/index.mjs +66 -65
- package/dist/dial/wrapped-inputs/ControlledInputs.cjs +74 -69
- package/dist/dial/wrapped-inputs/ControlledInputs.d.cts +2 -1
- package/dist/dial/wrapped-inputs/ControlledInputs.d.ts +2 -1
- package/dist/dial/wrapped-inputs/ControlledInputs.mjs +66 -65
- package/dist/dial/wrapped-inputs/DialInputs.cjs +86 -77
- package/dist/dial/wrapped-inputs/DialInputs.d.cts +3 -1
- package/dist/dial/wrapped-inputs/DialInputs.d.ts +3 -1
- package/dist/dial/wrapped-inputs/DialInputs.mjs +66 -65
- package/dist/dial/wrapped-inputs/DialPresetsInput.cjs +124 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.cts +16 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.d.ts +16 -0
- package/dist/dial/wrapped-inputs/DialPresetsInput.mjs +115 -0
- package/dist/dial/wrapped-inputs/DialVectorInput.cjs +67 -66
- package/dist/dial/wrapped-inputs/DialVectorInput.mjs +66 -65
- package/dist/dial/wrapped-inputs/index.cjs +99 -82
- package/dist/dial/wrapped-inputs/index.d.cts +3 -2
- package/dist/dial/wrapped-inputs/index.d.ts +3 -2
- package/dist/dial/wrapped-inputs/index.mjs +66 -65
- package/dist/highlight-cursor/enhanced-components.cjs +12 -12
- package/dist/highlight-cursor/enhanced-components.mjs +7 -7
- package/dist/highlight-cursor/index.cjs +12 -12
- package/dist/highlight-cursor/index.mjs +7 -7
- package/dist/hooks/index.cjs +21 -21
- package/dist/hooks/index.mjs +4 -4
- package/dist/hooks/useQueryParams.cjs +3 -3
- package/dist/hooks/useQueryParams.mjs +2 -2
- package/dist/index.cjs +404 -423
- package/dist/index.css +13 -13
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.mjs +66 -65
- package/dist/ui/DialBadge.cjs +12 -8
- package/dist/ui/DialBadge.d.cts +11 -6
- package/dist/ui/DialBadge.d.ts +11 -6
- package/dist/ui/DialBadge.mjs +5 -5
- package/dist/ui/UIKitBadge.cjs +9 -9
- package/dist/ui/UIKitBadge.mjs +5 -5
- package/dist/ui/avatar.cjs +9 -33
- package/dist/ui/avatar.d.cts +4 -61
- package/dist/ui/avatar.d.ts +4 -61
- package/dist/ui/avatar.mjs +5 -5
- package/dist/ui/badge.cjs +4 -4
- package/dist/ui/badge.mjs +4 -4
- package/dist/ui/button.cjs +7 -7
- package/dist/ui/button.mjs +5 -5
- package/dist/ui/card.cjs +12 -12
- package/dist/ui/card.mjs +5 -5
- package/dist/ui/checkbox.cjs +4 -4
- package/dist/ui/checkbox.mjs +4 -4
- package/dist/ui/collapsible.cjs +4 -4
- package/dist/ui/collapsible.mjs +4 -4
- package/dist/ui/drawer.cjs +4 -4
- package/dist/ui/drawer.mjs +4 -4
- package/dist/ui/dropdown.cjs +20 -20
- package/dist/ui/dropdown.d.cts +18 -27
- package/dist/ui/dropdown.d.ts +18 -27
- package/dist/ui/dropdown.mjs +5 -5
- package/dist/ui/index.cjs +354 -373
- package/dist/ui/index.d.cts +4 -3
- package/dist/ui/index.d.ts +4 -3
- package/dist/ui/index.mjs +63 -62
- package/dist/ui/inputs/color-input.cjs +7 -7
- package/dist/ui/inputs/color-input.mjs +6 -6
- package/dist/ui/inputs/index.cjs +62 -57
- package/dist/ui/inputs/index.d.cts +1 -0
- package/dist/ui/inputs/index.d.ts +1 -0
- package/dist/ui/inputs/index.mjs +25 -24
- package/dist/ui/inputs/input-numbers.cjs +7 -7
- package/dist/ui/inputs/input-numbers.mjs +6 -6
- package/dist/ui/inputs/input.cjs +8 -8
- package/dist/ui/inputs/input.mjs +5 -5
- package/dist/ui/inputs/number-inputs/CmInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/CmInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/DegInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/DegInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/EulerDegInput.cjs +10 -10
- package/dist/ui/inputs/number-inputs/EulerDegInput.mjs +9 -9
- package/dist/ui/inputs/number-inputs/EulerInput.cjs +9 -9
- package/dist/ui/inputs/number-inputs/EulerInput.mjs +8 -8
- package/dist/ui/inputs/number-inputs/EulerRadInput.cjs +9 -10
- package/dist/ui/inputs/number-inputs/EulerRadInput.d.cts +6 -3
- package/dist/ui/inputs/number-inputs/EulerRadInput.d.ts +6 -3
- package/dist/ui/inputs/number-inputs/EulerRadInput.mjs +8 -9
- package/dist/ui/inputs/number-inputs/InchInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/InchInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/IntInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/IntInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/KVectorInput.cjs +9 -9
- package/dist/ui/inputs/number-inputs/KVectorInput.mjs +8 -8
- package/dist/ui/inputs/number-inputs/QuaternionInput.cjs +9 -9
- package/dist/ui/inputs/number-inputs/QuaternionInput.mjs +8 -8
- package/dist/ui/inputs/number-inputs/RadInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/RadInput.d.cts +1 -0
- package/dist/ui/inputs/number-inputs/RadInput.d.ts +1 -0
- package/dist/ui/inputs/number-inputs/RadInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/TimeInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/TimeInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/Vec3Input.cjs +9 -9
- package/dist/ui/inputs/number-inputs/Vec3Input.mjs +8 -8
- package/dist/ui/inputs/number-inputs/VectorInput.cjs +8 -8
- package/dist/ui/inputs/number-inputs/VectorInput.mjs +7 -7
- package/dist/ui/inputs/number-inputs/index.cjs +42 -42
- package/dist/ui/inputs/number-inputs/index.mjs +19 -19
- package/dist/ui/inputs/presets-input.cjs +9 -9
- package/dist/ui/inputs/presets-input.mjs +8 -8
- package/dist/ui/inputs/presets-rad-input.cjs +24 -0
- package/dist/ui/inputs/presets-rad-input.d.cts +17 -0
- package/dist/ui/inputs/presets-rad-input.d.ts +17 -0
- package/dist/ui/inputs/presets-rad-input.mjs +15 -0
- package/dist/ui/inputs/text-input.cjs +7 -7
- package/dist/ui/inputs/text-input.mjs +6 -6
- package/dist/ui/label.cjs +4 -4
- package/dist/ui/label.mjs +4 -4
- package/dist/ui/layout.cjs +4 -4
- package/dist/ui/layout.mjs +4 -4
- package/dist/ui/layouts/dock-layout/DockLayoutView.cjs +4 -4
- package/dist/ui/layouts/dock-layout/DockLayoutView.mjs +4 -4
- package/dist/ui/layouts/dock-layout/LayoutSlots.cjs +4 -4
- package/dist/ui/layouts/dock-layout/LayoutSlots.mjs +4 -4
- package/dist/ui/layouts/dock-layout/index.cjs +4 -4
- package/dist/ui/layouts/dock-layout/index.mjs +4 -4
- package/dist/ui/layouts/index.cjs +8 -8
- package/dist/ui/layouts/index.mjs +7 -7
- package/dist/ui/layouts/liquid-layout/LayoutSlots.cjs +11 -11
- package/dist/ui/layouts/liquid-layout/LayoutSlots.mjs +5 -5
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.cjs +7 -7
- package/dist/ui/layouts/liquid-layout/LiquidLayoutView.mjs +6 -6
- package/dist/ui/layouts/liquid-layout/index.cjs +7 -7
- package/dist/ui/layouts/liquid-layout/index.mjs +6 -6
- package/dist/ui/modal.cjs +4 -4
- package/dist/ui/modal.mjs +4 -4
- package/dist/ui/navigation.cjs +7 -7
- package/dist/ui/navigation.mjs +6 -6
- package/dist/ui/pagination.cjs +13 -13
- package/dist/ui/pagination.mjs +6 -6
- package/dist/ui/panel.cjs +4 -4
- package/dist/ui/panel.mjs +4 -4
- package/dist/ui/popover.cjs +4 -4
- package/dist/ui/popover.mjs +4 -4
- package/dist/ui/radio-group.cjs +4 -4
- package/dist/ui/radio-group.mjs +4 -4
- package/dist/ui/resizable.cjs +4 -4
- package/dist/ui/resizable.mjs +4 -4
- package/dist/ui/select.cjs +4 -4
- package/dist/ui/select.mjs +4 -4
- package/dist/ui/separator.cjs +4 -4
- package/dist/ui/separator.mjs +4 -4
- package/dist/ui/sheet.cjs +4 -4
- package/dist/ui/sheet.mjs +4 -4
- package/dist/ui/sidebar.cjs +32 -32
- package/dist/ui/sidebar.mjs +8 -8
- package/dist/ui/simple-tree-view.cjs +4 -4
- package/dist/ui/simple-tree-view.mjs +4 -4
- package/dist/ui/skeleton.cjs +4 -4
- package/dist/ui/skeleton.mjs +4 -4
- package/dist/ui/slider.cjs +4 -4
- package/dist/ui/slider.mjs +4 -4
- package/dist/ui/switch.cjs +4 -4
- package/dist/ui/switch.mjs +4 -4
- package/dist/ui/table.cjs +4 -4
- package/dist/ui/table.mjs +4 -4
- package/dist/ui/tabs.cjs +4 -4
- package/dist/ui/tabs.mjs +4 -4
- package/dist/ui/textarea.cjs +4 -4
- package/dist/ui/textarea.mjs +4 -4
- package/dist/ui/theme/ThemeProvider.cjs +16 -20
- package/dist/ui/theme/ThemeProvider.d.cts +3 -10
- package/dist/ui/theme/ThemeProvider.d.ts +3 -10
- package/dist/ui/theme/ThemeProvider.mjs +2 -2
- package/dist/ui/theme/ThemeToggles.cjs +11 -11
- package/dist/ui/theme/ThemeToggles.mjs +8 -8
- package/dist/ui/theme/index.cjs +16 -20
- package/dist/ui/theme/index.d.cts +1 -1
- package/dist/ui/theme/index.d.ts +1 -1
- package/dist/ui/theme/index.mjs +8 -8
- package/dist/ui/theme/themeScript.cjs +2 -2
- package/dist/ui/theme/themeScript.d.cts +1 -2
- package/dist/ui/theme/themeScript.d.ts +1 -2
- package/dist/ui/theme/themeScript.mjs +1 -1
- package/dist/ui/toggle-buttons.cjs +4 -4
- package/dist/ui/toggle-buttons.mjs +4 -4
- package/dist/ui/toggle-group.cjs +4 -4
- package/dist/ui/toggle-group.mjs +4 -4
- package/dist/ui/toggle.cjs +4 -4
- package/dist/ui/toggle.mjs +4 -4
- package/dist/ui/toolbar.cjs +8 -8
- package/dist/ui/toolbar.mjs +5 -5
- package/dist/ui/tooltip.cjs +4 -4
- package/dist/ui/tooltip.mjs +4 -4
- package/dist/ui/tree-view/TreeSearchBar.cjs +7 -7
- package/dist/ui/tree-view/TreeSearchBar.mjs +6 -6
- package/dist/ui/tree-view/TreeView.cjs +4 -4
- package/dist/ui/tree-view/TreeView.mjs +4 -4
- package/dist/ui/tree-view/index.cjs +8 -8
- package/dist/ui/tree-view/index.mjs +7 -7
- package/dist/ui/tree-view-legacy.cjs +10 -10
- package/dist/ui/tree-view-legacy.mjs +6 -6
- package/dist/ui/waterfall/CursorOverlay.cjs +4 -4
- package/dist/ui/waterfall/CursorOverlay.mjs +4 -4
- package/dist/ui/waterfall/TimelineEvent.cjs +4 -4
- package/dist/ui/waterfall/TimelineEvent.mjs +4 -4
- package/dist/ui/waterfall/TimelineProcessBar.cjs +4 -4
- package/dist/ui/waterfall/TimelineProcessBar.mjs +4 -4
- package/dist/ui/waterfall/Wedges.cjs +4 -4
- package/dist/ui/waterfall/Wedges.mjs +4 -4
- package/dist/ui/waterfall/index.cjs +12 -12
- package/dist/ui/waterfall/index.mjs +11 -11
- package/package.json +7 -1
- package/src/auth/context/auth-context.ts +16 -0
- package/src/auth/handler/create-client.ts +23 -0
- package/src/auth/handler/sign-in-handler.ts +66 -0
- package/src/auth/hooks/use-vuer-auth.ts +10 -0
- package/src/auth/hooks/use-vuer-method.ts +35 -0
- package/src/auth/index.ts +6 -0
- package/src/auth/localstorage-key.ts +3 -0
- package/src/auth/types.ts +56 -0
- package/src/auth/vuer-auth-provider.tsx +35 -0
- package/src/dial/DialPanel.tsx +46 -3
- package/src/dial/wrapped-inputs/ControlledInputs.tsx +17 -0
- package/src/dial/wrapped-inputs/DialInputs.tsx +77 -0
- package/src/dial/wrapped-inputs/DialPresetsInput.tsx +79 -0
- package/src/dial/wrapped-inputs/index.ts +6 -0
- package/src/ui/DialBadge.tsx +18 -7
- package/src/ui/avatar.tsx +4 -85
- package/src/ui/button.tsx +0 -5
- package/src/ui/card.tsx +1 -1
- package/src/ui/dropdown.tsx +21 -366
- package/src/ui/inputs/index.tsx +1 -0
- package/src/ui/inputs/input.tsx +3 -5
- package/src/ui/inputs/number-inputs/EulerRadInput.tsx +46 -5
- package/src/ui/inputs/number-inputs/RadInput.tsx +31 -5
- package/src/ui/inputs/presets-rad-input.tsx +77 -0
- package/src/ui/layouts/liquid-layout/LayoutSlots.tsx +2 -2
- package/src/ui/sidebar.tsx +7 -8
- package/src/ui/theme/ThemeProvider.tsx +69 -52
- package/src/ui/theme/ThemeToggles.tsx +12 -12
- package/src/ui/theme/index.ts +6 -16
- package/src/ui/theme/themeScript.tsx +24 -50
- package/src/ui/toolbar.tsx +3 -3
- package/dist/chunk-DVKONMS7.cjs +0 -20
- package/dist/chunk-GPV4XELL.mjs +0 -18
- package/dist/chunk-H2GERFBG.cjs +0 -13
- package/dist/chunk-H4IDSUG5.mjs +0 -643
- package/dist/chunk-TY47DFGO.mjs +0 -11
- package/dist/{chunk-ADYUCJMQ.mjs → chunk-2KQRWXNO.mjs} +0 -0
- package/dist/{chunk-SQRAUVEP.cjs → chunk-63OJOP6W.cjs} +0 -0
- package/dist/{chunk-LYZJNEOR.cjs → chunk-Q4XH2Z5M.cjs} +1 -1
- package/dist/{chunk-OEIF3JCH.mjs → chunk-U3LN5NB6.mjs} +1 -1
package/src/ui/dropdown.tsx
CHANGED
|
@@ -2,34 +2,17 @@ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
|
2
2
|
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
5
|
-
import { cn
|
|
5
|
+
import { cn } from "../hooks";
|
|
6
6
|
|
|
7
|
-
function
|
|
7
|
+
function DropdownMenu({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Root>) {
|
|
8
8
|
return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
function
|
|
12
|
-
return <div data-slot="dropdown-menu" {...props} />;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const DropdownMenu = createClientOnlyComponent(DropdownMenuRoot, DropdownMenuFallback);
|
|
16
|
-
|
|
17
|
-
function DropdownMenuPortalRoot({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Portal>) {
|
|
11
|
+
function DropdownMenuPortal({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Portal>) {
|
|
18
12
|
return <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />;
|
|
19
13
|
}
|
|
20
14
|
|
|
21
|
-
function
|
|
22
|
-
return <div data-slot="dropdown-menu-portal">{children}</div>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const DropdownMenuPortal = createClientOnlyComponent(
|
|
26
|
-
DropdownMenuPortalRoot,
|
|
27
|
-
DropdownMenuPortalFallback,
|
|
28
|
-
);
|
|
29
|
-
|
|
30
|
-
function DropdownMenuTriggerRoot({
|
|
31
|
-
...props
|
|
32
|
-
}: ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {
|
|
15
|
+
function DropdownMenuTrigger({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {
|
|
33
16
|
return (
|
|
34
17
|
<DropdownMenuPrimitive.Trigger
|
|
35
18
|
data-slot="dropdown-menu-trigger"
|
|
@@ -39,32 +22,7 @@ function DropdownMenuTriggerRoot({
|
|
|
39
22
|
);
|
|
40
23
|
}
|
|
41
24
|
|
|
42
|
-
function
|
|
43
|
-
asChild,
|
|
44
|
-
children,
|
|
45
|
-
...props
|
|
46
|
-
}: ComponentProps<"button"> & { asChild?: boolean }) {
|
|
47
|
-
if (asChild) {
|
|
48
|
-
return <>{children}</>;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return (
|
|
52
|
-
<button
|
|
53
|
-
data-slot="dropdown-menu-trigger"
|
|
54
|
-
className="text-text-primary hover:text-text-highlight disabled:text-text-tertiary active:text-text-secondary"
|
|
55
|
-
{...props}
|
|
56
|
-
>
|
|
57
|
-
{children}
|
|
58
|
-
</button>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const DropdownMenuTrigger = createClientOnlyComponent(
|
|
63
|
-
DropdownMenuTriggerRoot,
|
|
64
|
-
DropdownMenuTriggerFallback,
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
function DropdownMenuContentRoot({
|
|
25
|
+
function DropdownMenuContent({
|
|
68
26
|
className,
|
|
69
27
|
sideOffset = 4,
|
|
70
28
|
...props
|
|
@@ -106,35 +64,7 @@ function DropdownMenuContentRoot({
|
|
|
106
64
|
);
|
|
107
65
|
}
|
|
108
66
|
|
|
109
|
-
function
|
|
110
|
-
return (
|
|
111
|
-
<div
|
|
112
|
-
data-slot="dropdown-menu-content"
|
|
113
|
-
className={cn(
|
|
114
|
-
[
|
|
115
|
-
"bg-bg-primary",
|
|
116
|
-
"p-md",
|
|
117
|
-
"relative",
|
|
118
|
-
"z-50",
|
|
119
|
-
"overflow-x-hidden",
|
|
120
|
-
"overflow-y-auto",
|
|
121
|
-
"rounded-uk-md",
|
|
122
|
-
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
123
|
-
"liquid:liquid-bg",
|
|
124
|
-
],
|
|
125
|
-
className,
|
|
126
|
-
)}
|
|
127
|
-
{...props}
|
|
128
|
-
/>
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const DropdownMenuContent = createClientOnlyComponent(
|
|
133
|
-
DropdownMenuContentRoot,
|
|
134
|
-
DropdownMenuContentFallback,
|
|
135
|
-
);
|
|
136
|
-
|
|
137
|
-
function DropdownMenuGroupRoot({
|
|
67
|
+
function DropdownMenuGroup({
|
|
138
68
|
className,
|
|
139
69
|
...props
|
|
140
70
|
}: ComponentProps<typeof DropdownMenuPrimitive.Group>) {
|
|
@@ -147,16 +77,7 @@ function DropdownMenuGroupRoot({
|
|
|
147
77
|
);
|
|
148
78
|
}
|
|
149
79
|
|
|
150
|
-
function
|
|
151
|
-
return <div data-slot="dropdown-menu-group" className={cn("space-y-xs", className)} {...props} />;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
const DropdownMenuGroup = createClientOnlyComponent(
|
|
155
|
-
DropdownMenuGroupRoot,
|
|
156
|
-
DropdownMenuGroupFallback,
|
|
157
|
-
);
|
|
158
|
-
|
|
159
|
-
function DropdownMenuItemRoot({
|
|
80
|
+
function DropdownMenuItem({
|
|
160
81
|
className,
|
|
161
82
|
inset,
|
|
162
83
|
variant = "default",
|
|
@@ -182,7 +103,7 @@ function DropdownMenuItemRoot({
|
|
|
182
103
|
"cursor-default",
|
|
183
104
|
"rounded-uk-xs",
|
|
184
105
|
"text-uk-sm",
|
|
185
|
-
"leading-uk-
|
|
106
|
+
"leading-uk-sm",
|
|
186
107
|
"outline-hidden",
|
|
187
108
|
"select-none",
|
|
188
109
|
"hover:bg-bg-tertiary",
|
|
@@ -200,55 +121,7 @@ function DropdownMenuItemRoot({
|
|
|
200
121
|
);
|
|
201
122
|
}
|
|
202
123
|
|
|
203
|
-
function
|
|
204
|
-
className,
|
|
205
|
-
inset,
|
|
206
|
-
variant = "default",
|
|
207
|
-
...props
|
|
208
|
-
}: ComponentProps<"div"> & {
|
|
209
|
-
inset?: boolean;
|
|
210
|
-
variant?: "default" | "destructive";
|
|
211
|
-
asChild?: boolean;
|
|
212
|
-
}) {
|
|
213
|
-
return (
|
|
214
|
-
<div
|
|
215
|
-
data-slot="dropdown-menu-item"
|
|
216
|
-
data-inset={inset}
|
|
217
|
-
data-variant={variant}
|
|
218
|
-
className={cn(
|
|
219
|
-
[
|
|
220
|
-
"w-full",
|
|
221
|
-
"flex",
|
|
222
|
-
"gap-md",
|
|
223
|
-
"items-center",
|
|
224
|
-
"px-sm",
|
|
225
|
-
"py-xs",
|
|
226
|
-
"relative",
|
|
227
|
-
"cursor-default",
|
|
228
|
-
"rounded-uk-xs",
|
|
229
|
-
"text-uk-sm",
|
|
230
|
-
"leading-uk-xs",
|
|
231
|
-
"outline-hidden",
|
|
232
|
-
"select-none",
|
|
233
|
-
"hover:bg-bg-tertiary",
|
|
234
|
-
"[&_svg]:pointer-events-none",
|
|
235
|
-
"[&_svg]:shrink-0",
|
|
236
|
-
"[&_svg:not([class*='size-'])]:size-4",
|
|
237
|
-
"[&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
238
|
-
],
|
|
239
|
-
className,
|
|
240
|
-
)}
|
|
241
|
-
{...props}
|
|
242
|
-
/>
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
const DropdownMenuItem = createClientOnlyComponent(
|
|
247
|
-
DropdownMenuItemRoot as never,
|
|
248
|
-
DropdownMenuItemFallback,
|
|
249
|
-
);
|
|
250
|
-
|
|
251
|
-
function DropdownMenuCheckboxItemRoot({
|
|
124
|
+
function DropdownMenuCheckboxItem({
|
|
252
125
|
className,
|
|
253
126
|
children,
|
|
254
127
|
checked,
|
|
@@ -270,7 +143,7 @@ function DropdownMenuCheckboxItemRoot({
|
|
|
270
143
|
"cursor-default",
|
|
271
144
|
"rounded-uk-xs",
|
|
272
145
|
"text-uk-sm",
|
|
273
|
-
"leading-uk-
|
|
146
|
+
"leading-uk-sm",
|
|
274
147
|
"outline-hidden",
|
|
275
148
|
"select-none",
|
|
276
149
|
"hover:bg-bg-tertiary",
|
|
@@ -295,69 +168,13 @@ function DropdownMenuCheckboxItemRoot({
|
|
|
295
168
|
);
|
|
296
169
|
}
|
|
297
170
|
|
|
298
|
-
function
|
|
299
|
-
className,
|
|
300
|
-
children,
|
|
301
|
-
checked,
|
|
302
|
-
...props
|
|
303
|
-
}: ComponentProps<"div"> & { checked?: boolean; asChild?: boolean }) {
|
|
304
|
-
return (
|
|
305
|
-
<div
|
|
306
|
-
data-slot="dropdown-menu-checkbox-item"
|
|
307
|
-
className={cn(
|
|
308
|
-
[
|
|
309
|
-
"w-full",
|
|
310
|
-
"flex",
|
|
311
|
-
"gap-md",
|
|
312
|
-
"items-center",
|
|
313
|
-
"pr-md",
|
|
314
|
-
"pl-[calc(var(--spacing-xl)*1.8)]",
|
|
315
|
-
"py-xs",
|
|
316
|
-
"relative",
|
|
317
|
-
"cursor-default",
|
|
318
|
-
"rounded-uk-xs",
|
|
319
|
-
"text-uk-sm",
|
|
320
|
-
"leading-uk-xs",
|
|
321
|
-
"outline-hidden",
|
|
322
|
-
"select-none",
|
|
323
|
-
"hover:bg-bg-tertiary",
|
|
324
|
-
"[&_svg:not([class*='size-'])]:size-4",
|
|
325
|
-
"[&_svg]:pointer-events-none",
|
|
326
|
-
"[&_svg]:shrink-0",
|
|
327
|
-
],
|
|
328
|
-
className,
|
|
329
|
-
)}
|
|
330
|
-
{...props}
|
|
331
|
-
>
|
|
332
|
-
<span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
333
|
-
{checked && <CheckIcon className="size-4" />}
|
|
334
|
-
</span>
|
|
335
|
-
{children}
|
|
336
|
-
</div>
|
|
337
|
-
);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
const DropdownMenuCheckboxItem = createClientOnlyComponent(
|
|
341
|
-
DropdownMenuCheckboxItemRoot as never,
|
|
342
|
-
DropdownMenuCheckboxItemFallback,
|
|
343
|
-
);
|
|
344
|
-
|
|
345
|
-
function DropdownMenuRadioGroupRoot({
|
|
171
|
+
function DropdownMenuRadioGroup({
|
|
346
172
|
...props
|
|
347
173
|
}: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {
|
|
348
174
|
return <DropdownMenuPrimitive.RadioGroup data-slot="dropdown-menu-radio-group" {...props} />;
|
|
349
175
|
}
|
|
350
176
|
|
|
351
|
-
function
|
|
352
|
-
return <div data-slot="dropdown-menu-radio-group" {...props} />;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
const DropdownMenuRadioGroup = createClientOnlyComponent(
|
|
356
|
-
DropdownMenuRadioGroupRoot,
|
|
357
|
-
DropdownMenuRadioGroupFallback,
|
|
358
|
-
);
|
|
359
|
-
|
|
360
|
-
function DropdownMenuRadioItemRoot({
|
|
177
|
+
function DropdownMenuRadioItem({
|
|
361
178
|
className,
|
|
362
179
|
children,
|
|
363
180
|
...props
|
|
@@ -381,7 +198,7 @@ function DropdownMenuRadioItemRoot({
|
|
|
381
198
|
"pl-[calc(var(--spacing-xl)*1.8)]",
|
|
382
199
|
"pr-md",
|
|
383
200
|
"text-uk-sm",
|
|
384
|
-
"leading-uk-
|
|
201
|
+
"leading-uk-sm",
|
|
385
202
|
"data-[disabled]:pointer-events-none",
|
|
386
203
|
"data-[disabled]:text-bg-quaternary",
|
|
387
204
|
"[&_svg:not([class*='size-'])]:size-4",
|
|
@@ -402,53 +219,7 @@ function DropdownMenuRadioItemRoot({
|
|
|
402
219
|
);
|
|
403
220
|
}
|
|
404
221
|
|
|
405
|
-
function
|
|
406
|
-
className,
|
|
407
|
-
children,
|
|
408
|
-
...props
|
|
409
|
-
}: ComponentProps<"div"> & { asChild?: boolean }) {
|
|
410
|
-
return (
|
|
411
|
-
<div
|
|
412
|
-
data-slot="dropdown-menu-radio-item"
|
|
413
|
-
className={cn(
|
|
414
|
-
[
|
|
415
|
-
"w-full",
|
|
416
|
-
"hover:bg-bg-tertiary",
|
|
417
|
-
"outline-hidden",
|
|
418
|
-
"relative",
|
|
419
|
-
"flex",
|
|
420
|
-
"cursor-default",
|
|
421
|
-
"select-none",
|
|
422
|
-
"items-center",
|
|
423
|
-
"gap-md",
|
|
424
|
-
"rounded-uk-xs",
|
|
425
|
-
"py-xs",
|
|
426
|
-
"pl-[calc(var(--spacing-xl)*1.8)]",
|
|
427
|
-
"pr-md",
|
|
428
|
-
"text-uk-sm",
|
|
429
|
-
"leading-uk-xs",
|
|
430
|
-
"[&_svg:not([class*='size-'])]:size-4",
|
|
431
|
-
"[&_svg]:pointer-events-none",
|
|
432
|
-
"[&_svg]:shrink-0",
|
|
433
|
-
],
|
|
434
|
-
className,
|
|
435
|
-
)}
|
|
436
|
-
{...props}
|
|
437
|
-
>
|
|
438
|
-
<span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
|
|
439
|
-
<CircleIcon className="size-2 fill-current" />
|
|
440
|
-
</span>
|
|
441
|
-
{children}
|
|
442
|
-
</div>
|
|
443
|
-
);
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
const DropdownMenuRadioItem = createClientOnlyComponent(
|
|
447
|
-
DropdownMenuRadioItemRoot as never,
|
|
448
|
-
DropdownMenuRadioItemFallback,
|
|
449
|
-
);
|
|
450
|
-
|
|
451
|
-
function DropdownMenuLabelRoot({
|
|
222
|
+
function DropdownMenuLabel({
|
|
452
223
|
className,
|
|
453
224
|
inset,
|
|
454
225
|
...props
|
|
@@ -459,35 +230,13 @@ function DropdownMenuLabelRoot({
|
|
|
459
230
|
<DropdownMenuPrimitive.Label
|
|
460
231
|
data-slot="dropdown-menu-label"
|
|
461
232
|
data-inset={inset}
|
|
462
|
-
className={cn("text-text-secondary text-uk-sm leading-uk-
|
|
233
|
+
className={cn("text-text-secondary text-uk-sm leading-uk-sm pb-lg pt-xs px-sm", className)}
|
|
463
234
|
{...props}
|
|
464
235
|
/>
|
|
465
236
|
);
|
|
466
237
|
}
|
|
467
238
|
|
|
468
|
-
function
|
|
469
|
-
className,
|
|
470
|
-
inset,
|
|
471
|
-
...props
|
|
472
|
-
}: ComponentProps<"div"> & {
|
|
473
|
-
inset?: boolean;
|
|
474
|
-
}) {
|
|
475
|
-
return (
|
|
476
|
-
<div
|
|
477
|
-
data-slot="dropdown-menu-label"
|
|
478
|
-
data-inset={inset}
|
|
479
|
-
className={cn("text-text-secondary text-uk-sm leading-uk-xs px-2 py-1.5", className)}
|
|
480
|
-
{...props}
|
|
481
|
-
/>
|
|
482
|
-
);
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
const DropdownMenuLabel = createClientOnlyComponent(
|
|
486
|
-
DropdownMenuLabelRoot,
|
|
487
|
-
DropdownMenuLabelFallback,
|
|
488
|
-
);
|
|
489
|
-
|
|
490
|
-
function DropdownMenuSeparatorRoot({
|
|
239
|
+
function DropdownMenuSeparator({
|
|
491
240
|
className,
|
|
492
241
|
...props
|
|
493
242
|
}: ComponentProps<typeof DropdownMenuPrimitive.Separator>) {
|
|
@@ -500,42 +249,21 @@ function DropdownMenuSeparatorRoot({
|
|
|
500
249
|
);
|
|
501
250
|
}
|
|
502
251
|
|
|
503
|
-
function DropdownMenuSeparatorFallback({ className, ...props }: ComponentProps<"div">) {
|
|
504
|
-
return (
|
|
505
|
-
<div
|
|
506
|
-
data-slot="dropdown-menu-separator"
|
|
507
|
-
className={cn("bg-line-primary my-lg pointer-events-none h-px", className)}
|
|
508
|
-
{...props}
|
|
509
|
-
/>
|
|
510
|
-
);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
const DropdownMenuSeparator = createClientOnlyComponent(
|
|
514
|
-
DropdownMenuSeparatorRoot,
|
|
515
|
-
DropdownMenuSeparatorFallback,
|
|
516
|
-
);
|
|
517
|
-
|
|
518
252
|
function DropdownMenuShortcut({ className, ...props }: ComponentProps<"span">) {
|
|
519
253
|
return (
|
|
520
254
|
<span
|
|
521
255
|
data-slot="dropdown-menu-shortcut"
|
|
522
|
-
className={cn("text-text-tertiary text-uk-sm leading-uk-
|
|
256
|
+
className={cn("text-text-tertiary text-uk-sm leading-uk-sm ml-auto", className)}
|
|
523
257
|
{...props}
|
|
524
258
|
/>
|
|
525
259
|
);
|
|
526
260
|
}
|
|
527
261
|
|
|
528
|
-
function
|
|
262
|
+
function DropdownMenuSub({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Sub>) {
|
|
529
263
|
return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />;
|
|
530
264
|
}
|
|
531
265
|
|
|
532
|
-
function
|
|
533
|
-
return <div data-slot="dropdown-menu-sub" {...props} />;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
const DropdownMenuSub = createClientOnlyComponent(DropdownMenuSubRoot, DropdownMenuSubFallback);
|
|
537
|
-
|
|
538
|
-
function DropdownMenuSubTriggerRoot({
|
|
266
|
+
function DropdownMenuSubTrigger({
|
|
539
267
|
className,
|
|
540
268
|
inset,
|
|
541
269
|
children,
|
|
@@ -558,7 +286,7 @@ function DropdownMenuSubTriggerRoot({
|
|
|
558
286
|
"cursor-default",
|
|
559
287
|
"rounded-uk-xs",
|
|
560
288
|
"text-uk-sm",
|
|
561
|
-
"leading-uk-
|
|
289
|
+
"leading-uk-sm",
|
|
562
290
|
"outline-hidden",
|
|
563
291
|
"select-none",
|
|
564
292
|
"hover:bg-bg-tertiary",
|
|
@@ -579,54 +307,7 @@ function DropdownMenuSubTriggerRoot({
|
|
|
579
307
|
);
|
|
580
308
|
}
|
|
581
309
|
|
|
582
|
-
function
|
|
583
|
-
className,
|
|
584
|
-
inset,
|
|
585
|
-
children,
|
|
586
|
-
...props
|
|
587
|
-
}: ComponentProps<"div"> & {
|
|
588
|
-
inset?: boolean;
|
|
589
|
-
asChild?: boolean;
|
|
590
|
-
}) {
|
|
591
|
-
return (
|
|
592
|
-
<div
|
|
593
|
-
data-slot="dropdown-menu-sub-trigger"
|
|
594
|
-
data-inset={inset}
|
|
595
|
-
className={cn(
|
|
596
|
-
"w-full",
|
|
597
|
-
"flex",
|
|
598
|
-
"gap-md",
|
|
599
|
-
"items-center",
|
|
600
|
-
"px-sm",
|
|
601
|
-
"py-xs",
|
|
602
|
-
"relative",
|
|
603
|
-
"cursor-default",
|
|
604
|
-
"rounded-uk-xs",
|
|
605
|
-
"text-uk-sm",
|
|
606
|
-
"leading-uk-xs",
|
|
607
|
-
"outline-hidden",
|
|
608
|
-
"select-none",
|
|
609
|
-
"hover:bg-bg-tertiary",
|
|
610
|
-
"[&_svg]:pointer-events-none",
|
|
611
|
-
"[&_svg]:shrink-0",
|
|
612
|
-
"[&_svg:not([class*='size-'])]:size-4",
|
|
613
|
-
"[&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
614
|
-
className,
|
|
615
|
-
)}
|
|
616
|
-
{...props}
|
|
617
|
-
>
|
|
618
|
-
{children}
|
|
619
|
-
<ChevronRightIcon className="ml-auto size-4" />
|
|
620
|
-
</div>
|
|
621
|
-
);
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
const DropdownMenuSubTrigger = createClientOnlyComponent(
|
|
625
|
-
DropdownMenuSubTriggerRoot,
|
|
626
|
-
DropdownMenuSubTriggerFallback,
|
|
627
|
-
);
|
|
628
|
-
|
|
629
|
-
function DropdownMenuSubContentRoot({
|
|
310
|
+
function DropdownMenuSubContent({
|
|
630
311
|
className,
|
|
631
312
|
...props
|
|
632
313
|
}: ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {
|
|
@@ -662,32 +343,6 @@ function DropdownMenuSubContentRoot({
|
|
|
662
343
|
);
|
|
663
344
|
}
|
|
664
345
|
|
|
665
|
-
function DropdownMenuSubContentFallback({ className, ...props }: ComponentProps<"div">) {
|
|
666
|
-
return (
|
|
667
|
-
<div
|
|
668
|
-
data-slot="dropdown-menu-sub-content"
|
|
669
|
-
className={cn(
|
|
670
|
-
"bg-bg-primary",
|
|
671
|
-
"p-md",
|
|
672
|
-
"relative",
|
|
673
|
-
"z-50",
|
|
674
|
-
"overflow-x-hidden",
|
|
675
|
-
"overflow-y-auto",
|
|
676
|
-
"rounded-uk-md",
|
|
677
|
-
"shadow-[0_4px_16px_0_var(--color-shadow-secondary)]",
|
|
678
|
-
"liquid:liquid-bg",
|
|
679
|
-
className,
|
|
680
|
-
)}
|
|
681
|
-
{...props}
|
|
682
|
-
/>
|
|
683
|
-
);
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
const DropdownMenuSubContent = createClientOnlyComponent(
|
|
687
|
-
DropdownMenuSubContentRoot,
|
|
688
|
-
DropdownMenuSubContentFallback,
|
|
689
|
-
);
|
|
690
|
-
|
|
691
346
|
export {
|
|
692
347
|
DropdownMenu,
|
|
693
348
|
DropdownMenuPortal,
|
package/src/ui/inputs/index.tsx
CHANGED
package/src/ui/inputs/input.tsx
CHANGED
|
@@ -9,11 +9,8 @@ const inputRootVariants = cva(
|
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
state: {
|
|
12
|
-
default: [
|
|
13
|
-
|
|
14
|
-
"has-[input:focus]:bg-bg-secondary",
|
|
15
|
-
],
|
|
16
|
-
disabled: ["disabled:cursor-not-allowed", "bg-bg-secondary", "text-text-secondary"],
|
|
12
|
+
default: ["hover:bg-bg-secondary/80", "has-[input:focus]:bg-bg-secondary"],
|
|
13
|
+
disabled: ["disabled:cursor-not-allowed", "bg-bg-quaternary", "text-text-secondary"],
|
|
17
14
|
error: ["hover:bg-danger-primary/10", "bg-danger-primary/20"],
|
|
18
15
|
},
|
|
19
16
|
size: {
|
|
@@ -103,6 +100,7 @@ export const InputRoot = forwardRef<HTMLInputElement, InputRootProps>(function I
|
|
|
103
100
|
"[input[type=number]]:font-number-input",
|
|
104
101
|
"[&::-webkit-inner-spin-button]:appearance-none",
|
|
105
102
|
"[&::-webkit-outer-spin-button]:appearance-none",
|
|
103
|
+
"disabled:cursor-not-allowed",
|
|
106
104
|
],
|
|
107
105
|
inputClassName,
|
|
108
106
|
)}
|
|
@@ -1,12 +1,53 @@
|
|
|
1
|
-
import { forwardRef } from "react";
|
|
1
|
+
import { forwardRef, useMemo } from "react";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { VectorInput, VectorInputProps } from "./VectorInput";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
interface EulerRadInputProps extends Omit<VectorInputProps, "value" | "labels" | "onValuesChange"> {
|
|
6
|
+
value: [number, number, number];
|
|
7
|
+
onValuesChange?: (value: [number, number, number]) => void;
|
|
8
|
+
display?: "deg" | "pi" | "rad";
|
|
9
|
+
}
|
|
6
10
|
|
|
7
11
|
const EulerRadInput = forwardRef<HTMLDivElement, EulerRadInputProps>(
|
|
8
|
-
function EulerRadInput(props, ref) {
|
|
9
|
-
|
|
12
|
+
function EulerRadInput({ value, onValuesChange, display = "rad", ...props }, ref) {
|
|
13
|
+
const displayValues = useMemo(() => {
|
|
14
|
+
if (display === "deg") {
|
|
15
|
+
return value.map((v) => (v * 180) / Math.PI) as [number, number, number];
|
|
16
|
+
} else if (display === "pi") {
|
|
17
|
+
return value.map((v) => v / Math.PI) as [number, number, number];
|
|
18
|
+
}
|
|
19
|
+
return value;
|
|
20
|
+
}, [value, display]);
|
|
21
|
+
|
|
22
|
+
const handleChange = (displayVals: number[]) => {
|
|
23
|
+
let radValues: [number, number, number];
|
|
24
|
+
if (display === "deg") {
|
|
25
|
+
radValues = displayVals.map((v) => (v * Math.PI) / 180) as [number, number, number];
|
|
26
|
+
} else if (display === "pi") {
|
|
27
|
+
radValues = displayVals.map((v) => v * Math.PI) as [number, number, number];
|
|
28
|
+
} else {
|
|
29
|
+
radValues = displayVals as [number, number, number];
|
|
30
|
+
}
|
|
31
|
+
onValuesChange?.(radValues);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const unitSymbol = useMemo(() => {
|
|
35
|
+
if (display === "deg") return "°";
|
|
36
|
+
if (display === "pi") return "π";
|
|
37
|
+
return "rad";
|
|
38
|
+
}, [display]);
|
|
39
|
+
|
|
40
|
+
const labels = [`x${unitSymbol}`, `y${unitSymbol}`, `z${unitSymbol}`];
|
|
41
|
+
|
|
42
|
+
return (
|
|
43
|
+
<VectorInput
|
|
44
|
+
ref={ref}
|
|
45
|
+
value={displayValues}
|
|
46
|
+
onValuesChange={handleChange}
|
|
47
|
+
labels={labels}
|
|
48
|
+
{...props}
|
|
49
|
+
/>
|
|
50
|
+
);
|
|
10
51
|
},
|
|
11
52
|
);
|
|
12
53
|
|
|
@@ -1,22 +1,48 @@
|
|
|
1
|
-
import { forwardRef } from "react";
|
|
1
|
+
import { forwardRef, useMemo } from "react";
|
|
2
2
|
|
|
3
3
|
import { InputNumbers, InputNumbersProps } from "../input-numbers";
|
|
4
4
|
|
|
5
5
|
interface RadInputProps extends Omit<InputNumbersProps, "value" | "onValuesChange" | "onChange"> {
|
|
6
6
|
value?: number;
|
|
7
7
|
onChange?: (value: number) => void;
|
|
8
|
+
display?: "deg" | "pi" | "rad";
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
const RadInput = forwardRef<HTMLDivElement, RadInputProps>(function RadInput(
|
|
11
|
-
{ value = 0, onChange, ...props },
|
|
12
|
+
{ value = 0, onChange, display = "rad", ...props },
|
|
12
13
|
ref,
|
|
13
14
|
) {
|
|
15
|
+
const displayValue = useMemo(() => {
|
|
16
|
+
if (display === "deg") {
|
|
17
|
+
return (value * 180) / Math.PI;
|
|
18
|
+
} else if (display === "pi") {
|
|
19
|
+
return value / Math.PI;
|
|
20
|
+
}
|
|
21
|
+
return value;
|
|
22
|
+
}, [value, display]);
|
|
23
|
+
|
|
24
|
+
const handleChange = (displayVal: number) => {
|
|
25
|
+
let radValue = displayVal;
|
|
26
|
+
if (display === "deg") {
|
|
27
|
+
radValue = (displayVal * Math.PI) / 180;
|
|
28
|
+
} else if (display === "pi") {
|
|
29
|
+
radValue = displayVal * Math.PI;
|
|
30
|
+
}
|
|
31
|
+
onChange?.(radValue);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const suffix = useMemo(() => {
|
|
35
|
+
if (display === "deg") return "°";
|
|
36
|
+
if (display === "pi") return "π";
|
|
37
|
+
return "rad";
|
|
38
|
+
}, [display]);
|
|
39
|
+
|
|
14
40
|
return (
|
|
15
41
|
<InputNumbers
|
|
16
42
|
ref={ref}
|
|
17
|
-
value={[
|
|
18
|
-
onValuesChange={(values) =>
|
|
19
|
-
suffix={[
|
|
43
|
+
value={[displayValue]}
|
|
44
|
+
onValuesChange={(values) => handleChange(values[0])}
|
|
45
|
+
suffix={[suffix]}
|
|
20
46
|
{...props}
|
|
21
47
|
/>
|
|
22
48
|
);
|