native-document 1.0.165 → 1.0.166

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 (398) hide show
  1. package/components.d.ts +2 -0
  2. package/devtools/widget.js +1 -1
  3. package/dist/native-document.components.min.js +11074 -2735
  4. package/dist/native-document.dev.js +2269 -392
  5. package/dist/native-document.dev.js.map +1 -1
  6. package/dist/native-document.min.js +1 -1
  7. package/eslint.config.js +28 -33
  8. package/i18n.js +1 -1
  9. package/i18n.ts +2 -0
  10. package/index.js +3 -0
  11. package/package.json +3 -2
  12. package/src/components/$traits/has-draggable/HasDraggable.d.ts +4 -0
  13. package/src/components/$traits/has-draggable/HasDraggable.js +13 -0
  14. package/src/components/$traits/has-items/HasItems.d.ts +9 -0
  15. package/src/components/$traits/has-items/HasItems.js +6 -6
  16. package/src/components/$traits/has-position/HasFullPosition.d.ts +14 -0
  17. package/src/components/$traits/has-position/HasFullPosition.js +44 -0
  18. package/src/components/$traits/has-position/HasPosition.d.ts +7 -0
  19. package/src/components/$traits/has-position/HasPosition.js +23 -1
  20. package/src/components/$traits/has-resizable/HasResizable.d.ts +13 -0
  21. package/src/components/$traits/has-resizable/HasResizable.js +9 -0
  22. package/src/components/$traits/has-validation/HasValidation.d.ts +17 -0
  23. package/src/components/$traits/has-validation/HasValidation.js +54 -7
  24. package/src/components/BaseComponent.d.ts +32 -0
  25. package/src/components/BaseComponent.js +65 -9
  26. package/src/components/accordion/Accordion.js +39 -14
  27. package/src/components/accordion/AccordionItem.js +45 -14
  28. package/src/components/accordion/index.js +2 -2
  29. package/src/components/accordion/types/Accordion.d.ts +47 -0
  30. package/src/components/accordion/types/AccordionItem.d.ts +48 -0
  31. package/src/components/alert/Alert.js +70 -38
  32. package/src/components/alert/index.js +2 -2
  33. package/src/components/alert/types/Alert.d.ts +62 -0
  34. package/src/components/avatar/Avatar.js +49 -12
  35. package/src/components/avatar/AvatarGroup.js +50 -2
  36. package/src/components/avatar/index.js +2 -2
  37. package/src/components/avatar/types/Avatar.d.ts +74 -0
  38. package/src/components/avatar/types/AvatarGroup.d.ts +32 -0
  39. package/src/components/badge/Badge.js +125 -5
  40. package/src/components/badge/index.js +2 -2
  41. package/src/components/badge/types/Badge.d.ts +51 -0
  42. package/src/components/breadcrumb/BreadCrumb.js +61 -5
  43. package/src/components/breadcrumb/index.js +2 -2
  44. package/src/components/breadcrumb/types/BreadCrumb.d.ts +42 -0
  45. package/src/components/button/Button.js +164 -9
  46. package/src/components/button/index.js +1 -1
  47. package/src/components/button/types/Button.d.ts +62 -0
  48. package/src/components/card/Card.js +128 -10
  49. package/src/components/card/index.js +3 -3
  50. package/src/components/card/types/Card.d.ts +42 -0
  51. package/src/components/context-menu/ContextMenu.js +49 -5
  52. package/src/components/context-menu/ContextMenuGroup.js +15 -2
  53. package/src/components/context-menu/ContextMenuItem.js +14 -2
  54. package/src/components/context-menu/index.js +5 -5
  55. package/src/components/context-menu/types/ContextMenu.d.ts +30 -0
  56. package/src/components/context-menu/types/ContextMenuGroup.d.ts +18 -0
  57. package/src/components/context-menu/types/ContextMenuItem.d.ts +18 -0
  58. package/src/components/divider/Divider.js +120 -4
  59. package/src/components/divider/index.js +3 -3
  60. package/src/components/divider/types/Divider.d.ts +55 -0
  61. package/src/components/dropdown/Dropdown.js +239 -16
  62. package/src/components/dropdown/DropdownDivider.js +22 -2
  63. package/src/components/dropdown/DropdownGroup.js +44 -5
  64. package/src/components/dropdown/DropdownItem.js +76 -3
  65. package/src/components/dropdown/DropdownTrigger.js +49 -20
  66. package/src/components/dropdown/helpers.js +1 -1
  67. package/src/components/dropdown/index.js +6 -6
  68. package/src/components/dropdown/types/Dropdown.d.ts +88 -0
  69. package/src/components/dropdown/types/DropdownDivider.d.ts +20 -0
  70. package/src/components/dropdown/types/DropdownGroup.d.ts +25 -0
  71. package/src/components/dropdown/types/DropdownItem.d.ts +41 -0
  72. package/src/components/dropdown/types/DropdownTrigger.d.ts +32 -0
  73. package/src/components/form/FormControl.js +156 -13
  74. package/src/components/form/field/Field.js +172 -9
  75. package/src/components/form/field/FieldCollection.js +116 -12
  76. package/src/components/form/field/types/AutocompleteField.js +92 -2
  77. package/src/components/form/field/types/CheckboxField.js +43 -2
  78. package/src/components/form/field/types/CheckboxGroupField.js +83 -6
  79. package/src/components/form/field/types/ColorField.js +56 -3
  80. package/src/components/form/field/types/DateField.js +155 -4
  81. package/src/components/form/field/types/EmailField.js +54 -4
  82. package/src/components/form/field/types/FileField.js +140 -6
  83. package/src/components/form/field/types/HiddenField.js +27 -1
  84. package/src/components/form/field/types/ImageField.js +82 -3
  85. package/src/components/form/field/types/NumberField.js +97 -4
  86. package/src/components/form/field/types/PasswordField.js +103 -7
  87. package/src/components/form/field/types/RadioField.js +75 -4
  88. package/src/components/form/field/types/RangeField.js +67 -1
  89. package/src/components/form/field/types/SearchField.js +41 -2
  90. package/src/components/form/field/types/SelectField.js +133 -4
  91. package/src/components/form/field/types/StringField.js +91 -2
  92. package/src/components/form/field/types/TelField.js +55 -4
  93. package/src/components/form/field/types/TextAreaField.js +76 -2
  94. package/src/components/form/field/types/TimeField.js +120 -5
  95. package/src/components/form/field/types/UrlField.js +59 -4
  96. package/src/components/form/field/types/file-field-mode/FileAvatarMode.js +83 -4
  97. package/src/components/form/field/types/file-field-mode/FileDropzoneMode.js +61 -3
  98. package/src/components/form/field/types/file-field-mode/FileItemPreview.js +79 -3
  99. package/src/components/form/field/types/file-field-mode/FileNativeMode.js +24 -2
  100. package/src/components/form/field/types/file-field-mode/FileUploadButtonMode.js +64 -3
  101. package/src/components/form/field/types/file-field-mode/FileWallMode.js +56 -3
  102. package/src/components/form/index.js +28 -28
  103. package/src/components/form/types/Field.d.ts +73 -0
  104. package/src/components/form/types/FieldCollection.d.ts +53 -0
  105. package/src/components/form/types/FormControl.d.ts +64 -0
  106. package/src/components/form/types/fields/AutocompleteField.d.ts +48 -0
  107. package/src/components/form/types/fields/CheckboxField.d.ts +33 -0
  108. package/src/components/form/types/fields/CheckboxGroupField.d.ts +49 -0
  109. package/src/components/form/types/fields/ColorField.d.ts +37 -0
  110. package/src/components/form/types/fields/DateField.d.ts +70 -0
  111. package/src/components/form/types/fields/EmailField.d.ts +35 -0
  112. package/src/components/form/types/fields/FileAvatarMode.d.ts +46 -0
  113. package/src/components/form/types/fields/FileDropzoneMode.d.ts +28 -0
  114. package/src/components/form/types/fields/FileField.d.ts +56 -0
  115. package/src/components/form/types/fields/FileItemPreview.d.ts +35 -0
  116. package/src/components/form/types/fields/FileNativeMode.d.ts +21 -0
  117. package/src/components/form/types/fields/FileUploadButtonMode.d.ts +34 -0
  118. package/src/components/form/types/fields/FileWallMode.d.ts +32 -0
  119. package/src/components/form/types/fields/HiddenField.d.ts +26 -0
  120. package/src/components/form/types/fields/ImageField.d.ts +45 -0
  121. package/src/components/form/types/fields/NumberField.d.ts +48 -0
  122. package/src/components/form/types/fields/PasswordField.d.ts +46 -0
  123. package/src/components/form/types/fields/RadioField.d.ts +48 -0
  124. package/src/components/form/types/fields/RangeField.d.ts +44 -0
  125. package/src/components/form/types/fields/SearchField.d.ts +34 -0
  126. package/src/components/form/types/fields/SelectField.d.ts +71 -0
  127. package/src/components/form/types/fields/StringField.d.ts +48 -0
  128. package/src/components/form/types/fields/TelField.d.ts +37 -0
  129. package/src/components/form/types/fields/TextAreaField.d.ts +44 -0
  130. package/src/components/form/types/fields/TimeField.d.ts +51 -0
  131. package/src/components/form/types/fields/UrlField.d.ts +35 -0
  132. package/src/components/form/validation/Validation.js +54 -54
  133. package/src/components/index.d.ts +160 -0
  134. package/src/components/list/List.js +99 -15
  135. package/src/components/list/ListGroup.js +58 -8
  136. package/src/components/list/ListItem.js +79 -18
  137. package/src/components/list/index.js +5 -5
  138. package/src/components/list/types/List.d.ts +43 -0
  139. package/src/components/list/types/ListGroup.d.ts +37 -0
  140. package/src/components/list/types/ListItem.d.ts +42 -0
  141. package/src/components/menu/HasMenuItem.js +55 -6
  142. package/src/components/menu/Menu.js +113 -22
  143. package/src/components/menu/MenuDivider.js +18 -2
  144. package/src/components/menu/MenuGroup.js +61 -6
  145. package/src/components/menu/MenuItem.js +95 -11
  146. package/src/components/menu/MenuLink.js +27 -2
  147. package/src/components/menu/index.js +6 -6
  148. package/src/components/menu/types/Menu.d.ts +60 -0
  149. package/src/components/menu/types/MenuDivider.d.ts +19 -0
  150. package/src/components/menu/types/MenuGroup.d.ts +44 -0
  151. package/src/components/menu/types/MenuItem.d.ts +46 -0
  152. package/src/components/menu/types/MenuLink.d.ts +16 -0
  153. package/src/components/modal/Modal.js +258 -17
  154. package/src/components/modal/index.js +3 -3
  155. package/src/components/modal/types/Modal.d.ts +94 -0
  156. package/src/components/pagination/Pagination.js +155 -7
  157. package/src/components/pagination/index.js +3 -3
  158. package/src/components/pagination/types/Pagination.d.ts +68 -0
  159. package/src/components/popover/Popover.js +198 -11
  160. package/src/components/popover/PopoverFooter.js +33 -9
  161. package/src/components/popover/PopoverHeader.js +33 -8
  162. package/src/components/popover/index.js +4 -4
  163. package/src/components/popover/types/Popover.d.ts +83 -0
  164. package/src/components/popover/types/PopoverFooter.d.ts +24 -0
  165. package/src/components/popover/types/PopoverHeader.d.ts +26 -0
  166. package/src/components/progress/Progress.js +182 -13
  167. package/src/components/progress/index.js +3 -3
  168. package/src/components/progress/types/Progress.d.ts +77 -0
  169. package/src/components/skeleton/Skeleton.js +117 -49
  170. package/src/components/skeleton/index.js +3 -3
  171. package/src/components/skeleton/types/Skeleton.d.ts +55 -0
  172. package/src/components/slider/Slider.js +207 -10
  173. package/src/components/slider/index.js +2 -2
  174. package/src/components/slider/types/Slider.d.ts +82 -0
  175. package/src/components/spacer/Spacer.js +11 -2
  176. package/src/components/spacer/index.js +2 -2
  177. package/src/components/spacer/types/Spacer.d.ts +19 -0
  178. package/src/components/spinner/Spinner.js +180 -9
  179. package/src/components/spinner/index.js +3 -3
  180. package/src/components/spinner/types/Spinner.d.ts +71 -0
  181. package/src/components/splitter/Splitter.js +76 -13
  182. package/src/components/splitter/SplitterGutter.js +67 -5
  183. package/src/components/splitter/SplitterPanel.js +69 -2
  184. package/src/components/splitter/index.js +5 -5
  185. package/src/components/splitter/types/Splitter.d.ts +38 -0
  186. package/src/components/splitter/types/SplitterGutter.d.ts +38 -0
  187. package/src/components/splitter/types/SplitterPanel.d.ts +41 -0
  188. package/src/components/stacks/AbsoluteStack.js +23 -3
  189. package/src/components/stacks/FixedStack.js +23 -3
  190. package/src/components/stacks/HStack.js +24 -3
  191. package/src/components/stacks/PositionStack.js +111 -3
  192. package/src/components/stacks/RelativeStack.js +23 -3
  193. package/src/components/stacks/Stack.js +73 -2
  194. package/src/components/stacks/VStack.js +24 -4
  195. package/src/components/stacks/index.js +7 -7
  196. package/src/components/stacks/types/AbsoluteStack.d.ts +16 -0
  197. package/src/components/stacks/types/FixedStack.d.ts +16 -0
  198. package/src/components/stacks/types/HStack.d.ts +16 -0
  199. package/src/components/stacks/types/PositionStack.d.ts +54 -0
  200. package/src/components/stacks/types/RelativeStack.d.ts +17 -0
  201. package/src/components/stacks/types/Stack.d.ts +39 -0
  202. package/src/components/stacks/types/VStack.d.ts +16 -0
  203. package/src/components/stepper/Stepper.js +152 -12
  204. package/src/components/stepper/StepperStep.js +104 -3
  205. package/src/components/stepper/index.js +4 -4
  206. package/src/components/stepper/types/Stepper.d.ts +68 -0
  207. package/src/components/stepper/types/StepperStep.d.ts +54 -0
  208. package/src/components/switch/Switch.js +143 -6
  209. package/src/components/switch/index.js +1 -1
  210. package/src/components/switch/types/Switch.d.ts +55 -0
  211. package/src/components/table/Column.js +105 -6
  212. package/src/components/table/ColumnGroup.js +48 -3
  213. package/src/components/table/DataTable.js +256 -19
  214. package/src/components/table/SimpleTable.js +58 -4
  215. package/src/components/table/index.js +2 -2
  216. package/src/components/table/types/Column.d.ts +49 -0
  217. package/src/components/table/types/ColumnGroup.d.ts +28 -0
  218. package/src/components/table/types/DataTable.d.ts +97 -0
  219. package/src/components/table/types/SimpleTable.d.ts +40 -0
  220. package/src/components/tabs/Tabs.js +192 -5
  221. package/src/components/tabs/index.js +3 -3
  222. package/src/components/tabs/types/Tabs.d.ts +78 -0
  223. package/src/components/toast/Toast.js +133 -5
  224. package/src/components/toast/index.js +3 -3
  225. package/src/components/toast/types/Toast.d.ts +57 -0
  226. package/src/components/toast/types/ToastError.d.ts +7 -0
  227. package/src/components/toast/types/ToastInfo.d.ts +7 -0
  228. package/src/components/toast/types/ToastSuccess.d.ts +7 -0
  229. package/src/components/toast/types/ToastWarning.d.ts +7 -0
  230. package/src/components/tooltip/Tooltip.js +157 -13
  231. package/src/components/tooltip/index.js +2 -2
  232. package/src/components/tooltip/prototypes.js +1 -1
  233. package/src/components/tooltip/types/Tooltip.d.ts +65 -0
  234. package/src/core/data/MemoryManager.js +2 -2
  235. package/src/core/data/Observable.js +15 -18
  236. package/src/core/data/ObservableArray.js +118 -46
  237. package/src/core/data/ObservableChecker.js +2 -2
  238. package/src/core/data/ObservableItem.js +135 -21
  239. package/src/core/data/ObservableObject.js +126 -35
  240. package/src/core/data/ObservableResource.js +113 -3
  241. package/src/core/data/Store.js +142 -26
  242. package/src/core/data/observable-helpers/observable.is-to.js +196 -1
  243. package/src/core/data/observable-helpers/observable.prototypes.js +33 -8
  244. package/src/core/elements/anchor/anchor-with-sentinel.js +23 -2
  245. package/src/core/elements/anchor/anchor.js +16 -7
  246. package/src/core/elements/anchor/one-child-anchor-overwriting.js +2 -2
  247. package/src/core/elements/content-formatter.js +1 -1
  248. package/src/core/elements/control/for-each-array.js +9 -9
  249. package/src/core/elements/control/for-each.js +14 -14
  250. package/src/core/elements/control/show-if.js +11 -11
  251. package/src/core/elements/control/show-when.js +5 -5
  252. package/src/core/elements/control/switch.js +14 -14
  253. package/src/core/elements/description-list.js +1 -1
  254. package/src/core/elements/form.js +2 -2
  255. package/src/core/elements/fragment.js +1 -1
  256. package/src/core/elements/html5-semantics.js +1 -1
  257. package/src/core/elements/img.js +3 -3
  258. package/src/core/elements/interactive.js +1 -1
  259. package/src/core/elements/list.js +1 -1
  260. package/src/core/elements/medias.js +1 -1
  261. package/src/core/elements/meta-data.js +1 -1
  262. package/src/core/elements/svg.js +1 -1
  263. package/src/core/elements/table.js +1 -1
  264. package/src/core/errors/ArgTypesError.js +1 -1
  265. package/src/core/utils/HasEventEmitter.js +36 -2
  266. package/src/core/utils/args-types.js +9 -9
  267. package/src/core/utils/cache.js +1 -1
  268. package/src/core/utils/callback-handler.js +29 -0
  269. package/src/core/utils/debug-manager.js +6 -6
  270. package/src/core/utils/events.js +139 -139
  271. package/src/core/utils/filters/date.js +84 -3
  272. package/src/core/utils/filters/standard.js +136 -11
  273. package/src/core/utils/filters/strings.js +34 -2
  274. package/src/core/utils/filters/utils.js +40 -4
  275. package/src/core/utils/formatters.js +4 -4
  276. package/src/core/utils/helpers.js +39 -7
  277. package/src/core/utils/localstorage.js +11 -11
  278. package/src/core/utils/memoize.js +56 -3
  279. package/src/core/utils/plugins-manager.js +3 -3
  280. package/src/core/utils/property-accumulator.js +6 -6
  281. package/src/core/utils/prototypes.js +26 -1
  282. package/src/core/utils/shortcut-manager.js +2 -2
  283. package/src/core/utils/validator.js +8 -8
  284. package/src/core/wrappers/AttributesWrapper.js +32 -22
  285. package/src/core/wrappers/DocumentObserver.js +3 -3
  286. package/src/core/wrappers/ElementCreator.js +5 -5
  287. package/src/core/wrappers/HtmlElementWrapper.js +38 -12
  288. package/src/core/wrappers/NDElement.js +328 -22
  289. package/src/core/wrappers/NdPrototype.js +60 -16
  290. package/src/core/wrappers/SingletonView.js +50 -2
  291. package/src/core/wrappers/SvgElementWrapper.js +1 -1
  292. package/src/core/wrappers/constants.js +35 -2
  293. package/src/core/wrappers/prototypes/attributes-extensions.js +7 -7
  294. package/src/core/wrappers/prototypes/nd-element-extensions.js +72 -6
  295. package/src/core/wrappers/prototypes/nd-element.transition.extensions.js +42 -2
  296. package/src/core/wrappers/template-cloner/NodeCloner.js +53 -8
  297. package/src/core/wrappers/template-cloner/TemplateCloner.js +75 -6
  298. package/src/core/wrappers/template-cloner/attributes-hydrator.js +58 -2
  299. package/src/core/wrappers/template-cloner/utils.js +42 -6
  300. package/src/fetch/NativeFetch.js +3 -3
  301. package/src/i18n/bin/scan.js +6 -6
  302. package/src/i18n/index.d.ts +2 -0
  303. package/src/i18n/service/I18nService.d.ts +27 -0
  304. package/src/i18n/service/I18nService.js +5 -5
  305. package/src/i18n/service/functions.d.ts +22 -0
  306. package/src/i18n/service/functions.js +2 -2
  307. package/src/router/Route.js +3 -3
  308. package/src/router/RouteGroupHelper.js +2 -2
  309. package/src/router/Router.js +15 -15
  310. package/src/router/RouterComponent.js +33 -7
  311. package/src/router/link.js +4 -4
  312. package/src/router/modes/HashRouter.js +2 -2
  313. package/src/router/modes/HistoryRouter.js +2 -2
  314. package/src/router/modes/MemoryRouter.js +1 -1
  315. package/src/ui/components/accordion/AccordionItemRender.js +3 -3
  316. package/src/ui/components/accordion/AccordionRender.js +1 -1
  317. package/src/ui/components/alert/AlertRender.js +10 -10
  318. package/src/ui/components/avatar/avata-group/AvatarGroupRender.js +1 -1
  319. package/src/ui/components/avatar/avatar/AvatarRender.js +1 -1
  320. package/src/ui/components/breadcrumb/BreadcrumbRender.js +2 -2
  321. package/src/ui/components/button/ButtonRender.js +1 -1
  322. package/src/ui/components/contextmenu/ContextmenuRender.js +5 -5
  323. package/src/ui/components/dropdown/DropdownRender.js +8 -8
  324. package/src/ui/components/dropdown/group/DropdownGroupRender.js +2 -2
  325. package/src/ui/components/dropdown/item/DropdownItemRender.js +1 -1
  326. package/src/ui/components/form/FieldCollectionRender.js +2 -2
  327. package/src/ui/components/form/FormControlRender.js +5 -5
  328. package/src/ui/components/form/fields/AutocompleteFieldRender.js +3 -3
  329. package/src/ui/components/form/fields/CheckboxFieldRender.js +1 -1
  330. package/src/ui/components/form/fields/CheckboxGroupFieldRender.js +1 -1
  331. package/src/ui/components/form/fields/DateFieldRender.js +7 -7
  332. package/src/ui/components/form/fields/EmailFieldRender.js +1 -1
  333. package/src/ui/components/form/fields/FieldRender.js +4 -4
  334. package/src/ui/components/form/fields/FileFieldRender.js +1 -1
  335. package/src/ui/components/form/fields/PasswordFieldRender.js +2 -2
  336. package/src/ui/components/form/fields/RadioFieldRender.js +1 -1
  337. package/src/ui/components/form/fields/RangeFieldRender.js +1 -1
  338. package/src/ui/components/form/fields/SelectFieldRender.js +2 -2
  339. package/src/ui/components/form/fields/SliderFieldRender.js +6 -6
  340. package/src/ui/components/form/fields/StringFieldRender.js +1 -1
  341. package/src/ui/components/form/fields/TelFieldRender.js +1 -1
  342. package/src/ui/components/form/fields/TextAreaFieldRender.js +1 -1
  343. package/src/ui/components/form/fields/TimeFieldRender.js +3 -3
  344. package/src/ui/components/form/fields/UrlFieldRender.js +1 -1
  345. package/src/ui/components/form/file-upload-mode/FileAvatarModeRender.js +1 -1
  346. package/src/ui/components/form/file-upload-mode/FileDropzoneModeRender.js +2 -2
  347. package/src/ui/components/form/file-upload-mode/FileUploadButtonModeRender.js +2 -2
  348. package/src/ui/components/form/file-upload-mode/FileWallModeRender.js +1 -1
  349. package/src/ui/components/form/helpers.js +8 -8
  350. package/src/ui/components/form/index.js +27 -27
  351. package/src/ui/components/menu/MenuDividerRender.js +1 -1
  352. package/src/ui/components/menu/MenuGroupRender.js +3 -3
  353. package/src/ui/components/menu/MenuItemRender.js +2 -2
  354. package/src/ui/components/menu/MenuLinkRender.js +3 -3
  355. package/src/ui/components/menu/helpers.js +4 -4
  356. package/src/ui/components/modal/ModalRender.js +4 -4
  357. package/src/ui/components/pagination/PaginationRender.js +9 -9
  358. package/src/ui/components/popover/PopoverRender.js +7 -7
  359. package/src/ui/components/progress/ProgressRender.js +12 -12
  360. package/src/ui/components/skeleton/SkeletonRender.js +56 -0
  361. package/src/ui/components/splitter/SplitterGutterRender.js +1 -1
  362. package/src/ui/components/splitter/SplitterPanelRender.js +2 -2
  363. package/src/ui/components/stacks/PositionStackRender.js +1 -1
  364. package/src/ui/components/stacks/StackRender.js +1 -1
  365. package/src/ui/components/stacks/absolute-stack/AbsoluteStackRender.js +1 -1
  366. package/src/ui/components/stacks/fixed-stack/FixedStackRender.js +1 -1
  367. package/src/ui/components/stacks/h-stack/HStackRender.js +1 -1
  368. package/src/ui/components/stacks/index.js +5 -5
  369. package/src/ui/components/stacks/relative-stack/RelativeStackRender.js +1 -1
  370. package/src/ui/components/stacks/v-stack/VStackRender.js +1 -1
  371. package/src/ui/components/stepper/StepperRender.js +2 -2
  372. package/src/ui/components/stepper/StepperStepRender.js +4 -4
  373. package/src/ui/components/switch/SwitchRender.js +4 -4
  374. package/src/ui/components/table/data-table/DataTableRender.js +5 -5
  375. package/src/ui/components/table/data-table/bulk-actions.js +7 -7
  376. package/src/ui/components/table/data-table/pagination.js +6 -6
  377. package/src/ui/components/table/data-table/tables.js +25 -25
  378. package/src/ui/components/table/data-table/toolbar.js +3 -3
  379. package/src/ui/components/table/simple-table/SimpleTableRender.js +8 -8
  380. package/src/ui/components/tabs/TabsRender.js +11 -11
  381. package/src/ui/components/toast/ToastRender.js +3 -3
  382. package/src/ui/components/tooltip/TooltipRender.js +1 -1
  383. package/src/ui/index.js +36 -36
  384. package/types/elements.d.ts +163 -1037
  385. package/types/forms.d.ts +16 -20
  386. package/types/globals.d.ts +543 -0
  387. package/types/images.d.ts +2 -2
  388. package/types/observable-resource.d.ts +3 -0
  389. package/types/property-accumulator.d.ts +4 -4
  390. package/types/store.d.ts +26 -2
  391. package/types/validator.ts +3 -3
  392. package/ui.js +1 -0
  393. package/src/components/form/field/DefaultRender.js +0 -77
  394. package/src/components/form/field/FieldFactory.js +0 -107
  395. package/src/components/skeleton/SkeletonCard.js +0 -0
  396. package/src/components/skeleton/SkeletonList.js +0 -0
  397. package/src/components/skeleton/SkeletonParagraph.js +0 -0
  398. package/src/components/skeleton/SkeletonTable.js +0 -0
