mall-components 1.0.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 (122) hide show
  1. package/README.md +128 -0
  2. package/build/_components-raw.css +791 -0
  3. package/build/_shims/antd.js +1 -0
  4. package/build/_shims/icons.js +1 -0
  5. package/build/_shims/moment.js +1 -0
  6. package/build/_shims/react-dom.js +1 -0
  7. package/build/_shims/react.js +1 -0
  8. package/build/adapters/DataSourceAdapter.d.ts +46 -0
  9. package/build/components/AdminLayout/AdminLayout.d.ts +5 -0
  10. package/build/components/AdminLayout/Breadcrumb.d.ts +8 -0
  11. package/build/components/AdminLayout/MainContent.d.ts +17 -0
  12. package/build/components/AdminLayout/Navbar.d.ts +10 -0
  13. package/build/components/AdminLayout/Sidebar.d.ts +14 -0
  14. package/build/components/AdminLayout/TabBar.d.ts +13 -0
  15. package/build/components/AdminLayout/TabPane.d.ts +4 -0
  16. package/build/components/AdminLayout/index.d.ts +3 -0
  17. package/build/components/AdminLayout/types.d.ts +42 -0
  18. package/build/components/CouponCard/CouponCard.d.ts +20 -0
  19. package/build/components/CouponCard/index.d.ts +1 -0
  20. package/build/components/OrderForm/OrderForm.d.ts +18 -0
  21. package/build/components/OrderForm/index.d.ts +1 -0
  22. package/build/components/OrderList/OrderList.d.ts +29 -0
  23. package/build/components/OrderList/index.d.ts +1 -0
  24. package/build/components/ProductForm/ProductForm.d.ts +18 -0
  25. package/build/components/ProductForm/index.d.ts +3 -0
  26. package/build/components/ProductList/ProductList.d.ts +47 -0
  27. package/build/components/ProductList/index.d.ts +3 -0
  28. package/build/components/PromotionCard/PromotionCard.d.ts +22 -0
  29. package/build/components/PromotionCard/index.d.ts +1 -0
  30. package/build/components/RoleCard/RoleCard.d.ts +18 -0
  31. package/build/components/RoleCard/index.d.ts +1 -0
  32. package/build/components/UserCard/UserCard.d.ts +17 -0
  33. package/build/components/UserCard/index.d.ts +1 -0
  34. package/build/entry-meta.d.ts +603 -0
  35. package/build/index.css +1 -0
  36. package/build/index.js +1 -0
  37. package/build/mall-components-meta.js +2563 -0
  38. package/build/mall-components.cdn.umd.css +1 -0
  39. package/build/mall-components.cdn.umd.js +8 -0
  40. package/build/mall-components.codesandbox.combined.js +1094 -0
  41. package/build/mall-components.codesandbox.css +401 -0
  42. package/build/mall-components.codesandbox.js +1080 -0
  43. package/build/mall-components.umd.css +1 -0
  44. package/build/mall-components.umd.js +8 -0
  45. package/build/meta/adminLayoutMeta.d.ts +3 -0
  46. package/build/meta/couponCardMeta.d.ts +128 -0
  47. package/build/meta/icons.d.ts +10 -0
  48. package/build/meta/orderFormMeta.d.ts +111 -0
  49. package/build/meta/orderListMeta.d.ts +170 -0
  50. package/build/meta/productFormMeta.d.ts +3 -0
  51. package/build/meta/productListMeta.d.ts +200 -0
  52. package/build/meta/promotionCardMeta.d.ts +129 -0
  53. package/build/meta/roleCardMeta.d.ts +3 -0
  54. package/build/meta/tabPaneMeta.d.ts +3 -0
  55. package/build/meta/userCardMeta.d.ts +3 -0
  56. package/build/meta.d.ts +605 -0
  57. package/build/setters/RestApiTester.d.ts +11 -0
  58. package/build/types/common.d.ts +17 -0
  59. package/build/types/marketing.d.ts +128 -0
  60. package/build/types/order.d.ts +174 -0
  61. package/build/types/permission.d.ts +101 -0
  62. package/build/types/product.d.ts +47 -0
  63. package/package.json +1 -0
  64. package/src/adapters/DataSourceAdapter.ts +445 -0
  65. package/src/components/AdminLayout/AdminLayout.scss +447 -0
  66. package/src/components/AdminLayout/AdminLayout.tsx +681 -0
  67. package/src/components/AdminLayout/Breadcrumb.tsx +60 -0
  68. package/src/components/AdminLayout/MainContent.tsx +54 -0
  69. package/src/components/AdminLayout/Navbar.tsx +76 -0
  70. package/src/components/AdminLayout/Sidebar.tsx +256 -0
  71. package/src/components/AdminLayout/TabBar.tsx +177 -0
  72. package/src/components/AdminLayout/TabPane.tsx +29 -0
  73. package/src/components/AdminLayout/index.ts +3 -0
  74. package/src/components/AdminLayout/types.ts +46 -0
  75. package/src/components/CouponCard/CouponCard.scss +55 -0
  76. package/src/components/CouponCard/CouponCard.tsx +687 -0
  77. package/src/components/CouponCard/index.ts +1 -0
  78. package/src/components/OrderForm/OrderForm.scss +148 -0
  79. package/src/components/OrderForm/OrderForm.tsx +503 -0
  80. package/src/components/OrderForm/index.ts +1 -0
  81. package/src/components/OrderList/OrderList.scss +160 -0
  82. package/src/components/OrderList/OrderList.tsx +885 -0
  83. package/src/components/OrderList/index.ts +1 -0
  84. package/src/components/ProductForm/ProductForm.scss +23 -0
  85. package/src/components/ProductForm/ProductForm.tsx +442 -0
  86. package/src/components/ProductForm/index.ts +3 -0
  87. package/src/components/ProductList/ProductList.scss +293 -0
  88. package/src/components/ProductList/ProductList.tsx +454 -0
  89. package/src/components/ProductList/index.ts +3 -0
  90. package/src/components/PromotionCard/PromotionCard.scss +71 -0
  91. package/src/components/PromotionCard/PromotionCard.tsx +579 -0
  92. package/src/components/PromotionCard/index.ts +1 -0
  93. package/src/components/RoleCard/RoleCard.scss +77 -0
  94. package/src/components/RoleCard/RoleCard.tsx +463 -0
  95. package/src/components/RoleCard/index.ts +1 -0
  96. package/src/components/UserCard/UserCard.scss +51 -0
  97. package/src/components/UserCard/UserCard.tsx +432 -0
  98. package/src/components/UserCard/index.ts +1 -0
  99. package/src/entry-components.ts +39 -0
  100. package/src/entry-meta.ts +23 -0
  101. package/src/index.scss +4 -0
  102. package/src/index.ts +36 -0
  103. package/src/index.tsx +17 -0
  104. package/src/meta/adminLayoutMeta.ts +154 -0
  105. package/src/meta/couponCardMeta.ts +287 -0
  106. package/src/meta/icons.ts +41 -0
  107. package/src/meta/orderFormMeta.ts +279 -0
  108. package/src/meta/orderListMeta.ts +443 -0
  109. package/src/meta/productFormMeta.ts +253 -0
  110. package/src/meta/productListMeta.ts +434 -0
  111. package/src/meta/promotionCardMeta.ts +276 -0
  112. package/src/meta/roleCardMeta.ts +142 -0
  113. package/src/meta/tabPaneMeta.ts +69 -0
  114. package/src/meta/userCardMeta.ts +128 -0
  115. package/src/meta.ts +25 -0
  116. package/src/setters/RestApiTester.tsx +219 -0
  117. package/src/shims/require.js +8 -0
  118. package/src/types/common.ts +19 -0
  119. package/src/types/marketing.ts +124 -0
  120. package/src/types/order.ts +169 -0
  121. package/src/types/permission.ts +102 -0
  122. package/src/types/product.ts +49 -0
