@xleddyl/443-components-vue 0.16.97 → 0.16.99

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 (68) hide show
  1. package/CATALOG.md +44 -40
  2. package/README.md +69 -32
  3. package/dist/components/core/FormField.vue +46 -2
  4. package/dist/components/core/FormField.vue.d.ts +2 -0
  5. package/dist/components/core/Root.vue +2 -0
  6. package/dist/components/core/Root.vue.d.ts +2 -0
  7. package/dist/components/core/types.d.ts +1 -0
  8. package/dist/components/data/FilterPills.vue +2 -1
  9. package/dist/components/data/Table.vue +3 -1
  10. package/dist/components/data/Table.vue.d.ts +1 -0
  11. package/dist/components/data/TileGrid.vue +1 -0
  12. package/dist/components/data/types.d.ts +1 -0
  13. package/dist/components/feedback/Alert.vue +13 -3
  14. package/dist/components/feedback/Alert.vue.d.ts +4 -4
  15. package/dist/components/forms/FileDropOverlay.vue +28 -0
  16. package/dist/components/forms/FileDropOverlay.vue.d.ts +410 -0
  17. package/dist/components/forms/SegmentedControl.vue +20 -1
  18. package/dist/components/forms/index.d.ts +1 -0
  19. package/dist/components/forms/index.mjs +1 -0
  20. package/dist/components/forms/types.d.ts +4 -1
  21. package/dist/components/layout/Accordion.vue +7 -2
  22. package/dist/components/layout/Accordion.vue.d.ts +2 -0
  23. package/dist/components/layout/Card.vue +47 -6
  24. package/dist/components/layout/Card.vue.d.ts +4 -0
  25. package/dist/components/layout/PageHeader.vue +5 -2
  26. package/dist/components/layout/Stack.vue +3 -2
  27. package/dist/components/layout/Stack.vue.d.ts +2 -0
  28. package/dist/components/overlays/CommandList.vue +22 -4
  29. package/dist/components/overlays/types.d.ts +7 -1
  30. package/dist/components/templates/ListPage.vue +3 -2
  31. package/dist/components/templates/SettingsSection.vue.d.ts +4 -0
  32. package/dist/composables/core.d.ts +1 -0
  33. package/dist/composables/core.mjs +1 -0
  34. package/dist/composables/forms.d.ts +1 -0
  35. package/dist/composables/forms.mjs +1 -0
  36. package/dist/composables/useFieldHighlight.d.ts +8 -0
  37. package/dist/composables/useFieldHighlight.mjs +19 -0
  38. package/dist/composables/useFileDialog.d.ts +17 -0
  39. package/dist/composables/useFileDialog.mjs +40 -0
  40. package/dist/internal/core/HighlightText.d.ts +12 -0
  41. package/dist/internal/core/HighlightText.mjs +30 -0
  42. package/dist/locale/de.mjs +3 -0
  43. package/dist/locale/en.mjs +3 -0
  44. package/dist/locale/it.mjs +3 -0
  45. package/dist/locale/types.d.ts +3 -0
  46. package/dist/nuxt/runtime/layouts/auth.vue.d.ts +2 -0
  47. package/dist/nuxt/runtime/layouts/dashboard.vue.d.ts +2 -0
  48. package/dist/styles/base.css +13 -0
  49. package/dist/styles/core/form-field.css +13 -0
  50. package/dist/styles/core/root.css +23 -0
  51. package/dist/styles/data/table.css +17 -0
  52. package/dist/styles/data/thumbnail.css +5 -2
  53. package/dist/styles/data/tile-grid.css +2 -1
  54. package/dist/styles/design-tokens.css +4 -0
  55. package/dist/styles/feedback/alert.css +13 -0
  56. package/dist/styles/forced-colors.css +12 -1
  57. package/dist/styles/forms/file-drop-overlay.css +48 -0
  58. package/dist/styles/forms/segmented.css +36 -0
  59. package/dist/styles/forms.css +1 -0
  60. package/dist/styles/layout/accordion.css +8 -0
  61. package/dist/styles/layout/card.css +19 -7
  62. package/dist/styles/layout/page-header.css +17 -2
  63. package/dist/styles/layout/stack.css +5 -0
  64. package/dist/styles/overlays/command.css +17 -0
  65. package/dist/styles/shared.css +8 -0
  66. package/dist/styles/templates/list-page.css +1 -21
  67. package/dist/styles/templates/workspace-layout.css +9 -0
  68. package/package.json +3 -2
