@trionesdev/antd-mobile-base-react 0.0.2-beta.16 → 0.0.2-beta.17

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 (110) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +23 -23
  3. package/dist/Alert/style.scss +69 -69
  4. package/dist/Avatar/avatar.d.ts +2 -2
  5. package/dist/Avatar/avatar.js +1 -1
  6. package/dist/Avatar/style.scss +17 -17
  7. package/dist/Badge/style.scss +100 -100
  8. package/dist/Card/style.scss +35 -35
  9. package/dist/CascaderView/style.scss +22 -22
  10. package/dist/Cell/CellGroup.js +25 -8
  11. package/dist/Cell/cell.js +20 -37
  12. package/dist/Cell/context.d.ts +4 -2
  13. package/dist/Cell/styles.scss +81 -52
  14. package/dist/Cell/types.d.ts +6 -4
  15. package/dist/Checkbox/checkbox-group.js +1 -2
  16. package/dist/Checkbox/index.scss +165 -165
  17. package/dist/ConfigProvider/config-provider.d.ts +1 -0
  18. package/dist/DemoBlock/index.scss +20 -20
  19. package/dist/DemoDescription/index.scss +3 -3
  20. package/dist/Descriptions/style.scss +65 -65
  21. package/dist/Divider/divider.d.ts +1 -1
  22. package/dist/Divider/divider.js +5 -3
  23. package/dist/Divider/style.scss +62 -62
  24. package/dist/Ellipsis/style.scss +13 -13
  25. package/dist/Empty/style.scss +29 -29
  26. package/dist/ErrorBlock/demo/base.js +2 -2
  27. package/dist/ErrorBlock/style.scss +62 -62
  28. package/dist/Footer/style.scss +55 -55
  29. package/dist/Form/ErrorList.d.ts +4 -0
  30. package/dist/Form/ErrorList.js +9 -0
  31. package/dist/Form/context.d.ts +4 -2
  32. package/dist/Form/context.js +2 -1
  33. package/dist/Form/form.d.ts +24 -6
  34. package/dist/Form/form.js +22 -11
  35. package/dist/Form/hooks/useForm.js +1 -8
  36. package/dist/Form/hooks/useFormContext.js +1 -2
  37. package/dist/Form/index.d.ts +6 -3
  38. package/dist/Form/index.js +4 -1
  39. package/dist/Form/styles.scss +11 -0
  40. package/dist/Form/types.d.ts +2 -1
  41. package/dist/FormCell/FormCell.d.ts +21 -0
  42. package/dist/FormCell/FormCell.js +56 -0
  43. package/dist/FormCell/index.d.ts +4 -0
  44. package/dist/FormCell/index.js +3 -0
  45. package/dist/FormCell/styles.scss +103 -0
  46. package/dist/Grid/style.scss +17 -17
  47. package/dist/Icon/demo/base.js +2 -2
  48. package/dist/InputNumber/style.scss +100 -100
  49. package/dist/Loading/DotLoading.d.ts +8 -0
  50. package/dist/Loading/DotLoading.js +33 -0
  51. package/dist/Loading/SpinLoading.js +70 -0
  52. package/dist/Loading/dot-loading.scss +72 -0
  53. package/dist/Loading/index.d.ts +5 -0
  54. package/dist/Loading/index.js +3 -0
  55. package/dist/{SpinLoading → Loading}/spin-loading.scss +39 -40
  56. package/dist/NavBar/style.scss +64 -64
  57. package/dist/NoticeBar/style.scss +130 -130
  58. package/dist/PageIndicator/style.scss +59 -59
  59. package/dist/Progress/Progress.js +1 -1
  60. package/dist/Progress/ProgressCircle.js +5 -2
  61. package/dist/Progress/ProgressLine.js +2 -2
  62. package/dist/Progress/style.scss +33 -33
  63. package/dist/Progress/types.d.ts +2 -2
  64. package/dist/Radio/style.scss +154 -141
  65. package/dist/Rate/style.scss +37 -37
  66. package/dist/Result/demo/base.js +2 -2
  67. package/dist/Result/style.scss +73 -73
  68. package/dist/SafeArea/style.scss +20 -20
  69. package/dist/Scaffold/style.scss +17 -17
  70. package/dist/Segmented/style.scss +75 -75
  71. package/dist/Skeleton/Skeleton.d.ts +80 -21
  72. package/dist/Skeleton/Skeleton.js +248 -57
  73. package/dist/Skeleton/index.d.ts +3 -1
  74. package/dist/Skeleton/index.js +2 -1
  75. package/dist/Skeleton/style.scss +215 -48
  76. package/dist/Space/space.js +12 -9
  77. package/dist/Space/style.scss +101 -80
  78. package/dist/Stepper/stepper.js +2 -1
  79. package/dist/Stepper/style.scss +100 -100
  80. package/dist/Steps/HorizontalSteps.js +5 -2
  81. package/dist/Steps/VerticalSteps.js +5 -2
  82. package/dist/Steps/style.scss +153 -153
  83. package/dist/Steps/types.d.ts +2 -0
  84. package/dist/Switch/style.scss +127 -128
  85. package/dist/Switch/switch.d.ts +2 -0
  86. package/dist/Switch/switch.js +6 -5
  87. package/dist/TabBar/demo/base.js +2 -2
  88. package/dist/TabBar/index.scss +37 -37
  89. package/dist/Tabs/style.scss +108 -108
  90. package/dist/Tag/style.scss +110 -109
  91. package/dist/Tag/tag.d.ts +1 -1
  92. package/dist/Tag/tag.js +1 -1
  93. package/dist/WaterMark/style.scss +17 -17
  94. package/dist/index.d.ts +9 -4
  95. package/dist/index.js +4 -2
  96. package/dist/style/css-variable.scss +6 -6
  97. package/dist/style/style.scss +52 -52
  98. package/dist/style/theme-dark.scss +24 -24
  99. package/dist/style/theme-default.scss +54 -54
  100. package/dist/style/variable.scss +180 -173
  101. package/dist/types.d.ts +6 -1
  102. package/dist/utils/type.js +36 -36
  103. package/dist/utils/with-default-props.js +4 -4
  104. package/package.json +4 -7
  105. package/dist/SpinLoading/index.d.ts +0 -3
  106. package/dist/SpinLoading/index.js +0 -2
  107. package/dist/SpinLoading/spin-loading.js +0 -59
  108. package/dist/Tabs/demo/base.d.ts +0 -3
  109. package/dist/Tabs/demo/base.js +0 -59
  110. /package/dist/{SpinLoading/spin-loading.d.ts → Loading/SpinLoading.d.ts} +0 -0
