@fkui/design 6.26.0 → 6.28.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.26.0",
3
+ "version": "6.28.0",
4
4
  "description": "fkui design",
5
5
  "keywords": [
6
6
  "fkui",
@@ -39,11 +39,11 @@
39
39
  "unit:watch": "node --test --watch"
40
40
  },
41
41
  "devDependencies": {
42
- "@fkui/icon-lib-default": "6.26.0",
43
- "@fkui/theme-default": "6.26.0",
44
- "autoprefixer": "10.4.21",
42
+ "@fkui/icon-lib-default": "6.28.0",
43
+ "@fkui/theme-default": "6.28.0",
44
+ "autoprefixer": "10.4.22",
45
45
  "cssnano": "7.1.2",
46
- "glob": "11.0.3",
46
+ "glob": "13.0.0",
47
47
  "picocolors": "1.1.1",
48
48
  "postcss": "8.5.6",
49
49
  "postcss-url": "10.1.3",
@@ -51,7 +51,7 @@
51
51
  "svgo": "4.0.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@fkui/theme-default": "^6.26.0",
54
+ "@fkui/theme-default": "^6.28.0",
55
55
  "sass": "^1.40.0",
56
56
  "stylelint": ">= 14"
57
57
  },
@@ -68,5 +68,5 @@
68
68
  "npm": ">= 7"
69
69
  },
70
70
  "sass": "./src/fkui.scss",
71
- "gitHead": "ed75f6ab84a4757eb7b627101948112a967dddfe"
71
+ "gitHead": "fe2ffaeb55b9e9f560cc6f660740bc3480f77cd8"
72
72
  }
@@ -3,33 +3,22 @@
3
3
  @use "../../core/typography/headings";
4
4
  @use "../../core/size";
5
5
  @use "../icon/icon";
6
-
7
- $EXPANDABLE_PANEL_LINE_HEIGHT: var(--f-line-height-medium);
8
- $ICON_MARGIN: 0.5rem;
9
- $ICON_WIDTH: var(--f-icon-size-medium);
6
+ @use "variables" as *;
10
7
 
