@fkui/design 6.3.1 → 6.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fkui/design",
3
- "version": "6.3.1",
3
+ "version": "6.4.0",
4
4
  "description": "fkui design",
5
5
  "keywords": [
6
6
  "fkui",
@@ -42,14 +42,14 @@
42
42
  "runner": "jest-light-runner"
43
43
  },
44
44
  "devDependencies": {
45
- "@fkui/icon-lib-default": "6.3.0",
46
- "@fkui/theme-default": "6.3.1",
45
+ "@fkui/icon-lib-default": "6.4.0",
46
+ "@fkui/theme-default": "6.4.0",
47
47
  "autoprefixer": "10.4.21",
48
48
  "cssnano": "7.0.6",
49
49
  "flush-promises": "1.0.2",
50
50
  "glob": "11.0.1",
51
51
  "jest-light-runner": "0.6.0",
52
- "jest-preset-stylelint": "7.2.0",
52
+ "jest-preset-stylelint": "7.3.0",
53
53
  "picocolors": "1.1.1",
54
54
  "postcss": "8.5.3",
55
55
  "postcss-url": "10.1.3",
@@ -57,7 +57,7 @@
57
57
  "svgo": "3.3.2"
58
58
  },
59
59
  "peerDependencies": {
60
- "@fkui/theme-default": "^6.3.1",
60
+ "@fkui/theme-default": "^6.4.0",
61
61
  "sass": "^1.40.0",
62
62
  "stylelint": ">= 14"
63
63
  },
@@ -73,5 +73,5 @@
73
73
  "node": ">= 20",
74
74
  "npm": ">= 7"
75
75
  },
76
- "gitHead": "bc7431b02d30435cc2a179f6e5e1ab205ca2f7f4"
76
+ "gitHead": "a5c516be9b76d94394962a524abaf3e6efe0a7be"
77
77
  }
@@ -9,8 +9,9 @@ $CARD_SELECTOR: ".card" !default;
9
9
  margin: densify(size.$margin-100) 0;
10
10
 
11
11
  &--default {
12
+ background-color: $card-color-background;
12
13
  border-radius: var(--f-border-radius-medium);
13
- border: var(--f-border-width-medium) solid var(--f-border-color-card);
14
+ border: var(--f-border-width-medium) solid $card-color-border;
14
15
  }
15
16
 
16
17
  &--error {
@@ -19,6 +20,7 @@ $CARD_SELECTOR: ".card" !default;
19
20
  }
20
21
 
