@qsxy/element-plus-react 1.0.0-next.18 → 1.0.0-next.21

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 (144) hide show
  1. package/README.md +12 -39
  2. package/dist/Breadcrumb/BreadcrumbItem.js +4 -7
  3. package/dist/Switch/Switch.js +50 -17
  4. package/dist/Switch/typings.d.ts +4 -0
  5. package/dist/Tooltip/Tooltip.js +2 -1
  6. package/dist/index.css +1 -1
  7. package/dist/index.d.ts +5 -5
  8. package/dist/index.js +2 -2
  9. package/package.json +1 -2
  10. package/theme-chalk/{avatar/index.scss → avatar.scss} +1 -1
  11. package/theme-chalk/{badge/index.scss → badge.scss} +1 -1
  12. package/theme-chalk/{breadcrumb/index.scss → breadcrumb.scss} +1 -1
  13. package/theme-chalk/build.scss +1 -1
  14. package/theme-chalk/button/_mixins.scss +3 -3
  15. package/theme-chalk/button/button-group.scss +1 -1
  16. package/theme-chalk/button/button.scss +2 -2
  17. package/theme-chalk/button/index.scss +2 -2
  18. package/theme-chalk/button--bak/_mixins.scss +317 -0
  19. package/theme-chalk/button--bak/button-group.scss +83 -0
  20. package/theme-chalk/button--bak/button.scss +382 -0
  21. package/theme-chalk/button--bak/index.scss +2 -0
  22. package/theme-chalk/button-group.scss +80 -0
  23. package/theme-chalk/button.scss +304 -0
  24. package/theme-chalk/calendar/date-picker.scss +1 -1
  25. package/theme-chalk/calendar/date-range-picker.scss +1 -1
  26. package/theme-chalk/calendar/date-table.scss +164 -156
  27. package/theme-chalk/calendar/date-table.scss--bak +156 -0
  28. package/theme-chalk/calendar/index.scss +6 -6
  29. package/theme-chalk/calendar/month-table.scss +1 -1
  30. package/theme-chalk/calendar/picker-panel.scss +1 -1
  31. package/theme-chalk/calendar/year-table.scss +1 -1
  32. package/theme-chalk/{card/index.scss → card.scss} +1 -1
  33. package/theme-chalk/{carousel/index.scss → carousel.scss} +1 -1
  34. package/theme-chalk/{cascader/cascader-panel.scss → cascader-panel.scss} +1 -1
  35. package/theme-chalk/{cascader/cascader.scss → cascader.scss} +1 -1
  36. package/theme-chalk/{checkbox-button/index.scss → checkbox-button.scss} +1 -1
  37. package/theme-chalk/{checkbox-group/index.scss → checkbox-group.scss} +1 -1
  38. package/theme-chalk/{checkbox/index.scss → checkbox.scss} +2 -1
  39. package/theme-chalk/col/_mixins.scss +5 -3
  40. package/theme-chalk/col/index.scss +2 -2
  41. package/theme-chalk/{collapse/index.scss → collapse.scss} +1 -1
  42. package/theme-chalk/color/index.scss +20 -0
  43. package/theme-chalk/{color-picker/index.scss → color-picker.scss} +3 -3
  44. package/theme-chalk/common/index.scss +127 -178
  45. package/theme-chalk/common/var.scss +1632 -0
  46. package/theme-chalk/dark/css-vars.scss +39 -0
  47. package/theme-chalk/dark/var.scss +225 -0
  48. package/theme-chalk/{date-picker/index.scss → date-picker.scss} +1 -1
  49. package/theme-chalk/{date-time-picker/time-picker.scss → date-time-picker.scss} +1 -1
  50. package/theme-chalk/{descriptions/descriptions-item.scss → descriptions-item.scss} +1 -1
  51. package/theme-chalk/{descriptions/descriptions.scss → descriptions.scss} +1 -1
  52. package/theme-chalk/dev.scss +2 -2
  53. package/theme-chalk/{dialog/index.scss → dialog.scss} +1 -1
  54. package/theme-chalk/display.scss +1 -1
  55. package/theme-chalk/{divider/index.scss → divider.scss} +1 -1
  56. package/theme-chalk/doc.scss +2 -2
  57. package/theme-chalk/{drawer/index.scss → drawer.scss} +1 -1
  58. package/theme-chalk/{dropdown/index.scss → dropdown.scss} +1 -1
  59. package/theme-chalk/{empty/index.scss → empty.scss} +1 -1
  60. package/theme-chalk/{form/index.scss → form.scss} +1 -1
  61. package/theme-chalk/icon/fonts.scss +9 -9
  62. package/theme-chalk/icon/index.scss +1 -1
  63. package/theme-chalk/icon/scss/_animated.scss +1 -0
  64. package/theme-chalk/icon/scss/_bordered-pulled.scss +1 -0
  65. package/theme-chalk/icon/scss/_core.scss +2 -0
  66. package/theme-chalk/icon/scss/_duotone-icons.scss +3 -4
  67. package/theme-chalk/icon/scss/_fixed-width.scss +1 -0
  68. package/theme-chalk/icon/scss/_functions.scss +2 -1
  69. package/theme-chalk/icon/scss/_icons.scss +3 -4
  70. package/theme-chalk/icon/scss/_list.scss +1 -0
  71. package/theme-chalk/icon/scss/_mixins.scss +10 -7
  72. package/theme-chalk/icon/scss/_rotated-flipped.scss +1 -0
  73. package/theme-chalk/icon/scss/_screen-reader.scss +2 -0
  74. package/theme-chalk/icon/scss/_shims.scss +292 -290
  75. package/theme-chalk/icon/scss/_sizing.scss +2 -0
  76. package/theme-chalk/icon/scss/_stacked.scss +1 -0
  77. package/theme-chalk/icon/scss/brands.scss +8 -6
  78. package/theme-chalk/icon/scss/duotone.scss +6 -5
  79. package/theme-chalk/icon/scss/fontawesome.scss +13 -13
  80. package/theme-chalk/icon/scss/index.scss +12 -15
  81. package/theme-chalk/icon/scss/light.scss +3 -2
  82. package/theme-chalk/icon/scss/regular.scss +3 -2
  83. package/theme-chalk/icon/scss/solid.scss +3 -2
  84. package/theme-chalk/icon/scss/thin.scss +3 -2
  85. package/theme-chalk/icon/scss/{_variables.scss → variables.scss} +2 -0
  86. package/theme-chalk/index.scss +63 -57
  87. package/theme-chalk/input/_mixins.scss +1 -1
  88. package/theme-chalk/input/index.scss +2 -3
  89. package/theme-chalk/input/input-range.scss +2 -1
  90. package/theme-chalk/input/input.scss +2 -1
  91. package/theme-chalk/{input-number/index.scss → input-number.scss} +4 -4
  92. package/theme-chalk/{link/index.scss → link.scss} +1 -1
  93. package/theme-chalk/{loading/index.scss → loading.scss} +1 -1
  94. package/theme-chalk/{message-box/index.scss → message-box.scss} +1 -1
  95. package/theme-chalk/{message/index.scss → message.scss} +2 -1
  96. package/theme-chalk/mixins/_button.scss +224 -0
  97. package/theme-chalk/mixins/_col.scss +33 -0
  98. package/theme-chalk/mixins/_var.scss +67 -0
  99. package/theme-chalk/{common/_var.scss → mixins/config.scss} +5 -6
  100. package/theme-chalk/mixins/function.scss +99 -0
  101. package/theme-chalk/mixins/mixins.scss +240 -0
  102. package/theme-chalk/mixins/utils.scss +39 -0
  103. package/theme-chalk/{notification/index.scss → notification.scss} +2 -1
  104. package/theme-chalk/pagination.scss +303 -0
  105. package/theme-chalk/{popconfirm/index.scss → popconfirm.scss} +1 -1
  106. package/theme-chalk/{popover/index.scss → popover.scss} +1 -1
  107. package/theme-chalk/popper.scss +104 -0
  108. package/theme-chalk/{popper/index.scss → popper.scss--bak} +1 -1
  109. package/theme-chalk/{progress/index.scss → progress.scss} +1 -1
  110. package/theme-chalk/radio-button.scss +169 -0
  111. package/theme-chalk/{radio/radio-button.scss → radio-button.scss--bak} +1 -1
  112. package/theme-chalk/{radio-group/index.scss → radio-group.scss} +1 -10
  113. package/theme-chalk/{radio/radio.scss → radio.scss} +1 -1
  114. package/theme-chalk/{row/index.scss → row.scss} +1 -1
  115. package/theme-chalk/{scrollbar/index.scss → scrollbar.scss} +1 -1
  116. package/theme-chalk/select/index.scss +1 -1
  117. package/theme-chalk/{skeleton/index.scss → skeleton.scss} +1 -1
  118. package/theme-chalk/switch.scss +300 -0
  119. package/theme-chalk/{switch/index.scss → switch.scss--bak} +1 -1
  120. package/theme-chalk/{table/index.scss → table.scss} +1 -1
  121. package/theme-chalk/{tabs/index.scss → tabs.scss} +1 -1
  122. package/theme-chalk/{tag/index.scss → tag.scss} +1 -1
  123. package/theme-chalk/{time-line/_timeline.scss → time-line.scss} +1 -1
  124. package/theme-chalk/{time-picker/index.scss → time-picker.scss} +1 -1
  125. package/theme-chalk/{date-time-picker/time-range-picker.scss → time-range-picker.scss} +1 -1
  126. package/theme-chalk/{time-line/_timeline-item.scss → timeline-item.scss} +1 -1
  127. package/theme-chalk/{tooltip/index.scss → tooltip.scss} +1 -1
  128. package/theme-chalk/{transfer/index.scss → transfer.scss} +1 -1
  129. package/theme-chalk/{transition/index.scss → transition.scss} +1 -1
  130. package/theme-chalk/tree/_directory.scss +1 -1
  131. package/theme-chalk/tree/_tree.scss +1 -1
  132. package/theme-chalk/tree/index.scss +2 -2
  133. package/theme-chalk/{tree-select/index.scss → tree-select.scss} +1 -1
  134. package/theme-chalk/{upload/index.scss → upload.scss} +1 -1
  135. package/theme-chalk/var.scss +83 -0
  136. package/theme-chalk/cascader/index.scss +0 -2
  137. package/theme-chalk/common/index.ts +0 -1
  138. package/theme-chalk/date-time-picker/index.scss +0 -3
  139. package/theme-chalk/descriptions/index.scss +0 -2
  140. package/theme-chalk/icon/scss/v4-shims.scss +0 -3
  141. package/theme-chalk/pagination/index.scss +0 -303
  142. package/theme-chalk/placeholder/index.scss +0 -120
  143. package/theme-chalk/radio/index.scss +0 -2
  144. package/theme-chalk/time-line/index.scss +0 -2
