@dao-style/core 0.0.1-beta.1 → 0.0.1-beta.10

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 (142) hide show
  1. package/README.md +5 -5
  2. package/dist/components/action-icon/action-icon.vue.d.ts +35 -0
  3. package/dist/components/action-icon/index.d.ts +1 -0
  4. package/dist/components/action-icon/test/action-icon.spec.d.ts +1 -0
  5. package/dist/components/breadcrumb/breadcrumb-item-props.d.ts +16 -0
  6. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +24 -0
  7. package/dist/components/breadcrumb/breadcrumb-props.d.ts +40 -0
  8. package/dist/components/breadcrumb/breadcrumb.vue.d.ts +64 -0
  9. package/dist/components/breadcrumb/index.d.ts +2 -0
  10. package/dist/components/breadcrumb/test/breadcrumb-item.spec.d.ts +1 -0
  11. package/dist/components/breadcrumb/test/breadcrumb.spec.d.ts +1 -0
  12. package/dist/components/button/button-group.vue.d.ts +2 -0
  13. package/dist/components/button/button-icon.vue.d.ts +20 -0
  14. package/dist/components/button/button.vue.d.ts +75 -0
  15. package/dist/components/button/index.d.ts +2 -0
  16. package/dist/components/button/props.d.ts +40 -0
  17. package/dist/components/button/test/button.spec.d.ts +1 -0
  18. package/dist/components/card/card-item.vue.d.ts +2 -0
  19. package/dist/components/card/card.vue.d.ts +44 -0
  20. package/dist/components/card/index.d.ts +2 -0
  21. package/dist/components/card/test/card.spec.d.ts +1 -0
  22. package/dist/components/card/types.d.ts +1 -0
  23. package/dist/components/checkbox/checkbox-group.vue.d.ts +26 -0
  24. package/dist/components/checkbox/checkbox.vue.d.ts +73 -0
  25. package/dist/components/checkbox/index.d.ts +2 -0
  26. package/dist/components/checkbox/test/checkbox-group.spec.d.ts +1 -0
  27. package/dist/components/checkbox/test/checkbox.spec.d.ts +1 -0
  28. package/dist/components/checkbox/test/utils.d.ts +6 -0
  29. package/dist/components/dialog/dialog-footer.vue.d.ts +33 -0
  30. package/dist/components/dialog/dialog-header.vue.d.ts +24 -0
  31. package/dist/components/dialog/dialog.vue.d.ts +133 -0
  32. package/dist/components/dialog/index.d.ts +3 -0
  33. package/dist/components/dialog/test/dialog-footer.spec.d.ts +1 -0
  34. package/dist/components/dialog/test/dialog-header.spec.d.ts +1 -0
  35. package/dist/components/dialog/test/dialog.spec.d.ts +1 -0
  36. package/dist/components/drawer/drawer.vue.d.ts +84 -0
  37. package/dist/components/drawer/index.d.ts +2 -0
  38. package/dist/components/drawer/props.d.ts +41 -0
  39. package/dist/components/drawer/test/drawer.spec.d.ts +1 -0
  40. package/dist/components/dropdown/dropdown-item.vue.d.ts +36 -0
  41. package/dist/components/dropdown/dropdown-menu.vue.d.ts +2 -0
  42. package/dist/components/dropdown/dropdown.vue.d.ts +51 -0
  43. package/dist/components/dropdown/index.d.ts +3 -0
  44. package/dist/components/dropdown/test/dropdown-item.spec.d.ts +1 -0
  45. package/dist/components/dropdown/test/dropdown-menu.spec.d.ts +1 -0
  46. package/dist/components/dropdown/test/dropdown.spec.d.ts +1 -0
  47. package/dist/components/form/form-group.vue.d.ts +13 -0
  48. package/dist/components/form/form-item.vue.d.ts +51 -0
  49. package/dist/components/form/form.vue.d.ts +22 -0
  50. package/dist/components/form/index.d.ts +3 -0
  51. package/dist/components/form/test/form-group.spec.d.ts +1 -0
  52. package/dist/components/form/test/form-item.spec.d.ts +1 -0
  53. package/dist/components/form/test/form.spec.d.ts +1 -0
  54. package/dist/components/header/header.vue.d.ts +26 -0
  55. package/dist/components/header/index.d.ts +1 -0
  56. package/dist/components/header/props.d.ts +15 -0
  57. package/dist/components/header/test/header.spec.d.ts +1 -0
  58. package/dist/components/icon/icon.vue.d.ts +19 -0
  59. package/dist/components/icon/index.d.ts +2 -0
  60. package/dist/components/icon/svg.d.ts +1 -0
  61. package/dist/components/icon/test/icon.spec.d.ts +1 -0
  62. package/dist/components/index.d.ts +24 -0
  63. package/dist/components/input/index.d.ts +1 -0
  64. package/dist/components/input/input.vue.d.ts +103 -0
  65. package/dist/components/input/props.d.ts +47 -0
  66. package/dist/components/input/test/input.spec.d.ts +1 -0
  67. package/dist/components/message/index.d.ts +1 -0
  68. package/dist/components/message/message.vue.d.ts +53 -0
  69. package/dist/components/message/props.d.ts +25 -0
  70. package/dist/components/message/test/message.spec.d.ts +1 -0
  71. package/dist/components/message/types.d.ts +1 -0
  72. package/dist/components/nav/index.d.ts +4 -0
  73. package/dist/components/nav/nav-head.vue.d.ts +34 -0
  74. package/dist/components/nav/nav-item.vue.d.ts +68 -0
  75. package/dist/components/nav/nav-sub.vue.d.ts +80 -0
  76. package/dist/components/nav/nav.vue.d.ts +33 -0
  77. package/dist/components/nav/props.d.ts +98 -0
  78. package/dist/components/nav/test/nav-head.spec.d.ts +1 -0
  79. package/dist/components/nav/test/nav-item.spec.d.ts +1 -0
  80. package/dist/components/nav/test/nav-sub.spec.d.ts +1 -0
  81. package/dist/components/nav/test/nav.spec.d.ts +1 -0
  82. package/dist/components/nav/types.d.ts +13 -0
  83. package/dist/components/pagination/index.d.ts +1 -0
  84. package/dist/components/pagination/pagination-props.d.ts +39 -0
  85. package/dist/components/pagination/pagination.vue.d.ts +82 -0
  86. package/dist/components/pagination/test/pagination.spec.d.ts +1 -0
  87. package/dist/components/plugin.d.ts +5 -0
  88. package/dist/components/popover/index.d.ts +1 -0
  89. package/dist/components/popover/popover.vue.d.ts +120 -0
  90. package/dist/components/popover/test/popover.spec.d.ts +1 -0
  91. package/dist/components/popper/index.d.ts +1 -0
  92. package/dist/components/popper/popper-content.vue.d.ts +57 -0
  93. package/dist/components/popper/popper-props.d.ts +74 -0
  94. package/dist/components/popper/popper.vue.d.ts +123 -0
  95. package/dist/components/popper/test/popper.spec.d.ts +1 -0
  96. package/dist/components/progress/index.d.ts +1 -0
  97. package/dist/components/progress/progress.vue.d.ts +38 -0
  98. package/dist/components/progress/test/progress.spec.d.ts +1 -0
  99. package/dist/components/radio/index.d.ts +2 -0
  100. package/dist/components/radio/radio-group.vue.d.ts +33 -0
  101. package/dist/components/radio/radio.vue.d.ts +55 -0
  102. package/dist/components/radio/test/radio-group.spec.d.ts +1 -0
  103. package/dist/components/radio/test/radio.spec.d.ts +1 -0
  104. package/dist/components/select/index.d.ts +2 -0
  105. package/dist/components/select/option.vue.d.ts +32 -0
  106. package/dist/components/select/select.vue.d.ts +229 -0
  107. package/dist/components/select/test/option.spec.d.ts +1 -0
  108. package/dist/components/select/test/select.spec.d.ts +1 -0
  109. package/dist/components/select/types.d.ts +22 -0
  110. package/dist/components/switch/index.d.ts +1 -0
  111. package/dist/components/switch/switch.vue.d.ts +62 -0
  112. package/dist/components/switch/test/switch.spec.d.ts +1 -0
  113. package/dist/components/table/index.d.ts +1 -0
  114. package/dist/components/table/resizer.vue.d.ts +33 -0
  115. package/dist/components/table/table-props.d.ts +66 -0
  116. package/dist/components/table/table.vue.d.ts +186 -0
  117. package/dist/components/table/test/table.spec.d.ts +1 -0
  118. package/dist/components/table/type.d.ts +20 -0
  119. package/dist/components/tabs/index.d.ts +3 -0
  120. package/dist/components/tabs/tab-item.vue.d.ts +30 -0
  121. package/dist/components/tabs/tab-nav.vue.d.ts +33 -0
  122. package/dist/components/tabs/tabs.vue.d.ts +43 -0
  123. package/dist/components/tabs/test/tabs.spec.d.ts +1 -0
  124. package/dist/components/tabs/types.d.ts +9 -0
  125. package/dist/components/tooltip/index.d.ts +1 -0
  126. package/dist/components/tooltip/test/tooltip.spec.d.ts +1 -0
  127. package/dist/components/tooltip/tooltip-props.d.ts +60 -0
  128. package/dist/components/tooltip/tooltip.vue.d.ts +120 -0
  129. package/dist/dao-style.es.js +2384 -1068
  130. package/dist/dao-style.umd.js +1 -1
  131. package/dist/index.d.ts +8 -0
  132. package/dist/style.css +1 -1
  133. package/dist/styles/color/alias.json +67 -0
  134. package/dist/styles/color/alias.scss +37 -0
  135. package/dist/styles/color/var.json +146 -0
  136. package/dist/styles/color/var.scss +119 -0
  137. package/dist/utils/assist.d.ts +13 -0
  138. package/dist/utils/constant.d.ts +17 -0
  139. package/dist/utils/copy-content.d.ts +2 -0
  140. package/dist/utils/is-nullish.d.ts +1 -0
  141. package/package.json +17 -16
  142. package/volar.d.ts +48 -0