@@ -30,7 +30,8 @@
30
30
  min-width: 0;
31
31
  }
32
32
 
33
- .k-tile-grid.is-selectable:not(.is-disabled) .k-tile-grid-item {
33
+ .k-tile-grid.is-selectable:not(.is-disabled) .k-tile-grid-item,
34
+ .k-tile-grid.is-activatable .k-tile-grid-item {
34
35
  cursor: pointer;
35
36
  }
36
37
 
@@ -0,0 +1,4 @@
1
+ @layer k.tokens, k.base, k.components, k.utilities;
2
+
3
+ @import './tokens.css' layer(k.tokens);
4
+ @import './presets.css' layer(k.tokens);
@@ -93,6 +93,19 @@
93
93
  color: var(--k-text-toned);
94
94
  }
95
95
 
96
+ .k-alert-list {
97
+ display: flex;
98
+ flex-direction: column;
99
+ gap: 0.125rem;
100
+ margin: 0;
101
+ padding-inline-start: 1.125rem;
102
+ list-style: disc;
103
+ }
104
+
105
+ .k-alert-list > li::marker {
106
+ color: var(--k-text-dimmed);
107
+ }
108
+
96
109
  .k-alert-description :where(a) {
97
110
  color: inherit;
98
111
  text-decoration: underline;
@@ -227,7 +227,18 @@
227
227
  background: Highlight;
228
228
  }
229
229
 
230
- :is(.k-tab-dot, .k-tree-invalid) {
230
+ .k-form-field.is-highlighted {
231
+ outline: 2px solid Highlight;
232
+ outline-offset: 0.375rem;
233
+ }
234
+
235
+ .k-mark {
236
+ forced-color-adjust: none;
237
+ background: Mark;
238
+ color: MarkText;
239
+ }
240
+
241
+ :is(.k-tab-dot, .k-segmented-dot, .k-tree-invalid) {
231
242
  forced-color-adjust: none;
232
243
  background: CanvasText;
233
244
  }
@@ -0,0 +1,48 @@
1
+ .k-file-drop-overlay {
2
+ position: absolute;
3
+ inset: var(--k-file-drop-overlay-inset, 0);
4
+ z-index: 10;
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ justify-content: center;
9
+ gap: 0.375rem;
10
+ padding: 1.5rem;
11
+ border: 1px dashed var(--k-ring);
12
+ border-radius: var(--k-file-drop-overlay-radius, var(--k-radius-lg));
13
+ background: color-mix(in oklab, var(--k-surface) 86%, transparent);
14
+ backdrop-filter: blur(var(--k-scrim-blur, 3px));
15
+ color: var(--k-text-muted);
16
+ text-align: center;
17
+ pointer-events: none;
18
+ animation: k-fade var(--k-duration) var(--k-ease-out) both;
19
+ }
20
+
21
+ .k-file-drop-overlay-icon {
22
+ --k-icon-size: 1.5rem;
23
+ display: grid;
24
+ place-items: center;
25
+ width: 3rem;
26
+ height: 3rem;
27
+ margin-bottom: 0.375rem;
28
+ border-radius: var(--k-radius-md);
29
+ background: var(--k-surface);
30
+ box-shadow: var(--k-shadow-raised);
31
+ color: var(--k-accent-text);
32
+ }
33
+
34
+ .k-file-drop-overlay-title {
35
+ max-width: 32rem;
36
+ font-size: 0.9375rem;
37
+ font-weight: var(--k-font-weight-strong, 600);
38
+ line-height: 1.3;
39
+ color: var(--k-text);
40
+ overflow-wrap: anywhere;
41
+ }
42
+
43
+ .k-file-drop-overlay-description {
44
+ max-width: 32rem;
45
+ font-size: 0.8125rem;
46
+ line-height: 1.4;
47
+ overflow-wrap: anywhere;
48
+ }
@@ -148,6 +148,42 @@
148
148
  opacity: 0.7;
149
149
  }
150
150
 
