@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.
Files changed (282) hide show
  1. package/dist/assets/components/badge/Badge.style.css +1 -1
  2. package/dist/assets/components/button/Button.style.css +1 -1
  3. package/dist/assets/components/context-menu/ContextMenu.style.css +1 -0
  4. package/dist/assets/components/d-flow-folder/DFlowFolder.style.css +1 -0
  5. package/dist/assets/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.style.css +1 -1
  6. package/dist/assets/components/d-flow-panel/DFlowMiniMap.style.css +1 -0
  7. package/dist/assets/components/d-flow-suggestion/DFlowSuggestionSearchInput.style.css +1 -0
  8. package/dist/assets/components/d-layout/DLayout.style.css +1 -1
  9. package/dist/assets/components/d-resizable/DResizable.style.css +1 -1
  10. package/dist/assets/components/file-tabs/FileTabs.style.css +1 -1
  11. package/dist/assets/components/form/Input.style.css +1 -1
  12. package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -1
  13. package/dist/components/avatar/Avatar.js +7 -7
  14. package/dist/components/badge/Badge.d.ts +1 -1
  15. package/dist/components/badge/Badge.js +57 -17
  16. package/dist/components/breadcrumb/Breadcrumb.js +5 -5
  17. package/dist/components/button/Button.js +8 -8
  18. package/dist/components/context-menu/ContextMenu.d.ts +31 -0
  19. package/dist/components/context-menu/ContextMenu.js +191 -0
  20. package/dist/components/d-application/DApplication.service.d.ts +5 -0
  21. package/dist/components/d-application/DApplication.service.js +9 -0
  22. package/dist/components/d-flow/DFlow.d.ts +5 -3
  23. package/dist/components/d-flow/DFlow.edges.hook.d.ts +2 -1
  24. package/dist/components/d-flow/DFlow.edges.hook.js +98 -136
  25. package/dist/components/d-flow/DFlow.js +214 -199
  26. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +5 -1
  27. package/dist/components/d-flow/DFlow.nodes.hook.js +101 -123
  28. package/dist/components/d-flow/DFlow.service.d.ts +12 -7
  29. package/dist/components/d-flow/DFlow.service.js +117 -7
  30. package/dist/components/d-flow/{edge/DFlowEdge.d.ts → DFlowEdge.d.ts} +5 -3
  31. package/dist/components/d-flow/DFlowEdge.js +69 -0
  32. package/dist/components/d-flow/index.d.ts +1 -10
  33. package/dist/components/d-flow/index.js +9 -44
  34. package/dist/components/d-flow-data-type/DFlowDataType.service.d.ts +9 -0
  35. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.service.js +12 -10
  36. package/dist/components/{d-flow/data-type → d-flow-data-type}/DFlowDataType.view.d.ts +8 -2
  37. package/dist/components/d-flow-data-type/DFlowDataType.view.js +71 -0
  38. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.d.ts +2 -3
  39. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsKeyRule.js +3 -3
  40. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.d.ts +2 -3
  41. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeContainsTypeRule.js +4 -4
  42. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.d.ts +2 -3
  43. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeParentRule.js +3 -3
  44. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeReturnTypeRule.d.ts +2 -3
  45. package/dist/components/d-flow-data-type/rules/DFlowDataTypeReturnTypeRule.js +246 -0
  46. package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.d.ts +2 -3
  47. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabDefault.d.ts +2 -3
  48. package/dist/components/d-flow-file/DFlowTabDefault.js +139 -0
  49. package/dist/components/{d-flow/tab → d-flow-file}/DFlowTabTrigger.d.ts +2 -2
  50. package/dist/components/d-flow-file/DFlowTabTrigger.js +75 -0
  51. package/dist/components/d-flow-file/DFlowTabs.d.ts +6 -0
  52. package/dist/components/d-flow-file/DFlowTabs.js +128 -0
  53. package/dist/components/d-flow-file/index.d.ts +1 -0
  54. package/dist/components/d-flow-file/index.js +4 -0
  55. package/dist/components/{d-flow/folder → d-flow-folder}/DFlowFolder.d.ts +11 -5
  56. package/dist/components/d-flow-folder/DFlowFolder.js +158 -0
  57. package/dist/components/d-flow-folder/DFlowFolderContextMenu.d.ts +18 -0
  58. package/dist/components/d-flow-folder/DFlowFolderContextMenu.js +69 -0
  59. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.d.ts +9 -0
  60. package/dist/components/d-flow-folder/DFlowFolderCreateDialog.js +76 -0
  61. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.d.ts +5 -0
  62. package/dist/components/d-flow-folder/DFlowFolderItemPathInput.js +49 -0
  63. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.d.ts +9 -0
  64. package/dist/components/d-flow-folder/DFlowFolderRenameDialog.js +55 -0
  65. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.d.ts +1 -1
  66. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.input.hook.js +1 -1
  67. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.return.hook.d.ts +2 -2
  68. package/dist/components/d-flow-function/DFlowFunction.return.hook.js +9 -0
  69. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.service.d.ts +1 -1
  70. package/dist/components/d-flow-function/DFlowFunction.service.js +12 -0
  71. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunction.view.d.ts +12 -0
  72. package/dist/components/d-flow-function/DFlowFunction.view.js +132 -0
  73. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionDefaultCard.d.ts +4 -4
  74. package/dist/components/d-flow-function/DFlowFunctionDefaultCard.js +120 -0
  75. package/dist/components/d-flow-function/DFlowFunctionGroupCard.d.ts +13 -0
  76. package/dist/components/d-flow-function/DFlowFunctionGroupCard.js +68 -0
  77. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionSuggestionCard.d.ts +3 -4
  78. package/dist/components/d-flow-function/DFlowFunctionSuggestionCard.js +48 -0
  79. package/dist/components/{d-flow/function → d-flow-function}/DFlowFunctionTriggerCard.d.ts +3 -3
  80. package/dist/components/d-flow-function/DFlowFunctionTriggerCard.js +71 -0
  81. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.d.ts +1 -1
  82. package/dist/components/{d-flow/input → d-flow-input}/DFlowInputDataType.js +175 -165
  83. package/dist/components/d-flow-panel/DFlowExport.js +32 -0
  84. package/dist/components/d-flow-panel/DFlowMiniMap.js +33 -0
  85. package/dist/components/d-flow-panel/DFlowPanelControl.d.ts +6 -0
  86. package/dist/components/d-flow-panel/DFlowPanelControl.js +70 -0
  87. package/dist/components/d-flow-panel/DFlowPanelLayout.d.ts +4 -0
  88. package/dist/components/d-flow-panel/DFlowPanelLayout.js +47 -0
  89. package/dist/components/d-flow-panel/DFlowPanelSize.d.ts +2 -0
  90. package/dist/components/d-flow-panel/DFlowPanelSize.js +94 -0
  91. package/dist/components/d-flow-panel/index.d.ts +5 -0
  92. package/dist/components/d-flow-panel/index.js +12 -0
  93. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestion.hook.d.ts +0 -15
  94. package/dist/components/d-flow-suggestion/DFlowSuggestion.hook.js +161 -0
  95. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.d.ts +14 -0
  96. package/dist/components/d-flow-suggestion/DFlowSuggestion.view.js +4 -0
  97. package/dist/components/d-flow-suggestion/DFlowSuggestionMenu.js +83 -0
  98. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.d.ts +1 -1
  99. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.util.js +1 -1
  100. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.js +5 -5
  101. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.d.ts +1 -1
  102. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuSearchBar.js +1 -1
  103. package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionSearchInput.d.ts +1 -1
  104. package/dist/components/d-flow-suggestion/DFlowSuggestionSearchInput.js +35 -0
  105. package/dist/components/d-flow-suggestion/index.d.ts +1 -0
  106. package/dist/components/d-flow-suggestion/index.js +4 -0
  107. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.service.d.ts +1 -1
  108. package/dist/components/d-flow-type/DFlowType.service.js +12 -0
  109. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.d.ts +6 -0
  110. package/dist/components/{d-flow/type → d-flow-type}/DFlowType.view.js +16 -10
  111. package/dist/components/d-flow-validation/DDataTypeValidation.hook.d.ts +2 -0
  112. package/dist/components/d-flow-validation/DDataTypeValidation.hook.js +18 -0
  113. package/dist/components/d-flow-validation/DFlowValidation.hook.d.ts +3 -0
  114. package/dist/components/d-flow-validation/DFlowValidation.hook.js +22 -0
  115. package/dist/components/d-flow-validation/DFlowValidation.js +66 -0
  116. package/dist/components/d-flow-validation/DNodeValidation.hook.d.ts +3 -0
  117. package/dist/components/d-flow-validation/DNodeValidation.hook.js +62 -0
  118. package/dist/components/d-flow-validation/DValueValidation.hook.d.ts +3 -0
  119. package/dist/components/d-flow-validation/DValueValidation.hook.js +8 -0
  120. package/dist/components/{d-flow/validation → d-flow-validation}/index.js +2 -2
  121. package/dist/components/d-fullscreen/DFullScreen.js +2 -2
  122. package/dist/components/d-member/DNamespaceMemberList.js +5 -5
  123. package/dist/components/d-organization/DOrganizationList.js +7 -7
  124. package/dist/components/d-organization/DOrganizationMenu.js +5 -5
  125. package/dist/components/d-organization/DOrganizatonContent.js +22 -22
  126. package/dist/components/d-project/DNamespaceProjectContent.js +6 -6
  127. package/dist/components/d-project/DNamespaceProjectList.js +5 -5
  128. package/dist/components/d-project/DNamespaceProjectMenu.js +2 -2
  129. package/dist/components/d-resizable/DResizable.js +18 -17
  130. package/dist/components/d-role/DNamespaceRolePermissions.js +5 -5
  131. package/dist/components/d-runtime/DRuntimeList.js +7 -7
  132. package/dist/components/d-user/DUser.session.hook.js +2 -2
  133. package/dist/components/d-user/DUserContent.js +13 -13
  134. package/dist/components/d-user/DUserInput.js +9 -9
  135. package/dist/components/d-user/DUserList.js +9 -9
  136. package/dist/components/file-tabs/FileTabs.js +2 -2
  137. package/dist/components/file-tabs/FileTabs.service.d.ts +5 -0
  138. package/dist/components/file-tabs/FileTabs.service.js +68 -16
  139. package/dist/components/file-tabs/FileTabs.view.d.ts +1 -0
  140. package/dist/components/form/CheckboxInput.js +4 -4
  141. package/dist/components/form/EmailInput.js +12 -12
  142. package/dist/components/form/Input.js +220 -206
  143. package/dist/components/form/Input.selection.hook.js +9 -9
  144. package/dist/components/form/Input.syntax.hook.js +7 -7
  145. package/dist/components/form/NumberInput.js +9 -9
  146. package/dist/components/form/PasswordInput.js +6 -6
  147. package/dist/components/form/SwitchInput.js +7 -7
  148. package/dist/components/form/TextInput.js +10 -10
  149. package/dist/components/segmented-control/SegmentedControl.d.ts +1 -1
  150. package/dist/components/segmented-control/SegmentedControl.js +14 -12
  151. package/dist/index.d.ts +8 -0
  152. package/dist/index.js +117 -117
  153. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +527 -0
  154. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +402 -0
  155. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +208 -0
  156. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +136 -0
  157. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +130 -0
  158. package/dist/node_modules/@radix-ui/primitive/dist/index.js +9 -0
  159. package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
  160. package/dist/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
  161. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +29 -0
  162. package/dist/node_modules/@radix-ui/react-context/dist/index.js +53 -0
  163. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +222 -0
  164. package/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  165. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
  166. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +17 -0
  167. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
  168. package/dist/node_modules/@radix-ui/react-id/dist/index.js +13 -0
  169. package/dist/node_modules/@radix-ui/react-menu/dist/index.js +636 -0
  170. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +219 -0
  171. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
  172. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
  173. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
  174. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
  175. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
  176. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
  177. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
  178. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
  179. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +6 -0
  180. package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +27 -0
  181. package/dist/node_modules/aria-hidden/dist/es2015/index.js +52 -0
  182. package/dist/node_modules/get-nonce/dist/es2015/index.js +7 -0
  183. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +2 -2
  184. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +8 -8
  185. package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +11 -0
  186. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +112 -0
  187. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +31 -0
  188. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +16 -0
  189. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +68 -0
  190. package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
  191. package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
  192. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +71 -0
  193. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +7 -0
  194. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +25 -0
  195. package/dist/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
  196. package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
  197. package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +30 -0
  198. package/dist/node_modules/tslib/tslib.es6.js +27 -0
  199. package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
  200. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
  201. package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +25 -0
  202. package/dist/node_modules/use-sidecar/dist/es2015/exports.js +18 -0
  203. package/dist/node_modules/use-sidecar/dist/es2015/medium.js +67 -0
  204. package/dist/utils/generics.d.ts +5 -6
  205. package/dist/utils/generics.js +2 -2
  206. package/dist/utils/objectStore.js +15 -15
  207. package/dist/utils/reactiveArrayService.js +5 -5
  208. package/package.json +7 -4
  209. package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +0 -1
  210. package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +0 -1
  211. package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +0 -1
  212. package/dist/components/d-flow/DFlow.view.d.ts +0 -113
  213. package/dist/components/d-flow/DFlow.view.js +0 -248
  214. package/dist/components/d-flow/control/DFlowControl.d.ts +0 -2
  215. package/dist/components/d-flow/control/DFlowControl.js +0 -81
  216. package/dist/components/d-flow/control/index.d.ts +0 -1
  217. package/dist/components/d-flow/control/index.js +0 -4
  218. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +0 -10
  219. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +0 -2
  220. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +0 -18
  221. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +0 -4
  222. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +0 -20
  223. package/dist/components/d-flow/data-type/DFlowDataType.view.js +0 -65
  224. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +0 -243
  225. package/dist/components/d-flow/edge/DFlowEdge.js +0 -48
  226. package/dist/components/d-flow/export/DFlowExport.js +0 -24
  227. package/dist/components/d-flow/folder/DFlowFolder.js +0 -119
  228. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +0 -11
  229. package/dist/components/d-flow/function/DFlowFunction.service.js +0 -9
  230. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +0 -10
  231. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +0 -74
  232. package/dist/components/d-flow/function/DFlowFunction.view.js +0 -117
  233. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +0 -158
  234. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +0 -5
  235. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +0 -55
  236. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +0 -26
  237. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +0 -93
  238. package/dist/components/d-flow/minimap/DFlowMiniMap.js +0 -22
  239. package/dist/components/d-flow/minimap/index.d.ts +0 -1
  240. package/dist/components/d-flow/minimap/index.js +0 -4
  241. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +0 -150
  242. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +0 -5
  243. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +0 -18
  244. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +0 -21
  245. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +0 -25
  246. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +0 -67
  247. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +0 -35
  248. package/dist/components/d-flow/suggestion/index.d.ts +0 -2
  249. package/dist/components/d-flow/suggestion/index.js +0 -7
  250. package/dist/components/d-flow/tab/DFlowTabDefault.js +0 -103
  251. package/dist/components/d-flow/tab/DFlowTabTrigger.js +0 -51
  252. package/dist/components/d-flow/tab/DFlowTabs.d.ts +0 -2
  253. package/dist/components/d-flow/tab/DFlowTabs.js +0 -105
  254. package/dist/components/d-flow/type/DFlowType.service.js +0 -9
  255. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +0 -3
  256. package/dist/components/d-flow/validation/DFlowValidation.hook.js +0 -10
  257. package/dist/components/d-flow/validation/DFlowValidation.js +0 -60
  258. /package/dist/assets/components/{d-flow/input → d-flow-input}/DFlowInputDataType.style.css +0 -0
  259. /package/dist/assets/components/{d-flow/validation → d-flow-validation}/DFlowValidation.style.css +0 -0
  260. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.d.ts +0 -0
  261. /package/dist/components/{d-flow/data-type → d-flow-data-type}/index.js +0 -0
  262. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.d.ts +0 -0
  263. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeItemOfCollectionRule.js +0 -0
  264. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.d.ts +0 -0
  265. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeNumberRangeRule.js +0 -0
  266. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.d.ts +0 -0
  267. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRegexRule.js +0 -0
  268. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRule.js +0 -0
  269. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.d.ts +0 -0
  270. /package/dist/components/{d-flow/data-type → d-flow-data-type}/rules/DFlowDataTypeRules.js +0 -0
  271. /package/dist/components/{d-flow/folder → d-flow-folder}/index.d.ts +0 -0
  272. /package/dist/components/{d-flow/folder → d-flow-folder}/index.js +0 -0
  273. /package/dist/components/{d-flow/function → d-flow-function}/index.d.ts +0 -0
  274. /package/dist/components/{d-flow/function → d-flow-function}/index.js +0 -0
  275. /package/dist/components/{d-flow/export → d-flow-panel}/DFlowExport.d.ts +0 -0
  276. /package/dist/components/{d-flow/minimap → d-flow-panel}/DFlowMiniMap.d.ts +0 -0
  277. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenu.d.ts +0 -0
  278. /package/dist/components/{d-flow/suggestion → d-flow-suggestion}/DFlowSuggestionMenuFooter.d.ts +0 -0
  279. /package/dist/components/{d-flow/type → d-flow-type}/index.d.ts +0 -0
  280. /package/dist/components/{d-flow/type → d-flow-type}/index.js +0 -0
  281. /package/dist/components/{d-flow/validation → d-flow-validation}/DFlowValidation.d.ts +0 -0
  282. /package/dist/components/{d-flow/validation → d-flow-validation}/index.d.ts +0 -0