@@ -1,80 +1,101 @@
1
- $class-prefix-space: 'triones-antm-space';
2
-
3
- .#{$class-prefix-space}-item {
4
- flex: none;
5
- display: inline-flex;
6
- flex-shrink: 1;
7
- min-width: 0;
8
- }
9
- /* prettier-ignore */
10
- .#{$class-prefix-space} {
11
- display: inline-flex;
12
- vertical-align: middle;
13
- &-vertical {
14
- flex-direction: column;
15
- > .#{$class-prefix-space}-item {
16
- &:last-child {
17
- margin-bottom: 0;
18
- }
19
- }
20
- }
21
- &-horizontal {
22
- flex-direction: row;
23
- > .#{$class-prefix-space}-item {
24
- &:last-child {
25
-
26
- }
27
- }
28
- &.#{$class-prefix-space}-wrap {
29
- flex-wrap: wrap;
30
- > .#{$class-prefix-space}-item {
31
-
32
- }
33
- }
34
- }
35
- &.#{$class-prefix-space}-block {
36
- display: flex;
37
- width: 100%;
38
- .#{$class-prefix-space}-item{
39
- display: flex;
40
- }
41
-
42
- }
43
- &-align {
44
- &-center {
45
- align-items: center;
46
- }
47
- &-start {
48
- align-items: flex-start;
49
- }
50
- &-end {
51
- align-items: flex-end;
52
- }
53
- &-baseline {
54
- align-items: baseline;
55
- }
56
- }
57
- &-justify {
58
- &-center {
59
- justify-content: center;
60
- }
61
- &-start {
62
- justify-content: flex-start;
63
- }
64
- &-end {
65
- justify-content: flex-end;
66
- }
67
- &-between {
68
- justify-content: space-between;
69
- }
70
- &-around {
71
- justify-content: space-around;
72
- }
73
- &-evenly {
74
- justify-content: space-evenly;
75
- }
76
- &-stretch {
77
- justify-content: stretch;
78
- }
79
- }
80
- }
1
+ $class-prefix-space: 'triones-antm-space';
2
+
3
+ .#{$class-prefix-space}-item {
4
+ flex: none;
5
+ //display: inline-flex;
6
+ display: flex;
7
+ flex-shrink: 1;
8
+ min-width: 0;
9
+ }
10
+
11
+ /* prettier-ignore */
12
+ .#{$class-prefix-space} {
13
+ display: inline-flex;
14
+ vertical-align: middle;
15
+
16
+ &-vertical {
17
+ flex-direction: column;
18
+
19
+ > .#{$class-prefix-space}-item {
20
+ &:last-child {
21
+ margin-bottom: 0;
22
+ }
23
+ }
24
+ }
25
+
26
+ &-horizontal {
27
+ flex-direction: row;
28
+
29
+ > .#{$class-prefix-space}-item {
30
+ &:last-child {
31
+
32
+ }
33
+ }
34
+
35
+ &.#{$class-prefix-space}-wrap {
36
+ flex-wrap: wrap;
37
+
38
+ > .#{$class-prefix-space}-item {
39
+
40
+ }
41
+ }
42
+ }
43
+
44
+ &.#{$class-prefix-space}-block {
45
+ display: flex;
46
+ width: 100%;
47
+
48
+ .#{$class-prefix-space}-item {
49
+ //display: flex;
50
+ }
51
+
52
+ }
53
+
54
+ &-align {
55
+ &-center {
56
+ align-items: center;
57
+ }
58
+
59
+ &-start {
60
+ align-items: flex-start;
61
+ }
62
+
63
+ &-end {
64
+ align-items: flex-end;
65
+ }
66
+
67
+ &-baseline {
68
+ align-items: baseline;
69
+ }
70
+ }
71
+
72
+ &-justify {
73
+ &-center {
74
+ justify-content: center;
75
+ }
76
+
77
+ &-start {
78
+ justify-content: flex-start;
79
+ }
80
+
81
+ &-end {
82
+ justify-content: flex-end;
83
+ }
84
+
85
+ &-between {
86
+ justify-content: space-between;
87
+ }
88
+
89
+ &-around {
90
+ justify-content: space-around;
91
+ }
92
+
93
+ &-evenly {
94
+ justify-content: space-evenly;
95
+ }
96
+
97
+ &-stretch {
98
+ justify-content: stretch;
99
+ }
100
+ }
101
+ }
@@ -62,8 +62,9 @@ export var Stepper = function Stepper(_ref) {
62
62
  setValue(internalValue - stepSize);
63
63
  }
