@fastkit/vui 0.16.26 → 0.16.28

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 (36) hide show
  1. package/dist/after-effects/display-flow.scss +3 -3
  2. package/dist/after-effects/spacing.scss +4 -5
  3. package/dist/after-effects/text.scss +3 -2
  4. package/dist/after-effects.scss +3 -3
  5. package/dist/vui.css +1 -1
  6. package/dist/vui.mjs +0 -1
  7. package/dist/vui.mjs.map +1 -1
  8. package/package.json +25 -25
  9. package/src/components/VAvatar/VAvatar.scss +1 -1
  10. package/src/components/VBreadcrumbs/VBreadcrumbs.scss +1 -0
  11. package/src/components/VButton/VButton.scss +6 -1
  12. package/src/components/VCard/VCard.scss +2 -1
  13. package/src/components/VCheckable/VCheckable.scss +1 -0
  14. package/src/components/VChip/VChip.scss +1 -1
  15. package/src/components/VControlField/VControlField.scss +5 -0
  16. package/src/components/VDataTable/VDataTable.scss +37 -34
  17. package/src/components/VFormControl/VFormControl.scss +3 -0
  18. package/src/components/VIcon/VIcon.scss +1 -0
  19. package/src/components/VListTile/VListTile.scss +1 -0
  20. package/src/components/VNavigation/VNavigation.scss +1 -0
  21. package/src/components/VOption/VOption.scss +2 -1
  22. package/src/components/VOptionGroup/VOptionGroup.scss +1 -0
  23. package/src/components/VPagination/VPagination.tsx +3 -1
  24. package/src/components/VRadio/VRadio.scss +3 -0
  25. package/src/components/VSelect/VSelect.scss +1 -0
  26. package/src/components/VSwitch/VSwitch.scss +2 -0
  27. package/src/components/VTabs/VTab.scss +3 -0
  28. package/src/components/VTabs/VTabs.tsx +0 -1
  29. package/src/components/VTextField/VTextField.scss +3 -0
  30. package/src/components/VTextarea/VTextarea.scss +1 -0
  31. package/src/components/VToolbar/VToolbarTitle.scss +3 -0
  32. package/src/components/VTooltip/VTooltip.scss +1 -0
  33. package/src/styles/core/functions.scss +1 -0
  34. package/src/styles/elevation.scss +1 -0
  35. package/src/styles/index.scss +0 -1
  36. package/src/styles/variables.scss +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.16.26",
3
+ "version": "0.16.28",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "keywords": [
6
6
  "fastkit",
@@ -44,31 +44,31 @@
44
44
  "src"
45
45
  ],