21
22
  &__content {
23
+ color: $card-color-text;
22
24
  > p,
23
25
  > div {
24
26
  &:last-child {
@@ -34,7 +36,7 @@ $CARD_SELECTOR: ".card" !default;
34
36
 
35
37
  &__header {
36
38
  &-label {
37
- color: var(--f-text-color-default);
39
+ color: $card-color-heading;
38
40
  font-size: var(--f-font-size-large);
39
41
  font-weight: var(--f-font-weight-bold);
40
42
  line-height: var(--f-line-height-large);
@@ -1,2 +1,6 @@
1
+ $card-color-heading: var(--fkds-color-text-primary);
2
+ $card-color-text: var(--fkds-color-text-primary);
3
+ $card-color-border: var(--fkds-color-border-primary);
4
+ $card-color-background: var(--fkds-color-background-primary);
1
5
  $card-color-border-error: var(--fkds-color-feedback-border-negative);
2
6
  $card-color-text-error: var(--f-text-color-error);
@@ -1,32 +1,36 @@
1
- @use "../button/button";
2
- @use "../../core/mixins";
3
1
  @use "../../core/size";
2
+ @use "variables" as *;
3
+ @use "../../core/utils/functions" as *;
4
4
 
5
5
  $ENTRYPOINT_SELECTOR: ".entrypoint" !default;
6
6
 
7
7
  #{$ENTRYPOINT_SELECTOR} {
8
8
  /* stylelint-disable-next-line scss/at-extend-no-missing-placeholder -- technical debt */
9
- @extend .button;
10
- @include mixins.make-button-variant($ENTRYPOINT_SELECTOR, button.$button--primary...);
11
-
12
- & {
13
- text-align: left;
14
- padding: size.$padding-100 calc(size.$padding-200 * 2) size.$padding-100 size.$padding-100;
15
- line-height: var(--f-line-height-large);
16
- width: 100%;
17
- }
9
+ background-color: $entrypoint-color-background-default;
10
+ color: $entrypoint-color-text-default;
11
+ border: var(--f-border-width-medium) solid transparent; // forced-colors mode
12
+ border-radius: var(--f-border-radius-medium);
13
+ box-shadow: var(--f-button-shadow);
14
+ font-size: var(--f-font-size-standard);
15
+ font-weight: var(--f-font-weight-medium);
16
+ transition: background-color var(--f-animation-duration-medium) ease-out;
17
+ display: inline-flex;
18
+ justify-content: space-between;
19
+ align-items: center;
20
+ cursor: pointer;
21
+ margin-bottom: densify(size.$margin-150);
22
+ margin-top: densify(size.$margin-025);
23
+ text-align: left;
24
+ padding: densify(size.$padding-100) size.$padding-100;
25
+ line-height: var(--f-line-height-large);
26
+ width: 100%;
18
27
 
19
28
  &__icon {
20
- /* stylelint-disable-next-line scss/at-extend-no-missing-placeholder -- technical debt */
21
- @extend .button__icon--end;
22
-
23
- color: var(--f-icon-color-white);
24
- top: 50%;
25
- transform: translate(0, -50%);
29
+ margin-left: 2rem;
30
+ flex-shrink: 0;
26
31
  }
27
32
 
28
33
  &:hover {
29
- // override anchor's underline hover effect
30
- padding-bottom: size.$padding-100;
34
+ background-color: $entrypoint-color-background-hover;
31
35
  }
32
36
  }
@@ -0,0 +1,3 @@
1
+ $entrypoint-color-background-default: var(--fkds-color-action-background-primary-default);
2
+ $entrypoint-color-background-hover: var(--fkds-color-action-background-primary-hover);
3
+ $entrypoint-color-text-default: var(--fkds-color-action-text-inverted-default);
@@ -23,10 +23,6 @@ $list-selectpane-padding: calc(var(--f-list-item-itempane-padding) - 0.2rem);
23
23
  background: var(--f-background-grid-hover);
24
24
  }
25
25
 
26
- %list-item-selected {
27
- background: var(--f-background-grid-selected);
28
- }
29
-
30
26
  %list-item-active {
31
27
  background: var(--f-background-grid-active);
32
28
  }
@@ -46,10 +42,6 @@ $list-selectpane-padding: calc(var(--f-list-item-itempane-padding) - 0.2rem);
46
42
  @extend %list-item-hover;
47
43
  }
48
44
 
49
- &--selected {
50
- @extend %list-item-selected;
51
- }
52
-
53
45
  &--active {
54
46
  @extend %list-item-active;
55
47
  }
@@ -107,10 +99,6 @@ $list-selectpane-padding: calc(var(--f-list-item-itempane-padding) - 0.2rem);
107
99
  &--active {
108
100
  @extend %list-item-active;
109
101
  }
110
-
111
- &--selected {
112
- @extend %list-item-selected;
113
- }
114
102
  }
115
103
  }
116
104
  }
@@ -28,9 +28,6 @@ $CHECKBOX_SELECTOR: ".checkbox" !default;
28
28
  &:hover {
29
29
  @extend %list-item-hover;
30
30
  }
31
- &:has(input:checked) {
32
- @extend %list-item-selected;
33
- }
34
31
  label::before {
35
32
  top: 0.9rem;
36
33
  left: 1rem;
@@ -78,11 +78,6 @@ $table-input-offset-horizontal: 0.25rem;
78
78
  box-shadow: none;
79
79
  }
80
80
 
81
- %table-row-selected {
82
- background: var(--f-background-grid-selected);
83
- color: $table-row-foreground;
84
- }
85
-
86
81
  %table-row-active {
87
82
  background: var(--f-background-grid-active);
88
83
  color: $table-row-foreground;
@@ -141,6 +136,7 @@ $table-input-offset-horizontal: 0.25rem;
141
136
  font-weight: $table-header-font-weight;
142
137
  line-height: var(--f-line-height-large);
143
138
  padding: $table-header-padding;
139
+ text-align: left;
144
140
  vertical-align: top;
145
141
 
146
142
  &:last-child {
@@ -193,10 +189,6 @@ $table-input-offset-horizontal: 0.25rem;
193
189
 
194
190
  // these have higher priority
195
191
  &#{$TABLE_SELECTOR}__row {
196
- &--selected {
197
- @extend %table-row-selected;
198
- }
199
-
200
192
  &--active {
201
193
  @extend %table-row-active;
202
194
  }
@@ -209,20 +201,12 @@ $table-input-offset-horizontal: 0.25rem;
209
201
 
210
202
  // these have higher priority
211
203
  &#{$TABLE_SELECTOR}__row {
212
- &--selected {
213
- @extend %table-row-selected;
214
- }
215
-
216
204
  &--active {
217
205
  @extend %table-row-active;
218
206
  }
219
207
  }
220
208
  }
