@douyinfe/semi-foundation 2.17.1 → 2.18.1-alpha.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/.idea/markdown.xml +9 -0
- package/.idea/modules.xml +8 -0
- package/.idea/semi-foundation.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/workspace.xml +59 -0
- package/anchor/anchor.scss +15 -1
- package/anchor/animation.scss +6 -0
- package/anchor/variables.scss +7 -1
- package/autoComplete/animation.scss +3 -0
- package/autoComplete/autoComplete.scss +2 -1
- package/autoComplete/constants.ts +3 -0
- package/autoComplete/option.scss +93 -0
- package/autoComplete/optionFoundation.ts +41 -0
- package/autoComplete/variables.scss +47 -0
- package/avatar/avatar.scss +5 -6
- package/breadcrumb/animation.scss +6 -0
- package/breadcrumb/breadcrumb.scss +4 -1
- package/button/animation.scss +67 -0
- package/button/button.scss +29 -0
- package/calendar/eventUtil.ts +5 -3
- package/calendar/foundation.ts +7 -3
- package/carousel/animation.scss +7 -0
- package/carousel/carousel.scss +30 -40
- package/carousel/foundation.ts +5 -5
- package/cascader/animation.scss +4 -0
- package/cascader/cascader.scss +2 -0
- package/checkbox/animation.scss +10 -0
- package/checkbox/checkbox.scss +19 -4
- package/datePicker/animation.scss +4 -0
- package/dropdown/animation.scss +3 -0
- package/dropdown/dropdown.scss +5 -1
- package/form/form.scss +4 -3
- package/form/variables.scss +1 -0
- package/gulpfile.js +4 -2
- package/input/animation.scss +14 -0
- package/input/input.scss +12 -0
- package/input/textarea.scss +3 -0
- package/inputNumber/animation.scss +10 -0
- package/inputNumber/inputNumber.scss +4 -0
- package/lib/cjs/anchor/anchor.css +12 -0
- package/lib/cjs/anchor/anchor.scss +15 -1
- package/lib/cjs/anchor/animation.scss +6 -0
- package/lib/cjs/anchor/variables.scss +7 -1
- package/lib/cjs/autoComplete/animation.scss +3 -0
- package/lib/cjs/autoComplete/autoComplete.css +17 -16
- package/lib/cjs/autoComplete/autoComplete.scss +2 -1
- package/lib/cjs/autoComplete/constants.d.ts +2 -0
- package/lib/cjs/autoComplete/constants.js +3 -1
- package/lib/cjs/autoComplete/option.scss +93 -0
- package/lib/cjs/autoComplete/optionFoundation.d.ts +21 -0
- package/lib/cjs/autoComplete/optionFoundation.js +42 -0
- package/lib/cjs/autoComplete/variables.scss +47 -0
- package/lib/cjs/avatar/avatar.scss +5 -6
- package/lib/cjs/breadcrumb/animation.scss +6 -0
- package/lib/cjs/breadcrumb/breadcrumb.css +3 -1
- package/lib/cjs/breadcrumb/breadcrumb.scss +4 -1
- package/lib/cjs/button/animation.scss +67 -0
- package/lib/cjs/button/button.css +14 -0
- package/lib/cjs/button/button.scss +29 -0
- package/lib/cjs/calendar/eventUtil.d.ts +2 -1
- package/lib/cjs/calendar/eventUtil.js +4 -1
- package/lib/cjs/calendar/foundation.d.ts +2 -1
- package/lib/cjs/calendar/foundation.js +8 -2
- package/lib/cjs/carousel/animation.scss +7 -0
- package/lib/cjs/carousel/carousel.css +6 -1
- package/lib/cjs/carousel/carousel.scss +30 -40
- package/lib/cjs/carousel/foundation.d.ts +1 -1
- package/lib/cjs/carousel/foundation.js +5 -5
- package/lib/cjs/cascader/animation.scss +4 -0
- package/lib/cjs/cascader/cascader.css +1 -0
- package/lib/cjs/cascader/cascader.scss +2 -0
- package/lib/cjs/checkbox/animation.scss +10 -0
- package/lib/cjs/checkbox/checkbox.css +3 -0
- package/lib/cjs/checkbox/checkbox.scss +19 -4
- package/lib/cjs/datePicker/animation.scss +4 -0
- package/lib/cjs/dropdown/animation.scss +3 -0
- package/lib/cjs/dropdown/dropdown.css +1 -0
- package/lib/cjs/dropdown/dropdown.scss +5 -1
- package/lib/cjs/form/form.css +3 -0
- package/lib/cjs/form/form.scss +4 -3
- package/lib/cjs/form/variables.scss +1 -0
- package/lib/cjs/input/animation.scss +14 -0
- package/lib/cjs/input/input.css +7 -0
- package/lib/cjs/input/input.scss +12 -0
- package/lib/cjs/input/textarea.css +1 -0
- package/lib/cjs/input/textarea.scss +3 -0
- package/lib/cjs/inputNumber/animation.scss +10 -0
- package/lib/cjs/inputNumber/inputNumber.css +2 -0
- package/lib/cjs/inputNumber/inputNumber.scss +4 -0
- package/lib/cjs/modal/modal.css +4 -0
- package/lib/cjs/modal/modal.scss +4 -0
- package/lib/cjs/navigation/animation.scss +4 -0
- package/lib/cjs/navigation/navigation.css +1 -0
- package/lib/cjs/navigation/navigation.scss +3 -0
- package/lib/cjs/notification/notification.scss +8 -9
- package/lib/cjs/pagination/animation.scss +11 -0
- package/lib/cjs/pagination/pagination.css +2 -0
- package/lib/cjs/pagination/pagination.scss +4 -0
- package/lib/cjs/radio/animation.scss +10 -0
- package/lib/cjs/radio/radio.css +4 -0
- package/lib/cjs/radio/radio.scss +10 -1
- package/lib/cjs/radio/radioFoundation.d.ts +2 -0
- package/lib/cjs/radio/radioFoundation.js +4 -0
- package/lib/cjs/rating/animation.scss +6 -0
- package/lib/cjs/rating/rating.css +2 -0
- package/lib/cjs/rating/rating.scss +3 -0
- package/lib/cjs/scrollList/animation.scss +3 -0
- package/lib/cjs/scrollList/scrollList.css +1 -0
- package/lib/cjs/scrollList/scrollList.scss +7 -9
- package/lib/cjs/select/animation.scss +15 -0
- package/lib/cjs/select/option.scss +1 -2
- package/lib/cjs/select/select.css +6 -4
- package/lib/cjs/select/select.scss +7 -2
- package/lib/cjs/select/variables.scss +5 -5
- package/lib/cjs/sideSheet/animation.scss +7 -0
- package/lib/cjs/sideSheet/sideSheet.css +4 -0
- package/lib/cjs/sideSheet/sideSheet.scss +9 -2
- package/lib/cjs/skeleton/skeleton.scss +2 -4
- package/lib/cjs/slider/animation.scss +7 -0
- package/lib/cjs/slider/slider.css +2 -1
- package/lib/cjs/slider/slider.scss +4 -3
- package/lib/cjs/spin/spin.scss +10 -11
- package/lib/cjs/steps/animation.scss +17 -0
- package/lib/cjs/steps/bacisSteps.scss +11 -3
- package/lib/cjs/steps/fillSteps.scss +6 -1
- package/lib/cjs/steps/navSteps.scss +1 -1
- package/lib/cjs/steps/steps.css +9 -0
- package/lib/cjs/steps/steps.scss +1 -0
- package/lib/cjs/switch/animation.scss +4 -0
- package/lib/cjs/switch/foundation.js +2 -2
- package/lib/cjs/switch/switch.css +1 -1
- package/lib/cjs/switch/switch.scss +4 -1
- package/lib/cjs/table/animation.scss +3 -0
- package/lib/cjs/table/table.css +14 -4
- package/lib/cjs/table/table.scss +29 -24
- package/lib/cjs/table/variables.scss +2 -2
- package/lib/cjs/tabs/animation.scss +23 -0
- package/lib/cjs/tabs/tabs.css +9 -0
- package/lib/cjs/tabs/tabs.scss +18 -2
- package/lib/cjs/tagInput/animation.scss +7 -0
- package/lib/cjs/tagInput/tagInput.css +1 -0
- package/lib/cjs/tagInput/tagInput.scss +4 -1
- package/lib/cjs/timePicker/utils/animation.scss +7 -0
- package/lib/cjs/transfer/animation.scss +4 -0
- package/lib/cjs/transfer/transfer.css +1 -0
- package/lib/cjs/transfer/transfer.scss +4 -0
- package/lib/cjs/tree/animation.scss +7 -0
- package/lib/cjs/tree/tree.css +2 -0
- package/lib/cjs/tree/tree.scss +3 -0
- package/lib/es/anchor/anchor.css +12 -0
- package/lib/es/anchor/anchor.scss +15 -1
- package/lib/es/anchor/animation.scss +6 -0
- package/lib/es/anchor/variables.scss +7 -1
- package/lib/es/autoComplete/animation.scss +3 -0
- package/lib/es/autoComplete/autoComplete.css +17 -16
- package/lib/es/autoComplete/autoComplete.scss +2 -1
- package/lib/es/autoComplete/constants.d.ts +2 -0
- package/lib/es/autoComplete/constants.js +3 -1
- package/lib/es/autoComplete/option.scss +93 -0
- package/lib/es/autoComplete/optionFoundation.d.ts +21 -0
- package/lib/es/autoComplete/optionFoundation.js +26 -0
- package/lib/es/autoComplete/variables.scss +47 -0
- package/lib/es/avatar/avatar.scss +5 -6
- package/lib/es/breadcrumb/animation.scss +6 -0
- package/lib/es/breadcrumb/breadcrumb.css +3 -1
- package/lib/es/breadcrumb/breadcrumb.scss +4 -1
- package/lib/es/button/animation.scss +67 -0
- package/lib/es/button/button.css +14 -0
- package/lib/es/button/button.scss +29 -0
- package/lib/es/calendar/eventUtil.d.ts +2 -1
- package/lib/es/calendar/eventUtil.js +4 -1
- package/lib/es/calendar/foundation.d.ts +2 -1
- package/lib/es/calendar/foundation.js +8 -2
- package/lib/es/carousel/animation.scss +7 -0
- package/lib/es/carousel/carousel.css +6 -1
- package/lib/es/carousel/carousel.scss +30 -40
- package/lib/es/carousel/foundation.d.ts +1 -1
- package/lib/es/carousel/foundation.js +5 -5
- package/lib/es/cascader/animation.scss +4 -0
- package/lib/es/cascader/cascader.css +1 -0
- package/lib/es/cascader/cascader.scss +2 -0
- package/lib/es/checkbox/animation.scss +10 -0
- package/lib/es/checkbox/checkbox.css +3 -0
- package/lib/es/checkbox/checkbox.scss +19 -4
- package/lib/es/datePicker/animation.scss +4 -0
- package/lib/es/dropdown/animation.scss +3 -0
- package/lib/es/dropdown/dropdown.css +1 -0
- package/lib/es/dropdown/dropdown.scss +5 -1
- package/lib/es/form/form.css +3 -0
- package/lib/es/form/form.scss +4 -3
- package/lib/es/form/variables.scss +1 -0
- package/lib/es/input/animation.scss +14 -0
- package/lib/es/input/input.css +7 -0
- package/lib/es/input/input.scss +12 -0
- package/lib/es/input/textarea.css +1 -0
- package/lib/es/input/textarea.scss +3 -0
- package/lib/es/inputNumber/animation.scss +10 -0
- package/lib/es/inputNumber/inputNumber.css +2 -0
- package/lib/es/inputNumber/inputNumber.scss +4 -0
- package/lib/es/modal/modal.css +4 -0
- package/lib/es/modal/modal.scss +4 -0
- package/lib/es/navigation/animation.scss +4 -0
- package/lib/es/navigation/navigation.css +1 -0
- package/lib/es/navigation/navigation.scss +3 -0
- package/lib/es/notification/notification.scss +8 -9
- package/lib/es/pagination/animation.scss +11 -0
- package/lib/es/pagination/pagination.css +2 -0
- package/lib/es/pagination/pagination.scss +4 -0
- package/lib/es/radio/animation.scss +10 -0
- package/lib/es/radio/radio.css +4 -0
- package/lib/es/radio/radio.scss +10 -1
- package/lib/es/radio/radioFoundation.d.ts +2 -0
- package/lib/es/radio/radioFoundation.js +4 -0
- package/lib/es/rating/animation.scss +6 -0
- package/lib/es/rating/rating.css +2 -0
- package/lib/es/rating/rating.scss +3 -0
- package/lib/es/scrollList/animation.scss +3 -0
- package/lib/es/scrollList/scrollList.css +1 -0
- package/lib/es/scrollList/scrollList.scss +7 -9
- package/lib/es/select/animation.scss +15 -0
- package/lib/es/select/option.scss +1 -2
- package/lib/es/select/select.css +6 -4
- package/lib/es/select/select.scss +7 -2
- package/lib/es/select/variables.scss +5 -5
- package/lib/es/sideSheet/animation.scss +7 -0
- package/lib/es/sideSheet/sideSheet.css +4 -0
- package/lib/es/sideSheet/sideSheet.scss +9 -2
- package/lib/es/skeleton/skeleton.scss +2 -4
- package/lib/es/slider/animation.scss +7 -0
- package/lib/es/slider/slider.css +2 -1
- package/lib/es/slider/slider.scss +4 -3
- package/lib/es/spin/spin.scss +10 -11
- package/lib/es/steps/animation.scss +17 -0
- package/lib/es/steps/bacisSteps.scss +11 -3
- package/lib/es/steps/fillSteps.scss +6 -1
- package/lib/es/steps/navSteps.scss +1 -1
- package/lib/es/steps/steps.css +9 -0
- package/lib/es/steps/steps.scss +1 -0
- package/lib/es/switch/animation.scss +4 -0
- package/lib/es/switch/foundation.js +2 -2
- package/lib/es/switch/switch.css +1 -1
- package/lib/es/switch/switch.scss +4 -1
- package/lib/es/table/animation.scss +3 -0
- package/lib/es/table/table.css +14 -4
- package/lib/es/table/table.scss +29 -24
- package/lib/es/table/variables.scss +2 -2
- package/lib/es/tabs/animation.scss +23 -0
- package/lib/es/tabs/tabs.css +9 -0
- package/lib/es/tabs/tabs.scss +18 -2
- package/lib/es/tagInput/animation.scss +7 -0
- package/lib/es/tagInput/tagInput.css +1 -0
- package/lib/es/tagInput/tagInput.scss +4 -1
- package/lib/es/timePicker/utils/animation.scss +7 -0
- package/lib/es/transfer/animation.scss +4 -0
- package/lib/es/transfer/transfer.css +1 -0
- package/lib/es/transfer/transfer.scss +4 -0
- package/lib/es/tree/animation.scss +7 -0
- package/lib/es/tree/tree.css +2 -0
- package/lib/es/tree/tree.scss +3 -0
- package/modal/modal.scss +4 -0
- package/navigation/animation.scss +4 -0
- package/navigation/navigation.scss +3 -0
- package/notification/notification.scss +8 -9
- package/package.json +2 -2
- package/pagination/animation.scss +11 -0
- package/pagination/pagination.scss +4 -0
- package/radio/animation.scss +10 -0
- package/radio/radio.scss +10 -1
- package/radio/radioFoundation.ts +5 -0
- package/rating/animation.scss +6 -0
- package/rating/rating.scss +3 -0
- package/scrollList/animation.scss +3 -0
- package/scrollList/scrollList.scss +7 -9
- package/select/animation.scss +15 -0
- package/select/option.scss +1 -2
- package/select/select.scss +7 -2
- package/select/variables.scss +5 -5
- package/sideSheet/animation.scss +7 -0
- package/sideSheet/sideSheet.scss +9 -2
- package/skeleton/skeleton.scss +2 -4
- package/slider/animation.scss +7 -0
- package/slider/slider.scss +4 -3
- package/spin/spin.scss +10 -11
- package/steps/animation.scss +17 -0
- package/steps/bacisSteps.scss +11 -3
- package/steps/fillSteps.scss +6 -1
- package/steps/navSteps.scss +1 -1
- package/steps/steps.scss +1 -0
- package/switch/animation.scss +4 -0
- package/switch/foundation.ts +2 -2
- package/switch/switch.scss +4 -1
- package/table/animation.scss +3 -0
- package/table/table.scss +29 -24
- package/table/variables.scss +2 -2
- package/tabs/animation.scss +23 -0
- package/tabs/tabs.scss +18 -2
- package/tagInput/animation.scss +7 -0
- package/tagInput/tagInput.scss +4 -1
- package/timePicker/utils/animation.scss +7 -0
- package/transfer/animation.scss +4 -0
- package/transfer/transfer.scss +4 -0
- package/tree/animation.scss +7 -0
- package/tree/tree.scss +3 -0
- package/lib/cjs/select/option.css +0 -77
- package/lib/es/select/option.css +0 -77
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="MarkdownSettings">
|
|
4
|
+
<enabledExtensions>
|
|
5
|
+
<entry key="MermaidLanguageExtension" value="false" />
|
|
6
|
+
<entry key="PlantUMLLanguageExtension" value="false" />
|
|
7
|
+
</enabledExtensions>
|
|
8
|
+
</component>
|
|
9
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/semi-foundation.iml" filepath="$PROJECT_DIR$/.idea/semi-foundation.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
package/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="8c997fef-d518-46e4-8f6a-6935e6c9f072" name="变更" comment="" />
|
|
5
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
6
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
8
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
9
|
+
</component>
|
|
10
|
+
<component name="Git.Settings">
|
|
11
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
|
|
12
|
+
</component>
|
|
13
|
+
<component name="MarkdownSettingsMigration">
|
|
14
|
+
<option name="stateVersion" value="1" />
|
|
15
|
+
</component>
|
|
16
|
+
<component name="ProjectId" id="27BzWH653rMIIPvhUzc3ALwSVfS" />
|
|
17
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
18
|
+
<component name="ProjectViewState">
|
|
19
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
|
20
|
+
<option name="showLibraryContents" value="true" />
|
|
21
|
+
</component>
|
|
22
|
+
<component name="PropertiesComponent">
|
|
23
|
+
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
24
|
+
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
25
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
|
26
|
+
<property name="nodejs_package_manager_path" value="npm" />
|
|
27
|
+
<property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
|
|
28
|
+
<property name="vue.rearranger.settings.migration" value="true" />
|
|
29
|
+
</component>
|
|
30
|
+
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
|
|
31
|
+
<component name="TaskManager">
|
|
32
|
+
<task active="true" id="Default" summary="默认任务">
|
|
33
|
+
<changelist id="8c997fef-d518-46e4-8f6a-6935e6c9f072" name="变更" comment="" />
|
|
34
|
+
<created>1648808296966</created>
|
|
35
|
+
<option name="number" value="Default" />
|
|
36
|
+
<option name="presentableId" value="Default" />
|
|
37
|
+
<updated>1648808296966</updated>
|
|
38
|
+
<workItem from="1648808299184" duration="169000" />
|
|
39
|
+
<workItem from="1648809475632" duration="92000" />
|
|
40
|
+
<workItem from="1649316048169" duration="271000" />
|
|
41
|
+
<workItem from="1649316634321" duration="5726000" />
|
|
42
|
+
</task>
|
|
43
|
+
<servers />
|
|
44
|
+
</component>
|
|
45
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
46
|
+
<option name="version" value="3" />
|
|
47
|
+
</component>
|
|
48
|
+
<component name="Vcs.Log.Tabs.Properties">
|
|
49
|
+
<option name="TAB_STATES">
|
|
50
|
+
<map>
|
|
51
|
+
<entry key="MAIN">
|
|
52
|
+
<value>
|
|
53
|
+
<State />
|
|
54
|
+
</value>
|
|
55
|
+
</entry>
|
|
56
|
+
</map>
|
|
57
|
+
</option>
|
|
58
|
+
</component>
|
|
59
|
+
</project>
|
package/anchor/anchor.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import './variables.scss';
|
|
2
|
+
@import "./animation.scss";
|
|
2
3
|
|
|
3
4
|
$module: #{$prefix}-anchor;
|
|
4
5
|
|
|
@@ -17,6 +18,8 @@ $module: #{$prefix}-anchor;
|
|
|
17
18
|
left: $spacing-anchor_slide-left;
|
|
18
19
|
top: $spacing-anchor_slide-top;
|
|
19
20
|
height: 100%;
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
padding: $width-anchor-outline 0;
|
|
20
23
|
|
|
21
24
|
&-muted {
|
|
22
25
|
display: none;
|
|
@@ -64,6 +67,11 @@ $module: #{$prefix}-anchor;
|
|
|
64
67
|
&-link {
|
|
65
68
|
padding-left: $spacing-anchor_link-paddingLeft;
|
|
66
69
|
|
|
70
|
+
&-wrapper {
|
|
71
|
+
padding-right: $width-anchor-outline;
|
|
72
|
+
margin: $width-anchor-outline 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
67
75
|
&-title {
|
|
68
76
|
cursor: pointer;
|
|
69
77
|
color: $color-anchor_title-text-default;
|
|
@@ -72,7 +80,9 @@ $module: #{$prefix}-anchor;
|
|
|
72
80
|
overflow: hidden;
|
|
73
81
|
text-overflow: ellipsis;
|
|
74
82
|
white-space: nowrap;
|
|
75
|
-
|
|
83
|
+
border-radius: $width-anchor-outline_border_radius;
|
|
84
|
+
transition: color $transition_duration-anchor_title-text $transition_function-anchor_title-text $transition_delay-anchor_title-text;//锚点选项文字的动效
|
|
85
|
+
transform: scale($transform_scale-anchor_title-text);
|
|
76
86
|
&:hover {
|
|
77
87
|
color: $color-anchor_title-text-hover;
|
|
78
88
|
}
|
|
@@ -81,6 +91,10 @@ $module: #{$prefix}-anchor;
|
|
|
81
91
|
color: $color-anchor_title-text-active;
|
|
82
92
|
}
|
|
83
93
|
|
|
94
|
+
&:focus-visible {
|
|
95
|
+
outline: $width-anchor-outline solid $color-anchor_title-outline-focus;
|
|
96
|
+
}
|
|
97
|
+
|
|
84
98
|
&-disabled {
|
|
85
99
|
color: $color-anchor_title-text-disabled;
|
|
86
100
|
cursor: not-allowed;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
$transition_duration-anchor_title-text: var(--semi-transition_duration-faster);//锚点标题文字-文字-动画持续时间
|
|
2
|
+
$transition_function-anchor_title-text: var(--semi-transition_function-easeIn);//锚点标题文字-文字-过渡曲线
|
|
3
|
+
$transition_delay-anchor_title-text: var(--semi-transition_delay-fastest);//锚点标题文字-文字-延迟时间
|
|
4
|
+
|
|
5
|
+
//transform token
|
|
6
|
+
$transform_scale-anchor_title-text: var(--semi-transform_scale-none);//锚点-放大
|
package/anchor/variables.scss
CHANGED
|
@@ -9,6 +9,8 @@ $color-anchor_title-text-hover: var(--semi-color-tertiary-hover); // 文字颜
|
|
|
9
9
|
$color-anchor_title-text-active: var(--semi-color-text-0); // 文字颜色 - 选中
|
|
10
10
|
$color-anchor_title-text-disabled: var(--semi-color-disabled-text); // 文字颜色 - 禁用
|
|
11
11
|
|
|
12
|
+
$color-anchor_title-outline-focus: var(--semi-color-primary-light-active); // 轮廓 - 聚焦
|
|
13
|
+
|
|
12
14
|
// Spacing
|
|
13
15
|
$spacing-anchor_slide-left: $spacing-none; // 滑轨左侧位置
|
|
14
16
|
$spacing-anchor_slide-top: $spacing-none; // 滑轨顶部位置
|
|
@@ -24,4 +26,8 @@ $height-anchor_slide_default: 20px; // 选项高度 - 默认
|
|
|
24
26
|
$height-anchor_slide_small: 16px; // 选项高度 - 小尺寸
|
|
25
27
|
|
|
26
28
|
// Radius
|
|
27
|
-
$radius-anchor_slide: 1px; // 滑轨圆角
|
|
29
|
+
$radius-anchor_slide: 1px; // 滑轨圆角
|
|
30
|
+
|
|
31
|
+
// Witdh
|
|
32
|
+
$width-anchor-outline: 2px; // anchor轮廓宽度
|
|
33
|
+
$width-anchor-outline_border_radius: 3px; // anchor轮廓圆角
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
$transition_duration-autoComplete_option-bg: var(--semi-transition_duration-faster);//选择器-选项-动画持续时间
|
|
2
|
+
$transition_function-autoComplete_option-bg: var(--semi-transition_function-easeIn);//选择器-选项-过渡曲线
|
|
3
|
+
$transition_delay-autoComplete_option-bg: var(--semi-transition_delay-fastest);//选择器-选项-延迟时间
|
|
@@ -3,6 +3,9 @@ import { BASE_CLASS_PREFIX, VALIDATE_STATUS } from '../base/constants';
|
|
|
3
3
|
|
|
4
4
|
const cssClasses = {
|
|
5
5
|
PREFIX: `${BASE_CLASS_PREFIX}-autocomplete`,
|
|
6
|
+
PREFIX_OPTION: `${BASE_CLASS_PREFIX}-autoComplete-option`,
|
|
7
|
+
PREFIX_GROUP: `${BASE_CLASS_PREFIX}-autoComplete-group`,
|
|
8
|
+
|
|
6
9
|
};
|
|
7
10
|
|
|
8
11
|
const strings = {
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
$module: #{$prefix}-autoComplete;
|
|
2
|
+
$filterable: #{$module}-filterable;
|
|
3
|
+
|
|
4
|
+
.#{$module}-option {
|
|
5
|
+
@include font-size-regular;
|
|
6
|
+
word-break: break-all;
|
|
7
|
+
padding-left: $spacing-autoComplete_option-paddingLeft;
|
|
8
|
+
padding-right: $spacing-autoComplete_option-paddingRight;
|
|
9
|
+
padding-top: $spacing-autoComplete_option-paddingTop;
|
|
10
|
+
padding-bottom: $spacing-autoComplete_option-paddingBottom;
|
|
11
|
+
color: $color-autoComplete_option_main-text;
|
|
12
|
+
border-radius: $radius-autoComplete_option;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: nowrap;
|
|
16
|
+
align-items: center;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
transition: background-color $transition_duration-autoComplete_option-bg $transition_function-autoComplete_option-bg $transition_delay-autoComplete_option-bg;
|
|
20
|
+
|
|
21
|
+
&-icon {
|
|
22
|
+
width: $width-autoComplete_option_tick;
|
|
23
|
+
color: $color-autoComplete_option-icon-default;
|
|
24
|
+
visibility: hidden;
|
|
25
|
+
margin-right: $spacing-autoComplete_option_tick-marginRight;
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
align-content: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-text {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
white-space: pre;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-keyword {
|
|
38
|
+
color: $color-autoComplete_option_keyword-text;
|
|
39
|
+
background-color: inherit;
|
|
40
|
+
font-weight: $font-autoComplete_keyword-fontWeight;
|
|
41
|
+
}
|
|
42
|
+
// &:hover {
|
|
43
|
+
// background-color: $color-autoComplete_option-bg-hover;
|
|
44
|
+
// }
|
|
45
|
+
|
|
46
|
+
&:active {
|
|
47
|
+
background-color: $color-autoComplete_option-bg-active;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-empty {
|
|
51
|
+
cursor: not-allowed;
|
|
52
|
+
color: $color-autoComplete_option_disabled-text;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
|
|
55
|
+
&:hover {
|
|
56
|
+
background-color: inherit;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:active {
|
|
60
|
+
background-color: inherit;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-disabled {
|
|
65
|
+
color: $color-autoComplete_option_disabled-text;
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
background-color: $color-autoComplete_option-bg-hover;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-selected {
|
|
74
|
+
font-weight: $font-weight-bold;
|
|
75
|
+
|
|
76
|
+
.#{$module}-option-icon {
|
|
77
|
+
visibility: visible;
|
|
78
|
+
color: $color-autoComplete_option-icon-active;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&-focused {
|
|
83
|
+
background-color: $color-autoComplete_option-bg-hover;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:first-of-type {
|
|
87
|
+
margin-top: $spacing-autoComplete_option_first-marginTop;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:last-of-type {
|
|
91
|
+
margin-bottom: $spacing-autoComplete_option_last-marginBottom;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface BasicOptionProps {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
label?: string | number | unknown;
|
|
8
|
+
children?: unknown;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
showTick?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: Record<string, any>;
|
|
13
|
+
}
|
|
14
|
+
export interface OptionDefaultAdapter extends Partial<DefaultAdapter> {
|
|
15
|
+
notifyClick(option: BasicOptionProps): void;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export default class OptionFoundation extends BaseFoundation<OptionDefaultAdapter> {
|
|
20
|
+
|
|
21
|
+
constructor(adapter: OptionDefaultAdapter) {
|
|
22
|
+
super({ ...adapter });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
26
|
+
init() {}
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
29
|
+
destroy() {}
|
|
30
|
+
|
|
31
|
+
onOptionClick(option: BasicOptionProps) {
|
|
32
|
+
const isDisabled = this._isDisabled();
|
|
33
|
+
if (!isDisabled) {
|
|
34
|
+
this._adapter.notifyClick(option);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
_isDisabled() {
|
|
39
|
+
return this.getProp('disabled');
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1,3 +1,50 @@
|
|
|
1
1
|
// Spacing
|
|
2
2
|
$spacing-autoComplete_loading_wrapper-paddingTop: $spacing-tight; //加载搜索结果时的顶部内边距
|
|
3
3
|
$spacing-autoComplete_loading_wrapper-paddingBottom: $spacing-tight; //加载搜索结果时的底部内边距
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
$color-autoComplete_option_keyword-text: var(--semi-color-primary); // 自动完成菜单选项匹配搜索结果文本颜色
|
|
10
|
+
$color-autoComplete_option-bg-default: transparent; // 自动完成菜单选项背景颜色 - 默认态
|
|
11
|
+
$color-autoComplete_option-icon-default: transparent; // 自动完成菜单选项图标颜色 - 默认态
|
|
12
|
+
$color-autoComplete_option-bg-hover: var(--semi-color-fill-0); // 自动完成菜单选项背景颜色 - 悬停态
|
|
13
|
+
$color-autoComplete_option-bg-active: var(--semi-color-fill-1); // 自动完成菜单选项背景颜色 - 按下态
|
|
14
|
+
$color-autoComplete_option_disabled-text: var(--semi-color-disabled-text); // 禁用自动完成菜单选项文字颜色
|
|
15
|
+
$color-autoComplete_option_disabled-bg: transparent; // 禁用自动完成菜单选项背景颜色
|
|
16
|
+
$color-autoComplete_option-icon-active: var(--semi-color-text-2); // 禁用自动完成菜单选项图标颜色 - 选中态
|
|
17
|
+
$color-autoComplete_option-border-default: var(--semi-color-border); // 分组自动完成菜单项描边颜色
|
|
18
|
+
|
|
19
|
+
$width-autoComplete_option_tick: $width-icon-small; // 自动完成菜单项选中对勾图标大小
|
|
20
|
+
$spacing-autoComplete_option_tick-marginRight: $spacing-tight; // 自动完成菜单选中对勾右侧外边距
|
|
21
|
+
|
|
22
|
+
$spacing-autoComplete_option-paddingLeft: $spacing-base-tight; // 自动完成菜单项左侧内边距
|
|
23
|
+
$spacing-autoComplete_option-paddingRight: $spacing-base-tight; // 自动完成菜单项右侧内边距
|
|
24
|
+
$spacing-autoComplete_option-paddingTop: $spacing-tight; // 自动完成菜单项顶部内边距
|
|
25
|
+
$spacing-autoComplete_option-paddingBottom: $spacing-tight; // 自动完成菜单项底部内边距
|
|
26
|
+
$spacing-autoComplete_option_first-marginTop: $spacing-extra-tight; // 自动完成第一个菜单项顶部外边距
|
|
27
|
+
$spacing-autoComplete_option_last-marginBottom: $spacing-extra-tight; // 自动完成最后一个菜单项顶部外边距
|
|
28
|
+
|
|
29
|
+
$spacing-autoComplete_option_list-paddingTop: 0px; // 自动完成内容区顶部内边距
|
|
30
|
+
$spacing-autoComplete_option_list-paddingRight: 0px; // 自动完成内容区右侧内边距
|
|
31
|
+
$spacing-autoComplete_option_list-paddingBottom: 0px; // 自动完成内容区底部内边距
|
|
32
|
+
$spacing-autoComplete_option_list-paddingLeft: 0px; // 自动完成内容区左侧内边距
|
|
33
|
+
|
|
34
|
+
$radius-autoComplete_option: 0px; // 自动完成待选项圆角
|
|
35
|
+
|
|
36
|
+
$color-autoComplete_option_main-text: var(--semi-color-text-0); // 自动完成菜单选项文本颜色
|
|
37
|
+
|
|
38
|
+
$color-autoComplete_option-bg-default: transparent; // 自动完成菜单选项背景颜色 - 默认态
|
|
39
|
+
$color-autoComplete_option-icon-default: transparent; // 自动完成菜单选项图标颜色 - 默认态
|
|
40
|
+
$color-autoComplete_option-bg-hover: var(--semi-color-fill-0); // 自动完成菜单选项背景颜色 - 悬停态
|
|
41
|
+
$color-autoComplete_option-bg-active: var(--semi-color-fill-1); // 自动完成菜单选项背景颜色 - 按下态
|
|
42
|
+
$color-autoComplete_option_disabled-text: var(--semi-color-disabled-text); // 禁用自动完成菜单选项文字颜色
|
|
43
|
+
$color-autoComplete_option_disabled-bg: transparent; // 禁用自动完成菜单选项背景颜色
|
|
44
|
+
$color-autoComplete_option-icon-active: var(--semi-color-text-2); // 禁用自动完成菜单选项图标颜色 - 选中态
|
|
45
|
+
$color-autoComplete_option-border-default: var(--semi-color-border); // 分组自动完成菜单项描边颜色
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
$font-autoComplete-fontWeight: $font-weight-regular; // 自动完成文本字重
|
|
49
|
+
$font-autoComplete_inset_label-fontWeight: 600; // 自动完成内嵌标签文本字重
|
|
50
|
+
$font-autoComplete_keyword-fontWeight: 600; // 自动完成搜索结果命关键词中文本字重
|
package/avatar/avatar.scss
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
@import
|
|
2
|
-
@import
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
@import './mixin.scss';
|
|
3
3
|
|
|
4
4
|
$module: #{$prefix}-avatar;
|
|
5
|
-
$colors:
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
$colors: 'amber', 'blue', 'cyan', 'green', 'grey', 'indigo', 'light-blue', 'light-green', 'lime', 'orange', 'pink',
|
|
6
|
+
'purple', 'red', 'teal', 'violet', 'yellow';
|
|
8
7
|
|
|
9
8
|
.#{$module} {
|
|
10
9
|
position: relative;
|
|
@@ -211,4 +210,4 @@ $colors: "amber", "blue", "cyan", "green", "grey", "indigo", "light-blue", "ligh
|
|
|
211
210
|
}
|
|
212
211
|
}
|
|
213
212
|
|
|
214
|
-
@import
|
|
213
|
+
@import './rtl.scss';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
$transition_duration-breadcrumb_link-text: var(--semi-transition_duration-faster);//面包屑文字-文字-动画持续时间
|
|
2
|
+
$transition_function-breadcrumb_link-text: var(--semi-transition_function-easeIn);//面包屑文字-文字-过渡曲线
|
|
3
|
+
$transition_delay-breadcrumb_link-text: var(--semi-transition_delay-fastest);//面包屑文字-文字-延迟时间
|
|
4
|
+
|
|
5
|
+
//transform token
|
|
6
|
+
$transform_scale-breadcrumb_link-text: var(--semi-transform_scale-none);//面包屑文字-放大
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// @import '../theme/mixin.scss';
|
|
3
3
|
// @import '../theme/_font.scss';
|
|
4
4
|
@import './variables.scss';
|
|
5
|
+
@import "./animation.scss";
|
|
5
6
|
|
|
6
7
|
$module: #{$prefix}-breadcrumb;
|
|
7
8
|
|
|
@@ -24,7 +25,7 @@ $module: #{$prefix}-breadcrumb;
|
|
|
24
25
|
&-item-wrap {
|
|
25
26
|
display: inline-flex;
|
|
26
27
|
align-items: center;
|
|
27
|
-
margin: $spacing-breadcrumb_item_wrap-marginY
|
|
28
|
+
margin: $spacing-breadcrumb_item_wrap-marginY 0px;
|
|
28
29
|
margin-right: $spacing-breadcrumb_item_wrap-marginRight;
|
|
29
30
|
}
|
|
30
31
|
|
|
@@ -88,6 +89,8 @@ $module: #{$prefix}-breadcrumb;
|
|
|
88
89
|
align-items: center;
|
|
89
90
|
column-gap: 4px;
|
|
90
91
|
text-decoration: inherit;
|
|
92
|
+
transition: color $transition_duration-breadcrumb_link-text $transition-function_breadcrumb_link-text $transition_delay-breadcrumb_link-text;
|
|
93
|
+
transform: scale($transform_scale-breadcrumb_link-text);
|
|
91
94
|
|
|
92
95
|
&:hover {
|
|
93
96
|
color: $color-breadcrumb_default-text-hover;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
$transition_duration-button_primary-bg: var(--semi-transition_duration-faster);//主要按钮-背景色-动画持续时间
|
|
2
|
+
$transition_function-button_primary-bg: var(--semi-transition_function-easeIn);//主要按钮-背景色-过渡曲线
|
|
3
|
+
$transition_delay-button_primary-bg: var(--semi-transition_delay-fastest);//主要按钮-背景色-延迟时间
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
$transition_duration-button_secondary-bg: var(--semi-transition_duration-faster);//次要按钮-背景色-动画持续时间
|
|
7
|
+
$transition_function-button_secondary-bg: var(--semi-transition_function-easeIn);//次要按钮-背景色-过渡曲线
|
|
8
|
+
$transition_delay-button_secondary-bg: var(--semi-transition_delay-fastest);//次要按钮-背景色-延迟时间
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
$transition_duration-button_tertiary-bg: var(--semi-transition_duration-faster);//三级按钮-背景色-动画持续时间
|
|
12
|
+
$transition_function-button_tertiary-bg: var(--semi-transition_function-easeIn);//三级按钮-背景色-过渡曲线
|
|
13
|
+
$transition_delay-button_tertiary-bg: var(--semi-transition_delay-fastest);//三级按钮-背景色-延迟时间
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
$transition_duration-button_light-bg: var(--semi-transition_duration-faster);//浅色按钮-背景色-动画持续时间
|
|
17
|
+
$transition_function-button_light-bg: var(--semi-transition_function-easeIn);//浅色按钮-背景色-过渡曲线
|
|
18
|
+
$transition_delay-button_light-bg: var(--semi-transition_delay-fastest);//浅色按钮-背景色-延迟时间
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
$transition_duration-button_warning-bg: var(--semi-transition_duration-faster);//警告按钮-背景色-动画持续时间
|
|
22
|
+
$transition_function-button_warning-bg: var(--semi-transition_function-easeIn);//警告按钮-背景色-过渡曲线
|
|
23
|
+
$transition_delay-button_warning-bg: var(--semi-transition_delay-fastest);//警告按钮-背景色-延迟时间
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
$transition_duration-button_danger-bg: var(--semi-transition_duration-faster);//危险按钮-背景色-动画持续时间
|
|
27
|
+
$transition_function-button_danger-bg: var(--semi-transition_function-easeIn);//危险按钮-背景色-过渡曲线
|
|
28
|
+
$transition_delay-button_danger-bg: var(--semi-transition_delay-fastest);//危险按钮-背景色-延迟时间
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
$transition_duration-button_borderless-bg: var(--semi-transition_duration-faster);//无边框按钮-背景色-动画持续时间
|
|
32
|
+
$transition_function-button_borderless-bg: var(--semi-transition_function-easeIn);//无边框按钮-背景色-过渡曲线
|
|
33
|
+
$transition_delay-button_borderless-bg: var(--semi-transition_delay-fastest);//无边框按钮-背景色-延迟时间
|
|
34
|
+
|
|
35
|
+
$transition_duration-button_primary-border: var(--semi-transition_duration-faster);//主要按钮-边框-动画持续时间
|
|
36
|
+
$transition_function-button_primary-border: var(--semi-transition_function-easeIn);//主要按钮-边框-过渡曲线
|
|
37
|
+
$transition_delay-button_primary-border: var(--semi-transition_delay-fastest);//主要按钮-边框-延迟时间
|
|
38
|
+
|
|
39
|
+
$transition_duration-button_secondary-border: var(--semi-transition_duration-faster);//次要按钮-边框-动画持续时间
|
|
40
|
+
$transition_function-button_secondary-border: var(--semi-transition_function-easeIn);//次要按钮-边框-过渡曲线
|
|
41
|
+
$transition_delay-button_secondary-border: var(--semi-transition_delay-fastest);//次要按钮-边框-延迟时间
|
|
42
|
+
|
|
43
|
+
$transition_duration-button_tertiary-border: var(--semi-transition_duration-faster);//三级按钮-边框-动画持续时间
|
|
44
|
+
$transition_function-button_tertiary-border: var(--semi-transition_function-easeIn);//三级按钮-边框-过渡曲线
|
|
45
|
+
$transition_delay-button_tertiary-border: var(--semi-transition_delay-fastest);//三级按钮-边框-延迟时间
|
|
46
|
+
|
|
47
|
+
$transition_duration-button_light-border: var(--semi-transition_duration-faster);//浅色按钮-边框-动画持续时间
|
|
48
|
+
$transition_function-button_light-border: var(--semi-transition_function-easeIn);//浅色按钮-边框-过渡曲线
|
|
49
|
+
$transition_delay-button_light-border: var(--semi-transition_delay-fastest);//浅色按钮-边框-延迟时间
|
|
50
|
+
|
|
51
|
+
$transition_duration-button_warning-border: var(--semi-transition_duration-faster);//警告按钮-边框-动画持续时间
|
|
52
|
+
$transition_function-button_warning-border: var(--semi-transition_function-easeIn);//警告按钮-边框-过渡曲线
|
|
53
|
+
$transition_delay-button_warning-border: var(--semi-transition_delay-fastest);//警告按钮-边框-延迟时间
|
|
54
|
+
|
|
55
|
+
$transition_duration-button_danger-border: var(--semi-transition_duration-faster);//危险按钮-边框-动画持续时间
|
|
56
|
+
$transition_function-button_danger-border: var(--semi-transition_function-easeIn);//危险按钮-边框-过渡曲线
|
|
57
|
+
$transition_delay-button_danger-border: var(--semi-transition_delay-fastest);//危险按钮-边框-延迟时间
|
|
58
|
+
|
|
59
|
+
//transform token
|
|
60
|
+
|
|
61
|
+
$transform_scale-button_primary: var(--semi-transform_scale-none);//主要按钮-放大
|
|
62
|
+
$transform_scale-button_secondary: var(--semi-transform_scale-none);//次要按钮-放大
|
|
63
|
+
$transform_scale-button_tertiary: var(--semi-transform_scale-none);//三级按钮-放大
|
|
64
|
+
$transform_scale-button_light: var(--semi-transform_scale-none);//浅色按钮-放大
|
|
65
|
+
$transform_scale-button_warning: var(--semi-transform_scale-none);//警告按钮-放大
|
|
66
|
+
$transform_scale-button_danger: var(--semi-transform_scale-none);//危险按钮-放大
|
|
67
|
+
$transform_scale-button_borderless: var(--semi-transform_scale-none);//无边框按钮-放大
|
package/button/button.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import './variables.scss';
|
|
2
|
+
@import './animation.scss';
|
|
2
3
|
@import './splitButtonGroup.scss';
|
|
3
4
|
|
|
4
5
|
$module: #{$prefix}-button;
|
|
@@ -39,6 +40,11 @@ $module: #{$prefix}-button;
|
|
|
39
40
|
&-danger {
|
|
40
41
|
background-color: $color-button_danger-bg-default;
|
|
41
42
|
color: $color-button_danger-text-default;
|
|
43
|
+
transition: background-color $transition_duration-button_danger-bg $transition_function-button_danger-bg $transition_delay-button_danger-bg,
|
|
44
|
+
border $transition_duration-button_danger-border $transition_function-button_danger-border $transition_delay-button_danger-border;
|
|
45
|
+
transform: scale($transform-scale-button_danger);
|
|
46
|
+
|
|
47
|
+
|
|
42
48
|
&:hover {
|
|
43
49
|
background-color: $color-button_danger-bg-hover;
|
|
44
50
|
}
|
|
@@ -56,6 +62,10 @@ $module: #{$prefix}-button;
|
|
|
56
62
|
&-warning {
|
|
57
63
|
background-color: $color-button_warning-bg-default;
|
|
58
64
|
color: $color-button_warning-text-default;
|
|
65
|
+
transition: background-color $transition_duration-button_warning-bg $transition_function-button_warning-bg $transition_delay-button_warning-bg,
|
|
66
|
+
border $transition_duration-button_warning-border $transition_function-button_warning-border $transition_delay-button_warning-border;
|
|
67
|
+
transform:scale($transform_scale-button_warning);
|
|
68
|
+
|
|
59
69
|
&:hover {
|
|
60
70
|
background-color: $color-button_warning-bg-hover;
|
|
61
71
|
}
|
|
@@ -73,6 +83,10 @@ $module: #{$prefix}-button;
|
|
|
73
83
|
&-tertiary {
|
|
74
84
|
background-color: $color-button_tertiary-bg-default;
|
|
75
85
|
color: $color-button_tertiary-text-default;
|
|
86
|
+
transition: background-color $transition_duration-button_tertiary-bg $transition_function-button_tertiary-bg $transition_delay-button_tertiary-bg,
|
|
87
|
+
border $transition_duration-button_tertiary-border $transition_function-button_tertiary-border $transition_delay-button_tertiary-border;
|
|
88
|
+
transform:scale($transform_scale_button_tertiary);
|
|
89
|
+
|
|
76
90
|
&:hover {
|
|
77
91
|
background-color: $color-button_tertiary-bg-hover;
|
|
78
92
|
}
|
|
@@ -87,6 +101,10 @@ $module: #{$prefix}-button;
|
|
|
87
101
|
&-primary {
|
|
88
102
|
background-color: $color-button_primary-bg-default;
|
|
89
103
|
color: $color-button_primary-text-default;
|
|
104
|
+
transition: background-color $transition_duration-button_primary-bg $transition_function-button_primary-bg $transition_delay-button_primary-bg,
|
|
105
|
+
border $transition_duration-button_primary-border $transition_function-button_primary-border $transition_delay-button_primary-border;;
|
|
106
|
+
transform:scale($transform_scale-button_primary);
|
|
107
|
+
|
|
90
108
|
&:not(.#{$module}-borderless):not(.#{$module}-light):hover {
|
|
91
109
|
background-color: $color-button_primary-bg-hover;
|
|
92
110
|
}
|
|
@@ -103,6 +121,10 @@ $module: #{$prefix}-button;
|
|
|
103
121
|
background-color: $color-button_secondary-bg-default;
|
|
104
122
|
outline-color: $color-button_secondary-border-default;
|
|
105
123
|
color: $color-button_secondary-text-default;
|
|
124
|
+
transition: background-color $transition_duration-button_secondary-bg $transition_function-button_secondary-bg $transition_delay-button_secondary-bg,
|
|
125
|
+
border $transition_duration-button_secondary-border $transition_function-button_secondary-border $transition_delay-button_secondary-border;
|
|
126
|
+
transform:scale($transform_scale-button_secondary);
|
|
127
|
+
|
|
106
128
|
&:hover {
|
|
107
129
|
background-color: $color-button_secondary-bg-hover;
|
|
108
130
|
}
|
|
@@ -132,6 +154,9 @@ $module: #{$prefix}-button;
|
|
|
132
154
|
&-borderless {
|
|
133
155
|
background-color: transparent;
|
|
134
156
|
border: $width-button_borderless-border $color-button_borderless-border-default solid;
|
|
157
|
+
transition:background-color $transition_duration-button_borderless-bg $transition_function-button_borderless-bg $transition_delay-button_borderless-bg;
|
|
158
|
+
transform:scale($transform_scale-button_borderless);
|
|
159
|
+
|
|
135
160
|
&:not(.#{$module}-disabled):hover {
|
|
136
161
|
background-color: $color-button_borderless-bg-hover;
|
|
137
162
|
border: $width-button_borderless-border $color-button_borderless-border-hover solid;
|
|
@@ -145,6 +170,10 @@ $module: #{$prefix}-button;
|
|
|
145
170
|
&-light {
|
|
146
171
|
background-color: $color-button_light-bg-default;
|
|
147
172
|
border: $width-button_light-border $color-button_light-border-default solid;
|
|
173
|
+
transition: background-color $transition_duration-button_light-bg $transition_function-button_light-bg $transition_delay-button_light-bg,
|
|
174
|
+
border $transition_duration-button_light-border $transition_function-button_light-border $transition_delay-button_light-border;
|
|
175
|
+
transform:scale($transform_scale-button_light);
|
|
176
|
+
|
|
148
177
|
&:not(.#{$module}-disabled):hover {
|
|
149
178
|
background-color: $color-button_light-bg-hover;
|
|
150
179
|
border: $width-button_light-border $color-button_light-border-hover solid;
|
package/calendar/eventUtil.ts
CHANGED
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
endOfDay,
|
|
17
17
|
startOfDay,
|
|
18
18
|
toDate,
|
|
19
|
-
Locale
|
|
19
|
+
Locale,
|
|
20
20
|
} from 'date-fns';
|
|
21
21
|
import { EventObject, ParsedRangeEvent } from './foundation';
|
|
22
22
|
|
|
@@ -96,6 +96,8 @@ export interface DateObj {
|
|
|
96
96
|
month: string;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
export type weeekStartsOnEnum = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
100
|
+
|
|
99
101
|
export const calcRangeData = (value: Date, start: Date, rangeLen: number, mode: string, locale: Locale) => {
|
|
100
102
|
const today = getCurrDate();
|
|
101
103
|
const arr: Array<DateObj> = [];
|
|
@@ -125,8 +127,8 @@ export const calcRangeData = (value: Date, start: Date, rangeLen: number, mode:
|
|
|
125
127
|
* @returns {object[]} { date: Date, dayString: string, ind: number, isToday: boolean, isWeekend: boolean, weekday: string }
|
|
126
128
|
* create weekly object array
|
|
127
129
|
*/
|
|
128
|
-
export const calcWeekData = (value: Date, mode = 'week', locale: Locale) => {
|
|
129
|
-
const start = startOfWeek(value);
|
|
130
|
+
export const calcWeekData = (value: Date, mode = 'week', locale: Locale, weekStartsOn: weeekStartsOnEnum) => {
|
|
131
|
+
const start = startOfWeek(value, { weekStartsOn });
|
|
130
132
|
return calcRangeData(value, start, 7, mode, locale);
|
|
131
133
|
};
|
|
132
134
|
|