@@ -0,0 +1,39 @@
1
+ // CSS3 var
2
+ @use './var' as *;
3
+ @use '../mixins/_var.scss' as *;
4
+ @use '../mixins/mixins.scss' as *;
5
+
6
+ html.dark {
7
+ color-scheme: dark;
8
+
9
+ // hex colors
10
+ @each $type in (primary, success, warning, danger, error, info) {
11
+ @include set-css-color-type($colors, $type);
12
+ }
13
+
14
+ // --el-box-shadow-#{$type}
15
+ @include set-component-css-var('box-shadow', $box-shadow);
16
+
17
+ // color-scheme
18
+ // Background --el-bg-color-#{$type}
19
+ @include set-component-css-var('bg-color', $bg-color);
20
+ // --el-text-color-#{$type}
21
+ @include set-component-css-var('text-color', $text-color);
22
+ // --el-border-color-#{$type}
23
+ @include set-component-css-var('border-color', $border-color);
24
+ // Fill --el-fill-color-#{$type}
25
+ @include set-component-css-var('fill-color', $fill-color);
26
+ @include set-component-css-var('mask-color', $mask-color);
27
+ }
28
+
29
+ @include dark(button) {
30
+ @include set-component-css-var('button', $button);
31
+ }
32
+
33
+ @include dark(card) {
34
+ @include set-component-css-var('card', $card);
35
+ }
36
+
37
+ @include dark(empty) {
38
+ @include set-component-css-var('empty', $empty);
39
+ }
@@ -0,0 +1,225 @@
1
+ @use 'sass:map';
2
+ @use 'sass:math';
3
+ @use 'sass:color';
4
+
5
+ @use '../common/var.scss' as common;
6
+ @use '../mixins/mixins.scss' as *;
7
+ @use '../color/index.scss' as *;
8
+ @use '../mixins/function.scss' as *;
9
+
10
+ $colors: () !default;
11
+ @each $type in common.$types {
12
+ $colors: map.deep-merge(
13
+ (
14
+ $type: (
15
+ 'base': map.get(common.$colors, $type, 'base'),
16
+ ),
17
+ ),
18
+ $colors
19
+ ) !global;
20
+ }
21
+
22
+ // https://sass-lang.com/documentation/values/maps#immutability
23
+ // mix colors with white/black to generate light/dark level
24
+ @mixin set-color-mix-level(
25
+ $type,
26
+ $number,
27
+ $mode: 'light',
28
+ $mix-color: $color-white
29
+ ) {
30
+ // hex mix color
31
+ $colors: map.deep-merge(
32
+ (
33
+ $type: (
34
+ '#{$mode}-#{$number}':
35
+ roundColor(
36
+ color.mix(
37
+ $mix-color,
38
+ map.get($colors, $type, 'base'),
39
+ math.percentage(math.div($number, 10))
40
+ )
41
+ ),
42
+ ),
43
+ ),
44
+ $colors
45
+ ) !global;
46
+
47
+ // for designer to view transparent
48
+ // $colors: map.deep-merge(
49
+ // (
50
+ // $type: (
51
+ // '#{$mode}-#{$number}':
52
+ // rgba(map.get($colors, $type, 'base'), math.div(10 - $number, 10)),
53
+ // ),
54
+ // ),
55
+ // $colors
56
+ // ) !global;
57
+ }
58
+
59
+ // Background
60
+ $bg-color: () !default;
61
+ $bg-color: map.merge(
62
+ (
63
+ 'page': #0a0a0a,
64
+ '': #141414,
65
+ 'overlay': #1d1e1f,
66
+ ),
67
+ $bg-color
68
+ );
69
+
70
+ // dark-mode
71
+ @each $type in common.$types {
72
+ @for $i from 1 through 9 {
73
+ @include set-color-mix-level($type, $i, 'light', map.get($bg-color, ''));
74
+ }
75
+ }
76
+ @each $type in common.$types {
77
+ @include set-color-mix-level($type, 2, 'dark', common.$color-white);
78
+ }
79
+
80
+ // border
81
+ $border-color-base: #f5f8ff;
82
+ $border-color: () !default;
83
+ $border-color: map.merge(
84
+ (
85
+ 'darker': rgba($border-color-base, 0.35),
86
+ 'dark': rgba($border-color-base, 0.3),
87
+ '': rgba($border-color-base, 0.25),
88
+ 'light': rgba($border-color-base, 0.2),
89
+ 'lighter': rgba($border-color-base, 0.15),
90
+ 'extra-light': rgba($border-color-base, 0.1),
91
+ ),
92
+ $border-color
93
+ );
94
+
95
+ // mix to hex to avoid overlay issues
96
+ @each $key, $val in $border-color {
97
+ $border-color: map.merge(
98
+ $border-color,
99
+ (
100
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
101
+ )
102
+ ) !global;
103
+ }
104
+
105
+ // Box-shadow
106
+ $box-shadow: () !default;
107
+ $box-shadow: map.merge(
108
+ (
109
+ '': (
110
+ 0px 12px 32px 4px rgba(0, 0, 0, 0.36),
111
+ 0px 8px 20px rgba(0, 0, 0, 0.72),
112
+ ),
113
+ 'light': (
114
+ 0px 0px 12px rgba(0, 0, 0, 0.72),
115
+ ),
116
+ 'lighter': (
117
+ 0px 0px 6px rgba(0, 0, 0, 0.72),
118
+ ),
119
+ 'dark': (
120
+ 0px 16px 48px 16px rgba(0, 0, 0, 0.72),
121
+ 0px 12px 32px #000000,
122
+ 0px 8px 16px -8px #000000,
123
+ ),
124
+ ),
125
+ $box-shadow
126
+ );
127
+
128
+ // fill
129
+ $fill-color-base: #fafcff;
130
+ $fill-color: () !default;
131
+ $fill-color: map.merge(
132
+ (
133
+ 'darker': rgba($fill-color-base, 0.2),
134
+ 'dark': rgba($fill-color-base, 0.16),
135
+ '': rgba($fill-color-base, 0.12),
136
+ 'light': rgba($fill-color-base, 0.08),
137
+ 'lighter': rgba($fill-color-base, 0.04),
138
+ 'extra-light': rgba($fill-color-base, 0.02),
139
+ 'blank': transparent,
140
+ ),
141
+ $fill-color
142
+ );
143
+
144
+ // mix to hex to avoid overlay issues
145
+ @each $key, $val in $fill-color {
146
+ @if ($key != 'blank') {
147
+ $fill-color: map.merge(
148
+ $fill-color,
149
+ (
150
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
151
+ )
152
+ ) !global;
153
+ }
154
+ }
155
+
156
+ // text
157
+ $text-color-base: #f0f5ff;
158
+ $text-color: () !default;
159
+ $text-color: map.merge(
160
+ (
161
+ 'primary': rgba($text-color-base, 0.95),
162
+ 'regular': rgba($text-color-base, 0.85),
163
+ 'secondary': rgba($text-color-base, 0.65),
164
+ 'placeholder': rgba($text-color-base, 0.55),
165
+ 'disabled': rgba($text-color-base, 0.4),
166
+ ),
167
+ $text-color
168
+ );
169
+ // mix to hex to avoid overlay issues
170
+ @each $key, $val in $text-color {
171
+ $text-color: map.merge(
172
+ $text-color,
173
+ (
174
+ $key: mix-overlay-color($val, map.get($bg-color, '')),
175
+ )
176
+ ) !global;
177
+ }
178
+
179
+ // mask
180
+ $mask-color: () !default;
181
+ $mask-color: map.merge(
182
+ (
183
+ '': rgba(0, 0, 0, 0.8),
184
+ 'extra-light': rgba(0, 0, 0, 0.3),
185
+ ),
186
+ $mask-color
187
+ );
188
+
189
+ // Button
190
+ // css3 var in packages/theme-chalk/src/button.scss
191
+ $button: () !default;
192
+ $button: map.merge(
193
+ (
194
+ 'disabled-text-color': rgba(255, 255, 255, 0.5),
195
+ ),
196
+ $button
197
+ );
198
+
199
+ // card
200
+ $card: () !default;
201
+ $card: map.merge(
202
+ (
203
+ 'bg-color': getCssVar('bg-color', 'overlay'),
204
+ ),
205
+ $card
206
+ );
207
+
208
+ // Empty
209
+ // css3 var in packages/theme-chalk/src/empty.scss
210
+ $empty: () !default;
211
+ $empty: map.merge(
212
+ (
213
+ 'fill-color-0': getCssVar('color-black'),
214
+ 'fill-color-1': #4b4b52,
215
+ 'fill-color-2': #36383d,
216
+ 'fill-color-3': #1e1e20,
217
+ 'fill-color-4': #262629,
218
+ 'fill-color-5': #202124,
219
+ 'fill-color-6': #212224,
220
+ 'fill-color-7': #1b1c1f,
221
+ 'fill-color-8': #1c1d1f,
222
+ 'fill-color-9': #18181a,
223
+ ),
224
+ $empty
225
+ );
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @use 'sass:map';
4
4
 
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @use 'sass:math';
4
4
 
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @use 'sass:map';
4
4
 
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @use 'sass:map';
4
4
 
