one-design-next 0.0.7 → 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';
|
|
@@ -1496,6 +1496,42 @@ html {
|
|
|
1496
1496
|
color: var(--odn-color-text-disabled);
|
|
1497
1497
|
}
|
|
1498
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
|
+
|
|
1499
1535
|
.odn-select-outlined.odn-select-multiple .odn-select-selection-item {
|
|
1500
1536
|
background: var(--odn-select-multiple-item-bg);
|
|
1501
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
|