@fox-js/foxui 4.0.1-93 → 4.0.1-95

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.
Files changed (99) hide show
  1. package/dist/index.cjs.js +2 -2
  2. package/dist/index.esm.js +5783 -6121
  3. package/dist/index.umd.js +2 -2
  4. package/dist/locale/index.d.ts +0 -90
  5. package/dist/locale/index.esm.js +0 -78
  6. package/dist/locale/index.umd.js +1 -1
  7. package/dist/style.css +572 -867
  8. package/dist/style.js +1 -1
  9. package/dist/theme/common/base.scss +39 -0
  10. package/dist/theme/common/border.scss +16 -0
  11. package/dist/theme/common/color.scss +126 -0
  12. package/dist/theme/common/fill.scss +25 -0
  13. package/dist/theme/common/shadow.scss +28 -0
  14. package/dist/theme/common/typography.scss +38 -0
  15. package/dist/theme/common/var.scss +6 -0
  16. package/dist/theme/components/actionsheet.scss +49 -0
  17. package/dist/theme/components/avatar.scss +15 -0
  18. package/dist/theme/components/backtop.scss +10 -0
  19. package/dist/theme/components/badge.scss +23 -0
  20. package/dist/theme/components/button.scss +97 -0
  21. package/dist/theme/components/buttons-item.scss +12 -0
  22. package/dist/theme/components/calendar.scss +31 -0
  23. package/dist/theme/components/card.scss +16 -0
  24. package/dist/theme/components/cascader.scss +23 -0
  25. package/dist/theme/components/cell.scss +44 -0
  26. package/dist/theme/components/checkbox.scss +35 -0
  27. package/dist/theme/components/circleprogress.scss +16 -0
  28. package/dist/theme/components/collapse.scss +24 -0
  29. package/dist/theme/components/content.scss +10 -0
  30. package/dist/theme/components/countdown.scss +11 -0
  31. package/dist/theme/components/dialog.scss +48 -0
  32. package/dist/theme/components/divider.scss +22 -0
  33. package/dist/theme/components/elevator.scss +49 -0
  34. package/dist/theme/components/ellipsis.scss +10 -0
  35. package/dist/theme/components/empty.scss +18 -0
  36. package/dist/theme/components/fixednav.scss +14 -0
  37. package/dist/theme/components/floating-button.scss +23 -0
  38. package/dist/theme/components/footer-bar.scss +16 -0
  39. package/dist/theme/components/footer.scss +11 -0
  40. package/dist/theme/components/form.scss +24 -0
  41. package/dist/theme/components/grid.scss +18 -0
  42. package/dist/theme/components/group.scss +28 -0
  43. package/dist/theme/components/header-bar.scss +36 -0
  44. package/dist/theme/components/hint-text.scss +22 -0
  45. package/dist/theme/components/icon.scss +11 -0
  46. package/dist/theme/components/index.scss +75 -0
  47. package/dist/theme/components/indicator.scss +18 -0
  48. package/dist/theme/components/infiniteloading.scss +12 -0
  49. package/dist/theme/components/input-number.scss +38 -0
  50. package/dist/theme/components/input.scss +61 -0
  51. package/dist/theme/components/link-item.scss +15 -0
  52. package/dist/theme/components/list.scss +9 -0
  53. package/dist/theme/components/menu.scss +31 -0
  54. package/dist/theme/components/messagebox.scss +55 -0
  55. package/dist/theme/components/navbar.scss +24 -0
  56. package/dist/theme/components/noticebar.scss +20 -0
  57. package/dist/theme/components/notify.scss +21 -0
  58. package/dist/theme/components/numberkeyboard.scss +30 -0
  59. package/dist/theme/components/pagination.scss +22 -0
  60. package/dist/theme/components/picker.scss +24 -0
  61. package/dist/theme/components/popover-dialog.scss +23 -0
  62. package/dist/theme/components/popover.scss +20 -0
  63. package/dist/theme/components/popup-wrapper.scss +40 -0
  64. package/dist/theme/components/popup.scss +13 -0
  65. package/dist/theme/components/price.scss +19 -0
  66. package/dist/theme/components/progress.scss +32 -0
  67. package/dist/theme/components/radio.scss +33 -0
  68. package/dist/theme/components/range.scss +18 -0
  69. package/dist/theme/components/rate.scss +13 -0
  70. package/dist/theme/components/row-item.scss +14 -0
  71. package/dist/theme/components/searchbar.scss +28 -0
  72. package/dist/theme/components/shortpassword.scss +17 -0
  73. package/dist/theme/components/sidenavbar.scss +27 -0
  74. package/dist/theme/components/skeleton.scss +10 -0
  75. package/dist/theme/components/slot-item.scss +10 -0
  76. package/dist/theme/components/steps-bar.scss +55 -0
  77. package/dist/theme/components/steps.scss +36 -0
  78. package/dist/theme/components/swiper.scss +12 -0
  79. package/dist/theme/components/switch-item.scss +9 -0
  80. package/dist/theme/components/switch.scss +20 -0
  81. package/dist/theme/components/tabbar.scss +21 -0
  82. package/dist/theme/components/table.scss +15 -0
  83. package/dist/theme/components/tabs-bar.scss +110 -0
  84. package/dist/theme/components/tabs-frame.scss +9 -0
  85. package/dist/theme/components/tag.scss +41 -0
  86. package/dist/theme/components/text.scss +36 -0
  87. package/dist/theme/components/textarea.scss +18 -0
  88. package/dist/theme/components/toast.scss +18 -0
  89. package/dist/theme/components/trendarrow.scss +12 -0
  90. package/dist/theme/components/uploader.scss +12 -0
  91. package/dist/theme/components/watermark.scss +9 -0
  92. package/dist/theme/dark/css-vars.scss +27 -0
  93. package/dist/theme/dark/var.scss +77 -0
  94. package/dist/theme/index.scss +248 -0
  95. package/dist/theme/mixins/_css-var.scss +39 -0
  96. package/dist/theme/mixins/index.scss +1 -0
  97. package/dist/theme/readme.md +359 -0
  98. package/dist/types/index.d.ts +146 -114
  99. package/package.json +3 -1
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+
3
+ $swiper: () !default;
4
+ $swiper: map.deep-merge(
5
+ (
6
+ 'pagination-item-border-radius': 2px,
7
+ 'pagination-item-height': 3px,
8
+ 'pagination-item-margin-right': 7px,
9
+ 'pagination-item-width': 8px,
10
+ ),
11
+ $swiper
12
+ );
@@ -0,0 +1,9 @@
1
+ @use 'sass:map';
2
+
3
+ $switch-item: () !default;
4
+ $switch-item: map.deep-merge(
5
+ (
6
+ 'padding': 0 29px 0 0,
7
+ ),
8
+ $switch-item
9
+ );
@@ -0,0 +1,20 @@
1
+ @use 'sass:map';
2
+ @use '../common/border' as *;
3
+ @use '../common/fill' as *;
4
+
5
+ $switch: () !default;
6
+ $switch: map.deep-merge(
7
+ (
8
+ 'border-radius': 21px,
9
+ 'close-bg-color': $border-color-lighter,
10
+ 'close-cline-bg-color': $fill-color-base,
11
+ 'height': 21px,
12
+ 'inside-close-transform': translateX(30%),
13
+ 'inside-height': 13px,
14
+ 'inside-open-transform': translateX(146%),
15
+ 'inside-width': 13px,
16
+ 'line-height': 21px,
17
+ 'width': 36px,
18
+ ),
19
+ $switch
20
+ );
@@ -0,0 +1,21 @@
1
+ @use 'sass:map';
2
+ @use '../common/color' as *;
3
+ @use '../common/typography' as *;
4
+ @use '../common/border' as *;
5
+ @use '../common/base' as *;
6
+
7
+ $tabbar: () !default;
8
+ $tabbar: map.deep-merge(
9
+ (
10
+ 'active-color': $color-primary,
11
+ 'border-bottom': 1px solid $border-color-lighter,
12
+ 'border-top': 1px solid $border-color-lighter,
13
+ 'box-shadow': none,
14
+ 'height': 50px,
15
+ 'item-text-font-size': $font-size-extra-small,
16
+ 'item-text-line-height': initial,
17
+ 'unactive-color': $color-primary,
18
+ 'word-margin-top': auto,
19
+ ),
20
+ $tabbar
21
+ );
@@ -0,0 +1,15 @@
1
+ @use 'sass:map';
2
+ @use '../common/color' as *;
3
+ @use '../common/border' as *;
4
+ @use '../common/fill' as *;
5
+
6
+ $table: () !default;
7
+ $table: map.deep-merge(
8
+ (
9
+ 'border-color': $border-color-base,
10
+ 'cols-padding': 10px,
11
+ 'tr-even-bg-color': $fill-color-base,
12
+ 'tr-odd-bg-color': $white,
13
+ ),
14
+ $table
15
+ );
@@ -0,0 +1,110 @@
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
+ $tabs-bar: () !default;
10
+ $tabs-bar: map.deep-merge(
11
+ (
12
+ 'titles-height-horizontal': 44px,
13
+ 'titles-width-vertical': 100px,
14
+ 'titles-border-radius': 0,
15
+ 'titles-background': $fill-color-base,
16
+ 'item-doit-size': 7px,
17
+ 'item-tip-font-size': $font-size-extra-small,
18
+ 'item-tip-color': $white,
19
+ 'item-tip-background': $color-primary,
20
+ 'item-tip-box-shadow': 0 0 0 1px $white,
21
+ 'item-gutter': 10px,
22
+ 'item-gutter-horizontal': 0px,
23
+ 'item-gutter-vertical': 0px,
24
+ 'item-height-vertical': 40px,
25
+ 'item-min-width-horizontal': 50px,
26
+ 'item-font-size-large': $font-size-medium,
27
+ 'item-font-size-large-active': $font-size-medium,
28
+ 'item-font-size-default': $font-size-base,
29
+ 'item-font-size-default-active': $font-size-base,
30
+ 'item-font-size-small': $font-size-small,
31
+ 'item-font-size-small-active': $font-size-small,
32
+ 'item-color': $title-color,
33
+ 'item-color-active': $title-color,
34
+ 'item-color-disable': $disabled-color,
35
+ 'item-font-weight': normal,
36
+ 'item-font-weight-active': bold,
37
+ 'item-padding-horizontal': 0 12px,
38
+ 'item-padding-vertical': 0px,
39
+ 'item-line-border-radius': 0,
40
+ 'item-line-opacity': 1,
41
+ 'item-line-bottom': 0px,
42
+ 'item-line-color-horizontal': $color-primary,
43
+ 'item-line-color-vertical': $color-primary,
44
+ 'item-line-width-horizontal': 40px,
45
+ 'item-line-height-horizontal': 3px,
46
+ 'item-line-width-vertical': 3px,
47
+ 'item-line-height-vertical': 14px,
48
+ 'item-line-color': $color-primary,
49
+ 'navigation-width': 30px,
50
+ 'navigation-color': $title-color-secondary,
51
+ 'scroll-arrow-width': 20px,
52
+ 'scroll-arrow-color': $title-color-secondary,
53
+ 'item-gutter-button': 8px,
54
+ 'item-radius-button': 4px,
55
+ 'item-border-button': 1px solid transparent,
56
+ 'item-border-active-button': 1px solid transparent,
57
+ 'item-padding-button': 6px 12px,
58
+ 'item-width-button': auto,
59
+ 'item-height-button': auto,
60
+ 'item-font-size-button': $font-size-small,
61
+ 'item-font-size-active-button': $font-size-small,
62
+ 'item-font-weight-button': $font-weight-bold,
63
+ 'item-font-weight-active-button': $font-weight-bold,
64
+ 'item-color-button': $title-color-secondary,
65
+ 'item-color-active-button': $color-primary,
66
+ 'item-background-button': $white,
67
+ 'item-background-active-button': $white,
68
+ 'item-gutter-button-group': 0px,
69
+ 'item-radius-button-group': 8px,
70
+ 'item-border-width-button-group': 1px,
71
+ 'item-width-button-group': 105px,
72
+ 'item-height-button-group': 32px,
73
+ 'item-font-size-button-group': $font-size-base,
74
+ 'item-font-size-active-button-group': $font-size-base,
75
+ 'item-font-weight-button-group': $font-weight-bold,
76
+ 'item-font-weight-active-button-group': $font-weight-bold,
77
+ 'item-color-button-group': $color-primary,
78
+ 'item-color-active-button-group': $white,
79
+ 'item-background-button-group': $white,
80
+ 'item-background-active-button-group': $color-primary,
81
+ 'titles-border-radius-capsule': 16px,
82
+ 'titles-background-capsule': $fill-color-base,
83
+ 'titles-padding-capsule': 5px 8px,
84
+ 'item-gutter-capsule': 0px,
85
+ 'item-radius-capsule': 12px,
86
+ 'item-border-width-capsule': 1px,
87
+ 'item-width-capsule': 100px,
88
+ 'item-height-capsule': 29px,
89
+ 'item-font-size-capsule': $font-size-base,
90
+ 'item-font-size-active-capsule': $font-size-base,
91
+ 'item-font-weight-capsule': $font-weight-bold,
92
+ 'item-font-weight-active-capsule': $font-weight-bold,
93
+ 'item-color-capsule': $title-color-secondary,
94
+ 'item-color-active-capsule': $color-primary,
95
+ 'item-background-capsule': transparent,
96
+ 'item-background-active-capsule': $white,
97
+ 'popup-background': $white,
98
+ 'popup-max-height': 500px,
99
+ 'popup-padding': 12px 0 0 12px,
100
+ 'popup-box-shadow': $box-shadow,
101
+ 'popup-item-background': $fill-color-base,
102
+ 'popup-item-background-active': $color-primary-light-9,
103
+ 'popup-item-color': $title-color,
104
+ 'popup-item-color-active': $color-primary,
105
+ 'popup-item-radius': 16px,
106
+ 'popup-item-padding': 5px 12px 5px 12px,
107
+ 'popup-item-margin': 0px 12px 12px 0
108
+ ),
109
+ $tabs-bar
110
+ );
@@ -0,0 +1,9 @@
1
+ @use 'sass:map';
2
+
3
+ $tabs-frame: () !default;
4
+ $tabs-frame: map.deep-merge(
5
+ (
6
+ 'bar-margin': 0,
7
+ ),
8
+ $tabs-frame
9
+ );
@@ -0,0 +1,41 @@
1
+ @use 'sass:map';
2
+ @use '../common/color' as *;
3
+ @use '../common/typography' as *;
4
+ @use '../common/fill' as *;
5
+ @use '../common/base' as *;
6
+
7
+ $tag: () !default;
8
+ $tag: map.deep-merge(
9
+ (
10
+ 'border-width': 1px,
11
+ 'close-icon-size': $font-size-extra-small,
12
+ 'danger-background-color': $color-danger,
13
+ 'danger-background-color-light': $color-danger-light-9,
14
+ 'danger-background-color-plain': $color-danger,
15
+ 'danger-color': $white,
16
+ 'danger-color-light': $color-danger,
17
+ 'default-background-color': $black,
18
+ 'default-background-color-light': $fill-color-base,
19
+ 'default-border-radius': 4px,
20
+ 'default-color': $white,
21
+ 'default-color-light': $text-color-secondary,
22
+ 'font-size': $font-size-small,
23
+ 'height': auto,
24
+ 'padding': 0 4px,
25
+ 'plain-background-color': $white,
26
+ 'primary-background-color': $color-primary,
27
+ 'primary-background-color-light': $color-primary-light-9,
28
+ 'primary-color': $white,
29
+ 'primary-color-light': $color-primary,
30
+ 'round-border-radius': 8px,
31
+ 'success-background-color': $color-success,
32
+ 'success-background-color-light': $color-success-light-9,
33
+ 'success-color': $white,
34
+ 'success-color-light': $color-success,
35
+ 'warning-background-color': $color-warning,
36
+ 'warning-background-color-light': $color-warning-light-9,
37
+ 'warning-color': $white,
38
+ 'warning-color-light': $color-warning,
39
+ ),
40
+ $tag
41
+ );
@@ -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/base' as *;
6
+
7
+ $text: () !default;
8
+ $text: map.deep-merge(
9
+ (
10
+ 'color': $black,
11
+ 'danger-color': $color-danger,
12
+ 'default-color': $black,
13
+ 'info-color': $color-info,
14
+ 'divide-color': $border-color-light,
15
+ 'divide-height': 12px,
16
+ 'divide-margin': 0 0,
17
+ 'divide-width': 1px,
18
+ 'font-size': $font-size-base,
19
+ 'font-size-large': $font-size-large,
20
+ 'font-size-small': $font-size-small,
21
+ 'font-weight': $font-weight-bold,
22
+ 'highlight-background-color': $color-danger,
23
+ 'highlight-color': $white,
24
+ 'margin': 0,
25
+ 'mark-icon-height': 1em,
26
+ 'mark-icon-width': 1em,
27
+ 'mark-size': 4px,
28
+ 'mark-text-gutter': 4px,
29
+ 'padding': 0,
30
+ 'primary-color': $color-primary,
31
+ 'success-color': $color-success,
32
+ 'text-color': $black,
33
+ 'warning-color': $color-warning,
34
+ ),
35
+ $text
36
+ );
@@ -0,0 +1,18 @@
1
+ @use 'sass:map';
2
+ @use '../common/color' as *;
3
+ @use '../common/typography' as *;
4
+ @use '../common/base' as *;
5
+
6
+ $textarea: () !default;
7
+ $textarea: map.deep-merge(
8
+ (
9
+ 'background': $white,
10
+ 'disabled-color': $disabled-color,
11
+ 'font': $font-size-base,
12
+ 'height': 60px,
13
+ 'limit-color': $text-color-regular,
14
+ 'padding': 10px 25px,
15
+ 'text-color': $title-color
16
+ ),
17
+ $textarea
18
+ );
@@ -0,0 +1,18 @@
1
+ @use 'sass:map';
2
+ @use '../common/color' as *;
3
+ @use '../common/typography' as *;
4
+ @use '../common/base' as *;
5
+
6
+ $toast: () !default;
7
+ $toast: map.deep-merge(
8
+ (
9
+ 'cover-bg-color': transparent,
10
+ 'font-color': $white,
11
+ 'inner-bg-color': $overlay-text-bg-color,
12
+ 'inner-border-radius': 12px,
13
+ 'inner-padding': 24px 30px,
14
+ 'text-font-size': $font-size-base,
15
+ 'title-font-size': $font-size-medium,
16
+ ),
17
+ $toast
18
+ );
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+ @use '../common/typography' as *;
3
+ @use '../common/base' as *;
4
+
5
+ $trendarrow: () !default;
6
+ $trendarrow: map.deep-merge(
7
+ (
8
+ 'before-icon-margin': 4px,
9
+ 'font-size': $font-size-base,
10
+ ),
11
+ $trendarrow
12
+ );
@@ -0,0 +1,12 @@
1
+ @use 'sass:map';
2
+ @use '../common/fill' as *;
3
+
4
+ $uploader: () !default;
5
+ $uploader: map.deep-merge(
6
+ (
7
+ 'background': $fill-color-base,
8
+ 'picture-height': 100px,
9
+ 'picture-width': 100px,
10
+ ),
11
+ $uploader
12
+ );
@@ -0,0 +1,9 @@
1
+ @use 'sass:map';
2
+
3
+ $watermark: () !default;
4
+ $watermark: map.deep-merge(
5
+ (
6
+ 'z-index': 2000,
7
+ ),
8
+ $watermark
9
+ );
@@ -0,0 +1,27 @@
1
+ @use 'sass:map';
2
+ @use 'var' as *;
3
+ @use '../mixins/css-var' as *;
4
+
5
+ html.dark {
6
+ @include gen-color-css-vars($dark-colors);
7
+
8
+ @each $type, $value in $dark-text-color {
9
+ --fox-text-color-#{$type}: #{$value};
10
+ }
11
+
12
+ @each $type, $value in $dark-border-color {
13
+ --fox-border-color-#{$type}: #{$value};
14
+ }
15
+
16
+ @each $type, $value in $dark-fill-color {
17
+ --fox-fill-color-#{$type}: #{$value};
18
+ }
19
+
20
+ @each $type, $value in $dark-bg-color {
21
+ --fox-bg-color-#{$type}: #{$value};
22
+ }
23
+
24
+ --fox-title-color: #{map.get($dark-text-color, 'primary')};
25
+ --fox-title-color2: #{map.get($dark-text-color, 'regular')};
26
+ --fox-color-primary-end: #f2270c;
27
+ }
@@ -0,0 +1,77 @@
1
+ @use 'sass:map';
2
+ @use 'sass:color';
3
+
4
+ $dark-colors: () !default;
5
+
6
+ $dark-colors: map.deep-merge(
7
+ (
8
+ 'primary': (
9
+ 'base': #f2270c,
10
+ 'light-1': #f43e26,
11
+ 'light-2': #f65533,
12
+ 'light-3': #f86c40,
13
+ 'light-4': #fa834d,
14
+ 'light-5': #fb9a5f,
15
+ 'light-6': #fcb171,
16
+ 'light-7': #fdc88a,
17
+ 'light-8': '#fddfa3',
18
+ 'light-9': '#fef6bc',
19
+ 'dark-2': #c91f0a,
20
+ ),
21
+ 'success': (
22
+ 'base': #55d87a,
23
+ ),
24
+ 'warning': (
25
+ 'base': #ffbf3c,
26
+ ),
27
+ 'danger': (
28
+ 'base': #e6594e,
29
+ ),
30
+ 'info': (
31
+ 'base': #8a8a8a,
32
+ ),
33
+ ),
34
+ $dark-colors
35
+ );
36
+
37
+ $dark-text-color: () !default;
38
+ $dark-text-color: map.deep-merge(
39
+ (
40
+ 'primary': #e5eaf3,
41
+ 'regular': #cfd3dc,
42
+ 'secondary': #a3a6ad,
43
+ 'disabled': #636569,
44
+ 'placeholder': #5a5e66,
45
+ ),
46
+ $dark-text-color
47
+ );
48
+
49
+ $dark-border-color: () !default;
50
+ $dark-border-color: map.deep-merge(
51
+ (
52
+ 'base': #4c4d4f,
53
+ 'light': #414243,
54
+ 'lighter': #363637,
55
+ ),
56
+ $dark-border-color
57
+ );
58
+
59
+ $dark-fill-color: () !default;
60
+ $dark-fill-color: map.deep-merge(
61
+ (
62
+ 'base': #303030,
63
+ 'light': #262727,
64
+ 'lighter': #1d1d1d,
65
+ ),
66
+ $dark-fill-color
67
+ );
68
+
69
+ $dark-bg-color: () !default;
70
+ $dark-bg-color: map.deep-merge(
71
+ (
72
+ 'base': #141414,
73
+ 'page': #0a0a0a,
74
+ 'overlay': #1d1e1f,
75
+ ),
76
+ $dark-bg-color
77
+ );