@zamlia/mini-ui 0.0.11 → 0.0.13

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 (104) hide show
  1. package/es/components/industry/CitySelectButton/index.d.ts.map +1 -1
  2. package/es/index.d.ts +1 -0
  3. package/es/index.d.ts.map +1 -1
  4. package/es/index.js +762 -33
  5. package/es/index.js.map +1 -1
  6. package/es/types/components.d.ts +13 -0
  7. package/es/types/components.d.ts.map +1 -0
  8. package/es/types/index.d.ts +8 -0
  9. package/es/types/index.d.ts.map +1 -0
  10. package/es/types/utils.d.ts +70 -0
  11. package/es/types/utils.d.ts.map +1 -0
  12. package/es/utils/cache.d.ts +6 -0
  13. package/es/utils/cache.d.ts.map +1 -0
  14. package/es/utils/index.d.ts +73 -33
  15. package/es/utils/index.d.ts.map +1 -1
  16. package/es/utils/lib/format.utils.d.ts +29 -0
  17. package/es/utils/lib/format.utils.d.ts.map +1 -0
  18. package/es/utils/lib/is.utils.d.ts +128 -0
  19. package/es/utils/lib/is.utils.d.ts.map +1 -0
  20. package/es/utils/lib/mini.utils.d.ts +78 -0
  21. package/es/utils/lib/mini.utils.d.ts.map +1 -0
  22. package/es/utils/lib/object.utils.d.ts +40 -0
  23. package/es/utils/lib/object.utils.d.ts.map +1 -0
  24. package/es/utils/lib/pay.utils.d.ts +25 -0
  25. package/es/utils/lib/pay.utils.d.ts.map +1 -0
  26. package/es/utils/lib/string.utils.d.ts +36 -0
  27. package/es/utils/lib/string.utils.d.ts.map +1 -0
  28. package/lib/components/industry/CitySelectButton/index.d.ts.map +1 -1
  29. package/lib/index.d.ts +155 -34
  30. package/lib/index.d.ts.map +1 -1
  31. package/lib/index.js +762 -33
  32. package/lib/index.js.map +1 -1
  33. package/lib/styles/index.css +1 -0
  34. package/lib/styles/index.css.map +1 -0
  35. package/lib/types/components.d.ts +13 -0
  36. package/lib/types/components.d.ts.map +1 -0
  37. package/lib/types/index.d.ts +8 -0
  38. package/lib/types/index.d.ts.map +1 -0
  39. package/lib/types/utils.d.ts +70 -0
  40. package/lib/types/utils.d.ts.map +1 -0
  41. package/lib/utils/cache.d.ts +6 -0
  42. package/lib/utils/cache.d.ts.map +1 -0
  43. package/lib/utils/index.d.ts +73 -33
  44. package/lib/utils/index.d.ts.map +1 -1
  45. package/lib/utils/lib/format.utils.d.ts +29 -0
  46. package/lib/utils/lib/format.utils.d.ts.map +1 -0
  47. package/lib/utils/lib/is.utils.d.ts +128 -0
  48. package/lib/utils/lib/is.utils.d.ts.map +1 -0
  49. package/lib/utils/lib/mini.utils.d.ts +78 -0
  50. package/lib/utils/lib/mini.utils.d.ts.map +1 -0
  51. package/lib/utils/lib/object.utils.d.ts +40 -0
  52. package/lib/utils/lib/object.utils.d.ts.map +1 -0
  53. package/lib/utils/lib/pay.utils.d.ts +25 -0
  54. package/lib/utils/lib/pay.utils.d.ts.map +1 -0
  55. package/lib/utils/lib/string.utils.d.ts +36 -0
  56. package/lib/utils/lib/string.utils.d.ts.map +1 -0
  57. package/package.json +10 -8
  58. package/es/styles/_base.scss +0 -4
  59. package/es/styles/index.scss +0 -19
  60. package/es/styles/mixins.scss +0 -15
  61. package/es/styles/variables.scss +0 -2
  62. package/lib/styles/_base.scss +0 -4
  63. package/lib/styles/index.scss +0 -19
  64. package/lib/styles/mixins.scss +0 -15
  65. package/lib/styles/variables.scss +0 -2
  66. package/src/components/common/BottomPopup/index.scss +0 -34
  67. package/src/components/common/BottomPopup/index.tsx +0 -129
  68. package/src/components/common/Card/index.scss +0 -160
  69. package/src/components/common/Card/index.tsx +0 -72
  70. package/src/components/common/CardItem/index.tsx +0 -153
  71. package/src/components/common/DataSelect/index.tsx +0 -86
  72. package/src/components/common/Modal/index.scss +0 -49
  73. package/src/components/common/Modal/index.tsx +0 -105
  74. package/src/components/common/NavBar/index.scss +0 -26
  75. package/src/components/common/NavBar/index.tsx +0 -81
  76. package/src/components/common/Page/index.scss +0 -19
  77. package/src/components/common/Page/index.tsx +0 -56
  78. package/src/components/common/PullToPushRefresh/index.scss +0 -38
  79. package/src/components/common/PullToPushRefresh/index.tsx +0 -338
  80. package/src/components/common/Radio/index.scss +0 -15
  81. package/src/components/common/Radio/index.tsx +0 -56
  82. package/src/components/common/TabPane/index.tsx +0 -26
  83. package/src/components/common/Tabs/index.scss +0 -60
  84. package/src/components/common/Tabs/index.tsx +0 -107
  85. package/src/components/common/UploadFile/index.scss +0 -59
  86. package/src/components/common/UploadFile/index.tsx +0 -321
  87. package/src/components/common/UploadFile/upload.ts +0 -63
  88. package/src/components/common/UploadFile/utils.ts +0 -81
  89. package/src/components/common/VideoView/index.tsx +0 -50
  90. package/src/components/common/index.ts +0 -23
  91. package/src/components/industry/CitySelectButton/index.tsx +0 -76
  92. package/src/components/industry/CitySelectModal/index.scss +0 -122
  93. package/src/components/industry/CitySelectModal/index.tsx +0 -121
  94. package/src/components/industry/PaymentMethodSelect/index.scss +0 -146
  95. package/src/components/industry/PaymentMethodSelect/index.tsx +0 -316
  96. package/src/components/industry/index.ts +0 -5
  97. package/src/config/classPrefix.ts +0 -44
  98. package/src/index.ts +0 -9
  99. package/src/styles/_base.scss +0 -4
  100. package/src/styles/index.scss +0 -19
  101. package/src/styles/mixins.scss +0 -15
  102. package/src/styles/variables.scss +0 -2
  103. package/src/utils/city.ts +0 -4072
  104. package/src/utils/index.ts +0 -155
