@kdcloudjs/kdesign 1.2.3 → 1.3.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.
@@ -172,7 +172,6 @@
172
172
  background-color: var(--kd-c-badge-color-success, var(--kd-g-color-success, #1ba854));
173
173
  }
174
174
  .kd-badge-status-processing {
175
- position: relative;
176
175
  background-color: var(--kd-c-badge-color-ongoing, var(--kd-g-color-ongoing, #276ff5));
177
176
  }
178
177
  .kd-badge-status-processing::after {
@@ -188,13 +187,13 @@
188
187
  content: '';
189
188
  }
190
189
  .kd-badge-status-error {
191
- background-color: var(--kd-c-badge-color-warning, var(--kd-g-color-warning, #ff991c));
190
+ background-color: var(--kd-c-badge-color-error, var(--kd-g-color-error, #fb2323));
192
191
  }
193
192
  .kd-badge-status-default {
194
- background-color: var(--kd-c-badge-color-success, var(--kd-g-color-success, #1ba854));
193
+ background-color: var(--kd-c-badge-color-default, #d9d9d9);
195
194
  }
196
195
  .kd-badge-status-warning {
197
- background-color: var(--kd-c-badge-color-error, var(--kd-g-color-error, #fb2323));
196
+ background-color: var(--kd-c-badge-color-warning, var(--kd-g-color-warning, #ff991c));
198
197
  }
199
198
  .kd-badge-not-a-wrapper:not(.kd-badge-status) {
200
199
  vertical-align: middle;
@@ -74,7 +74,6 @@
74
74
  background-color: @badge-color-success;
75
75
  }
76
76
  &-processing {
77
- position: relative;
78
77
  background-color: @badge-color-ongoing;
79
78
  &::after {
80
79
  position: absolute;
@@ -89,13 +88,13 @@
89
88
  }
90
89
  }
91
90
  &-error {
92
- background-color: @badge-color-warning;
91
+ background-color: @badge-color-error;
93
92
  }
94
93
  &-default {
95
- background-color: @badge-color-success;
94
+ background-color: @badge-color-default;
96
95
  }
97
96
  &-warning {
98
- background-color: @badge-color-error;
97
+ background-color: @badge-color-warning;
99
98
  }
100
99
  }
101
100
 
@@ -21,3 +21,4 @@
21
21
  @badge-color-ongoing: var(~'@{badge-prefix}-color-ongoing', @color-ongoing);
22
22
  @badge-color-warning: var(~'@{badge-prefix}-color-warning', @color-warning);
23
23
  @badge-color-error: var(~'@{badge-prefix}-color-error', @color-error);
24
+ @badge-color-default: var(~'@{badge-prefix}-color-default', #d9d9d9);
@@ -107,87 +107,6 @@
107
107
  -ms-flex: 1;
108
108
  flex: 1;
109
109
  }
110
- .kd-carousel-slidelist {
111
- list-style: none;
112
- display: -webkit-box;
113
- display: -ms-flexbox;
114
- display: flex;
115
- -webkit-box-orient: horizontal;
116
- -webkit-box-direction: normal;
117
- -ms-flex-direction: row;
118
- flex-direction: row;
119
- width: 100%;
120
- }
121
- .kd-carousel-slidelist-item {
122
- -ms-flex-negative: 0;
123
- flex-shrink: 0;
124
- height: 100%;
125
- width: 100%;
126
- overflow: hidden;
127
- border-radius: var(--kd-c-carousel-border-radius, 0px);
128
- }
129
- .kd-carousel-fadelist {
130
- list-style: none;
131
- display: -webkit-box;
132
- display: -ms-flexbox;
133
- display: flex;
134
- -webkit-box-orient: horizontal;
135
- -webkit-box-direction: normal;
136
- -ms-flex-direction: row;
137
- flex-direction: row;
138
- -webkit-box-flex: 1;
139
- -ms-flex: 1;
140
- flex: 1;
141
- position: relative;
142
- }
143
- .kd-carousel-fadelist-item {
144
- opacity: 1;
145
- position: relative;
146
- -ms-flex-negative: 0;
147
- flex-shrink: 0;
148
- height: 100%;
149
- width: 100%;
150
- }
151
- .kd-carousel-fadelist-item-animation {
152
- -webkit-transition: opacity 0.3s ease;
153
- transition: opacity 0.3s ease;
154
- }
155
- .kd-carousel-fadelist-item-none-animation {
156
- -webkit-transition: none;
157
- transition: none;
158
- }
159
- .kd-carousel-fadelist-item-not-hidden {
160
- opacity: 1;
161
- }
162
- .kd-carousel-fadelist-item-hidden {
163
- opacity: 0;
164
- }
165
- .kd-carousel-displaylist {
166
- list-style: none;
167
- display: -webkit-box;
168
- display: -ms-flexbox;
169
- display: flex;
170
- -webkit-box-orient: horizontal;
171
- -webkit-box-direction: normal;
172
- -ms-flex-direction: row;
173
- flex-direction: row;
174
- width: 100%;
175
- position: relative;
176
- }
177
- .kd-carousel-displaylist-item {
178
- display: block;
179
- position: relative;
180
- -ms-flex-negative: 0;
181
- flex-shrink: 0;
182
- height: 100%;
183
- width: 100%;
184
- }
185
- .kd-carousel-displaylist-item-not-hidden {
186
- display: block;
187
- }
188
- .kd-carousel-displaylist-item-hidden {
189
- display: none;
190
- }
191
110
  .kd-carousel-list {
192
111
  list-style: none;
193
112
  display: -webkit-box;
@@ -197,9 +116,6 @@
197
116
  -webkit-box-direction: normal;
198
117
  -ms-flex-direction: row;
199
118
  flex-direction: row;
200
- -webkit-box-flex: 1;
201
- -ms-flex: 1;
202
- flex: 1;
203
119
  position: relative;
204
120
  }
205
121
  .kd-carousel-list-item {
@@ -209,6 +125,9 @@
209
125
  height: 100%;
210
126
  width: 100%;
211
127
  }
128
+ .kd-carousel-list-slide {
129
+ width: 100%;
130
+ }
212
131
  .kd-carousel-list-slide .kd-carousel-list-item {
213
132
  opacity: 1;
214
133
  border-radius: var(--kd-c-carousel-border-radius, 0px);
@@ -227,6 +146,11 @@
227
146
  .kd-carousel-list-slide .kd-carousel-list-item-hidden {
228
147
  opacity: 0;
229
148
  }
149
+ .kd-carousel-list-fade {
150
+ -webkit-box-flex: 1;
151
+ -ms-flex: 1;
152
+ flex: 1;
153
+ }
230
154
  .kd-carousel-list-fade .kd-carousel-list-item {
231
155
  opacity: 1;
232
156
  }
@@ -244,6 +168,9 @@
244
168
  .kd-carousel-list-fade .kd-carousel-list-item-hidden {
245
169
  opacity: 0;
246
170
  }
171
+ .kd-carousel-list-display {
172
+ width: 100%;
173
+ }
247
174
  .kd-carousel-list-display .kd-carousel-list-item {
248
175
  display: block;
249
176
  }
@@ -10,71 +10,11 @@
10
10
  overflow: hidden;
11
11
  flex: 1;
12
12
  }
13
- &-slidelist {
14
- list-style: none;
15
- display: flex;
16
- flex-direction: row;
17
- width: 100%;
18
- &-item {
19
- flex-shrink: 0;
20
- height: 100%;
21
- width: 100%;
22
- overflow: hidden;
23
- border-radius: @carousel-boder-radius;
24
- }
25
- }
26
- &-fadelist {
27
- list-style: none;
28
- display: flex;
29
- flex-direction: row;
30
- flex: 1;
31
- position: relative;
32
- &-item {
33
- opacity: 1;
34
- position: relative;
35
- flex-shrink: 0;
36
- height: 100%;
37
- width: 100%;
38
- &-animation {
39
- transition: opacity 0.3s ease;
40
- }
41
- &-none-animation {
42
- transition: none;
43
- }
44
- &-not-hidden {
45
- opacity: 1;
46
- }
47
- &-hidden {
48
- opacity: 0;
49
- }
50
- }
51
- }
52
- &-displaylist {
53
- list-style: none;
54
- display: flex;
55
- flex-direction: row;
56
- width: 100%;
57
- position: relative;
58
- &-item {
59
- display: block;
60
- position: relative;
61
- flex-shrink: 0;
62
- height: 100%;
63
- width: 100%;
64
- &-not-hidden {
65
- display: block;
66
- }
67
- &-hidden {
68
- display: none;
69
- }
70
- }
71
- }
72
13
 
73
14
  &-list {
74
15
  list-style: none;
75
16
  display: flex;
76
17
  flex-direction: row;
77
- flex: 1;
78
18
  position: relative;
79
19
 
80
20
  &-item {
@@ -85,6 +25,7 @@
85
25
  }
86
26
 
87
27
  &-slide {
28
+ width: 100%;
88
29
  .@{carousel-prefix-cls}-list-item {
89
30
  opacity: 1;
90
31
  border-radius: @carousel-boder-radius;
@@ -104,6 +45,7 @@
104
45
  }
105
46
 
106
47
  &-fade {
48
+ flex: 1;
107
49
  .@{carousel-prefix-cls}-list-item {
108
50
  opacity: 1;
109
51
  &-animation {
@@ -122,6 +64,7 @@
122
64
  }
123
65
 
124
66
  &-display {
67
+ width: 100%;
125
68
  .@{carousel-prefix-cls}-list-item {
126
69
  display: block;
127
70
  &-not-hidden {
@@ -32,7 +32,8 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
32
32
  children = CheckboxProps.children,
33
33
  style = CheckboxProps.style,
34
34
  value = CheckboxProps.value,
35
- indeterminate = CheckboxProps.indeterminate;
35
+ indeterminate = CheckboxProps.indeterminate,
36
+ name = CheckboxProps.name;
36
37
 
37
38
  var getChecked = function getChecked() {
38
39
  return isBoolean(checked) ? checked : defaultChecked;
@@ -102,7 +103,8 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
102
103
  ref: ref,
103
104
  value: value,
104
105
  checked: selected,
105
- disabled: disabled
106
+ disabled: disabled,
107
+ name: name
106
108
  })), children && /*#__PURE__*/React.createElement("span", {
107
109
  className: "".concat(checkboxPrefixCls, "-children")
108
110
  }, children), !isDefaultType() && /*#__PURE__*/React.createElement("span", {
@@ -3,7 +3,7 @@ import { NamePath, LabelAlign, Rule } from './interface';
3
3
  export interface FormItemProps {
4
4
  children?: React.ReactNode;
5
5
  className?: string;
6
- defaultValue?: string;
6
+ defaultValue?: any;
7
7
  disabled?: boolean;
8
8
  hidden?: boolean;
9
9
  label?: string | number;
@@ -15,6 +15,7 @@ export interface FormItemProps {
15
15
  rules?: Rule[];
16
16
  validateTrigger?: string | string[];
17
17
  wrapperWidth?: string | number;
18
+ valuePropName?: string;
18
19
  }
19
20
  declare const Field: React.FC<FormItemProps>;
20
21
  export default Field;
package/es/form/Field.js CHANGED
@@ -5,6 +5,7 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/slicedToArray";
5
5
  import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
6
6
  import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
7
7
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
8
+ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
8
9
 
9
10
  var __rest = this && this.__rest || function (s, e) {
10
11
  var t = {};
@@ -31,6 +32,7 @@ import { toArray } from '../_utils/react-children';
31
32
  import FieldContext from './FieldContext';
32
33
  import { INTERNAL_HOOK_KEY } from './hooks/useForm';
33
34
  var DEFAULT_TRIGGER = 'onChange';
35
+ var FormEventValuePropNames = ['value', 'checked'];
34
36
 
35
37
  var generateEventHandler = function generateEventHandler(handler, validateTrigger) {
36
38
  var eventHandler = {};
@@ -94,7 +96,9 @@ var Field = function Field(props) {
94
96
  rules = _props$rules === void 0 ? [] : _props$rules,
95
97
  wrapperWidth = props.wrapperWidth,
96
98
  validateTrigger = props.validateTrigger,
97
- defaultValue = props.defaultValue;
99
+ defaultValue = props.defaultValue,
100
+ _props$valuePropName = props.valuePropName,
101
+ valuePropName = _props$valuePropName === void 0 ? 'value' : _props$valuePropName;
98
102
 
99
103
  var onStoreChange = function onStoreChange(stores, _namePathList, source) {
100
104
  var prev = stores.prev,
@@ -167,10 +171,23 @@ var Field = function Field(props) {
167
171
  var formItemClassName = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(formPrefixCls), true), _defineProperty(_classnames, "".concat(formPrefixCls, "-field"), true), _defineProperty(_classnames, "".concat(formPrefixCls, "-field-hidden"), hidden), _defineProperty(_classnames, "".concat(formPrefixCls, "-field-vertical"), vertical), _classnames), className);
168
172
  var value = getFieldValue(name);
169
173
  var validateMessage = getFieldError(name);
170
- var handleValueChange = React.useCallback(function (evt) {
174
+
175
+ var getInputValueFormProp = function getInputValueFormProp(evt) {
171
176
  var _a;
172
177
 
173
- var inputValue = typeof evt === 'string' ? evt : (_a = evt.target) === null || _a === void 0 ? void 0 : _a.value;
178
+ var inputValue;
179
+
180
+ if (Object.prototype.hasOwnProperty.call(evt, 'target') && _includesInstanceProperty(FormEventValuePropNames).call(FormEventValuePropNames, valuePropName)) {
181
+ inputValue = (_a = evt.target) === null || _a === void 0 ? void 0 : _a[valuePropName];
182
+ } else {
183
+ inputValue = evt;
184
+ }
185
+
186
+ return inputValue;
187
+ };
188
+
189
+ var handleValueChange = React.useCallback(function (evt) {
190
+ var inputValue = getInputValueFormProp(evt);
174
191
  dispatch({
175
192
  type: 'updateValue',
176
193
  namePath: name,
@@ -187,6 +204,8 @@ var Field = function Field(props) {
187
204
  var trigger = _extends(_defineProperty({}, DEFAULT_TRIGGER, handleValueChange), generateEventHandler(handleValueValidate, validateTrigger));
188
205
 
189
206
  var mergeProps = function mergeProps(fa, ch) {
207
+ var _extends3;
208
+
190
209
  if (!ch) {
191
210
  return {};
192
211
  }
@@ -197,17 +216,13 @@ var Field = function Field(props) {
197
216
 
198
217
  var _ch$props = ch.props,
199
218
  chChange = _ch$props.onChange,
200
- chValue = _ch$props.value,
219
+ chValue = _ch$props[valuePropName],
201
220
  chDisabled = _ch$props.disabled,
202
221
  chDefaultValue = _ch$props.defaultValue;
203
222
 
204
223
  var onChange = function onChange(evt) {
205
224
  if (chValue === undefined) {
206
- if (typeof evt === 'string') {
207
- setFieldValue(evt);
208
- } else {
209
- setFieldValue(evt.target.value);
210
- }
225
+ setFieldValue(getInputValueFormProp(evt));
211
226
  }
212
227
 
213
228
  if (typeof faChange === 'function') {
@@ -230,12 +245,10 @@ var Field = function Field(props) {
230
245
  forceUpdate();
231
246
  }
232
247
 
233
- return _extends(_extends({}, rest), {
248
+ return _extends(_extends({}, rest), (_extends3 = {
234
249
  onChange: onChange,
235
- defaultValue: defaultValue,
236
- value: fieldValue,
237
- disabled: chDisabled || faDisabled
238
- });
250
+ defaultValue: defaultValue
251
+ }, _defineProperty(_extends3, valuePropName, fieldValue), _defineProperty(_extends3, "disabled", chDisabled || faDisabled), _extends3));
239
252
  };
240
253
 
241
254
  return /*#__PURE__*/React.createElement("div", {
@@ -249,10 +262,9 @@ var Field = function Field(props) {
249
262
  width: wrapperWidth,
250
263
  validateMessage: validateMessage
251
264
  }, _mapInstanceProperty(_context2 = toArray(children)).call(_context2, function (child, index) {
252
- var keys = mergeProps(_extends(_extends({
253
- disabled: disabled,
254
- value: value
255
- }, trigger), {
265
+ var keys = mergeProps(_extends(_extends(_defineProperty({
266
+ disabled: disabled
267
+ }, valuePropName, value), trigger), {
256
268
  key: index
257
269
  }), child);
258
270
  return child ? /*#__PURE__*/React.cloneElement(child, keys) : child;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { ISelectProps } from './interface';
2
+ import { ISelectProps, SelectValue } from './interface';
3
3
  import Option from './option';
4
- interface CompoundedComponent extends React.ForwardRefExoticComponent<ISelectProps & React.RefAttributes<HTMLElement>> {
4
+ interface CompoundedComponent extends React.ForwardRefExoticComponent<ISelectProps<SelectValue> & React.RefAttributes<HTMLElement>> {
5
5
  Option: typeof Option;
6
6
  }
7
7
  declare const Select: CompoundedComponent;
@@ -43,17 +43,17 @@ export interface OptionsType {
43
43
  value?: string;
44
44
  label?: React.ReactNode;
45
45
  }
46
- export declare type SelectValue = string | string[] | number | number[] | LabeledValue | LabeledValue[] | null;
47
- export interface ISelectProps<T = SelectValue> extends AbstractSelectProps {
46
+ export declare type SelectValue = string | string[] | number | number[] | LabeledValue | LabeledValue[] | null | undefined;
47
+ export interface ISelectProps<T extends SelectValue> extends AbstractSelectProps {
48
48
  value?: T;
49
49
  defaultValue?: T;
50
50
  mode?: Mode;
51
51
  autoFocus?: boolean;
52
- onChange?: (value: T, option: React.ReactElement<any> | React.ReactElement<any>[]) => void;
53
- onSelect?: (value: T extends (infer I)[] ? I : T, option: React.ReactElement<any>) => void;
54
- onBlur?: (value: T) => void;
52
+ onChange?: (value?: T, option?: React.ReactElement<any> | React.ReactElement<any>[]) => void;
53
+ onSelect?: (value?: T extends (infer I)[] ? I : T, option?: React.ReactElement<any>) => void;
54
+ onBlur?: (value?: T) => void;
55
55
  onFocus?: () => void;
56
- onSearch?: () => void;
56
+ onSearch?: (value?: string) => void;
57
57
  onClear?: () => void;
58
- onDropdownVisibleChange?: (value: T) => void;
58
+ onDropdownVisibleChange?: (value?: T) => void;
59
59
  }
@@ -172,7 +172,6 @@
172
172
  background-color: var(--kd-c-badge-color-success, var(--kd-g-color-success, #1ba854));
173
173
  }
174
174
  .kd-badge-status-processing {
175
- position: relative;
176
175
  background-color: var(--kd-c-badge-color-ongoing, var(--kd-g-color-ongoing, #276ff5));
177
176
  }
178
177
  .kd-badge-status-processing::after {
@@ -188,13 +187,13 @@
188
187
  content: '';
189
188
  }
190
189
  .kd-badge-status-error {
191
- background-color: var(--kd-c-badge-color-warning, var(--kd-g-color-warning, #ff991c));
190
+ background-color: var(--kd-c-badge-color-error, var(--kd-g-color-error, #fb2323));
192
191
  }
193
192
  .kd-badge-status-default {
194
- background-color: var(--kd-c-badge-color-success, var(--kd-g-color-success, #1ba854));
193
+ background-color: var(--kd-c-badge-color-default, #d9d9d9);
195
194
  }
196
195
  .kd-badge-status-warning {
197
- background-color: var(--kd-c-badge-color-error, var(--kd-g-color-error, #fb2323));
196
+ background-color: var(--kd-c-badge-color-warning, var(--kd-g-color-warning, #ff991c));
198
197
  }
199
198
  .kd-badge-not-a-wrapper:not(.kd-badge-status) {
200
199
  vertical-align: middle;
@@ -74,7 +74,6 @@
74
74
  background-color: @badge-color-success;
75
75
  }
76
76
  &-processing {
77
- position: relative;
78
77
  background-color: @badge-color-ongoing;
79
78
  &::after {
80
79
  position: absolute;
@@ -89,13 +88,13 @@
89
88
  }
90
89
  }
91
90
  &-error {
92
- background-color: @badge-color-warning;
91
+ background-color: @badge-color-error;
93
92
  }
94
93
  &-default {
95
- background-color: @badge-color-success;
94
+ background-color: @badge-color-default;
96
95
  }
97
96
  &-warning {
98
- background-color: @badge-color-error;
97
+ background-color: @badge-color-warning;
99
98
  }
100
99
  }
101
100
 
@@ -21,3 +21,4 @@
21
21
  @badge-color-ongoing: var(~'@{badge-prefix}-color-ongoing', @color-ongoing);
22
22
  @badge-color-warning: var(~'@{badge-prefix}-color-warning', @color-warning);
23
23
  @badge-color-error: var(~'@{badge-prefix}-color-error', @color-error);
24
+ @badge-color-default: var(~'@{badge-prefix}-color-default', #d9d9d9);
@@ -107,87 +107,6 @@
107
107
  -ms-flex: 1;
108
108
  flex: 1;
109
109
  }
110
- .kd-carousel-slidelist {
111
- list-style: none;
112
- display: -webkit-box;
113
- display: -ms-flexbox;
114
- display: flex;
115
- -webkit-box-orient: horizontal;
116
- -webkit-box-direction: normal;
117
- -ms-flex-direction: row;
118
- flex-direction: row;
119
- width: 100%;
120
- }
121
- .kd-carousel-slidelist-item {
122
- -ms-flex-negative: 0;
123
- flex-shrink: 0;
124
- height: 100%;
125
- width: 100%;
126
- overflow: hidden;
127
- border-radius: var(--kd-c-carousel-border-radius, 0px);
128
- }
129
- .kd-carousel-fadelist {
130
- list-style: none;
131
- display: -webkit-box;
132
- display: -ms-flexbox;
133
- display: flex;
134
- -webkit-box-orient: horizontal;
135
- -webkit-box-direction: normal;
136
- -ms-flex-direction: row;
137
- flex-direction: row;
138
- -webkit-box-flex: 1;
139
- -ms-flex: 1;
140
- flex: 1;
141
- position: relative;
142
- }
143
- .kd-carousel-fadelist-item {
144
- opacity: 1;
145
- position: relative;
146
- -ms-flex-negative: 0;
147
- flex-shrink: 0;
148
- height: 100%;
149
- width: 100%;
150
- }
151
- .kd-carousel-fadelist-item-animation {
152
- -webkit-transition: opacity 0.3s ease;
153
- transition: opacity 0.3s ease;
154
- }
155
- .kd-carousel-fadelist-item-none-animation {
156
- -webkit-transition: none;
157
- transition: none;
158
- }
159
- .kd-carousel-fadelist-item-not-hidden {
160
- opacity: 1;
161
- }
162
- .kd-carousel-fadelist-item-hidden {
163
- opacity: 0;
164
- }
165
- .kd-carousel-displaylist {
166
- list-style: none;
167
- display: -webkit-box;
168
- display: -ms-flexbox;
169
- display: flex;
170
- -webkit-box-orient: horizontal;
171
- -webkit-box-direction: normal;
172
- -ms-flex-direction: row;
173
- flex-direction: row;
174
- width: 100%;
175
- position: relative;
176
- }
177
- .kd-carousel-displaylist-item {
178
- display: block;
179
- position: relative;
180
- -ms-flex-negative: 0;
181
- flex-shrink: 0;
182
- height: 100%;
183
- width: 100%;
184
- }
185
- .kd-carousel-displaylist-item-not-hidden {
186
- display: block;
187
- }
188
- .kd-carousel-displaylist-item-hidden {
189
- display: none;
190
- }
191
110
  .kd-carousel-list {
192
111
  list-style: none;
193
112
  display: -webkit-box;
@@ -197,9 +116,6 @@
197
116
  -webkit-box-direction: normal;
198
117
  -ms-flex-direction: row;
199
118
  flex-direction: row;
200
- -webkit-box-flex: 1;
201
- -ms-flex: 1;
202
- flex: 1;
203
119
  position: relative;
204
120
  }
205
121
  .kd-carousel-list-item {
@@ -209,6 +125,9 @@
209
125
  height: 100%;
210
126
  width: 100%;
211
127
  }
128
+ .kd-carousel-list-slide {
129
+ width: 100%;
130
+ }
212
131
  .kd-carousel-list-slide .kd-carousel-list-item {
213
132
  opacity: 1;
214
133
  border-radius: var(--kd-c-carousel-border-radius, 0px);
@@ -227,6 +146,11 @@
227
146
  .kd-carousel-list-slide .kd-carousel-list-item-hidden {
228
147
  opacity: 0;
229
148
  }
149
+ .kd-carousel-list-fade {
150
+ -webkit-box-flex: 1;
151
+ -ms-flex: 1;
152
+ flex: 1;
153
+ }
230
154
  .kd-carousel-list-fade .kd-carousel-list-item {
231
155
  opacity: 1;
232
156
  }
@@ -244,6 +168,9 @@
244
168
  .kd-carousel-list-fade .kd-carousel-list-item-hidden {
245
169
  opacity: 0;
246
170
  }
171
+ .kd-carousel-list-display {
172
+ width: 100%;
173
+ }
247
174
  .kd-carousel-list-display .kd-carousel-list-item {
248
175
  display: block;
249
176
  }