46
46
  "dependencies": {
47
- "@fastkit/color-scheme": "1.0.8",
48
- "@fastkit/dom": "0.1.1",
49
- "@fastkit/color-scheme-gen": "0.13.8",
50
- "@fastkit/helpers": "0.13.1",
51
- "@fastkit/icon-font": "1.0.7",
52
- "@fastkit/media-match": "1.0.7",
53
- "@fastkit/media-match-gen": "0.13.8",
54
- "@fastkit/rules": "0.13.2",
47
+ "@fastkit/color-scheme": "1.0.9",
48
+ "@fastkit/color-scheme-gen": "0.13.9",
49
+ "@fastkit/dom": "0.1.2",
50
+ "@fastkit/helpers": "0.13.2",
51
+ "@fastkit/icon-font": "1.0.8",
52
+ "@fastkit/media-match": "1.0.8",
53
+ "@fastkit/media-match-gen": "0.13.9",
54
+ "@fastkit/rules": "0.13.3",
55
55
  "@fastkit/stylebase": "0.13.0",
56
- "@fastkit/tiny-logger": "0.13.1",
57
- "@fastkit/vue-action": "0.2.3",
58
- "@fastkit/vue-app-layout": "0.14.2",
59
- "@fastkit/vue-body-scroll-lock": "0.1.3",
60
- "@fastkit/vue-click-outside": "0.1.3",
61
- "@fastkit/vue-color-scheme": "0.14.3",
62
- "@fastkit/vue-form-control": "0.15.15",
63
- "@fastkit/vue-keyboard": "0.1.1",
64
- "@fastkit/vue-location": "0.1.3",
65
- "@fastkit/vue-loading": "0.14.4",
66
- "@fastkit/vue-media-match": "0.13.8",
67
- "@fastkit/vue-resize": "0.1.3",
68
- "@fastkit/vue-scroller": "0.14.2",
69
- "@fastkit/vue-stack": "0.15.14",
70
- "@fastkit/vue-transitions": "0.1.4",
71
- "@fastkit/vue-utils": "0.14.1"
56
+ "@fastkit/tiny-logger": "0.13.2",
57
+ "@fastkit/vue-action": "0.2.4",
58
+ "@fastkit/vue-app-layout": "0.14.3",
59
+ "@fastkit/vue-body-scroll-lock": "0.1.4",
60
+ "@fastkit/vue-click-outside": "0.1.4",
61
+ "@fastkit/vue-color-scheme": "0.14.4",
62
+ "@fastkit/vue-form-control": "0.15.17",
63
+ "@fastkit/vue-keyboard": "0.1.2",
64
+ "@fastkit/vue-loading": "0.14.5",
65
+ "@fastkit/vue-location": "0.1.4",
66
+ "@fastkit/vue-media-match": "0.13.9",
67
+ "@fastkit/vue-resize": "0.1.4",
68
+ "@fastkit/vue-scroller": "0.14.3",
69
+ "@fastkit/vue-stack": "0.15.15",
70
+ "@fastkit/vue-transitions": "0.1.5",
71
+ "@fastkit/vue-utils": "0.14.2"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "vue": "^3.3.0",
@@ -2,7 +2,7 @@
2
2
 
3
3
  @layer vui {
4
4
  .v-avatar {
5
- @include core.button-reset();
5
+ @include core.button-reset;
6
6
 
7
7
  --avatar-radius: 50%;
8
8
  --avatar-font-weight: var(--typo-medium-weight);
@@ -31,6 +31,7 @@
31
31
 
32
32
  &__item--disabled &__link {
33
33
  color: inherit;
34
+
34
35
  // color: get-color(text-muted);
35
36
  pointer-events: none;
36
37
  }
@@ -15,20 +15,24 @@
15
15
  align-items: center;
16
16
  justify-content: center;
17
17
  min-width: calc(var(--root-em) * 4);
18
+
18
19
  // height: calc(var(--root-em) * 2);
19
20
  height: var(--height);
21
+
20
22
  // padding: 0 var(--root-em);
21
23
  padding: 0 var(--padding);
24
+
22
25
  // margin: 0;
23
26
  margin: calc(var(--root-em) * 0.375) calc(var(--root-em) * 0.5);
24
27
  overflow: hidden;
25
28
  font: inherit;
29
+
26
30
  // font-size: calc(var(--root-em) * 0.875);
27
31
  font-weight: 500;
28
32
  line-height: 1;
29
33
  text-decoration: none;
30
34
  text-transform: uppercase;
31
- letter-spacing: math.div(1.25, 14) * 1em; //1.25px;
35
+ letter-spacing: math.div(1.25, 14) * 1em; // 1.25px;
32
36
  vertical-align: bottom;
33
37
  cursor: pointer;
34
38
  user-select: none;
@@ -49,6 +53,7 @@
49
53
 
50
54
  &--plain {
51
55
  color: inherit !important;
56
+
52
57
  // color: inherit !important;
53
58
 
54
59
  &[disabled] {
@@ -2,7 +2,7 @@
2
2
 
3
3
  @layer vui {
4
4
  .v-card {
5
- @include core.remove-tap-highlight();
5
+ @include core.remove-tap-highlight;
6
6
 
7
7
  position: relative;
8
8
  width: 100%;
@@ -48,6 +48,7 @@
48
48
  content: none;
49
49
  }
50
50
  }
51
+
51
52
  // noop
52
53
  }
53
54
  }
@@ -22,6 +22,7 @@
22
22
 
23
23
  &--disabled {
24
24
  --color: var(--control-disabled-color);
25
+
25
26
  // --color: var(--main-color);
26
27
 
27
28
  pointer-events: none;
@@ -2,7 +2,7 @@
2
2
 
3
3
  @layer vui {
4
4
  .v-chip {
5
- @include core.button-reset();
5
+ @include core.button-reset;
6
6
 
7
7
  $chip-sizes: xs, sm, md, lg, xl;
8
8
 
@@ -34,6 +34,7 @@
34
34
  &--disabled {
35
35
  color: var(--control-disabled-color);
36
36
  pointer-events: none;
37
+
37
38
  // cursor: not-allowed !important;
38
39
  user-select: none;
39
40
  }
@@ -46,6 +47,7 @@
46
47
  left: 0;
47
48
  pointer-events: none;
48
49
  content: '';
50
+
49
51
  // transition: all 0.2s;
50
52
  }
51
53
 
@@ -89,8 +91,10 @@
89
91
  flex: 1 1 auto;
90
92
  align-items: stretch;
91
93
  align-self: stretch;
94
+
92
95
  // margin: 0 8px;
93
96
  margin: 0;
97
+
94
98
  // pointer-events: none;
95
99
 
96
100
  // color: #f00;
@@ -160,6 +164,7 @@
160
164
  &:focus-within {
161
165
  box-shadow: 0 0 1px var(--shadow-color),
162
166
  0 0 2px 2px var(--focusShadow-color);
167
+
163
168
  // border-color: var(--my-focused-color);
164
169
  }
165
170
  }
@@ -7,11 +7,11 @@
7
7
  margin-left: calc(var(--card-content-padding) * -1);
8
8
  }
9
9
 
10
- &__empty--message {
11
- // @include container;
10
+ // &__empty--message {
11
+ // @include container;
12
12
 
13
- // color: get-color(text-muted);
14
- }
13
+ // color: get-color(text-muted);
14
+ // }
15
15
 
16
16
  &__controls {
17
17
  display: flex;
@@ -49,7 +49,7 @@
49
49
  flex: 1 1 100%;
50
50
  margin-left: auto;
51
51
 
52
- @media screen and (min-width: 320px) {
52
+ @media screen and (width >= 320px) {
53
53
  flex: 0 0 50%;
54
54
  width: 50%;
55
55
  }
@@ -78,6 +78,7 @@
78
78
  &::before,
79
79
  &::after {
80
80
  display: block;
81
+
81
82
  // flex: 0 0 $view-padding-narrow;
82
83
  // width: $view-padding-narrow;
83
84
  height: 1px;
@@ -103,8 +104,10 @@
103
104
 
104
105
  &__table {
105
106
  width: 100%;
107
+
106
108
  // min-width: calc(100% - #{$view-padding-narrow * 2});
107
109
  margin: 0;
110
+
108
111
  // border-collapse: separate;
109
112
  background: var(--palette-background);
110
113
  border-radius: var(--control-field-radius);
@@ -148,11 +151,11 @@
148
151
  &[tabindex='0'] {
149
152
  cursor: pointer;
150
153
 
151
- &:hover,
152
- &:focus {
153
- // background: var(--shadow-color);
154
- // background: get-color(light);
155
- }
154
+ // &:hover,
155
+ // &:focus {
156
+ // background: var(--shadow-color);
157
+ // background: get-color(light);
158
+ // }
156
159
  }
157
160
 
158
161
  &__tile {
@@ -178,10 +181,10 @@
178
181
  background: rgba(255, 255, 255, 0.85);
179
182
  backdrop-filter: blur(3px);
180
183
 
181
- &--active[tabindex='0'] {
182
- // color: get-color(invert-text);
183
- // background: get-color(primary);
184
- }
184
+ // &--active[tabindex='0'] {
185
+ // color: get-color(invert-text);
186
+ // background: get-color(primary);
187
+ // }
185
188
  }
186
189
 
187
190
  &__header &__cell--active &__sort-icon {
@@ -197,26 +200,26 @@
197
200
  border-bottom: none;
198
201
  }
199
202
 
200
- &__item {
201
- &:hover {
202
- td {
203
- // background: get-color(tocuh-0);
204
- }
205
- }
206
-
207
- &--selected {
208
- // stylelint-disable-next-line no-descending-specificity
209
- td {
210
- // background: get-color(light);
211
- }
212
-
213
- &:hover {
214
- td {
215
- // background: get-color(light);
216
- }
217
- }
218
- }
219
- }
203
+ // &__item {
204
+ // &:hover {
205
+ // td {
206
+ // background: get-color(tocuh-0);
207
+ // }
208
+ // }
209
+
210
+ // &--selected {
211
+ // stylelint-disable-next-line no-descending-specificity
212
+ // td {
213
+ // background: get-color(light);
214
+ // }
215
+
216
+ // &:hover {
217
+ // td {
218
+ // background: get-color(light);
219
+ // }
220
+ // }
221
+ // }
222
+ // }
220
223
  }
221
224
 
222
225
  // stylelint-disable-next-line no-descending-specificity
@@ -34,10 +34,12 @@
34
34
  align-items: center;
35
35
  margin-top: -0.2em;
36
36
  margin-left: 0.6em;
37
+
37
38
  // font-size: calc(var(--root-em) * 0.5);
38
39
  font-size: 80%;
39
40
  line-height: 1;
40
41
  color: inherit;
42
+
41
43
  // color: var(--palette-muted);
42
44
  text-decoration: none;
43
45
  letter-spacing: normal;
@@ -89,6 +91,7 @@
89
91
 
90
92
  &__message {
91
93
  flex: 1 0;
94
+
92
95
  // margin: 0 var(--control-message-horizontal-margin);
93
96
  // font-size: var(--control-message-font-size);
94
97
  // line-height: 1.66;
@@ -5,6 +5,7 @@
5
5
  justify-content: center;
6
6
  width: 1.25em;
7
7
  aspect-ratio: 1 / 1;
8
+
8
9
  // -webkit-user-drag: none;
9
10
  // pointer-events: none;
10
11
  user-select: none;
@@ -58,6 +58,7 @@
58
58
 
59
59
  &__body {
60
60
  font-size: 0.8125rem;
61
+
61
62
  // font-size: 0.75rem;
62
63
  font-weight: 500;
63
64
  line-height: 1.5;
@@ -5,6 +5,7 @@
5
5
  display: block;
6
6
  padding: calc(var(--root-em) * 0.625) calc(var(--root-em) * 1.5625);
7
7
  margin: 1em 0 0;
8
+
8
9
  // font-size: 0.6875rem;
9
10
  font-size: 0.75rem;
10
11
  color: var(--caption-color);
@@ -2,12 +2,13 @@
2
2
 
3
3
  @layer vui {
4
4
  .v-option {
5
- @include core.button-reset();
5
+ @include core.button-reset;
6
6
 
7
7
  position: relative;
8
8
  display: flex;
9
9
  width: 100%;
10
10
  padding: 0.75em 1em;
11
+
11
12
  // font-size: 0.875em;
12
13
 
13
14
  input {
@@ -4,6 +4,7 @@
4
4
 
5
5
  &__label {
6
6
  padding: 1em;
7
+
7
8
  // padding: 0.875em 1em;
8
9
  font-size: 0.875em;
9
10
  color: var(--palette-caption);
@@ -181,7 +181,9 @@ export const VPagination = defineComponent({
181
181
  let result = beforeChange(newPage);
182
182
  if (isPromise(result)) result = await result;
183
183
  if (result === false) return;
184
- } catch (e) {}
184
+ } catch (e) {
185
+ // noop
186
+ }
185
187
  }
186
188
  if (routeQuery) {
187
189
  const to = createRoutableLocationByPage(newPage, routeQuery);
@@ -15,12 +15,14 @@
15
15
 
16
16
  &__faux {
17
17
  position: relative;
18
+
18
19
  // display: flex;
19
20
  // align-items: center;
20
21
  // justify-content: center;
21
22
  display: block;
22
23
  width: 100%;
23
24
  height: 100%;
25
+
24
26
  // background: var(--my-faux-bg-color);
25
27
  // border: solid 2px currentColor;
26
28
  // border-radius: 100%;
@@ -37,6 +39,7 @@
37
39
  &::before {
38
40
  inset: 0;
39
41
  border: solid 2px currentColor;
42
+
40
43
  // display: block;
41
44
  // width: 60%;
42
45
  // height: 60%;
@@ -48,6 +48,7 @@
48
48
  display: table;
49
49
  width: 100%;
50
50
  table-layout: fixed;
51
+
51
52
  // display: flex;
52
53
  // align-items: center;
53
54
  // width: 100%;
@@ -3,6 +3,7 @@
3
3
  @layer vui {
4
4
  .v-switch {
5
5
  --my-pin-color: var(--palette-background);
6
+
6
7
  // --my-faux-bg-color: transparent;
7
8
 
8
9
  &--selected {
@@ -39,6 +40,7 @@
39
40
  justify-content: center;
40
41
  width: var(--outer-size);
41
42
  height: var(--outer-size);
43
+
42
44
  // background: #f00;
43
45
  border-radius: 50%;
44
46
  transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
@@ -11,6 +11,7 @@
11
11
  position: relative;
12
12
  z-index: 3;
13
13
  display: flex;
14
+
14
15
  // flex: 1 1 auto;
15
16
  align-items: center;
16
17
  justify-content: center;
@@ -18,6 +19,7 @@
18
19
  padding: 0 1.25em;
19
20
  font: inherit;
20
21
  font-size: var(--tabs-font-size);
22
+
21
23
  // color: inherit;
22
24
  white-space: nowrap;
23
25
  user-select: none;
@@ -27,6 +29,7 @@
27
29
  position: absolute;
28
30
  right: 0;
29
31
  bottom: 0;
32
+
30
33
  // top: 0;
31
34
  left: 0;
32
35
  z-index: 1;
@@ -190,7 +190,6 @@ export const VTabs = defineComponent({
190
190
  if (isPromise(result)) {
191
191
  result = await result;
192
192
  }
193
- console.log(result);
194
193
  if (result === false) {
195
194
  return;
196
195
  }
@@ -8,10 +8,12 @@
8
8
  &__element {
9
9
  width: 100%;
10
10
  min-width: 0;
11
+
11
12
  // width: calc(100% - 8px);
12
13
  padding: 0;
13
14
  margin: 0;
14
15
  overflow: hidden;
16
+
15
17
  // margin: 0 8px;
16
18
  font-size: inherit;
17
19
  line-height: inherit;
@@ -25,6 +27,7 @@
25
27
 
26
28
  &:-webkit-autofill {
27
29
  @include core.auto-fill-cancel;
30
+
28
31
  // color: inherit !important;
29
32
  // box-shadow: 0 0 0 1000px get-color(field) inset;
30
33
  }
@@ -21,6 +21,7 @@
21
21
 
22
22
  &:-webkit-autofill {
23
23
  @include core.auto-fill-cancel;
24
+
24
25
  // color: inherit !important;
25
26
  // box-shadow: 0 0 0 1000px get-color(field) inset;
26
27
  }
@@ -5,10 +5,13 @@
5
5
  display: flex;
6
6
  flex-grow: 1;
7
7
  margin: 0;
8
+
8
9
  // font-size: var(--typo-h3-size);
9
10
  font-size: 1.25rem;
11
+
10
12
  // font-weight: var(--typo-h3-weight);
11
13
  font-weight: 400;
14
+
12
15
  // font-size: 16px;
13
16
  // font-weight: 500;
14
17
  line-height: 1;
@@ -9,6 +9,7 @@
9
9
  }
10
10
 
11
11
  border-radius: var(--tooltip-radius);
12
+
12
13
  // opacity: var(--tooltip-opacity);
13
14
 
14
15
  &__inner {
@@ -49,6 +49,7 @@
49
49
  touch-action: manipulation;
50
50
  cursor: pointer;
51
51
  user-select: none;
52
+
52
53
  // background-color: transparent;
53
54
  border-width: 0;
54
55
  outline: 0;
@@ -6,5 +6,6 @@ $z: 24;
6
6
  .elevation-#{$z} {
7
7
  @include core.elevation($z, true);
8
8
  }
9
+
9
10
  $z: $z - 1;
10
11
  }
@@ -1,5 +1,4 @@
1
1
  @use 'sass:meta';
2
-
3
2
  @layer vui-normalize, vui-color-scheme, vue-loading, vue-app-layout, vui;
4
3
 
5
4
  @layer vui-normalize {
@@ -318,6 +318,7 @@
318
318
  // tabs
319
319
  --tabs-height: calc(var(--root-em) * 3);
320
320
  --tabs-bar-height: calc(var(--root-em) * 0.375);
321
+
321
322
  // --tabs-color: var(--main-color);
322
323
  --tabs-font-size: calc(var(--root-em) * 0.875);
323
324