@unicom-cloud/ui 0.8.89 → 0.8.90
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/Anchor.js +4 -2
- package/AutoComplete.js +4 -2
- package/Avatar.js +4 -3
- package/Badge.js +6 -5
- package/Breadcrumb.js +4 -3
- package/Calendar.js +7 -5
- package/Card.js +6 -4
- package/Cascader.js +1 -1
- package/Checkbox.js +4 -4
- package/Collapse.js +3 -2
- package/ColorPicker.js +13 -2
- package/DatePicker.js +8 -8
- package/Form.js +3 -3
- package/Grid.js +10 -8
- package/List.js +1 -1
- package/Mentions.js +1 -1
- package/Pagination.js +1 -1
- package/Radio.js +5 -5
- package/Select.js +1 -1
- package/Table.js +3 -3
- package/TimePicker.js +2 -2
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/TreeSelect.js +3 -3
- package/Typography.js +1 -1
- package/anchor/Anchor.js +30 -29
- package/anchor/index.js +2 -0
- package/auto-complete/index.js +4 -2
- package/avatar/index.js +4 -3
- package/badge/index.js +39 -43
- package/breadcrumb/index.js +18 -17
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +2 -2
- package/calendar/index.js +7 -5
- package/card/index.js +31 -29
- package/cascader/Cascader.js +1 -1
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +6 -6
- package/checkbox/Group.js +1 -1
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +4 -4
- package/chunk/B3LeSidy.js +192 -0
- package/chunk/{CgyNQvYg.js → BbQEqpOn.js} +388 -381
- package/chunk/{BP4igg_F.js → BcCuJQY8.js} +41 -40
- package/chunk/{Doi4-DdV.js → C8Kcc_9d.js} +99 -92
- package/chunk/D-Hw4x_H.js +88 -0
- package/chunk/{BC2OXILt.js → Dc-uXGtN.js} +1 -1
- package/collapse/Collapse.js +255 -13
- package/collapse/Item.js +2 -2
- package/collapse/index.js +4 -2
- package/color-picker/Panel.js +1 -1
- package/color-picker/index.js +13 -2
- package/date-picker/Picker.js +142 -138
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +22 -22
- package/date-picker/util.js +1 -1
- package/form/Form.js +1 -1
- package/form/index.js +32 -32
- package/grid/index.js +13 -12
- package/image/Image.js +26 -25
- package/index.js +600 -571
- package/list/index.js +1 -1
- package/mentions/index.js +1 -1
- package/package.json +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +1 -1
- package/pagination/index.js +1 -1
- package/radio/Group.js +1 -1
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +4 -4
- package/radio/index.js +4 -4
- package/select/Option.js +1 -1
- package/select/Select.js +1 -1
- package/select/index.js +2 -2
- package/select/util.js +2 -2
- package/space/index.js +56 -54
- package/statistic/Countdown.js +1 -1
- package/steps/index.js +50 -49
- package/style.css +1 -1
- package/table/Table.js +2 -2
- package/table/index.js +3 -3
- package/time-picker/Picker.js +17 -17
- package/time-picker/RangePicker.js +7 -7
- package/time-picker/TimePicker.js +2 -2
- package/time-picker/index.js +2 -2
- package/time-picker/util.js +1 -1
- package/transfer/Item.js +1 -1
- package/transfer/List.js +1 -1
- package/transfer/index.js +2 -2
- package/tree/Animation.js +1 -1
- package/tree/Node.js +1 -1
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +3 -3
- package/tree/index.js +1 -1
- package/tree-select/List.js +1 -1
- package/tree-select/Select.js +1 -1
- package/tree-select/index.js +2 -2
- package/types/common/space/interface.d.ts +4 -0
- package/types/common/utils/dayjs.d.ts +2 -2
- package/types/pc/anchor/Anchor.d.ts +1 -0
- package/types/pc/anchor/index.d.ts +2 -1
- package/types/pc/auto-complete/index.d.ts +6 -0
- package/types/pc/avatar/index.d.ts +1 -0
- package/types/pc/badge/index.d.ts +5 -3
- package/types/pc/breadcrumb/index.d.ts +1 -0
- package/types/pc/calendar/index.d.ts +3 -0
- package/types/pc/card/index.d.ts +1 -0
- package/types/pc/cascader/Cascader.d.ts +1 -1
- package/types/pc/collapse/Collapse.d.ts +1 -0
- package/types/pc/collapse/index.d.ts +2 -1
- package/types/pc/color-picker/index.d.ts +7 -0
- package/types/pc/date-picker/index.d.ts +1 -1
- package/types/pc/date-picker/interface.d.ts +2 -2
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/form/hook/useForm.d.ts +1 -1
- package/types/pc/form/index.d.ts +1 -1
- package/types/pc/grid/index.d.ts +3 -4
- package/types/pc/index.d.ts +15 -14
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/space/index.d.ts +2 -2
- package/types/pc/steps/index.d.ts +1 -0
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/utils/constant.d.ts +2 -2
- package/types/pc/utils/index.d.ts +1 -0
- package/types/pc/utils/names.d.ts +396 -85
- package/typography/Ellipsis.js +5 -4
- package/typography/index.js +1 -1
- package/utils/constant.js +6 -6
- package/utils/dayjs.js +1 -1
- package/utils/index.js +202 -200
- package/utils/names.js +294 -86
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +117 -116
- package/chunk/C7bohPVD.js +0 -185
- package/chunk/DYmI9fFY.js +0 -257
- /package/grid/{grid.js → Grid.js} +0 -0
- /package/grid/{grid-item.js → GridItem.js} +0 -0
- /package/types/pc/grid/{grid.d.ts → Grid.d.ts} +0 -0
- /package/types/pc/grid/{grid-item.d.ts → GridItem.d.ts} +0 -0
package/Anchor.js
CHANGED
package/AutoComplete.js
CHANGED
|
@@ -5,11 +5,13 @@ import "./chunk/B44Hj5ad.js";
|
|
|
5
5
|
import "./chunk/BFTV6myl.js";
|
|
6
6
|
import "./chunk/D5wldVRB.js";
|
|
7
7
|
import "./input/Input.js";
|
|
8
|
-
import { A as
|
|
8
|
+
import { a as C, b as O, A as b } from "./chunk/BbQEqpOn.js";
|
|
9
9
|
import "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
11
11
|
import "./chunk/BKKEev13.js";
|
|
12
12
|
import "./chunk/ClqoGc3r.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
C as AutoCompleteOptGroup,
|
|
15
|
+
O as AutoCompleteOption,
|
|
16
|
+
b as default
|
|
15
17
|
};
|
package/Avatar.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./avatar/Avatar.js";
|
|
2
|
-
import "./avatar/Group.js";
|
|
3
|
-
import { default as
|
|
2
|
+
import { default as a } from "./avatar/Group.js";
|
|
3
|
+
import { default as f } from "./avatar/index.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
a as AvatarGroup,
|
|
6
|
+
f as default
|
|
6
7
|
};
|
package/Badge.js
CHANGED
|
@@ -5,10 +5,11 @@ import "./chunk/B44Hj5ad.js";
|
|
|
5
5
|
import "./chunk/BFTV6myl.js";
|
|
6
6
|
import "./chunk/NPajzdOv.js";
|
|
7
7
|
import "@unicom-cloud/utils/class-name";
|
|
8
|
-
import "./badge/Count.js";
|
|
9
|
-
import { BADGE_COLORS as
|
|
8
|
+
import { default as d } from "./badge/Count.js";
|
|
9
|
+
import { BADGE_COLORS as A, BADGE_STATUS as B, default as S } from "./badge/index.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
A as BADGE_COLORS,
|
|
12
|
+
B as BADGE_STATUS,
|
|
13
|
+
d as BadgeCount,
|
|
14
|
+
S as default
|
|
14
15
|
};
|
package/Breadcrumb.js
CHANGED
|
@@ -7,8 +7,9 @@ import "./chunk/CkEaf5V0.js";
|
|
|
7
7
|
import "@unicom-cloud/utils/class-name";
|
|
8
8
|
import "./chunk/ClM74To2.js";
|
|
9
9
|
import "./chunk/BKKEev13.js";
|
|
10
|
-
import "./breadcrumb/Item.js";
|
|
11
|
-
import { default as
|
|
10
|
+
import { default as l } from "./breadcrumb/Item.js";
|
|
11
|
+
import { default as b } from "./breadcrumb/index.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
l as BreadcrumbItem,
|
|
14
|
+
b as default
|
|
14
15
|
};
|
package/Calendar.js
CHANGED
|
@@ -4,11 +4,13 @@ import "react";
|
|
|
4
4
|
import "./chunk/B44Hj5ad.js";
|
|
5
5
|
import "./chunk/BFTV6myl.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
|
-
import "./chunk/
|
|
7
|
+
import "./chunk/B3LeSidy.js";
|
|
8
8
|
import "./chunk/ClqoGc3r.js";
|
|
9
|
-
import "./chunk/
|
|
10
|
-
import "./calendar/Year.js";
|
|
11
|
-
import { C
|
|
9
|
+
import { M as l } from "./chunk/Dc-uXGtN.js";
|
|
10
|
+
import { default as s } from "./calendar/Year.js";
|
|
11
|
+
import { C } from "./chunk/BbQEqpOn.js";
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
l as CalendarMonth,
|
|
14
|
+
s as CalendarYear,
|
|
15
|
+
C as default
|
|
14
16
|
};
|
package/Card.js
CHANGED
|
@@ -4,9 +4,11 @@ import "./chunk/B44Hj5ad.js";
|
|
|
4
4
|
import "./chunk/BFTV6myl.js";
|
|
5
5
|
import "./spin/index.js";
|
|
6
6
|
import "@unicom-cloud/utils/class-name";
|
|
7
|
-
import "./card/Grid.js";
|
|
8
|
-
import "./card/Meta.js";
|
|
9
|
-
import { default as
|
|
7
|
+
import { default as d } from "./card/Grid.js";
|
|
8
|
+
import { default as l } from "./card/Meta.js";
|
|
9
|
+
import { default as x } from "./card/index.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
d as CardGrid,
|
|
12
|
+
l as CardMeta,
|
|
13
|
+
x as default
|
|
12
14
|
};
|
package/Cascader.js
CHANGED
package/Checkbox.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { G as a,
|
|
2
|
-
import { default as
|
|
1
|
+
import { G as a, e as r, d as s } from "./chunk/BbQEqpOn.js";
|
|
2
|
+
import { default as x } from "./checkbox/useCheckbox.js";
|
|
3
3
|
export {
|
|
4
4
|
a as CheckboxGroup,
|
|
5
5
|
r as CheckboxGroupBlock,
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
s as default,
|
|
7
|
+
x as useCheckbox
|
|
8
8
|
};
|
package/Collapse.js
CHANGED
package/ColorPicker.js
CHANGED
|
@@ -8,8 +8,19 @@ import "./chunk/BFTV6myl.js";
|
|
|
8
8
|
import "./trigger/index.js";
|
|
9
9
|
import "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "./color-picker/colors.js";
|
|
11
|
-
import {
|
|
11
|
+
import { ControlBar as C } from "./color-picker/ControlBar.js";
|
|
12
|
+
import { g as u, f as c } from "./chunk/BbQEqpOn.js";
|
|
13
|
+
import { InputAlpha as I } from "./color-picker/InputAlpha.js";
|
|
14
|
+
import { InputHex as b } from "./color-picker/InputHex.js";
|
|
15
|
+
import { InputRgb as A } from "./color-picker/InputRgb.js";
|
|
16
|
+
import { Palette as H } from "./color-picker/Palette.js";
|
|
12
17
|
import "./color-picker/utils.js";
|
|
13
18
|
export {
|
|
14
|
-
|
|
19
|
+
C as ColorPickerControlBar,
|
|
20
|
+
I as ColorPickerInputAlpha,
|
|
21
|
+
b as ColorPickerInputHex,
|
|
22
|
+
A as ColorPickerInputRgb,
|
|
23
|
+
H as ColorPickerPalette,
|
|
24
|
+
u as ColorPickerPanel,
|
|
25
|
+
c as default
|
|
15
26
|
};
|
package/DatePicker.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "./date-picker/Picker.js";
|
|
4
|
-
import { P as
|
|
5
|
-
import {
|
|
4
|
+
import { P as o } from "./chunk/C8Kcc_9d.js";
|
|
5
|
+
import { DatePickerMonth as P, DatePickerQuarter as c, DatePickerWeek as m, DatePickerYear as p, default as D } from "./date-picker/index.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
c as
|
|
9
|
-
|
|
10
|
-
m as
|
|
11
|
-
p as
|
|
12
|
-
|
|
7
|
+
P as DatePickerMonth,
|
|
8
|
+
c as DatePickerQuarter,
|
|
9
|
+
o as DatePickerRange,
|
|
10
|
+
m as DatePickerWeek,
|
|
11
|
+
p as DatePickerYear,
|
|
12
|
+
D as default
|
|
13
13
|
};
|
package/Form.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as e, u as t } from "./chunk/
|
|
1
|
+
import { g as e, u as t } from "./chunk/BcCuJQY8.js";
|
|
2
2
|
import { default as a } from "./form/Control.js";
|
|
3
3
|
import { default as f } from "./form/FormItem.js";
|
|
4
4
|
import { default as F } from "./form/FormList.js";
|
|
5
5
|
import { default as d } from "./form/FormProvider.js";
|
|
6
|
-
import { default as p, useFormContext as n, useFormState as c,
|
|
6
|
+
import { default as p, useFormContext as n, useFormState as c, useFormWatch as g } from "./form/index.js";
|
|
7
7
|
export {
|
|
8
8
|
a as FormControl,
|
|
9
9
|
f as FormItem,
|
|
@@ -14,5 +14,5 @@ export {
|
|
|
14
14
|
t as useForm,
|
|
15
15
|
n as useFormContext,
|
|
16
16
|
c as useFormState,
|
|
17
|
-
g as
|
|
17
|
+
g as useFormWatch
|
|
18
18
|
};
|
package/Grid.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { default as e } from "./grid/Col.js";
|
|
2
|
-
import
|
|
3
|
-
import "./grid/
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
1
|
+
import { default as a, default as e } from "./grid/Col.js";
|
|
2
|
+
import "./grid/Grid.js";
|
|
3
|
+
import { default as d } from "./grid/GridItem.js";
|
|
4
|
+
import { default as m, default as u } from "./grid/Row.js";
|
|
5
|
+
import { default as s } from "./grid/index.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as Col,
|
|
8
|
+
e as GridCol,
|
|
8
9
|
d as GridItem,
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
m as GridRow,
|
|
11
|
+
u as Row,
|
|
12
|
+
s as default
|
|
11
13
|
};
|
package/List.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./chunk/B44Hj5ad.js";
|
|
|
5
5
|
import "./grid/Col.js";
|
|
6
6
|
import "./grid/Row.js";
|
|
7
7
|
import "./chunk/BFTV6myl.js";
|
|
8
|
-
import { L as I } from "./chunk/
|
|
8
|
+
import { L as I } from "./chunk/BbQEqpOn.js";
|
|
9
9
|
import "./spin/index.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "./chunk/BKKEev13.js";
|
package/Mentions.js
CHANGED
|
@@ -4,7 +4,7 @@ import "./chunk/B44Hj5ad.js";
|
|
|
4
4
|
import "./chunk/BFTV6myl.js";
|
|
5
5
|
import "./chunk/D5wldVRB.js";
|
|
6
6
|
import "./input/Input.js";
|
|
7
|
-
import { M as s } from "./chunk/
|
|
7
|
+
import { M as s } from "./chunk/BbQEqpOn.js";
|
|
8
8
|
import "@unicom-cloud/utils/class-name";
|
|
9
9
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
10
10
|
import "./mentions/util.js";
|
package/Pagination.js
CHANGED
package/Radio.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as r, h as t, i as d, j as e, R as i } from "./chunk/BbQEqpOn.js";
|
|
2
2
|
export {
|
|
3
3
|
r as ClearRadioGroupContext,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
t as RadioGroup,
|
|
5
|
+
d as RadioGroupBlock,
|
|
6
|
+
e as RadioGroupContext,
|
|
7
|
+
i as default
|
|
8
8
|
};
|
package/Select.js
CHANGED
package/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { k as s, l, m as o, T as u, u as t, n as m, o as b, p as T, q as n, r, s as f, t as p } from "./chunk/BbQEqpOn.js";
|
|
2
2
|
import { defaultComponent as C } from "./table/constant.js";
|
|
3
3
|
export {
|
|
4
4
|
s as TableSummary,
|
|
@@ -6,8 +6,8 @@ export {
|
|
|
6
6
|
o as TableSummaryRow,
|
|
7
7
|
u as default,
|
|
8
8
|
C as tableDefaultComponent,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
t as useTableColumns,
|
|
10
|
+
m as useTableComponent,
|
|
11
11
|
b as useTableExpand,
|
|
12
12
|
T as useTableRowSelection,
|
|
13
13
|
n as useTableSorter,
|
package/TimePicker.js
CHANGED
|
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "./time-picker/Picker.js";
|
|
3
3
|
import "./time-picker/RangePicker.js";
|
|
4
4
|
import "./time-picker/TimePicker.js";
|
|
5
|
-
import {
|
|
5
|
+
import { TimePickerRange as p, default as a } from "./time-picker/index.js";
|
|
6
6
|
export {
|
|
7
|
-
p as
|
|
7
|
+
p as TimePickerRange,
|
|
8
8
|
a as default
|
|
9
9
|
};
|
package/Transfer.js
CHANGED
|
@@ -9,7 +9,7 @@ import "./chunk/BFTV6myl.js";
|
|
|
9
9
|
import "./chunk/D5wldVRB.js";
|
|
10
10
|
import "@unicom-cloud/utils/class-name";
|
|
11
11
|
import "./chunk/ClqoGc3r.js";
|
|
12
|
-
import {
|
|
12
|
+
import { v } from "./chunk/BbQEqpOn.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
v as default
|
|
15
15
|
};
|
package/Tree.js
CHANGED
package/TreeSelect.js
CHANGED
package/Typography.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as o,
|
|
1
|
+
import { E as o, z as t } from "./chunk/BbQEqpOn.js";
|
|
2
2
|
import { default as f } from "./typography/Paragraph.js";
|
|
3
3
|
import { default as l } from "./typography/Text.js";
|
|
4
4
|
import { default as T } from "./typography/Title.js";
|
package/anchor/Anchor.js
CHANGED
|
@@ -4,14 +4,14 @@ import { p as pt } from "../chunk/Coz3rCng.js";
|
|
|
4
4
|
import _ from "lodash/isFunction";
|
|
5
5
|
import E from "lodash/isNumber";
|
|
6
6
|
import gt from "lodash/throttle";
|
|
7
|
-
import { forwardRef as ht, useContext as Ct, useRef as k, useState as kt, useEffect as
|
|
8
|
-
import
|
|
9
|
-
import { a as
|
|
7
|
+
import { forwardRef as ht, useContext as Ct, useRef as k, useState as kt, useEffect as A, useCallback as N, useImperativeHandle as xt } from "react";
|
|
8
|
+
import Lt from "../affix/index.js";
|
|
9
|
+
import { a as yt } from "../chunk/B44Hj5ad.js";
|
|
10
10
|
import { u as Rt } from "../chunk/oopARUrq.js";
|
|
11
11
|
import { u as wt } from "../chunk/BFTV6myl.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import
|
|
14
|
-
import { on as
|
|
12
|
+
import { u as At } from "../chunk/Duezix3m.js";
|
|
13
|
+
import Nt from "@unicom-cloud/utils/class-name";
|
|
14
|
+
import { on as St, off as $t } from "../utils/dom.js";
|
|
15
15
|
import { l as Tt } from "../chunk/ClM74To2.js";
|
|
16
16
|
import vt from "./context.js";
|
|
17
17
|
import bt from "./Link.js";
|
|
@@ -23,10 +23,10 @@ const It = {
|
|
|
23
23
|
boundary: "start"
|
|
24
24
|
};
|
|
25
25
|
function Ht(G, J) {
|
|
26
|
-
const { getPrefixCls:
|
|
26
|
+
const { getPrefixCls: S, componentConfig: $, rtl: F } = Ct(yt), K = wt(
|
|
27
27
|
G,
|
|
28
28
|
It,
|
|
29
|
-
|
|
29
|
+
$ == null ? void 0 : $.Anchor
|
|
30
30
|
), {
|
|
31
31
|
className: Q,
|
|
32
32
|
style: X,
|
|
@@ -41,24 +41,24 @@ function Ht(G, J) {
|
|
|
41
41
|
boundary: i = "start",
|
|
42
42
|
targetOffset: T,
|
|
43
43
|
children: rt,
|
|
44
|
-
direction:
|
|
44
|
+
direction: L = "vertical",
|
|
45
45
|
onSelect: H,
|
|
46
46
|
onChange: v,
|
|
47
47
|
...ot
|
|
48
|
-
} = K, a =
|
|
48
|
+
} = K, a = S == null ? void 0 : S("anchor"), it = Nt(a, Q, {
|
|
49
49
|
[`${a}-lineless`]: x,
|
|
50
50
|
[`${a}-rtl`]: F,
|
|
51
|
-
[`${a}-horizontal`]:
|
|
52
|
-
}), s = k(null), d = k(null), f = k(/* @__PURE__ */ new Map()), b = k(!1), p = k(null), [st, O] = kt(0), [o, ct] =
|
|
51
|
+
[`${a}-horizontal`]: L === "horizontal"
|
|
52
|
+
}), s = k(null), d = k(null), f = k(/* @__PURE__ */ new Map()), b = k(!1), p = k(null), [st, O] = kt(0), [o, ct] = At(""), lt = Rt();
|
|
53
53
|
function z() {
|
|
54
54
|
let t = Et(m);
|
|
55
55
|
return m || (t = Pt(s.current)), t;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
A(() => {
|
|
58
58
|
const t = z();
|
|
59
59
|
p.current = t;
|
|
60
60
|
}, [m]);
|
|
61
|
-
const at =
|
|
61
|
+
const at = N(() => z(), [m]);
|
|
62
62
|
xt(
|
|
63
63
|
J,
|
|
64
64
|
() => ({
|
|
@@ -73,7 +73,7 @@ function Ht(G, J) {
|
|
|
73
73
|
function ft(t) {
|
|
74
74
|
f.current.delete(t), O(Math.random());
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const y = N(
|
|
77
77
|
(t) => {
|
|
78
78
|
if (!t || !s.current)
|
|
79
79
|
return;
|
|
@@ -92,7 +92,7 @@ function Ht(G, J) {
|
|
|
92
92
|
}));
|
|
93
93
|
},
|
|
94
94
|
[o, v]
|
|
95
|
-
), U =
|
|
95
|
+
), U = N(() => {
|
|
96
96
|
let t;
|
|
97
97
|
const e = E(i) ? i : 0, n = p.current, h = Mt(n).getBoundingClientRect(), R = document.documentElement.clientHeight;
|
|
98
98
|
return [...f.current.keys()].some((M) => {
|
|
@@ -111,7 +111,7 @@ function Ht(G, J) {
|
|
|
111
111
|
}
|
|
112
112
|
return u;
|
|
113
113
|
}), t;
|
|
114
|
-
}, [i, T]), g =
|
|
114
|
+
}, [i, T]), g = N(
|
|
115
115
|
gt(
|
|
116
116
|
(t) => {
|
|
117
117
|
if (b.current)
|
|
@@ -119,13 +119,13 @@ function Ht(G, J) {
|
|
|
119
119
|
const e = U();
|
|
120
120
|
if (e && e.id) {
|
|
121
121
|
const n = `#${e.id}`;
|
|
122
|
-
|
|
122
|
+
y(n);
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
30,
|
|
126
126
|
{ trailing: !0 }
|
|
127
127
|
),
|
|
128
|
-
[U,
|
|
128
|
+
[U, y]
|
|
129
129
|
);
|
|
130
130
|
function V(t) {
|
|
131
131
|
if (t)
|
|
@@ -155,24 +155,24 @@ function Ht(G, J) {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
function ut(t, e) {
|
|
158
|
-
I || t.preventDefault(),
|
|
158
|
+
I || t.preventDefault(), y(e), V(e), _(H) && H(e, o);
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
A(() => {
|
|
161
161
|
const t = decodeURIComponent(location.hash);
|
|
162
|
-
t ? (
|
|
163
|
-
}, []),
|
|
164
|
-
|
|
165
|
-
}), [m, g]),
|
|
162
|
+
t ? (y(t), V(t)) : g(null);
|
|
163
|
+
}, []), A(() => (lt || g(null), St(p.current, "scroll", g), () => {
|
|
164
|
+
$t(p.current, "scroll", g);
|
|
165
|
+
}), [m, g]), A(() => {
|
|
166
166
|
const t = f.current.get(o);
|
|
167
|
-
t && !x && d.current && (
|
|
168
|
-
}, [o, x,
|
|
167
|
+
t && !x && d.current && (L === "horizontal" ? (d.current.style.left = `${t.offsetLeft}px`, d.current.style.width = `${t.clientWidth}px`) : d.current.style.top = `${t.offsetTop}px`);
|
|
168
|
+
}, [o, x, L, F, st]);
|
|
169
169
|
const W = /* @__PURE__ */ mt("div", { className: it, style: X, ref: s, ...ot, children: [
|
|
170
170
|
!x && o && /* @__PURE__ */ w("div", { className: `${a}-line-slider`, ref: d }),
|
|
171
171
|
/* @__PURE__ */ w(
|
|
172
172
|
vt.Provider,
|
|
173
173
|
{
|
|
174
174
|
value: {
|
|
175
|
-
direction:
|
|
175
|
+
direction: L,
|
|
176
176
|
currentLink: o,
|
|
177
177
|
addLink: B,
|
|
178
178
|
removeLink: ft,
|
|
@@ -183,7 +183,7 @@ function Ht(G, J) {
|
|
|
183
183
|
)
|
|
184
184
|
] });
|
|
185
185
|
return Z ? /* @__PURE__ */ w(
|
|
186
|
-
|
|
186
|
+
Lt,
|
|
187
187
|
{
|
|
188
188
|
offsetTop: nt,
|
|
189
189
|
offsetBottom: et,
|
|
@@ -197,5 +197,6 @@ const Ot = ht(Ht), q = Ot;
|
|
|
197
197
|
q.displayName = "Anchor";
|
|
198
198
|
q.Link = bt;
|
|
199
199
|
export {
|
|
200
|
+
bt as AnchorLink,
|
|
200
201
|
q as default
|
|
201
202
|
};
|
package/anchor/index.js
CHANGED
package/auto-complete/index.js
CHANGED
|
@@ -5,11 +5,13 @@ import "../chunk/B44Hj5ad.js";
|
|
|
5
5
|
import "../chunk/BFTV6myl.js";
|
|
6
6
|
import "../chunk/D5wldVRB.js";
|
|
7
7
|
import "../input/Input.js";
|
|
8
|
-
import { A as
|
|
8
|
+
import { a as C, b as O, A as b } from "../chunk/BbQEqpOn.js";
|
|
9
9
|
import "@unicom-cloud/utils/class-name";
|
|
10
10
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
11
11
|
import "../chunk/BKKEev13.js";
|
|
12
12
|
import "../chunk/ClqoGc3r.js";
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
C as AutoCompleteOptGroup,
|
|
15
|
+
O as AutoCompleteOption,
|
|
16
|
+
b as default
|
|
15
17
|
};
|