@rainbow-oh/yee-c 0.10.0 → 0.12.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.
- package/dist/cjs/Anchor/style/index.less +3 -3
- package/dist/cjs/Button/demo/icon.js +1 -1
- package/dist/cjs/Button/style/index.less +72 -52
- package/dist/cjs/DatePicker/style/mobile.less +1 -1
- package/dist/cjs/Descriptions/style/index.less +6 -6
- package/dist/cjs/FloatButton/style/index.less +2 -2
- package/dist/cjs/Form/style/index.less +21 -21
- package/dist/cjs/ImageViewer/style/index.less +13 -13
- package/dist/cjs/Input/style/index.less +1 -1
- package/dist/cjs/InputNumber/style/index.less +9 -9
- package/dist/cjs/Menu/style/index.less +1 -1
- package/dist/cjs/PickerPanel/style/index.less +5 -5
- package/dist/cjs/RangePicker/style/index.less +53 -52
- package/dist/cjs/Rate/style/index.less +1 -1
- package/dist/cjs/Search/style/index.less +10 -10
- package/dist/cjs/Segmented/style/index.less +2 -2
- package/dist/cjs/Selector/selector.js +1 -1
- package/dist/cjs/Selector/style/index.less +1 -1
- package/dist/cjs/Table/demo/resizable.d.ts +3 -0
- package/dist/cjs/Table/demo/resizable.js +143 -0
- package/dist/cjs/Table/hooks/useColumnResize.d.ts +30 -0
- package/dist/cjs/Table/hooks/useColumnResize.js +217 -0
- package/dist/cjs/Table/hooks/useColumns.d.ts +3 -1
- package/dist/cjs/Table/hooks/useColumns.js +14 -3
- package/dist/cjs/Table/interface.d.ts +49 -0
- package/dist/cjs/Table/style/index.less +43 -1
- package/dist/cjs/Table/table.js +62 -9
- package/dist/cjs/Table/theader/cell.js +46 -4
- package/dist/cjs/Table/util/index.d.ts +19 -1
- package/dist/cjs/Table/util/index.js +22 -0
- package/dist/cjs/Tabs/interface.d.ts +1 -1
- package/dist/cjs/Tabs/style/index.less +9 -9
- package/dist/cjs/Tabs/tab-header/index.js +5 -1
- package/dist/cjs/Tour/demo/indicators.js +1 -1
- package/dist/cjs/Tour/demo/placement.js +1 -1
- package/dist/cjs/Transfer/style/index.less +1 -1
- package/dist/cjs/Tree/style/index.less +3 -3
- package/dist/cjs/TreeSelect/style/index.less +1 -1
- package/dist/cjs/Upload/style/index.less +11 -12
- package/dist/cjs/WheelPicker/style/index.less +3 -3
- package/dist/cjs/locale/interface.d.ts +1 -0
- package/dist/cjs/locale/lang/en_US.js +2 -1
- package/dist/cjs/locale/lang/ja_JP.js +2 -1
- package/dist/cjs/locale/lang/zh_CN.js +2 -1
- package/dist/cjs/locale/lang/zh_TW.js +2 -1
- package/dist/cjs/message/style/index.less +4 -4
- package/dist/cjs/style/color.blue.css +254 -290
- package/dist/cjs/style/color.crimson.css +434 -471
- package/dist/cjs/style/color.css +736 -508
- package/dist/cjs/style/color.dark.css +464 -501
- package/dist/cjs/style/color.gemini.css +134 -0
- package/dist/cjs/style/color.green.css +459 -495
- package/dist/cjs/style/color.jam.css +463 -500
- package/dist/cjs/style/color.navy.css +466 -503
- package/dist/cjs/style/color.peach.css +464 -501
- package/dist/cjs/style/color.pine.css +462 -500
- package/dist/cjs/style/color.pitaya.css +465 -502
- package/dist/cjs/style/color.pumpkin.css +464 -501
- package/dist/cjs/style/color.ruby.css +466 -503
- package/dist/cjs/style/size.css +144 -2
- package/dist/cjs/style/themes.css +4999 -5268
- package/dist/cjs/style/variables.css +882 -512
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Anchor/style/index.less +3 -3
- package/dist/esm/Button/demo/icon.js +7 -4
- package/dist/esm/Button/style/index.less +72 -52
- package/dist/esm/DatePicker/style/mobile.less +1 -1
- package/dist/esm/Descriptions/style/index.less +6 -6
- package/dist/esm/FloatButton/style/index.less +2 -2
- package/dist/esm/Form/style/index.less +21 -21
- package/dist/esm/ImageViewer/style/index.less +13 -13
- package/dist/esm/Input/style/index.less +1 -1
- package/dist/esm/InputNumber/style/index.less +9 -9
- package/dist/esm/Menu/style/index.less +1 -1
- package/dist/esm/PickerPanel/style/index.less +5 -5
- package/dist/esm/RangePicker/style/index.less +53 -52
- package/dist/esm/Rate/style/index.less +1 -1
- package/dist/esm/Search/style/index.less +10 -10
- package/dist/esm/Segmented/style/index.less +2 -2
- package/dist/esm/Selector/selector.js +1 -1
- package/dist/esm/Selector/style/index.less +1 -1
- package/dist/esm/Table/demo/resizable.d.ts +3 -0
- package/dist/esm/Table/demo/resizable.js +110 -0
- package/dist/esm/Table/hooks/useColumnResize.d.ts +30 -0
- package/dist/esm/Table/hooks/useColumnResize.js +206 -0
- package/dist/esm/Table/hooks/useColumns.d.ts +3 -1
- package/dist/esm/Table/hooks/useColumns.js +9 -4
- package/dist/esm/Table/interface.d.ts +49 -0
- package/dist/esm/Table/style/index.less +43 -1
- package/dist/esm/Table/table.js +83 -13
- package/dist/esm/Table/theader/cell.js +38 -3
- package/dist/esm/Table/util/index.d.ts +19 -1
- package/dist/esm/Table/util/index.js +37 -0
- package/dist/esm/Tabs/interface.d.ts +1 -1
- package/dist/esm/Tabs/style/index.less +9 -9
- package/dist/esm/Tabs/tab-header/index.js +7 -2
- package/dist/esm/Tour/demo/indicators.js +1 -1
- package/dist/esm/Tour/demo/placement.js +1 -1
- package/dist/esm/Transfer/style/index.less +1 -1
- package/dist/esm/Tree/style/index.less +3 -3
- package/dist/esm/TreeSelect/style/index.less +1 -1
- package/dist/esm/Upload/style/index.less +11 -12
- package/dist/esm/WheelPicker/style/index.less +3 -3
- package/dist/esm/index.js +1 -0
- package/dist/esm/locale/interface.d.ts +1 -0
- package/dist/esm/locale/lang/en_US.js +2 -1
- package/dist/esm/locale/lang/ja_JP.js +2 -1
- package/dist/esm/locale/lang/zh_CN.js +2 -1
- package/dist/esm/locale/lang/zh_TW.js +2 -1
- package/dist/esm/message/style/index.less +4 -4
- package/dist/esm/style/color.blue.css +254 -290
- package/dist/esm/style/color.crimson.css +434 -471
- package/dist/esm/style/color.css +736 -508
- package/dist/esm/style/color.dark.css +464 -501
- package/dist/esm/style/color.gemini.css +134 -0
- package/dist/esm/style/color.green.css +459 -495
- package/dist/esm/style/color.jam.css +463 -500
- package/dist/esm/style/color.navy.css +466 -503
- package/dist/esm/style/color.peach.css +464 -501
- package/dist/esm/style/color.pine.css +462 -500
- package/dist/esm/style/color.pitaya.css +465 -502
- package/dist/esm/style/color.pumpkin.css +464 -501
- package/dist/esm/style/color.ruby.css +466 -503
- package/dist/esm/style/size.css +144 -2
- package/dist/esm/style/themes.css +4999 -5268
- package/dist/esm/style/variables.css +882 -512
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/umd/yee-c.min.css +80 -22
- package/dist/umd/yee-c.min.js +1 -1
- package/package.json +4 -2
- package/src/Anchor/style/index.less +3 -3
- package/src/Button/demo/icon.tsx +5 -3
- package/src/Button/style/index.less +72 -52
- package/src/DatePicker/style/mobile.less +1 -1
- package/src/Descriptions/style/index.less +6 -6
- package/src/FloatButton/style/index.less +2 -2
- package/src/Form/style/index.less +21 -21
- package/src/ImageViewer/style/index.less +13 -13
- package/src/Input/style/index.less +1 -1
- package/src/InputNumber/style/index.less +9 -9
- package/src/Menu/style/index.less +1 -1
- package/src/PickerPanel/style/index.less +5 -5
- package/src/RangePicker/style/index.less +53 -52
- package/src/Rate/style/index.less +1 -1
- package/src/Search/style/index.less +10 -10
- package/src/Segmented/style/index.less +2 -2
- package/src/Selector/selector.tsx +1 -1
- package/src/Selector/style/index.less +1 -1
- package/src/Table/demo/resizable.tsx +106 -0
- package/src/Table/hooks/useColumnResize.ts +224 -0
- package/src/Table/hooks/useColumns.ts +18 -3
- package/src/Table/index.en-US.md +7 -0
- package/src/Table/index.zh-CN.md +7 -0
- package/src/Table/interface.ts +52 -0
- package/src/Table/style/index.less +43 -1
- package/src/Table/table-resize.test.tsx +234 -0
- package/src/Table/table.tsx +90 -13
- package/src/Table/theader/cell.tsx +52 -2
- package/src/Table/util/index.ts +44 -1
- package/src/Tabs/interface.ts +1 -1
- package/src/Tabs/style/index.less +9 -9
- package/src/Tabs/tab-header/index.tsx +5 -1
- package/src/Tour/demo/indicators.tsx +2 -2
- package/src/Tour/demo/placement.tsx +1 -1
- package/src/Transfer/style/index.less +1 -1
- package/src/Tree/style/index.less +3 -3
- package/src/TreeSelect/style/index.less +1 -1
- package/src/Upload/style/index.less +11 -12
- package/src/WheelPicker/style/index.less +3 -3
- package/src/index.ts +1 -0
- package/src/locale/interface.ts +1 -0
- package/src/locale/lang/en_US.ts +1 -0
- package/src/locale/lang/ja_JP.ts +1 -0
- package/src/locale/lang/zh_CN.ts +1 -0
- package/src/locale/lang/zh_TW.ts +1 -0
- package/src/message/style/index.less +4 -4
- package/src/style/color.blue.css +254 -290
- package/src/style/color.crimson.css +434 -471
- package/src/style/color.css +736 -508
- package/src/style/color.dark.css +464 -501
- package/src/style/color.gemini.css +134 -0
- package/src/style/color.green.css +459 -495
- package/src/style/color.jam.css +463 -500
- package/src/style/color.navy.css +466 -503
- package/src/style/color.peach.css +464 -501
- package/src/style/color.pine.css +462 -500
- package/src/style/color.pitaya.css +465 -502
- package/src/style/color.pumpkin.css +464 -501
- package/src/style/color.ruby.css +466 -503
- package/src/style/size.css +144 -2
- package/src/version.ts +1 -1
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
import { WrapedColumnProps } from '../interface';
|
|
1
|
+
import { ColumnProps, WrapedColumnProps } from '../interface';
|
|
2
|
+
/**
|
|
3
|
+
* Stable identity for a leaf column, used to key its resized width.
|
|
4
|
+
*
|
|
5
|
+
* `key`/`dataIndex` survive re-ordering and data changes, so they are preferred.
|
|
6
|
+
* Columns declaring neither fall back to their position, which is the best that
|
|
7
|
+
* can be done without asking the caller for an id.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getColumnResizeKey(column: ColumnProps, index: number): string;
|
|
10
|
+
/**
|
|
11
|
+
* Stamp every leaf column with its `resizeKey`, resolve whether it is resizable
|
|
12
|
+
* (column level setting wins over the table level one) and override `width` with
|
|
13
|
+
* the dragged value when there is one.
|
|
14
|
+
*
|
|
15
|
+
* This runs before `handleColumns` so that the colgroup, the header cells, the
|
|
16
|
+
* body cells and the sticky offsets of fixed columns all read the same width
|
|
17
|
+
* from a single place.
|
|
18
|
+
*/
|
|
19
|
+
export declare function applyColumnResize(columns: Array<WrapedColumnProps>, resizable?: boolean, resizedWidths?: Record<string, number>): WrapedColumnProps[];
|
|
2
20
|
export declare function handleColumns(columns: Array<WrapedColumnProps>, measuredColumnWidths?: number[]): WrapedColumnProps[];
|
|
@@ -4,6 +4,43 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
/**
|
|
8
|
+
* Stable identity for a leaf column, used to key its resized width.
|
|
9
|
+
*
|
|
10
|
+
* `key`/`dataIndex` survive re-ordering and data changes, so they are preferred.
|
|
11
|
+
* Columns declaring neither fall back to their position, which is the best that
|
|
12
|
+
* can be done without asking the caller for an id.
|
|
13
|
+
*/
|
|
14
|
+
export function getColumnResizeKey(column, index) {
|
|
15
|
+
var _column$key;
|
|
16
|
+
var id = (_column$key = column.key) !== null && _column$key !== void 0 ? _column$key : column.dataIndex;
|
|
17
|
+
return id === undefined || id === null || id === '' ? "index:".concat(index) : "id:".concat(id);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Stamp every leaf column with its `resizeKey`, resolve whether it is resizable
|
|
22
|
+
* (column level setting wins over the table level one) and override `width` with
|
|
23
|
+
* the dragged value when there is one.
|
|
24
|
+
*
|
|
25
|
+
* This runs before `handleColumns` so that the colgroup, the header cells, the
|
|
26
|
+
* body cells and the sticky offsets of fixed columns all read the same width
|
|
27
|
+
* from a single place.
|
|
28
|
+
*/
|
|
29
|
+
export function applyColumnResize(columns, resizable, resizedWidths) {
|
|
30
|
+
return columns.map(function (column, index) {
|
|
31
|
+
var _ref, _column$resizable;
|
|
32
|
+
var resizeKey = getColumnResizeKey(column, index);
|
|
33
|
+
var resizedWidth = resizedWidths === null || resizedWidths === void 0 ? void 0 : resizedWidths[resizeKey];
|
|
34
|
+
var next = _objectSpread(_objectSpread({}, column), {}, {
|
|
35
|
+
resizeKey: resizeKey,
|
|
36
|
+
resizable: (_ref = (_column$resizable = column.resizable) !== null && _column$resizable !== void 0 ? _column$resizable : resizable) !== null && _ref !== void 0 ? _ref : false
|
|
37
|
+
});
|
|
38
|
+
if (Number.isFinite(resizedWidth) && resizedWidth > 0) {
|
|
39
|
+
next.width = resizedWidth;
|
|
40
|
+
}
|
|
41
|
+
return next;
|
|
42
|
+
});
|
|
43
|
+
}
|
|
7
44
|
var getColumnWidth = function getColumnWidth(column, index, measuredColumnWidths) {
|
|
8
45
|
var measuredWidth = measuredColumnWidths === null || measuredColumnWidths === void 0 ? void 0 : measuredColumnWidths[index];
|
|
9
46
|
if (Number.isFinite(measuredWidth) && measuredWidth && measuredWidth > 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DataAttributeProps } from '../utils/types';
|
|
3
|
-
type SemanticDOM = 'header' | 'content' | 'track' | 'list' | 'activeBar';
|
|
3
|
+
type SemanticDOM = 'header' | 'content' | 'track' | 'list' | 'activeBar' | 'more';
|
|
4
4
|
export type TabItemType = {
|
|
5
5
|
/**
|
|
6
6
|
* Unique key corresponding to activeKey
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
user-select: none;
|
|
170
170
|
|
|
171
171
|
&.disabled {
|
|
172
|
-
color: var(--yee-
|
|
172
|
+
color: var(--yee-tabs-tab-title-disabled-color);
|
|
173
173
|
cursor: not-allowed;
|
|
174
174
|
|
|
175
175
|
& > * {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
&.active {
|
|
181
|
-
color: var(--yee-
|
|
181
|
+
color: var(--yee-tabs-tab-title-active-hover-color);
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
&:not(.disabled):not(.active):hover {
|
|
@@ -253,8 +253,8 @@
|
|
|
253
253
|
|
|
254
254
|
@{pls}-tab.active {
|
|
255
255
|
z-index: 2;
|
|
256
|
-
color: var(--yee-
|
|
257
|
-
border-color: var(--yee-
|
|
256
|
+
color: var(--yee-tabs-tab-active-hover-pills-color);
|
|
257
|
+
border-color: var(--yee-tabs-tab-active-pills-border-color);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
@{pls}-active {
|
|
@@ -461,16 +461,16 @@
|
|
|
461
461
|
cursor: pointer;
|
|
462
462
|
|
|
463
463
|
&:hover {
|
|
464
|
-
background-color: var(--yee-
|
|
464
|
+
background-color: var(--yee-tabs-tab-dropdown-title-hover-bg-color);
|
|
465
465
|
|
|
466
466
|
@{pls}-tab-title {
|
|
467
|
-
color: var(--yee-
|
|
467
|
+
color: var(--yee-tabs-tab-dropdown-title-hover-color);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
&:active {
|
|
472
|
-
color: var(--yee-
|
|
473
|
-
background-color: var(--yee-
|
|
472
|
+
color: var(--yee-tabs-tab-dropdown-title-active-color);
|
|
473
|
+
background-color: var(--yee-tabs-tab-dropdown-title-active-bg-color);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
}
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
user-select: none;
|
|
492
492
|
|
|
493
493
|
&:hover {
|
|
494
|
-
color: var(--yee-
|
|
494
|
+
color: var(--yee-tabs-tab-title-active-hover-color);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1
2
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2
6
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
7
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -118,7 +122,7 @@ var TabHeader = function TabHeader(props) {
|
|
|
118
122
|
handleAddTab(e);
|
|
119
123
|
}
|
|
120
124
|
}, [handleAddTab]);
|
|
121
|
-
var cls = clsx("".concat(prefixCls, "-nav-wrapper"), "".concat(prefixCls, "-nav-wrapper-").concat(position), classNames === null || classNames === void 0 ? void 0 : classNames.header);
|
|
125
|
+
var cls = clsx("".concat(prefixCls, "-nav-wrapper"), "".concat(prefixCls, "-nav-wrapper-").concat(position), _defineProperty({}, "".concat(prefixCls, "-nav-wrapper-with-more"), moreOpen), classNames === null || classNames === void 0 ? void 0 : classNames.header);
|
|
122
126
|
var contextValue = {
|
|
123
127
|
activetab: activetab,
|
|
124
128
|
navList: navList,
|
|
@@ -168,7 +172,8 @@ var TabHeader = function TabHeader(props) {
|
|
|
168
172
|
items: items || [],
|
|
169
173
|
range: range
|
|
170
174
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
171
|
-
className: "".concat(prefixCls, "-nav-more"),
|
|
175
|
+
className: clsx("".concat(prefixCls, "-nav-more"), classNames === null || classNames === void 0 ? void 0 : classNames.more),
|
|
176
|
+
style: styles === null || styles === void 0 ? void 0 : styles.more,
|
|
172
177
|
size: "small",
|
|
173
178
|
icon: /*#__PURE__*/React.createElement(Ellipsis, {
|
|
174
179
|
size: 14,
|
|
@@ -50,7 +50,7 @@ export default (function () {
|
|
|
50
50
|
height: 8,
|
|
51
51
|
marginInlineEnd: 4,
|
|
52
52
|
borderRadius: '50%',
|
|
53
|
-
background: i === current ? 'var(--yee-primary
|
|
53
|
+
background: i === current ? 'var(--yee-color-primary)' : 'var(--yee-color-border)',
|
|
54
54
|
transition: 'background 0.2s'
|
|
55
55
|
}
|
|
56
56
|
});
|
|
@@ -33,7 +33,7 @@ export default (function () {
|
|
|
33
33
|
style: {
|
|
34
34
|
display: 'inline-block',
|
|
35
35
|
padding: '16px 24px',
|
|
36
|
-
border: '1px dashed var(--yee-border
|
|
36
|
+
border: '1px dashed var(--yee-color-border)',
|
|
37
37
|
borderRadius: 6
|
|
38
38
|
}
|
|
39
39
|
}, "\u76EE\u6807\u5143\u7D20"), /*#__PURE__*/React.createElement(Tour, {
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&-drag-over-before {
|
|
20
|
-
box-shadow: inset 0 2px 0 0 var(--yee-primary
|
|
20
|
+
box-shadow: inset 0 2px 0 0 var(--yee-color-primary);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&-drag-over-after {
|
|
24
|
-
box-shadow: inset 0 -2px 0 0 var(--yee-primary
|
|
24
|
+
box-shadow: inset 0 -2px 0 0 var(--yee-color-primary);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
&-drag-over-inside {
|
|
28
|
-
background: color-mix(in srgb, var(--yee-primary
|
|
28
|
+
background: color-mix(in srgb, var(--yee-color-primary) 12%, transparent);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
&-switcher {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
display: flex;
|
|
9
9
|
|
|
10
10
|
&:focus-within {
|
|
11
|
-
outline: 2px solid var(--yee-primary
|
|
11
|
+
outline: 2px solid var(--yee-color-primary);
|
|
12
12
|
outline-offset: 2px;
|
|
13
13
|
border-radius: var(--yee-radius);
|
|
14
14
|
}
|
|
@@ -53,12 +53,12 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&:hover {
|
|
56
|
-
border-color: var(--yee-primary
|
|
56
|
+
border-color: var(--yee-color-primary);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&-hover {
|
|
60
|
-
border-color: var(--yee-primary
|
|
61
|
-
background-color: var(--yee-primary-
|
|
60
|
+
border-color: var(--yee-color-primary);
|
|
61
|
+
background-color: var(--yee-color-primary-bg);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
&-trigger {
|
|
78
78
|
width: 100px;
|
|
79
79
|
height: 100px;
|
|
80
|
-
border: 1px dashed var(--yee-border
|
|
80
|
+
border: 1px dashed var(--yee-color-border);
|
|
81
81
|
border-radius: var(--yee-radius-lg, 4px);
|
|
82
82
|
display: flex;
|
|
83
83
|
align-items: center;
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
background-color: var(--yee-color-bg-container);
|
|
88
88
|
|
|
89
89
|
&:hover {
|
|
90
|
-
border-color: var(--yee-primary
|
|
91
|
-
color: var(--yee-primary
|
|
90
|
+
border-color: var(--yee-color-primary);
|
|
91
|
+
color: var(--yee-color-primary);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
align-items: center;
|
|
126
126
|
justify-content: center;
|
|
127
127
|
padding: 8px;
|
|
128
|
-
color: var(--yee-error
|
|
128
|
+
color: var(--yee-color-error);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
&-operate {
|
|
@@ -236,7 +236,6 @@
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
&-item {
|
|
239
|
-
|
|
240
239
|
&-label {
|
|
241
240
|
display: flex;
|
|
242
241
|
align-items: center;
|
|
@@ -270,15 +269,15 @@
|
|
|
270
269
|
// 上传状态样式
|
|
271
270
|
&-state {
|
|
272
271
|
&-uploading {
|
|
273
|
-
color: var(--yee-primary
|
|
272
|
+
color: var(--yee-color-primary);
|
|
274
273
|
}
|
|
275
274
|
|
|
276
275
|
&-error {
|
|
277
|
-
color: var(--yee-error
|
|
276
|
+
color: var(--yee-color-error);
|
|
278
277
|
}
|
|
279
278
|
|
|
280
279
|
&-success {
|
|
281
|
-
color: var(--yee-success
|
|
280
|
+
color: var(--yee-color-success);
|
|
282
281
|
}
|
|
283
282
|
}
|
|
284
283
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
scroll-snap-align: center;
|
|
60
60
|
text-align: center;
|
|
61
61
|
font-size: 16px;
|
|
62
|
-
color: var(--yee-text
|
|
62
|
+
color: var(--yee-color-text, #333);
|
|
63
63
|
cursor: pointer;
|
|
64
64
|
white-space: nowrap;
|
|
65
65
|
overflow: hidden;
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
left: 8px;
|
|
76
76
|
right: 8px;
|
|
77
77
|
pointer-events: none;
|
|
78
|
-
border-top: 1px solid var(--yee-border
|
|
79
|
-
border-bottom: 1px solid var(--yee-border
|
|
78
|
+
border-top: 1px solid var(--yee-color-border, #e8e8e8);
|
|
79
|
+
border-bottom: 1px solid var(--yee-color-border, #e8e8e8);
|
|
80
80
|
border-radius: 4px;
|
|
81
81
|
background: var(--yee-wheel-picker-indicator-bg, rgba(0, 0, 0, 4%));
|
|
82
82
|
z-index: 1;
|
package/dist/esm/index.js
CHANGED
|
@@ -153,6 +153,7 @@ import "./style/zindex.css";
|
|
|
153
153
|
// import './style/color.blue.css';
|
|
154
154
|
// import './style/color.crimson.css';
|
|
155
155
|
// import './style/color.dark.css';
|
|
156
|
+
// import './style/color.gemini.css';
|
|
156
157
|
// import './style/color.green.css';
|
|
157
158
|
// import './style/color.jam.css';
|
|
158
159
|
// import './style/color.navy.css';
|
|
@@ -56,7 +56,8 @@ var locale = {
|
|
|
56
56
|
selectionNone: 'Clear Selection on Page',
|
|
57
57
|
sortAscending: 'Click to sort ascending',
|
|
58
58
|
sortDescending: 'Click to sort descending',
|
|
59
|
-
sortCancel: 'Click to cancel sorting'
|
|
59
|
+
sortCancel: 'Click to cancel sorting',
|
|
60
|
+
resizeColumn: 'Drag to resize column'
|
|
60
61
|
},
|
|
61
62
|
pagination: {
|
|
62
63
|
total: 'Total {total} items',
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
// status
|
|
38
38
|
&-success {
|
|
39
39
|
@{pls}-icon {
|
|
40
|
-
color: var(--yee-success
|
|
40
|
+
color: var(--yee-color-success);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&-info {
|
|
45
45
|
@{pls}-icon {
|
|
46
|
-
color: var(--yee-info
|
|
46
|
+
color: var(--yee-color-info);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&-error {
|
|
51
51
|
@{pls}-icon {
|
|
52
|
-
color: var(--yee-error
|
|
52
|
+
color: var(--yee-color-error);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&-warning {
|
|
57
57
|
@{pls}-icon {
|
|
58
|
-
color: var(--yee-warning
|
|
58
|
+
color: var(--yee-color-warning);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|