221
209
 
222
- &--selected {
223
- @extend %table-row-selected;
224
- }
225
-
226
210
  &--active {
227
211
  @extend %table-row-active;
228
212
  }
@@ -232,7 +216,7 @@ $table-input-offset-horizontal: 0.25rem;
232
216
  @extend %table-row-normal;
233
217
 
234
218
  &--collapsed {
235
- visibility: collapse;
219
+ display: none;
236
220
  }
237
221
  }
238
222
 
@@ -342,10 +326,6 @@ $table-input-offset-horizontal: 0.25rem;
342
326
 
343
327
  // these have higher priority
344
328
  &#{$TABLE_SELECTOR}__row {
345
- &--selected {
346
- @extend %table-row-selected;
347
- }
348
-
349
329
  &--active {
350
330
  @extend %table-row-active;
351
331
  }
@@ -359,10 +339,6 @@ $table-input-offset-horizontal: 0.25rem;
359
339
 
360
340
  // these have higher priority
361
341
  &#{$TABLE_SELECTOR}__row {
362
- &--selected {
363
- @extend %table-row-selected;
364
- }
365
-
366
342
  &--active {
367
343
  @extend %table-row-active;
368
344
  }
@@ -0,0 +1,15 @@
1
+ $wizardstep-stepofselector-color-text: var(--fkds-color-text-secondary);
2
+ $wizardstep-line-color: var(--fkds-color-border-strong);
3
+ $wizardstep-heading-color-default: var(--fkds-color-text-primary);
4
+ $wizardstep-heading-color-done: var(--fkds-color-feedback-text-positive);
5
+ $wizardstep-heading-decoration-color-done-hover: var(--fkds-color-feedback-text-positive);
6
+
7
+ // CIRCLE
8
+ $wizardstep-circle-color-border: var(--fkds-color-border-strong);
9
+ $wizardstep-circle-color-background-open: var(--fkds-color-background-primary);
10
+ $wizardstep-circle-color-background-pending: var(--fkds-color-background-disabled);
11
+ $wizardstep-circle-color-border-done: var(--fkds-color-feedback-border-positive);
12
+ $wizardstep-circle-color-background-done: var(--fkds-color-feedback-background-positive-strong);
13
+
14
+ // ICON SUCCESS
15
+ $wizardstep-success-color: var(--fkds-icon-color-content-inverted);
@@ -1,4 +1,5 @@
1
1
  @use "../../core";
2
+ @use "variables" as *;
2
3
 
3
4
  $WIZARD_STEP_SELECTOR: ".wizard-step" !default;
4
5
 
@@ -82,7 +83,7 @@ $icon-size: 30px;
82
83
  }
83
84
 
84
85
  #{$step-of-selector} {
85
- color: var(--f-text-color-discrete);
86
+ color: $wizardstep-stepofselector-color-text;
86
87
  font-weight: normal;
87
88
  font-size: 1rem;
88
89
  }
@@ -94,7 +95,7 @@ $icon-size: 30px;
94
95
  height: #{$line-down-length};
95
96
  margin-top: $line-gap-to-circle;
96
97
  width: #{$line-width};
97
- background-color: var(--f-background-wizard-step-line);
98
+ background-color: $wizardstep-line-color;
98
99
  }
99
100
 
100
101
  #{$line-up-selector} {
@@ -103,7 +104,14 @@ $icon-size: 30px;
103
104
  width: #{$line-width};
104
105
  margin-top: #{$line-gap-to-circle};
105
106
  margin-bottom: #{$line-up-adjustment-down};
106
- background-color: var(--f-background-wizard-step-line);
107
+ background-color: $wizardstep-line-color;
108
+ }
109
+
110
+ @media (forced-colors: active) {
111
+ #{$line-up-selector,
112
+ $line-down-selector} {
113
+ background-color: CanvasText;
114
+ }
107
115
  }
108
116
  @include core.breakpoint-up(md) {
109
117
  #{$line-up-selector} {
@@ -112,7 +120,7 @@ $icon-size: 30px;
112
120
  }