64
64
  }, /*#__PURE__*/React.createElement(MinusOutline, null)), /*#__PURE__*/React.createElement("div", {
65
- className: "".concat(trionesStepperCls, "-input")
65
+ className: "".concat(trionesStepperCls, "-input-wrapper")
66
66
  }, /*#__PURE__*/React.createElement("input", {
67
+ className: "".concat(trionesStepperCls, "-input"),
67
68
  type: "number",
68
69
  disabled: disabled,
69
70
  min: min,
@@ -1,100 +1,100 @@
1
- @use "../style/variable" as variable;
2
-
3
- $trionesStepperCls: 'triones-antm-stepper';
4
-
5
- $inputNumberBg: #F5F5F5;
6
- $inputSm: 24Px;
7
- $inputLg: 40Px;
8
- $stepperControlHeight: 28Px;
9
-
10
- .#{$trionesStepperCls} {
11
- display: inline-flex;
12
- align-items: stretch;
13
- gap: 2Px;
14
- border-radius: variable.$trionesBorderRadiusXs;
15
- overflow: hidden;
16
- width: 110Px;
17
-
18
- &--block {
19
- display: flex;
20
- box-sizing: border-box;
21
- width: 100%;
22
- max-width: 100%;
23
- min-width: 0;
24
- flex: 1 1 auto;
25
-
26
- .#{$trionesStepperCls}-input {
27
- flex: 1 1 auto;
28
- min-width: 0;
29
-
30
- input {
31
- width: 100%;
32
- }
33
- }
34
- }
35
-
36
- &-input {
37
- display: flex;
38
- align-items: stretch;
39
- //flex: 0 1 auto;
40
- min-width: 36Px;
41
- min-height: $stepperControlHeight;
42
-
43
- input {
44
- width: 100%;
45
- min-width: 0;
46
- height: 100%;
47
- min-height: $stepperControlHeight;
48
- box-sizing: border-box;
49
- margin: 0;
50
- padding: 0 8Px;
51
- border: 0;
52
- border-radius: variable.$trionesBorderRadiusXs;
53
- background-color: $inputNumberBg;
54
- color: variable.$trionesColorText;
55
- font-size: 14Px;
56
- line-height: $stepperControlHeight;
57
- text-align: center;
58
- appearance: textfield;
59
-
60
- &::-webkit-outer-spin-button,
61
- &::-webkit-inner-spin-button {
62
- -webkit-appearance: none;
63
- margin: 0;
64
- }
65
-
66
- &:focus {
67
- outline: none;
68
- }
69
-
70
- &:disabled {
71
- color: variable.$trionesColorTextDisabled;
72
- cursor: not-allowed;
73
- }
74
- }
75
- }
76
-
77
- &-button {
78
- cursor: pointer;
79
- display: flex;
80
- flex-shrink: 0;
81
- font-size: 10Px;
82
- height: $stepperControlHeight;
83
- width: $stepperControlHeight;
84
- justify-content: center;
85
- align-items: center;
86
- background-color: $inputNumberBg;
87
- border-radius: variable.$trionesBorderRadiusXs;
88
- color: variable.$trionesColorPrimary;
89
-
90
-
91
- &-disabled {
92
- cursor: not-allowed;
93
- color: variable.$trionesColorTextDisabled;
94
- }
95
-
96
- .triones-antm-icon {
97
- font-size: 12Px !important;
98
- }
99
- }
100
- }
1
+ @use "../style/variable" as variable;
2
+
3
+ $trionesStepperCls: 'triones-antm-stepper';
4
+
5
+ $inputNumberBg: #F5F5F5;
6
+ $inputSm: 24Px;
7
+ $inputLg: 40Px;
8
+ $stepperControlHeight: 28Px;
9
+
10
+ .#{$trionesStepperCls} {
11
+ display: inline-flex;
12
+ align-items: stretch;
13
+ gap: 2Px;
14
+ border-radius: variable.$trionesBorderRadiusXs;
15
+ overflow: hidden;
16
+ width: 110Px;
17
+
18
+ &--block {
19
+ display: flex;
20
+ box-sizing: border-box;
21
+ width: 100%;
22
+ max-width: 100%;
23
+ min-width: 0;
24
+ flex: 1 1 auto;
25
+
26
+ .#{$trionesStepperCls}-input {
27
+ flex: 1 1 auto;
28
+ min-width: 0;
29
+
30
+ input {
31
+ width: 100%;
32
+ }
33
+ }
34
+ }
35
+
36
+ &-input-wrapper {
37
+ display: flex;
38
+ align-items: stretch;
39
+ //flex: 0 1 auto;
40
+ min-width: 36Px;
41
+ min-height: $stepperControlHeight;
42
+ }
43
+
44
+ &-input {
45
+ width: 100%;
46
+ min-width: 0;
47
+ height: 100%;
48
+ min-height: $stepperControlHeight;
49
+ box-sizing: border-box;
50
+ margin: 0;
51
+ padding: 0 8Px;
52
+ border: 0;
53
+ border-radius: variable.$trionesBorderRadiusXs;
54
+ background-color: $inputNumberBg;
55
+ color: variable.$trionesColorText;
56
+ font-size: 14Px;
57
+ line-height: $stepperControlHeight;
58
+ text-align: center;
59
+ appearance: textfield;
60
+
61
+ &::-webkit-outer-spin-button,
62
+ &::-webkit-inner-spin-button {
63
+ -webkit-appearance: none;
64
+ margin: 0;
65
+ }
66
+
67
+ &:focus {
68
+ outline: none;
69
+ }
70
+
71
+ &:disabled {
72
+ color: variable.$trionesColorTextDisabled;
73
+ cursor: not-allowed;
74
+ }
75
+ }
76
+
77
+ &-button {
78
+ cursor: pointer;
79
+ display: flex;
80
+ flex-shrink: 0;
81
+ font-size: 10Px;
82
+ height: $stepperControlHeight;
83
+ width: $stepperControlHeight;
84
+ justify-content: center;
85
+ align-items: center;
86
+ background-color: $inputNumberBg;
87
+ border-radius: variable.$trionesBorderRadiusXs;
88
+ color: variable.$trionesColorPrimary;
89
+
90
+
91
+ &-disabled {
92
+ cursor: not-allowed;
93
+ color: variable.$trionesColorTextDisabled;
94
+ }
95
+
96
+ .triones-antm-icon {
97
+ font-size: 12Px !important;
98
+ }
99
+ }
100
+ }
@@ -71,12 +71,15 @@ var HorizontalStepItem = function HorizontalStepItem(_ref) {
71
71
  }, description)));
