@fox-js/foxui-pad 4.1.5 → 4.1.6
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/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +6398 -6297
- package/dist/index.umd.js +1 -1
- package/dist/style.css +58 -41
- package/dist/style.js +1 -1
- package/dist/theme/common/base.scss +44 -0
- package/dist/theme/common/border.scss +25 -0
- package/dist/theme/common/color.scss +143 -0
- package/dist/theme/common/fill.scss +38 -0
- package/dist/theme/common/shadow.scss +19 -0
- package/dist/theme/common/typography.scss +34 -0
- package/dist/theme/common/var.scss +7 -0
- package/dist/theme/components/actionsheet.scss +57 -0
- package/dist/theme/components/buttons-item.scss +17 -0
- package/dist/theme/components/calendar.scss +35 -0
- package/dist/theme/components/cascader.scss +37 -0
- package/dist/theme/components/content.scss +17 -0
- package/dist/theme/components/dialog.scss +53 -0
- package/dist/theme/components/floating-button.scss +25 -0
- package/dist/theme/components/floating-window.scss +36 -0
- package/dist/theme/components/footer-bar.scss +24 -0
- package/dist/theme/components/group.scss +32 -0
- package/dist/theme/components/header-bar.scss +39 -0
- package/dist/theme/components/hint-text.scss +24 -0
- package/dist/theme/components/index.scss +36 -0
- package/dist/theme/components/infiniteloading.scss +16 -0
- package/dist/theme/components/input-item.scss +47 -0
- package/dist/theme/components/input-number-item.scss +23 -0
- package/dist/theme/components/input.scss +20 -0
- package/dist/theme/components/link-item.scss +19 -0
- package/dist/theme/components/messagebox.scss +68 -0
- package/dist/theme/components/numberkeyboard.scss +37 -0
- package/dist/theme/components/picker.scss +28 -0
- package/dist/theme/components/popover-dialog.scss +28 -0
- package/dist/theme/components/popup-wrapper.scss +47 -0
- package/dist/theme/components/popup.scss +21 -0
- package/dist/theme/components/price.scss +24 -0
- package/dist/theme/components/radio.scss +36 -0
- package/dist/theme/components/row-item.scss +20 -0
- package/dist/theme/components/searchbar.scss +29 -0
- package/dist/theme/components/shortpassword.scss +19 -0
- package/dist/theme/components/slot-item.scss +17 -0
- package/dist/theme/components/steps-bar.scss +59 -0
- package/dist/theme/components/switch-item.scss +16 -0
- package/dist/theme/components/tabs-bar.scss +110 -0
- package/dist/theme/components/tabs-frame.scss +16 -0
- package/dist/theme/components/text.scss +38 -0
- package/dist/theme/components/toast.scss +22 -0
- package/dist/theme/dark/css-vars.scss +31 -0
- package/dist/theme/dark/var.scss +10 -0
- package/dist/theme/index.scss +162 -0
- package/dist/theme/mixins/_css-var.scss +47 -0
- package/dist/theme/mixins/index.scss +1 -0
- package/dist/theme/readme.md +244 -0
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 动作面板 组件 Design Token
|
|
10
|
+
$actionsheet: () !default;
|
|
11
|
+
$actionsheet: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'width': 40%,
|
|
14
|
+
'padding': 0px 16px,
|
|
15
|
+
'row-gap': 10px,
|
|
16
|
+
'header-height': 60px,
|
|
17
|
+
'header-title-font-size': $font-size-large,
|
|
18
|
+
'header-title-font-weight': 500,
|
|
19
|
+
'header-title-color': $title-color,
|
|
20
|
+
'header-title-align': center,
|
|
21
|
+
'header-icon-color': $text-color-secondary,
|
|
22
|
+
'header-icon-size': $font-size-base,
|
|
23
|
+
'searchbar-height': 40px,
|
|
24
|
+
'searchbar-box-shadow': none,
|
|
25
|
+
'searchbar-border-radius': 12px,
|
|
26
|
+
'searchbar-background': $fill-color-base,
|
|
27
|
+
'tagbar-gap': 8px,
|
|
28
|
+
'tag-padding': 2px 6px,
|
|
29
|
+
'tag-color': $color-primary,
|
|
30
|
+
'tag-background-color': $color-primary-light-9,
|
|
31
|
+
'tag-border': 1px solid $color-primary-light-8,
|
|
32
|
+
'tag-border-radius': 4px,
|
|
33
|
+
'tag-font-size': $font-size-small,
|
|
34
|
+
'list-height': 380px,
|
|
35
|
+
'list-inner-height': 100%,
|
|
36
|
+
'list-item-height': auto,
|
|
37
|
+
'list-item-gutter': 28px,
|
|
38
|
+
'list-item-label-padding': 0 10px 0 0,
|
|
39
|
+
'list-item-text-font-size': $font-size-medium,
|
|
40
|
+
'list-item-text-font-weight': 400,
|
|
41
|
+
'list-item-text-line-height': 24px,
|
|
42
|
+
'list-item-text-color': $title-color,
|
|
43
|
+
'list-item-text-margin': 0,
|
|
44
|
+
'list-item-subtext-margin': 8px 0 0 0,
|
|
45
|
+
'list-item-subtext-font-size': $font-size-small,
|
|
46
|
+
'list-item-subtext-font-weight': 400,
|
|
47
|
+
'list-item-subtext-color': $text-color-secondary,
|
|
48
|
+
'list-item-icon-color': $disabled-color,
|
|
49
|
+
'list-item-icon-color-active': $color-primary,
|
|
50
|
+
'list-item-icon-color-disable': $disabled-color,
|
|
51
|
+
'list-item-icon-size': $font-size-medium,
|
|
52
|
+
'footer-height': 60px,
|
|
53
|
+
'footer-button-min-width': 100%,
|
|
54
|
+
'footer-button-height': 36px
|
|
55
|
+
),
|
|
56
|
+
$actionsheet
|
|
57
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 按钮组 组件 Design Token
|
|
10
|
+
$buttons-item: () !default;
|
|
11
|
+
$buttons-item: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'dropdown-link-icon-size': $font-size-medium,
|
|
14
|
+
'dropdown-link-text-font-size': $font-size-small
|
|
15
|
+
),
|
|
16
|
+
$buttons-item
|
|
17
|
+
);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 日历 组件 Design Token
|
|
10
|
+
$calendar: () !default;
|
|
11
|
+
$calendar: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'width': 40%,
|
|
14
|
+
'primary-color': $color-primary,
|
|
15
|
+
'choose-color': $color-primary,
|
|
16
|
+
'choose-font-color': $color-primary,
|
|
17
|
+
'base-color': $title-color,
|
|
18
|
+
'disable-color': $disabled-color,
|
|
19
|
+
'base-font': $font-size-medium,
|
|
20
|
+
'title-font': $font-size-large,
|
|
21
|
+
'title-font-weight': 500,
|
|
22
|
+
'sub-title-font': $font-size-base,
|
|
23
|
+
'text-font': $font-size-small,
|
|
24
|
+
'day-font': $font-size-medium,
|
|
25
|
+
'day-active-border-radius': 0px,
|
|
26
|
+
'day-font-weight': 500,
|
|
27
|
+
'day67-font-color': $color-primary,
|
|
28
|
+
'month-title-font-size': inherit,
|
|
29
|
+
'popup-height': 85vh,
|
|
30
|
+
'footer-button-min-width': 100%,
|
|
31
|
+
'footer-button-height': 44px,
|
|
32
|
+
'footer-button-background-color': $color-primary
|
|
33
|
+
),
|
|
34
|
+
$calendar
|
|
35
|
+
);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 级联选择器 组件 Design Token
|
|
10
|
+
$cascader: () !default;
|
|
11
|
+
$cascader: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'width': 40%,
|
|
14
|
+
'font-size': $font-size-base,
|
|
15
|
+
'line-height': 22px,
|
|
16
|
+
'tabs-titles-background-color': $white,
|
|
17
|
+
'tabs-titles-item-padding': 0 10px,
|
|
18
|
+
'bar-padding': 24px 20px 12px 20px,
|
|
19
|
+
'bar-title-align': center,
|
|
20
|
+
'bar-title-color': $title-color,
|
|
21
|
+
'bar-title-font-weight': bold,
|
|
22
|
+
'bar-title-font-size': $font-size-large,
|
|
23
|
+
'bar-title-line-height': 1.5,
|
|
24
|
+
'bar-title-icon-color': $text-color-secondary,
|
|
25
|
+
'bar-title-icon-size': $font-size-base,
|
|
26
|
+
'bar-searchbar-box-shadow': none,
|
|
27
|
+
'bar-searchbar-border-radius': 12px,
|
|
28
|
+
'bar-searchbar-background': $fill-color-base,
|
|
29
|
+
'bar-searchbar-icon-size': 16px,
|
|
30
|
+
'bar-searchbar-icon-color': $text-color-secondary,
|
|
31
|
+
'item-padding': 10px 20px,
|
|
32
|
+
'item-color': $title-color,
|
|
33
|
+
'item-font-size': $font-size-base,
|
|
34
|
+
'item-active-color': $color-primary
|
|
35
|
+
),
|
|
36
|
+
$cascader
|
|
37
|
+
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 页面内容区 组件 Design Token
|
|
10
|
+
$content: () !default;
|
|
11
|
+
$content: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'background': $white,
|
|
14
|
+
'height-inner': 100%,
|
|
15
|
+
),
|
|
16
|
+
$content
|
|
17
|
+
);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 对话框 组件 Design Token
|
|
10
|
+
$dialog: () !default;
|
|
11
|
+
$dialog: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'popup-width': 80%,
|
|
14
|
+
'popup-height': auto,
|
|
15
|
+
'popup-border-radius': 20px,
|
|
16
|
+
'background': transparent,
|
|
17
|
+
'min-height': 156px,
|
|
18
|
+
'padding': 28px 24px 16px 24px,
|
|
19
|
+
'header-height': 20px,
|
|
20
|
+
'header-background': transparent,
|
|
21
|
+
'header-padding': 0px,
|
|
22
|
+
'header-layout': row nowrap,
|
|
23
|
+
'header-justify-content': center,
|
|
24
|
+
'header-align-items': center,
|
|
25
|
+
'header-font-size': $font-size-medium,
|
|
26
|
+
'header-font-weight': normal,
|
|
27
|
+
'header-color': $title-color,
|
|
28
|
+
'header-close-icon-color': $text-color-secondary,
|
|
29
|
+
'header-close-icon-size': $font-size-medium,
|
|
30
|
+
'body-background': transparent,
|
|
31
|
+
'body-margin': 20px 0px,
|
|
32
|
+
'body-padding': 0px,
|
|
33
|
+
'content-padding': 0px,
|
|
34
|
+
'content-text-align': center,
|
|
35
|
+
'content-font-size': $font-size-small,
|
|
36
|
+
'content-line-height': 16px,
|
|
37
|
+
'content-color': $text-color-regular,
|
|
38
|
+
'footer-border-top': 1px solid $border-color-lighter,
|
|
39
|
+
'footer-height': auto,
|
|
40
|
+
'footer-background': transparent,
|
|
41
|
+
'footer-padding': 0px,
|
|
42
|
+
'footer-layout': row nowrap,
|
|
43
|
+
'footer-justify-content': space-around,
|
|
44
|
+
'footer-align-items': center,
|
|
45
|
+
'footer-button-padding': 10px,
|
|
46
|
+
'footer-button-font-size': $font-size-medium,
|
|
47
|
+
'footer-button-color': $title-color-secondary,
|
|
48
|
+
'footer-button-color-primary': $color-danger,
|
|
49
|
+
'footer-button-font-weight': 400,
|
|
50
|
+
'footer-button-border-left': 1px solid $border-color-lighter
|
|
51
|
+
),
|
|
52
|
+
$dialog
|
|
53
|
+
);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 悬浮按钮 组件 Design Token
|
|
10
|
+
$floating-button: () !default;
|
|
11
|
+
$floating-button: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'position': absolute,
|
|
14
|
+
'z-index': 3600,
|
|
15
|
+
'width': 52px,
|
|
16
|
+
'height': 52px,
|
|
17
|
+
'opacity': 1,
|
|
18
|
+
'color': $white,
|
|
19
|
+
'border-radius': 50%,
|
|
20
|
+
'background': $color-primary,
|
|
21
|
+
'box-shadow': $box-shadow-light,
|
|
22
|
+
'icon-size': $font-size-extra-large
|
|
23
|
+
),
|
|
24
|
+
$floating-button
|
|
25
|
+
);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 悬浮窗 组件 Design Token
|
|
10
|
+
$floating-window: () !default;
|
|
11
|
+
$floating-window: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'header-height': 40px,
|
|
14
|
+
'header-background': $fill-color-base,
|
|
15
|
+
'header-padding': 0 25px,
|
|
16
|
+
'border-radius': 4px,
|
|
17
|
+
'width': 50dvw,
|
|
18
|
+
'top': 15dvh,
|
|
19
|
+
'left': 25dvw,
|
|
20
|
+
'background': $background-color,
|
|
21
|
+
'box-shadow': $box-shadow,
|
|
22
|
+
'title-font-size': $font-size-medium,
|
|
23
|
+
'content-font-size': $font-size-base,
|
|
24
|
+
'z-index': 2001,
|
|
25
|
+
'collapse-color': $color-primary,
|
|
26
|
+
'collapse-font-size': $font-size-base,
|
|
27
|
+
'close-color': inherit,
|
|
28
|
+
'close-hover-color': $color-primary,
|
|
29
|
+
'fixednav-z-index': 2000,
|
|
30
|
+
'fixednav-bg': $color-primary,
|
|
31
|
+
'fixednav-color': $white,
|
|
32
|
+
'fixednav-width': 80px,
|
|
33
|
+
'fixednav-height': 50px
|
|
34
|
+
),
|
|
35
|
+
$floating-window
|
|
36
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 页面底部导航 组件 Design Token
|
|
10
|
+
$footer-bar: () !default;
|
|
11
|
+
$footer-bar: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'fixed': absolute,
|
|
14
|
+
'min-height': 50px,
|
|
15
|
+
'padding': 7px 0,
|
|
16
|
+
'box-sizing': content-box,
|
|
17
|
+
'z-index': 10,
|
|
18
|
+
'background-color': $white,
|
|
19
|
+
'border-top': 1px solid $border-color-lighter,
|
|
20
|
+
'border-bottom': 1px solid $border-color-lighter,
|
|
21
|
+
'box-shadow': none,
|
|
22
|
+
),
|
|
23
|
+
$footer-bar
|
|
24
|
+
);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 组布局 组件 Design Token
|
|
10
|
+
$group: () !default;
|
|
11
|
+
$group: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'padding': 0,
|
|
14
|
+
'header-padding': 0,
|
|
15
|
+
'header-margin': 0 0 10px 0,
|
|
16
|
+
'header-color': $title-color,
|
|
17
|
+
'header-font-size': $font-size-base,
|
|
18
|
+
'header-font-weight': 400,
|
|
19
|
+
'header-line-height': 1,
|
|
20
|
+
'header-mark-color': $color-primary,
|
|
21
|
+
'header-mark-width': 3px,
|
|
22
|
+
'header-mark-height': 15px,
|
|
23
|
+
'header-collapse-font-size': $font-size-base,
|
|
24
|
+
'header-collapse-color': $color-primary,
|
|
25
|
+
'header-collapse-gutter': 2px,
|
|
26
|
+
'header-collapse-icon-size': $font-size-small,
|
|
27
|
+
'background-color': inherit,
|
|
28
|
+
'flow-padding': 0,
|
|
29
|
+
'grid-padding': 0,
|
|
30
|
+
),
|
|
31
|
+
$group
|
|
32
|
+
);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 页面头部导航 组件 Design Token
|
|
10
|
+
$header-bar: () !default;
|
|
11
|
+
$header-bar: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'fixed': absolute,
|
|
14
|
+
'min-height': auto,
|
|
15
|
+
'z-index': 10,
|
|
16
|
+
'box-sizing': content-box,
|
|
17
|
+
'color': $title-color,
|
|
18
|
+
'background-color': $white,
|
|
19
|
+
'border-top': 0px solid $border-color-lighter,
|
|
20
|
+
'border-bottom': 1px solid $border-color-lighter,
|
|
21
|
+
'box-shadow': 0px 1px 7px 0px $border-color-lighter,
|
|
22
|
+
'left-font-size': $font-size-medium,
|
|
23
|
+
'left-icon-size': $font-size-large,
|
|
24
|
+
'left-padding': 0 16px,
|
|
25
|
+
'right-font-size': $font-size-medium,
|
|
26
|
+
'right-padding': 0 16px,
|
|
27
|
+
'right-icon-size': $font-size-large,
|
|
28
|
+
'title-font-size': $font-size-medium,
|
|
29
|
+
'title-icon-size': $font-size-large,
|
|
30
|
+
'inner-height': 44px,
|
|
31
|
+
'inner-background-color': unset,
|
|
32
|
+
'inner-padding': 0px,
|
|
33
|
+
'inner-box-sizing': content-box,
|
|
34
|
+
'bottom-height': auto,
|
|
35
|
+
'bottom-padding': 0px,
|
|
36
|
+
'bottom-box-sizing': border-box,
|
|
37
|
+
),
|
|
38
|
+
$header-bar
|
|
39
|
+
);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 提示文本 组件 Design Token
|
|
10
|
+
$hint-text: () !default;
|
|
11
|
+
$hint-text: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'font-size': $font-size-base,
|
|
14
|
+
'font-size-small': $font-size-small,
|
|
15
|
+
'font-size-large': $font-size-large,
|
|
16
|
+
'padding': 6px 8px,
|
|
17
|
+
'box-shadow': $box-shadow,
|
|
18
|
+
'color': $white,
|
|
19
|
+
'background-color': $overlay-text-bg-color,
|
|
20
|
+
'z-index': 3000,
|
|
21
|
+
'arrow-size': 6px
|
|
22
|
+
),
|
|
23
|
+
$hint-text
|
|
24
|
+
);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// 组件 Design Token 统一导出
|
|
2
|
+
@forward 'actionsheet';
|
|
3
|
+
@forward 'buttons-item';
|
|
4
|
+
@forward 'calendar';
|
|
5
|
+
@forward 'cascader';
|
|
6
|
+
@forward 'content';
|
|
7
|
+
@forward 'dialog';
|
|
8
|
+
@forward 'floating-button';
|
|
9
|
+
@forward 'floating-window';
|
|
10
|
+
@forward 'footer-bar';
|
|
11
|
+
@forward 'group';
|
|
12
|
+
@forward 'header-bar';
|
|
13
|
+
@forward 'hint-text';
|
|
14
|
+
@forward 'infiniteloading';
|
|
15
|
+
@forward 'input';
|
|
16
|
+
@forward 'input-item';
|
|
17
|
+
@forward 'input-number-item';
|
|
18
|
+
@forward 'link-item';
|
|
19
|
+
@forward 'messagebox';
|
|
20
|
+
@forward 'numberkeyboard';
|
|
21
|
+
@forward 'picker';
|
|
22
|
+
@forward 'popover-dialog';
|
|
23
|
+
@forward 'popup';
|
|
24
|
+
@forward 'popup-wrapper';
|
|
25
|
+
@forward 'price';
|
|
26
|
+
@forward 'radio';
|
|
27
|
+
@forward 'row-item';
|
|
28
|
+
@forward 'searchbar';
|
|
29
|
+
@forward 'shortpassword';
|
|
30
|
+
@forward 'slot-item';
|
|
31
|
+
@forward 'steps-bar';
|
|
32
|
+
@forward 'switch-item';
|
|
33
|
+
@forward 'tabs-bar';
|
|
34
|
+
@forward 'tabs-frame';
|
|
35
|
+
@forward 'text';
|
|
36
|
+
@forward 'toast';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 无限加载 组件 Design Token
|
|
10
|
+
$infiniteloading: () !default;
|
|
11
|
+
$infiniteloading: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'bottom-color': $disabled-color
|
|
14
|
+
),
|
|
15
|
+
$infiniteloading
|
|
16
|
+
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 输入框 组件 Design Token
|
|
10
|
+
$input-item: () !default;
|
|
11
|
+
$input-item: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'min-width': 0,
|
|
14
|
+
'text-align': right,
|
|
15
|
+
'label-width': 30%,
|
|
16
|
+
'label-font-size': $font-size-base,
|
|
17
|
+
'label-font-weight': 400,
|
|
18
|
+
'label-line-height': auto,
|
|
19
|
+
'label-color': $black,
|
|
20
|
+
'label-padding-top': 0,
|
|
21
|
+
'label-padding-left': 0 10px 0 0,
|
|
22
|
+
'label-padding-right': 0 10px 0 0,
|
|
23
|
+
'append-width': 30px,
|
|
24
|
+
'append-font-size': $font-size-base,
|
|
25
|
+
'append-action-icon-size': $font-size-base,
|
|
26
|
+
'append-action-icon-color': $disabled-color,
|
|
27
|
+
'color': $black,
|
|
28
|
+
'border-bottom': 0px solid $border-color-light,
|
|
29
|
+
'disabled-color': $disabled-color,
|
|
30
|
+
'readonly-color': $black,
|
|
31
|
+
'placeholder-color': $disabled-color,
|
|
32
|
+
'require-color': $required-color,
|
|
33
|
+
'font-size': $font-size-base,
|
|
34
|
+
'height': 24px,
|
|
35
|
+
'tip-icon-margin': 0 4px 0 0,
|
|
36
|
+
'tip-icon-size': $font-size-extra-small,
|
|
37
|
+
'tip-font-size': $font-size-small,
|
|
38
|
+
'tip-height': 16px,
|
|
39
|
+
'tip-info-color': $color-info,
|
|
40
|
+
'tip-warn-color': $color-warning,
|
|
41
|
+
'tip-error-color': $color-danger,
|
|
42
|
+
'error-line-color': $color-danger,
|
|
43
|
+
'unit-color': $black,
|
|
44
|
+
'unit-font-size': $font-size-base,
|
|
45
|
+
),
|
|
46
|
+
$input-item
|
|
47
|
+
);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 数字输入框 组件 Design Token
|
|
10
|
+
$input-number-item: () !default;
|
|
11
|
+
$input-number-item: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'padding': 0 29px 0 0,
|
|
14
|
+
'input-width': 40px,
|
|
15
|
+
'input-color': $black,
|
|
16
|
+
'input-background': $fill-color-base,
|
|
17
|
+
'left-color': $black,
|
|
18
|
+
'left-background': $fill-color-base,
|
|
19
|
+
'right-color': $white,
|
|
20
|
+
'right-background': $color-primary
|
|
21
|
+
),
|
|
22
|
+
$input-number-item
|
|
23
|
+
);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 输入框 组件 Design Token
|
|
10
|
+
$input: () !default;
|
|
11
|
+
$input: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'border-bottom': $border-color-light,
|
|
14
|
+
'color': $text-color-regular,
|
|
15
|
+
'disabled-color': $disabled-color,
|
|
16
|
+
'required-color': $required-color,
|
|
17
|
+
'font-size': $font-size-base
|
|
18
|
+
),
|
|
19
|
+
$input
|
|
20
|
+
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 链接 组件 Design Token
|
|
10
|
+
$link-item: () !default;
|
|
11
|
+
$link-item: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'padding': 0 5px 0 0,
|
|
14
|
+
'margin': 0,
|
|
15
|
+
'sub-font-size': $font-size-small,
|
|
16
|
+
'sub-color': $text-color-secondary
|
|
17
|
+
),
|
|
18
|
+
$link-item
|
|
19
|
+
);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../common/color' as *;
|
|
3
|
+
@use '../common/typography' as *;
|
|
4
|
+
@use '../common/border' as *;
|
|
5
|
+
@use '../common/fill' as *;
|
|
6
|
+
@use '../common/shadow' as *;
|
|
7
|
+
@use '../common/base' as *;
|
|
8
|
+
|
|
9
|
+
// 消息框 组件 Design Token
|
|
10
|
+
$messagebox: () !default;
|
|
11
|
+
$messagebox: map.deep-merge(
|
|
12
|
+
(
|
|
13
|
+
'z-index': 3000,
|
|
14
|
+
'width': 80%,
|
|
15
|
+
'height': auto,
|
|
16
|
+
'font-size': $font-size-base,
|
|
17
|
+
'font-weight': $font-weight-bold,
|
|
18
|
+
'line-height': 24px,
|
|
19
|
+
'color': $title-color,
|
|
20
|
+
'text-align': center,
|
|
21
|
+
'background': $white,
|
|
22
|
+
'background-info': linear-gradient(180deg, $color-info-light-9 0%, $white 100%),
|
|
23
|
+
'background-success': linear-gradient(180deg, $color-success-light-9 0%, $white 100%),
|
|
24
|
+
'background-warning': linear-gradient(180deg, $color-warning-light-9 0%, $white 100%),
|
|
25
|
+
'background-error': linear-gradient(180deg, $color-danger-light-9 0%, $white 100%),
|
|
26
|
+
'border-radius': 8px,
|
|
27
|
+
'box-shadow': $box-shadow-light,
|
|
28
|
+
'padding-top': 24px,
|
|
29
|
+
'padding-right': 16px,
|
|
30
|
+
'padding-bottom': 0px,
|
|
31
|
+
'padding-left': 16px,
|
|
32
|
+
'header-title-padding': 10px 0,
|
|
33
|
+
'header-title-font-size': $font-size-medium,
|
|
34
|
+
'header-title-font-weight': 600,
|
|
35
|
+
'header-title-color': $title-color,
|
|
36
|
+
'header-icon-color': $text-color-secondary,
|
|
37
|
+
'header-icon-size': 110px,
|
|
38
|
+
'header-close-icon-color': $text-color-secondary,
|
|
39
|
+
'header-close-icon-size': $font-size-medium,
|
|
40
|
+
'body-box-sizing': border-box,
|
|
41
|
+
'body-max-height': 60vh,
|
|
42
|
+
'group-title-padding': 10px 16px 10px 16px,
|
|
43
|
+
'group-title-font-size': $font-size-small,
|
|
44
|
+
'group-title-font-weight': 400,
|
|
45
|
+
'group-title-line-height': 1.5,
|
|
46
|
+
'group-title-color': $title-color-secondary,
|
|
47
|
+
'group-title-text-align': left,
|
|
48
|
+
'groups-rows-background-info': $color-info-light-9,
|
|
49
|
+
'groups-rows-background-success': $color-success-light-9,
|
|
50
|
+
'groups-rows-background-warning': $color-warning-light-9,
|
|
51
|
+
'groups-rows-background-error': $color-danger-light-9,
|
|
52
|
+
'group-row-padding': 10px 0,
|
|
53
|
+
'group-row-font-size': $font-size-base,
|
|
54
|
+
'group-row-font-weight': 400,
|
|
55
|
+
'group-row-line-height': 1.6,
|
|
56
|
+
'group-row-color': $title-color,
|
|
57
|
+
'group-row-text-align': left,
|
|
58
|
+
'footer-margin': 16px 0 0 0,
|
|
59
|
+
'footer-border-top': 1px solid $border-color-lighter,
|
|
60
|
+
'footer-width': 100%,
|
|
61
|
+
'footer-height': auto,
|
|
62
|
+
'footer-button-padding': 10px,
|
|
63
|
+
'footer-button-font-size': $font-size-medium,
|
|
64
|
+
'footer-button-font-weight': $font-weight-bold,
|
|
65
|
+
'footer-button-border-left': 1px solid $border-color-lighter
|
|
66
|
+
),
|
|
67
|
+
$messagebox
|
|
68
|
+
);
|