11
8
  .expandable-panel {
12
9
  margin-bottom: core.densify(size.$margin-200);
13
10
 
14
- &__icon {
15
- @include circle.circle($background: var(--f-icon-color-expandable-panel), $size: $ICON_WIDTH);
16
-
17
- margin-top: calc((#{$EXPANDABLE_PANEL_LINE_HEIGHT} * 1em - #{$ICON_WIDTH}) / 2); // Unit "em" intended here, align icon to header
18
- display: flex;
19
- color: var(--f-background-heading-expandable-panel);
20
- padding: 3px; // cross icon size
21
- flex-shrink: 0; // needed for IE11
22
- margin-right: $ICON_MARGIN;
23
- .icon {
24
- transition: transform var(--f-animation-duration-long) ease;
25
- }
11
+ &__icon svg {
12
+ width: $expandablepanel-heading-expand-icon-size;
13
+ height: $expandablepanel-heading-expand-icon-size;
14
+ max-height: initial;
15
+ max-width: initial;
16
+ vertical-align: middle;
26
17
  }
27
18
 
28
19
  &.expandable-panel--expanded {
29
- .expandable-panel__icon {
30
- svg:nth-child(2) {
31
- transform: rotate(0);
32
- }
20
+ .expandable-panel__icon svg {
21
+ transform: rotate(180deg);
33
22
  }
34
23
 
35
24
  .expandable-panel__content {
@@ -37,62 +26,75 @@ $ICON_WIDTH: var(--f-icon-size-medium);
37
26
  }
38
27
 
39
28
  .expandable-panel__heading button {
40
- border: var(--f-expandable-panel-heading-border-open);
29
+ border-radius: var(--f-border-radius-medium) var(--f-border-radius-medium) 0 0;
41
30
  }
42
31
  }
43
32
 
44
33
  &.expandable-panel--collapsed {
45
- .expandable-panel__icon {
46
- svg:nth-child(2) {
47
- transform: rotate(-90deg);
48
- }
34
+ .expandable-panel__icon svg {
35
+ transform: rotate(0);
49
36
  }
50
37
  }
51
38
 
52
39
  &__heading {
53
- /* stylelint-disable-next-line scss/at-extend-no-missing-placeholder -- technical debt */
54
- @extend .heading--h3;
55
-
56
40
  margin-bottom: 0 !important;
57
41
 
58
42
  button {
59
- background-color: var(--f-background-heading-expandable-panel);
60
- border: var(--f-expandable-panel-heading-border-close);
61
- border-radius: var(--f-expandable-panel-heading-border-radius);
62
- color: var(--f-text-color-heading-expandable-panel);
43
+ background-color: $expandablepanel-heading-color-background-default;
44
+ border: var(--f-border-width-medium) solid $expandablepanel-heading-color-border;
45
+ border-radius: var(--f-border-radius-medium);
46
+ color: $expandablepanel-heading-color-text-default;
63
47
  cursor: pointer;
64
- display: flex;
48
+ display: inline-flex;
49
+ align-items: center;
65
50
  margin: 0;
66
51
  padding: core.densify(size.$padding-100) size.$padding-100;
67
- position: relative;
68
52
  text-align: left;
69
53
  width: 100%;
54
+ font-size: var(--f-font-size-large);
55
+ font-weight: var(--f-font-weight-bold);
56
+ line-height: var(--f-line-height-large);
70
57
 
71
58
  &:focus,
72
59
  &:hover {
73
- background-color: var(--f-background-heading-expandable-panel-hover);
60
+ background-color: $expandablepanel-heading-color-background-hover;
74
61
  }
75
62
  }
76
63
  }
77
64
 
65
+ &__title {
66
+ flex-grow: 1;
67
+ text-wrap: pretty;
68
+
69
+ &__text {
70
+ vertical-align: middle;
71
+ }
72
+ }
73
+
78
74
  &__notification {
79
- @include circle.circle(
80
- $background: var(--f-icon-color-notice),
81
- $border: var(--f-border-width-medium) solid var(--f-icon-color-white),
82
- $size: var(--f-icon-size-x-large)
83
- );
84
-
85
- display: inline-block;
86
- padding: 0.27rem;
87
- position: absolute;
88
- right: 1.5rem;
89
- top: calc(-0.5 * size.$padding-150);
90
- line-height: 0;
75
+ margin-left: 0.25em;
76
+ width: $expandablepanel-heading-notification-icon-container-size;
77
+ height: $expandablepanel-heading-notification-icon-container-size;
78
+ background: $expandablepanel-heading-notification-color-background;
79
+ border: var(--f-border-radius-small) solid transparent; // forced-colors
80
+ border-radius: 50%;
81
+ display: inline-flex;
82
+ justify-content: center;
83
+ align-items: center;
84
+ vertical-align: middle;
85
+
86
+ @media (forced-colors: active) {
87
+ background: canvas;
88
+ }
91
89
 
92
90
  svg {
93
- color: var(--f-icon-color-white);
94
- height: auto;
95
- width: auto;
91
+ color: $expandablepanel-heading-notification-icon-color-fill;
92
+ width: $expandablepanel-heading-notification-icon-size;
93
+ height: $expandablepanel-heading-notification-icon-size;
94
+
95
+ @media (forced-colors: active) {
96
+ color: buttonText;
97
+ }
96
98
  }
97
99
  }
98
100
 
@@ -103,10 +105,11 @@ $ICON_WIDTH: var(--f-icon-size-medium);
103
105
  }
104
106
 
105
107
  &__body {
106
- background-color: var(--f-background-expandable-panel);
107
- border: var(--f-border-width-medium) solid var(--f-border-color-panel);
108
+ background-color: $expandablepanel-body-color-background-default;
109
+ border: var(--f-border-width-medium) solid $expandablepanel-heading-color-border;
108
110
  border-top: 0;
111
+ border-radius: 0 0 var(--f-border-radius-medium) var(--f-border-radius-medium);
109
112
  line-height: inherit;
110
- padding: core.densify(size.$padding-150) size.$padding-150;
113
+ padding: core.densify(size.$padding-100) size.$padding-100;
111
114
  }
112
115
  }
@@ -1 +1,13 @@
1
- // stylelint-disable no-empty-source -- placeholder file
1
+ // HEADING
2
+ $expandablepanel-heading-color-background-default: var(--fkds-color-background-secondary) !default;
3
+ $expandablepanel-heading-color-background-hover: var(--fkds-color-action-background-secondary-hover) !default;
4
+ $expandablepanel-heading-color-text-default: var(--fkds-color-text-primary) !default;
5
+ $expandablepanel-heading-color-border: var(--fkds-color-border-primary) !default;
6
+ $expandablepanel-heading-notification-color-background: var(--fkds-color-feedback-background-negative-strong) !default;
7
+ $expandablepanel-heading-notification-icon-color-fill: var(--fkds-color-text-inverted) !default;
8
+ $expandablepanel-heading-notification-icon-container-size: var(--f-icon-size-large) !default;
9
+ $expandablepanel-heading-notification-icon-size: var(--f-icon-size-small) !default;
10
+ $expandablepanel-heading-expand-icon-size: var(--f-icon-size-medium) !default;
11
+
12
+ // BODY
13
+ $expandablepanel-body-color-background-default: var(--fkds-color-background-primary) !default;
@@ -295,6 +295,13 @@ $table-input-offset-horizontal: 0.25rem;
295
295
  color: $table-color-description-text;
296
296
  font-weight: $table-description-font-weight;
297
297
  }
298
+ &__wrapper {
299
+ pointer-events: none;
300
+
301
+ & > * {
302
+ pointer-events: auto;
303
+ }
304
+ }
298
305
  }
299
306
 
300
307
  &--striped tbody {
@@ -18,7 +18,6 @@
18
18
 
19
19
  .button__icon {
20
20
  margin: var(--f-button-tertiary-table-column-action-icon-margin);
21
- transform: translate(0, 10%);
22
21
  height: 14px;
23
22
  width: 14px;
24
23
  }
@@ -93,6 +93,7 @@ $horizontal-padding: size.$padding-050;
93
93
  input {
94
94
  height: var(--f-icon-size-medium);
95
95
  width: var(--f-icon-size-medium);
96
+ vertical-align: middle;
96
97
  }
97
98
  }
98
99
 
@@ -115,6 +116,11 @@ $horizontal-padding: size.$padding-050;
115
116
 
116
117
  &--expand {
117
118
  width: var(--f-icon-size-medium);
119
+ padding: core.densify(size.$padding-025);
120
+ }
121
+
122
+ &--select {
123
+ width: var(--f-icon-size-medium);
118
124
  }
119
125
 
120
126
  &--rowheader {
@@ -17,13 +17,14 @@ $horizontal-padding: size.$padding-050;
17
17
  border-right: 1px solid var(--f-color-focus);
18
18
  }
19
19
 
20
- &--checkbox {
20
+ &--select {
21
21
  text-align: center;
22
22
  padding: core.densify(size.$padding-025);
23
23
 
24
24
  input {
25
25
  height: var(--f-icon-size-medium);
26
26
  width: var(--f-icon-size-medium);
27
+ vertical-align: middle;
27
28
  }
28
29
  }
29
30
 
@@ -73,11 +73,11 @@ function rule(actual) {
73
73
  for (const variable of extractVariables(node)) {
74
74
  if (isDeprecated(variable)) {
75
75
  stylelint.utils.report({
76
- index: 0,
76
+ result,
77
+ ruleName,
77
78
  message: messages.deprecated(variable.name),
78
79
  node,
79
- ruleName,
80
- result,
80
+ word: variable.name,
81
81
  });
82
82
  }
83
83
  }
@@ -29,8 +29,8 @@ it("should warn when using deprecated variable", async (t) => {
29
29
  t.assert.deepStrictEqual(parseErrors, []);
30
30
  t.assert.partialDeepStrictEqual(warnings, [
31
31
  {
32
- column: 13,
33
- endColumn: 42,
32
+ column: 24,
33
+ endColumn: 40,
34
34
  endLine: 3,
35
35
  fix: undefined,
36
36
  line: 3,
@@ -54,8 +54,8 @@ it("should handle whitespace", async (t) => {
54
54
  t.assert.deepStrictEqual(parseErrors, []);
55
55
  t.assert.partialDeepStrictEqual(warnings, [
56
56
  {
57
- column: 13,
58
- endColumn: 39,
57
+ column: 21,
58
+ endColumn: 37,
59
59
  endLine: 3,
60
60
  fix: undefined,
61
61
  line: 3,
@@ -65,8 +65,8 @@ it("should handle whitespace", async (t) => {
65
65
  url: undefined,
66
66
  },
67
67
  {
68
- column: 13,
69
- endColumn: 39,
68
+ column: 20,
69
+ endColumn: 36,
70
70
  endLine: 4,
71
71
  fix: undefined,
72
72
  line: 4,
@@ -76,8 +76,8 @@ it("should handle whitespace", async (t) => {
76
76
  url: undefined,
77
77
  },
78
78
  {
79
- column: 13,
80
- endColumn: 40,
79
+ column: 21,
80
+ endColumn: 37,
81
81
  endLine: 5,
82
82
  fix: undefined,
83
83
  line: 5,
@@ -99,8 +99,8 @@ it("should handle fallback value", async (t) => {
99
99
  t.assert.deepStrictEqual(parseErrors, []);
100
100
  t.assert.partialDeepStrictEqual(warnings, [
101
101
  {
102
- column: 13,
103
- endColumn: 51,
102
+ column: 24,
103
+ endColumn: 40,
104
104
  endLine: 3,
105
105
  fix: undefined,
106
106
  line: 3,
@@ -122,8 +122,8 @@ it("should handle properties with multiple declarations", async (t) => {
122
122
  t.assert.deepStrictEqual(parseErrors, []);
123
123
  t.assert.partialDeepStrictEqual(warnings, [
124
124
  {
125
- column: 13,
126
- endColumn: 72,
125
+ column: 29,
126
+ endColumn: 45,
127
127
  endLine: 3,
128
128
  fix: undefined,
129
129
  line: 3,
@@ -133,8 +133,8 @@ it("should handle properties with multiple declarations", async (t) => {
133
133
  url: undefined,
134
134
  },
135
135
  {
136
- column: 13,
137
- endColumn: 72,
136
+ column: 52,
137
+ endColumn: 70,
138
138
  endLine: 3,
139
139
  fix: undefined,
140
140
  line: 3,
@@ -156,8 +156,8 @@ it("should handle malformed var", async (t) => {
156
156
  t.assert.deepStrictEqual(parseErrors, []);
157
157
  t.assert.partialDeepStrictEqual(warnings, [
158
158
  {
159
- column: 13,
160
- endColumn: 39,
159
+ column: 20,
160
+ endColumn: 36,
161
161
  endLine: 4,
162
162
  fix: undefined,
163
163
  line: 4,