@code0-tech/pictor 0.0.0-mvp.26 → 0.0.0-mvp.28
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/assets/components/badge/Badge.style.css +1 -1
- package/dist/assets/components/button/Button.style.css +1 -1
- package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
- package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
- package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
- package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
- package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
- package/dist/assets/components/d-layout/DLayout.style.css +1 -1
- package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
- package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
- package/dist/assets/components/form/Input.style.css +1 -1
- package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/badge/Badge.js +57 -17
- package/dist/components/breadcrumb/Breadcrumb.js +5 -5
- package/dist/components/button/Button.js +8 -8
- package/dist/components/context-menu/ContextMenu.d.ts +31 -0
- package/dist/components/context-menu/ContextMenu.js +191 -0
- package/dist/components/d-application/DApplication.service.d.ts +5 -0
- package/dist/components/d-application/DApplication.service.js +9 -0
- package/dist/components/d-flow/DFlow.d.ts +5 -3
- package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
- package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
- package/dist/components/d-flow/DFlow.js +214 -199
- package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
- package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
- package/dist/components/d-flow/DFlow.service.d.ts +12 -7
- package/dist/components/d-flow/DFlow.service.js +117 -7
- package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
- package/dist/components/d-flow/DFlowEdge.js +69 -0
- package/dist/components/d-flow/index.d.ts +1 -10
- package/dist/components/d-flow/index.js +9 -44
- package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
- package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
- package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
- package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
- package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
- package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
- package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
- package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
- package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
- package/dist/components/d-flow-file/DFlowTabs.js +128 -0
- package/dist/components/d-flow-file/index.d.ts +1 -0
- package/dist/components/d-flow-file/index.js +4 -0
- package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
- package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
- package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
- package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
- package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
- package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
- package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
- package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
- package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
- package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
- package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
- package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
- package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
- package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
- package/dist/components/d-flow-panel/DFlowExport.js +32 -0
- package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
- package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
- package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
- package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
- package/dist/components/d-flow-panel/index.d.ts +5 -0
- package/dist/components/d-flow-panel/index.js +12 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
- package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
- package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
- package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
- package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
- package/dist/components/d-flow-suggestion/index.d.ts +1 -0
- package/dist/components/d-flow-suggestion/index.js +4 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
- package/dist/components/d-flow-type/DFlowType.service.js +12 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
- package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
- package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
- package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
- package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
- package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
- package/dist/components/d-fullscreen/DFullScreen.js +2 -2
- package/dist/components/d-member/DNamespaceMemberList.js +5 -5
- package/dist/components/d-organization/DOrganizationList.js +7 -7
- package/dist/components/d-organization/DOrganizationMenu.js +5 -5
- package/dist/components/d-organization/DOrganizatonContent.js +22 -22
- package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
- package/dist/components/d-project/DNamespaceProjectList.js +5 -5
- package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
- package/dist/components/d-resizable/DResizable.js +18 -17
- package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
- package/dist/components/d-runtime/DRuntimeList.js +7 -7
- package/dist/components/d-user/DUser.session.hook.js +2 -2
- package/dist/components/d-user/DUserContent.js +13 -13
- package/dist/components/d-user/DUserInput.js +9 -9
- package/dist/components/d-user/DUserList.js +9 -9
- package/dist/components/file-tabs/FileTabs.js +2 -2
- package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
- package/dist/components/file-tabs/FileTabs.service.js +68 -16
- package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
- package/dist/components/form/CheckboxInput.js +4 -4
- package/dist/components/form/EmailInput.js +12 -12
- package/dist/components/form/Input.js +220 -206
- package/dist/components/form/Input.selection.hook.js +9 -9
- package/dist/components/form/Input.syntax.hook.js +7 -7
- package/dist/components/form/NumberInput.js +9 -9
- package/dist/components/form/PasswordInput.js +6 -6
- package/dist/components/form/SwitchInput.js +7 -7
- package/dist/components/form/TextInput.js +10 -10
- package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
- package/dist/components/segmented-control/SegmentedControl.js +14 -12
- package/dist/index.d.ts +8 -0
- package/dist/index.js +117 -117
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
- package/dist/node_modules/tslib/tslib.es6.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
- package/dist/utils/generics.d.ts +5 -6
- package/dist/utils/generics.js +2 -2
- package/dist/utils/objectStore.js +15 -15
- package/dist/utils/reactiveArrayService.js +5 -5
- package/package.json +7 -4
- package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
- package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
- package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
- package/dist/components/d-flow/DFlow.view.d.ts +0 -113
- package/dist/components/d-flow/DFlow.view.js +0 -248
- package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
- package/dist/components/d-flow/control/DFlowControl.js +0 -81
- package/dist/components/d-flow/control/index.d.ts +0 -1
- package/dist/components/d-flow/control/index.js +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
- package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
- package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
- package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
- package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
- package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
- package/dist/components/d-flow/export/DFlowExport.js +0 -24
- package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
- package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
- package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
- package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
- package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
- package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
- package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
- package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
- package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
- package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
- package/dist/components/d-flow/minimap/index.d.ts +0 -1
- package/dist/components/d-flow/minimap/index.js +0 -4
- package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
- package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
- package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
- package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
- package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
- package/dist/components/d-flow/suggestion/index.d.ts +0 -2
- package/dist/components/d-flow/suggestion/index.js +0 -7
- package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
- package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
- package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
- package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
- package/dist/components/d-flow/type/DFlowType.service.js +0 -9
- package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
- package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
- package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
- /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
- /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
- /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
- /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
- /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
- /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
- /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
- /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
- /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
- /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
function c() {
|
|
2
|
+
return typeof window < "u";
|
|
3
|
+
}
|
|
4
|
+
function u(t) {
|
|
5
|
+
return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
6
|
+
}
|
|
7
|
+
function i(t) {
|
|
8
|
+
var e;
|
|
9
|
+
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
10
|
+
}
|
|
11
|
+
function N(t) {
|
|
12
|
+
var e;
|
|
13
|
+
return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
14
|
+
}
|
|
15
|
+
function p(t) {
|
|
16
|
+
return c() ? t instanceof Node || t instanceof i(t).Node : !1;
|
|
17
|
+
}
|
|
18
|
+
function m(t) {
|
|
19
|
+
return c() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
20
|
+
}
|
|
21
|
+
function w(t) {
|
|
22
|
+
return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
23
|
+
}
|
|
24
|
+
function f(t) {
|
|
25
|
+
return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
26
|
+
}
|
|
27
|
+
const E = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
28
|
+
function y(t) {
|
|
29
|
+
const {
|
|
30
|
+
overflow: e,
|
|
31
|
+
overflowX: n,
|
|
32
|
+
overflowY: o,
|
|
33
|
+
display: r
|
|
34
|
+
} = S(t);
|
|
35
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
|
|
36
|
+
}
|
|
37
|
+
const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
38
|
+
function A(t) {
|
|
39
|
+
return T.has(u(t));
|
|
40
|
+
}
|
|
41
|
+
const v = [":popover-open", ":modal"];
|
|
42
|
+
function L(t) {
|
|
43
|
+
return v.some((e) => {
|
|
44
|
+
try {
|
|
45
|
+
return t.matches(e);
|
|
46
|
+
} catch {
|
|
47
|
+
return !1;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
|
|
52
|
+
function V(t) {
|
|
53
|
+
const e = O(), n = m(t) ? S(t) : t;
|
|
54
|
+
return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
|
|
55
|
+
}
|
|
56
|
+
function B(t) {
|
|
57
|
+
let e = s(t);
|
|
58
|
+
for (; w(e) && !h(e); ) {
|
|
59
|
+
if (V(e))
|
|
60
|
+
return e;
|
|
61
|
+
if (L(e))
|
|
62
|
+
return null;
|
|
63
|
+
e = s(e);
|
|
64
|
+
}
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
function O() {
|
|
68
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
69
|
+
}
|
|
70
|
+
const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
71
|
+
function h(t) {
|
|
72
|
+
return R.has(u(t));
|
|
73
|
+
}
|
|
74
|
+
function S(t) {
|
|
75
|
+
return i(t).getComputedStyle(t);
|
|
76
|
+
}
|
|
77
|
+
function F(t) {
|
|
78
|
+
return m(t) ? {
|
|
79
|
+
scrollLeft: t.scrollLeft,
|
|
80
|
+
scrollTop: t.scrollTop
|
|
81
|
+
} : {
|
|
82
|
+
scrollLeft: t.scrollX,
|
|
83
|
+
scrollTop: t.scrollY
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function s(t) {
|
|
87
|
+
if (u(t) === "html")
|
|
88
|
+
return t;
|
|
89
|
+
const e = (
|
|
90
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
+
t.assignedSlot || // DOM Element detected.
|
|
92
|
+
t.parentNode || // ShadowRoot detected.
|
|
93
|
+
f(t) && t.host || // Fallback.
|
|
94
|
+
N(t)
|
|
95
|
+
);
|
|
96
|
+
return f(e) ? e.host : e;
|
|
97
|
+
}
|
|
98
|
+
function b(t) {
|
|
99
|
+
const e = s(t);
|
|
100
|
+
return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
|
|
101
|
+
}
|
|
102
|
+
function d(t, e, n) {
|
|
103
|
+
var o;
|
|
104
|
+
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
105
|
+
const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
|
106
|
+
if (g) {
|
|
107
|
+
const a = _(l);
|
|
108
|
+
return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
|
|
109
|
+
}
|
|
110
|
+
return e.concat(r, d(r, [], n));
|
|
111
|
+
}
|
|
112
|
+
function _(t) {
|
|
113
|
+
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
S as getComputedStyle,
|
|
117
|
+
B as getContainingBlock,
|
|
118
|
+
N as getDocumentElement,
|
|
119
|
+
_ as getFrameElement,
|
|
120
|
+
b as getNearestOverflowAncestor,
|
|
121
|
+
u as getNodeName,
|
|
122
|
+
F as getNodeScroll,
|
|
123
|
+
d as getOverflowAncestors,
|
|
124
|
+
s as getParentNode,
|
|
125
|
+
i as getWindow,
|
|
126
|
+
V as isContainingBlock,
|
|
127
|
+
m as isElement,
|
|
128
|
+
w as isHTMLElement,
|
|
129
|
+
h as isLastTraversableNode,
|
|
130
|
+
p as isNode,
|
|
131
|
+
y as isOverflowElement,
|
|
132
|
+
f as isShadowRoot,
|
|
133
|
+
A as isTableElement,
|
|
134
|
+
L as isTopLayer,
|
|
135
|
+
O as isWebKit
|
|
136
|
+
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
const j = ["top", "right", "bottom", "left"], m = Math.min, p = Math.max, C = Math.round, L = Math.floor, E = (t) => ({
|
|
2
|
+
x: t,
|
|
3
|
+
y: t
|
|
4
|
+
}), h = {
|
|
5
|
+
left: "right",
|
|
6
|
+
right: "left",
|
|
7
|
+
bottom: "top",
|
|
8
|
+
top: "bottom"
|
|
9
|
+
}, x = {
|
|
10
|
+
start: "end",
|
|
11
|
+
end: "start"
|
|
12
|
+
};
|
|
13
|
+
function R(t, e, n) {
|
|
14
|
+
return p(t, m(e, n));
|
|
15
|
+
}
|
|
16
|
+
function T(t, e) {
|
|
17
|
+
return typeof t == "function" ? t(e) : t;
|
|
18
|
+
}
|
|
19
|
+
function g(t) {
|
|
20
|
+
return t.split("-")[0];
|
|
21
|
+
}
|
|
22
|
+
function a(t) {
|
|
23
|
+
return t.split("-")[1];
|
|
24
|
+
}
|
|
25
|
+
function b(t) {
|
|
26
|
+
return t === "x" ? "y" : "x";
|
|
27
|
+
}
|
|
28
|
+
function d(t) {
|
|
29
|
+
return t === "y" ? "height" : "width";
|
|
30
|
+
}
|
|
31
|
+
const A = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
32
|
+
function P(t) {
|
|
33
|
+
return A.has(g(t)) ? "y" : "x";
|
|
34
|
+
}
|
|
35
|
+
function y(t) {
|
|
36
|
+
return b(P(t));
|
|
37
|
+
}
|
|
38
|
+
function k(t, e, n) {
|
|
39
|
+
n === void 0 && (n = !1);
|
|
40
|
+
const r = a(t), i = y(t), o = d(i);
|
|
41
|
+
let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
42
|
+
return e.reference[o] > e.floating[o] && (c = f(c)), [c, f(c)];
|
|
43
|
+
}
|
|
44
|
+
function q(t) {
|
|
45
|
+
const e = f(t);
|
|
46
|
+
return [s(t), e, s(e)];
|
|
47
|
+
}
|
|
48
|
+
function s(t) {
|
|
49
|
+
return t.replace(/start|end/g, (e) => x[e]);
|
|
50
|
+
}
|
|
51
|
+
const u = ["left", "right"], l = ["right", "left"], M = ["top", "bottom"], O = ["bottom", "top"];
|
|
52
|
+
function S(t, e, n) {
|
|
53
|
+
switch (t) {
|
|
54
|
+
case "top":
|
|
55
|
+
case "bottom":
|
|
56
|
+
return n ? e ? l : u : e ? u : l;
|
|
57
|
+
case "left":
|
|
58
|
+
case "right":
|
|
59
|
+
return e ? M : O;
|
|
60
|
+
default:
|
|
61
|
+
return [];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function z(t, e, n, r) {
|
|
65
|
+
const i = a(t);
|
|
66
|
+
let o = S(g(t), n === "start", r);
|
|
67
|
+
return i && (o = o.map((c) => c + "-" + i), e && (o = o.concat(o.map(s)))), o;
|
|
68
|
+
}
|
|
69
|
+
function f(t) {
|
|
70
|
+
return t.replace(/left|right|bottom|top/g, (e) => h[e]);
|
|
71
|
+
}
|
|
72
|
+
function w(t) {
|
|
73
|
+
return {
|
|
74
|
+
top: 0,
|
|
75
|
+
right: 0,
|
|
76
|
+
bottom: 0,
|
|
77
|
+
left: 0,
|
|
78
|
+
...t
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function B(t) {
|
|
82
|
+
return typeof t != "number" ? w(t) : {
|
|
83
|
+
top: t,
|
|
84
|
+
right: t,
|
|
85
|
+
bottom: t,
|
|
86
|
+
left: t
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function D(t) {
|
|
90
|
+
const {
|
|
91
|
+
x: e,
|
|
92
|
+
y: n,
|
|
93
|
+
width: r,
|
|
94
|
+
height: i
|
|
95
|
+
} = t;
|
|
96
|
+
return {
|
|
97
|
+
width: r,
|
|
98
|
+
height: i,
|
|
99
|
+
top: n,
|
|
100
|
+
left: e,
|
|
101
|
+
right: e + r,
|
|
102
|
+
bottom: n + i,
|
|
103
|
+
x: e,
|
|
104
|
+
y: n
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
R as clamp,
|
|
109
|
+
E as createCoords,
|
|
110
|
+
T as evaluate,
|
|
111
|
+
w as expandPaddingObject,
|
|
112
|
+
L as floor,
|
|
113
|
+
a as getAlignment,
|
|
114
|
+
y as getAlignmentAxis,
|
|
115
|
+
k as getAlignmentSides,
|
|
116
|
+
d as getAxisLength,
|
|
117
|
+
q as getExpandedPlacements,
|
|
118
|
+
s as getOppositeAlignmentPlacement,
|
|
119
|
+
b as getOppositeAxis,
|
|
120
|
+
z as getOppositeAxisPlacements,
|
|
121
|
+
f as getOppositePlacement,
|
|
122
|
+
B as getPaddingObject,
|
|
123
|
+
g as getSide,
|
|
124
|
+
P as getSideAxis,
|
|
125
|
+
p as max,
|
|
126
|
+
m as min,
|
|
127
|
+
D as rectToClientRect,
|
|
128
|
+
C as round,
|
|
129
|
+
j as sides
|
|
130
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as n from "react";
|
|
2
|
+
import { Primitive as p } from "../../react-primitive/dist/index.js";
|
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
var v = "Arrow", e = n.forwardRef((r, i) => {
|
|
5
|
+
const { children: t, width: a = 10, height: s = 5, ...m } = r;
|
|
6
|
+
return /* @__PURE__ */ o(
|
|
7
|
+
p.svg,
|
|
8
|
+
{
|
|
9
|
+
...m,
|
|
10
|
+
ref: i,
|
|
11
|
+
width: a,
|
|
12
|
+
height: s,
|
|
13
|
+
viewBox: "0 0 30 10",
|
|
14
|
+
preserveAspectRatio: "none",
|
|
15
|
+
children: r.asChild ? t : /* @__PURE__ */ o("polygon", { points: "0,0 30,0 15,10" })
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
e.displayName = v;
|
|
20
|
+
var h = e;
|
|
21
|
+
export {
|
|
22
|
+
e as Arrow,
|
|
23
|
+
h as Root
|
|
24
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import r from "react";
|
|
2
|
+
import { createContextScope as y } from "../../react-context/dist/index.js";
|
|
3
|
+
import { useComposedRefs as M } from "../../react-compose-refs/dist/index.js";
|
|
4
|
+
import { createSlot as x } from "../../react-slot/dist/index.js";
|
|
5
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
6
|
+
function g(s) {
|
|
7
|
+
const m = s + "CollectionProvider", [A, N] = y(m), [_, f] = A(
|
|
8
|
+
m,
|
|
9
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
10
|
+
), p = (c) => {
|
|
11
|
+
const { scope: e, children: l } = c, o = r.useRef(null), t = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
12
|
+
return /* @__PURE__ */ u(_, { scope: e, itemMap: t, collectionRef: o, children: l });
|
|
13
|
+
};
|
|
14
|
+
p.displayName = m;
|
|
15
|
+
const a = s + "CollectionSlot", E = x(a), C = r.forwardRef(
|
|
16
|
+
(c, e) => {
|
|
17
|
+
const { scope: l, children: o } = c, t = f(a, l), n = M(e, t.collectionRef);
|
|
18
|
+
return /* @__PURE__ */ u(E, { ref: n, children: o });
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
C.displayName = a;
|
|
22
|
+
const d = s + "CollectionItemSlot", R = "data-radix-collection-item", T = x(d), I = r.forwardRef(
|
|
23
|
+
(c, e) => {
|
|
24
|
+
const { scope: l, children: o, ...t } = c, n = r.useRef(null), S = M(e, n), i = f(d, l);
|
|
25
|
+
return r.useEffect(() => (i.itemMap.set(n, { ref: n, ...t }), () => void i.itemMap.delete(n))), /* @__PURE__ */ u(T, { [R]: "", ref: S, children: o });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
I.displayName = d;
|
|
29
|
+
function O(c) {
|
|
30
|
+
const e = f(s + "CollectionConsumer", c);
|
|
31
|
+
return r.useCallback(() => {
|
|
32
|
+
const o = e.collectionRef.current;
|
|
33
|
+
if (!o) return [];
|
|
34
|
+
const t = Array.from(o.querySelectorAll(`[${R}]`));
|
|
35
|
+
return Array.from(e.itemMap.values()).sort(
|
|
36
|
+
(i, v) => t.indexOf(i.ref.current) - t.indexOf(v.ref.current)
|
|
37
|
+
);
|
|
38
|
+
}, [e.collectionRef, e.itemMap]);
|
|
39
|
+
}
|
|
40
|
+
return [
|
|
41
|
+
{ Provider: p, Slot: C, ItemSlot: I },
|
|
42
|
+
O,
|
|
43
|
+
N
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
g as createCollection
|
|
48
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as f from "react";
|
|
2
|
+
function l(n, o) {
|
|
3
|
+
if (typeof n == "function")
|
|
4
|
+
return n(o);
|
|
5
|
+
n != null && (n.current = o);
|
|
6
|
+
}
|
|
7
|
+
function i(...n) {
|
|
8
|
+
return (o) => {
|
|
9
|
+
let u = !1;
|
|
10
|
+
const c = n.map((t) => {
|
|
11
|
+
const e = l(t, o);
|
|
12
|
+
return !u && typeof e == "function" && (u = !0), e;
|
|
13
|
+
});
|
|
14
|
+
if (u)
|
|
15
|
+
return () => {
|
|
16
|
+
for (let t = 0; t < c.length; t++) {
|
|
17
|
+
const e = c[t];
|
|
18
|
+
typeof e == "function" ? e() : l(n[t], null);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function s(...n) {
|
|
24
|
+
return f.useCallback(i(...n), n);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
i as composeRefs,
|
|
28
|
+
s as useComposedRefs
|
|
29
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
3
|
+
function P(e, p = []) {
|
|
4
|
+
let n = [];
|
|
5
|
+
function m(s, t) {
|
|
6
|
+
const o = u.createContext(t), c = n.length;
|
|
7
|
+
n = [...n, t];
|
|
8
|
+
const a = (i) => {
|
|
9
|
+
const { scope: f, children: C, ...x } = i, d = f?.[e]?.[c] || o, v = u.useMemo(() => x, Object.values(x));
|
|
10
|
+
return /* @__PURE__ */ _(d.Provider, { value: v, children: C });
|
|
11
|
+
};
|
|
12
|
+
a.displayName = s + "Provider";
|
|
13
|
+
function S(i, f) {
|
|
14
|
+
const C = f?.[e]?.[c] || o, x = u.useContext(C);
|
|
15
|
+
if (x) return x;
|
|
16
|
+
if (t !== void 0) return t;
|
|
17
|
+
throw new Error(`\`${i}\` must be used within \`${s}\``);
|
|
18
|
+
}
|
|
19
|
+
return [a, S];
|
|
20
|
+
}
|
|
21
|
+
const r = () => {
|
|
22
|
+
const s = n.map((t) => u.createContext(t));
|
|
23
|
+
return function(o) {
|
|
24
|
+
const c = o?.[e] || s;
|
|
25
|
+
return u.useMemo(
|
|
26
|
+
() => ({ [`__scope${e}`]: { ...o, [e]: c } }),
|
|
27
|
+
[o, c]
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
return r.scopeName = e, [m, h(r, ...p)];
|
|
32
|
+
}
|
|
33
|
+
function h(...e) {
|
|
34
|
+
const p = e[0];
|
|
35
|
+
if (e.length === 1) return p;
|
|
36
|
+
const n = () => {
|
|
37
|
+
const m = e.map((r) => ({
|
|
38
|
+
useScope: r(),
|
|
39
|
+
scopeName: r.scopeName
|
|
40
|
+
}));
|
|
41
|
+
return function(s) {
|
|
42
|
+
const t = m.reduce((o, { useScope: c, scopeName: a }) => {
|
|
43
|
+
const i = c(s)[`__scope${a}`];
|
|
44
|
+
return { ...o, ...i };
|
|
45
|
+
}, {});
|
|
46
|
+
return u.useMemo(() => ({ [`__scope${p.scopeName}`]: t }), [t]);
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
return n.scopeName = p.scopeName, n;
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
P as createContextScope
|
|
53
|
+
};
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { composeEventHandlers as f } from "../../primitive/dist/index.js";
|
|
3
|
+
import { createContextScope as N } from "../../react-context/dist/index.js";
|
|
4
|
+
import { Primitive as S } from "../../react-primitive/dist/index.js";
|
|
5
|
+
import { createMenuScope as h, Root as w, Anchor as b, Portal as A, Content as I, Label as E, Item as O, Group as y, Sub as T, SubTrigger as G, SubContent as D, Separator as U, Arrow as k, CheckboxItem as L, RadioGroup as B, RadioItem as F, ItemIndicator as X } from "../../react-menu/dist/index.js";
|
|
6
|
+
import { useCallbackRef as j } from "../../react-use-callback-ref/dist/index.js";
|
|
7
|
+
import { useControllableState as H } from "../../react-use-controllable-state/dist/index.js";
|
|
8
|
+
import { jsx as u, jsxs as W, Fragment as K } from "react/jsx-runtime";
|
|
9
|
+
var v = "ContextMenu", [Y] = N(v, [
|
|
10
|
+
h
|
|
11
|
+
]), c = h(), [q, _] = Y(v), z = (e) => {
|
|
12
|
+
const { __scopeContextMenu: n, children: o, onOpenChange: t, dir: r, modal: d = !0 } = e, [p, i] = a.useState(!1), l = c(n), C = j(t), s = a.useCallback(
|
|
13
|
+
(m) => {
|
|
14
|
+
i(m), C(m);
|
|
15
|
+
},
|
|
16
|
+
[C]
|
|
17
|
+
);
|
|
18
|
+
return /* @__PURE__ */ u(
|
|
19
|
+
q,
|
|
20
|
+
{
|
|
21
|
+
scope: n,
|
|
22
|
+
open: p,
|
|
23
|
+
onOpenChange: s,
|
|
24
|
+
modal: d,
|
|
25
|
+
children: /* @__PURE__ */ u(
|
|
26
|
+
w,
|
|
27
|
+
{
|
|
28
|
+
...l,
|
|
29
|
+
dir: r,
|
|
30
|
+
open: p,
|
|
31
|
+
onOpenChange: s,
|
|
32
|
+
modal: d,
|
|
33
|
+
children: o
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
z.displayName = v;
|
|
40
|
+
var g = "ContextMenuTrigger", J = a.forwardRef(
|
|
41
|
+
(e, n) => {
|
|
42
|
+
const { __scopeContextMenu: o, disabled: t = !1, ...r } = e, d = _(g, o), p = c(o), i = a.useRef({ x: 0, y: 0 }), l = a.useRef({
|
|
43
|
+
getBoundingClientRect: () => DOMRect.fromRect({ width: 0, height: 0, ...i.current })
|
|
44
|
+
}), C = a.useRef(0), s = a.useCallback(
|
|
45
|
+
() => window.clearTimeout(C.current),
|
|
46
|
+
[]
|
|
47
|
+
), m = (x) => {
|
|
48
|
+
i.current = { x: x.clientX, y: x.clientY }, d.onOpenChange(!0);
|
|
49
|
+
};
|
|
50
|
+
return a.useEffect(() => s, [s]), a.useEffect(() => void (t && s()), [t, s]), /* @__PURE__ */ W(K, { children: [
|
|
51
|
+
/* @__PURE__ */ u(b, { ...p, virtualRef: l }),
|
|
52
|
+
/* @__PURE__ */ u(
|
|
53
|
+
S.span,
|
|
54
|
+
{
|
|
55
|
+
"data-state": d.open ? "open" : "closed",
|
|
56
|
+
"data-disabled": t ? "" : void 0,
|
|
57
|
+
...r,
|
|
58
|
+
ref: n,
|
|
59
|
+
style: { WebkitTouchCallout: "none", ...e.style },
|
|
60
|
+
onContextMenu: t ? e.onContextMenu : f(e.onContextMenu, (x) => {
|
|
61
|
+
s(), m(x), x.preventDefault();
|
|
62
|
+
}),
|
|
63
|
+
onPointerDown: t ? e.onPointerDown : f(
|
|
64
|
+
e.onPointerDown,
|
|
65
|
+
M((x) => {
|
|
66
|
+
s(), C.current = window.setTimeout(() => m(x), 700);
|
|
67
|
+
})
|
|
68
|
+
),
|
|
69
|
+
onPointerMove: t ? e.onPointerMove : f(e.onPointerMove, M(s)),
|
|
70
|
+
onPointerCancel: t ? e.onPointerCancel : f(e.onPointerCancel, M(s)),
|
|
71
|
+
onPointerUp: t ? e.onPointerUp : f(e.onPointerUp, M(s))
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
] });
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
J.displayName = g;
|
|
78
|
+
var Q = "ContextMenuPortal", V = (e) => {
|
|
79
|
+
const { __scopeContextMenu: n, ...o } = e, t = c(n);
|
|
80
|
+
return /* @__PURE__ */ u(A, { ...t, ...o });
|
|
81
|
+
};
|
|
82
|
+
V.displayName = Q;
|
|
83
|
+
var R = "ContextMenuContent", Z = a.forwardRef(
|
|
84
|
+
(e, n) => {
|
|
85
|
+
const { __scopeContextMenu: o, ...t } = e, r = _(R, o), d = c(o), p = a.useRef(!1);
|
|
86
|
+
return /* @__PURE__ */ u(
|
|
87
|
+
I,
|
|
88
|
+
{
|
|
89
|
+
...d,
|
|
90
|
+
...t,
|
|
91
|
+
ref: n,
|
|
92
|
+
side: "right",
|
|
93
|
+
sideOffset: 2,
|
|
94
|
+
align: "start",
|
|
95
|
+
onCloseAutoFocus: (i) => {
|
|
96
|
+
e.onCloseAutoFocus?.(i), !i.defaultPrevented && p.current && i.preventDefault(), p.current = !1;
|
|
97
|
+
},
|
|
98
|
+
onInteractOutside: (i) => {
|
|
99
|
+
e.onInteractOutside?.(i), !i.defaultPrevented && !r.modal && (p.current = !0);
|
|
100
|
+
},
|
|
101
|
+
style: {
|
|
102
|
+
...e.style,
|
|
103
|
+
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
104
|
+
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
105
|
+
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
106
|
+
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
107
|
+
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
Z.displayName = R;
|
|
114
|
+
var $ = "ContextMenuGroup", ee = a.forwardRef(
|
|
115
|
+
(e, n) => {
|
|
116
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
117
|
+
return /* @__PURE__ */ u(y, { ...r, ...t, ref: n });
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
ee.displayName = $;
|
|
121
|
+
var te = "ContextMenuLabel", ne = a.forwardRef(
|
|
122
|
+
(e, n) => {
|
|
123
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
124
|
+
return /* @__PURE__ */ u(E, { ...r, ...t, ref: n });
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
ne.displayName = te;
|
|
128
|
+
var oe = "ContextMenuItem", re = a.forwardRef(
|
|
129
|
+
(e, n) => {
|
|
130
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
131
|
+
return /* @__PURE__ */ u(O, { ...r, ...t, ref: n });
|
|
132
|
+
}
|
|
133
|
+
);
|
|
134
|
+
re.displayName = oe;
|
|
135
|
+
var ae = "ContextMenuCheckboxItem", ue = a.forwardRef((e, n) => {
|
|
136
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
137
|
+
return /* @__PURE__ */ u(L, { ...r, ...t, ref: n });
|
|
138
|
+
});
|
|
139
|
+
ue.displayName = ae;
|
|
140
|
+
var ce = "ContextMenuRadioGroup", ie = a.forwardRef((e, n) => {
|
|
141
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
142
|
+
return /* @__PURE__ */ u(B, { ...r, ...t, ref: n });
|
|
143
|
+
});
|
|
144
|
+
ie.displayName = ce;
|
|
145
|
+
var se = "ContextMenuRadioItem", pe = a.forwardRef((e, n) => {
|
|
146
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
147
|
+
return /* @__PURE__ */ u(F, { ...r, ...t, ref: n });
|
|
148
|
+
});
|
|
149
|
+
pe.displayName = se;
|
|
150
|
+
var de = "ContextMenuItemIndicator", xe = a.forwardRef((e, n) => {
|
|
151
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
152
|
+
return /* @__PURE__ */ u(X, { ...r, ...t, ref: n });
|
|
153
|
+
});
|
|
154
|
+
xe.displayName = de;
|
|
155
|
+
var le = "ContextMenuSeparator", Ce = a.forwardRef((e, n) => {
|
|
156
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
157
|
+
return /* @__PURE__ */ u(U, { ...r, ...t, ref: n });
|
|
158
|
+
});
|
|
159
|
+
Ce.displayName = le;
|
|
160
|
+
var me = "ContextMenuArrow", fe = a.forwardRef(
|
|
161
|
+
(e, n) => {
|
|
162
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
163
|
+
return /* @__PURE__ */ u(k, { ...r, ...t, ref: n });
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
fe.displayName = me;
|
|
167
|
+
var P = "ContextMenuSub", Me = (e) => {
|
|
168
|
+
const { __scopeContextMenu: n, children: o, onOpenChange: t, open: r, defaultOpen: d } = e, p = c(n), [i, l] = H({
|
|
169
|
+
prop: r,
|
|
170
|
+
defaultProp: d ?? !1,
|
|
171
|
+
onChange: t,
|
|
172
|
+
caller: P
|
|
173
|
+
});
|
|
174
|
+
return /* @__PURE__ */ u(T, { ...p, open: i, onOpenChange: l, children: o });
|
|
175
|
+
};
|
|
176
|
+
Me.displayName = P;
|
|
177
|
+
var ve = "ContextMenuSubTrigger", he = a.forwardRef((e, n) => {
|
|
178
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
179
|
+
return /* @__PURE__ */ u(G, { ...r, ...t, ref: n });
|
|
180
|
+
});
|
|
181
|
+
he.displayName = ve;
|
|
182
|
+
var _e = "ContextMenuSubContent", ge = a.forwardRef((e, n) => {
|
|
183
|
+
const { __scopeContextMenu: o, ...t } = e, r = c(o);
|
|
184
|
+
return /* @__PURE__ */ u(
|
|
185
|
+
D,
|
|
186
|
+
{
|
|
187
|
+
...r,
|
|
188
|
+
...t,
|
|
189
|
+
ref: n,
|
|
190
|
+
style: {
|
|
191
|
+
...e.style,
|
|
192
|
+
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
193
|
+
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
194
|
+
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
195
|
+
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
196
|
+
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
});
|
|
201
|
+
ge.displayName = _e;
|
|
202
|
+
function M(e) {
|
|
203
|
+
return (n) => n.pointerType !== "mouse" ? e(n) : void 0;
|
|
204
|
+
}
|
|
205
|
+
export {
|
|
206
|
+
z as ContextMenu,
|
|
207
|
+
fe as ContextMenuArrow,
|
|
208
|
+
ue as ContextMenuCheckboxItem,
|
|
209
|
+
Z as ContextMenuContent,
|
|
210
|
+
ee as ContextMenuGroup,
|
|
211
|
+
re as ContextMenuItem,
|
|
212
|
+
xe as ContextMenuItemIndicator,
|
|
213
|
+
ne as ContextMenuLabel,
|
|
214
|
+
V as ContextMenuPortal,
|
|
215
|
+
ie as ContextMenuRadioGroup,
|
|
216
|
+
pe as ContextMenuRadioItem,
|
|
217
|
+
Ce as ContextMenuSeparator,
|
|
218
|
+
Me as ContextMenuSub,
|
|
219
|
+
ge as ContextMenuSubContent,
|
|
220
|
+
he as ContextMenuSubTrigger,
|
|
221
|
+
J as ContextMenuTrigger
|
|
222
|
+
};
|