one-design-next 0.0.6 → 0.0.8
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.
package/dist/cascader/index.js
CHANGED
|
@@ -136,7 +136,7 @@ function CascaderInner(_ref) {
|
|
|
136
136
|
suffixIcon = _useIcons.suffixIcon,
|
|
137
137
|
removeIcon = _useIcons.removeIcon,
|
|
138
138
|
clearIcon = _useIcons.clearIcon;
|
|
139
|
-
var cascaderClassName = [prefixCls, "".concat(prefixCls, "-").concat(size), disabled && "".concat(prefixCls, "-disabled"), !light && "".concat(prefixCls, "-outlined"), "".concat(prefixCls, "-show-arrow"), showInnerSearch && "".concat(prefixCls, "-show-inner-search"), 'odn-cascader', className].filter(Boolean).join(' ');
|
|
139
|
+
var cascaderClassName = [prefixCls, "".concat(prefixCls, "-").concat(size), disabled && "".concat(prefixCls, "-disabled"), light && "".concat(prefixCls, "-light"), !light && "".concat(prefixCls, "-outlined"), "".concat(prefixCls, "-show-arrow"), showInnerSearch && "".concat(prefixCls, "-show-inner-search"), 'odn-cascader', className].filter(Boolean).join(' ');
|
|
140
140
|
var _useState = useState(visibleProp),
|
|
141
141
|
_useState2 = _slicedToArray(_useState, 2),
|
|
142
142
|
visible = _useState2[0],
|
package/dist/select/index.js
CHANGED
|
@@ -258,10 +258,8 @@ var SelectButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
258
258
|
className: "odn-select-clear",
|
|
259
259
|
onClick: handleClear
|
|
260
260
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
background: 'var(--odn-color-white)'
|
|
264
|
-
}
|
|
261
|
+
className: "odn-select-clear-icon",
|
|
262
|
+
name: "cancel-circle-filled"
|
|
265
263
|
})));
|
|
266
264
|
});
|
|
267
265
|
SelectButton.displayName = 'Select.Button';
|
|
@@ -1085,6 +1085,9 @@ html {
|
|
|
1085
1085
|
box-shadow: var(--odn-popup-box-shadow);
|
|
1086
1086
|
filter: var(--odn-popup-filter);
|
|
1087
1087
|
}
|
|
1088
|
+
.odn-select-dropdown .rc-virtual-list-holder {
|
|
1089
|
+
transform: translateZ(0);
|
|
1090
|
+
}
|
|
1088
1091
|
.odn-select-dropdown .rc-virtual-list-scrollbar-vertical {
|
|
1089
1092
|
width: 6px !important;
|
|
1090
1093
|
}
|
|
@@ -1493,6 +1496,42 @@ html {
|
|
|
1493
1496
|
color: var(--odn-color-text-disabled);
|
|
1494
1497
|
}
|
|
1495
1498
|
|
|
1499
|
+
.odn-select-light:not(.odn-select-customize-input) .odn-select-selector {
|
|
1500
|
+
border: 1px solid transparent;
|
|
1501
|
+
background: transparent;
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
.odn-select-light:not(.odn-select-disabled,
|
|
1505
|
+
.odn-select-customize-input,
|
|
1506
|
+
.ant-pagination-size-changer):hover .odn-select-selector {
|
|
1507
|
+
background: var(--odn-color-black-1);
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
.odn-select-open.odn-select-light:not(.odn-select-disabled,
|
|
1511
|
+
.odn-select-customize-input,
|
|
1512
|
+
.ant-pagination-size-changer) .odn-select-selector {
|
|
1513
|
+
background: var(--odn-color-black-2);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
.odn-select-light.odn-select-status-error:not(.odn-select-disabled,
|
|
1517
|
+
.odn-select-customize-input,
|
|
1518
|
+
.ant-pagination-size-changer):hover .odn-select-selector {
|
|
1519
|
+
background: var(--odn-color-error-bg-hover);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
.odn-select-light.odn-select-disabled:not(.odn-select-customize-input) .odn-select-selector {
|
|
1523
|
+
background: var(--odn-color-bg-container-disabled);
|
|
1524
|
+
color: var(--odn-color-text-disabled);
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.odn-select-light .odn-select-clear-icon {
|
|
1528
|
+
background: var(--odn-color-solid-black-2);
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
.odn-select-outlined .odn-select-clear-icon {
|
|
1532
|
+
background: var(--odn-color-white);
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1496
1535
|
.odn-select-outlined.odn-select-multiple .odn-select-selection-item {
|
|
1497
1536
|
background: var(--odn-select-multiple-item-bg);
|
|
1498
1537
|
border: 1px solid var(--odn-select-multiple-item-border-color);
|
|
@@ -14,12 +14,12 @@ export default function useIcons({ suffixIcon, clearIcon, menuItemSelectedIcon,
|
|
|
14
14
|
showSuffixIcon?: boolean;
|
|
15
15
|
showArrow?: boolean;
|
|
16
16
|
}): {
|
|
17
|
-
clearIcon: string | number | boolean | Iterable<ReactNode> |
|
|
17
|
+
clearIcon: string | number | boolean | Iterable<ReactNode> | ((props: any) => ReactNode) | React.JSX.Element;
|
|
18
18
|
suffixIcon: React.JSX.Element | (({ open, showSearch, }: {
|
|
19
19
|
open: boolean;
|
|
20
20
|
showSearch: boolean;
|
|
21
21
|
}) => React.JSX.Element | null) | null;
|
|
22
|
-
itemIcon: string | number | boolean | Iterable<ReactNode> |
|
|
23
|
-
removeIcon: string | number | boolean | Iterable<ReactNode> |
|
|
22
|
+
itemIcon: string | number | boolean | Iterable<ReactNode> | ((props: any) => ReactNode) | React.JSX.Element | null;
|
|
23
|
+
removeIcon: string | number | boolean | Iterable<ReactNode> | ((props: any) => ReactNode) | React.JSX.Element | null;
|
|
24
24
|
};
|
|
25
25
|
export {};
|
package/dist/select/useIcons.js
CHANGED
|
@@ -15,9 +15,7 @@ export default function useIcons(_ref) {
|
|
|
15
15
|
// Clear Icon
|
|
16
16
|
var mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : /*#__PURE__*/React.createElement(Icon, {
|
|
17
17
|
name: "cancel-circle-filled",
|
|
18
|
-
|
|
19
|
-
background: 'var(--odn-color-white)'
|
|
20
|
-
}
|
|
18
|
+
className: "odn-select-clear-icon"
|
|
21
19
|
});
|
|
22
20
|
|
|
23
21
|
// Validation Feedback Icon
|