@@ -1,44 +0,0 @@
1
- /**
2
- * 组件类名前缀配置
3
- * 修改此处的 PREFIX 即可一键修改所有组件的类名前缀
4
- */
5
- export const CLASS_PREFIX = 'we'
6
-
7
- /**
8
- * 生成带前缀的类名
9
- * @param name 类名(不含前缀)
10
- * @returns 带前缀的完整类名
11
- *
12
- * @example
13
- * prefixClass('btn') // => 'we-btn'
14
- * prefixClass('card') // => 'we-card'
15
- */
16
- export const prefixClass = (name: string): string => {
17
- return `${CLASS_PREFIX}-${name}`
18
- }
19
-
20
- /**
21
- * 生成 BEM 格式的类名(带修饰符)
22
- * @param block 块名
23
- * @param modifier 修饰符
24
- * @returns 带前缀的 BEM 类名
25
- *
26
- * @example
27
- * prefixBEM('status', 'paid') // => 'we-status--paid'
28
- */
29
- export const prefixBEM = (block: string, modifier: string): string => {
30
- return `${CLASS_PREFIX}-${block}--${modifier}`
31
- }
32
-
33
- /**
34
- * 生成 BEM 格式的类名(带元素)
35
- * @param block 块名
36
- * @param element 元素名
37
- * @returns 带前缀的 BEM 类名
38
- *
39
- * @example
40
- * prefixElement('card', 'title') // => 'we-card__title'
41
- */
42
- export const prefixElement = (block: string, element: string): string => {
43
- return `${CLASS_PREFIX}-${block}__${element}`
44
- }
package/src/index.ts DELETED
@@ -1,9 +0,0 @@
1
- // 通用组件
2
- export * from './components/common'
3
-
4
- // 行业特定组件
5
- export * from './components/industry'
6
-
7
- // 工具函数
8
- export * from './utils'
9
-
@@ -1,4 +0,0 @@
1
- // 统一的样式基础文件
2
- // 导入全局变量和 mixin
3
- @import './variables';
4
- @import './mixins';
@@ -1,19 +0,0 @@
1
- // 导入全局变量和 mixin
2
- @import './variables';
3
- @import './mixins';
4
-
5
- // 导入组件库样式
6
- // 通用组件
7
- @import '../components/common/BottomPopup/index.scss';
8
- @import '../components/common/Card/index.scss';
9
- @import '../components/common/Modal/index.scss';
10
- @import '../components/common/NavBar/index.scss';
11
- @import '../components/common/Page/index.scss';
12
- @import '../components/common/PullToPushRefresh/index.scss';
13
- @import '../components/common/Radio/index.scss';
14
- @import '../components/common/Tabs/index.scss';
15
- @import '../components/common/UploadFile/index.scss';
16
-
17
- // 行业特定组件
18
- @import '../components/industry/CitySelectModal';
19
- @import '../components/industry/PaymentMethodSelect';
@@ -1,15 +0,0 @@
1
- // 背景图片 mixin
2
- @mixin bgImg($url) {
3
- background-image: url($url);
4
- background-repeat: no-repeat;
5
- background-position: center;
6
- background-size: contain;
7
- }
8
-
9
- // 文本省略 mixin
10
- @mixin text-ellipsis($width: 100%) {
11
- width: $width;
12
- overflow: hidden;
13
- text-overflow: ellipsis;
14
- white-space: nowrap;
15
- }
@@ -1,2 +0,0 @@
1
- // 全局变量定义
2
- $primary-color: #3B4EAE;