151
+ .k-segmented-dot {
152
+ --k-segmented-dot-tone: var(--k-danger);
153
+ width: 0.4375rem;
154
+ height: 0.4375rem;
155
+ flex: none;
156
+ border-radius: var(--k-radius-full);
157
+ background: var(--k-segmented-dot-tone);
158
+ }
159
+
160
+ .k-segmented-item.is-icon > .k-segmented-dot {
161
+ position: absolute;
162
+ top: 0.25rem;
163
+ inset-inline-end: 0.25rem;
164
+ box-shadow: 0 0 0 2px var(--k-surface);
165
+ }
166
+
167
+ .k-segmented-dot-neutral {
168
+ --k-segmented-dot-tone: var(--k-text-dimmed);
169
+ }
170
+
171
+ .k-segmented-dot-accent {
172
+ --k-segmented-dot-tone: var(--k-accent);
173
+ }
174
+
175
+ .k-segmented-dot-info {
176
+ --k-segmented-dot-tone: var(--k-info);
177
+ }
178
+
179
+ .k-segmented-dot-success {
180
+ --k-segmented-dot-tone: var(--k-success);
181
+ }
182
+
183
+ .k-segmented-dot-warning {
184
+ --k-segmented-dot-tone: var(--k-warning);
185
+ }
186
+
151
187
  .k-form-field > .k-segmented:not(.is-block) {
152
188
  align-self: flex-start;
153
189
  }
@@ -11,6 +11,7 @@
11
11
  @import './forms/date-picker.css';
12
12
  @import './forms/calendar.css';
13
13
  @import './forms/file-input.css';
14
+ @import './forms/file-drop-overlay.css';
14
15
  @import './forms/focal-point-input.css';
15
16
  @import './forms/color-input.css';
16
17
  @import './forms/palette-select.css';
@@ -165,6 +165,14 @@
165
165
  padding: 0;
166
166
  }
167
167
 
168
+ .k-accordion.is-divided .k-accordion-content {
169
+ border-top: 1px solid var(--k-line);
170
+ }
171
+
172
+ .k-accordion.is-divided:not(.is-flush) .k-accordion-content {
173
+ padding-top: 1rem;
174
+ }
175
+
168
176
  .k-accordion-item.is-open .k-accordion-content {
169
177
  opacity: 1;
170
178
  transform: none;
@@ -203,12 +203,12 @@
203
203
  cursor: pointer;
204
204
  }
205
205
 
206
- .k-card.is-interactive:hover {
206
+ .k-card.is-interactive:not(.is-disabled):hover {
207
207
  border-color: var(--k-line-strong);
208
208
  box-shadow: var(--k-shadow-sm);
209
209
  }
210
210
 
211
- .k-card.is-interactive:active {
211
+ .k-card.is-interactive:not(.is-disabled):active {
212
212
  scale: 0.99;
213
213
  }
214
214
 
@@ -216,6 +216,10 @@
216
216
  opacity: 0.6;
217
217
  }
218
218
 
219
+ .k-card.is-interactive.is-disabled {
220
+ cursor: not-allowed;
221
+ }
222
+
219
223
  .k-card.is-selected {
220
224
  border-color: var(--k-accent);
221
225
  box-shadow:
@@ -230,6 +234,19 @@
230
234
  var(--k-shadow-sm);
231
235
  }
232
236
 
237
+ .k-card.is-fill {
238
+ flex: 1 1 0;
239
+ min-height: 0;
240
+ }
241
+
242
+ .k-card.is-fill > .k-card-body {
243
+ display: flex;
244
+ flex-direction: column;
245
+ min-height: 0;
246
+ overflow: auto;
247
+ overscroll-behavior: contain;
248
+ }
249
+
233
250
  .k-card.is-static {
234
251
  animation: none;
235
252
  }
@@ -260,11 +277,6 @@
260
277
  cursor: not-allowed;
261
278
  }
262
279
 
263
- .k-card-dashed.is-disabled.is-interactive:hover {
264
- border-color: var(--k-line-strong);
265
- box-shadow: none;
266
- }
267
-
268
280
  .k-card-dashed.is-selected,
269
281
  .k-card-dashed.is-selected.is-interactive:hover {
270
282
  border-style: solid;
@@ -114,8 +114,23 @@
114
114
  flex-wrap: nowrap;
115
115
  }
116
116
 
117
- .k-page-header.is-truncated .k-page-header-trail .k-breadcrumbs-item:not(:last-child) {
118
- flex: none;
117
+ .k-page-header.is-truncated .k-page-header-trail .k-breadcrumbs-item {
118
+ flex: 0 1 content;
119
+ width: calc(2.5em + 0%);
120
+ min-width: auto;
121
+ }
122
+
123
+ .k-page-header.is-truncated .k-page-header-trail .k-breadcrumbs-item:last-child {
124
+ flex-shrink: 100;
125
+ width: calc(6em + 0%);
126
+ max-width: calc(100% - var(--k-page-header-crumbs, 0) * 3em);
127
+ }
128
+
129
+ .k-page-header.is-truncated .k-page-header-crumb {
130
+ min-width: 0;
131
+ overflow: hidden;
132
+ text-overflow: ellipsis;
133
+ white-space: nowrap;
119
134
  }
120
135
 
121
136
  .k-page-header.is-truncated .k-page-header-trail .k-breadcrumbs-current {
@@ -12,6 +12,11 @@
12
12
  align-items: center;
13
13
  }
14
14
 
15
+ .k-stack.is-grow {
16
+ flex: 1 1 0;
17
+ min-height: 0;
18
+ }
19
+
15
20
  .k-stack.is-wrap {
16
21
  flex-wrap: wrap;
17
22
  }
@@ -195,6 +195,23 @@
195
195
  color: var(--k-text);
196
196
  }
