@yoka-ui/ui 1.0.3 → 1.0.5
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/@Docs-yoka/exports.generated.md +71 -63
- package/README.md +6 -4
- package/dist/es/business/AiChat/index.js.map +1 -1
- package/dist/es/business/AiChat/intentRecognizer.js.map +1 -1
- package/dist/es/business/AiChat/navigationManager.js +6 -6
- package/dist/es/business/AiChat/navigationManager.js.map +2 -2
- package/dist/es/business/DrawerPageInfo/index.js.map +1 -1
- package/dist/es/business/Editor/index.d.ts +1 -1
- package/dist/es/business/Editor/index.js.map +2 -2
- package/dist/es/business/Empty/index.js +1 -1
- package/dist/es/business/Empty/index.js.map +1 -1
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js +2 -2
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Category.js.map +2 -2
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js +3 -3
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Content.js.map +2 -2
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js +2 -2
- package/dist/es/business/ModCommonFilter/components/PopoverContent/Selected.js.map +2 -2
- package/dist/es/business/ModCommonFilter/index.d.ts +1 -1
- package/dist/es/business/ModCommonFilter/index.js.map +2 -2
- package/dist/es/business/YkPorjectSelect/index.d.ts +1 -1
- package/dist/es/business/YkPorjectSelect/index.js +2 -2
- package/dist/es/business/YkPorjectSelect/index.js.map +2 -2
- package/dist/es/components/DebounceInput/index.js.map +2 -2
- package/dist/es/components/MultipleSelect/index.d.ts +14 -0
- package/dist/es/components/MultipleSelect/index.js +1 -1
- package/dist/es/components/MultipleSelect/index.js.map +2 -2
- package/dist/es/components/RefreshButton/index.js.map +2 -2
- package/dist/es/components/SearchWithHistory/index.js +1 -1
- package/dist/es/components/SearchWithHistory/index.js.map +2 -2
- package/dist/es/components/TextWithToolTip/index.d.ts +1 -1
- package/dist/es/components/TextWithToolTip/index.js.map +2 -2
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +1 -24
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js +2 -2
- package/dist/es/components/TreeTransfer/components/TreeTransferPanel/index.js.map +2 -2
- package/dist/es/components/TreeTransfer/index.d.ts +1 -24
- package/dist/es/components/TreeTransfer/index.js +8 -8
- package/dist/es/components/TreeTransfer/index.js.map +2 -2
- package/dist/es/components/TreeTransfer/utils/index.d.ts +1 -1
- package/dist/es/components/TreeTransfer/utils/index.js.map +2 -2
- package/dist/es/components/YkDateRangePicker/index.d.ts +1 -1
- package/dist/es/components/YkDateRangePicker/index.js +1 -1
- package/dist/es/components/YkDateRangePicker/index.js.map +2 -2
- package/dist/es/components/YkDateRangePicker/index.module.less +2 -1
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +1 -1
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +3 -2
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +2 -2
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +1 -1
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +2 -2
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +1 -1
- package/dist/es/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +2 -2
- package/dist/es/components/YkRangeDateWithVS/index.d.ts +2 -2
- package/dist/es/components/YkRangeDateWithVS/index.js.map +2 -2
- package/dist/es/components/YkRangeTimeWithRecent/index.d.ts +1 -1
- package/dist/es/components/YkRangeTimeWithRecent/index.js.map +2 -2
- package/dist/es/creative/ArcCheckbox/index.d.ts +12 -0
- package/dist/es/creative/ArcCheckbox/index.js +49 -0
- package/dist/es/creative/ArcCheckbox/index.js.map +7 -0
- package/dist/es/creative/ArcCheckbox/index.module.less +102 -0
- package/dist/es/creative/ButtonRadioWithInfo/index.js.map +1 -1
- package/dist/es/creative/ButtonWithProgress/index.d.ts +1 -1
- package/dist/es/creative/ButtonWithProgress/index.js.map +2 -2
- package/dist/es/creative/GlassSegmentedRadio/index.d.ts +24 -0
- package/dist/es/creative/GlassSegmentedRadio/index.js +75 -0
- package/dist/es/creative/GlassSegmentedRadio/index.js.map +7 -0
- package/dist/es/creative/GlassSegmentedRadio/index.module.less +241 -0
- package/dist/es/index.d.ts +30 -26
- package/dist/es/index.js +86 -82
- package/dist/es/index.js.map +2 -2
- package/dist/es/index.less +2 -0
- package/dist/es/layout/FlexGrid/index.d.ts +1 -1
- package/dist/es/layout/FlexGrid/index.js.map +2 -2
- package/dist/es/layout/YkContainer/index.js.map +1 -1
- package/dist/es/layout/YkDrawer/index.d.ts +1 -1
- package/dist/es/layout/YkDrawer/index.js.map +2 -2
- package/dist/es/ui/LabelSelect/demo.js +1 -1
- package/dist/es/ui/LabelSelect/demo.js.map +2 -2
- package/dist/es/ui/LabelSelect/index.d.ts +1 -1
- package/dist/es/ui/LabelSelect/index.js +1 -1
- package/dist/es/ui/LabelSelect/index.js.map +2 -2
- package/dist/es/ui/LogicOperator/index.d.ts +1 -1
- package/dist/es/ui/LogicOperator/index.js.map +2 -2
- package/dist/es/ui/YkButton/index.d.ts +1 -1
- package/dist/es/ui/YkButton/index.js.map +2 -2
- package/dist/es/ui/YkCard/index.d.ts +1 -1
- package/dist/es/ui/YkCard/index.js +1 -1
- package/dist/es/ui/YkCard/index.js.map +2 -2
- package/dist/es/ui/YkCheckbox/index.d.ts +1 -1
- package/dist/es/ui/YkCheckbox/index.js.map +2 -2
- package/dist/es/ui/YkDescriptions/index.d.ts +1 -1
- package/dist/es/ui/YkDescriptions/index.js.map +2 -2
- package/dist/es/ui/YkPagination/index.d.ts +1 -1
- package/dist/es/ui/YkPagination/index.js.map +2 -2
- package/dist/es/ui/YkRadio/index.d.ts +1 -1
- package/dist/es/ui/YkRadio/index.js.map +2 -2
- package/dist/es/ui/YkSegmented/index.d.ts +1 -1
- package/dist/es/ui/YkSegmented/index.js.map +2 -2
- package/dist/es/ui/YkSelect/index.d.ts +1 -1
- package/dist/es/ui/YkSelect/index.js.map +2 -2
- package/dist/es/ui/YkSpin/index.d.ts +1 -1
- package/dist/es/ui/YkSpin/index.js.map +2 -2
- package/dist/es/ui/YkStatistic/index.d.ts +1 -1
- package/dist/es/ui/YkStatistic/index.js.map +2 -2
- package/dist/es/ui/YkSwitch/index.d.ts +1 -1
- package/dist/es/ui/YkSwitch/index.js.map +2 -2
- package/dist/es/ui/YkTabs/index.d.ts +1 -1
- package/dist/es/ui/YkTabs/index.js.map +2 -2
- package/dist/es/ui/YkTooltip/index.d.ts +1 -1
- package/dist/es/ui/YkTooltip/index.js.map +2 -2
- package/dist/es/utils/styleUtils.js.map +2 -2
- package/dist/lib/business/AiChat/index.js.map +1 -1
- package/dist/lib/business/AiChat/intentRecognizer.js.map +1 -1
- package/dist/lib/business/AiChat/navigationManager.js +6 -6
- package/dist/lib/business/AiChat/navigationManager.js.map +2 -2
- package/dist/lib/business/DrawerPageInfo/index.js.map +1 -1
- package/dist/lib/business/Editor/index.d.ts +1 -1
- package/dist/lib/business/Editor/index.js.map +2 -2
- package/dist/lib/business/Empty/index.js +1 -1
- package/dist/lib/business/Empty/index.js.map +1 -1
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js +3 -3
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Category.js.map +2 -2
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js +4 -4
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Content.js.map +2 -2
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js +3 -3
- package/dist/lib/business/ModCommonFilter/components/PopoverContent/Selected.js.map +2 -2
- package/dist/lib/business/ModCommonFilter/index.d.ts +1 -1
- package/dist/lib/business/ModCommonFilter/index.js.map +2 -2
- package/dist/lib/business/YkPorjectSelect/index.d.ts +1 -1
- package/dist/lib/business/YkPorjectSelect/index.js +3 -3
- package/dist/lib/business/YkPorjectSelect/index.js.map +2 -2
- package/dist/lib/components/DebounceInput/index.js.map +2 -2
- package/dist/lib/components/MultipleSelect/index.d.ts +14 -0
- package/dist/lib/components/MultipleSelect/index.js +1 -1
- package/dist/lib/components/MultipleSelect/index.js.map +2 -2
- package/dist/lib/components/RefreshButton/index.js.map +2 -2
- package/dist/lib/components/SearchWithHistory/index.js +1 -1
- package/dist/lib/components/SearchWithHistory/index.js.map +2 -2
- package/dist/lib/components/TextWithToolTip/index.d.ts +1 -1
- package/dist/lib/components/TextWithToolTip/index.js.map +2 -2
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.d.ts +1 -24
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js +2 -2
- package/dist/lib/components/TreeTransfer/components/TreeTransferPanel/index.js.map +2 -2
- package/dist/lib/components/TreeTransfer/index.d.ts +1 -24
- package/dist/lib/components/TreeTransfer/index.js +3 -3
- package/dist/lib/components/TreeTransfer/index.js.map +2 -2
- package/dist/lib/components/TreeTransfer/utils/index.d.ts +1 -1
- package/dist/lib/components/TreeTransfer/utils/index.js.map +2 -2
- package/dist/lib/components/YkDateRangePicker/index.d.ts +1 -1
- package/dist/lib/components/YkDateRangePicker/index.js +1 -1
- package/dist/lib/components/YkDateRangePicker/index.js.map +2 -2
- package/dist/lib/components/YkDateRangePicker/index.module.less +2 -1
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.d.ts +1 -1
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js +3 -2
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSCompare.js.map +2 -2
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.d.ts +1 -1
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSRange.js.map +2 -2
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.d.ts +1 -1
- package/dist/lib/components/YkRangeDateWithVS/YkRangeDateWithVSSelect.js.map +2 -2
- package/dist/lib/components/YkRangeDateWithVS/index.d.ts +2 -2
- package/dist/lib/components/YkRangeDateWithVS/index.js.map +2 -2
- package/dist/lib/components/YkRangeTimeWithRecent/index.d.ts +1 -1
- package/dist/lib/components/YkRangeTimeWithRecent/index.js.map +2 -2
- package/dist/lib/creative/ArcCheckbox/index.d.ts +12 -0
- package/dist/lib/creative/ArcCheckbox/index.js +50 -0
- package/dist/lib/creative/ArcCheckbox/index.js.map +7 -0
- package/dist/lib/creative/ArcCheckbox/index.module.less +102 -0
- package/dist/lib/creative/ButtonRadioWithInfo/index.js.map +1 -1
- package/dist/lib/creative/ButtonWithProgress/index.d.ts +1 -1
- package/dist/lib/creative/ButtonWithProgress/index.js.map +2 -2
- package/dist/lib/creative/GlassSegmentedRadio/index.d.ts +24 -0
- package/dist/lib/creative/GlassSegmentedRadio/index.js +78 -0
- package/dist/lib/creative/GlassSegmentedRadio/index.js.map +7 -0
- package/dist/lib/creative/GlassSegmentedRadio/index.module.less +241 -0
- package/dist/lib/index.d.ts +30 -26
- package/dist/lib/index.js +31 -25
- package/dist/lib/index.js.map +2 -2
- package/dist/lib/index.less +2 -0
- package/dist/lib/layout/FlexGrid/index.d.ts +1 -1
- package/dist/lib/layout/FlexGrid/index.js.map +2 -2
- package/dist/lib/layout/YkContainer/index.js.map +1 -1
- package/dist/lib/layout/YkDrawer/index.d.ts +1 -1
- package/dist/lib/layout/YkDrawer/index.js.map +2 -2
- package/dist/lib/ui/LabelSelect/demo.js +1 -1
- package/dist/lib/ui/LabelSelect/demo.js.map +2 -2
- package/dist/lib/ui/LabelSelect/index.d.ts +1 -1
- package/dist/lib/ui/LabelSelect/index.js +1 -1
- package/dist/lib/ui/LabelSelect/index.js.map +2 -2
- package/dist/lib/ui/LogicOperator/index.d.ts +1 -1
- package/dist/lib/ui/LogicOperator/index.js.map +2 -2
- package/dist/lib/ui/YkButton/index.d.ts +1 -1
- package/dist/lib/ui/YkButton/index.js.map +2 -2
- package/dist/lib/ui/YkCard/index.d.ts +1 -1
- package/dist/lib/ui/YkCard/index.js.map +2 -2
- package/dist/lib/ui/YkCheckbox/index.d.ts +1 -1
- package/dist/lib/ui/YkCheckbox/index.js.map +2 -2
- package/dist/lib/ui/YkDescriptions/index.d.ts +1 -1
- package/dist/lib/ui/YkDescriptions/index.js.map +2 -2
- package/dist/lib/ui/YkPagination/index.d.ts +1 -1
- package/dist/lib/ui/YkPagination/index.js.map +2 -2
- package/dist/lib/ui/YkRadio/index.d.ts +1 -1
- package/dist/lib/ui/YkRadio/index.js.map +2 -2
- package/dist/lib/ui/YkSegmented/index.d.ts +1 -1
- package/dist/lib/ui/YkSegmented/index.js.map +2 -2
- package/dist/lib/ui/YkSelect/index.d.ts +1 -1
- package/dist/lib/ui/YkSelect/index.js.map +2 -2
- package/dist/lib/ui/YkSpin/index.d.ts +1 -1
- package/dist/lib/ui/YkSpin/index.js.map +2 -2
- package/dist/lib/ui/YkStatistic/index.d.ts +1 -1
- package/dist/lib/ui/YkStatistic/index.js.map +2 -2
- package/dist/lib/ui/YkSwitch/index.d.ts +1 -1
- package/dist/lib/ui/YkSwitch/index.js.map +2 -2
- package/dist/lib/ui/YkTabs/index.d.ts +1 -1
- package/dist/lib/ui/YkTabs/index.js.map +2 -2
- package/dist/lib/ui/YkTooltip/index.d.ts +1 -1
- package/dist/lib/ui/YkTooltip/index.js.map +2 -2
- package/dist/lib/utils/styleUtils.js.map +2 -2
- package/package.json +137 -144
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
/* 容器:参考 glass-radio-group 暗色毛玻璃;浅色主题单独覆盖 */
|
|
2
|
+
.root {
|
|
3
|
+
--segment-count: 2;
|
|
4
|
+
--glass-group-bg: rgba(255, 255, 255, 0.06);
|
|
5
|
+
--glass-group-text: #999;
|
|
6
|
+
--glass-group-text-hover: #666;
|
|
7
|
+
--glass-group-text-checked: #333;
|
|
8
|
+
--glass-group-border: rgba(255, 255, 255, 0.1);
|
|
9
|
+
|
|
10
|
+
display: flex;
|
|
11
|
+
position: relative;
|
|
12
|
+
width: fit-content;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
border-radius: 1rem;
|
|
15
|
+
backdrop-filter: blur(12px);
|
|
16
|
+
-webkit-backdrop-filter: blur(12px);
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
border: 1px solid var(--glass-group-border);
|
|
19
|
+
font-family: var(--font-sans, system-ui, sans-serif);
|
|
20
|
+
background: var(--glass-group-bg);
|
|
21
|
+
box-shadow:
|
|
22
|
+
inset 1px 1px 4px rgba(255, 255, 255, 0.2),
|
|
23
|
+
inset -1px -1px 6px rgba(0, 0, 0, 0.3),
|
|
24
|
+
0 4px 12px rgba(0, 0, 0, 0.15);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.rootDisabled {
|
|
28
|
+
opacity: 0.55;
|
|
29
|
+
pointer-events: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:global(html[data-theme="light"]) .root {
|
|
33
|
+
--glass-group-bg: rgba(255, 255, 255, 0.78);
|
|
34
|
+
--glass-group-text: rgba(0, 0, 0, 0.55);
|
|
35
|
+
--glass-group-text-hover: rgba(0, 0, 0, 0.88);
|
|
36
|
+
--glass-group-text-checked: rgba(0, 0, 0, 0.92);
|
|
37
|
+
--glass-group-border: var(--ln-border-subtle, rgba(0, 0, 0, 0.12));
|
|
38
|
+
|
|
39
|
+
box-shadow:
|
|
40
|
+
inset 1px 1px 3px rgba(255, 255, 255, 0.95),
|
|
41
|
+
inset -1px -1px 4px rgba(0, 0, 0, 0.05),
|
|
42
|
+
0 2px 8px rgba(0, 0, 0, 0.06);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* 保留可聚焦与读屏,不用 display:none */
|
|
46
|
+
.input {
|
|
47
|
+
position: absolute;
|
|
48
|
+
opacity: 0;
|
|
49
|
+
width: 0;
|
|
50
|
+
height: 0;
|
|
51
|
+
margin: 0;
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.label {
|
|
56
|
+
flex: 1;
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
min-width: 80px;
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
padding: 0.8rem 1.6rem;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
letter-spacing: 0.3px;
|
|
66
|
+
color: var(--glass-group-text);
|
|
67
|
+
position: relative;
|
|
68
|
+
z-index: 2;
|
|
69
|
+
transition: color 0.3s ease-in-out;
|
|
70
|
+
user-select: none;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.label:hover {
|
|
74
|
+
color: var(--glass-group-text-hover);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.input:checked + .label {
|
|
78
|
+
color: var(--glass-group-text-checked);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.input:focus-visible + .label {
|
|
82
|
+
outline: 2px solid var(--ln-focus-ring, #1677ff);
|
|
83
|
+
outline-offset: 2px;
|
|
84
|
+
border-radius: 6px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* 滑块:宽度随段数变化;位移与配色由「第 n 个 input 选中」决定(translateX 百分比相对滑块自身宽度) */
|
|
88
|
+
.glider {
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: 0;
|
|
91
|
+
bottom: 0;
|
|
92
|
+
left: 0;
|
|
93
|
+
width: calc(100% / var(--segment-count));
|
|
94
|
+
border-radius: 1rem;
|
|
95
|
+
z-index: 1;
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
transform: translate3d(0%, 0, 0);
|
|
98
|
+
transition:
|
|
99
|
+
transform 0.5s cubic-bezier(0.37, 1.95, 0.66, 0.56),
|
|
100
|
+
background 0.4s ease-in-out,
|
|
101
|
+
box-shadow 0.4s ease-in-out;
|
|
102
|
+
background: linear-gradient(135deg, #c0c0c055, #e0e0e0);
|
|
103
|
+
box-shadow:
|
|
104
|
+
0 0 18px rgba(192, 192, 192, 0.5),
|
|
105
|
+
0 0 10px rgba(255, 255, 255, 0.4) inset;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* 1 Silver */
|
|
109
|
+
.input:nth-of-type(1):checked ~ .glider {
|
|
110
|
+
transform: translate3d(0%, 0, 0);
|
|
111
|
+
background: linear-gradient(135deg, #c0c0c055, #e0e0e0);
|
|
112
|
+
box-shadow:
|
|
113
|
+
0 0 18px rgba(192, 192, 192, 0.5),
|
|
114
|
+
0 0 10px rgba(255, 255, 255, 0.4) inset;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* 2 Gold */
|
|
118
|
+
.input:nth-of-type(2):checked ~ .glider {
|
|
119
|
+
transform: translate3d(100%, 0, 0);
|
|
120
|
+
background: linear-gradient(135deg, #ffd70055, #ffcc00);
|
|
121
|
+
box-shadow:
|
|
122
|
+
0 0 18px rgba(255, 215, 0, 0.5),
|
|
123
|
+
0 0 10px rgba(255, 235, 150, 0.4) inset;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* 3 Platinum */
|
|
127
|
+
.input:nth-of-type(3):checked ~ .glider {
|
|
128
|
+
transform: translate3d(200%, 0, 0);
|
|
129
|
+
background: linear-gradient(135deg, #d0e7ff55, #a0d8ff);
|
|
130
|
+
box-shadow:
|
|
131
|
+
0 0 18px rgba(160, 216, 255, 0.5),
|
|
132
|
+
0 0 10px rgba(200, 240, 255, 0.4) inset;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* 4 Rose */
|
|
136
|
+
.input:nth-of-type(4):checked ~ .glider {
|
|
137
|
+
transform: translate3d(300%, 0, 0);
|
|
138
|
+
background: linear-gradient(135deg, #ffb6c155, #ff7eb3);
|
|
139
|
+
box-shadow:
|
|
140
|
+
0 0 18px rgba(255, 150, 180, 0.45),
|
|
141
|
+
0 0 10px rgba(255, 220, 235, 0.35) inset;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* 5 Emerald */
|
|
145
|
+
.input:nth-of-type(5):checked ~ .glider {
|
|
146
|
+
transform: translate3d(400%, 0, 0);
|
|
147
|
+
background: linear-gradient(135deg, #98fb9855, #3cb371);
|
|
148
|
+
box-shadow:
|
|
149
|
+
0 0 18px rgba(80, 200, 120, 0.45),
|
|
150
|
+
0 0 10px rgba(200, 255, 220, 0.35) inset;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* 6 Violet */
|
|
154
|
+
.input:nth-of-type(6):checked ~ .glider {
|
|
155
|
+
transform: translate3d(500%, 0, 0);
|
|
156
|
+
background: linear-gradient(135deg, #e6e6fa55, #b388ff);
|
|
157
|
+
box-shadow:
|
|
158
|
+
0 0 18px rgba(179, 136, 255, 0.5),
|
|
159
|
+
0 0 10px rgba(230, 220, 255, 0.4) inset;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* 7 Amber */
|
|
163
|
+
.input:nth-of-type(7):checked ~ .glider {
|
|
164
|
+
transform: translate3d(600%, 0, 0);
|
|
165
|
+
background: linear-gradient(135deg, #ffcc8055, #ff9933);
|
|
166
|
+
box-shadow:
|
|
167
|
+
0 0 18px rgba(255, 160, 80, 0.45),
|
|
168
|
+
0 0 10px rgba(255, 230, 200, 0.35) inset;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/* 8 Cyan */
|
|
172
|
+
.input:nth-of-type(8):checked ~ .glider {
|
|
173
|
+
transform: translate3d(700%, 0, 0);
|
|
174
|
+
background: linear-gradient(135deg, #80ffff55, #20b2aa);
|
|
175
|
+
box-shadow:
|
|
176
|
+
0 0 18px rgba(64, 200, 190, 0.45),
|
|
177
|
+
0 0 10px rgba(200, 255, 252, 0.35) inset;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/* 9+:与前几档区分,超出 8 项时仍可辨色 */
|
|
181
|
+
.input:nth-of-type(9):checked ~ .glider {
|
|
182
|
+
transform: translate3d(800%, 0, 0);
|
|
183
|
+
background: linear-gradient(135deg, #daa52055, #cd853f);
|
|
184
|
+
box-shadow:
|
|
185
|
+
0 0 18px rgba(205, 133, 63, 0.45),
|
|
186
|
+
0 0 10px rgba(255, 230, 200, 0.35) inset;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.input:nth-of-type(10):checked ~ .glider {
|
|
190
|
+
transform: translate3d(900%, 0, 0);
|
|
191
|
+
background: linear-gradient(135deg, #b0c4de55, #778899);
|
|
192
|
+
box-shadow:
|
|
193
|
+
0 0 18px rgba(119, 136, 153, 0.45),
|
|
194
|
+
0 0 10px rgba(220, 230, 240, 0.35) inset;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* 11–12:再两档区分色;更多分段需再扩展或接受与第 1 档同视觉未匹配(应极少见) */
|
|
198
|
+
.input:nth-of-type(11):checked ~ .glider {
|
|
199
|
+
transform: translate3d(1000%, 0, 0);
|
|
200
|
+
background: linear-gradient(135deg, #f5deb355, #daa520);
|
|
201
|
+
box-shadow:
|
|
202
|
+
0 0 18px rgba(218, 165, 32, 0.45),
|
|
203
|
+
0 0 10px rgba(255, 245, 220, 0.35) inset;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.input:nth-of-type(12):checked ~ .glider {
|
|
207
|
+
transform: translate3d(1100%, 0, 0);
|
|
208
|
+
background: linear-gradient(135deg, #dda0dd55, #9370db);
|
|
209
|
+
box-shadow:
|
|
210
|
+
0 0 18px rgba(147, 112, 219, 0.45),
|
|
211
|
+
0 0 10px rgba(240, 230, 255, 0.35) inset;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* 广告模式:只强化外框与底,不覆盖分段滑块配色(默认与暗色根一致) */
|
|
215
|
+
.rootAdGold {
|
|
216
|
+
background: linear-gradient(
|
|
217
|
+
165deg,
|
|
218
|
+
rgba(201, 162, 39, 0.12) 0%,
|
|
219
|
+
rgba(255, 255, 255, 0.05) 50%,
|
|
220
|
+
rgba(230, 195, 92, 0.08) 100%
|
|
221
|
+
);
|
|
222
|
+
border-color: rgba(230, 195, 92, 0.25);
|
|
223
|
+
box-shadow:
|
|
224
|
+
inset 1px 1px 4px rgba(255, 255, 255, 0.1),
|
|
225
|
+
inset -1px -1px 6px rgba(0, 0, 0, 0.35),
|
|
226
|
+
0 4px 16px rgba(201, 162, 39, 0.15);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:global(html[data-theme="light"]) .rootAdGold {
|
|
230
|
+
background: linear-gradient(
|
|
231
|
+
165deg,
|
|
232
|
+
rgba(255, 248, 220, 0.55) 0%,
|
|
233
|
+
rgba(255, 255, 255, 0.82) 45%,
|
|
234
|
+
rgba(255, 252, 235, 0.75) 100%
|
|
235
|
+
);
|
|
236
|
+
border-color: rgba(201, 162, 39, 0.35);
|
|
237
|
+
box-shadow:
|
|
238
|
+
inset 1px 1px 3px rgba(255, 255, 255, 0.95),
|
|
239
|
+
inset -1px -1px 4px rgba(201, 162, 39, 0.08),
|
|
240
|
+
0 2px 10px rgba(201, 162, 39, 0.12);
|
|
241
|
+
}
|
package/dist/es/index.d.ts
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
import 'antd/dist/reset.css';
|
|
2
|
+
export { default as AiChat } from './business/AiChat';
|
|
3
|
+
export { default as DrawerPageInfo } from './business/DrawerPageInfo';
|
|
4
|
+
export { default as Editor } from './business/Editor';
|
|
5
|
+
export { default as Empty } from './business/Empty';
|
|
6
|
+
export { default as ModCommonFilter } from './business/ModCommonFilter';
|
|
7
|
+
export { default as YkPorjectSelect } from './business/YkPorjectSelect';
|
|
8
|
+
export { default as Clock } from './components/Clock';
|
|
9
|
+
export { default as DebounceInput } from './components/DebounceInput';
|
|
10
|
+
export { default as MultipleSelect } from './components/MultipleSelect';
|
|
11
|
+
export { default as NumericInput } from './components/NumericInput';
|
|
12
|
+
export { default as RefreshButton } from './components/RefreshButton';
|
|
13
|
+
export { default as SearchWithHistory } from './components/SearchWithHistory';
|
|
14
|
+
export { default as TextWithInput } from './components/TextWithInput';
|
|
15
|
+
export { default as TextWithToolTip } from './components/TextWithToolTip';
|
|
16
|
+
export { default as TreeTransfer } from './components/TreeTransfer';
|
|
17
|
+
export type { DateRangeValue, YkDateRangePickerProps, YkDateRangePickerRef } from './components/YkDateRangePicker';
|
|
18
|
+
export { default as YkDateRangePicker } from './components/YkDateRangePicker';
|
|
19
|
+
export { default as YkRangeDateWithVS } from './components/YkRangeDateWithVS';
|
|
20
|
+
export { default as YkRangeTimeWithRecent } from './components/YkRangeTimeWithRecent';
|
|
21
|
+
export type { ArcCheckboxProps } from './creative/ArcCheckbox';
|
|
22
|
+
export { default as ArcCheckbox } from './creative/ArcCheckbox';
|
|
23
|
+
export { default as ButtonRadioWithInfo } from './creative/ButtonRadioWithInfo';
|
|
24
|
+
export { default as ButtonWithProgress } from './creative/ButtonWithProgress';
|
|
25
|
+
export type { GlassSegmentedRadioProps, GlassSegmentOption } from './creative/GlassSegmentedRadio';
|
|
26
|
+
export { default as GlassSegmentedRadio } from './creative/GlassSegmentedRadio';
|
|
27
|
+
export { default as FlexGrid } from './layout/FlexGrid';
|
|
28
|
+
export { default as YkContainer } from './layout/YkContainer';
|
|
29
|
+
export { default as YkDrawer } from './layout/YkDrawer';
|
|
30
|
+
export { default as InputTheme } from './Themes/InputTheme';
|
|
31
|
+
export { default as TableTheme } from './Themes/TableTheme';
|
|
2
32
|
export { default as LabelSelect } from './ui/LabelSelect';
|
|
3
33
|
export { default as LogicOperator } from './ui/LogicOperator';
|
|
4
34
|
export { default as YkButton } from './ui/YkButton';
|
|
@@ -15,29 +45,3 @@ export { default as YkStatistic } from './ui/YkStatistic';
|
|
|
15
45
|
export { default as YkSwitch } from './ui/YkSwitch';
|
|
16
46
|
export { default as YkTabs } from './ui/YkTabs';
|
|
17
47
|
export { default as YkTooltip } from './ui/YkTooltip';
|
|
18
|
-
export { default as DrawerPageInfo } from './business/DrawerPageInfo';
|
|
19
|
-
export { default as Editor } from './business/Editor';
|
|
20
|
-
export { default as Empty } from './business/Empty';
|
|
21
|
-
export { default as ModCommonFilter } from './business/ModCommonFilter';
|
|
22
|
-
export { default as YkPorjectSelect } from './business/YkPorjectSelect';
|
|
23
|
-
export { default as YkDateRangePicker } from './components/YkDateRangePicker';
|
|
24
|
-
export type { DateRangeValue, YkDateRangePickerProps, YkDateRangePickerRef } from './components/YkDateRangePicker';
|
|
25
|
-
export { default as YkRangeDateWithVS } from './components/YkRangeDateWithVS';
|
|
26
|
-
export { default as YkRangeTimeWithRecent } from './components/YkRangeTimeWithRecent';
|
|
27
|
-
export { default as ButtonRadioWithInfo } from './creative/ButtonRadioWithInfo';
|
|
28
|
-
export { default as ButtonWithProgress } from './creative/ButtonWithProgress';
|
|
29
|
-
export { default as InputTheme } from './Themes/InputTheme';
|
|
30
|
-
export { default as TableTheme } from './Themes/TableTheme';
|
|
31
|
-
export { default as FlexGrid } from './layout/FlexGrid';
|
|
32
|
-
export { default as YkContainer } from './layout/YkContainer';
|
|
33
|
-
export { default as YkDrawer } from './layout/YkDrawer';
|
|
34
|
-
export { default as Clock } from './components/Clock';
|
|
35
|
-
export { default as DebounceInput } from './components/DebounceInput';
|
|
36
|
-
export { default as MultipleSelect } from './components/MultipleSelect';
|
|
37
|
-
export { default as NumericInput } from './components/NumericInput';
|
|
38
|
-
export { default as RefreshButton } from './components/RefreshButton';
|
|
39
|
-
export { default as SearchWithHistory } from './components/SearchWithHistory';
|
|
40
|
-
export { default as TextWithInput } from './components/TextWithInput';
|
|
41
|
-
export { default as TextWithToolTip } from './components/TextWithToolTip';
|
|
42
|
-
export { default as TreeTransfer } from './components/TreeTransfer';
|
|
43
|
-
export { default as AiChat } from './business/AiChat';
|
package/dist/es/index.js
CHANGED
|
@@ -1,87 +1,91 @@
|
|
|
1
1
|
// src/index.tsx
|
|
2
2
|
import "antd/dist/reset.css";
|
|
3
|
-
import { default as default2 } from "./
|
|
4
|
-
import { default as default3 } from "./
|
|
5
|
-
import { default as default4 } from "./
|
|
6
|
-
import { default as default5 } from "./
|
|
7
|
-
import { default as default6 } from "./
|
|
8
|
-
import { default as default7 } from "./
|
|
9
|
-
import { default as default8 } from "./
|
|
10
|
-
import { default as default9 } from "./
|
|
11
|
-
import { default as default10 } from "./
|
|
12
|
-
import { default as default11 } from "./
|
|
13
|
-
import { default as default12 } from "./
|
|
14
|
-
import { default as default13 } from "./
|
|
15
|
-
import { default as default14 } from "./
|
|
16
|
-
import { default as default15 } from "./
|
|
17
|
-
import { default as default16 } from "./
|
|
18
|
-
import { default as default17 } from "./
|
|
19
|
-
import { default as default18 } from "./
|
|
20
|
-
import { default as default19 } from "./
|
|
21
|
-
import { default as default20 } from "./
|
|
22
|
-
import { default as default21 } from "./
|
|
23
|
-
import { default as default22 } from "./
|
|
24
|
-
import { default as default23 } from "./
|
|
25
|
-
import { default as default24 } from "./
|
|
26
|
-
import { default as default25 } from "./
|
|
27
|
-
import { default as default26 } from "./
|
|
28
|
-
import { default as default27 } from "./
|
|
29
|
-
import { default as default28 } from "./Themes/
|
|
30
|
-
import { default as default29 } from "./
|
|
31
|
-
import { default as default30 } from "./
|
|
32
|
-
import { default as default31 } from "./
|
|
33
|
-
import { default as default32 } from "./
|
|
34
|
-
import { default as default33 } from "./
|
|
35
|
-
import { default as default34 } from "./
|
|
36
|
-
import { default as default35 } from "./
|
|
37
|
-
import { default as default36 } from "./
|
|
38
|
-
import { default as default37 } from "./
|
|
39
|
-
import { default as default38 } from "./
|
|
40
|
-
import { default as default39 } from "./
|
|
41
|
-
import { default as default40 } from "./
|
|
42
|
-
import { default as default41 } from "./
|
|
43
|
-
import { default as default42 } from "./
|
|
3
|
+
import { default as default2 } from "./business/AiChat";
|
|
4
|
+
import { default as default3 } from "./business/DrawerPageInfo";
|
|
5
|
+
import { default as default4 } from "./business/Editor";
|
|
6
|
+
import { default as default5 } from "./business/Empty";
|
|
7
|
+
import { default as default6 } from "./business/ModCommonFilter";
|
|
8
|
+
import { default as default7 } from "./business/YkPorjectSelect";
|
|
9
|
+
import { default as default8 } from "./components/Clock";
|
|
10
|
+
import { default as default9 } from "./components/DebounceInput";
|
|
11
|
+
import { default as default10 } from "./components/MultipleSelect";
|
|
12
|
+
import { default as default11 } from "./components/NumericInput";
|
|
13
|
+
import { default as default12 } from "./components/RefreshButton";
|
|
14
|
+
import { default as default13 } from "./components/SearchWithHistory";
|
|
15
|
+
import { default as default14 } from "./components/TextWithInput";
|
|
16
|
+
import { default as default15 } from "./components/TextWithToolTip";
|
|
17
|
+
import { default as default16 } from "./components/TreeTransfer";
|
|
18
|
+
import { default as default17 } from "./components/YkDateRangePicker";
|
|
19
|
+
import { default as default18 } from "./components/YkRangeDateWithVS";
|
|
20
|
+
import { default as default19 } from "./components/YkRangeTimeWithRecent";
|
|
21
|
+
import { default as default20 } from "./creative/ArcCheckbox";
|
|
22
|
+
import { default as default21 } from "./creative/ButtonRadioWithInfo";
|
|
23
|
+
import { default as default22 } from "./creative/ButtonWithProgress";
|
|
24
|
+
import { default as default23 } from "./creative/GlassSegmentedRadio";
|
|
25
|
+
import { default as default24 } from "./layout/FlexGrid";
|
|
26
|
+
import { default as default25 } from "./layout/YkContainer";
|
|
27
|
+
import { default as default26 } from "./layout/YkDrawer";
|
|
28
|
+
import { default as default27 } from "./Themes/InputTheme";
|
|
29
|
+
import { default as default28 } from "./Themes/TableTheme";
|
|
30
|
+
import { default as default29 } from "./ui/LabelSelect";
|
|
31
|
+
import { default as default30 } from "./ui/LogicOperator";
|
|
32
|
+
import { default as default31 } from "./ui/YkButton";
|
|
33
|
+
import { default as default32 } from "./ui/YkCard";
|
|
34
|
+
import { default as default33 } from "./ui/YkCheckbox";
|
|
35
|
+
import { default as default34 } from "./ui/YkDescriptions";
|
|
36
|
+
import { default as default35 } from "./ui/YkPagination";
|
|
37
|
+
import { default as default36 } from "./ui/YkRadio";
|
|
38
|
+
import { default as default37 } from "./ui/YkRadioBtnSpecial";
|
|
39
|
+
import { default as default38 } from "./ui/YkSegmented";
|
|
40
|
+
import { default as default39 } from "./ui/YkSelect";
|
|
41
|
+
import { default as default40 } from "./ui/YkSpin";
|
|
42
|
+
import { default as default41 } from "./ui/YkStatistic";
|
|
43
|
+
import { default as default42 } from "./ui/YkSwitch";
|
|
44
|
+
import { default as default43 } from "./ui/YkTabs";
|
|
45
|
+
import { default as default44 } from "./ui/YkTooltip";
|
|
44
46
|
export {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
47
|
+
default2 as AiChat,
|
|
48
|
+
default20 as ArcCheckbox,
|
|
49
|
+
default21 as ButtonRadioWithInfo,
|
|
50
|
+
default22 as ButtonWithProgress,
|
|
51
|
+
default8 as Clock,
|
|
52
|
+
default9 as DebounceInput,
|
|
53
|
+
default3 as DrawerPageInfo,
|
|
54
|
+
default4 as Editor,
|
|
55
|
+
default5 as Empty,
|
|
56
|
+
default24 as FlexGrid,
|
|
57
|
+
default23 as GlassSegmentedRadio,
|
|
58
|
+
default27 as InputTheme,
|
|
59
|
+
default29 as LabelSelect,
|
|
60
|
+
default30 as LogicOperator,
|
|
61
|
+
default6 as ModCommonFilter,
|
|
62
|
+
default10 as MultipleSelect,
|
|
63
|
+
default11 as NumericInput,
|
|
64
|
+
default12 as RefreshButton,
|
|
65
|
+
default13 as SearchWithHistory,
|
|
66
|
+
default28 as TableTheme,
|
|
67
|
+
default14 as TextWithInput,
|
|
68
|
+
default15 as TextWithToolTip,
|
|
69
|
+
default16 as TreeTransfer,
|
|
70
|
+
default31 as YkButton,
|
|
71
|
+
default32 as YkCard,
|
|
72
|
+
default33 as YkCheckbox,
|
|
73
|
+
default25 as YkContainer,
|
|
74
|
+
default17 as YkDateRangePicker,
|
|
75
|
+
default34 as YkDescriptions,
|
|
76
|
+
default26 as YkDrawer,
|
|
77
|
+
default35 as YkPagination,
|
|
78
|
+
default7 as YkPorjectSelect,
|
|
79
|
+
default36 as YkRadio,
|
|
80
|
+
default37 as YkRadioBtnSpecial,
|
|
81
|
+
default18 as YkRangeDateWithVS,
|
|
82
|
+
default19 as YkRangeTimeWithRecent,
|
|
83
|
+
default38 as YkSegmented,
|
|
84
|
+
default39 as YkSelect,
|
|
85
|
+
default40 as YkSpin,
|
|
86
|
+
default41 as YkStatistic,
|
|
87
|
+
default42 as YkSwitch,
|
|
88
|
+
default43 as YkTabs,
|
|
89
|
+
default44 as YkTooltip
|
|
86
90
|
};
|
|
87
91
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["// Auto-inject Ant Design styles per project_specification_memory #6eafc28d\nimport 'antd/dist/reset.css';\n\n// Export
|
|
5
|
-
"mappings": ";AACA,OAAO;AAGP,SAAoB,WAAXA,
|
|
4
|
+
"sourcesContent": ["// Auto-inject Ant Design styles per project_specification_memory #6eafc28d\nimport 'antd/dist/reset.css';\n\n// Export business components\nexport { default as AiChat } from './business/AiChat';\nexport { default as DrawerPageInfo } from './business/DrawerPageInfo';\nexport { default as Editor } from './business/Editor';\nexport { default as Empty } from './business/Empty';\nexport { default as ModCommonFilter } from './business/ModCommonFilter';\nexport { default as YkPorjectSelect } from './business/YkPorjectSelect';\n// Export common components\nexport { default as Clock } from './components/Clock';\nexport { default as DebounceInput } from './components/DebounceInput';\nexport { default as MultipleSelect } from './components/MultipleSelect';\nexport { default as NumericInput } from './components/NumericInput';\nexport { default as RefreshButton } from './components/RefreshButton';\nexport { default as SearchWithHistory } from './components/SearchWithHistory';\nexport { default as TextWithInput } from './components/TextWithInput';\nexport { default as TextWithToolTip } from './components/TextWithToolTip';\nexport { default as TreeTransfer } from './components/TreeTransfer';\nexport type { DateRangeValue, YkDateRangePickerProps, YkDateRangePickerRef } from './components/YkDateRangePicker';\nexport { default as YkDateRangePicker } from './components/YkDateRangePicker';\nexport { default as YkRangeDateWithVS } from './components/YkRangeDateWithVS';\nexport { default as YkRangeTimeWithRecent } from './components/YkRangeTimeWithRecent';\n// Export creative components\nexport type { ArcCheckboxProps } from './creative/ArcCheckbox';\nexport { default as ArcCheckbox } from './creative/ArcCheckbox';\nexport { default as ButtonRadioWithInfo } from './creative/ButtonRadioWithInfo';\nexport { default as ButtonWithProgress } from './creative/ButtonWithProgress';\nexport type { GlassSegmentedRadioProps, GlassSegmentOption } from './creative/GlassSegmentedRadio';\nexport { default as GlassSegmentedRadio } from './creative/GlassSegmentedRadio';\n// Export layout\nexport { default as FlexGrid } from './layout/FlexGrid';\nexport { default as YkContainer } from './layout/YkContainer';\nexport { default as YkDrawer } from './layout/YkDrawer';\n// Export theme components\nexport { default as InputTheme } from './Themes/InputTheme';\nexport { default as TableTheme } from './Themes/TableTheme';\n// Export all UI components\nexport { default as LabelSelect } from './ui/LabelSelect';\nexport { default as LogicOperator } from './ui/LogicOperator';\nexport { default as YkButton } from './ui/YkButton';\nexport { default as YkCard } from './ui/YkCard';\nexport { default as YkCheckbox } from './ui/YkCheckbox';\nexport { default as YkDescriptions } from './ui/YkDescriptions';\nexport { default as YkPagination } from './ui/YkPagination';\nexport { default as YkRadio } from './ui/YkRadio';\nexport { default as YkRadioBtnSpecial } from './ui/YkRadioBtnSpecial';\nexport { default as YkSegmented } from './ui/YkSegmented';\nexport { default as YkSelect } from './ui/YkSelect';\nexport { default as YkSpin } from './ui/YkSpin';\nexport { default as YkStatistic } from './ui/YkStatistic';\nexport { default as YkSwitch } from './ui/YkSwitch';\nexport { default as YkTabs } from './ui/YkTabs';\nexport { default as YkTooltip } from './ui/YkTooltip';\n"],
|
|
5
|
+
"mappings": ";AACA,OAAO;AAGP,SAAoB,WAAXA,gBAAyB;AAClC,SAAoB,WAAXA,gBAAiC;AAC1C,SAAoB,WAAXA,gBAAyB;AAClC,SAAoB,WAAXA,gBAAwB;AACjC,SAAoB,WAAXA,gBAAkC;AAC3C,SAAoB,WAAXA,gBAAkC;AAE3C,SAAoB,WAAXA,gBAAwB;AACjC,SAAoB,WAAXA,gBAAgC;AACzC,SAAoB,WAAXA,iBAAiC;AAC1C,SAAoB,WAAXA,iBAA+B;AACxC,SAAoB,WAAXA,iBAAgC;AACzC,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAAgC;AACzC,SAAoB,WAAXA,iBAAkC;AAC3C,SAAoB,WAAXA,iBAA+B;AAExC,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAAwC;AAGjD,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAsC;AAC/C,SAAoB,WAAXA,iBAAqC;AAE9C,SAAoB,WAAXA,iBAAsC;AAE/C,SAAoB,WAAXA,iBAA2B;AACpC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAA2B;AAEpC,SAAoB,WAAXA,iBAA6B;AACtC,SAAoB,WAAXA,iBAA6B;AAEtC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAAgC;AACzC,SAAoB,WAAXA,iBAA2B;AACpC,SAAoB,WAAXA,iBAAyB;AAClC,SAAoB,WAAXA,iBAA6B;AACtC,SAAoB,WAAXA,iBAAiC;AAC1C,SAAoB,WAAXA,iBAA+B;AACxC,SAAoB,WAAXA,iBAA0B;AACnC,SAAoB,WAAXA,iBAAoC;AAC7C,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAA2B;AACpC,SAAoB,WAAXA,iBAAyB;AAClC,SAAoB,WAAXA,iBAA8B;AACvC,SAAoB,WAAXA,iBAA2B;AACpC,SAAoB,WAAXA,iBAAyB;AAClC,SAAoB,WAAXA,iBAA4B;",
|
|
6
6
|
"names": ["default"]
|
|
7
7
|
}
|
package/dist/es/index.less
CHANGED
|
@@ -23,8 +23,10 @@
|
|
|
23
23
|
@import "../../src/components/YkDateRangePicker/index.module.less";
|
|
24
24
|
@import "../../src/components/YkRangeDateWithVS/index.module.less";
|
|
25
25
|
@import "../../src/components/YkRangeTimeWithRecent/index.module.less";
|
|
26
|
+
@import "../../src/creative/ArcCheckbox/index.module.less";
|
|
26
27
|
@import "../../src/creative/ButtonRadioWithInfo/index.less";
|
|
27
28
|
@import "../../src/creative/ButtonWithProgress/index.less";
|
|
29
|
+
@import "../../src/creative/GlassSegmentedRadio/index.module.less";
|
|
28
30
|
@import "../../src/layout/YkDrawer/index.module.less";
|
|
29
31
|
@import "../../src/ui/LogicOperator/index.module.less";
|
|
30
32
|
@import "../../src/ui/YkCard/index.module.less";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layout/FlexGrid/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import { Col, Flex, Row, RowProps } from 'antd';\nimport classNames from 'classnames';\nimport React from 'react';\n\n/** Col 在各断点下的 span(24 栅格),与 [Ant Design Grid](https://ant-design.antgroup.com/components/grid-cn) 一致 */\nexport type FlexGridColSpan = {\n xs?: number;\n sm?: number;\n md?: number;\n lg?: number;\n xl?: number;\n xxl?: number;\n};\n\nconst defaultColSpan: Required<FlexGridColSpan> = {\n /** <576px:每行 1 个 */\n xs: 24,\n /** ≥576px:每行 2 个 */\n sm: 12,\n /** ≥768px:每行 3 个 */\n md: 8,\n /** ≥992px:每行 4 个 */\n lg: 6,\n xl: 6,\n xxl: 6,\n};\n\nexport type FlexGridProps = {\n /** 每一子节点占一格;多个并列子元素时请使用数组或 Fragment 包一层 */\n children?: React.ReactNode;\n /** 同 antd Row `gutter`,默认 `[16, 16]` */\n gutter?: RowProps['gutter'];\n /** 覆盖默认断点 span;例如 `{ lg: 12 }` 可改为大屏每行 2 列 */\n colSpan?: FlexGridColSpan;\n /** 透传到 antd `Row`(勿再传 `children`) */\n rowProps?: Omit<RowProps, 'children'>;\n className?: string;\n style?: React.CSSProperties;\n};\n\n/**\n * 响应式弹性栅格:基于 antd `Row` / `Col`(24 栅格),大屏默认每行 4 格,随宽度递减为 3 / 2 / 1;\n * 格子内用 antd [Flex](https://ant-design.antgroup.com/components/flex-cn) 撑满宽度,便于卡片等同高布局。\n */\nconst FlexGrid: React.FC<FlexGridProps> = ({\n children = null,\n gutter = [16, 16],\n colSpan,\n rowProps,\n className,\n style,\n}) => {\n const span = { ...defaultColSpan, ...colSpan };\n const nodes = React.Children.toArray(children).filter((c) => c != null);\n\n return (\n <Row\n gutter={gutter}\n wrap\n align
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA,SAAS,KAAK,MAAM,
|
|
4
|
+
"sourcesContent": ["import { Col, Flex, Row, type RowProps } from 'antd';\nimport classNames from 'classnames';\nimport React from 'react';\n\n/** Col 在各断点下的 span(24 栅格),与 [Ant Design Grid](https://ant-design.antgroup.com/components/grid-cn) 一致 */\nexport type FlexGridColSpan = {\n xs?: number;\n sm?: number;\n md?: number;\n lg?: number;\n xl?: number;\n xxl?: number;\n};\n\nconst defaultColSpan: Required<FlexGridColSpan> = {\n /** <576px:每行 1 个 */\n xs: 24,\n /** ≥576px:每行 2 个 */\n sm: 12,\n /** ≥768px:每行 3 个 */\n md: 8,\n /** ≥992px:每行 4 个 */\n lg: 6,\n xl: 6,\n xxl: 6,\n};\n\nexport type FlexGridProps = {\n /** 每一子节点占一格;多个并列子元素时请使用数组或 Fragment 包一层 */\n children?: React.ReactNode;\n /** 同 antd Row `gutter`,默认 `[16, 16]` */\n gutter?: RowProps['gutter'];\n /** 覆盖默认断点 span;例如 `{ lg: 12 }` 可改为大屏每行 2 列 */\n colSpan?: FlexGridColSpan;\n /** 透传到 antd `Row`(勿再传 `children`) */\n rowProps?: Omit<RowProps, 'children'>;\n className?: string;\n style?: React.CSSProperties;\n};\n\n/**\n * 响应式弹性栅格:基于 antd `Row` / `Col`(24 栅格),大屏默认每行 4 格,随宽度递减为 3 / 2 / 1;\n * 格子内用 antd [Flex](https://ant-design.antgroup.com/components/flex-cn) 撑满宽度,便于卡片等同高布局。\n */\nconst FlexGrid: React.FC<FlexGridProps> = ({\n children = null,\n gutter = [16, 16],\n colSpan,\n rowProps,\n className,\n style,\n}) => {\n const span = { ...defaultColSpan, ...colSpan };\n const nodes = React.Children.toArray(children).filter((c) => c != null);\n\n return (\n <Row\n gutter={gutter}\n wrap\n align='stretch'\n className={classNames('yoka-flex-grid', className)}\n style={style}\n {...rowProps}\n >\n {nodes.map((child, index) => {\n const key = React.isValidElement(child) && child.key != null ? String(child.key) : `flex-grid-${index}`;\n return (\n <Col key={key} xs={span.xs} sm={span.sm} md={span.md} lg={span.lg} xl={span.xl} xxl={span.xxl}>\n <Flex vertical style={{ width: '100%', minHeight: '100%' }} className='yoka-flex-grid-cell'>\n {child}\n </Flex>\n </Col>\n );\n })}\n </Row>\n );\n};\n\nexport default React.memo(FlexGrid);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA,SAAS,KAAK,MAAM,WAA0B;AAC9C,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAYlB,IAAM,iBAA4C;AAAA;AAAA,EAEhD,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,KAAK;AACP;AAmBA,IAAM,WAAoC,CAAC;AAAA,EACzC,WAAW;AAAA,EACX,SAAS,CAAC,IAAI,EAAE;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,OAAO,kCAAK,iBAAmB;AACrC,QAAM,QAAQ,MAAM,SAAS,QAAQ,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI;AAEtE,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAI;AAAA,MACJ,OAAM;AAAA,MACN,WAAW,WAAW,kBAAkB,SAAS;AAAA,MACjD;AAAA,OACI;AAAA,IAEH,MAAM,IAAI,CAAC,OAAO,UAAU;AAC3B,YAAM,MAAM,MAAM,eAAe,KAAK,KAAK,MAAM,OAAO,OAAO,OAAO,MAAM,GAAG,IAAI,aAAa;AAChG,aACE,oCAAC,OAAI,KAAU,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,IAAI,KAAK,IAAI,KAAK,KAAK,OACxF,oCAAC,QAAK,UAAQ,MAAC,OAAO,EAAE,OAAO,QAAQ,WAAW,OAAO,GAAG,WAAU,yBACnE,KACH,CACF;AAAA,IAEJ,CAAC;AAAA,EACH;AAEJ;AAEA,IAAO,mBAAQ,MAAM,KAAK,QAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layout/YkContainer/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import classNames from 'classnames';\nimport React from 'react';\n\nexport type YkContainerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {\n /** 页头左侧标题,字号 18px、颜色 #3b82fe;存在 `headerLeft` 时不展示 */\n title?: React.ReactNode;\n /** 自定义页头左侧,优先级高于 `title` */\n headerLeft?: React.ReactNode;\n /** 页头右侧插槽 */\n headerRight?: React.ReactNode;\n /** 是否展示页头,默认 true */\n showHeader?: boolean;\n};\n\nconst headerBarStyle: React.CSSProperties = {\n position: 'sticky',\n top: 0,\n zIndex: 10,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 12,\n minHeight: 60,\n padding: '10px 20px',\n boxSizing: 'border-box',\n background: '#fff',\n};\n\nconst titleStyle: React.CSSProperties = {\n margin: 0,\n fontSize: 18,\n fontWeight: 600,\n lineHeight: '24px',\n color: '#3b82fe',\n};\n\n/**\n * 页面内容区布局容器(语义上类似 Pro PageContainer 的内容包裹层):\n * 顶部可选固定(sticky)页头,左右插槽;下方区域左右与底部留白 10px、顶部与页头间距 10px;\n * 子元素纵向排列,间距 10px。\n */\nconst YkContainer = React.forwardRef<HTMLDivElement, YkContainerProps>(\n ({ className, style, children, title, headerLeft, headerRight, showHeader = true, ...rest }, ref) => (\n <div\n ref={ref}\n className={classNames('yoka-container', className)}\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: 10,\n padding: '0 10px 10px',\n boxSizing: 'border-box',\n ...style,\n }}\n {...rest}\n >\n {showHeader ? (\n <header style={headerBarStyle} className
|
|
4
|
+
"sourcesContent": ["import classNames from 'classnames';\nimport React from 'react';\n\nexport type YkContainerProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {\n /** 页头左侧标题,字号 18px、颜色 #3b82fe;存在 `headerLeft` 时不展示 */\n title?: React.ReactNode;\n /** 自定义页头左侧,优先级高于 `title` */\n headerLeft?: React.ReactNode;\n /** 页头右侧插槽 */\n headerRight?: React.ReactNode;\n /** 是否展示页头,默认 true */\n showHeader?: boolean;\n};\n\nconst headerBarStyle: React.CSSProperties = {\n position: 'sticky',\n top: 0,\n zIndex: 10,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 12,\n minHeight: 60,\n padding: '10px 20px',\n boxSizing: 'border-box',\n background: '#fff',\n};\n\nconst titleStyle: React.CSSProperties = {\n margin: 0,\n fontSize: 18,\n fontWeight: 600,\n lineHeight: '24px',\n color: '#3b82fe',\n};\n\n/**\n * 页面内容区布局容器(语义上类似 Pro PageContainer 的内容包裹层):\n * 顶部可选固定(sticky)页头,左右插槽;下方区域左右与底部留白 10px、顶部与页头间距 10px;\n * 子元素纵向排列,间距 10px。\n */\nconst YkContainer = React.forwardRef<HTMLDivElement, YkContainerProps>(\n ({ className, style, children, title, headerLeft, headerRight, showHeader = true, ...rest }, ref) => (\n <div\n ref={ref}\n className={classNames('yoka-container', className)}\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: 10,\n padding: '0 10px 10px',\n boxSizing: 'border-box',\n ...style,\n }}\n {...rest}\n >\n {showHeader ? (\n <header style={headerBarStyle} className='yoka-yk-container-header'>\n <div style={{ flex: 1, minWidth: 0, display: 'flex', alignItems: 'center' }}>\n {headerLeft !== undefined && headerLeft !== null ? (\n headerLeft\n ) : title != null && title !== '' ? (\n <div style={titleStyle}>{title}</div>\n ) : null}\n </div>\n {headerRight ? (\n <div style={{ flexShrink: 0, display: 'flex', alignItems: 'center' }}>{headerRight}</div>\n ) : null}\n </header>\n ) : null}\n {children}\n </div>\n ),\n);\n\nYkContainer.displayName = 'YkContainer';\n\nexport default YkContainer;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAalB,IAAM,iBAAsC;AAAA,EAC1C,UAAU;AAAA,EACV,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,gBAAgB;AAAA,EAChB,KAAK;AAAA,EACL,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AAAA,EACX,YAAY;AACd;AAEA,IAAM,aAAkC;AAAA,EACtC,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,OAAO;AACT;AAOA,IAAM,cAAc,MAAM;AAAA,EACxB,CAAC,IAA4F,QAAK;AAAjG,iBAAE,aAAW,OAAO,UAAU,OAAO,YAAY,aAAa,aAAa,KA1C9E,IA0CG,IAAoF,iBAApF,IAAoF,CAAlF,aAAW,SAAO,YAAU,SAAO,cAAY,eAAa;AAC7D;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW,WAAW,kBAAkB,SAAS;AAAA,QACjD,OAAO;AAAA,UACL,SAAS;AAAA,UACT,eAAe;AAAA,UACf,KAAK;AAAA,UACL,SAAS;AAAA,UACT,WAAW;AAAA,WACR;AAAA,SAED;AAAA,MAEH,aACC,oCAAC,YAAO,OAAO,gBAAgB,WAAU,8BACvC,oCAAC,SAAI,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,QAAQ,YAAY,SAAS,KACvE,eAAe,UAAa,eAAe,OAC1C,aACE,SAAS,QAAQ,UAAU,KAC7B,oCAAC,SAAI,OAAO,cAAa,KAAM,IAC7B,IACN,GACC,cACC,oCAAC,SAAI,OAAO,EAAE,YAAY,GAAG,SAAS,QAAQ,YAAY,SAAS,KAAI,WAAY,IACjF,IACN,IACE;AAAA,MACH;AAAA,IACH;AAAA;AAEJ;AAEA,YAAY,cAAc;AAE1B,IAAO,sBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|