@next-bricks/nav 1.3.0 → 1.5.0

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 (106) hide show
  1. package/dist/bricks.json +15 -7
  2. package/dist/chunks/2108.7bbec257.js +2 -0
  3. package/dist/chunks/2108.7bbec257.js.map +1 -0
  4. package/dist/chunks/4282.dba653e3.js +3 -0
  5. package/dist/chunks/4282.dba653e3.js.map +1 -0
  6. package/dist/chunks/{7632.32801e60.js → 7632.61849af0.js} +2 -2
  7. package/dist/chunks/{7632.32801e60.js.map → 7632.61849af0.js.map} +1 -1
  8. package/dist/chunks/easyops-navbar-alerts.8ce7a30f.js +2 -0
  9. package/dist/chunks/{easyops-navbar-alerts.a45cbb2d.js.map → easyops-navbar-alerts.8ce7a30f.js.map} +1 -1
  10. package/dist/chunks/eo-app-bar-wrapper.b890feea.js +3 -0
  11. package/dist/chunks/{eo-app-bar-wrapper.6bebcc39.js.map → eo-app-bar-wrapper.b890feea.js.map} +1 -1
  12. package/dist/chunks/eo-directory-tree-internal-node.97782b3e.js +2 -0
  13. package/dist/chunks/eo-directory-tree-internal-node.97782b3e.js.map +1 -0
  14. package/dist/chunks/eo-directory-tree-leaf.b2fbb3a4.js +2 -0
  15. package/dist/chunks/eo-directory-tree-leaf.b2fbb3a4.js.map +1 -0
  16. package/dist/chunks/eo-directory-tree.3d795d83.js +2 -0
  17. package/dist/chunks/eo-directory-tree.3d795d83.js.map +1 -0
  18. package/dist/chunks/eo-directory.795fc002.js +3 -0
  19. package/dist/chunks/{eo-directory.0c6a236e.js.map → eo-directory.795fc002.js.map} +1 -1
  20. package/dist/chunks/eo-frame-breadcrumb.e04ed276.js +2 -0
  21. package/dist/chunks/{eo-frame-breadcrumb.a866b434.js.map → eo-frame-breadcrumb.e04ed276.js.map} +1 -1
  22. package/dist/chunks/eo-launchpad-button-v2.d7ae8b12.js +2 -0
  23. package/dist/chunks/{eo-launchpad-button-v2.52290f94.js.map → eo-launchpad-button-v2.d7ae8b12.js.map} +1 -1
  24. package/dist/chunks/eo-launchpad-button.3eb5a588.js +2 -0
  25. package/dist/chunks/{eo-launchpad-button.16417e41.js.map → eo-launchpad-button.3eb5a588.js.map} +1 -1
  26. package/dist/chunks/eo-launchpad-quick-access.8370a05f.js +3 -0
  27. package/dist/chunks/{eo-launchpad-quick-access.3f38d5f3.js.map → eo-launchpad-quick-access.8370a05f.js.map} +1 -1
  28. package/dist/chunks/eo-launchpad-recent-visits.a0cb9bf0.js +3 -0
  29. package/dist/chunks/{eo-launchpad-recent-visits.5cd5a84d.js.map → eo-launchpad-recent-visits.a0cb9bf0.js.map} +1 -1
  30. package/dist/chunks/eo-nav-menu.2bad4c25.js +2 -0
  31. package/dist/chunks/eo-nav-menu.2bad4c25.js.map +1 -0
  32. package/dist/chunks/eo-search-launchpad.7efd85d9.js +2 -0
  33. package/dist/chunks/{eo-search-launchpad.e820f501.js.map → eo-search-launchpad.7efd85d9.js.map} +1 -1
  34. package/dist/chunks/eo-sidebar-menu-group.3b948901.js +3 -0
  35. package/dist/chunks/{eo-sidebar-menu-group.489baef5.js.map → eo-sidebar-menu-group.3b948901.js.map} +1 -1
  36. package/dist/chunks/eo-sidebar-menu-item.374bd110.js +2 -0
  37. package/dist/chunks/{eo-sidebar-menu-item.1518e0e1.js.map → eo-sidebar-menu-item.374bd110.js.map} +1 -1
  38. package/dist/chunks/eo-sidebar-menu-submenu.61d164b8.js +3 -0
  39. package/dist/chunks/{eo-sidebar-menu-submenu.fdce9f8f.js.map → eo-sidebar-menu-submenu.61d164b8.js.map} +1 -1
  40. package/dist/chunks/eo-sidebar-menu.e933f391.js +2 -0
  41. package/dist/chunks/{eo-sidebar-menu.66a6690e.js.map → eo-sidebar-menu.e933f391.js.map} +1 -1
  42. package/dist/chunks/eo-sidebar-sub-menu.abede88f.js +3 -0
  43. package/dist/chunks/{eo-sidebar-sub-menu.0058f660.js.map → eo-sidebar-sub-menu.abede88f.js.map} +1 -1
  44. package/dist/chunks/eo-sidebar.46731c6b.js +3 -0
  45. package/dist/chunks/eo-sidebar.46731c6b.js.map +1 -0
  46. package/dist/chunks/launchpad-config.64204062.js +3 -0
  47. package/dist/chunks/{launchpad-config.6d429db0.js.map → launchpad-config.64204062.js.map} +1 -1
  48. package/dist/chunks/main.7a935b30.js +2 -0
  49. package/dist/chunks/main.7a935b30.js.map +1 -0
  50. package/dist/examples.json +9 -0
  51. package/dist/index.8b01c08b.js +2 -0
  52. package/dist/index.8b01c08b.js.map +1 -0
  53. package/dist/manifest.json +155 -10
  54. package/dist/types.json +439 -68
  55. package/dist-types/bootstrap.d.ts +3 -0
  56. package/dist-types/directory-tree/DirectoryTreeContext.d.ts +20 -0
  57. package/dist-types/directory-tree/Tree.d.ts +7 -0
  58. package/dist-types/directory-tree/constants.d.ts +1 -0
  59. package/dist-types/directory-tree/directory-tree-internal-node/index.d.ts +32 -0
  60. package/dist-types/directory-tree/directory-tree-internal-node/index.spec.d.ts +1 -0
  61. package/dist-types/directory-tree/directory-tree-leaf/index.d.ts +32 -0
  62. package/dist-types/directory-tree/directory-tree-leaf/index.spec.d.ts +1 -0
  63. package/dist-types/directory-tree/index.d.ts +89 -0
  64. package/dist-types/directory-tree/index.spec.d.ts +1 -0
  65. package/dist-types/directory-tree/utils.d.ts +6 -0
  66. package/docs/eo-directory-tree-internal-node.md +48 -0
  67. package/docs/eo-directory-tree-leaf.md +24 -0
  68. package/docs/eo-directory-tree.md +80 -0
  69. package/package.json +2 -2
  70. package/dist/chunks/2108.0cce54f8.js +0 -2
  71. package/dist/chunks/2108.0cce54f8.js.map +0 -1
  72. package/dist/chunks/622.79ed3f99.js +0 -3
  73. package/dist/chunks/622.79ed3f99.js.map +0 -1
  74. package/dist/chunks/easyops-navbar-alerts.a45cbb2d.js +0 -2
  75. package/dist/chunks/eo-app-bar-wrapper.6bebcc39.js +0 -3
  76. package/dist/chunks/eo-directory.0c6a236e.js +0 -3
  77. package/dist/chunks/eo-frame-breadcrumb.a866b434.js +0 -2
  78. package/dist/chunks/eo-launchpad-button-v2.52290f94.js +0 -2
  79. package/dist/chunks/eo-launchpad-button.16417e41.js +0 -2
  80. package/dist/chunks/eo-launchpad-quick-access.3f38d5f3.js +0 -3
  81. package/dist/chunks/eo-launchpad-recent-visits.5cd5a84d.js +0 -3
  82. package/dist/chunks/eo-nav-menu.8f63a635.js +0 -2
  83. package/dist/chunks/eo-nav-menu.8f63a635.js.map +0 -1
  84. package/dist/chunks/eo-search-launchpad.e820f501.js +0 -2
  85. package/dist/chunks/eo-sidebar-menu-group.489baef5.js +0 -3
  86. package/dist/chunks/eo-sidebar-menu-item.1518e0e1.js +0 -2
  87. package/dist/chunks/eo-sidebar-menu-submenu.fdce9f8f.js +0 -3
  88. package/dist/chunks/eo-sidebar-menu.66a6690e.js +0 -2
  89. package/dist/chunks/eo-sidebar-sub-menu.0058f660.js +0 -3
  90. package/dist/chunks/eo-sidebar.004dc2cd.js +0 -3
  91. package/dist/chunks/eo-sidebar.004dc2cd.js.map +0 -1
  92. package/dist/chunks/launchpad-config.6d429db0.js +0 -3
  93. package/dist/chunks/main.a0429c3e.js +0 -2
  94. package/dist/chunks/main.a0429c3e.js.map +0 -1
  95. package/dist/index.e77f9928.js +0 -2
  96. package/dist/index.e77f9928.js.map +0 -1
  97. /package/dist/chunks/{622.79ed3f99.js.LICENSE.txt → 4282.dba653e3.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-app-bar-wrapper.6bebcc39.js.LICENSE.txt → eo-app-bar-wrapper.b890feea.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{eo-directory.0c6a236e.js.LICENSE.txt → eo-directory.795fc002.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{eo-launchpad-quick-access.3f38d5f3.js.LICENSE.txt → eo-launchpad-quick-access.8370a05f.js.LICENSE.txt} +0 -0
  101. /package/dist/chunks/{eo-launchpad-recent-visits.5cd5a84d.js.LICENSE.txt → eo-launchpad-recent-visits.a0cb9bf0.js.LICENSE.txt} +0 -0
  102. /package/dist/chunks/{eo-sidebar-menu-group.489baef5.js.LICENSE.txt → eo-sidebar-menu-group.3b948901.js.LICENSE.txt} +0 -0
  103. /package/dist/chunks/{eo-sidebar-menu-submenu.fdce9f8f.js.LICENSE.txt → eo-sidebar-menu-submenu.61d164b8.js.LICENSE.txt} +0 -0
  104. /package/dist/chunks/{eo-sidebar-sub-menu.0058f660.js.LICENSE.txt → eo-sidebar-sub-menu.abede88f.js.LICENSE.txt} +0 -0
  105. /package/dist/chunks/{eo-sidebar.004dc2cd.js.LICENSE.txt → eo-sidebar.46731c6b.js.LICENSE.txt} +0 -0
  106. /package/dist/chunks/{launchpad-config.6d429db0.js.LICENSE.txt → launchpad-config.64204062.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -249,74 +249,6 @@
249
249
  "events": [],
250
250
  "methods": []
251
251
  },
252
- "eo-search-launchpad": {
253
- "properties": [
254
- {
255
- "name": "readonly",
256
- "annotation": {
257
- "type": "keyword",
258
- "value": "boolean"
259
- }
260
- }
261
- ],
262
- "events": [],
263
- "methods": []
264
- },
265
- "eo-launchpad-recent-visits": {
266
- "properties": [],
267
- "events": [],
268
- "methods": []
269
- },
270
- "eo-sidebar-menu-submenu": {
271
- "properties": [
272
- {
273
- "name": "icon",
274
- "annotation": {
275
- "type": "reference",
276
- "typeName": {
277
- "type": "identifier",
278
- "name": "GeneralIconProps"
279
- }
280
- }
281
- },
282
- {
283
- "name": "selected",
284
- "annotation": {
285
- "type": "keyword",
286
- "value": "boolean"
287
- }
288
- },
289
- {
290
- "name": "collapsed",
291
- "annotation": {
292
- "type": "keyword",
293
- "value": "boolean"
294
- }
295
- },
296
- {
297
- "name": "menuCollapsed",
298
- "annotation": {
299
- "type": "keyword",
300
- "value": "boolean"
301
- }
302
- }
303
- ],
304
- "events": [],
305
- "methods": []
306
- },
307
- "eo-sidebar-menu": {
308
- "properties": [
309
- {
310
- "name": "menuCollapsed",
311
- "annotation": {
312
- "type": "keyword",
313
- "value": "boolean"
314
- }
315
- }
316
- ],
317
- "events": [],
318
- "methods": []
319
- },
320
252
  "eo-directory": {
321
253
  "properties": [
322
254
  {
@@ -581,6 +513,104 @@
581
513
  }
582
514
  ]
583
515
  },
516
+ "eo-search-launchpad": {
517
+ "properties": [
518
+ {
519
+ "name": "readonly",
520
+ "annotation": {
521
+ "type": "keyword",
522
+ "value": "boolean"
523
+ }
524
+ }
525
+ ],
526
+ "events": [],
527
+ "methods": []
528
+ },
529
+ "eo-launchpad-recent-visits": {
530
+ "properties": [],
531
+ "events": [],
532
+ "methods": []
533
+ },
534
+ "eo-sidebar-menu-submenu": {
535
+ "properties": [
536
+ {
537
+ "name": "icon",
538
+ "annotation": {
539
+ "type": "reference",
540
+ "typeName": {
541
+ "type": "identifier",
542
+ "name": "GeneralIconProps"
543
+ }
544
+ }
545
+ },
546
+ {
547
+ "name": "selected",
548
+ "annotation": {
549
+ "type": "keyword",
550
+ "value": "boolean"
551
+ }
552
+ },
553
+ {
554
+ "name": "collapsed",
555
+ "annotation": {
556
+ "type": "keyword",
557
+ "value": "boolean"
558
+ }
559
+ },
560
+ {
561
+ "name": "menuCollapsed",
562
+ "annotation": {
563
+ "type": "keyword",
564
+ "value": "boolean"
565
+ }
566
+ }
567
+ ],
568
+ "events": [],
569
+ "methods": []
570
+ },
571
+ "eo-sidebar-menu": {
572
+ "properties": [
573
+ {
574
+ "name": "menuCollapsed",
575
+ "annotation": {
576
+ "type": "keyword",
577
+ "value": "boolean"
578
+ }
579
+ }
580
+ ],
581
+ "events": [],
582
+ "methods": []
583
+ },
584
+ "eo-directory-tree-internal-node": {
585
+ "properties": [
586
+ {
587
+ "name": "depth",
588
+ "annotation": {
589
+ "type": "keyword",
590
+ "value": "number"
591
+ }
592
+ },
593
+ {
594
+ "name": "expanded",
595
+ "annotation": {
596
+ "type": "keyword",
597
+ "value": "boolean"
598
+ }
599
+ }
600
+ ],
601
+ "events": [
602
+ {
603
+ "name": "expand",
604
+ "detail": {
605
+ "annotation": {
606
+ "type": "keyword",
607
+ "value": "boolean"
608
+ }
609
+ }
610
+ }
611
+ ],
612
+ "methods": []
613
+ },
584
614
  "eo-sidebar-menu-group": {
585
615
  "properties": [
586
616
  {
@@ -727,6 +757,36 @@
727
757
  }
728
758
  ]
729
759
  },
760
+ "eo-directory-tree-leaf": {
761
+ "properties": [
762
+ {
763
+ "name": "depth",
764
+ "annotation": {
765
+ "type": "keyword",
766
+ "value": "number"
767
+ }
768
+ },
769
+ {
770
+ "name": "selected",
771
+ "annotation": {
772
+ "type": "keyword",
773
+ "value": "boolean"
774
+ }
775
+ }
776
+ ],
777
+ "events": [
778
+ {
779
+ "name": "select",
780
+ "detail": {
781
+ "annotation": {
782
+ "type": "keyword",
783
+ "value": "void"
784
+ }
785
+ }
786
+ }
787
+ ],
788
+ "methods": []
789
+ },
730
790
  "eo-launchpad-quick-access": {
731
791
  "properties": [
732
792
  {
@@ -740,6 +800,317 @@
740
800
  "events": [],
741
801
  "methods": []
742
802
  },
803
+ "eo-directory-tree": {
804
+ "properties": [
805
+ {
806
+ "name": "data",
807
+ "annotation": {
808
+ "type": "array",
809
+ "elementType": {
810
+ "type": "reference",
811
+ "typeName": {
812
+ "type": "identifier",
813
+ "name": "TreeItem"
814
+ }
815
+ }
816
+ }
817
+ },
818
+ {
819
+ "name": "directoryTitle",
820
+ "annotation": {
821
+ "type": "keyword",
822
+ "value": "string"
823
+ }
824
+ },
825
+ {
826
+ "name": "searchable",
827
+ "annotation": {
828
+ "type": "keyword",
829
+ "value": "boolean"
830
+ }
831
+ },
832
+ {
833
+ "name": "placeholder",
834
+ "annotation": {
835
+ "type": "keyword",
836
+ "value": "string"
837
+ }
838
+ },
839
+ {
840
+ "name": "searchFields",
841
+ "annotation": {
842
+ "type": "array",
843
+ "elementType": {
844
+ "type": "parenthesizedType",
845
+ "annotation": {
846
+ "type": "union",
847
+ "types": [
848
+ {
849
+ "type": "keyword",
850
+ "value": "string"
851
+ },
852
+ {
853
+ "type": "array",
854
+ "elementType": {
855
+ "type": "keyword",
856
+ "value": "string"
857
+ }
858
+ }
859
+ ]
860
+ }
861
+ }
862
+ }
863
+ },
864
+ {
865
+ "name": "suffixBrick",
866
+ "annotation": {
867
+ "type": "typeLiteral",
868
+ "members": [
869
+ {
870
+ "type": "propertySignature",
871
+ "key": {
872
+ "type": "identifier",
873
+ "name": "useBrick"
874
+ },
875
+ "annotation": {
876
+ "type": "reference",
877
+ "typeName": {
878
+ "type": "identifier",
879
+ "name": "UseBrickConf"
880
+ }
881
+ },
882
+ "computed": false
883
+ }
884
+ ]
885
+ }
886
+ },
887
+ {
888
+ "name": "selectedKeys",
889
+ "annotation": {
890
+ "type": "array",
891
+ "elementType": {
892
+ "type": "keyword",
893
+ "value": "string"
894
+ }
895
+ }
896
+ },
897
+ {
898
+ "name": "expandedKeys",
899
+ "annotation": {
900
+ "type": "array",
901
+ "elementType": {
902
+ "type": "keyword",
903
+ "value": "string"
904
+ }
905
+ }
906
+ }
907
+ ],
908
+ "events": [
909
+ {
910
+ "name": "expand",
911
+ "detail": {
912
+ "annotation": {
913
+ "type": "typeLiteral",
914
+ "members": [
915
+ {
916
+ "type": "propertySignature",
917
+ "key": {
918
+ "type": "identifier",
919
+ "name": "keys"
920
+ },
921
+ "annotation": {
922
+ "type": "array",
923
+ "elementType": {
924
+ "type": "keyword",
925
+ "value": "string"
926
+ }
927
+ },
928
+ "computed": false
929
+ },
930
+ {
931
+ "type": "propertySignature",
932
+ "key": {
933
+ "type": "identifier",
934
+ "name": "node"
935
+ },
936
+ "annotation": {
937
+ "type": "reference",
938
+ "typeName": {
939
+ "type": "identifier",
940
+ "name": "NodeData"
941
+ }
942
+ },
943
+ "computed": false
944
+ }
945
+ ]
946
+ }
947
+ }
948
+ },
949
+ {
950
+ "name": "select",
951
+ "detail": {
952
+ "annotation": {
953
+ "type": "typeLiteral",
954
+ "members": [
955
+ {
956
+ "type": "propertySignature",
957
+ "key": {
958
+ "type": "identifier",
959
+ "name": "keys"
960
+ },
961
+ "annotation": {
962
+ "type": "array",
963
+ "elementType": {
964
+ "type": "keyword",
965
+ "value": "string"
966
+ }
967
+ },
968
+ "computed": false
969
+ },
970
+ {
971
+ "type": "propertySignature",
972
+ "key": {
973
+ "type": "identifier",
974
+ "name": "node"
975
+ },
976
+ "annotation": {
977
+ "type": "reference",
978
+ "typeName": {
979
+ "type": "identifier",
980
+ "name": "NodeData"
981
+ }
982
+ },
983
+ "computed": false
984
+ }
985
+ ]
986
+ }
987
+ }
988
+ }
989
+ ],
990
+ "methods": [
991
+ {
992
+ "name": "expandAll",
993
+ "params": [],
994
+ "returns": {}
995
+ },
996
+ {
997
+ "name": "collapseAll",
998
+ "params": [],
999
+ "returns": {}
1000
+ }
1001
+ ],
1002
+ "types": [
1003
+ {
1004
+ "type": "interface",
1005
+ "name": "TreeItem",
1006
+ "body": [
1007
+ {
1008
+ "type": "propertySignature",
1009
+ "key": {
1010
+ "type": "identifier",
1011
+ "name": "key"
1012
+ },
1013
+ "annotation": {
1014
+ "type": "keyword",
1015
+ "value": "string"
1016
+ },
1017
+ "computed": false
1018
+ },
1019
+ {
1020
+ "type": "propertySignature",
1021
+ "key": {
1022
+ "type": "identifier",
1023
+ "name": "title"
1024
+ },
1025
+ "annotation": {
1026
+ "type": "keyword",
1027
+ "value": "string"
1028
+ },
1029
+ "computed": false
1030
+ },
1031
+ {
1032
+ "type": "propertySignature",
1033
+ "key": {
1034
+ "type": "identifier",
1035
+ "name": "children"
1036
+ },
1037
+ "annotation": {
1038
+ "type": "array",
1039
+ "elementType": {
1040
+ "type": "reference",
1041
+ "typeName": {
1042
+ "type": "identifier",
1043
+ "name": "TreeItem"
1044
+ }
1045
+ }
1046
+ },
1047
+ "optional": true,
1048
+ "computed": false
1049
+ },
1050
+ {
1051
+ "type": "indexSignature",
1052
+ "parameter": {
1053
+ "type": "identifier",
1054
+ "name": "key",
1055
+ "annotation": {
1056
+ "type": "keyword",
1057
+ "value": "string"
1058
+ }
1059
+ },
1060
+ "annotation": {
1061
+ "type": "keyword",
1062
+ "value": "any"
1063
+ }
1064
+ }
1065
+ ]
1066
+ },
1067
+ {
1068
+ "type": "interface",
1069
+ "name": "NodeData",
1070
+ "body": [
1071
+ {
1072
+ "type": "propertySignature",
1073
+ "key": {
1074
+ "type": "identifier",
1075
+ "name": "depth"
1076
+ },
1077
+ "annotation": {
1078
+ "type": "keyword",
1079
+ "value": "number"
1080
+ },
1081
+ "computed": false
1082
+ },
1083
+ {
1084
+ "type": "propertySignature",
1085
+ "key": {
1086
+ "type": "identifier",
1087
+ "name": "index"
1088
+ },
1089
+ "annotation": {
1090
+ "type": "keyword",
1091
+ "value": "number"
1092
+ },
1093
+ "computed": false
1094
+ },
1095
+ {
1096
+ "type": "propertySignature",
1097
+ "key": {
1098
+ "type": "identifier",
1099
+ "name": "data"
1100
+ },
1101
+ "annotation": {
1102
+ "type": "reference",
1103
+ "typeName": {
1104
+ "type": "identifier",
1105
+ "name": "TreeItem"
1106
+ }
1107
+ },
1108
+ "computed": false
1109
+ }
1110
+ ]
1111
+ }
1112
+ ]
1113
+ },
743
1114
  "nav.launchpad-config": {
744
1115
  "properties": [
745
1116
  {
@@ -15,3 +15,6 @@ import "./sidebar/sidebar-menu/index.js";
15
15
  import "./sidebar/index.js";
16
16
  import "./sidebar-sub-menu/index.js";
17
17
  import "./directory/index.js";
18
+ import "./directory-tree/index.js";
19
+ import "./directory-tree/directory-tree-leaf/index.js";
20
+ import "./directory-tree/directory-tree-internal-node/index.js";
@@ -0,0 +1,20 @@
1
+ import { UseBrickConf } from "@next-core/types";
2
+ import React from "react";
3
+ import { NodeData } from ".";
4
+ export interface ContextOfDirectoryTree {
5
+ expandedKeysSet: Set<string>;
6
+ selectedKeysSet: Set<string>;
7
+ onExpand: (data: {
8
+ keys: string[];
9
+ node: NodeData;
10
+ }) => void;
11
+ onSelect: (data: {
12
+ keys: string[];
13
+ node: NodeData;
14
+ }) => void;
15
+ suffixBrick?: {
16
+ useBrick: UseBrickConf;
17
+ };
18
+ }
19
+ export declare const DirectoryTreeContext: React.Context<ContextOfDirectoryTree>;
20
+ export declare const useDirectoryTreeContext: () => ContextOfDirectoryTree;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { TreeItem } from "./";
3
+ interface TreeProps {
4
+ data: TreeItem[];
5
+ }
6
+ export declare function Tree(props: TreeProps): React.JSX.Element[];
7
+ export {};
@@ -0,0 +1 @@
1
+ export declare const IndentSize = 10;
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ export interface EoDirectoryTreeInternalNodeProps {
5
+ depth: number;
6
+ expanded?: boolean;
7
+ }
8
+ export interface EoDirectoryTreeInternalNodeEvents {
9
+ expand: CustomEvent<boolean>;
10
+ }
11
+ export interface EoDirectoryTreeInternalNodeEventsMap {
12
+ onExpand: "expand";
13
+ }
14
+ /**
15
+ * 目录树节点节点
16
+ */
17
+ export declare class EoDirectoryTreeInternalNode extends ReactNextElement {
18
+ #private;
19
+ /**
20
+ * 深度
21
+ */
22
+ accessor depth: number;
23
+ /**
24
+ * 是否展开
25
+ */
26
+ accessor expanded: boolean | undefined;
27
+ render(): React.JSX.Element;
28
+ }
29
+ export interface EoDirectoryTreeInternalNodeComponentProps extends EoDirectoryTreeInternalNodeProps {
30
+ onExpand: () => void;
31
+ }
32
+ export declare function EoDirectoryTreeInternalNodeComponent(props: EoDirectoryTreeInternalNodeComponentProps): React.JSX.Element;
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ export interface EoDirectoryTreeLeafProps {
5
+ depth: number;
6
+ selected?: boolean;
7
+ }
8
+ export interface EoDirectoryTreeLeafEvents {
9
+ select: CustomEvent<void>;
10
+ }
11
+ export interface EoDirectoryTreeLeafEventsMap {
12
+ onSelect: "select";
13
+ }
14
+ /**
15
+ * 目录树叶子节点
16
+ */
17
+ export declare class EoDirectoryTreeLeaf extends ReactNextElement {
18
+ #private;
19
+ /**
20
+ * 深度
21
+ */
22
+ accessor depth: number;
23
+ /**
24
+ * 是否选中
25
+ */
26
+ accessor selected: boolean | undefined;
27
+ render(): React.JSX.Element;
28
+ }
29
+ export interface EoDirectoryTreeLeafComponentProps extends EoDirectoryTreeLeafProps {
30
+ onSelect: () => void;
31
+ }
32
+ export declare function EoDirectoryTreeLeafComponent(props: EoDirectoryTreeLeafComponentProps): React.JSX.Element;