@@ -0,0 +1,27 @@
1
+ import * as h from "react";
2
+ import { useLayoutEffect as z } from "../../react-use-layout-effect/dist/index.js";
3
+ function c(r) {
4
+ const [d, e] = h.useState(void 0);
5
+ return z(() => {
6
+ if (r) {
7
+ e({ width: r.offsetWidth, height: r.offsetHeight });
8
+ const f = new ResizeObserver((i) => {
9
+ if (!Array.isArray(i) || !i.length)
10
+ return;
11
+ const b = i[0];
12
+ let o, t;
13
+ if ("borderBoxSize" in b) {
14
+ const s = b.borderBoxSize, u = Array.isArray(s) ? s[0] : s;
15
+ o = u.inlineSize, t = u.blockSize;
16
+ } else
17
+ o = r.offsetWidth, t = r.offsetHeight;
18
+ e({ width: o, height: t });
19
+ });
20
+ return f.observe(r, { box: "border-box" }), () => f.unobserve(r);
21
+ } else
22
+ e(void 0);
23
+ }, [r]), d;
24
+ }
25
+ export {
26
+ c as useSize
27
+ };
@@ -0,0 +1,52 @@
1
+ var S = function(r) {
2
+ if (typeof document > "u")
3
+ return null;
4
+ var u = Array.isArray(r) ? r[0] : r;
5
+ return u.ownerDocument.body;
6
+ }, f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {}, h = 0, W = function(r) {
7
+ return r && (r.host || W(r.parentNode));
8
+ }, D = function(r, u) {
9
+ return u.map(function(e) {
10
+ if (r.contains(e))
11
+ return e;
12
+ var n = W(e);
13
+ return n && r.contains(n) ? n : (console.error("aria-hidden", e, "in not contained inside", r, ". Doing nothing"), null);
14
+ }).filter(function(e) {
15
+ return !!e;
16
+ });
17
+ }, E = function(r, u, e, n) {
18
+ var i = D(u, Array.isArray(r) ? r : [r]);
19
+ p[e] || (p[e] = /* @__PURE__ */ new WeakMap());
20
+ var s = p[e], l = [], o = /* @__PURE__ */ new Set(), b = new Set(i), y = function(t) {
21
+ !t || o.has(t) || (o.add(t), y(t.parentNode));
22
+ };
23
+ i.forEach(y);
24
+ var A = function(t) {
25
+ !t || b.has(t) || Array.prototype.forEach.call(t.children, function(a) {
26
+ if (o.has(a))
27
+ A(a);
28
+ else
29
+ try {
30
+ var c = a.getAttribute(n), w = c !== null && c !== "false", d = (f.get(a) || 0) + 1, M = (s.get(a) || 0) + 1;
31
+ f.set(a, d), s.set(a, M), l.push(a), d === 1 && w && v.set(a, !0), M === 1 && a.setAttribute(e, "true"), w || a.setAttribute(n, "true");
32
+ } catch (k) {
33
+ console.error("aria-hidden: cannot operate on ", a, k);
34
+ }
35
+ });
36
+ };
37
+ return A(u), o.clear(), h++, function() {
38
+ l.forEach(function(t) {
39
+ var a = f.get(t) - 1, c = s.get(t) - 1;
40
+ f.set(t, a), s.set(t, c), a || (v.has(t) || t.removeAttribute(n), v.delete(t)), c || t.removeAttribute(e);
41
+ }), h--, h || (f = /* @__PURE__ */ new WeakMap(), f = /* @__PURE__ */ new WeakMap(), v = /* @__PURE__ */ new WeakMap(), p = {});
42
+ };
43
+ }, C = function(r, u, e) {
44
+ e === void 0 && (e = "data-aria-hidden");
45
+ var n = Array.from(Array.isArray(r) ? r : [r]), i = S(r);
46
+ return i ? (n.push.apply(n, Array.from(i.querySelectorAll("[aria-live], script"))), E(n, i, e, "aria-hidden")) : function() {
47
+ return null;
48
+ };
49
+ };
50
+ export {
51
+ C as hideOthers
52
+ };
@@ -0,0 +1,7 @@
1
+ var e = function() {
2
+ if (typeof __webpack_nonce__ < "u")
3
+ return __webpack_nonce__;
4
+ };
5
+ export {
6
+ e as getNonce
7
+ };
@@ -1,7 +1,7 @@
1
1
  import { __exports as e } from "../../../_virtual/react-compiler-runtime.development.js";
