tntd 2.8.0-beta.5 → 2.8.0-beta.7
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/es/check-card/index.js +2 -3
- package/es/check-card/index.js.map +1 -1
- package/es/color-picker/ColorPicker.js +4 -6
- package/es/color-picker/ColorPicker.js.map +1 -1
- package/es/index.js +2 -0
- package/es/index.js.map +1 -1
- package/es/locale/en_US.js +3 -0
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +3 -0
- package/es/locale/zh_CN.js.map +1 -1
- package/es/page-container/index.js +13 -0
- package/es/page-container/index.js.map +1 -0
- package/es/page-container/index.less +38 -0
- package/es/page-loading/index.js +25 -0
- package/es/page-loading/index.js.map +1 -0
- package/es/page-loading/index.less +22 -0
- package/es/page-loading/loading.gif +0 -0
- package/es/table/table.js +1 -2
- package/es/table/table.js.map +1 -1
- package/es/table-container/index.less +1 -0
- package/es/tabs/tabs.js +4 -2
- package/es/tabs/tabs.js.map +1 -1
- package/es/tntd-cascader/AntdCascader/component/getIcons.js +7 -8
- package/es/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
- package/es/tntd-cascader/AntdCascader/index.js +4 -5
- package/es/tntd-cascader/AntdCascader/index.js.map +1 -1
- package/es/tntd-rc-select/_util/getIcons.js +7 -8
- package/es/tntd-rc-select/_util/getIcons.js.map +1 -1
- package/lib/check-card/index.js +1 -2
- package/lib/check-card/index.js.map +1 -1
- package/lib/color-picker/ColorPicker.d.ts.map +1 -1
- package/lib/color-picker/ColorPicker.js +2 -4
- package/lib/color-picker/ColorPicker.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -1
- package/lib/locale/default.d.ts +3 -0
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/en_US.d.ts +3 -0
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +3 -0
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +3 -0
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +3 -0
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/page-container/index.d.ts +4 -0
- package/lib/page-container/index.d.ts.map +1 -0
- package/lib/page-container/index.js +22 -0
- package/lib/page-container/index.js.map +1 -0
- package/lib/page-container/index.less +38 -0
- package/lib/{query-form/Field/Composition/Select.d.ts → page-loading/index.d.ts} +1 -1
- package/lib/page-loading/index.d.ts.map +1 -0
- package/lib/page-loading/index.js +30 -0
- package/lib/page-loading/index.js.map +1 -0
- package/lib/page-loading/index.less +22 -0
- package/lib/page-loading/loading.gif +0 -0
- package/lib/table/table.d.ts.map +1 -1
- package/lib/table/table.js +2 -3
- package/lib/table/table.js.map +1 -1
- package/lib/table-container/index.less +1 -0
- package/lib/tabs/tabs.d.ts.map +1 -1
- package/lib/tabs/tabs.js +3 -1
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +2 -3
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -1
- package/lib/tntd-cascader/AntdCascader/index.d.ts.map +1 -1
- package/lib/tntd-cascader/AntdCascader/index.js +1 -2
- package/lib/tntd-cascader/AntdCascader/index.js.map +1 -1
- package/lib/tntd-rc-select/_util/getIcons.js +2 -3
- package/lib/tntd-rc-select/_util/getIcons.js.map +1 -1
- package/package.json +2 -2
- package/es/alert/alert.js +0 -70
- package/es/alert/alert.js.map +0 -1
- package/es/alert/alert.less +0 -128
- package/es/button/button.less +0 -72
- package/es/checkbox/check.png +0 -0
- package/es/checkbox/checkbox.js +0 -48
- package/es/checkbox/checkbox.js.map +0 -1
- package/es/checkbox/checkbox.less +0 -69
- package/es/date-picker/DatePicker.js +0 -101
- package/es/date-picker/DatePicker.js.map +0 -1
- package/es/date-picker/index.less +0 -294
- package/es/drawer/index.less +0 -154
- package/es/form/form.less +0 -36
- package/es/grid/RowContext.js +0 -3
- package/es/grid/RowContext.js.map +0 -1
- package/es/grid/col.js +0 -103
- package/es/grid/col.js.map +0 -1
- package/es/grid/hooks/useBreakpoint.js +0 -18
- package/es/grid/hooks/useBreakpoint.js.map +0 -1
- package/es/grid/row.js +0 -154
- package/es/grid/row.js.map +0 -1
- package/es/grid/style/rtl.less +0 -69
- package/es/input-number/inputNumber.js +0 -29
- package/es/input-number/inputNumber.js.map +0 -1
- package/es/input-number/inputNumber.less +0 -12
- package/es/modal/index.less +0 -36
- package/es/notification/assets/index.js +0 -2
- package/es/notification/assets/index.js.map +0 -1
- package/es/notification/assets/svg-error-tip.js +0 -145
- package/es/notification/assets/svg-error-tip.js.map +0 -1
- package/es/notification/assets/svg-success-tip.js +0 -162
- package/es/notification/assets/svg-success-tip.js.map +0 -1
- package/es/notification/notification.js +0 -80
- package/es/notification/notification.js.map +0 -1
- package/es/notification/notification.less +0 -59
- package/es/popconfirm/index.less +0 -32
- package/es/popconfirm/popconfirm.js +0 -43
- package/es/popconfirm/popconfirm.js.map +0 -1
- package/es/popover/index.less +0 -57
- package/es/popover/popover.js +0 -34
- package/es/popover/popover.js.map +0 -1
- package/es/progress/progress.js +0 -132
- package/es/progress/progress.js.map +0 -1
- package/es/progress/progress.less +0 -82
- package/es/query-form/Field/Composition/FieldPopover.js +0 -284
- package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form/Field/Composition/Select.js +0 -108
- package/es/query-form/Field/Composition/Select.js.map +0 -1
- package/es/query-form/Field/Composition/index.js +0 -275
- package/es/query-form/Field/Composition/index.js.map +0 -1
- package/es/query-form/Field/Composition/index.less +0 -106
- package/es/query-form/Field/Composition/utils.js +0 -19
- package/es/query-form/Field/Composition/utils.js.map +0 -1
- package/es/radio/radio.js +0 -57
- package/es/radio/radio.js.map +0 -1
- package/es/radio/radio.less +0 -43
- package/es/steps/assets/background_left.svg +0 -12
- package/es/steps/assets/background_right.svg +0 -12
- package/es/steps/assets/horizontal_line.svg +0 -3
- package/es/steps/assets/vertical_line.svg +0 -3
- package/es/steps/stepStyle/icon.less +0 -51
- package/es/steps/stepStyle/progress-dot.less +0 -10
- package/es/steps/stepStyle/variables.less +0 -8
- package/es/steps/stepStyle/vertical.less +0 -41
- package/es/switch/index.less +0 -46
- package/es/tabs/tabs.less +0 -116
- package/es/tag/color.less +0 -43
- package/es/tag/tag.js +0 -171
- package/es/tag/tag.js.map +0 -1
- package/es/tag/tag.less +0 -193
- package/es/time-picker/TimePicker.js +0 -36
- package/es/time-picker/TimePicker.js.map +0 -1
- package/es/time-picker/index.less +0 -38
- package/es/tntd-action/Action.js +0 -66
- package/es/tntd-action/Action.js.map +0 -1
- package/es/tntd-action/index.less +0 -53
- package/es/tooltip/index.less +0 -29
- package/es/tooltip/tooltip.js +0 -33
- package/es/tooltip/tooltip.js.map +0 -1
- package/lib/alert/alert.d.ts +0 -12
- package/lib/alert/alert.d.ts.map +0 -1
- package/lib/alert/alert.js +0 -92
- package/lib/alert/alert.js.map +0 -1
- package/lib/alert/alert.less +0 -128
- package/lib/button/button.less +0 -72
- package/lib/checkbox/check.png +0 -0
- package/lib/checkbox/checkbox.d.ts +0 -16
- package/lib/checkbox/checkbox.d.ts.map +0 -1
- package/lib/checkbox/checkbox.js +0 -65
- package/lib/checkbox/checkbox.js.map +0 -1
- package/lib/checkbox/checkbox.less +0 -69
- package/lib/date-picker/DatePicker.d.ts +0 -21
- package/lib/date-picker/DatePicker.d.ts.map +0 -1
- package/lib/date-picker/DatePicker.js +0 -128
- package/lib/date-picker/DatePicker.js.map +0 -1
- package/lib/date-picker/index.less +0 -294
- package/lib/drawer/index.less +0 -154
- package/lib/form/form.less +0 -36
- package/lib/grid/RowContext.d.ts +0 -9
- package/lib/grid/RowContext.d.ts.map +0 -1
- package/lib/grid/RowContext.js +0 -9
- package/lib/grid/RowContext.js.map +0 -1
- package/lib/grid/col.d.ts +0 -29
- package/lib/grid/col.d.ts.map +0 -1
- package/lib/grid/col.js +0 -100
- package/lib/grid/col.js.map +0 -1
- package/lib/grid/hooks/useBreakpoint.d.ts +0 -4
- package/lib/grid/hooks/useBreakpoint.d.ts.map +0 -1
- package/lib/grid/hooks/useBreakpoint.js +0 -28
- package/lib/grid/hooks/useBreakpoint.js.map +0 -1
- package/lib/grid/row.d.ts +0 -21
- package/lib/grid/row.d.ts.map +0 -1
- package/lib/grid/row.js +0 -183
- package/lib/grid/row.js.map +0 -1
- package/lib/grid/style/rtl.less +0 -69
- package/lib/input-number/inputNumber.d.ts +0 -10
- package/lib/input-number/inputNumber.d.ts.map +0 -1
- package/lib/input-number/inputNumber.js +0 -48
- package/lib/input-number/inputNumber.js.map +0 -1
- package/lib/input-number/inputNumber.less +0 -12
- package/lib/modal/index.less +0 -36
- package/lib/notification/assets/index.d.ts +0 -3
- package/lib/notification/assets/index.d.ts.map +0 -1
- package/lib/notification/assets/index.js +0 -20
- package/lib/notification/assets/index.js.map +0 -1
- package/lib/notification/assets/svg-error-tip.d.ts +0 -4
- package/lib/notification/assets/svg-error-tip.d.ts.map +0 -1
- package/lib/notification/assets/svg-error-tip.js +0 -154
- package/lib/notification/assets/svg-error-tip.js.map +0 -1
- package/lib/notification/assets/svg-success-tip.d.ts +0 -4
- package/lib/notification/assets/svg-success-tip.d.ts.map +0 -1
- package/lib/notification/assets/svg-success-tip.js +0 -171
- package/lib/notification/assets/svg-success-tip.js.map +0 -1
- package/lib/notification/notification.d.ts +0 -9
- package/lib/notification/notification.d.ts.map +0 -1
- package/lib/notification/notification.js +0 -105
- package/lib/notification/notification.js.map +0 -1
- package/lib/notification/notification.less +0 -59
- package/lib/popconfirm/index.less +0 -32
- package/lib/popconfirm/popconfirm.d.ts +0 -8
- package/lib/popconfirm/popconfirm.d.ts.map +0 -1
- package/lib/popconfirm/popconfirm.js +0 -61
- package/lib/popconfirm/popconfirm.js.map +0 -1
- package/lib/popover/index.less +0 -57
- package/lib/popover/popover.d.ts +0 -14
- package/lib/popover/popover.d.ts.map +0 -1
- package/lib/popover/popover.js +0 -55
- package/lib/popover/popover.js.map +0 -1
- package/lib/progress/progress.d.ts +0 -12
- package/lib/progress/progress.d.ts.map +0 -1
- package/lib/progress/progress.js +0 -148
- package/lib/progress/progress.js.map +0 -1
- package/lib/progress/progress.less +0 -82
- package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -17
- package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.js +0 -319
- package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/Select.js +0 -132
- package/lib/query-form/Field/Composition/Select.js.map +0 -1
- package/lib/query-form/Field/Composition/index.d.ts +0 -14
- package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/index.js +0 -330
- package/lib/query-form/Field/Composition/index.js.map +0 -1
- package/lib/query-form/Field/Composition/index.less +0 -106
- package/lib/query-form/Field/Composition/utils.d.ts +0 -6
- package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/utils.js +0 -27
- package/lib/query-form/Field/Composition/utils.js.map +0 -1
- package/lib/radio/radio.d.ts +0 -17
- package/lib/radio/radio.d.ts.map +0 -1
- package/lib/radio/radio.js +0 -75
- package/lib/radio/radio.js.map +0 -1
- package/lib/radio/radio.less +0 -43
- package/lib/steps/assets/background_left.svg +0 -12
- package/lib/steps/assets/background_right.svg +0 -12
- package/lib/steps/assets/horizontal_line.svg +0 -3
- package/lib/steps/assets/vertical_line.svg +0 -3
- package/lib/steps/stepStyle/icon.less +0 -51
- package/lib/steps/stepStyle/progress-dot.less +0 -10
- package/lib/steps/stepStyle/variables.less +0 -8
- package/lib/steps/stepStyle/vertical.less +0 -41
- package/lib/switch/index.less +0 -46
- package/lib/tabs/tabs.less +0 -116
- package/lib/tag/color.less +0 -43
- package/lib/tag/tag.d.ts +0 -41
- package/lib/tag/tag.d.ts.map +0 -1
- package/lib/tag/tag.js +0 -183
- package/lib/tag/tag.js.map +0 -1
- package/lib/tag/tag.less +0 -193
- package/lib/time-picker/TimePicker.d.ts +0 -9
- package/lib/time-picker/TimePicker.d.ts.map +0 -1
- package/lib/time-picker/TimePicker.js +0 -55
- package/lib/time-picker/TimePicker.js.map +0 -1
- package/lib/time-picker/index.less +0 -38
- package/lib/tntd-action/Action.d.ts +0 -6
- package/lib/tntd-action/Action.d.ts.map +0 -1
- package/lib/tntd-action/Action.js +0 -86
- package/lib/tntd-action/Action.js.map +0 -1
- package/lib/tntd-action/index.less +0 -53
- package/lib/tooltip/index.less +0 -29
- package/lib/tooltip/tooltip.d.ts +0 -9
- package/lib/tooltip/tooltip.d.ts.map +0 -1
- package/lib/tooltip/tooltip.js +0 -53
- package/lib/tooltip/tooltip.js.map +0 -1
|
@@ -1,294 +0,0 @@
|
|
|
1
|
-
@import '../style/themes/index';
|
|
2
|
-
|
|
3
|
-
@datepicker-prefix-cls: ~'@{ant-prefix}-date-picker';
|
|
4
|
-
@calendar-prefix-cls: ~'@{ant-prefix}-calendar';
|
|
5
|
-
@calendar-timepicker-prefix-cls: ~'@{ant-prefix}-calendar-time-picker';
|
|
6
|
-
|
|
7
|
-
.@{calendar-prefix-cls}-picker-container{
|
|
8
|
-
.@{calendar-prefix-cls}{
|
|
9
|
-
margin-top: 42px;
|
|
10
|
-
.@{calendar-prefix-cls}-input-wrap{
|
|
11
|
-
display: none;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
.@{calendar-prefix-cls}-range{
|
|
15
|
-
margin-top: 42px;
|
|
16
|
-
.@{calendar-prefix-cls}-input-wrap,.@{calendar-prefix-cls}-range-middle{
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
.@{calendar-prefix-cls}-decade-panel,.@{calendar-prefix-cls}-year-panel,.@{calendar-prefix-cls}-month-panel{
|
|
20
|
-
top: 0
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.@{calendar-prefix-cls}-month-calendar,.@{calendar-prefix-cls}-week-number{
|
|
24
|
-
margin-top: 42px;
|
|
25
|
-
}
|
|
26
|
-
//.@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
|
|
27
|
-
// background-color: @white;
|
|
28
|
-
//}
|
|
29
|
-
.@{calendar-prefix-cls}:not(.@{calendar-prefix-cls}-range){
|
|
30
|
-
.@{calendar-prefix-cls}-selected-date .@{calendar-prefix-cls}-date{
|
|
31
|
-
background-color: @blue-6;
|
|
32
|
-
color: @white;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
//Picker
|
|
38
|
-
.@{calendar-prefix-cls}-picker{
|
|
39
|
-
input,.@{calendar-prefix-cls}-picker-input{
|
|
40
|
-
border-color: @border-color-secondary;
|
|
41
|
-
color: @text-color;
|
|
42
|
-
&:focus{
|
|
43
|
-
border-color: @blue-5;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
&:has(input:not([value=''])),&:hover {
|
|
47
|
-
.@{calendar-prefix-cls}-picker-icon{
|
|
48
|
-
color: @text-color-secondary;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
&:has(input[disabled]){
|
|
52
|
-
.@{calendar-prefix-cls}-picker-icon{
|
|
53
|
-
color: @disabled-color;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.@{calendar-prefix-cls}-picker-icon{
|
|
57
|
-
width: auto;
|
|
58
|
-
height: @font-size-lg;
|
|
59
|
-
font-size: @font-size-lg;
|
|
60
|
-
}
|
|
61
|
-
.@{calendar-prefix-cls}-picker-clear{
|
|
62
|
-
color: tint(@bg-color-spotilight, 50%);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
.@{datepicker-prefix-cls}{
|
|
66
|
-
&-fill{
|
|
67
|
-
.@{calendar-prefix-cls}-picker{
|
|
68
|
-
&-input {
|
|
69
|
-
&.@{ant-prefix}-input {
|
|
70
|
-
background-color: @fill-color-quaternary;
|
|
71
|
-
border-color: @fill-color-quaternary;
|
|
72
|
-
&-disabled {
|
|
73
|
-
border: none;
|
|
74
|
-
pointer-events: none;
|
|
75
|
-
background: @disabled-bg;
|
|
76
|
-
}
|
|
77
|
-
&:focus{
|
|
78
|
-
background-color: @white;
|
|
79
|
-
border-color: @blue-5;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
&:not([value='']):hover {
|
|
83
|
-
background-color: @white;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
//Calender
|
|
91
|
-
.@{calendar-prefix-cls}{
|
|
92
|
-
&-footer {
|
|
93
|
-
&-extra {
|
|
94
|
-
.@{ant-prefix}-tag{
|
|
95
|
-
color: @text-color;
|
|
96
|
-
border: none;
|
|
97
|
-
background-color: @white;
|
|
98
|
-
&:hover{
|
|
99
|
-
color: @blue-6;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
thead tr{
|
|
106
|
-
border-bottom: none;
|
|
107
|
-
}
|
|
108
|
-
table th{
|
|
109
|
-
background-color: @white;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
//RangePicker
|
|
114
|
-
.@{calendar-prefix-cls}-range{
|
|
115
|
-
.@{calendar-prefix-cls}-in-range-cell,
|
|
116
|
-
.@{calendar-prefix-cls}-selected-start-date,
|
|
117
|
-
.@{calendar-prefix-cls}-selected-end-date {
|
|
118
|
-
position: relative;
|
|
119
|
-
border-radius: 0;
|
|
120
|
-
> div {
|
|
121
|
-
position: relative;
|
|
122
|
-
z-index: 1;
|
|
123
|
-
}
|
|
124
|
-
&::before {
|
|
125
|
-
position: absolute;
|
|
126
|
-
top: 3px;
|
|
127
|
-
right: 0;
|
|
128
|
-
bottom: 3px;
|
|
129
|
-
left: 0;
|
|
130
|
-
display: block;
|
|
131
|
-
background: @item-active-bg;
|
|
132
|
-
border: 0;
|
|
133
|
-
border-radius: 0;
|
|
134
|
-
content: '';
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
.@{calendar-prefix-cls}-selected-start-date{
|
|
138
|
-
&::before{
|
|
139
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
140
|
-
}
|
|
141
|
-
&::after {
|
|
142
|
-
position: absolute;
|
|
143
|
-
bottom: -2px;
|
|
144
|
-
left: 16px;
|
|
145
|
-
display: block;
|
|
146
|
-
background: @blue-6;
|
|
147
|
-
border: 0;
|
|
148
|
-
border-radius: 50%;
|
|
149
|
-
width: 4px;
|
|
150
|
-
height: 4px;
|
|
151
|
-
content: '';
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
//ant-calendar-last-day-of-month
|
|
155
|
-
//ant-calendar-last-month-cell ant-calendar-last-day-of-month
|
|
156
|
-
.@{calendar-prefix-cls}-selected-end-date{
|
|
157
|
-
&::before{
|
|
158
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
.@{calendar-prefix-cls}-selected-start-date.@{calendar-prefix-cls}-selected-end-date{
|
|
162
|
-
&::before{
|
|
163
|
-
border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
tr .@{calendar-prefix-cls}-in-range-cell:first-child{
|
|
167
|
-
&::before{
|
|
168
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
tr .@{calendar-prefix-cls}-selected-end-date:first-child,
|
|
172
|
-
tr .@{calendar-prefix-cls}-selected-start-date:last-child{
|
|
173
|
-
&::before{
|
|
174
|
-
border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
tr .@{calendar-prefix-cls}-in-range-cell:last-child{
|
|
178
|
-
&::before{
|
|
179
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
.@{calendar-prefix-cls}-cell{
|
|
183
|
-
height: 38px;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
//MonthPanel
|
|
188
|
-
.@{calendar-prefix-cls}-month-panel-month {
|
|
189
|
-
border-radius: @border-radius-base;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
//WeekPicker
|
|
193
|
-
.@{calendar-prefix-cls}-week-number {
|
|
194
|
-
&-cell {
|
|
195
|
-
opacity: 1;
|
|
196
|
-
font-weight: normal;
|
|
197
|
-
color: @text-color-tertiary !important;
|
|
198
|
-
}
|
|
199
|
-
.@{calendar-prefix-cls}-body tr {
|
|
200
|
-
cursor: pointer;
|
|
201
|
-
transition: all 0.3s;
|
|
202
|
-
background: @white;
|
|
203
|
-
.@{calendar-prefix-cls}-date{
|
|
204
|
-
width: auto;
|
|
205
|
-
border-radius: 0;
|
|
206
|
-
font-weight: 500;
|
|
207
|
-
}
|
|
208
|
-
&:hover {
|
|
209
|
-
background: @white;
|
|
210
|
-
td:nth-child(2){
|
|
211
|
-
.@{calendar-prefix-cls}-date{
|
|
212
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
td:last-child{
|
|
216
|
-
.@{calendar-prefix-cls}-date{
|
|
217
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
.@{calendar-prefix-cls}-cell{
|
|
221
|
-
&::before{
|
|
222
|
-
top: 8px;
|
|
223
|
-
bottom: 8px;
|
|
224
|
-
}
|
|
225
|
-
.@{calendar-prefix-cls}-date{
|
|
226
|
-
background: @background-color-base;
|
|
227
|
-
&:hover{
|
|
228
|
-
background: @background-color-base;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
.@{calendar-prefix-cls}-selected-day{
|
|
232
|
-
background: @background-color-base;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
.@{calendar-prefix-cls}-week-number-cell{
|
|
236
|
-
background: @white;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
.@{calendar-prefix-cls}-selected-day .@{calendar-prefix-cls}-date,
|
|
240
|
-
.@{calendar-prefix-cls}-selected-day:hover .@{calendar-prefix-cls}-date {
|
|
241
|
-
color: @text-color;
|
|
242
|
-
background: transparent;
|
|
243
|
-
}
|
|
244
|
-
&.@{calendar-prefix-cls}-active-week {
|
|
245
|
-
background: transparent;
|
|
246
|
-
td:nth-child(2){
|
|
247
|
-
.@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
|
|
248
|
-
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
td:last-child{
|
|
252
|
-
.@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
|
|
253
|
-
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
.@{calendar-prefix-cls}-cell{
|
|
257
|
-
font-weight: bold;
|
|
258
|
-
//background: @primary-color;
|
|
259
|
-
.@{calendar-prefix-cls}-date{
|
|
260
|
-
color: @text-color-inverse;
|
|
261
|
-
background: @primary-color;
|
|
262
|
-
&:hover{
|
|
263
|
-
color: @text-color-inverse;
|
|
264
|
-
background: @primary-color;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
.@{calendar-prefix-cls}-selected-day{
|
|
268
|
-
background: @primary-color;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
.@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
|
|
273
|
-
//color: @text-color;
|
|
274
|
-
//font-weight: normal;
|
|
275
|
-
border-color: transparent;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
.@{calendar-prefix-cls}-cell{
|
|
279
|
-
height: 38px;
|
|
280
|
-
position: relative;
|
|
281
|
-
&::before {
|
|
282
|
-
position: absolute;
|
|
283
|
-
top: 3px;
|
|
284
|
-
right: 0;
|
|
285
|
-
bottom: 3px;
|
|
286
|
-
left: 0;
|
|
287
|
-
display: block;
|
|
288
|
-
border: 0;
|
|
289
|
-
border-radius: 0;
|
|
290
|
-
content: '';
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
package/lib/drawer/index.less
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
@drawer-prefix-cls: ~'@{ant-prefix}-drawer';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
.tnt-drawer.@{drawer-prefix-cls} {
|
|
5
|
-
&-top {
|
|
6
|
-
.@{drawer-prefix-cls}-wrapper-body {
|
|
7
|
-
margin-top: 48px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.@{drawer-prefix-cls}-content-wrapper {
|
|
11
|
-
height: 480px !important;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&-bottom {
|
|
16
|
-
.@{drawer-prefix-cls}-content-wrapper {
|
|
17
|
-
height: 480px !important;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.@{drawer-prefix-cls}-wrapper-body {
|
|
22
|
-
margin-top: 48px;
|
|
23
|
-
max-height: ~'calc(100vh - 50px)';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&-footer {
|
|
27
|
-
.@{drawer-prefix-cls}-header {
|
|
28
|
-
border-bottom: none;
|
|
29
|
-
position: absolute;
|
|
30
|
-
right: 0;
|
|
31
|
-
top: 0;
|
|
32
|
-
background: #fff;
|
|
33
|
-
width: 100%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.@{drawer-prefix-cls}-wrapper-body {
|
|
37
|
-
max-height: ~'calc(100vh - 98px)' !important;
|
|
38
|
-
margin-top: 48px !important;
|
|
39
|
-
margin-bottom: 48px !important;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.@{drawer-prefix-cls}-title {
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
font-weight: 600;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.@{drawer-prefix-cls}-close {
|
|
50
|
-
color: fade(@text-color, 50%);
|
|
51
|
-
width: 62px;
|
|
52
|
-
top: -4px;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
position: absolute;
|
|
56
|
-
top: -2px;
|
|
57
|
-
right: 0;
|
|
58
|
-
z-index: 10;
|
|
59
|
-
display: block;
|
|
60
|
-
width: 48px;
|
|
61
|
-
height: 48px;
|
|
62
|
-
padding: 0;
|
|
63
|
-
color: rgba(23, 35, 61, 0.8);
|
|
64
|
-
font-weight: 700;
|
|
65
|
-
font-size: 20px;
|
|
66
|
-
font-style: normal;
|
|
67
|
-
line-height: 56px;
|
|
68
|
-
text-align: center;
|
|
69
|
-
text-transform: none;
|
|
70
|
-
text-decoration: none;
|
|
71
|
-
background: transparent;
|
|
72
|
-
border: 0;
|
|
73
|
-
outline: 0;
|
|
74
|
-
cursor: pointer;
|
|
75
|
-
transition: color 0.3s;
|
|
76
|
-
text-rendering: auto;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
.@{drawer-prefix-cls}-contain-closable {
|
|
81
|
-
.@{drawer-prefix-cls}-header {
|
|
82
|
-
padding: 12px 36px 12px 20px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&-right {
|
|
87
|
-
.@{drawer-prefix-cls}-content {
|
|
88
|
-
border-radius: @border-radius-base 0px 0px @border-radius-base;
|
|
89
|
-
background: #F8F9FB;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&-left {
|
|
94
|
-
.@{drawer-prefix-cls}-content {
|
|
95
|
-
border-radius: 0px @border-radius-base @border-radius-base 0px;
|
|
96
|
-
background: #F8F9FB;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&-top {
|
|
101
|
-
.@{drawer-prefix-cls}-content {
|
|
102
|
-
border-radius: 0px 0px @border-radius-base @border-radius-base;
|
|
103
|
-
background: #F8F9FB;
|
|
104
|
-
padding-top: 48px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.@{drawer-prefix-cls}-wrapper-body {
|
|
108
|
-
margin-top: 0px !important;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&-bottom {
|
|
113
|
-
.@{drawer-prefix-cls}-content {
|
|
114
|
-
border-radius: @border-radius-base @border-radius-base 0px 0px;
|
|
115
|
-
background: #F8F9FB;
|
|
116
|
-
padding-top: 48px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.@{drawer-prefix-cls}-wrapper-body {
|
|
120
|
-
margin-top: 0px !important;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
.@{drawer-prefix-cls}-header {
|
|
126
|
-
padding: 13px 24px;
|
|
127
|
-
border-bottom: none;
|
|
128
|
-
position: absolute;
|
|
129
|
-
right: 0;
|
|
130
|
-
top: 0;
|
|
131
|
-
width: 100%;
|
|
132
|
-
background: #fff;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.@{drawer-prefix-cls}-body {
|
|
136
|
-
padding: @padding-lg !important;
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
.@{drawer-prefix-cls}-wrapper-body {
|
|
142
|
-
|
|
143
|
-
.@{drawer-prefix-cls}-footer-style {
|
|
144
|
-
position: absolute;
|
|
145
|
-
right: 0;
|
|
146
|
-
bottom: 0;
|
|
147
|
-
width: 100%;
|
|
148
|
-
padding: 8px 24px;
|
|
149
|
-
background: #fff;
|
|
150
|
-
text-align: right;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
}
|
package/lib/form/form.less
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@form-prefix-cls: ~'@{ant-prefix}-form';
|
|
2
|
-
|
|
3
|
-
.tnt-form{
|
|
4
|
-
.@{form-prefix-cls}-item{
|
|
5
|
-
min-height: @input-height-base;
|
|
6
|
-
|
|
7
|
-
.@{form-prefix-cls}-item-required::before {
|
|
8
|
-
top: 2px;
|
|
9
|
-
position: relative;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-with-help {
|
|
13
|
-
margin-bottom: @form-item-margin-bottom;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&-control {
|
|
17
|
-
line-height: 1;
|
|
18
|
-
min-height: @input-height-base;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&-label {
|
|
22
|
-
line-height: @input-height-base;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-children{
|
|
26
|
-
line-height: calc(@input-height-base - 2px);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.@{form-prefix-cls}-explain,
|
|
31
|
-
.@{form-prefix-cls}-extra {
|
|
32
|
-
margin-top: 4px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
package/lib/grid/RowContext.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Context } from 'react';
|
|
2
|
-
export interface RowContextState {
|
|
3
|
-
gutter?: [number, number];
|
|
4
|
-
wrap?: boolean;
|
|
5
|
-
supportFlexGap?: boolean;
|
|
6
|
-
}
|
|
7
|
-
declare const RowContext: Context<RowContextState>;
|
|
8
|
-
export default RowContext;
|
|
9
|
-
//# sourceMappingURL=RowContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RowContext.d.ts","sourceRoot":"","sources":["../../src/grid/RowContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAGpC,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,QAAA,MAAM,UAAU,EAAE,OAAO,CAAC,eAAe,CAAqB,CAAA;AAE9D,eAAe,UAAU,CAAA"}
|
package/lib/grid/RowContext.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RowContext.js","sourceRoot":"","sources":["../../src/grid/RowContext.tsx"],"names":[],"mappings":";;AACA,iCAAqC;AAQrC,MAAM,UAAU,GAA6B,IAAA,qBAAa,EAAC,EAAE,CAAC,CAAA;AAE9D,kBAAe,UAAU,CAAA","sourcesContent":["import type { Context } from 'react'\nimport { createContext } from 'react'\n\nexport interface RowContextState {\n gutter?: [number, number]\n wrap?: boolean\n supportFlexGap?: boolean\n}\n\nconst RowContext: Context<RowContextState> = createContext({})\n\nexport default RowContext\n"]}
|
package/lib/grid/col.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare type ColSpanType = number | string;
|
|
3
|
-
declare type FlexType = number | 'none' | 'auto' | string;
|
|
4
|
-
export interface ColSize {
|
|
5
|
-
flex?: FlexType;
|
|
6
|
-
span?: ColSpanType;
|
|
7
|
-
order?: ColSpanType;
|
|
8
|
-
offset?: ColSpanType;
|
|
9
|
-
push?: ColSpanType;
|
|
10
|
-
pull?: ColSpanType;
|
|
11
|
-
}
|
|
12
|
-
export interface ColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
|
-
flex?: FlexType;
|
|
14
|
-
span?: ColSpanType;
|
|
15
|
-
order?: ColSpanType;
|
|
16
|
-
offset?: ColSpanType;
|
|
17
|
-
push?: ColSpanType;
|
|
18
|
-
pull?: ColSpanType;
|
|
19
|
-
xs?: ColSpanType | ColSize;
|
|
20
|
-
sm?: ColSpanType | ColSize;
|
|
21
|
-
md?: ColSpanType | ColSize;
|
|
22
|
-
lg?: ColSpanType | ColSize;
|
|
23
|
-
xl?: ColSpanType | ColSize;
|
|
24
|
-
xxl?: ColSpanType | ColSize;
|
|
25
|
-
prefixCls?: string;
|
|
26
|
-
}
|
|
27
|
-
declare const Col: React.ForwardRefExoticComponent<ColProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
-
export default Col;
|
|
29
|
-
//# sourceMappingURL=col.d.ts.map
|
package/lib/grid/col.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../src/grid/col.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,aAAK,WAAW,GAAG,MAAM,GAAG,MAAM,CAAA;AAElC,aAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAEjD,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,IAAI,CAAC,EAAE,WAAW,CAAA;CACnB;AAED,MAAM,WAAW,QAAS,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACpE,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,KAAK,CAAC,EAAE,WAAW,CAAA;IACnB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAA;IAC1B,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAA;IAC1B,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAA;IAC1B,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAA;IAC1B,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAA;IAC1B,GAAG,CAAC,EAAE,WAAW,GAAG,OAAO,CAAA;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAcD,QAAA,MAAM,GAAG,iFAuFP,CAAA;AAMF,eAAe,GAAG,CAAA"}
|
package/lib/grid/col.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _context = require("../_util/context");
|
|
10
|
-
var _RowContext = _interopRequireDefault(require("./RowContext"));
|
|
11
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
-
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; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
-
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); }
|
|
17
|
-
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); }
|
|
18
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
function parseFlex(flex) {
|
|
27
|
-
if (typeof flex === 'number') {
|
|
28
|
-
return "".concat(flex, " ").concat(flex, " auto");
|
|
29
|
-
}
|
|
30
|
-
if (/^\d+(\.\d+)?(px|em|rem|%)$/.test(flex)) {
|
|
31
|
-
return "0 0 ".concat(flex);
|
|
32
|
-
}
|
|
33
|
-
return flex;
|
|
34
|
-
}
|
|
35
|
-
var sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
|
|
36
|
-
var Col = React.forwardRef(function (props, ref) {
|
|
37
|
-
var _React$useContext = React.useContext(_context.ConfigContext),
|
|
38
|
-
getPrefixCls = _React$useContext.getPrefixCls,
|
|
39
|
-
direction = _React$useContext.direction;
|
|
40
|
-
var _React$useContext2 = React.useContext(_RowContext["default"]),
|
|
41
|
-
gutter = _React$useContext2.gutter,
|
|
42
|
-
wrap = _React$useContext2.wrap,
|
|
43
|
-
supportFlexGap = _React$useContext2.supportFlexGap;
|
|
44
|
-
var _props$prefixCls = props.prefixCls,
|
|
45
|
-
customizePrefixCls = _props$prefixCls === void 0 ? 'tnt-col' : _props$prefixCls,
|
|
46
|
-
span = props.span,
|
|
47
|
-
order = props.order,
|
|
48
|
-
offset = props.offset,
|
|
49
|
-
push = props.push,
|
|
50
|
-
pull = props.pull,
|
|
51
|
-
className = props.className,
|
|
52
|
-
children = props.children,
|
|
53
|
-
flex = props.flex,
|
|
54
|
-
style = props.style,
|
|
55
|
-
others = __rest(props, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]);
|
|
56
|
-
var prefixCls = getPrefixCls('col', customizePrefixCls);
|
|
57
|
-
var sizeClassObj = {};
|
|
58
|
-
sizes.forEach(function (size) {
|
|
59
|
-
var sizeProps = {};
|
|
60
|
-
var propSize = props[size];
|
|
61
|
-
if (typeof propSize === 'number') {
|
|
62
|
-
sizeProps.span = propSize;
|
|
63
|
-
} else if (_typeof(propSize) === 'object') {
|
|
64
|
-
sizeProps = propSize || {};
|
|
65
|
-
}
|
|
66
|
-
delete others[size];
|
|
67
|
-
sizeClassObj = Object.assign(Object.assign({}, sizeClassObj), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-").concat(size, "-").concat(sizeProps.span), sizeProps.span !== undefined), "".concat(prefixCls, "-").concat(size, "-order-").concat(sizeProps.order), sizeProps.order || sizeProps.order === 0), "".concat(prefixCls, "-").concat(size, "-offset-").concat(sizeProps.offset), sizeProps.offset || sizeProps.offset === 0), "".concat(prefixCls, "-").concat(size, "-push-").concat(sizeProps.push), sizeProps.push || sizeProps.push === 0), "".concat(prefixCls, "-").concat(size, "-pull-").concat(sizeProps.pull), sizeProps.pull || sizeProps.pull === 0), "".concat(prefixCls, "-rtl"), direction === 'rtl'));
|
|
68
|
-
});
|
|
69
|
-
var classes = (0, _classnames["default"])(prefixCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-").concat(span), span !== undefined), "".concat(prefixCls, "-order-").concat(order), order), "".concat(prefixCls, "-offset-").concat(offset), offset), "".concat(prefixCls, "-push-").concat(push), push), "".concat(prefixCls, "-pull-").concat(pull), pull), className, sizeClassObj);
|
|
70
|
-
var mergedStyle = {};
|
|
71
|
-
// Horizontal gutter use padding
|
|
72
|
-
if (gutter && gutter[0] > 0) {
|
|
73
|
-
var horizontalGutter = gutter[0] / 2;
|
|
74
|
-
mergedStyle.paddingLeft = horizontalGutter;
|
|
75
|
-
mergedStyle.paddingRight = horizontalGutter;
|
|
76
|
-
}
|
|
77
|
-
// Vertical gutter use padding when gap not support
|
|
78
|
-
if (gutter && gutter[1] > 0 && !supportFlexGap) {
|
|
79
|
-
var verticalGutter = gutter[1] / 2;
|
|
80
|
-
mergedStyle.paddingTop = verticalGutter;
|
|
81
|
-
mergedStyle.paddingBottom = verticalGutter;
|
|
82
|
-
}
|
|
83
|
-
if (flex) {
|
|
84
|
-
mergedStyle.flex = parseFlex(flex);
|
|
85
|
-
// Hack for Firefox to avoid size issue
|
|
86
|
-
// https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553
|
|
87
|
-
if (wrap === false && !mergedStyle.minWidth) {
|
|
88
|
-
mergedStyle.minWidth = 0;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return React.createElement("div", Object.assign({}, others, {
|
|
92
|
-
style: Object.assign(Object.assign({}, mergedStyle), style),
|
|
93
|
-
className: classes,
|
|
94
|
-
ref: ref
|
|
95
|
-
}), children);
|
|
96
|
-
});
|
|
97
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
98
|
-
Col.displayName = 'Col';
|
|
99
|
-
}
|
|
100
|
-
var _default = exports["default"] = Col;
|
package/lib/grid/col.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"col.js","sourceRoot":"","sources":["../../src/grid/col.tsx"],"names":[],"mappings":"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","sourcesContent":["import classNames from 'classnames'\nimport * as React from 'react'\nimport { ConfigContext } from '../_util/context'\nimport RowContext from './RowContext'\n\n// https://github.com/ant-design/ant-design/issues/14324\ntype ColSpanType = number | string\n\ntype FlexType = number | 'none' | 'auto' | string\n\nexport interface ColSize {\n flex?: FlexType\n span?: ColSpanType\n order?: ColSpanType\n offset?: ColSpanType\n push?: ColSpanType\n pull?: ColSpanType\n}\n\nexport interface ColProps extends React.HTMLAttributes<HTMLDivElement> {\n flex?: FlexType\n span?: ColSpanType\n order?: ColSpanType\n offset?: ColSpanType\n push?: ColSpanType\n pull?: ColSpanType\n xs?: ColSpanType | ColSize\n sm?: ColSpanType | ColSize\n md?: ColSpanType | ColSize\n lg?: ColSpanType | ColSize\n xl?: ColSpanType | ColSize\n xxl?: ColSpanType | ColSize\n prefixCls?: string\n}\n\nfunction parseFlex(flex: FlexType): string {\n if (typeof flex === 'number') {\n return `${flex} ${flex} auto`\n }\n\n if (/^\\d+(\\.\\d+)?(px|em|rem|%)$/.test(flex)) {\n return `0 0 ${flex}`\n }\n\n return flex\n}\nconst sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'] as const\nconst Col = React.forwardRef<HTMLDivElement, ColProps>((props, ref) => {\n const { getPrefixCls, direction } = React.useContext(ConfigContext)\n const { gutter, wrap, supportFlexGap } = React.useContext(RowContext)\n\n const {\n prefixCls: customizePrefixCls = 'tnt-col',\n span,\n order,\n offset,\n push,\n pull,\n className,\n children,\n flex,\n style,\n ...others\n } = props\n\n const prefixCls = getPrefixCls('col', customizePrefixCls)\n\n let sizeClassObj = {}\n sizes.forEach((size) => {\n let sizeProps: ColSize = {}\n const propSize = props[size]\n if (typeof propSize === 'number') {\n sizeProps.span = propSize\n } else if (typeof propSize === 'object') {\n sizeProps = propSize || {}\n }\n\n delete others[size]\n\n sizeClassObj = {\n ...sizeClassObj,\n [`${prefixCls}-${size}-${sizeProps.span}`]: sizeProps.span !== undefined,\n [`${prefixCls}-${size}-order-${sizeProps.order}`]: sizeProps.order || sizeProps.order === 0,\n [`${prefixCls}-${size}-offset-${sizeProps.offset}`]:\n sizeProps.offset || sizeProps.offset === 0,\n [`${prefixCls}-${size}-push-${sizeProps.push}`]: sizeProps.push || sizeProps.push === 0,\n [`${prefixCls}-${size}-pull-${sizeProps.pull}`]: sizeProps.pull || sizeProps.pull === 0,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n }\n })\n\n const classes = classNames(\n prefixCls,\n {\n [`${prefixCls}-${span}`]: span !== undefined,\n [`${prefixCls}-order-${order}`]: order,\n [`${prefixCls}-offset-${offset}`]: offset,\n [`${prefixCls}-push-${push}`]: push,\n [`${prefixCls}-pull-${pull}`]: pull,\n },\n className,\n sizeClassObj\n )\n\n const mergedStyle: React.CSSProperties = {}\n // Horizontal gutter use padding\n if (gutter && gutter[0] > 0) {\n const horizontalGutter = gutter[0] / 2\n mergedStyle.paddingLeft = horizontalGutter\n mergedStyle.paddingRight = horizontalGutter\n }\n\n // Vertical gutter use padding when gap not support\n if (gutter && gutter[1] > 0 && !supportFlexGap) {\n const verticalGutter = gutter[1] / 2\n mergedStyle.paddingTop = verticalGutter\n mergedStyle.paddingBottom = verticalGutter\n }\n\n if (flex) {\n mergedStyle.flex = parseFlex(flex)\n\n // Hack for Firefox to avoid size issue\n // https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553\n if (wrap === false && !mergedStyle.minWidth) {\n mergedStyle.minWidth = 0\n }\n }\n\n return (\n <div {...others} style={{ ...mergedStyle, ...style }} className={classes} ref={ref}>\n {children}\n </div>\n )\n})\n\nif (process.env.NODE_ENV !== 'production') {\n Col.displayName = 'Col'\n}\n\nexport default Col\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../../src/grid/hooks/useBreakpoint.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAG9D,iBAAS,aAAa,CAAC,eAAe,GAAE,OAAc,GAAG,SAAS,CAgBjE;AAED,eAAe,aAAa,CAAA"}
|