@@ -1,2 +1,2 @@
1
- $fa-font-path: '/fonts' !default;
2
- @import './index.scss';
1
+ @use './common/var' with($fa-font-path: '/fonts');
2
+ @use './index.scss';
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  // Kill the scroll on the body
4
4
  .#{$namespace}-popup-parent--hidden {
@@ -1,4 +1,4 @@
1
- @use './common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @use 'sass:string';
4
4
  @use 'sass:map';
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-divider {
4
4
  --#{$namespace}-divider-text-bg-color: var(--#{$namespace}-bg-color);
@@ -1,2 +1,2 @@
1
- $fa-font-path: '/element-plus-react/fonts' !default;
2
- @import './index.scss';
1
+ @use './common/var' with($fa-font-path: '/element-plus-react/fonts');
2
+ @use './index.scss';
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-drawer-wrapper {
4
4
  height: 100%;
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-dropdown__popper {
4
4
  --#{$namespace}-dropdown-menu-box-shadow: var(--#{$namespace}-box-shadow-light);
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-empty {
4
4
  --#{$namespace}-empty-fill-color-0: var(--#{$namespace}-color-white);
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use './mixins/config' as *;
2
2
 
3
3
  @use 'sass:map';
4
4
 
@@ -1,9 +1,9 @@
1
- @use '../common/var';
2
- @import './scss/index.scss';
3
- @import './scss/v4-shims.scss';
4
- @import './scss/regular.scss';
5
- @import './scss/light.scss';
6
- @import './scss/thin.scss';
7
- @import './scss/duotone.scss';
8
- @import './scss/brands.scss';
9
- @import './scss/solid.scss';
1
+ @use './scss/index.scss';
2
+ @use './scss/shims.scss';
3
+
4
+ @use './scss/regular.scss';
5
+ @use './scss/light.scss';
6
+ @use './scss/thin.scss';
7
+ @use './scss/duotone.scss';
8
+ @use './scss/brands.scss';
9
+ @use './scss/solid.scss';
@@ -1,4 +1,4 @@
1
- @use '../common/var';
1
+ @use '../mixins/config' as *;
2
2
 
3
3
  .#{$namespace}-icon-loading {
4
4
  animation: rotating 2s linear infinite;
@@ -1,3 +1,4 @@
1
+ @use 'variables' as *;
1
2
  // animating icons
2
3
  // --------------------------
3
4
 
@@ -1,3 +1,4 @@
1
+ @use 'variables' as *;
1
2
  // bordered + pulled icons
2
3
  // -------------------------
3
4
 
@@ -1,3 +1,5 @@
1
+ @use 'variables' as *;
2
+ @use 'mixins' as *;
1
3
  // base icon class definition
2
4
  // -------------------------
3
5
 
@@ -1,12 +1,11 @@
1
+ @use 'variables' as *;
2
+ @use 'sass:string';
1
3
  // specific duotone icon class definition
2
4
  // -------------------------
3
5
 
4
- /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
5
- readers do not read off random characters that represent icons */
6
-
7
6
  @each $name, $icon in $fa-icons {
8
7
  .fad.#{$fa-css-prefix}-#{$name}::after,
9
8
  .#{$fa-css-prefix}-duotone.#{$fa-css-prefix}-#{$name}::after {
10
- content: unquote('"#{ $icon }#{ $icon }"');
9
+ content: string.unquote('"#{ $icon }#{ $icon }"');
11
10
  }
12
11
  }
@@ -1,3 +1,4 @@
1
+ @use 'variables' as *;
1
2
  // fixed-width icons
2
3
  // -------------------------
3
4
 
@@ -1,9 +1,10 @@
1
+ @use 'sass:string';
1
2
  // functions
2
3
  // --------------------------
3
4
 
4
5
  // fa-content: convenience function used to set content property
5
6
  @function fa-content($fa-var) {
6
- @return unquote('"#{ $fa-var }"');
7
+ @return string.unquote('"#{ $fa-var }"');
7
8
  }
8
9
 
9
10
  // fa-divide: Originally obtained from the Bootstrap https://github.com/twbs/bootstrap
@@ -1,11 +1,10 @@
1
+ @use 'sass:string';
2
+ @use 'variables' as *;
1
3
  // specific icon class definition
2
4
  // -------------------------
3
5
 
4
- /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
5
- readers do not read off random characters that represent icons */
6
-
7
6
  @each $name, $icon in $fa-icons {
8
7
  .#{$fa-css-prefix}-#{$name}::before {
9
- content: unquote('"#{ $icon }"');
8
+ content: string.unquote('"#{ $icon }"');
10
9
  }
11
10
  }
@@ -1,3 +1,4 @@
1
+ @use 'variables' as *;
1
2
  // icons in a list
2
3
  // -------------------------
3
4
 
@@ -1,3 +1,6 @@
1
+ @use 'sass:string';
2
+ @use 'variables' as *;
3
+ @use 'functions' as *;
1
4
  // mixins
2
5
  // --------------------------
3
6
 
@@ -49,7 +52,7 @@
49
52
  @extend .fa-solid;
50
53
 
51
54
  &::before {
52
- content: unquote('"#{ $fa-var }"');
55
+ content: string.unquote('"#{ $fa-var }"');
53
56
  }
54
57
  }
55
58
 
@@ -58,7 +61,7 @@
58
61
  @extend .fa-regular;
59
62
 
60
63
  &::before {
61
- content: unquote('"#{ $fa-var }"');
64
+ content: string.unquote('"#{ $fa-var }"');
62
65
  }
63
66
  }