197
197
 
198
+ .k-command-option-head {
199
+ display: flex;
200
+ align-items: baseline;
201
+ gap: 0.5rem;
202
+ min-width: 0;
203
+ }
204
+
205
+ .k-command-option-meta {
206
+ flex: 0 1 auto;
207
+ min-width: 0;
208
+ overflow-x: clip;
209
+ font-size: 0.75rem;
210
+ color: var(--k-text-muted);
211
+ text-overflow: ellipsis;
212
+ white-space: nowrap;
213
+ }
214
+
198
215
  .k-command-option-badge {
199
216
  flex-shrink: 0;
200
217
  }
@@ -73,6 +73,14 @@
73
73
  overflow-wrap: anywhere;
74
74
  }
75
75
 
76
+ .k-mark {
77
+ border-radius: var(--k-radius-xs);
78
+ background: var(--k-selection);
79
+ color: var(--k-text);
80
+ box-decoration-break: clone;
81
+ -webkit-box-decoration-break: clone;
82
+ }
83
+
76
84
  :is(.k-menu-item, .k-combobox-option, .k-command-option, .k-tree-row)[aria-disabled='true'] {
77
85
  opacity: 0.5;
78
86
  cursor: not-allowed;
@@ -51,17 +51,10 @@
51
51
  }
52
52
 
53
53
  .k-list-page.is-fill > :is(.k-list-card, .k-list-state) {
54
- flex: 1 1 0;
55
54
  min-height: 20rem;
56
55
  }
57
56
 
58
- .k-list-page.is-fill > :is(.k-list-card, .k-list-state) > .k-card-body {
59
- display: flex;
60
- flex-direction: column;
61
- min-height: 0;
62
- }
63
-
64
- .k-list-page.is-fill > .k-list-card > .k-card-body > :is(.k-table, .k-list-scroll) {
57
+ .k-list-card.is-fill > .k-card-body > .k-list-scroll {
65
58
  flex: 1 1 0;
66
59
  min-height: 0;
67
60
  }
@@ -70,16 +63,3 @@
70
63
  overflow: auto;
71
64
  overscroll-behavior: contain;
72
65
  }
73
-
74
- .k-list-page.is-fill .k-table-scroll {
75
- display: flex;
76
- flex-direction: column;
77
- }
78
-
79
- .k-list-page.is-fill .k-table-el {
80
- flex: none;
81
- }
82
-
83
- .k-list-page.is-fill .k-table-el:has(> .k-table-body > .k-table-empty-row) {
84
- flex: 1 0 auto;
85
- }
@@ -106,6 +106,15 @@
106
106
  border-bottom: 0;
107
107
  }
108
108
 
109
+ :is(.k-workspace-bar-start, .k-workspace-pane-head) > .k-page-header {
110
+ flex: 1 1 auto;
111
+ min-width: 0;
112
+ }
113
+
114
+ :is(.k-workspace-bar-start, .k-workspace-pane-head) > .k-page-header > .k-page-header-heading {
115
+ flex-basis: 0;
116
+ }
117
+
109
118
  .k-workspace-pane-body {
110
119
  display: flex;
111
120
  flex: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/443-components-vue",
3
- "version": "0.16.97",
3
+ "version": "0.16.99",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",
@@ -57,7 +57,8 @@
57
57
  "./grid/style.css": "./dist/grid/style.css",
58
58
  "./editor/style.css": "./dist/editor/style.css",
59
59
  "./chart/style.css": "./dist/chart/style.css",
60
- "./tailwind.css": "./dist/styles/tailwind.css"
60
+ "./tailwind.css": "./dist/styles/tailwind.css",
61
+ "./tokens.css": "./dist/styles/design-tokens.css"
61
62
  },
62
63
  "publishConfig": {
63
64
  "access": "public"