113
121
  @include core.breakpoint-up(md) {
114
122
  &__connector {
115
- border-left: #{$line-width} solid var(--f-border-color-wizard-step-line);
123
+ border-left: #{$line-width} solid $wizardstep-line-color;
116
124
  padding-left: #{$line-desktop-push-content-right};
117
125
  margin-top: #{$line-desktop-adjustment-up};
118
126
  margin-left: #{$line-desktop-align-line};
@@ -123,12 +131,12 @@ $icon-size: 30px;
123
131
 
124
132
  &--open #{$header-selector} {
125
133
  #{$title-selector} {
126
- color: var(--f-text-color-default);
134
+ color: $wizardstep-heading-color-default;
127
135
  }
128
136
 
129
137
  #{$icon-circle-selector} {
130
- fill: var(--f-icon-color-discrete);
131
- color: var(--f-icon-color-white);
138
+ fill: $wizardstep-circle-color-border;
139
+ color: $wizardstep-circle-color-background-open;
132
140
  }
133
141
 
134
142
  #{$icon-number-selector} {
@@ -150,18 +158,29 @@ $icon-size: 30px;
150
158
  #{$line-down-selector} {
151
159
  margin-bottom: 0;
152
160
  }
161
+
162
+ @media (forced-colors: active) {
163
+ #{$icon-circle-selector} {
164
+ fill: CanvasText; // circle border
165
+ color: Canvas; // circle background
166
+ }
167
+ }
153
168
  }
154
169
 
155
170
  &--done #{$header-selector} {
156
171
  margin-top: $line-gap-to-circle;
157
172
 
158
173
  #{$title-selector} {
159
- color: var(--f-text-color-wizard-step-done);
160
- text-decoration-color: var(--f-text-color-wizard-step-done);
174
+ color: $wizardstep-heading-color-done;
175
+ text-decoration-color: $wizardstep-heading-color-done;
176
+ text-decoration-thickness: 2px;
177
+ text-underline-offset: 0.25em;
161
178
  }
162
179
 
163
180
  #{$title-selector}:hover {
164
- text-decoration-color: var(--f-text-color-link-hover);
181
+ text-decoration-color: $wizardstep-heading-decoration-color-done-hover;
182
+ text-decoration-thickness: 3px;
183
+ text-underline-offset: 0.25em;
165
184
  }
166
185
 
167
186
  #{$line-up-selector} {
@@ -173,8 +192,8 @@ $icon-size: 30px;
173
192
  }
174
193
 
175
194
  #{$icon-circle-selector} {
176
- fill: var(--f-icon-color-wizard-step-done);
177
- color: var(--f-icon-color-wizard-step-done);
195
+ fill: $wizardstep-circle-color-border-done;
196
+ color: $wizardstep-circle-color-background-done;
178
197
  }
179
198
 
180
199
  #{$icon-number-selector} {
@@ -183,7 +202,7 @@ $icon-size: 30px;
183
202
 
184
203
  #{$icon-success-selector} {
185
204
  display: block;
186
- color: var(--f-icon-color-white);
205
+ color: $wizardstep-success-color;
187
206
  width: 20px;
188
207
  height: 20px;
189
208
  left: 5px;
@@ -193,6 +212,17 @@ $icon-size: 30px;
193
212
  #{$line-adjustment-selector} {
194
213
  height: calc(#{$line-down-length} + #{$line-gap-to-circle});
195
214
  }
215
+
216
+ @media (forced-colors: active) {
217
+ #{$icon-circle-selector} {
218
+ fill: CanvasText; // circle border
219
+ color: Canvas; // circle background
220
+ }
221
+
222
+ #{$icon-success-selector} {
223
+ color: CanvasText;
224
+ }
225
+ }
196
226
  }
197
227
 
198
228
  &--pending #{$header-selector} {
@@ -205,8 +235,8 @@ $icon-size: 30px;
205
235
  }
206
236
 
207
237
  #{$icon-circle-selector} {
208
- color: var(--f-icon-color-wizard-step-pending);
209
- fill: var(--f-text-color-discrete);
238
+ fill: $wizardstep-circle-color-border;
239
+ color: $wizardstep-circle-color-background-pending;
210
240
  }
211
241
 
212
242
  #{$title-placeholder-selector} {
@@ -216,6 +246,13 @@ $icon-size: 30px;
216
246
  #{$line-adjustment-selector} {
217
247
  height: calc(#{$line-down-length} + (#{$line-gap-to-circle} * 2));
218
248
  }
249
+
250
+ @media (forced-colors: active) {
251
+ #{$icon-circle-selector} {
252
+ fill: CanvasText; // circle border
253
+ color: Canvas; // circle background
254
+ }
255
+ }
219
256
  }
220
257
  }
221
258