@rainbow-oh/yee-c 0.8.1 → 0.8.2
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/Cascader/cascader.js +38 -30
- package/dist/cjs/Cascader/column.js +17 -9
- package/dist/cjs/Cascader/search-list.js +30 -22
- package/dist/cjs/Cascader/utils/index.js +1 -5
- package/dist/cjs/Checkbox/checkbox-group.js +23 -14
- package/dist/cjs/Dialog/dialog.js +1 -1
- package/dist/cjs/Dialog/interface.d.ts +1 -1
- package/dist/cjs/Dialog/style/index.less +2 -1
- package/dist/cjs/Drawer/drawer.js +9 -1
- package/dist/cjs/Form/Group.js +1 -1
- package/dist/cjs/Form/demo/tooltip.js +1 -3
- package/dist/cjs/List/hooks/useListKeyboard.js +3 -1
- package/dist/cjs/Menu/menu.js +18 -2
- package/dist/cjs/Pagination/items.js +54 -26
- package/dist/cjs/Pagination/pagination.js +25 -9
- package/dist/cjs/PickerPanel/panels/DateTimePanel/index.d.ts +1 -1
- package/dist/cjs/PickerPanel/panels/MonthPanel/MonthHeader.js +7 -1
- package/dist/cjs/Rate/star.js +27 -3
- package/dist/cjs/Segmented/demo/variant.js +15 -1
- package/dist/cjs/Segmented/index.d.ts +1 -1
- package/dist/cjs/Segmented/segmented.js +12 -15
- package/dist/cjs/Select/option.js +8 -1
- package/dist/cjs/Select/options.js +9 -1
- package/dist/cjs/Select/select.js +3 -1
- package/dist/cjs/Steps/step.js +14 -2
- package/dist/cjs/Steps/steps.js +11 -1
- package/dist/cjs/Table/demo/components-override.js +31 -2
- package/dist/cjs/Table/demo/grouping.js +7 -1
- package/dist/cjs/Table/hooks/useColumns.d.ts +3 -3
- package/dist/cjs/Table/hooks/useColumns.js +11 -14
- package/dist/cjs/Table/index.d.ts +1 -1
- package/dist/cjs/Table/style/index.less +2 -4
- package/dist/cjs/Table/tbody/row.js +1 -4
- package/dist/cjs/Table/theader/index.js +12 -4
- package/dist/cjs/Tour/index.d.ts +1 -1
- package/dist/cjs/Tree/style/index.less +1 -5
- package/dist/cjs/Tree/tree.js +38 -35
- package/dist/cjs/hooks/useEvent.js +1 -4
- package/dist/cjs/style/size.css +2 -0
- package/dist/cjs/style/themes.css +1 -1
- package/dist/cjs/style/variables.css +3 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Dialog/dialog.js +2 -2
- package/dist/esm/Dialog/interface.d.ts +1 -1
- package/dist/esm/Dialog/style/index.less +2 -1
- package/dist/esm/Form/Group.js +1 -1
- package/dist/esm/PickerPanel/panels/DateTimePanel/index.d.ts +1 -1
- package/dist/esm/Segmented/index.d.ts +1 -1
- package/dist/esm/Segmented/segmented.js +1 -1
- package/dist/esm/Table/demo/components-override.js +1 -0
- package/dist/esm/Table/hooks/useColumns.d.ts +3 -3
- package/dist/esm/Table/hooks/useColumns.js +13 -16
- package/dist/esm/Table/index.d.ts +1 -1
- package/dist/esm/Table/style/index.less +2 -4
- package/dist/esm/Tour/index.d.ts +1 -1
- package/dist/esm/Tree/style/index.less +1 -5
- package/dist/esm/Tree/tree.js +1 -1
- package/dist/esm/style/size.css +2 -0
- package/dist/esm/style/themes.css +1 -1
- package/dist/esm/style/variables.css +3 -1
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/umd/yee-c.min.css +2 -2
- package/dist/umd/yee-c.min.js +1 -1
- package/package.json +1 -1
- package/src/Anchor/anchor.tsx +2 -2
- package/src/Carousel/carousel.tsx +1 -2
- package/src/Cascader/cascader.tsx +5 -1
- package/src/Cascader/column.tsx +5 -1
- package/src/Cascader/search-list.tsx +10 -3
- package/src/Cascader/utils/index.ts +3 -6
- package/src/Checkbox/checkbox-group.tsx +6 -1
- package/src/Dialog/dialog.tsx +7 -3
- package/src/Dialog/interface.ts +1 -1
- package/src/Dialog/style/index.less +2 -1
- package/src/Drawer/drawer.tsx +7 -1
- package/src/Form/Group.tsx +2 -4
- package/src/Form/demo/tooltip.tsx +2 -11
- package/src/Form/utils/validate.ts +1 -4
- package/src/List/hooks/useListKeyboard.ts +3 -3
- package/src/List/list.tsx +2 -1
- package/src/Menu/menu.tsx +14 -3
- package/src/Pagination/items.tsx +16 -4
- package/src/Pagination/pagination.tsx +18 -4
- package/src/PickerPanel/panels/DatePanel/DateBody.tsx +1 -1
- package/src/PickerPanel/panels/DateTimePanel/index.tsx +1 -1
- package/src/PickerPanel/panels/MonthPanel/MonthHeader.tsx +7 -2
- package/src/PickerPanel/panels/PanelBody.tsx +1 -1
- package/src/PickerPanel/panels/QuarterPanel/QuarterHeader.tsx +1 -1
- package/src/PickerPanel/panels/RangePanel/index.tsx +1 -1
- package/src/PickerPanel/panels/TimePanel/TimeBody.tsx +1 -1
- package/src/PickerPanel/panels/YearPanel/YearHeader.tsx +1 -1
- package/src/PickerPanel/utils/pickerUtils.ts +2 -1
- package/src/RangePicker/range-picker-mobile.tsx +1 -3
- package/src/Rate/star.tsx +16 -4
- package/src/Segmented/demo/variant.tsx +10 -2
- package/src/Segmented/index.ts +2 -2
- package/src/Segmented/segmented.tsx +4 -11
- package/src/Select/interface.ts +0 -1
- package/src/Select/option.tsx +8 -2
- package/src/Select/options.tsx +11 -4
- package/src/Select/select.tsx +4 -4
- package/src/Steps/step.tsx +11 -3
- package/src/Steps/steps.tsx +8 -1
- package/src/Table/demo/components-override.tsx +34 -7
- package/src/Table/demo/grouping.tsx +8 -4
- package/src/Table/hooks/useColumns.ts +14 -18
- package/src/Table/index.ts +3 -3
- package/src/Table/style/index.less +2 -4
- package/src/Table/table.tsx +2 -4
- package/src/Table/tbody/row.tsx +1 -3
- package/src/Table/theader/index.tsx +9 -10
- package/src/Tour/demo/placement.tsx +2 -1
- package/src/Tour/index.ts +1 -1
- package/src/Tree/style/index.less +1 -5
- package/src/Tree/tree.tsx +16 -11
- package/src/Tree/utils/tree-tools.ts +4 -1
- package/src/hooks/useEvent.ts +1 -3
- package/src/locale/context.tsx +5 -1
- package/src/locale/interface.ts +3 -1
- package/src/style/size.css +2 -0
- package/src/utils/debounce.ts +1 -3
- package/src/version.ts +1 -1
package/dist/cjs/version.js
CHANGED
|
@@ -205,10 +205,10 @@ var Dialog = function Dialog(baseprops) {
|
|
|
205
205
|
}) : null, title ? /*#__PURE__*/React.createElement("div", {
|
|
206
206
|
className: clsx("".concat(prefixCls, "-header"), classNames === null || classNames === void 0 ? void 0 : classNames.header),
|
|
207
207
|
style: styles === null || styles === void 0 ? void 0 : styles.header
|
|
208
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
208
|
+
}, typeof title === 'string' ? /*#__PURE__*/React.createElement("div", {
|
|
209
209
|
className: "".concat(prefixCls, "-title"),
|
|
210
210
|
id: titleId
|
|
211
|
-
}, title)) : null, /*#__PURE__*/React.createElement("div", {
|
|
211
|
+
}, title) : title) : null, /*#__PURE__*/React.createElement("div", {
|
|
212
212
|
className: clsx("".concat(prefixCls, "-body"), classNames === null || classNames === void 0 ? void 0 : classNames.body),
|
|
213
213
|
style: styles === null || styles === void 0 ? void 0 : styles.body,
|
|
214
214
|
id: bodyId
|
package/dist/esm/Form/Group.js
CHANGED
|
@@ -16,9 +16,9 @@ import clsx from 'clsx';
|
|
|
16
16
|
import { AnimatePresence, motion } from 'motion/react';
|
|
17
17
|
import React, { useContext, useEffect, useId, useMemo, useReducer, useRef } from 'react';
|
|
18
18
|
import Grid from "../Grid";
|
|
19
|
-
import { runValidator } from "./utils/validate";
|
|
20
19
|
import FieldContext from "./FieldContext";
|
|
21
20
|
import FormContext from "./FormContext";
|
|
21
|
+
import { runValidator } from "./utils/validate";
|
|
22
22
|
var Group = function Group(props) {
|
|
23
23
|
var _errors$;
|
|
24
24
|
var label = props.label,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type {
|
|
3
|
+
import type { PanelSharedProps, PickerType } from '../../interface';
|
|
4
4
|
interface DateTimePanelProps extends Omit<PanelSharedProps, 'onSelect'> {
|
|
5
5
|
onSelect?: (panel: PickerType, date: Dayjs) => void;
|
|
6
6
|
showTime?: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import InternalSegmented from './segmented';
|
|
2
|
-
export type { SegmentedOption,
|
|
2
|
+
export type { SegmentedLabeledOption, SegmentedOption, SegmentedProps, SegmentedRawOption, SegmentedSemanticDOM, SegmentedValue, } from './interface';
|
|
3
3
|
export default InternalSegmented;
|
|
@@ -13,8 +13,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
13
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
15
15
|
import clsx from 'clsx';
|
|
16
|
-
import React, { useContext, useId, useMemo } from 'react';
|
|
17
16
|
import { motion } from 'motion/react';
|
|
17
|
+
import React, { useContext, useId, useMemo } from 'react';
|
|
18
18
|
import { GlobalContext } from "../Config-Provider";
|
|
19
19
|
import useMergedState from "../hooks/useMergedState";
|
|
20
20
|
import mergeContextToProps from "../utils/mergeContextToProps";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ColumnProps, ExpandableType, RowSelectionType } from '../interface';
|
|
2
|
+
import type { ColumnProps, ExpandableType, RowSelectionType, WrapedColumnProps } from '../interface';
|
|
3
3
|
export default function useColumns({ children, columns, rowSelection, expandable, }: {
|
|
4
4
|
children?: React.ReactElement<ColumnProps> | React.ReactElement<ColumnProps>[];
|
|
5
5
|
columns: ColumnProps[];
|
|
6
6
|
rowSelection?: RowSelectionType;
|
|
7
7
|
expandable?: ExpandableType;
|
|
8
8
|
}): {
|
|
9
|
-
wrapedColumns:
|
|
10
|
-
headerRows:
|
|
9
|
+
wrapedColumns: WrapedColumnProps[];
|
|
10
|
+
headerRows: import("../interface").HeaderCell[][];
|
|
11
11
|
};
|
|
@@ -5,26 +5,23 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
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
7
|
import React, { useMemo } from 'react';
|
|
8
|
-
import useDeepCompareMemo from "../../hooks/useDeepCompareMemo";
|
|
9
8
|
import deepClone from "../../utils/deepClone";
|
|
10
9
|
import { handleColumns } from "../util";
|
|
11
10
|
import { flattenLeafColumns, injectSelectionExpand, parseHeaderRows } from "../util/header";
|
|
11
|
+
var getColumnsFromChild = function getColumnsFromChild(childs) {
|
|
12
|
+
var cols = [];
|
|
13
|
+
React.Children.forEach(childs, function (child) {
|
|
14
|
+
if (child) {
|
|
15
|
+
cols.push(_objectSpread({}, child.props));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
return cols.length ? cols : null;
|
|
19
|
+
};
|
|
12
20
|
export default function useColumns(_ref) {
|
|
13
21
|
var children = _ref.children,
|
|
14
22
|
columns = _ref.columns,
|
|
15
23
|
rowSelection = _ref.rowSelection,
|
|
16
24
|
expandable = _ref.expandable;
|
|
17
|
-
var shouldRenderSelection = !!rowSelection;
|
|
18
|
-
var shouldRenderExpand = !!expandable;
|
|
19
|
-
var getColumnsFromChild = function getColumnsFromChild(childs) {
|
|
20
|
-
var cols = [];
|
|
21
|
-
React.Children.forEach(childs, function (child) {
|
|
22
|
-
if (child) {
|
|
23
|
-
cols.push(_objectSpread({}, child.props));
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
return cols.length ? cols : null;
|
|
27
|
-
};
|
|
28
25
|
var childColumns = useMemo(function () {
|
|
29
26
|
return children ? getColumnsFromChild(children) : null;
|
|
30
27
|
}, [children]);
|
|
@@ -32,7 +29,7 @@ export default function useColumns(_ref) {
|
|
|
32
29
|
// Build the column tree (with selection/expand injected at the top level),
|
|
33
30
|
// then derive both the flat leaf columns (body/colgroup/summary/sorter) and
|
|
34
31
|
// the 2D header rows (thead multi-level rendering).
|
|
35
|
-
var
|
|
32
|
+
var _useMemo = useMemo(function () {
|
|
36
33
|
var base = deepClone(childColumns || columns || []) || [];
|
|
37
34
|
var tree = injectSelectionExpand(base, rowSelection, expandable);
|
|
38
35
|
var leaves = flattenLeafColumns(tree);
|
|
@@ -42,9 +39,9 @@ export default function useColumns(_ref) {
|
|
|
42
39
|
wrapedColumns: wraped,
|
|
43
40
|
headerRows: rows
|
|
44
41
|
};
|
|
45
|
-
}, [childColumns, columns,
|
|
46
|
-
wrapedColumns =
|
|
47
|
-
headerRows =
|
|
42
|
+
}, [childColumns, columns, rowSelection, expandable]),
|
|
43
|
+
wrapedColumns = _useMemo.wrapedColumns,
|
|
44
|
+
headerRows = _useMemo.headerRows;
|
|
48
45
|
return {
|
|
49
46
|
wrapedColumns: wrapedColumns,
|
|
50
47
|
headerRows: headerRows
|
|
@@ -2,7 +2,7 @@ import Column from './column';
|
|
|
2
2
|
import Summary from './summary';
|
|
3
3
|
import InternalTable from './table';
|
|
4
4
|
import Head from './theader';
|
|
5
|
-
export type { ColumnProps, PaginationType, RowSelectionType,
|
|
5
|
+
export type { ColumnProps, HeaderCell, PaginationType, RowSelectionType, TableBodyComponents, TableComponents, TableProps, TableRowRendererProps, onChangeParams, } from './interface';
|
|
6
6
|
type TableType = typeof InternalTable & {
|
|
7
7
|
Column: typeof Column;
|
|
8
8
|
Summary: typeof Summary;
|
|
@@ -92,13 +92,11 @@
|
|
|
92
92
|
width: 100%;
|
|
93
93
|
|
|
94
94
|
&-scroll-left @{pls}-cell-fixed-left-last {
|
|
95
|
-
box-shadow: 6px 0 6px -4px
|
|
96
|
-
var(--yee-table-fixed-left-after-bs-color);
|
|
95
|
+
box-shadow: 6px 0 6px -4px var(--yee-table-fixed-left-after-bs-color);
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
&-scroll-right @{pls}-cell-fixed-right-first {
|
|
100
|
-
box-shadow: -6px 0 6px -4px
|
|
101
|
-
var(--yee-table-fixed-right-after-bs-color);
|
|
99
|
+
box-shadow: -6px 0 6px -4px var(--yee-table-fixed-right-after-bs-color);
|
|
102
100
|
}
|
|
103
101
|
}
|
|
104
102
|
|
package/dist/esm/Tour/index.d.ts
CHANGED
package/dist/esm/Tree/tree.js
CHANGED
|
@@ -16,8 +16,8 @@ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol
|
|
|
16
16
|
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); }
|
|
17
17
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
18
18
|
import clsx from 'clsx';
|
|
19
|
-
import React, { createContext, useContext, useMemo, useRef, useState } from 'react';
|
|
20
19
|
import { AnimatePresence, motion } from 'motion/react';
|
|
20
|
+
import React, { createContext, useContext, useMemo, useRef, useState } from 'react';
|
|
21
21
|
import { GlobalContext } from "../Config-Provider";
|
|
22
22
|
import useEvent from "../hooks/useEvent";
|
|
23
23
|
import useMergedState from "../hooks/useMergedState";
|
package/dist/esm/style/size.css
CHANGED
|
@@ -224,6 +224,8 @@
|
|
|
224
224
|
/* --Dialog-- */
|
|
225
225
|
--yee-dialog-z-index: var(--yee-z-index-overlay);
|
|
226
226
|
--yee-dialog-mask-z-index: var(--yee-z-index-mask);
|
|
227
|
+
--yee-dialog-title-font-size: 18px;
|
|
228
|
+
--yee-dialog-title-font-weight: 600;
|
|
227
229
|
--yee-dialog-content-wrapper-z-index: var(--yee-z-index-overlay);
|
|
228
230
|
--yee-dialog-header-margin-bottom: 12px;
|
|
229
231
|
--yee-dialog-content-margin-top: 10%;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @rainbow-oh/yee-c CSS Variables
|
|
3
3
|
* Auto-generated, do not edit manually
|
|
4
|
-
* Generated on 2026-07-
|
|
4
|
+
* Generated on 2026-07-23T09:42:21.552Z
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/* ========== color.css ========== */
|
|
@@ -1346,6 +1346,8 @@
|
|
|
1346
1346
|
/* --Dialog-- */
|
|
1347
1347
|
--yee-dialog-z-index: var(--yee-z-index-overlay);
|
|
1348
1348
|
--yee-dialog-mask-z-index: var(--yee-z-index-mask);
|
|
1349
|
+
--yee-dialog-title-font-size: 18px;
|
|
1350
|
+
--yee-dialog-title-font-weight: 600;
|
|
1349
1351
|
--yee-dialog-content-wrapper-z-index: var(--yee-z-index-overlay);
|
|
1350
1352
|
--yee-dialog-header-margin-bottom: 12px;
|
|
1351
1353
|
--yee-dialog-content-margin-top: 10%;
|
package/dist/esm/version.d.ts
CHANGED
package/dist/esm/version.js
CHANGED