@qn-pandora/pandora-component 3.0.2 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +20 -0
- package/CHANGELOG.md +9 -1
- package/es/components/AutoComplete/style.css +25 -29
- package/es/components/Button/index.d.ts +0 -8
- package/es/components/Button/index.js +4 -4
- package/es/components/Button/style.css +100 -104
- package/es/components/Button/style.less +3 -14
- package/es/components/Card/style.css +28 -2
- package/es/components/CheckTransformList/Item/index.js +7 -3
- package/es/components/CheckTransformList/style.css +50 -21
- package/es/components/Checkbox/style.css +1 -1
- package/es/components/CheckboxList/index.d.ts +2 -0
- package/es/components/CheckboxList/index.js +2 -2
- package/es/components/CheckboxList/style.css +5 -3
- package/es/components/CheckboxList/style.less +4 -2
- package/es/components/Collapse/Panel/index.d.ts +8 -40
- package/es/components/Collapse/Panel/index.js +34 -45
- package/es/components/Collapse/index.d.ts +15 -20
- package/es/components/Collapse/index.js +44 -18
- package/es/components/Collapse/style.css +214 -0
- package/es/components/Collapse/style.less +57 -0
- package/es/components/CollapsiblePanel/style.css +4 -4
- package/es/components/CollapsiblePanel/style.less +4 -4
- package/es/components/DateTimePicker/Base/index.d.ts +1 -0
- package/es/components/DateTimePicker/Base/index.js +29 -13
- package/es/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -0
- package/es/components/DateTimePicker/Base/relativeTimePicker.js +16 -3
- package/es/components/DateTimePicker/Base/style.css +378 -49
- package/es/components/DateTimePicker/Base/style.less +37 -41
- package/es/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -0
- package/es/components/DateTimePicker/BaseMobile/Absolute/index.js +8 -3
- package/es/components/DateTimePicker/BaseMobile/index.d.ts +2 -0
- package/es/components/DateTimePicker/BaseMobile/index.js +7 -2
- package/es/components/DateTimePicker/BaseMobile/style.css +4 -4
- package/es/components/DateTimePicker/BaseMobile/style.less +4 -4
- package/es/components/DateTimePicker/Collapse/Panel/index.d.ts +41 -0
- package/es/components/DateTimePicker/Collapse/Panel/index.js +51 -0
- package/es/components/{Collapse → DateTimePicker/Collapse}/Panel/style.css +0 -0
- package/es/components/{Collapse → DateTimePicker/Collapse}/Panel/style.less +1 -1
- package/es/components/DateTimePicker/Collapse/index.d.ts +24 -0
- package/es/components/DateTimePicker/Collapse/index.js +42 -0
- package/es/components/DateTimePicker/DisplayInput/index.d.ts +1 -0
- package/es/components/DateTimePicker/DisplayInput/index.js +4 -1
- package/es/components/DateTimePicker/DisplayInput/style.css +47 -16
- package/es/components/DateTimePicker/constants.d.ts +5 -6
- package/es/components/DateTimePicker/constants.js +56 -50
- package/es/components/DateTimePicker/index.js +1 -1
- package/es/components/DateTimePicker/style.css +7 -7
- package/es/components/DateTimePicker/style.less +12 -10
- package/es/components/DateTimePicker/time.d.ts +2 -2
- package/es/components/DateTimePicker/time.js +17 -11
- package/es/components/DateTimePicker/transform.d.ts +4 -0
- package/es/components/DateTimePicker/transform.js +52 -0
- package/es/components/Drawer/style.css +45 -45
- package/es/components/Input/index.d.ts +1 -2
- package/es/components/Input/index.js +0 -2
- package/es/components/Input/style.css +47 -16
- package/es/components/InputNumber/index.d.ts +1 -8
- package/es/components/InputNumber/index.js +1 -35
- package/es/components/Menu/Option.d.ts +4 -0
- package/es/components/Menu/Option.js +2 -1
- package/es/components/Menu/index.d.ts +1 -1
- package/es/components/Menu/style.css +20 -10
- package/es/components/Menu/style.less +10 -0
- package/es/components/NameLimiter/style.css +2 -4
- package/es/components/NameLimiter/style.less +2 -4
- package/es/components/OptionList/OptionItem/style.css +2 -2
- package/es/components/OptionList/OptionItem/style.less +2 -2
- package/es/components/OptionList/style.css +2 -2
- package/es/components/RadioGroup/index.d.ts +53 -0
- package/es/components/RadioGroup/index.js +31 -0
- package/es/components/{SolidRadioGroup → RadioGroup}/style.css +43 -49
- package/es/components/RadioGroup/style.less +32 -0
- package/es/components/RangeInput/index.js +13 -7
- package/es/components/RangeInput/style.css +427 -27
- package/es/components/RemarkName/style.css +2 -4
- package/es/components/Selector/index.js +2 -2
- package/es/components/Selector/style.css +25 -29
- package/es/components/Selector/style.less +27 -28
- package/es/components/SolidRadioGroup/index.d.ts +3 -45
- package/es/components/SolidRadioGroup/index.js +13 -25
- package/es/components/Spin/style.css +0 -1
- package/es/components/Steps/ControlButton/index.js +8 -2
- package/es/components/Steps/style.css +8 -11
- package/es/components/Steps/style.less +9 -12
- package/es/components/Table/index.d.ts +1 -0
- package/es/components/Table/index.js +14 -5
- package/es/components/Table/style.css +91 -25
- package/es/components/Table/style.less +20 -20
- package/es/components/Tabs/style.css +29 -1
- package/es/components/Tabs/style.less +3 -1
- package/es/components/TagList/style.css +10 -10
- package/es/components/TagList/style.less +1 -1
- package/es/components/Timeline/TimelineItem/index.js +6 -4
- package/es/components/Timeline/TimelineItem/style.css +1 -2
- package/es/components/Timeline/TimelineItem/style.less +1 -2
- package/es/components/Transfer/List/index.js +10 -5
- package/es/components/Transfer/List/style.css +3 -0
- package/es/components/Transfer/List/style.less +4 -0
- package/es/components/Transfer/style.css +3 -0
- package/es/components/TreeSelector/style.css +64 -20
- package/es/components/TreeSelector/style.less +9 -7
- package/es/constants/language/check_transform_list/en.d.ts +2 -0
- package/es/constants/language/check_transform_list/en.js +5 -0
- package/es/constants/language/check_transform_list/type.d.ts +6 -0
- package/es/constants/language/check_transform_list/type.js +3 -0
- package/es/constants/language/check_transform_list/zh.d.ts +2 -0
- package/es/constants/language/check_transform_list/zh.js +5 -0
- package/es/constants/language/datetime/en.d.ts +2 -0
- package/es/constants/language/datetime/en.js +79 -0
- package/es/constants/language/datetime/type.d.ts +80 -0
- package/es/constants/language/datetime/type.js +3 -0
- package/es/constants/language/datetime/zh.d.ts +2 -0
- package/es/constants/language/datetime/zh.js +79 -0
- package/es/constants/language/en.d.ts +2 -0
- package/es/constants/language/en.js +14 -0
- package/es/constants/language/range_input/en.d.ts +2 -0
- package/es/constants/language/range_input/en.js +7 -0
- package/es/constants/language/range_input/type.d.ts +8 -0
- package/es/constants/language/range_input/type.js +3 -0
- package/es/constants/language/range_input/zh.d.ts +2 -0
- package/es/constants/language/range_input/zh.js +7 -0
- package/es/constants/language/steps/en.d.ts +2 -0
- package/es/constants/language/steps/en.js +4 -0
- package/es/constants/language/steps/type.d.ts +5 -0
- package/es/constants/language/steps/type.js +3 -0
- package/es/constants/language/steps/zh.d.ts +2 -0
- package/es/constants/language/steps/zh.js +4 -0
- package/es/constants/language/table/en.d.ts +2 -0
- package/es/constants/language/table/en.js +4 -0
- package/es/constants/language/table/type.d.ts +5 -0
- package/es/constants/language/table/type.js +3 -0
- package/es/constants/language/table/zh.d.ts +2 -0
- package/es/constants/language/table/zh.js +4 -0
- package/es/constants/language/transfer/en.d.ts +2 -0
- package/es/constants/language/transfer/en.js +4 -0
- package/es/constants/language/transfer/type.d.ts +5 -0
- package/es/constants/language/transfer/type.js +3 -0
- package/es/constants/language/transfer/zh.d.ts +2 -0
- package/es/constants/language/transfer/zh.js +4 -0
- package/es/constants/language/type.d.ts +15 -0
- package/es/constants/language/type.js +3 -0
- package/es/constants/language/zh.d.ts +2 -0
- package/es/constants/language/zh.js +14 -0
- package/es/index.css +3570 -2886
- package/es/index.d.ts +3 -2
- package/es/index.js +2 -1
- package/es/index.less +4 -5
- package/es/style/theme.less +9 -0
- package/es/utils/language.d.ts +1 -0
- package/es/utils/language.js +15 -0
- package/es/utils/languageLocale.d.ts +1 -0
- package/es/utils/languageLocale.js +9 -0
- package/lib/components/AutoComplete/style.css +25 -29
- package/lib/components/Button/index.d.ts +0 -8
- package/lib/components/Button/index.js +4 -4
- package/lib/components/Button/style.css +100 -104
- package/lib/components/Button/style.less +3 -14
- package/lib/components/Card/style.css +28 -2
- package/lib/components/CheckTransformList/Item/index.js +7 -3
- package/lib/components/CheckTransformList/style.css +50 -21
- package/lib/components/Checkbox/style.css +1 -1
- package/lib/components/CheckboxList/index.d.ts +2 -0
- package/lib/components/CheckboxList/index.js +2 -2
- package/lib/components/CheckboxList/style.css +5 -3
- package/lib/components/CheckboxList/style.less +4 -2
- package/lib/components/Collapse/Panel/index.d.ts +8 -40
- package/lib/components/Collapse/Panel/index.js +35 -46
- package/lib/components/Collapse/index.d.ts +15 -20
- package/lib/components/Collapse/index.js +47 -20
- package/lib/components/Collapse/style.css +214 -0
- package/lib/components/Collapse/style.less +57 -0
- package/lib/components/CollapsiblePanel/style.css +4 -4
- package/lib/components/CollapsiblePanel/style.less +4 -4
- package/lib/components/DateTimePicker/Base/index.d.ts +1 -0
- package/lib/components/DateTimePicker/Base/index.js +29 -13
- package/lib/components/DateTimePicker/Base/relativeTimePicker.d.ts +1 -0
- package/lib/components/DateTimePicker/Base/relativeTimePicker.js +16 -3
- package/lib/components/DateTimePicker/Base/style.css +378 -49
- package/lib/components/DateTimePicker/Base/style.less +37 -41
- package/lib/components/DateTimePicker/BaseMobile/Absolute/index.d.ts +1 -0
- package/lib/components/DateTimePicker/BaseMobile/Absolute/index.js +8 -3
- package/lib/components/DateTimePicker/BaseMobile/index.d.ts +2 -0
- package/lib/components/DateTimePicker/BaseMobile/index.js +7 -2
- package/lib/components/DateTimePicker/BaseMobile/style.css +4 -4
- package/lib/components/DateTimePicker/BaseMobile/style.less +4 -4
- package/lib/components/DateTimePicker/Collapse/Panel/index.d.ts +41 -0
- package/lib/components/DateTimePicker/Collapse/Panel/index.js +64 -0
- package/lib/components/{Collapse → DateTimePicker/Collapse}/Panel/style.css +0 -0
- package/lib/components/{Collapse → DateTimePicker/Collapse}/Panel/style.less +1 -1
- package/lib/components/DateTimePicker/Collapse/index.d.ts +24 -0
- package/lib/components/DateTimePicker/Collapse/index.js +54 -0
- package/lib/components/DateTimePicker/DisplayInput/index.d.ts +1 -0
- package/lib/components/DateTimePicker/DisplayInput/index.js +4 -1
- package/lib/components/DateTimePicker/DisplayInput/style.css +47 -16
- package/lib/components/DateTimePicker/constants.d.ts +5 -6
- package/lib/components/DateTimePicker/constants.js +56 -50
- package/lib/components/DateTimePicker/index.js +1 -1
- package/lib/components/DateTimePicker/style.css +7 -7
- package/lib/components/DateTimePicker/style.less +12 -10
- package/lib/components/DateTimePicker/time.d.ts +2 -2
- package/lib/components/DateTimePicker/time.js +16 -10
- package/lib/components/DateTimePicker/transform.d.ts +4 -0
- package/lib/components/DateTimePicker/transform.js +53 -0
- package/lib/components/Drawer/style.css +45 -45
- package/lib/components/Input/index.d.ts +1 -2
- package/lib/components/Input/index.js +0 -2
- package/lib/components/Input/style.css +47 -16
- package/lib/components/InputNumber/index.d.ts +1 -8
- package/lib/components/InputNumber/index.js +1 -38
- package/lib/components/Menu/Option.d.ts +4 -0
- package/lib/components/Menu/Option.js +2 -1
- package/lib/components/Menu/index.d.ts +1 -1
- package/lib/components/Menu/style.css +20 -10
- package/lib/components/Menu/style.less +10 -0
- package/lib/components/NameLimiter/style.css +2 -4
- package/lib/components/NameLimiter/style.less +2 -4
- package/lib/components/OptionList/OptionItem/style.css +2 -2
- package/lib/components/OptionList/OptionItem/style.less +2 -2
- package/lib/components/OptionList/style.css +2 -2
- package/lib/components/RadioGroup/index.d.ts +53 -0
- package/lib/components/RadioGroup/index.js +44 -0
- package/lib/components/{SolidRadioGroup → RadioGroup}/style.css +43 -49
- package/lib/components/RadioGroup/style.less +32 -0
- package/lib/components/RangeInput/index.js +13 -7
- package/lib/components/RangeInput/style.css +427 -27
- package/lib/components/RemarkName/style.css +2 -4
- package/lib/components/Selector/index.js +1 -1
- package/lib/components/Selector/style.css +25 -29
- package/lib/components/Selector/style.less +27 -28
- package/lib/components/SolidRadioGroup/index.d.ts +3 -45
- package/lib/components/SolidRadioGroup/index.js +13 -25
- package/lib/components/Spin/style.css +0 -1
- package/lib/components/Steps/ControlButton/index.js +8 -2
- package/lib/components/Steps/style.css +8 -11
- package/lib/components/Steps/style.less +9 -12
- package/lib/components/Table/index.d.ts +1 -0
- package/lib/components/Table/index.js +14 -5
- package/lib/components/Table/style.css +91 -25
- package/lib/components/Table/style.less +20 -20
- package/lib/components/Tabs/style.css +29 -1
- package/lib/components/Tabs/style.less +3 -1
- package/lib/components/TagList/style.css +10 -10
- package/lib/components/TagList/style.less +1 -1
- package/lib/components/Timeline/TimelineItem/index.js +6 -4
- package/lib/components/Timeline/TimelineItem/style.css +1 -2
- package/lib/components/Timeline/TimelineItem/style.less +1 -2
- package/lib/components/Transfer/List/index.js +9 -4
- package/lib/components/Transfer/List/style.css +3 -0
- package/lib/components/Transfer/List/style.less +4 -0
- package/lib/components/Transfer/style.css +3 -0
- package/lib/components/TreeSelector/style.css +64 -20
- package/lib/components/TreeSelector/style.less +9 -7
- package/lib/constants/language/check_transform_list/en.d.ts +2 -0
- package/lib/constants/language/check_transform_list/en.js +7 -0
- package/lib/constants/language/check_transform_list/type.d.ts +6 -0
- package/lib/constants/language/check_transform_list/type.js +5 -0
- package/lib/constants/language/check_transform_list/zh.d.ts +2 -0
- package/lib/constants/language/check_transform_list/zh.js +7 -0
- package/lib/constants/language/datetime/en.d.ts +2 -0
- package/lib/constants/language/datetime/en.js +81 -0
- package/lib/constants/language/datetime/type.d.ts +80 -0
- package/lib/constants/language/datetime/type.js +5 -0
- package/lib/constants/language/datetime/zh.d.ts +2 -0
- package/lib/constants/language/datetime/zh.js +81 -0
- package/lib/constants/language/en.d.ts +2 -0
- package/lib/constants/language/en.js +16 -0
- package/lib/constants/language/range_input/en.d.ts +2 -0
- package/lib/constants/language/range_input/en.js +9 -0
- package/lib/constants/language/range_input/type.d.ts +8 -0
- package/lib/constants/language/range_input/type.js +5 -0
- package/lib/constants/language/range_input/zh.d.ts +2 -0
- package/lib/constants/language/range_input/zh.js +9 -0
- package/lib/constants/language/steps/en.d.ts +2 -0
- package/lib/constants/language/steps/en.js +6 -0
- package/lib/constants/language/steps/type.d.ts +5 -0
- package/lib/constants/language/steps/type.js +5 -0
- package/lib/constants/language/steps/zh.d.ts +2 -0
- package/lib/constants/language/steps/zh.js +6 -0
- package/lib/constants/language/table/en.d.ts +2 -0
- package/lib/constants/language/table/en.js +6 -0
- package/lib/constants/language/table/type.d.ts +5 -0
- package/lib/constants/language/table/type.js +5 -0
- package/lib/constants/language/table/zh.d.ts +2 -0
- package/lib/constants/language/table/zh.js +6 -0
- package/lib/constants/language/transfer/en.d.ts +2 -0
- package/lib/constants/language/transfer/en.js +6 -0
- package/lib/constants/language/transfer/type.d.ts +5 -0
- package/lib/constants/language/transfer/type.js +5 -0
- package/lib/constants/language/transfer/zh.d.ts +2 -0
- package/lib/constants/language/transfer/zh.js +6 -0
- package/lib/constants/language/type.d.ts +15 -0
- package/lib/constants/language/type.js +5 -0
- package/lib/constants/language/zh.d.ts +2 -0
- package/lib/constants/language/zh.js +16 -0
- package/lib/index.css +3637 -2953
- package/lib/index.d.ts +3 -2
- package/lib/index.js +3 -0
- package/lib/index.less +7 -8
- package/lib/style/theme.less +9 -0
- package/lib/utils/language.d.ts +1 -0
- package/lib/utils/language.js +21 -0
- package/lib/utils/languageLocale.d.ts +1 -0
- package/lib/utils/languageLocale.js +12 -0
- package/package.json +15 -41
- package/es/components/Collapse/stories/style.stories.css +0 -12
- package/es/components/Collapse/stories/style.stories.less +0 -7
- package/es/components/Input/NumberInput/index.d.ts +0 -29
- package/es/components/Input/NumberInput/index.js +0 -116
- package/es/components/InputNumber/style.css +0 -400
- package/es/components/InputNumber/style.less +0 -45
- package/es/components/SolidRadioGroup/style.less +0 -39
- package/lib/components/Collapse/stories/style.stories.css +0 -12
- package/lib/components/Collapse/stories/style.stories.less +0 -7
- package/lib/components/Input/NumberInput/index.d.ts +0 -29
- package/lib/components/Input/NumberInput/index.js +0 -121
- package/lib/components/InputNumber/style.css +0 -400
- package/lib/components/InputNumber/style.less +0 -45
- package/lib/components/SolidRadioGroup/style.less +0 -39
@@ -7,21 +7,17 @@
|
|
7
7
|
z-index: 1200;
|
8
8
|
width: 0%;
|
9
9
|
height: 100%;
|
10
|
-
-webkit-transition:
|
11
|
-
transition:
|
12
|
-
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s;
|
13
|
-
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), height 0s ease 0.3s, width 0s ease 0.3s, -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
14
|
-
}
|
15
|
-
.ant-drawer > * {
|
16
|
-
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
17
|
-
transition: -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
18
|
-
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
19
|
-
transition: transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0.3, 0.1, 1), -webkit-box-shadow 0.3s cubic-bezier(0.7, 0.3, 0.1, 1);
|
10
|
+
-webkit-transition: width 0s ease 0.3s, height 0s ease 0.3s;
|
11
|
+
transition: width 0s ease 0.3s, height 0s ease 0.3s;
|
20
12
|
}
|
21
13
|
.ant-drawer-content-wrapper {
|
22
14
|
position: absolute;
|
23
15
|
width: 100%;
|
24
16
|
height: 100%;
|
17
|
+
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
18
|
+
transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
19
|
+
transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
20
|
+
transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
25
21
|
}
|
26
22
|
.ant-drawer .ant-drawer-content {
|
27
23
|
width: 100%;
|
@@ -40,10 +36,10 @@
|
|
40
36
|
.ant-drawer-left.ant-drawer-open,
|
41
37
|
.ant-drawer-right.ant-drawer-open {
|
42
38
|
width: 100%;
|
43
|
-
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.
|
44
|
-
transition: -webkit-transform 0.3s cubic-bezier(0.
|
45
|
-
transition: transform 0.3s cubic-bezier(0.
|
46
|
-
transition: transform 0.3s cubic-bezier(0.
|
39
|
+
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
40
|
+
transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
41
|
+
transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
42
|
+
transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
47
43
|
}
|
48
44
|
.ant-drawer-left {
|
49
45
|
left: 0;
|
@@ -83,10 +79,10 @@
|
|
83
79
|
.ant-drawer-top.ant-drawer-open,
|
84
80
|
.ant-drawer-bottom.ant-drawer-open {
|
85
81
|
height: 100%;
|
86
|
-
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.
|
87
|
-
transition: -webkit-transform 0.3s cubic-bezier(0.
|
88
|
-
transition: transform 0.3s cubic-bezier(0.
|
89
|
-
transition: transform 0.3s cubic-bezier(0.
|
82
|
+
-webkit-transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
83
|
+
transition: -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
84
|
+
transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
85
|
+
transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
90
86
|
}
|
91
87
|
.ant-drawer-top {
|
92
88
|
top: 0;
|
@@ -115,8 +111,8 @@
|
|
115
111
|
opacity: 1;
|
116
112
|
-webkit-transition: none;
|
117
113
|
transition: none;
|
118
|
-
-webkit-animation: antdDrawerFadeIn 0.3s cubic-bezier(0.
|
119
|
-
animation: antdDrawerFadeIn 0.3s cubic-bezier(0.
|
114
|
+
-webkit-animation: antdDrawerFadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
115
|
+
animation: antdDrawerFadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
|
120
116
|
pointer-events: auto;
|
121
117
|
}
|
122
118
|
.ant-drawer-title {
|
@@ -135,12 +131,8 @@
|
|
135
131
|
border: 0;
|
136
132
|
}
|
137
133
|
.ant-drawer-close {
|
138
|
-
|
139
|
-
|
140
|
-
right: 0;
|
141
|
-
z-index: 10;
|
142
|
-
display: block;
|
143
|
-
padding: 20px;
|
134
|
+
display: inline-block;
|
135
|
+
margin-right: 12px;
|
144
136
|
color: rgba(0, 0, 0, 0.45);
|
145
137
|
font-weight: 700;
|
146
138
|
font-size: 16px;
|
@@ -162,22 +154,37 @@
|
|
162
154
|
color: rgba(0, 0, 0, 0.75);
|
163
155
|
text-decoration: none;
|
164
156
|
}
|
165
|
-
.ant-drawer-header-no-title .ant-drawer-close {
|
166
|
-
margin-right: var(--scroll-bar);
|
167
|
-
/* stylelint-disable-next-line function-calc-no-invalid */
|
168
|
-
padding-right: calc(20px - var(--scroll-bar));
|
169
|
-
}
|
170
157
|
.ant-drawer-header {
|
171
158
|
position: relative;
|
159
|
+
display: -webkit-box;
|
160
|
+
display: -ms-flexbox;
|
161
|
+
display: flex;
|
162
|
+
-webkit-box-align: center;
|
163
|
+
-ms-flex-align: center;
|
164
|
+
align-items: center;
|
165
|
+
-webkit-box-pack: justify;
|
166
|
+
-ms-flex-pack: justify;
|
167
|
+
justify-content: space-between;
|
172
168
|
padding: 16px 24px;
|
173
169
|
color: rgba(0, 0, 0, 0.65);
|
174
170
|
background: #ffffff;
|
175
171
|
border-bottom: 1px solid #e5e5e5;
|
176
172
|
border-radius: 2px 2px 0 0;
|
177
173
|
}
|
178
|
-
.ant-drawer-header-
|
179
|
-
|
180
|
-
|
174
|
+
.ant-drawer-header-title {
|
175
|
+
display: -webkit-box;
|
176
|
+
display: -ms-flexbox;
|
177
|
+
display: flex;
|
178
|
+
-webkit-box-align: center;
|
179
|
+
-ms-flex-align: center;
|
180
|
+
align-items: center;
|
181
|
+
-webkit-box-pack: justify;
|
182
|
+
-ms-flex-pack: justify;
|
183
|
+
justify-content: space-between;
|
184
|
+
}
|
185
|
+
.ant-drawer-header-close-only {
|
186
|
+
padding-bottom: 0;
|
187
|
+
border: none;
|
181
188
|
}
|
182
189
|
.ant-drawer-wrapper-body {
|
183
190
|
display: -webkit-box;
|
@@ -185,10 +192,8 @@
|
|
185
192
|
display: flex;
|
186
193
|
-webkit-box-orient: vertical;
|
187
194
|
-webkit-box-direction: normal;
|
188
|
-
-ms-flex-
|
189
|
-
flex-
|
190
|
-
-ms-flex-wrap: nowrap;
|
191
|
-
flex-wrap: nowrap;
|
195
|
+
-ms-flex-flow: column nowrap;
|
196
|
+
flex-flow: column nowrap;
|
192
197
|
width: 100%;
|
193
198
|
height: 100%;
|
194
199
|
}
|
@@ -216,15 +221,10 @@
|
|
216
221
|
height: 0;
|
217
222
|
background-color: rgba(0, 0, 0, 0.45);
|
218
223
|
opacity: 0;
|
219
|
-
filter: alpha(opacity=45);
|
220
224
|
-webkit-transition: opacity 0.3s linear, height 0s ease 0.3s;
|
221
225
|
transition: opacity 0.3s linear, height 0s ease 0.3s;
|
222
226
|
pointer-events: none;
|
223
227
|
}
|
224
|
-
.ant-drawer-open-content {
|
225
|
-
-webkit-box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
226
|
-
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
227
|
-
}
|
228
228
|
.ant-drawer .ant-picker-clear {
|
229
229
|
background: #ffffff;
|
230
230
|
}
|
@@ -248,8 +248,8 @@
|
|
248
248
|
direction: rtl;
|
249
249
|
}
|
250
250
|
.ant-drawer-rtl .ant-drawer-close {
|
251
|
-
right:
|
252
|
-
left:
|
251
|
+
margin-right: 0;
|
252
|
+
margin-left: 12px;
|
253
253
|
}
|
254
254
|
.ant-btn {
|
255
255
|
padding: 4px 15px;
|
@@ -6,7 +6,7 @@ export declare type TInputProps = Omit<InputProps, 'value' | 'onChange'> & {
|
|
6
6
|
};
|
7
7
|
declare function Input(props: TInputProps): JSX.Element;
|
8
8
|
declare namespace Input {
|
9
|
-
var DebounceInput: (props: Pick<InputProps, "type" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "size" | "prefixCls" | "list" | "step" | "pattern" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width" | "onPressEnter" | "addonBefore" | "addonAfter" | "suffix" | "allowClear" | "bordered"> & {
|
9
|
+
var DebounceInput: (props: Pick<InputProps, "type" | "onClick" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "disabled" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "size" | "prefixCls" | "list" | "step" | "pattern" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "readOnly" | "required" | "src" | "width" | "onPressEnter" | "addonBefore" | "addonAfter" | "suffix" | "allowClear" | "bordered" | "htmlSize"> & {
|
10
10
|
value?: string | undefined;
|
11
11
|
onChange?: ((value: string) => void) | undefined;
|
12
12
|
} & {
|
@@ -14,6 +14,5 @@ declare namespace Input {
|
|
14
14
|
}) => JSX.Element;
|
15
15
|
var Password: typeof import("./Password").Password;
|
16
16
|
var TextArea: typeof import("./TextArea").TextArea;
|
17
|
-
var NumberInput: typeof import("./NumberInput").default;
|
18
17
|
}
|
19
18
|
export default Input;
|
@@ -25,7 +25,6 @@ import { Input as AntdInput } from 'antd';
|
|
25
25
|
import debounceWrapper from '../../hoc/debounce';
|
26
26
|
import { Password } from './Password';
|
27
27
|
import { TextArea } from './TextArea';
|
28
|
-
import NumberInput from './NumberInput';
|
29
28
|
var useCallback = React.useCallback;
|
30
29
|
function Input(props) {
|
31
30
|
var onChange = props.onChange, restProps = __rest(props, ["onChange"]);
|
@@ -39,5 +38,4 @@ function Input(props) {
|
|
39
38
|
Input.DebounceInput = debounceWrapper(Input);
|
40
39
|
Input.Password = Password;
|
41
40
|
Input.TextArea = TextArea;
|
42
|
-
Input.NumberInput = NumberInput;
|
43
41
|
export default Input;
|
@@ -17,6 +17,7 @@
|
|
17
17
|
border-radius: 2px;
|
18
18
|
-webkit-transition: all 0.3s;
|
19
19
|
transition: all 0.3s;
|
20
|
+
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
20
21
|
display: -webkit-inline-box;
|
21
22
|
display: -ms-inline-flexbox;
|
22
23
|
display: inline-flex;
|
@@ -26,12 +27,20 @@
|
|
26
27
|
}
|
27
28
|
.ant-input-affix-wrapper::-webkit-input-placeholder {
|
28
29
|
color: #bfbfbf;
|
30
|
+
-webkit-user-select: none;
|
31
|
+
user-select: none;
|
29
32
|
}
|
30
33
|
.ant-input-affix-wrapper::-ms-input-placeholder {
|
31
34
|
color: #bfbfbf;
|
35
|
+
-ms-user-select: none;
|
36
|
+
user-select: none;
|
32
37
|
}
|
33
38
|
.ant-input-affix-wrapper::placeholder {
|
34
39
|
color: #bfbfbf;
|
40
|
+
-webkit-user-select: none;
|
41
|
+
-moz-user-select: none;
|
42
|
+
-ms-user-select: none;
|
43
|
+
user-select: none;
|
35
44
|
}
|
36
45
|
.ant-input-affix-wrapper:placeholder-shown {
|
37
46
|
text-overflow: ellipsis;
|
@@ -46,11 +55,11 @@
|
|
46
55
|
}
|
47
56
|
.ant-input-affix-wrapper:focus,
|
48
57
|
.ant-input-affix-wrapper-focused {
|
49
|
-
border-color: #
|
58
|
+
border-color: #9ca0a6;
|
59
|
+
-webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
60
|
+
box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
50
61
|
border-right-width: 1px !important;
|
51
62
|
outline: 0;
|
52
|
-
-webkit-box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
53
|
-
box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
54
63
|
}
|
55
64
|
.ant-input-rtl .ant-input-affix-wrapper:focus,
|
56
65
|
.ant-input-rtl .ant-input-affix-wrapper-focused {
|
@@ -60,6 +69,9 @@
|
|
60
69
|
.ant-input-affix-wrapper-disabled {
|
61
70
|
color: rgba(0, 0, 0, 0.25);
|
62
71
|
background-color: #f5f5f5;
|
72
|
+
border-color: #bfbfbf;
|
73
|
+
-webkit-box-shadow: none;
|
74
|
+
box-shadow: none;
|
63
75
|
cursor: not-allowed;
|
64
76
|
opacity: 1;
|
65
77
|
}
|
@@ -70,6 +82,9 @@
|
|
70
82
|
.ant-input-affix-wrapper[disabled] {
|
71
83
|
color: rgba(0, 0, 0, 0.25);
|
72
84
|
background-color: #f5f5f5;
|
85
|
+
border-color: #bfbfbf;
|
86
|
+
-webkit-box-shadow: none;
|
87
|
+
box-shadow: none;
|
73
88
|
cursor: not-allowed;
|
74
89
|
opacity: 1;
|
75
90
|
}
|
@@ -159,7 +174,7 @@ textarea.ant-input-affix-wrapper {
|
|
159
174
|
margin-left: 4px;
|
160
175
|
}
|
161
176
|
.anticon.ant-input-clear-icon {
|
162
|
-
margin: 0
|
177
|
+
margin: 0;
|
163
178
|
color: rgba(0, 0, 0, 0.25);
|
164
179
|
font-size: 12px;
|
165
180
|
vertical-align: -1px;
|
@@ -176,8 +191,8 @@ textarea.ant-input-affix-wrapper {
|
|
176
191
|
.anticon.ant-input-clear-icon-hidden {
|
177
192
|
visibility: hidden;
|
178
193
|
}
|
179
|
-
.anticon.ant-input-clear-icon
|
180
|
-
margin
|
194
|
+
.anticon.ant-input-clear-icon-has-suffix {
|
195
|
+
margin: 0 4px;
|
181
196
|
}
|
182
197
|
.ant-input-affix-wrapper-textarea-with-clear-btn {
|
183
198
|
padding: 0 !important;
|
@@ -213,18 +228,27 @@ textarea.ant-input-affix-wrapper {
|
|
213
228
|
border-radius: 2px;
|
214
229
|
-webkit-transition: all 0.3s;
|
215
230
|
transition: all 0.3s;
|
231
|
+
/* stylelint-disable-next-line selector-no-vendor-prefix */
|
216
232
|
}
|
217
233
|
.ant-input::-moz-placeholder {
|
218
234
|
opacity: 1;
|
219
235
|
}
|
220
236
|
.ant-input::-webkit-input-placeholder {
|
221
237
|
color: #bfbfbf;
|
238
|
+
-webkit-user-select: none;
|
239
|
+
user-select: none;
|
222
240
|
}
|
223
241
|
.ant-input::-ms-input-placeholder {
|
224
242
|
color: #bfbfbf;
|
243
|
+
-ms-user-select: none;
|
244
|
+
user-select: none;
|
225
245
|
}
|
226
246
|
.ant-input::placeholder {
|
227
247
|
color: #bfbfbf;
|
248
|
+
-webkit-user-select: none;
|
249
|
+
-moz-user-select: none;
|
250
|
+
-ms-user-select: none;
|
251
|
+
user-select: none;
|
228
252
|
}
|
229
253
|
.ant-input:placeholder-shown {
|
230
254
|
text-overflow: ellipsis;
|
@@ -239,11 +263,11 @@ textarea.ant-input-affix-wrapper {
|
|
239
263
|
}
|
240
264
|
.ant-input:focus,
|
241
265
|
.ant-input-focused {
|
242
|
-
border-color: #
|
266
|
+
border-color: #9ca0a6;
|
267
|
+
-webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
268
|
+
box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
|
243
269
|
border-right-width: 1px !important;
|
244
270
|
outline: 0;
|
245
|
-
-webkit-box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
246
|
-
box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
|
247
271
|
}
|
248
272
|
.ant-input-rtl .ant-input:focus,
|
249
273
|
.ant-input-rtl .ant-input-focused {
|
@@ -253,6 +277,9 @@ textarea.ant-input-affix-wrapper {
|
|
253
277
|
.ant-input-disabled {
|
254
278
|
color: rgba(0, 0, 0, 0.25);
|
255
279
|
background-color: #f5f5f5;
|
280
|
+
border-color: #bfbfbf;
|
281
|
+
-webkit-box-shadow: none;
|
282
|
+
box-shadow: none;
|
256
283
|
cursor: not-allowed;
|
257
284
|
opacity: 1;
|
258
285
|
}
|
@@ -263,6 +290,9 @@ textarea.ant-input-affix-wrapper {
|
|
263
290
|
.ant-input[disabled] {
|
264
291
|
color: rgba(0, 0, 0, 0.25);
|
265
292
|
background-color: #f5f5f5;
|
293
|
+
border-color: #bfbfbf;
|
294
|
+
-webkit-box-shadow: none;
|
295
|
+
box-shadow: none;
|
266
296
|
cursor: not-allowed;
|
267
297
|
opacity: 1;
|
268
298
|
}
|
@@ -450,10 +480,6 @@ textarea.ant-input {
|
|
450
480
|
.ant-input-group-sm .ant-select-single .ant-select-selector {
|
451
481
|
height: 26px;
|
452
482
|
}
|
453
|
-
.ant-input-group .ant-input-affix-wrapper:not(:first-child) {
|
454
|
-
border-top-left-radius: 0;
|
455
|
-
border-bottom-left-radius: 0;
|
456
|
-
}
|
457
483
|
.ant-input-group .ant-input-affix-wrapper:not(:last-child) {
|
458
484
|
border-top-right-radius: 0;
|
459
485
|
border-bottom-right-radius: 0;
|
@@ -462,6 +488,11 @@ textarea.ant-input {
|
|
462
488
|
border-top-left-radius: 2px;
|
463
489
|
border-bottom-left-radius: 2px;
|
464
490
|
}
|
491
|
+
.ant-input-group .ant-input-affix-wrapper:not(:first-child),
|
492
|
+
.ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:first-child) {
|
493
|
+
border-top-left-radius: 0;
|
494
|
+
border-bottom-left-radius: 0;
|
495
|
+
}
|
465
496
|
.ant-input-group.ant-input-group-compact {
|
466
497
|
display: block;
|
467
498
|
}
|
@@ -716,9 +747,9 @@ textarea.ant-input {
|
|
716
747
|
.ant-input-textarea-rtl.ant-input-textarea-show-count::after {
|
717
748
|
text-align: left;
|
718
749
|
}
|
719
|
-
.ant-input-affix-wrapper-rtl .ant-input-clear-icon
|
720
|
-
margin-right:
|
721
|
-
margin-left:
|
750
|
+
.ant-input-affix-wrapper-rtl .ant-input-clear-icon-has-suffix {
|
751
|
+
margin-right: 0;
|
752
|
+
margin-left: 4px;
|
722
753
|
}
|
723
754
|
.ant-input-affix-wrapper-rtl .ant-input-clear-icon {
|
724
755
|
right: auto;
|
@@ -1,9 +1,2 @@
|
|
1
|
-
import
|
2
|
-
import { InputNumberProps } from 'antd/es/input-number';
|
3
|
-
export interface IInputNumberProps extends InputNumberProps {
|
4
|
-
addonAfter?: React.ReactNode;
|
5
|
-
addonBefore?: React.ReactNode;
|
6
|
-
className?: string;
|
7
|
-
}
|
8
|
-
declare function InputNumber(props: IInputNumberProps): JSX.Element;
|
1
|
+
import { InputNumber } from 'antd';
|
9
2
|
export default InputNumber;
|
@@ -1,36 +1,2 @@
|
|
1
|
-
|
2
|
-
__assign = Object.assign || function(t) {
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4
|
-
s = arguments[i];
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6
|
-
t[p] = s[p];
|
7
|
-
}
|
8
|
-
return t;
|
9
|
-
};
|
10
|
-
return __assign.apply(this, arguments);
|
11
|
-
};
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
13
|
-
var t = {};
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
15
|
-
t[p] = s[p];
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
19
|
-
t[p[i]] = s[p[i]];
|
20
|
-
}
|
21
|
-
return t;
|
22
|
-
};
|
23
|
-
import React from 'react';
|
24
|
-
import { InputNumber as AntInputNumber } from 'antd';
|
25
|
-
import { SDK_PREFIX } from '../../constants/style';
|
26
|
-
function InputNumber(props) {
|
27
|
-
var addonAfter = props.addonAfter, className = props.className, addonBefore = props.addonBefore, restProps = __rest(props, ["addonAfter", "className", "addonBefore"]);
|
28
|
-
var addonAfterNode = addonAfter ? (React.createElement("span", { className: SDK_PREFIX + "-input-number-group-addon" }, addonAfter)) : null;
|
29
|
-
var addonBeforeNode = addonBefore ? (React.createElement("span", { className: SDK_PREFIX + "-input-number-group-addon" }, addonBefore)) : null;
|
30
|
-
return (React.createElement("div", { className: SDK_PREFIX + "-input-number-group " + className },
|
31
|
-
addonBeforeNode,
|
32
|
-
React.createElement("div", { className: SDK_PREFIX + "-input-number-group-wrap" },
|
33
|
-
React.createElement(AntInputNumber, __assign({}, restProps))),
|
34
|
-
addonAfterNode));
|
35
|
-
}
|
1
|
+
import { InputNumber } from 'antd';
|
36
2
|
export default InputNumber;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { Menu as BaseMenu } from 'antd';
|
3
|
+
import { SDK_PREFIX } from '../../constants/style';
|
3
4
|
var Item = BaseMenu.Item, SubMenu = BaseMenu.SubMenu;
|
4
5
|
export default function Option(option) {
|
5
6
|
if (!option.children) {
|
6
7
|
if (option.weburl) {
|
7
8
|
return (React.createElement(Item, { key: option.key },
|
8
|
-
React.createElement("a", { href: option.weburl, target:
|
9
|
+
React.createElement("a", { className: SDK_PREFIX + "-menu-item-a", href: option.weburl, target: option.target || '_blank', rel: "noopener noreferrer" }, option.text)));
|
9
10
|
}
|
10
11
|
return React.createElement(Item, { key: option.key }, option.text);
|
11
12
|
}
|
@@ -13,7 +13,7 @@ export interface IMenuProps extends Omit<MenuProps, 'options' | 'mode'> {
|
|
13
13
|
}
|
14
14
|
export declare function Menue(props: React.PropsWithChildren<IMenuProps>): JSX.Element;
|
15
15
|
export declare namespace Menue {
|
16
|
-
var Divider
|
16
|
+
var Divider: React.FC<import("antd/lib/menu").MenuDividerProps>;
|
17
17
|
var Item: typeof import("antd/lib/menu/MenuItem").default;
|
18
18
|
var SubMenu: typeof import("antd/lib/menu/SubMenu").default;
|
19
19
|
var ItemGroup;
|
@@ -68,8 +68,8 @@
|
|
68
68
|
content: '';
|
69
69
|
}
|
70
70
|
.ant-menu.ant-menu-root:focus-visible {
|
71
|
-
-webkit-box-shadow: 0 0 0 2px
|
72
|
-
box-shadow: 0 0 0 2px
|
71
|
+
-webkit-box-shadow: 0 0 0 2px #ccd3d9;
|
72
|
+
box-shadow: 0 0 0 2px #ccd3d9;
|
73
73
|
}
|
74
74
|
.ant-menu ul,
|
75
75
|
.ant-menu ol {
|
@@ -147,10 +147,14 @@
|
|
147
147
|
color: #2c6dd2;
|
148
148
|
}
|
149
149
|
.ant-menu-item-divider {
|
150
|
-
height: 1px;
|
151
150
|
overflow: hidden;
|
152
151
|
line-height: 0;
|
153
|
-
|
152
|
+
border-color: #e5e5e5;
|
153
|
+
border-style: solid;
|
154
|
+
border-width: 1px 0 0;
|
155
|
+
}
|
156
|
+
.ant-menu-item-divider-dashed {
|
157
|
+
border-style: dashed;
|
154
158
|
}
|
155
159
|
.ant-menu-horizontal .ant-menu-item,
|
156
160
|
.ant-menu-horizontal .ant-menu-submenu {
|
@@ -264,16 +268,12 @@
|
|
264
268
|
}
|
265
269
|
.ant-menu-item:focus-visible,
|
266
270
|
.ant-menu-submenu-title:focus-visible {
|
267
|
-
-webkit-box-shadow: 0 0 0 2px
|
268
|
-
box-shadow: 0 0 0 2px
|
271
|
+
-webkit-box-shadow: 0 0 0 2px #ccd3d9;
|
272
|
+
box-shadow: 0 0 0 2px #ccd3d9;
|
269
273
|
}
|
270
274
|
.ant-menu > .ant-menu-item-divider {
|
271
|
-
height: 1px;
|
272
275
|
margin: 1px 0;
|
273
276
|
padding: 0;
|
274
|
-
overflow: hidden;
|
275
|
-
line-height: 0;
|
276
|
-
background-color: #e5e5e5;
|
277
277
|
}
|
278
278
|
.ant-menu-submenu-popup {
|
279
279
|
position: absolute;
|
@@ -697,6 +697,10 @@
|
|
697
697
|
.ant-layout-header .ant-menu {
|
698
698
|
line-height: inherit;
|
699
699
|
}
|
700
|
+
.ant-menu-inline-collapsed-tooltip a,
|
701
|
+
.ant-menu-inline-collapsed-tooltip a:hover {
|
702
|
+
color: #fff;
|
703
|
+
}
|
700
704
|
.ant-menu-light .ant-menu-item:hover,
|
701
705
|
.ant-menu-light .ant-menu-item-active,
|
702
706
|
.ant-menu-light .ant-menu:not(.ant-menu-inline) .ant-menu-submenu-open,
|
@@ -984,3 +988,9 @@
|
|
984
988
|
.ant-menu-vertical-right.ant-menu-sub:not([class*='-active']) {
|
985
989
|
max-height: 320px;
|
986
990
|
}
|
991
|
+
.ant-menu-item .pandora-sdk-menu-item-a {
|
992
|
+
color: #333;
|
993
|
+
}
|
994
|
+
.ant-menu-horizontal > .ant-menu-item .pandora-sdk-menu-item-a {
|
995
|
+
color: #333;
|
996
|
+
}
|
@@ -6,3 +6,13 @@
|
|
6
6
|
.@{ant-prefix}-menu-vertical-right.@{ant-prefix}-menu-sub:not([class*='-active']) {
|
7
7
|
max-height: 320px;
|
8
8
|
}
|
9
|
+
.@{ant-prefix}-menu-item {
|
10
|
+
.@{sdk-prefix}-menu-item-a {
|
11
|
+
color: @font-color-7;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
.@{ant-prefix}-menu-horizontal
|
15
|
+
> .@{ant-prefix}-menu-item
|
16
|
+
.@{sdk-prefix}-menu-item-a {
|
17
|
+
color: @font-color-7;
|
18
|
+
}
|
@@ -277,9 +277,7 @@
|
|
277
277
|
overflow: hidden;
|
278
278
|
}
|
279
279
|
.pandora-sdk-name-limit-tooltip .ant-tooltip-inner {
|
280
|
-
max-width: 400px
|
281
|
-
max-height: 200px
|
280
|
+
max-width: 400px;
|
281
|
+
max-height: 200px;
|
282
282
|
overflow: auto;
|
283
|
-
line-height: 22px;
|
284
|
-
font-size: 12px;
|
285
283
|
}
|
@@ -12,10 +12,8 @@
|
|
12
12
|
|
13
13
|
.@{sdk-prefix}-name-limit-tooltip {
|
14
14
|
.@{ant-prefix}-tooltip-inner {
|
15
|
-
max-width: 400px
|
16
|
-
max-height: 200px
|
15
|
+
max-width: 400px;
|
16
|
+
max-height: 200px;
|
17
17
|
overflow: auto;
|
18
|
-
line-height: 22px;
|
19
|
-
font-size: 12px;
|
20
18
|
}
|
21
19
|
}
|