@@ -1,7 +1,14 @@
1
- import Stack from "./Stack";
2
- import DebugManager from "../../core/utils/debug-manager";
3
- import BaseComponent from "../BaseComponent";
1
+ import Stack from './Stack';
2
+ import DebugManager from '../../core/utils/debug-manager';
3
+ import BaseComponent from '../BaseComponent';
4
4
 
5
+ /**
6
+ *
7
+ *
8
+ * @constructor
9
+ * @param {NdChild} content
10
+ * @param {GlobalAttributes} [props={}]
11
+ */
5
12
  export default function HStack(content, props = {}) {
6
13
  if (!(this instanceof HStack)) {
7
14
  return new HStack(content, props);
@@ -14,10 +21,21 @@ export default function HStack(content, props = {}) {
14
21
  BaseComponent.extends(HStack, Stack);
15
22
 
16
23
  HStack.defaultTemplate = null;
24
+
25
+ /**
26
+ * Registers the render template for HStack.
27
+ * @param {(description: {
28
+ * [key: string]: *
29
+ * }, instance: HStack) => NdChild} template
30
+ */
17
31
  HStack.use = function(template) {
18
32
  HStack.defaultTemplate = template;
19
33
  };
20
34
 
35
+ /**
36
+ * @param {string} name
37
+ * @param {(s: HStack) => HStack} callback
38
+ */
21
39
  HStack.preset = function(name, callback) {
22
40
  if (HStack.prototype[name] || HStack[name]) {
23
41
  DebugManager.warn(`Warning: the ${name} method already exists in HStack.`);
@@ -26,6 +44,9 @@ HStack.preset = function(name, callback) {
26
44
  HStack[name] = (content, props) => callback(new HStack(content, props));
27
45
  };
28
46
 
47
+ /**
48
+ * @param {Record<string, (s: HStack) => HStack>} presets
49
+ */
29
50
  HStack.presets = function(presets) {
30
51
  for (const name in presets) {
31
52
  HStack.preset(name, presets[name]);
@@ -1,5 +1,19 @@
1
- import BaseComponent from "../BaseComponent";
2
-
1
+ import BaseComponent from '../BaseComponent';
2
+
3
+ /**
4
+ * Positioned flex container (base for AbsoluteStack, FixedStack, RelativeStack). Adds top/right/bottom/left/zIndex control.
5
+ *
6
+ *
7
+ * @example
8
+ * const overlay = new AbsoluteStack(Spinner())
9
+ * .fill()
10
+ * .center()
11
+ * .zIndex(10);
12
+ *
13
+ * @constructor
14
+ * @param {NdChild} content
15
+ * @param {GlobalAttributes} [props={}]
16
+ */
3
17
  export default function PositionStack(content, props = {}) {
4
18
  if(!(this instanceof PositionStack)) {
5
19
  return new PositionStack(content, props);
@@ -18,51 +32,97 @@ export default function PositionStack(content, props = {}) {
18
32
  height: null,
19
33
  zIndex: null,
20
34
  anchor: null,
21
- props
35
+ props,
22
36
  };
23
37
  }
24
38
 
25
39
  BaseComponent.extends(PositionStack);
26
40
 
27
41
  PositionStack.defaultTemplate = null;
42
+
43
+ /**
44
+ * Registers the render template for PositionStack.
45
+ * @param {(description: {
46
+ * position: 'absolute'|'fixed'|'relative',
47
+ * content: NdChild,
48
+ * top: string|number|null,
49
+ * right: string|number|null,
50
+ * bottom: string|number|null,
51
+ * left: string|number|null,
52
+ * width: string|number|null,
53
+ * height: string|number|null,
54
+ * zIndex: number|null,
55
+ * anchor: string|null,
56
+ * props: GlobalAttributes,
57
+ * }, instance: PositionStack) => NdChild} template
58
+ */
28
59
  PositionStack.use = function(template) {
29
60
  PositionStack.defaultTemplate = template;
30
61
  };
31
62
 
63
+ /**
64
+ * @param {number} value
65
+ * @returns {this}
66
+ */
32
67
  PositionStack.prototype.top = function(value) {
33
68
  this.$description.top = value;
34
69
  return this;
35
70
  };
36
71
 
72
+ /**
73
+ * @param {number} value
74
+ * @returns {this}
75
+ */
37
76
  PositionStack.prototype.right = function(value) {
38
77
  this.$description.right = value;
39
78
  return this;
40
79
  };
41
80
 
81
+ /**
82
+ * @param {number} value
83
+ * @returns {this}
84
+ */
42
85
  PositionStack.prototype.bottom = function(value) {
43
86
  this.$description.bottom = value;
44
87
  return this;
45
88
  };
46
89
 
90
+ /**
91
+ * @param {number} value
92
+ * @returns {this}
93
+ */
47
94
  PositionStack.prototype.left = function(value) {
48
95
  this.$description.left = value;
49
96
  return this;
50
97
  };
51
98
 
99
+ /**
100
+ * @returns {this}
101
+ */
52
102
  PositionStack.prototype.fill = function() {
53
103
  this.$description.anchor = 'fill';
54
104
  return this;
55
105
  };
106
+
107
+ /**
108
+ * @returns {this}
109
+ */
56
110
  PositionStack.prototype.topLeading = function() {
57
111
  this.$description.anchor = 'top-leading';
58
112
  return this;
59
113
  };
60
114
 
115
+ /**
116
+ * @returns {this}
117
+ */
61
118
  PositionStack.prototype.atTopCenter = function() {
62
119
  this.$description.anchor = 'top-center';
63
120
  return this;
64
121
  };
65
122
 
123
+ /**
124
+ * @returns {this}
125
+ */
66
126
  PositionStack.prototype.atTopTrailing = function() {
67
127
  this.$description.anchor = 'top-trailing';
68
128
  return this;
@@ -73,73 +133,121 @@ PositionStack.prototype.atCenterLeading = function() {
73
133
  return this;
74
134
  };
75
135
 
136
+ /**
137
+ * @returns {this}
138
+ */
76
139
  PositionStack.prototype.atCenter = function() {
77
140
  this.$description.anchor = 'center';
78
141
  return this;
79
142
  };
80
143
 
144
+ /**
145
+ * @returns {this}
146
+ */
81
147
  PositionStack.prototype.atCenterTrailing = function() {
82
148
  this.$description.anchor = 'center-trailing';
83
149
  return this;
84
150
  };
85
151
 
152
+ /**
153
+ * @returns {this}
154
+ */
86
155
  PositionStack.prototype.atBottomLeading = function() {
87
156
  this.$description.anchor = 'bottom-leading';
88
157
  return this;
89
158
  };
90
159
 
160
+ /**
161
+ * @returns {this}
162
+ */
91
163
  PositionStack.prototype.atBottomCenter = function() {
92
164
  this.$description.anchor = 'bottom-center';
93
165
  return this;
94
166
  };
95
167
 
168
+ /**
169
+ * @returns {this}
170
+ */
96
171
  PositionStack.prototype.atBottomTrailing = function() {
97
172
  this.$description.anchor = 'bottom-trailing';
98
173
  return this;
99
174
  };
100
175
 
176
+ /**
177
+ * @param {number} value
178
+ * @returns {this}
179
+ */
101
180
  PositionStack.prototype.width = function(value) {
102
181
  this.$description.width = value;
103
182
  return this;
104
183
  };
105
184
 
185
+ /**
186
+ * @param {number} value
187
+ * @returns {this}
188
+ */
106
189
  PositionStack.prototype.height = function(value) {
107
190
  this.$description.height = value;
108
191
  return this;
109
192
  };
110
193
 
194
+ /**
195
+ * @param {number} width
196
+ * @param {number} height
197
+ * @returns {this}
198
+ */
111
199
  PositionStack.prototype.size = function(width, height) {
112
200
  this.$description.width = width;
113
201
  this.$description.height = height ?? width;
114
202
  return this;
115
203
  };
116
204
 
205
+ /**
206
+ * @returns {this}
207
+ */
117
208
  PositionStack.prototype.fullWidth = function() {
118
209
  this.$description.width = '100%';
119
210
  return this;
120
211
  };
121
212
 
213
+ /**
214
+ * @returns {this}
215
+ */
122
216
  PositionStack.prototype.fullHeight = function() {
123
217
  this.$description.height = '100%';
124
218
  return this;
125
219
  };
126
220
 
221
+ /**
222
+ * @returns {this}
223
+ */
127
224
  PositionStack.prototype.fullSize = function() {
128
225
  this.$description.width = '100%';
129
226
  this.$description.height = '100%';
130
227
  return this;
131
228
  };
132
229
 
230
+ /**
231
+ * @param {number} value
232
+ * @returns {this}
233
+ */
133
234
  PositionStack.prototype.zIndex = function(value) {
134
235
  this.$description.zIndex = value;
135
236
  return this;
136
237
  };
137
238
 
239
+ /**
240
+ * @param {number} [zIndex]
241
+ * @returns {this}
242
+ */
138
243
  PositionStack.prototype.above = function(zIndex = 100) {
139
244
  this.$description.zIndex = zIndex;
140
245
  return this;
141
246
  };
142
247
 
248
+ /**
249
+ * @returns {this}
250
+ */
143
251
  PositionStack.prototype.below = function() {
144
252
  this.$description.zIndex = -1;
145
253
  return this;
@@ -1,7 +1,14 @@
1
- import BaseComponent from "../BaseComponent";
2
- import PositionStack from "./PositionStack";
3
- import DebugManager from "../../core/utils/debug-manager";
1
+ import BaseComponent from '../BaseComponent';
2
+ import PositionStack from './PositionStack';
3
+ import DebugManager from '../../core/utils/debug-manager';
4
4
 
5
+ /**
6
+ *
7
+ *
8
+ * @constructor
9
+ * @param {NdChild} content
10
+ * @param {GlobalAttributes} [props={}]
11
+ */
5
12
  export default function RelativeStack(content, props = {}) {
6
13
  if(!(this instanceof RelativeStack)) {
7
14
  return new RelativeStack(content, props);
@@ -14,10 +21,20 @@ BaseComponent.extends(RelativeStack, PositionStack);
14
21
 
15
22
  RelativeStack.defaultTemplate = null;
16
23
 
24
+ /**
25
+ * Registers the render template for RelativeStack.
26
+ * @param {(description: {
27
+ * [key: string]: *
28
+ * }, instance: RelativeStack) => NdChild} template
29
+ */
17
30
  RelativeStack.use = function(template) {
18
31
  RelativeStack.defaultTemplate = template;
19
32
  };
20
33
 
34
+ /**
35
+ * @param {string} name
36
+ * @param {(s: RelativeStack) => RelativeStack} callback
37
+ */
21
38
  RelativeStack.preset = function(name, callback) {
22
39
  if(RelativeStack.prototype[name] || RelativeStack[name]) {
23
40
  DebugManager.warn(`Warning: the ${name} method already exists in RelativeStack.`);
@@ -26,6 +43,9 @@ RelativeStack.preset = function(name, callback) {
26
43
  RelativeStack[name] = (content, props) => callback(new RelativeStack(content, props));
27
44
  };
28
45
 
46
+ /**
47
+ * @param {Record<string, (s: RelativeStack) => RelativeStack>} presets
48
+ */
29
49
  RelativeStack.presets = function(presets) {
30
50
  for(const name in presets) {
31
51
  RelativeStack.preset(name, presets[name]);
@@ -1,7 +1,22 @@
1
1
 
2
2
 
3
- import BaseComponent from "../BaseComponent";
3
+ import BaseComponent from '../BaseComponent';
4
4
 
5
+ /**
6
+ * Flex container (base for HStack/VStack). Controls wrap, grow, spacing, alignment and justify.
7
+ *
8
+ *
9
+ * @example
10
+ * const stack = new Stack(VStack(item1, item2, item3))
11
+ * .spacing(16)
12
+ * .alignCenter()
13
+ * .justifyBetween()
14
+ * .wrap(true);
15
+ *
16
+ * @constructor
17
+ * @param {NdChild} content
18
+ * @param {GlobalAttributes} [props={}]
19
+ */
5
20
  export default function Stack(content, props = {}) {
6
21
  if (!(this instanceof Stack)) {
7
22
  return new Stack(content, props);
@@ -25,70 +40,126 @@ export default function Stack(content, props = {}) {
25
40
 
26
41
  BaseComponent.extends(Stack);
27
42
 
28
-
43
+ /**
44
+ * @param {*} [enabled]
45
+ * @returns {this}
46
+ */
29
47
  Stack.prototype.wrap = function(enabled = true) {
30
48
  this.$description.wrap = enabled;
31
49
  return this;
32
50
  };
33
51
 
52
+ /**
53
+ * @param {*} [enabled]
54
+ * @returns {this}
55
+ */
34
56
  Stack.prototype.grow = function(enabled = true) {
35
57
  this.$description.grow = enabled;
36
58
  return this;
37
59
  };
38
60
 
61
+ /**
62
+ * @param {*} [enabled]
63
+ * @returns {this}
64
+ */
39
65
  Stack.prototype.reverse = function(enabled = true) {
40
66
  this.$description.reverse = enabled;
41
67
  return this;
42
68
  };
43
69
 
70
+ /**
71
+ * @param {*} [enabled]
72
+ * @returns {this}
73
+ */
44
74
  Stack.prototype.shrink = function(enabled = true) {
45
75
  this.$description.shrink = enabled;
46
76
  return this;
47
77
  };
48
78
 
79
+ /**
80
+ * @param {number} value
81
+ * @returns {this}
82
+ */
49
83
  Stack.prototype.spacing = function(value) {
50
84
  this.$description.spacing = value;
51
85
  return this;
52
86
  };
53
87
 
88
+ /**
89
+ * @returns {this}
90
+ */
54
91
  Stack.prototype.alignLeading = function() {
55
92
  this.$description.alignment = 'leading';
56
93
  return this;
57
94
  };
95
+
96
+ /**
97
+ * @returns {this}
98
+ */
58
99
  Stack.prototype.alignCenter = function() {
59
100
  this.$description.alignment = 'center';
60
101
  return this;
61
102
  };
103
+
104
+ /**
105
+ * @returns {this}
106
+ */
62
107
  Stack.prototype.alignTrailing = function() {
63
108
  this.$description.alignment = 'trailing';
64
109
  return this;
65
110
  };
111
+
112
+ /**
113
+ * @returns {this}
114
+ */
66
115
  Stack.prototype.alignStretch = function() {
67
116
  this.$description.alignment = 'stretch';
68
117
  return this;
69
118
  };
70
119
 
120
+ /**
121
+ * @returns {this}
122
+ */
71
123
  Stack.prototype.justifyStart = function() {
72
124
  this.$description.justifyContent = 'start';
73
125
  return this;
74
126
  };
127
+
128
+ /**
129
+ * @returns {this}
130
+ */
75
131
  Stack.prototype.justifyCenter = function() {
76
132
  this.$description.justifyContent = 'center';
77
133
  return this;
78
134
  };
135
+
136
+ /**
137
+ * @returns {this}
138
+ */
79
139
  Stack.prototype.justifyEnd = function() {
80
140
  this.$description.justifyContent = 'end';
81
141
  return this;
82
142
  };
143
+
144
+ /**
145
+ * @returns {this}
146
+ */
83
147
  Stack.prototype.justifyBetween = function() {
84
148
  this.$description.justifyContent = 'between';
85
149
  return this;
86
150
  };
151
+
152
+ /**
153
+ * @returns {this}
154
+ */
87
155
  Stack.prototype.justifyAround = function() {
88
156
  this.$description.justifyContent = 'around';
89
157
  return this;
90
158
  };
91
159
 
160
+ /**
161
+ * @returns {this}
162
+ */
92
163
  Stack.prototype.center = function() {
93
164
  this.alignCenter().justifyCenter();
94
165
  return this;
@@ -1,8 +1,14 @@
1
- import Stack from "./Stack";
2
- import DebugManager from "../../core/utils/debug-manager";
3
- import BaseComponent from "../BaseComponent";
4
-
1
+ import Stack from './Stack';
2
+ import DebugManager from '../../core/utils/debug-manager';
3
+ import BaseComponent from '../BaseComponent';
5
4
 
5
+ /**
6
+ *
7
+ *
8
+ * @constructor
9
+ * @param {NdChild} content
10
+ * @param {GlobalAttributes} [props={}]
11
+ */
6
12
  export default function VStack(content, props = {}) {
7
13
  if (!(this instanceof VStack)) {
8
14
  return new VStack(content, props);
@@ -16,10 +22,21 @@ export default function VStack(content, props = {}) {
16
22
  BaseComponent.extends(VStack, Stack);
17
23
 
18
24
  VStack.defaultTemplate = null;
25
+
26
+ /**
27
+ * Registers the render template for VStack.
28
+ * @param {(description: {
29
+ * [key: string]: *
30
+ * }, instance: VStack) => NdChild} template
31
+ */
19
32
  VStack.use = function(template) {
20
33
  VStack.defaultTemplate = template;
21
34
  };
22
35
 
36
+ /**
37
+ * @param {string} name
38
+ * @param {(s: VStack) => VStack} callback
39
+ */
23
40
  VStack.preset = function(name, callback) {
24
41
  if (VStack.prototype[name] || VStack[name]) {
25
42
  DebugManager.warn(`Warning: the ${name} method already exists in VStack.`);
@@ -28,6 +45,9 @@ VStack.preset = function(name, callback) {
28
45
  VStack[name] = (content, props) => callback(new VStack(content, props));
29
46
  };
30
47
 
48
+ /**
49
+ * @param {Record<string, (s: VStack) => VStack>} presets
50
+ */
31
51
  VStack.presets = function(presets) {
32
52
  for (const name in presets) {
33
53
  VStack.preset(name, presets[name]);
@@ -1,9 +1,9 @@
1
- import Stack from "./Stack";
2
- import VStack from "./VStack";
3
- import FixedStack from "./FixedStack";
4
- import HStack from "./HStack";
5
- import AbsoluteStack from "./AbsoluteStack";
6
- import RelativeStack from "./RelativeStack";
1
+ import Stack from './Stack';
2
+ import VStack from './VStack';
3
+ import FixedStack from './FixedStack';
4
+ import HStack from './HStack';
5
+ import AbsoluteStack from './AbsoluteStack';
6
+ import RelativeStack from './RelativeStack';
7
7
 
8
8
 
9
9
  const Row = HStack;
@@ -18,4 +18,4 @@ export {
18
18
  AbsoluteStack,
19
19
  Row,
20
20
  Col,
21
- }
21
+ };
@@ -0,0 +1,16 @@
1
+ import type { ValidChild } from '../../../../types/elements';
2
+ import type { PositionStackInterface, PositionStackDescription } from './PositionStack';
3
+
4
+ export interface AbsoluteStackInterface extends PositionStackInterface {}
5
+
6
+
7
+ export declare function AbsoluteStack(content: ValidChild, props?: Record<string, unknown>): AbsoluteStackInterface;
8
+ export declare namespace AbsoluteStack {
9
+
10
+
11
+ function use(template: (description: PositionStackDescription, instance: AbsoluteStackInterface) => ValidChild): void;
12
+ function preset(name: string, callback: (instance: AbsoluteStackInterface) => AbsoluteStackInterface): void;
13
+ function presets(presets: Record<string, (instance: AbsoluteStackInterface) => AbsoluteStackInterface>): void;
14
+
15
+
16
+ }
@@ -0,0 +1,16 @@
1
+ import type { ValidChild } from '../../../../types/elements';
2
+ import type { PositionStackInterface, PositionStackDescription } from './PositionStack';
3
+
4
+ export interface FixedStackInterface extends PositionStackInterface {}
5
+
6
+
7
+ export declare function FixedStack(content: ValidChild, props?: Record<string, unknown>): FixedStackInterface;
8
+ export declare namespace FixedStack {
9
+
10
+
11
+ function use(template: (description: PositionStackDescription, instance: FixedStackInterface) => ValidChild): void;
12
+ function preset(name: string, callback: (instance: FixedStackInterface) => FixedStackInterface): void;
13
+ function presets(presets: Record<string, (instance: FixedStackInterface) => FixedStackInterface>): void;
14
+
15
+
16
+ }
@@ -0,0 +1,16 @@
1
+ import type { ValidChild } from '../../../../types/elements';
2
+ import type {StackDescription, StackInterface} from './Stack';
3
+
4
+ export interface HStackInterface extends StackInterface {}
5
+
6
+
7
+ export declare function HStack(content: ValidChild, props?: Record<string, unknown>): HStackInterface;
8
+ export declare namespace HStack {
9
+
10
+
11
+ function use(template: (description: StackDescription, instance: HStackInterface) => ValidChild): void;
12
+ function preset(name: string, callback: (instance: HStackInterface) => HStackInterface): void;
13
+ function presets(presets: Record<string, (instance: HStackInterface) => HStackInterface>): void;
14
+
15
+
16
+ }
@@ -0,0 +1,54 @@
1
+ import type { ValidChild } from '../../../../types/elements';
2
+ import type { StackInterface } from './Stack';
3
+ import type { GlobalAttributes } from '../../../../types/globals';
4
+
5
+ export type PositionStackDescription = {
6
+ position: 'absolute' | 'fixed' | 'relative';
7
+ content: ValidChild;
8
+ top: string | number | null;
9
+ right: string | number | null;
10
+ bottom: string | number | null;
11
+ left: string | number | null;
12
+ width: string | number | null;
13
+ height: string | number | null;
14
+ zIndex: number | null;
15
+ anchor: string | null;
16
+ props: GlobalAttributes;
17
+ };
18
+
19
+ export interface PositionStackInterface extends Omit<StackInterface, 'render'> {
20
+ top(value: string | number): this;
21
+ right(value: string | number): this;
22
+ bottom(value: string | number): this;
23
+ left(value: string | number): this;
24
+ fill(): this;
25
+ topLeading(): this;
26
+ atTopCenter(): this;
27
+ atTopTrailing(): this;
28
+ atCenterLeading(): this;
29
+ atCenter(): this;
30
+ atCenterTrailing(): this;
31
+ atBottomLeading(): this;
32
+ atBottomCenter(): this;
33
+ atBottomTrailing(): this;
34
+ width(value: string | number): this;
35
+ height(value: string | number): this;
36
+ size(width: string | number, height?: string | number): this;
37
+ fullWidth(): this;
38
+ fullHeight(): this;
39
+ fullSize(): this;
40
+ zIndex(value: number): this;
41
+ above(zIndex?: number): this;
42
+ below(): this;
43
+ render(renderFn: (description: PositionStackDescription, instance: PositionStackInterface) => ValidChild): this;
44
+ }
45
+
46
+
47
+ export declare function PositionStack(content: ValidChild, props?: Record<string, unknown>): PositionStackInterface;
48
+ export declare namespace PositionStack {
49
+
50
+
51
+ function use(template: (description: PositionStackDescription, instance: PositionStackInterface) => ValidChild): void;
52
+
53
+
54
+ }
@@ -0,0 +1,17 @@
1
+ import type { ValidChild } from '../../../../types/elements';
2
+ import type { PositionStackInterface, PositionStackDescription } from './PositionStack';
3
+ import {StackDescription} from "./Stack";
4
+
5
+ export interface RelativeStackInterface extends PositionStackInterface {}
6
+
7
+
8
+ export declare function RelativeStack(content: ValidChild, props?: Record<string, unknown>): RelativeStackInterface;
9
+ export declare namespace RelativeStack {
10
+
11
+
12
+ function use(template: (description: PositionStackDescription, instance: RelativeStackInterface) => ValidChild): void;
13
+ function preset(name: string, callback: (instance: RelativeStackInterface) => RelativeStackInterface): void;
14
+ function presets(presets: Record<string, (instance: RelativeStackInterface) => RelativeStackInterface>): void;
15
+
16
+
17
+ }