@@ -0,0 +1,160 @@
1
+ .mall-order-list {
2
+ .filter-section {
3
+ margin-bottom: 16px;
4
+ padding: 16px;
5
+ background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f5 100%);
6
+ border-radius: 8px;
7
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
8
+ }
9
+
10
+ .batch-operation-section {
11
+ margin-bottom: 16px;
12
+ padding: 12px 16px;
13
+ background: #fafafa;
14
+ border-radius: 4px;
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: space-between;
18
+
19
+ .selected-info {
20
+ color: #1890ff;
21
+ font-size: 14px;
22
+ }
23
+ }
24
+
25
+ .action-section {
26
+ margin-bottom: 16px;
27
+ padding: 12px 0;
28
+ border-bottom: 1px solid #f0f0f0;
29
+ }
30
+
31
+ .ant-table {
32
+ .ant-table-thead > tr > th {
33
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
34
+ color: white;
35
+ font-weight: 600;
36
+ border-bottom: none;
37
+
38
+ &::before {
39
+ background-color: rgba(255, 255, 255, 0.3);
40
+ }
41
+ }
42
+
43
+ .ant-table-tbody > tr {
44
+ &:hover {
45
+ background: #f5f5f5;
46
+ cursor: pointer;
47
+ }
48
+
49
+ > td {
50
+ padding: 12px 8px;
51
+ border-bottom: 1px solid #f0f0f0;
52
+ }
53
+ }
54
+ }
55
+
56
+ .order-sn {
57
+ font-family: 'Courier New', monospace;
58
+ font-weight: 500;
59
+ color: #1890ff;
60
+ }
61
+
62
+ .order-amount {
63
+ font-weight: 600;
64
+ color: #595959;
65
+ }
66
+
67
+ .pay-amount {
68
+ font-weight: 700;
69
+ color: #f5222d;
70
+ font-size: 14px;
71
+ }
72
+
73
+ .ant-tag {
74
+ border-radius: 12px;
75
+ padding: 2px 8px;
76
+ font-size: 12px;
77
+ font-weight: 500;
78
+ }
79
+
80
+ .ant-btn-link {
81
+ padding: 0 4px;
82
+ height: auto;
83
+ }
84
+
85
+ .ant-modal {
86
+ .ant-descriptions {
87
+ .ant-descriptions-item-label {
88
+ font-weight: 600;
89
+ background: #fafafa;
90
+ }
91
+
92
+ .ant-descriptions-item-content {
93
+ background: white;
94
+ }
95
+ }
96
+ }
97
+
98
+ @media (max-width: 768px) {
99
+ .filter-section {
100
+ .ant-col {
101
+ margin-bottom: 8px;
102
+ }
103
+ }
104
+
105
+ .batch-operation-section {
106
+ flex-direction: column;
107
+ align-items: flex-start;
108
+
109
+ .selected-info {
110
+ margin-top: 8px;
111
+ }
112
+ }
113
+
114
+ .ant-table {
115
+ overflow-x: auto;
116
+
117
+ .ant-table-thead > tr > th,
118
+ .ant-table-tbody > tr > td {
119
+ white-space: nowrap;
120
+ font-size: 12px;
121
+ padding: 8px 4px;
122
+ }
123
+ }
124
+ }
125
+
126
+ .ant-pagination {
127
+ margin-top: 16px;
128
+ text-align: right;
129
+
130
+ .ant-pagination-item-active {
131
+ border-color: #1890ff;
132
+
133
+ a {
134
+ color: #1890ff;
135
+ }
136
+ }
137
+ }
138
+
139
+ .ant-spin-nested-loading {
140
+ .ant-spin {
141
+ max-height: 400px;
142
+ }
143
+ }
144
+
145
+ .empty-data {
146
+ padding: 40px 0;
147
+ text-align: center;
148
+ color: #8c8c8c;
149
+
150
+ .ant-empty-image {
151
+ height: 100px;
152
+ }
153
+ }
154
+
155
+ .loading-skeleton {
156
+ .ant-skeleton {
157
+ padding: 16px 0;
158
+ }
159
+ }
160
+ }