64
67
 
@@ -67,7 +70,7 @@
67
70
  @extend .fa-light;
68
71
 
69
72
  &::before {
70
- content: unquote('"#{ $fa-var }"');
73
+ content: string.unquote('"#{ $fa-var }"');
71
74
  }
72
75
  }
73
76
 
@@ -76,7 +79,7 @@
76
79
  @extend .fa-thin;
77
80
 
78
81
  &::before {
79
- content: unquote('"#{ $fa-var }"');
82
+ content: string.unquote('"#{ $fa-var }"');
80
83
  }
81
84
  }
82
85
 
@@ -85,10 +88,10 @@
85
88
  @extend .fa-duotone;
86
89
 
87
90
  &::before {
88
- content: unquote('"#{ $fa-var }"');
91
+ content: string.unquote('"#{ $fa-var }"');
89
92
  }
90
93
  &::after {
91
- content: unquote('"#{ $fa-var }#{ $fa-var }"');
94
+ content: string.unquote('"#{ $fa-var }#{ $fa-var }"');
92
95
  }
93
96
  }
94
97
 
@@ -97,6 +100,6 @@
97
100
  @extend .fa-brands;
98
101
 
99
102
  &::before {
100
- content: unquote('"#{ $fa-var }"');
103
+ content: string.unquote('"#{ $fa-var }"');
101
104
  }
102
105
  }
@@ -1,3 +1,4 @@
1
+ @use 'variables' as *;
1
2
  // rotating + flipping icons
2
3
  // -------------------------
3
4
 
@@ -1,3 +1,5 @@
1
+ @use 'variables' as *;
2
+ @use 'mixins' as *;
1
3
  // screen-reader utilities
2
4
  // -------------------------
3
5