2
2
  import a from "react";
3
3
  var n;
4
- function s() {
4
+ function l() {
5
5
  return n ? e : (n = 1, process.env.NODE_ENV !== "production" && (function() {
6
6
  var t = a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
7
7
  e.c = function(r) {
@@ -17,5 +17,5 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
17
17
  })(), e);
18
18
  }
19
19
  export {
20
- s as __require
20
+ l as __require
21
21
  };
@@ -1,14 +1,14 @@
1
- import { __exports as r } from "../../../_virtual/react-compiler-runtime.production.js";
1
+ import { __exports as e } from "../../../_virtual/react-compiler-runtime.production.js";
2
2
  import o from "react";
3
- var e;
4
- function u() {
5
- if (e) return r;
6
- e = 1;
3
+ var r;
4
+ function n() {
5
+ if (r) return e;
6
+ r = 1;
7
7
  var t = o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
8
- return r.c = function(_) {
8
+ return e.c = function(_) {
9
9
  return t.H.useMemoCache(_);
10
- }, r;
10
+ }, e;
11
11
  }
12
12
  export {
13
- u as __require
13
+ n as __require
14
14
  };
@@ -0,0 +1,11 @@
1
+ import { __assign as m } from "../../../tslib/tslib.es6.js";
2
+ import * as r from "react";
3
+ import { RemoveScroll as e } from "./UI.js";
4
+ import t from "./sidecar.js";
5
+ var s = r.forwardRef(function(a, o) {
6
+ return r.createElement(e, m({}, a, { ref: o, sideCar: t }));
7
+ });
8
+ s.classNames = e.classNames;
9
+ export {
10
+ s as default
11
+ };
@@ -0,0 +1,112 @@
1
+ import { __spreadArray as x } from "../../../tslib/tslib.es6.js";
2
+ import * as n from "react";
3
+ import { RemoveScrollBar as A } from "../../../react-remove-scroll-bar/dist/es2015/component.js";
4
+ import { styleSingleton as I } from "../../../react-style-singleton/dist/es2015/component.js";
5
+ import { nonPassive as s } from "./aggresiveCapture.js";
6
+ import { locationCouldBeScrolled as T, handleScroll as W } from "./handleScroll.js";
7
+ var b = function(t) {
8
+ return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
9
+ }, Y = function(t) {
10
+ return [t.deltaX, t.deltaY];
11
+ }, B = function(t) {
12
+ return t && "current" in t ? t.current : t;
13
+ }, F = function(t, c) {
14
+ return t[0] === c[0] && t[1] === c[1];
15
+ }, K = function(t) {
16
+ return `
17
+ .block-interactivity-`.concat(t, ` {pointer-events: none;}
18
+ .allow-interactivity-`).concat(t, ` {pointer-events: all;}
19
+ `);
20
+ }, O = 0, f = [];
21
+ function G(t) {
22
+ var c = n.useRef([]), E = n.useRef([0, 0]), d = n.useRef(), h = n.useState(O++)[0], m = n.useState(I)[0], g = n.useRef(t);
23
+ n.useEffect(function() {
24
+ g.current = t;
25
+ }, [t]), n.useEffect(function() {
26
+ if (t.inert) {
27
+ document.body.classList.add("block-interactivity-".concat(h));
28
+ var e = x([t.lockRef.current], (t.shards || []).map(B), !0).filter(Boolean);
29
+ return e.forEach(function(r) {
30
+ return r.classList.add("allow-interactivity-".concat(h));
31
+ }), function() {
32
+ document.body.classList.remove("block-interactivity-".concat(h)), e.forEach(function(r) {
33
+ return r.classList.remove("allow-interactivity-".concat(h));
34
+ });
35
+ };
36
+ }
37
+ }, [t.inert, t.lockRef.current, t.shards]);
38
+ var k = n.useCallback(function(e, r) {
39
+ if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey)
40
+ return !g.current.allowPinchZoom;
41
+ var l = b(e), o = E.current, u = "deltaX" in e ? e.deltaX : o[0] - l[0], i = "deltaY" in e ? e.deltaY : o[1] - l[1], a, C = e.target, v = Math.abs(u) > Math.abs(i) ? "h" : "v";
42
+ if ("touches" in e && v === "h" && C.type === "range")
43
+ return !1;
44
+ var y = T(v, C);
45
+ if (!y)
46
+ return !0;
47
+ if (y ? a = v : (a = v === "v" ? "h" : "v", y = T(v, C)), !y)
48
+ return !1;
49
+ if (!d.current && "changedTouches" in e && (u || i) && (d.current = a), !a)
50
+ return !0;
51
+ var P = d.current || a;
52
+ return W(P, r, e, P === "h" ? u : i);
53
+ }, []), S = n.useCallback(function(e) {
54
+ var r = e;
55
+ if (!(!f.length || f[f.length - 1] !== m)) {
56
+ var l = "deltaY" in r ? Y(r) : b(r), o = c.current.filter(function(a) {
57
+ return a.name === r.type && (a.target === r.target || r.target === a.shadowParent) && F(a.delta, l);
58
+ })[0];
59
+ if (o && o.should) {
60
+ r.cancelable && r.preventDefault();
61
+ return;
62
+ }
63
+ if (!o) {
64
+ var u = (g.current.shards || []).map(B).filter(Boolean).filter(function(a) {
65
+ return a.contains(r.target);
66
+ }), i = u.length > 0 ? k(r, u[0]) : !g.current.noIsolation;
67
+ i && r.cancelable && r.preventDefault();
68
+ }
69
+ }
70
+ }, []), R = n.useCallback(function(e, r, l, o) {
71
+ var u = { name: e, delta: r, target: l, should: o, shadowParent: Q(l) };
72
+ c.current.push(u), setTimeout(function() {
73
+ c.current = c.current.filter(function(i) {
74
+ return i !== u;
75
+ });
76
+ }, 1);
77
+ }, []), w = n.useCallback(function(e) {
78
+ E.current = b(e), d.current = void 0;
79
+ }, []), L = n.useCallback(function(e) {
80
+ R(e.type, Y(e), e.target, k(e, t.lockRef.current));
81
+ }, []), M = n.useCallback(function(e) {
82
+ R(e.type, b(e), e.target, k(e, t.lockRef.current));
83
+ }, []);
84
+ n.useEffect(function() {
85
+ return f.push(m), t.setCallbacks({
86
+ onScrollCapture: L,
87
+ onWheelCapture: L,
88
+ onTouchMoveCapture: M
89
+ }), document.addEventListener("wheel", S, s), document.addEventListener("touchmove", S, s), document.addEventListener("touchstart", w, s), function() {
90
+ f = f.filter(function(e) {
91
+ return e !== m;
92
+ }), document.removeEventListener("wheel", S, s), document.removeEventListener("touchmove", S, s), document.removeEventListener("touchstart", w, s);
93
+ };
94
+ }, []);
95
+ var X = t.removeScrollBar, D = t.inert;
96
+ return n.createElement(
97
+ n.Fragment,
98
+ null,
99
+ D ? n.createElement(m, { styles: K(h) }) : null,
100
+ X ? n.createElement(A, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
101
+ );
102
+ }
103
+ function Q(t) {
104
+ for (var c = null; t !== null; )
105
+ t instanceof ShadowRoot && (c = t.host, t = t.host), t = t.parentNode;
106
+ return c;
107
+ }
108
+ export {
109
+ G as RemoveScrollSideCar,
110
+ Y as getDeltaXY,
111
+ b as getTouchXY
112
+ };
@@ -0,0 +1,31 @@
1
+ import { __rest as E, __assign as r } from "../../../tslib/tslib.es6.js";
2
+ import * as a from "react";
3
+ import { zeroRightClassName as I, fullWidthClassName as Z } from "../../../react-remove-scroll-bar/dist/es2015/constants.js";
4
+ import { effectCar as W } from "./medium.js";
5
+ import { useMergeRefs as z } from "../../../use-callback-ref/dist/es2015/useMergeRef.js";
6
+ var l = function() {
7
+ }, m = a.forwardRef(function(e, d) {
8
+ var o = a.useRef(null), n = a.useState({
9
+ onScrollCapture: l,
10
+ onWheelCapture: l,
11
+ onTouchMoveCapture: l
12
+ }), f = n[0], v = n[1], h = e.forwardProps, t = e.children, u = e.className, C = e.removeScrollBar, R = e.enabled, g = e.shards, P = e.sideCar, S = e.noRelative, b = e.noIsolation, w = e.inert, N = e.allowPinchZoom, i = e.as, M = i === void 0 ? "div" : i, _ = e.gapMode, B = E(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), k = P, s = z([o, d]), c = r(r({}, B), f);
13
+ return a.createElement(
14
+ a.Fragment,
15
+ null,
16
+ R && a.createElement(k, { sideCar: W, removeScrollBar: C, shards: g, noRelative: S, noIsolation: b, inert: w, setCallbacks: v, allowPinchZoom: !!N, lockRef: o, gapMode: _ }),
17
+ h ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: s })) : a.createElement(M, r({}, c, { className: u, ref: s }), t)
18
+ );
19
+ });
20
+ m.defaultProps = {
21
+ enabled: !0,
22
+ removeScrollBar: !0,
23
+ inert: !1
24
+ };
25
+ m.classNames = {
26
+ fullWidth: Z,
27
+ zeroRight: I
28
+ };
29
+ export {
30
+ m as RemoveScroll
31
+ };
@@ -0,0 +1,16 @@
1
+ var r = !1;
2
+ if (typeof window < "u")
3
+ try {
4
+ var e = Object.defineProperty({}, "passive", {
5
+ get: function() {
6
+ return r = !0, !0;
7
+ }
8
+ });
9
+ window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
+ } catch {
11
+ r = !1;
12
+ }
13
+ var a = r ? { passive: !1 } : !1;
14
+ export {
15
+ a as nonPassive
16
+ };
@@ -0,0 +1,68 @@
1
+ var N = function(r) {
2
+ return r.tagName === "TEXTAREA";
3
+ }, b = function(r, e) {
4
+ if (!(r instanceof Element))
5
+ return !1;
6
+ var t = window.getComputedStyle(r);
7
+ return (
8
+ // not-not-scrollable
9
+ t[e] !== "hidden" && // contains scroll inside self
10
+ !(t.overflowY === t.overflowX && !N(r) && t[e] === "visible")
11
+ );
12
+ }, D = function(r) {
13
+ return b(r, "overflowY");
14
+ }, E = function(r) {
15
+ return b(r, "overflowX");
16
+ }, T = function(r, e) {
17
+ var t = e.ownerDocument, l = e;
18
+ do {
19
+ typeof ShadowRoot < "u" && l instanceof ShadowRoot && (l = l.host);
20
+ var f = g(r, l);
21
+ if (f) {
22
+ var n = m(r, l), i = n[1], o = n[2];
23
+ if (i > o)
24
+ return !0;
25
+ }
26
+ l = l.parentNode;
27
+ } while (l && l !== t.body);
28
+ return !1;
29
+ }, H = function(r) {
30
+ var e = r.scrollTop, t = r.scrollHeight, l = r.clientHeight;
31
+ return [
32
+ e,
33
+ t,
34
+ l
35
+ ];
36
+ }, p = function(r) {
37
+ var e = r.scrollLeft, t = r.scrollWidth, l = r.clientWidth;
38
+ return [
39
+ e,
40
+ t,
41
+ l
42
+ ];
43
+ }, g = function(r, e) {
44
+ return r === "v" ? D(e) : E(e);
45
+ }, m = function(r, e) {
46
+ return r === "v" ? H(e) : p(e);
47
+ }, B = function(r, e) {
48
+ return r === "h" && e === "rtl" ? -1 : 1;
49
+ }, V = function(r, e, t, l, f) {
50
+ var n = B(r, window.getComputedStyle(e).direction), i = n * l, o = t.target, d = e.contains(o), c = !1, s = i > 0, h = 0, S = 0;
51
+ do {
52
+ if (!o)
53
+ break;
54
+ var u = m(r, o), v = u[0], C = u[1], y = u[2], w = C - y - n * v;
55
+ (v || w) && g(r, o) && (h += w, S += v);
56
+ var a = o.parentNode;
57
+ o = a && a.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? a.host : a;
58
+ } while (
59
+ // portaled content
60
+ !d && o !== document.body || // self content
61
+ d && (e.contains(o) || e === o)
62
+ );
63
+ return (s && Math.abs(h) < 1 || !s && Math.abs(S) < 1) && (c = !0), c;
64
+ };
65
+ export {
66
+ V as handleScroll,
67
+ T as locationCouldBeScrolled
68
+ };
@@ -0,0 +1,5 @@
1
+ import { createSidecarMedium as e } from "../../../use-sidecar/dist/es2015/medium.js";
2
+ var a = e();
3
+ export {
4
+ a as effectCar
5
+ };
@@ -0,0 +1,7 @@
1
+ import { RemoveScrollSideCar as r } from "./SideEffect.js";
2
+ import { effectCar as o } from "./medium.js";
3
+ import { exportSidecar as e } from "../../../use-sidecar/dist/es2015/exports.js";
4
+ const f = e(o, r);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,71 @@
1
+ import * as d from "react";
2
+ import { styleSingleton as f } from "../../../react-style-singleton/dist/es2015/component.js";
3
+ import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./constants.js";
4
+ import { getGapWidth as m } from "./utils.js";
5
+ var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
6
+ var r = n.left, i = n.top, s = n.right, c = n.gap;
7
+ return o === void 0 && (o = "margin"), `
8
+ .`.concat(p, ` {
9
+ overflow: hidden `).concat(t, `;
10
+ padding-right: `).concat(c, "px ").concat(t, `;
11
+ }
12
+ body[`).concat(e, `] {
13
+ overflow: hidden `).concat(t, `;
14
+ overscroll-behavior: contain;
15
+ `).concat([
16
+ a && "position: relative ".concat(t, ";"),
17
+ o === "margin" && `
18
+ padding-left: `.concat(r, `px;
19
+ padding-top: `).concat(i, `px;
20
+ padding-right: `).concat(s, `px;
21
+ margin-left:0;
22
+ margin-top:0;
23
+ margin-right: `).concat(c, "px ").concat(t, `;
24
+ `),
25
+ o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
26
+ ].filter(Boolean).join(""), `
27
+ }
28
+
29
+ .`).concat(g, ` {
30
+ right: `).concat(c, "px ").concat(t, `;
31
+ }
32
+
33
+ .`).concat(l, ` {
34
+ margin-right: `).concat(c, "px ").concat(t, `;
35
+ }
36
+
37
+ .`).concat(g, " .").concat(g, ` {
38
+ right: 0 `).concat(t, `;
39
+ }
40
+
41
+ .`).concat(l, " .").concat(l, ` {
42
+ margin-right: 0 `).concat(t, `;
43
+ }
44
+
45
+ body[`).concat(e, `] {
46
+ `).concat(v, ": ").concat(c, `px;
47
+ }
48
+ `);
49
+ }, u = function() {
50
+ var n = parseInt(document.body.getAttribute(e) || "0", 10);
51
+ return isFinite(n) ? n : 0;
52
+ }, x = function() {
53
+ d.useEffect(function() {
54
+ return document.body.setAttribute(e, (u() + 1).toString()), function() {
55
+ var n = u() - 1;
56
+ n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
57
+ };
58
+ }, []);
59
+ }, C = function(n) {
60
+ var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
61
+ x();
62
+ var i = d.useMemo(function() {
63
+ return m(r);
64
+ }, [r]);
65
+ return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
66
+ };
67
+ export {
68
+ C as RemoveScrollBar,
69
+ e as lockAttribute,
70
+ x as useLockAttribute
71
+ };
@@ -0,0 +1,7 @@
1
+ var r = "right-scroll-bar-position", a = "width-before-scroll-bar", l = "with-scroll-bars-hidden", e = "--removed-body-scroll-bar-size";
2
+ export {
3
+ a as fullWidthClassName,
4
+ l as noScrollbarsClassName,
5
+ e as removedBarSizeVariable,
6
+ r as zeroRightClassName
7
+ };
@@ -0,0 +1,25 @@
1
+ var a = {
2
+ left: 0,
3
+ top: 0,
4
+ right: 0,
5
+ gap: 0
6
+ }, e = function(t) {
7
+ return parseInt(t || "", 10) || 0;
8
+ }, o = function(t) {
9
+ var n = window.getComputedStyle(document.body), i = n[t === "padding" ? "paddingLeft" : "marginLeft"], r = n[t === "padding" ? "paddingTop" : "marginTop"], d = n[t === "padding" ? "paddingRight" : "marginRight"];
10
+ return [e(i), e(r), e(d)];
11
+ }, f = function(t) {
12
+ if (t === void 0 && (t = "margin"), typeof window > "u")
13
+ return a;
14
+ var n = o(t), i = document.documentElement.clientWidth, r = window.innerWidth;
15
+ return {
16
+ left: n[0],
17
+ top: n[1],
18
+ right: n[2],
19
+ gap: Math.max(0, r - i + n[2] - n[0])
20
+ };
21
+ };
22
+ export {
23
+ f as getGapWidth,
24
+ a as zeroGap
25
+ };
@@ -0,0 +1,11 @@
1
+ import { styleHookSingleton as o } from "./hook.js";
2
+ var s = function() {
3
+ var e = o(), n = function(t) {
4
+ var r = t.styles, l = t.dynamic;
5
+ return e(r, l), null;
6
+ };
7
+ return n;
8
+ };
9
+ export {
10
+ s as styleSingleton
11
+ };
@@ -0,0 +1,15 @@
1
+ import * as o from "react";
2
+ import { stylesheetSingleton as r } from "./singleton.js";
3
+ var i = function() {
4
+ var t = r();
5
+ return function(e, n) {
6
+ o.useEffect(function() {
7
+ return t.add(e), function() {
8
+ t.remove();
9
+ };
10
+ }, [e && n]);
11
+ };
12
+ };
13
+ export {
14
+ i as styleHookSingleton
15
+ };
@@ -0,0 +1,30 @@
1
+ import { getNonce as o } from "../../../get-nonce/dist/es2015/index.js";
2
+ function r() {
3
+ if (!document)
4
+ return null;
5
+ var t = document.createElement("style");
6
+ t.type = "text/css";
7
+ var e = o();
8
+ return e && t.setAttribute("nonce", e), t;
9
+ }
10
+ function l(t, e) {
11
+ t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
12
+ }
13
+ function a(t) {
14
+ var e = document.head || document.getElementsByTagName("head")[0];
15
+ e.appendChild(t);
16
+ }
17
+ var c = function() {
18
+ var t = 0, e = null;
19
+ return {
20
+ add: function(n) {
21
+ t == 0 && (e = r()) && (l(e, n), a(e)), t++;
22
+ },
23
+ remove: function() {
24
+ t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
25
+ }
26
+ };
27
+ };
28
+ export {
29
+ c as stylesheetSingleton
30
+ };
@@ -0,0 +1,27 @@
1
+ var p = function() {
2
+ return p = Object.assign || function(e) {
3
+ for (var n, r = 1, o = arguments.length; r < o; r++) {
4
+ n = arguments[r];
5
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]);
6
+ }
7
+ return e;
8
+ }, p.apply(this, arguments);
9
+ };
10
+ function c(t, e) {
11
+ var n = {};
12
+ for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
13
+ if (t != null && typeof Object.getOwnPropertySymbols == "function")
14
+ for (var o = 0, r = Object.getOwnPropertySymbols(t); o < r.length; o++)
15
+ e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
16
+ return n;
17
+ }
18
+ function l(t, e, n) {
19
+ if (n || arguments.length === 2) for (var r = 0, o = e.length, a; r < o; r++)
20
+ (a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
21
+ return t.concat(a || Array.prototype.slice.call(e));
22
+ }
23
+ export {
24
+ p as __assign,
25
+ c as __rest,
26
+ l as __spreadArray
27
+ };
@@ -0,0 +1,6 @@
1
+ function i(n, t) {
2
+ return typeof n == "function" ? n(t) : n && (n.current = t), n;
3
+ }
4
+ export {
5
+ i as assignRef
6
+ };
@@ -0,0 +1,26 @@
1
+ import * as f from "react";
2
+ import { assignRef as o } from "./assignRef.js";
3
+ import { useCallbackRef as l } from "./useRef.js";
4
+ var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
5
+ function v(e, m) {
6
+ var t = l(null, function(n) {
7
+ return e.forEach(function(u) {
8
+ return o(u, n);
9
+ });
10
+ });
11
+ return s(function() {
12
+ var n = c.get(t);
13
+ if (n) {
14
+ var u = new Set(n), r = new Set(e), i = t.current;
15
+ u.forEach(function(a) {
16
+ r.has(a) || o(a, null);
17
+ }), r.forEach(function(a) {
18
+ u.has(a) || o(a, i);
19
+ });
20
+ }
21
+ c.set(t, e);
22
+ }, [e]), t;
23
+ }
24
+ export {
25
+ v as useMergeRefs
26
+ };
@@ -0,0 +1,25 @@
1
+ import { useState as u } from "react";
2
+ function n(c, r) {
3
+ var e = u(function() {
4
+ return {
5
+ // value
6
+ value: c,
7
+ // last callback
8
+ callback: r,
9
+ // "memoized" public interface
10
+ facade: {
11
+ get current() {
12
+ return e.value;
13
+ },
14
+ set current(a) {
15
+ var t = e.value;
16
+ t !== a && (e.value = a, e.callback(a, t));
17
+ }
18
+ }
19
+ };
20
+ })[0];
21
+ return e.callback = r, e.facade;
22
+ }
23
+ export {
24
+ n as useCallbackRef
25
+ };
@@ -0,0 +1,18 @@
1
+ import { __rest as o, __assign as d } from "../../../tslib/tslib.es6.js";
2
+ import * as n from "react";
3
+ var i = function(r) {
4
+ var e = r.sideCar, a = o(r, ["sideCar"]);
5
+ if (!e)
6
+ throw new Error("Sidecar: please provide `sideCar` property to import the right car");
7
+ var t = e.read();
8
+ if (!t)
9
+ throw new Error("Sidecar medium not found");
10
+ return n.createElement(t, d({}, a));
11
+ };
12
+ i.isSideCarExport = !0;
13
+ function p(r, e) {
14
+ return r.useMedium(e), i;
15
+ }
16
+ export {
17
+ p as exportSidecar
18
+ };