72
72
  };
73
73
  export var HorizontalSteps = function HorizontalSteps(_ref2) {
74
- var _ref2$stretch = _ref2.stretch,
74
+ var className = _ref2.className,
75
+ style = _ref2.style,
76
+ _ref2$stretch = _ref2.stretch,
75
77
  stretch = _ref2$stretch === void 0 ? true : _ref2$stretch,
76
78
  _ref2$items = _ref2.items,
77
79
  items = _ref2$items === void 0 ? [] : _ref2$items;
78
80
  return /*#__PURE__*/React.createElement("div", {
79
- className: classNames(clsPrefixSteps, "".concat(clsPrefixSteps, "-horizontal"))
81
+ className: classNames(clsPrefixSteps, "".concat(clsPrefixSteps, "-horizontal"), className),
82
+ style: style
80
83
  }, items.map(function (item, index) {
81
84
  return /*#__PURE__*/React.createElement(HorizontalStepItem, {
82
85
  icon: item.icon,
@@ -75,11 +75,14 @@ var VerticalStepIem = function VerticalStepIem(_ref) {
75
75
  }, title && /*#__PURE__*/React.createElement("div", null, title), description && /*#__PURE__*/React.createElement("div", null, description)));
76
76
  };
77
77
  export var VerticalSteps = function VerticalSteps(_ref2) {
78
- var current = _ref2.current,
78
+ var className = _ref2.className,
79
+ style = _ref2.style,
80
+ current = _ref2.current,
79
81
  _ref2$items = _ref2.items,
80
82
  items = _ref2$items === void 0 ? [] : _ref2$items;
81
83
  return /*#__PURE__*/React.createElement("div", {
82
- className: classNames(clsPrefixSteps, "".concat(clsPrefixSteps, "-vertical"))
84
+ className: classNames(clsPrefixSteps, "".concat(clsPrefixSteps, "-vertical"), className),
85
+ style: style
83
86
  }, items.map(function (item, index) {
84
87
  return /*#__PURE__*/React.createElement(VerticalStepIem, {
85
88
  key: index,