@@ -0,0 +1,67 @@
1
+ {
2
+ "meta": {
3
+ "extend": "var"
4
+ },
5
+ "spec": {
6
+ "Text": {
7
+ "": {
8
+ "PageTitle": "$Navigation.060",
9
+ "Primary": "$Gray.010",
10
+ "Secondary": "$Gray.040",
11
+ "Tertiary": "$Gray.070",
12
+ "Disabled": "$Gray.120"
13
+ },
14
+ "Black": {
15
+ "Primary": "$Gray.110",
16
+ "Secondary": "$Gray.080",
17
+ "Helper": "$Gray.050",
18
+ "Disabled": "$Gray.020"
19
+ }
20
+ },
21
+ "Icon": {
22
+ "": {
23
+ "": "$GrayBlue.040",
24
+ "Hover": "$GrayBlue.030",
25
+ "Disabled": "$Gray.120"
26
+ },
27
+ "Primary": {
28
+ "": "$PrimaryBlue.040",
29
+ "Hover": "$PrimaryBlue.060",
30
+ "Active": "$PrimaryBlue.030",
31
+ "Disabled": "$GrayBlue.110",
32
+ "Focus": "$PrimaryBlue.060"
33
+ }
34
+ },
35
+ "Bg": {
36
+ "": {
37
+ "": "$GrayBlue.090",
38
+ "Secondary": "$GrayBlue.100",
39
+ "Tertiary": "$GrayBlue.110"
40
+ },
41
+ "Component": {
42
+ "": "$GrayBlue.070",
43
+ "Selected": "$Acidblue.040"
44
+ }
45
+ },
46
+ "Line":{
47
+ "Divider":"$GrayBlue.070"
48
+ },
49
+ "Status": {
50
+ "Success": "$Green.030",
51
+ "Warning": "$Yellow.040",
52
+ "Error": "$Red.050",
53
+ "Info": "$Acidblue.040"
54
+ },
55
+ "Running": {
56
+ "Status": {
57
+ "Health": "#6BAB6D",
58
+ "Warning": "$Yellow.040",
59
+ "Error": "#D26052"
60
+ }
61
+ },
62
+ "System": {
63
+ "Primary": "$PrimaryBlue.040",
64
+ "Secondary": "$Acidblue.040"
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,37 @@
1
+ /* DON'T MODIFY THIS FILE! */
2
+ /* Auto generated css and scss from ./src/styles/color/alias.json. */
3
+ @import './var.scss';
4
+
5
+ $dao-text-page-title: $dao-navigation-060;
6
+ $dao-text-primary: $dao-gray-010;
7
+ $dao-text-secondary: $dao-gray-040;
8
+ $dao-text-tertiary: $dao-gray-070;
9
+ $dao-text-disabled: $dao-gray-120;
10
+ $dao-text-black-primary: $dao-gray-110;
11
+ $dao-text-black-secondary: $dao-gray-080;
12
+ $dao-text-black-helper: $dao-gray-050;
13
+ $dao-text-black-disabled: $dao-gray-020;
14
+ $dao-icon: $dao-gray-blue-040;
15
+ $dao-icon-hover: $dao-gray-blue-030;
16
+ $dao-icon-disabled: $dao-gray-120;
17
+ $dao-icon-primary: $dao-primary-blue-040;
18
+ $dao-icon-primary-hover: $dao-primary-blue-060;
19
+ $dao-icon-primary-active: $dao-primary-blue-030;
20
+ $dao-icon-primary-disabled: $dao-gray-blue-110;
21
+ $dao-icon-primary-focus: $dao-primary-blue-060;
22
+ $dao-bg: $dao-gray-blue-090;
23
+ $dao-bg-secondary: $dao-gray-blue-100;
24
+ $dao-bg-tertiary: $dao-gray-blue-110;
25
+ $dao-bg-component: $dao-gray-blue-070;
26
+ $dao-bg-component-selected: $dao-acidblue-040;
27
+ $dao-line-divider: $dao-gray-blue-070;
28
+ $dao-status-success: $dao-green-030;
29
+ $dao-status-warning: $dao-yellow-040;
30
+ $dao-status-error: $dao-red-050;
31
+ $dao-status-info: $dao-acidblue-040;
32
+ $dao-running-status-health: #6BAB6D;
33
+ $dao-running-status-warning: $dao-yellow-040;
34
+ $dao-running-status-error: #D26052;
35
+ $dao-system-primary: $dao-primary-blue-040;
36
+ $dao-system-secondary: $dao-acidblue-040;
37
+
@@ -0,0 +1,146 @@
1
+ {
2
+ "meta": {},
3
+ "spec": {
4
+ "PrimaryBlue": {
5
+ "010": "#0E2B58",
6
+ "020": "#154184",
7
+ "030": "#1B56B1",
8
+ "040": "#226BDB",
9
+ "050": "#3E85E2",
10
+ "060": "#4E89E4",
11
+ "070": "#7BA7EA",
12
+ "080": "#A7C4F1",
13
+ "090": "#E9F0FC"
14
+ },
15
+ "Orange": {
16
+ "010": "#823108",
17
+ "020": "#B2430B",
18
+ "030": "#E2550E",
19
+ "040": "#F27131",
20
+ "050": "#F59260",
21
+ "060": "#F8B391",
22
+ "070": "#FBD4C1",
23
+ "080": "#FEF5F1"
24
+ },
25
+ "Yellow": {
26
+ "010": "#885D07",
27
+ "020": "#B87E0A",
28
+ "030": "#E99F0C",
29
+ "040": "#F4B434",
30
+ "050": "#F7C664",
31
+ "060": "#F9D894",
32
+ "070": "#FCEAC5",
33
+ "080": "#FEFBF5"
34
+ },
35
+ "Green": {
36
+ "010": "#1A753E",
37
+ "020": "#239F55",
38
+ "030": "#2CC76A",
39
+ "040": "#4FD886",
40
+ "050": "#79E2A3",
41
+ "060": "#A3EBC0",
42
+ "070": "#CDF4DC",
43
+ "080": "#F7FDF9"
44
+ },
45
+ "Cyan": {
46
+ "010": "#146E80",
47
+ "020": "#1B94AC",
48
+ "030": "#21BAD9",
49
+ "040": "#4ACAE3",
50
+ "050": "#76D7EA",
51
+ "060": "#A2E4F1",
52
+ "070": "#CEF1F8",
53
+ "080": "#F2FBFD"
54
+ },
55
+ "Purple": {
56
+ "010": "#1E1977",
57
+ "020": "#2922A0",
58
+ "030": "#3529CC",
59
+ "040": "#584FDC",
60
+ "050": "#7F78E3",
61
+ "060": "#A7A2EC",
62
+ "070": "#CECCF5",
63
+ "080": "#F7F7FD"
64
+ },
65
+ "Red": {
66
+ "010": "#5F0C0C",
67
+ "020": "#8C1212",
68
+ "030": "#B91818",
69
+ "040": "#E22222",
70
+ "050": "#E84F4F",
71
+ "060": "#EE7C7C",
72
+ "070": "#F4A9A9",
73
+ "080": "#FDEDED"
74
+ },
75
+ "Acidblue": {
76
+ "100": "#F4F9FC",
77
+ "010": "#0A4061",
78
+ "020": "#0F5F8F",
79
+ "030": "#137EBE",
80
+ "040": "#1E9CE8",
81
+ "050": "#43A1E5",
82
+ "060": "#4BB0ED",
83
+ "070": "#79C4F1",
84
+ "080": "#A7D8F6",
85
+ "090": "#ECF7FD"
86
+ },
87
+ "GrayBlue": {
88
+ "100": "#F7F8FA",
89
+ "110": "#F8FAFC",
90
+ "010": "#101114",
91
+ "020": "#3D444F",
92
+ "030": "#80868E",
93
+ "040": "#AAB0B8",
94
+ "050": "#CBCFD8",
95
+ "060": "#D6DBE6",
96
+ "070": "#E4E7ED",
97
+ "075": "#EAEDF3",
98
+ "080": "#EEF1F5",
99
+ "090": "#F1F3F6"
100
+ },
101
+ "Gray": {
102
+ "010": "#333333",
103
+ "020": "#4F4F4F",
104
+ "030": "#5c5c5c",
105
+ "040": "#666666",
106
+ "050": "#7F7F7F",
107
+ "060": "#888888",
108
+ "070": "#999999",
109
+ "080": "#A5A5A5",
110
+ "090": "#AFAFAF",
111
+ "100": "#BBBBBB",
112
+ "110": "#C7C7C7",
113
+ "120": "#CCCCCC",
114
+ "130": "#D2D2D2",
115
+ "140": "#DDDDDD",
116
+ "150": "#E2E2E2",
117
+ "160": "#EAEAEA",
118
+ "170": "#EEEEEE",
119
+ "180": "#F2F2F2",
120
+ "190": "#F9F9F9",
121
+ "200": "#FAFAFA"
122
+ },
123
+ "Navigation": {
124
+ "010": "#2C3037",
125
+ "020": "#3B3F4A",
126
+ "030": "#676B75",
127
+ "040": "#878C98",
128
+ "050": "#C5CAD8",
129
+ "060": "#203548",
130
+ "070": "#2975D2",
131
+ "080": "#B6C2D2",
132
+ "090": "#EAEEF5",
133
+ "100": "#F6F8FB"
134
+ },
135
+ "Pure": {
136
+ "White": "#FFFFFF",
137
+ "Black": "#000000"
138
+ },
139
+ "LineGray": {
140
+ "010": "#C7D0DE",
141
+ "020": "#C8CCD0",
142
+ "030": "#DADBDE",
143
+ "040": "#EBEDF0"
144
+ }
145
+ }
146
+ }
@@ -0,0 +1,119 @@
1
+ /* DON'T MODIFY THIS FILE! */
2
+ /* Auto generated css and scss from ./src/styles/color/var.json. */
3
+
4
+ $dao-primary-blue-010: #0E2B58;
5
+ $dao-primary-blue-020: #154184;
6
+ $dao-primary-blue-030: #1B56B1;
7
+ $dao-primary-blue-040: #226BDB;
8
+ $dao-primary-blue-050: #3E85E2;
9
+ $dao-primary-blue-060: #4E89E4;
10
+ $dao-primary-blue-070: #7BA7EA;
11
+ $dao-primary-blue-080: #A7C4F1;
12
+ $dao-primary-blue-090: #E9F0FC;
13
+ $dao-orange-010: #823108;
14
+ $dao-orange-020: #B2430B;
15
+ $dao-orange-030: #E2550E;
16
+ $dao-orange-040: #F27131;
17
+ $dao-orange-050: #F59260;
18
+ $dao-orange-060: #F8B391;
19
+ $dao-orange-070: #FBD4C1;
20
+ $dao-orange-080: #FEF5F1;
21
+ $dao-yellow-010: #885D07;
22
+ $dao-yellow-020: #B87E0A;
23
+ $dao-yellow-030: #E99F0C;
24
+ $dao-yellow-040: #F4B434;
25
+ $dao-yellow-050: #F7C664;
26
+ $dao-yellow-060: #F9D894;
27
+ $dao-yellow-070: #FCEAC5;
28
+ $dao-yellow-080: #FEFBF5;
29
+ $dao-green-010: #1A753E;
30
+ $dao-green-020: #239F55;
31
+ $dao-green-030: #2CC76A;
32
+ $dao-green-040: #4FD886;
33
+ $dao-green-050: #79E2A3;
34
+ $dao-green-060: #A3EBC0;
35
+ $dao-green-070: #CDF4DC;
36
+ $dao-green-080: #F7FDF9;
37
+ $dao-cyan-010: #146E80;
38
+ $dao-cyan-020: #1B94AC;
39
+ $dao-cyan-030: #21BAD9;
40
+ $dao-cyan-040: #4ACAE3;
41
+ $dao-cyan-050: #76D7EA;
42
+ $dao-cyan-060: #A2E4F1;
43
+ $dao-cyan-070: #CEF1F8;
44
+ $dao-cyan-080: #F2FBFD;
45
+ $dao-purple-010: #1E1977;
46
+ $dao-purple-020: #2922A0;
47
+ $dao-purple-030: #3529CC;
48
+ $dao-purple-040: #584FDC;
49
+ $dao-purple-050: #7F78E3;
50
+ $dao-purple-060: #A7A2EC;
51
+ $dao-purple-070: #CECCF5;
52
+ $dao-purple-080: #F7F7FD;
53
+ $dao-red-010: #5F0C0C;
54
+ $dao-red-020: #8C1212;
55
+ $dao-red-030: #B91818;
56
+ $dao-red-040: #E22222;
57
+ $dao-red-050: #E84F4F;
58
+ $dao-red-060: #EE7C7C;
59
+ $dao-red-070: #F4A9A9;
60
+ $dao-red-080: #FDEDED;
61
+ $dao-acidblue-100: #F4F9FC;
62
+ $dao-acidblue-010: #0A4061;
63
+ $dao-acidblue-020: #0F5F8F;
64
+ $dao-acidblue-030: #137EBE;
65
+ $dao-acidblue-040: #1E9CE8;
66
+ $dao-acidblue-050: #43A1E5;
67
+ $dao-acidblue-060: #4BB0ED;
68
+ $dao-acidblue-070: #79C4F1;
69
+ $dao-acidblue-080: #A7D8F6;
70
+ $dao-acidblue-090: #ECF7FD;
71
+ $dao-gray-blue-100: #F7F8FA;
72
+ $dao-gray-blue-110: #F8FAFC;
73
+ $dao-gray-blue-010: #101114;
74
+ $dao-gray-blue-020: #3D444F;
75
+ $dao-gray-blue-030: #80868E;
76
+ $dao-gray-blue-040: #AAB0B8;
77
+ $dao-gray-blue-050: #CBCFD8;
78
+ $dao-gray-blue-060: #D6DBE6;
79
+ $dao-gray-blue-070: #E4E7ED;
80
+ $dao-gray-blue-075: #EAEDF3;
81
+ $dao-gray-blue-080: #EEF1F5;
82
+ $dao-gray-blue-090: #F1F3F6;
83
+ $dao-gray-100: #BBBBBB;
84
+ $dao-gray-110: #C7C7C7;
85
+ $dao-gray-120: #CCCCCC;
86
+ $dao-gray-130: #D2D2D2;
87
+ $dao-gray-140: #DDDDDD;
88
+ $dao-gray-150: #E2E2E2;
89
+ $dao-gray-160: #EAEAEA;
90
+ $dao-gray-170: #EEEEEE;
91
+ $dao-gray-180: #F2F2F2;
92
+ $dao-gray-190: #F9F9F9;
93
+ $dao-gray-200: #FAFAFA;
94
+ $dao-gray-010: #333333;
95
+ $dao-gray-020: #4F4F4F;
96
+ $dao-gray-030: #5c5c5c;
97
+ $dao-gray-040: #666666;
98
+ $dao-gray-050: #7F7F7F;
99
+ $dao-gray-060: #888888;
100
+ $dao-gray-070: #999999;
101
+ $dao-gray-080: #A5A5A5;
102
+ $dao-gray-090: #AFAFAF;
103
+ $dao-navigation-100: #F6F8FB;
104
+ $dao-navigation-010: #2C3037;
105
+ $dao-navigation-020: #3B3F4A;
106
+ $dao-navigation-030: #676B75;
107
+ $dao-navigation-040: #878C98;
108
+ $dao-navigation-050: #C5CAD8;
109
+ $dao-navigation-060: #203548;
110
+ $dao-navigation-070: #2975D2;
111
+ $dao-navigation-080: #B6C2D2;
112
+ $dao-navigation-090: #EAEEF5;
113
+ $dao-pure-white: #FFFFFF;
114
+ $dao-pure-black: #000000;
115
+ $dao-line-gray-010: #C7D0DE;
116
+ $dao-line-gray-020: #C8CCD0;
117
+ $dao-line-gray-030: #DADBDE;
118
+ $dao-line-gray-040: #EBEDF0;
119
+
@@ -0,0 +1,13 @@
1
+ import type { ComponentInternalInstance as CII, VNode, VNodeChild } from 'vue';
2
+ declare function findComponentUpward(context: CII, componentName: string): CII;
3
+ declare const getFirstValidNode: (nodes: VNodeChild, maxDepth?: number) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
4
+ [key: string]: any;
5
+ }> | undefined;
6
+ declare const getFocusElementRange: (elementNode: HTMLElement | null) => {
7
+ lastTab: HTMLElement | null;
8
+ firstTab: HTMLElement | null;
9
+ focusedElementOrigin: Element | null;
10
+ };
11
+ declare const trapTabKey: (e: KeyboardEvent, firstTab: HTMLElement, lastTab: HTMLElement) => void;
12
+ export { getFirstValidNode, getFocusElementRange, trapTabKey, };
13
+ export default findComponentUpward;
@@ -0,0 +1,17 @@
1
+ import type { Placement } from '@popperjs/core';
2
+ import type { Ref, InjectionKey, ComputedRef } from 'vue';
3
+ import type { AddTabFn, RemoveTabFn } from '../components/tabs/types';
4
+ import type { NavProvide, NavSubProvide } from '../components/nav/types';
5
+ import type { BreadcrumbProvide } from '../components/breadcrumb/breadcrumb-props';
6
+ export declare const placements: Placement[];
7
+ export declare const radioGroupKey: unique symbol;
8
+ export declare const tabModelValueKey: InjectionKey<Ref<string>>;
9
+ export declare const addTabFnKey: InjectionKey<AddTabFn>;
10
+ export declare const removeTabFnKey: InjectionKey<RemoveTabFn>;
11
+ export declare const checkboxGroupModelValueKey: InjectionKey<ComputedRef<unknown[] | Set<unknown>>>;
12
+ export declare const checkboxUpdateGroupModelValueFnKey: InjectionKey<($event: unknown) => unknown>;
13
+ export declare const checkboxGroupChangeFnKey: InjectionKey<(modelValue: unknown, event: Event) => void>;
14
+ export declare const formLabelWidthKey: InjectionKey<string>;
15
+ export declare const navRootKey: InjectionKey<NavProvide>;
16
+ export declare const navSubKey: InjectionKey<NavSubProvide>;
17
+ export declare const breadcrumbKey: InjectionKey<BreadcrumbProvide>;
@@ -0,0 +1,2 @@
1
+ import clipboardCopy from 'clipboard-copy';
2
+ export default clipboardCopy;
@@ -0,0 +1 @@
1
+ export default function isNullish(val: unknown): boolean;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@dao-style/core",
3
- "version": "0.0.1-beta.1",
3
+ "version": "0.0.1-beta.10",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
- "build": "vue-tsc --noEmit && vite build",
6
+ "build": "node scripts/transform-variable.mjs --build && npm run typecheck && vite build && vue-tsc -d --emitDeclarationOnly && npm run build:dts",
7
7
  "serve": "vite preview --port 5050",
8
8
  "test": "jest src",
9
9
  "test:watch": "jest src --watch",
@@ -15,9 +15,10 @@
15
15
  "style:lint": "stylelint \"src/**/*.{vue,css,scss}\" --config .stylelintrc.js --fix",
16
16
  "lint": "npm run style:lint & npm run docs:lint & npm run typecheck & npm run eslint",
17
17
  "docs:lint": "prettier \"**/*.md\" --write",
18
- "docs:dev": "vitepress dev docs",
19
- "docs:build": "vitepress build docs",
20
- "docs:serve": "vitepress serve docs"
18
+ "docs:dev": "concurrently \"node scripts/transform-variable.mjs\" \"vitepress dev docs\"",
19
+ "docs:build": "node scripts/transform-variable.mjs --build && vitepress build docs",
20
+ "docs:serve": "vitepress serve docs",
21
+ "build:dts": "node scripts/gen-volar-dts.mjs"
21
22
  },
22
23
  "dependencies": {
23
24
  "@popperjs/core": "^2.10.2"
@@ -35,6 +36,9 @@
35
36
  "@vue/vue3-jest": "^27.0.0-alpha.1",
36
37
  "autoprefixer": "^10.3.7",
37
38
  "bumpp": "^7.1.1",
39
+ "chokidar": "^3.5.3",
40
+ "clipboard-copy": "^4.0.1",
41
+ "concurrently": "^7.0.0",
38
42
  "eslint": "^7.32.0",
39
43
  "eslint-config-airbnb-base": "^14.2.1",
40
44
  "eslint-config-prettier": "^8.3.0",
@@ -46,9 +50,12 @@
46
50
  "jest": "^27.2.5",
47
51
  "jest-environment-jsdom": "^27.2.5",
48
52
  "jest-junit": "^13.0.0",
53
+ "json5": "^2.2.0",
49
54
  "lint-staged": "^11.2.1",
55
+ "lodash.kebabcase": "^4.1.1",
50
56
  "postcss": "^8.3.9",
51
57
  "prettier": "^2.4.1",
58
+ "rollup-plugin-copy": "^3.4.0",
52
59
  "sass": "^1.42.1",
53
60
  "stylelint": "^13.13.1",
54
61
  "stylelint-config-recess-order": "^2.5.0",
@@ -60,35 +67,29 @@
60
67
  "tslib": "^2.3.1",
61
68
  "typescript": "~4.4.3",
62
69
  "vite": "^2.6.3",
63
- "vite-plugin-svg-icons": "^1.0.5",
70
+ "vite-plugin-svg-icons": "^2.0.1",
64
71
  "vitepress": "^0.20.0",
65
72
  "vue": "^3.2.14",
66
73
  "vue-eslint-parser": "^7.11.0",
67
74
  "vue-jest": "^5.0.0-alpha.10",
68
75
  "vue-router": "^4.0.0-0",
69
- "vue-tsc": "^0.3.0",
76
+ "vue-tsc": "^0.31.2",
70
77
  "yorkie": "^2.0.0"
71
78
  },
72
79
  "gitHooks": {
73
80
  "pre-commit": "lint-staged"
74
81
  },
75
- "lint-staged": {
76
- "**/*.md": "npm run docs:lint",
77
- "**/*.{ts,tsx,vue}": [
78
- "npm run typecheck",
79
- "npm run eslint"
80
- ],
81
- "**/*.{vue,scss}": "npm run style:lint"
82
- },
83
82
  "engines": {
84
83
  "node": ">=16.0.0",
85
84
  "npm": ">=7.0.0"
86
85
  },
87
86
  "files": [
88
- "dist"
87
+ "dist",
88
+ "volar.d.ts"
89
89
  ],
90
90
  "main": "./dist/dao-style.umd.js",
91
91
  "module": "./dist/dao-style.es.js",
92
+ "types": "./dist/index.d.ts",
92
93
  "exports": {
93
94
  ".": {
94
95
  "import": "./dist/dao-style.es.js",
package/volar.d.ts ADDED
@@ -0,0 +1,48 @@
1
+ // Auto generated component declarations
2
+ declare module 'vue' {
3
+ export interface GlobalComponents {
4
+ DaoActionIcon: typeof import('@dao-style/core')['ActionIcon']
5
+ DaoBreadcrumb: typeof import('@dao-style/core')['Breadcrumb']
6
+ DaoBreadcrumbItem: typeof import('@dao-style/core')['BreadcrumbItem']
7
+ DaoButton: typeof import('@dao-style/core')['Button']
8
+ DaoButtonGroup: typeof import('@dao-style/core')['ButtonGroup']
9
+ DaoCard: typeof import('@dao-style/core')['Card']
10
+ DaoCardItem: typeof import('@dao-style/core')['CardItem']
11
+ DaoCheckbox: typeof import('@dao-style/core')['Checkbox']
12
+ DaoCheckboxGroup: typeof import('@dao-style/core')['CheckboxGroup']
13
+ DaoDialog: typeof import('@dao-style/core')['Dialog']
14
+ DaoDialogFooter: typeof import('@dao-style/core')['DialogFooter']
15
+ DaoDialogHeader: typeof import('@dao-style/core')['DialogHeader']
16
+ DaoDrawer: typeof import('@dao-style/core')['Drawer']
17
+ DaoDropdown: typeof import('@dao-style/core')['Dropdown']
18
+ DaoDropdownMenu: typeof import('@dao-style/core')['DropdownMenu']
19
+ DaoDropdownItem: typeof import('@dao-style/core')['DropdownItem']
20
+ DaoForm: typeof import('@dao-style/core')['Form']
21
+ DaoFormItem: typeof import('@dao-style/core')['FormItem']
22
+ DaoFormGroup: typeof import('@dao-style/core')['FormGroup']
23
+ DaoHeader: typeof import('@dao-style/core')['Header']
24
+ DaoIcon: typeof import('@dao-style/core')['Icon']
25
+ DaoInput: typeof import('@dao-style/core')['Input']
26
+ DaoMessage: typeof import('@dao-style/core')['Message']
27
+ DaoNav: typeof import('@dao-style/core')['Nav']
28
+ DaoNavHead: typeof import('@dao-style/core')['NavHead']
29
+ DaoNavItem: typeof import('@dao-style/core')['NavItem']
30
+ DaoNavSub: typeof import('@dao-style/core')['NavSub']
31
+ DaoPagination: typeof import('@dao-style/core')['Pagination']
32
+ DaoPopover: typeof import('@dao-style/core')['Popover']
33
+ DaoPopper: typeof import('@dao-style/core')['Popper']
34
+ DaoProgress: typeof import('@dao-style/core')['Progress']
35
+ DaoRadio: typeof import('@dao-style/core')['Radio']
36
+ DaoRadioGroup: typeof import('@dao-style/core')['RadioGroup']
37
+ DaoSelect: typeof import('@dao-style/core')['Select']
38
+ DaoOption: typeof import('@dao-style/core')['Option']
39
+ DaoSwitch: typeof import('@dao-style/core')['Switch']
40
+ DaoTable: typeof import('@dao-style/core')['Table']
41
+ DaoTabs: typeof import('@dao-style/core')['Tabs']
42
+ DaoTabNav: typeof import('@dao-style/core')['TabNav']
43
+ DaoTabItem: typeof import('@dao-style/core')['TabItem']
44
+ DaoTooltip: typeof import('@dao-style/core')['Tooltip']
45
+ [key: string]: unknown
46
+ }
47
+ }
48
+ export {};