@xleddyl/443-components-vue 0.16.93 → 0.16.95

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 (46) hide show
  1. package/CATALOG.md +176 -166
  2. package/README.md +78 -14
  3. package/dist/components/core/Button.vue.d.ts +3 -3
  4. package/dist/components/data/SortableList.vue +120 -0
  5. package/dist/components/data/SortableList.vue.d.ts +48 -0
  6. package/dist/components/data/Table.vue +43 -3
  7. package/dist/components/data/Table.vue.d.ts +8 -2
  8. package/dist/components/data/Thumbnail.vue +157 -0
  9. package/dist/components/data/Thumbnail.vue.d.ts +439 -0
  10. package/dist/components/data/TileGrid.vue +274 -0
  11. package/dist/components/data/TileGrid.vue.d.ts +51 -0
  12. package/dist/components/data/index.d.ts +3 -0
  13. package/dist/components/data/index.mjs +3 -0
  14. package/dist/components/data/types.d.ts +39 -0
  15. package/dist/components/forms/FocalPointInput.vue +251 -0
  16. package/dist/components/forms/FocalPointInput.vue.d.ts +426 -0
  17. package/dist/components/forms/PaletteSelect.vue.d.ts +2 -2
  18. package/dist/components/forms/index.d.ts +1 -0
  19. package/dist/components/forms/index.mjs +1 -0
  20. package/dist/components/layout/ThemeSwitch.vue.d.ts +2 -2
  21. package/dist/components/layout/types.d.ts +1 -1
  22. package/dist/components/templates/FormPage.vue.d.ts +2 -2
  23. package/dist/composables/useSortable.d.ts +1 -0
  24. package/dist/composables/useSortable.mjs +40 -11
  25. package/dist/grid/cells/ButtonCell.vue.d.ts +2 -2
  26. package/dist/icons/builtin.d.ts +3 -0
  27. package/dist/icons/builtin.mjs +7 -0
  28. package/dist/internal/data/sortable.d.ts +4 -1
  29. package/dist/internal/data/sortable.mjs +49 -0
  30. package/dist/locale/de.mjs +23 -0
  31. package/dist/locale/en.mjs +23 -0
  32. package/dist/locale/it.mjs +23 -0
  33. package/dist/locale/types.d.ts +23 -0
  34. package/dist/styles/data/sortable-list.css +185 -0
  35. package/dist/styles/data/table.css +12 -0
  36. package/dist/styles/data/thumbnail.css +209 -0
  37. package/dist/styles/data/tile-grid.css +144 -0
  38. package/dist/styles/data.css +3 -0
  39. package/dist/styles/forced-colors.css +42 -0
  40. package/dist/styles/forms/focal-point-input.css +154 -0
  41. package/dist/styles/forms.css +1 -0
  42. package/dist/styles/layout/card.css +84 -0
  43. package/dist/styles/shared.css +2 -1
  44. package/dist/styles/tailwind.css +2 -0
  45. package/dist/styles/tokens.css +2 -0
  46. package/package.json +1 -1
@@ -0,0 +1,144 @@
1
+ .k-tile-grid {
2
+ --k-tile-grid-tile-radius: var(--k-tile-grid-radius, var(--k-radius-lg));
3
+ min-width: 0;
4
+ }
5
+
6
+ .k-tile-grid-list {
7
+ display: contents;
8
+ }
9
+
10
+ .k-tile-grid-item,
11
+ .k-tile-grid-add {
12
+ position: relative;
13
+ display: grid;
14
+ min-width: 0;
15
+ border-radius: var(--k-tile-grid-tile-radius);
16
+ }
17
+
18
+ .k-tile-grid-tile {
19
+ position: relative;
20
+ display: grid;
21
+ min-width: 0;
22
+ border-radius: inherit;
23
+ transition:
24
+ opacity var(--k-duration) var(--k-ease),
25
+ box-shadow var(--k-duration) var(--k-ease),
26
+ scale var(--k-duration) var(--k-ease);
27
+ }
28
+
29
+ .k-tile-grid-tile > :not(.k-tile-grid-check) {
30
+ min-width: 0;
31
+ }
32
+
33
+ .k-tile-grid.is-selectable:not(.is-disabled) .k-tile-grid-item {
34
+ cursor: pointer;
35
+ }
36
+
37
+ .k-tile-grid-item[aria-selected='true'] > .k-tile-grid-tile::after {
38
+ content: '';
39
+ position: absolute;
40
+ inset: 0;
41
+ z-index: 1;
42
+ border-radius: inherit;
43
+ box-shadow: inset 0 0 0 2px var(--k-accent);
44
+ pointer-events: none;
45
+ }
46
+
47
+ .k-tile-grid-check {
48
+ --k-icon-size: 0.75rem;
49
+ position: absolute;
50
+ top: 0.5rem;
51
+ inset-inline-start: 0.5rem;
52
+ z-index: 2;
53
+ display: grid;
54
+ place-items: center;
55
+ width: 1.25rem;
56
+ height: 1.25rem;
57
+ border: 1.5px solid var(--k-media-text);
58
+ border-radius: var(--k-radius-full);
59
+ background: var(--k-media-scrim);
60
+ box-shadow: var(--k-shadow-xs);
61
+ color: transparent;
62
+ cursor: pointer;
63
+ opacity: 0;
64
+ scale: 0.85;
65
+ transition:
66
+ opacity var(--k-duration) var(--k-ease),
67
+ scale var(--k-duration-lg) var(--k-ease-out),
68
+ background-color var(--k-duration) var(--k-ease),
69
+ border-color var(--k-duration) var(--k-ease),
70
+ color var(--k-duration) var(--k-ease);
71
+ }
72
+
73
+ .k-tile-grid-item:is(:hover, :focus-visible, :focus-within) .k-tile-grid-check,
74
+ .k-tile-grid.has-selection .k-tile-grid-check,
75
+ .k-tile-grid-item[aria-selected='true'] .k-tile-grid-check {
76
+ opacity: 1;
77
+ scale: 1;
78
+ }
79
+
80
+ .k-tile-grid-item[aria-selected='true'] .k-tile-grid-check {
81
+ border-color: var(--k-accent);
82
+ background: var(--k-accent);
83
+ color: var(--k-accent-contrast);
84
+ transition:
85
+ opacity var(--k-duration) var(--k-ease),
86
+ scale var(--k-duration-lg) var(--k-ease-spring),
87
+ background-color var(--k-duration) var(--k-ease),
88
+ border-color var(--k-duration) var(--k-ease),
89
+ color var(--k-duration) var(--k-ease);
90
+ }
91
+
92
+ .k-tile-grid.is-disabled .k-tile-grid-check {
93
+ cursor: not-allowed;
94
+ }
95
+
96
+ @media (hover: none) {
97
+ .k-tile-grid-check {
98
+ opacity: 1;
99
+ scale: 1;
100
+ }
101
+ }
102
+
103
+ .k-tile-grid.is-sortable:not(.has-handle) .k-tile-grid-item {
104
+ touch-action: none;
105
+ }
106
+
107
+ .k-tile-grid.is-sortable:not(.has-handle) .k-tile-grid-tile {
108
+ cursor: grab;
109
+ user-select: none;
110
+ -webkit-user-select: none;
111
+ }
112
+
113
+ .k-tile-grid.is-dragging,
114
+ .k-tile-grid.is-dragging .k-tile-grid-tile {
115
+ cursor: grabbing;
116
+ }
117
+
118
+ .k-tile-grid-item.is-moving {
119
+ z-index: 3;
120
+ }
121
+
122
+ .k-tile-grid-item.is-moving::before {
123
+ content: '';
124
+ position: absolute;
125
+ inset: 0;
126
+ border: 1.5px dashed var(--k-accent-line);
127
+ border-radius: inherit;
128
+ background: var(--k-accent-soft);
129
+ }
130
+
131
+ .k-tile-grid-item.is-moving > .k-tile-grid-tile {
132
+ z-index: 1;
133
+ box-shadow: var(--k-shadow-overlay);
134
+ scale: 1.02;
135
+ }
136
+
137
+ .k-tile-grid-item.is-dragging:not(.is-moving) > .k-tile-grid-tile {
138
+ opacity: 0.45;
139
+ }
140
+
141
+ .k-tile-grid.is-sortable .k-tile-grid-tile :is(img, a),
142
+ .k-tile-grid-item[draggable='true'] :is(img, a) {
143
+ -webkit-user-drag: none;
144
+ }
@@ -3,8 +3,11 @@
3
3
  @import './data/badge.css';
4
4
  @import './data/tag.css';
5
5
  @import './data/tag-list.css';
6
+ @import './data/sortable-list.css';
6
7
  @import './data/record-list.css';
7
8
  @import './data/avatar.css';
9
+ @import './data/thumbnail.css';
10
+ @import './data/tile-grid.css';
8
11
  @import './data/description-list.css';
9
12
  @import './data/stat.css';
10
13
  @import './data/timeline.css';
@@ -235,4 +235,46 @@
235
235
  forced-color-adjust: none;
236
236
  background: Highlight;
237
237
  }
238
+
239
+ :is(.k-thumbnail-caption, .k-thumbnail-play) {
240
+ forced-color-adjust: none;
241
+ background: Canvas;
242
+ color: CanvasText;
243
+ }
244
+
245
+ .k-focal-point-input-marker {
246
+ forced-color-adjust: none;
247
+ border-color: Highlight;
248
+ background: Canvas;
249
+ }
250
+
251
+ .k-sortable-list-item.is-moving::after {
252
+ border: 2px dashed Highlight;
253
+ }
254
+
255
+ .k-sortable-list-item.is-moving > .k-sortable-list-row {
256
+ border: 1px solid CanvasText;
257
+ }
258
+ .k-tile-grid-item[aria-selected='true'] > .k-tile-grid-tile::after {
259
+ box-shadow: none;
260
+ outline: 2px solid Highlight;
261
+ outline-offset: -2px;
262
+ }
263
+
264
+ .k-tile-grid-check {
265
+ forced-color-adjust: none;
266
+ border-color: CanvasText;
267
+ background: Canvas;
268
+ color: Canvas;
269
+ }
270
+
271
+ .k-tile-grid-item[aria-selected='true'] .k-tile-grid-check {
272
+ border-color: Highlight;
273
+ background: Highlight;
274
+ color: HighlightText;
275
+ }
276
+
277
+ .k-tile-grid-item.is-moving::before {
278
+ border: 2px dashed Highlight;
279
+ }
238
280
  }
@@ -0,0 +1,154 @@
1
+ .k-focal-point-input {
2
+ display: flex;
3
+ flex-direction: column;
4
+ align-items: flex-start;
5
+ gap: 0.5rem;
6
+ min-width: 0;
7
+ max-width: 100%;
8
+ }
9
+
10
+ .k-focal-point-input-area {
11
+ position: relative;
12
+ display: block;
13
+ max-width: 100%;
14
+ overflow: hidden;
15
+ border-radius: var(--k-radius-md);
16
+ background: var(--k-subtle);
17
+ user-select: none;
18
+ -webkit-user-select: none;
19
+ transition: box-shadow var(--k-duration) var(--k-ease);
20
+ }
21
+
22
+ .k-focal-point-input-area::after {
23
+ content: '';
24
+ position: absolute;
25
+ inset: 0;
26
+ border-radius: inherit;
27
+ box-shadow: inset 0 0 0 1px var(--k-line);
28
+ pointer-events: none;
29
+ }
30
+
31
+ .k-focal-point-input.is-editable .k-focal-point-input-area {
32
+ cursor: crosshair;
33
+ touch-action: none;
34
+ }
35
+
36
+ .k-focal-point-input-area:has(.k-focal-point-input-axis:focus-visible) {
37
+ outline: 2px solid var(--k-ring);
38
+ outline-offset: 2px;
39
+ }
40
+
41
+ .k-focal-point-input.is-invalid .k-focal-point-input-area {
42
+ box-shadow: 0 0 0 1px var(--k-danger);
43
+ }
44
+
45
+ .k-focal-point-input-image {
46
+ display: block;
47
+ max-width: 100%;
48
+ max-height: var(--k-focal-point-input-height, 20rem);
49
+ border-radius: inherit;
50
+ opacity: 0;
51
+ transition: opacity var(--k-duration-lg) var(--k-ease);
52
+ -webkit-user-drag: none;
53
+ }
54
+
55
+ .k-focal-point-input-area.is-loaded .k-focal-point-input-image {
56
+ opacity: 1;
57
+ }
58
+
59
+ .k-focal-point-input-area:not(.is-loaded, .is-failed) {
60
+ min-width: 12rem;
61
+ min-height: 8rem;
62
+ animation: k-pulse 1.5s ease-in-out infinite;
63
+ }
64
+
65
+ .k-focal-point-input-placeholder {
66
+ --k-icon-size: 1.75rem;
67
+ display: grid;
68
+ place-items: center;
69
+ width: 16rem;
70
+ max-width: 100%;
71
+ aspect-ratio: 4 / 3;
72
+ border-radius: inherit;
73
+ color: var(--k-text-dimmed);
74
+ }
75
+
76
+ .k-focal-point-input-marker {
77
+ position: absolute;
78
+ width: 1.75rem;
79
+ height: 1.75rem;
80
+ border: 2px solid var(--k-media-text);
81
+ border-radius: var(--k-radius-full);
82
+ background: color-mix(in oklab, var(--k-accent) 35%, transparent);
83
+ box-shadow:
84
+ 0 0 0 1px var(--k-media-scrim),
85
+ inset 0 0 0 1px var(--k-media-scrim),
86
+ 0 1px 4px var(--k-media-scrim);
87
+ translate: -50% -50%;
88
+ pointer-events: none;
89
+ transition: scale var(--k-duration) var(--k-ease-spring);
90
+ }
91
+
92
+ .k-focal-point-input-marker::before,
93
+ .k-focal-point-input-marker::after {
94
+ content: '';
95
+ position: absolute;
96
+ top: 50%;
97
+ left: 50%;
98
+ translate: -50% -50%;
99
+ }
100
+
101
+ .k-focal-point-input-marker::before {
102
+ width: 4px;
103
+ height: 3rem;
104
+ background: linear-gradient(
105
+ to right,
106
+ var(--k-media-scrim) 0 1px,
107
+ var(--k-media-text) 1px 3px,
108
+ var(--k-media-scrim) 3px
109
+ );
110
+ mask: linear-gradient(
111
+ to bottom,
112
+ var(--k-media-text) 0 0.75rem,
113
+ transparent 0.75rem 2.25rem,
114
+ var(--k-media-text) 2.25rem
115
+ );
116
+ }
117
+
118
+ .k-focal-point-input-marker::after {
119
+ width: 3rem;
120
+ height: 4px;
121
+ background: linear-gradient(
122
+ to bottom,
123
+ var(--k-media-scrim) 0 1px,
124
+ var(--k-media-text) 1px 3px,
125
+ var(--k-media-scrim) 3px
126
+ );
127
+ mask: linear-gradient(
128
+ to right,
129
+ var(--k-media-text) 0 0.75rem,
130
+ transparent 0.75rem 2.25rem,
131
+ var(--k-media-text) 2.25rem
132
+ );
133
+ }
134
+
135
+ .k-focal-point-input.is-dragging .k-focal-point-input-marker {
136
+ scale: 1.15;
137
+ }
138
+
139
+ .k-focal-point-input.is-disabled .k-focal-point-input-area {
140
+ opacity: 0.6;
141
+ cursor: not-allowed;
142
+ }
143
+
144
+ .k-focal-point-input-bar {
145
+ display: flex;
146
+ align-items: center;
147
+ gap: 0.5rem;
148
+ min-height: var(--k-size-xs);
149
+ }
150
+
151
+ .k-focal-point-input-value {
152
+ font-size: 0.8125rem;
153
+ color: var(--k-text-muted);
154
+ }
@@ -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/focal-point-input.css';
14
15
  @import './forms/color-input.css';
15
16
  @import './forms/palette-select.css';
16
17
  @import './forms/slider.css';
@@ -28,6 +28,46 @@
28
28
  background: var(--k-subtle);
29
29
  }
30
30
 
31
+ .k-card-dashed {
32
+ justify-content: center;
33
+ border: 1px dashed var(--k-line-strong);
34
+ background: var(--k-subtle);
35
+ color: var(--k-text-muted);
36
+ text-align: center;
37
+ }
38
+
39
+ .k-card-dashed > .k-card-header {
40
+ flex-direction: column;
41
+ flex-wrap: nowrap;
42
+ align-items: center;
43
+ gap: 0.5rem;
44
+ }
45
+
46
+ .k-card-dashed .k-card-heading {
47
+ flex: none;
48
+ align-items: center;
49
+ }
50
+
51
+ .k-card-dashed .k-card-icon + .k-card-heading {
52
+ min-height: 0;
53
+ }
54
+
55
+ .k-card-dashed .k-card-icon {
56
+ background: var(--k-surface);
57
+ box-shadow: var(--k-shadow-raised);
58
+ color: var(--k-text-muted);
59
+ }
60
+
61
+ .k-card-dashed .k-card-title {
62
+ font-size: 0.8125rem;
63
+ font-weight: var(--k-font-weight-medium, 500);
64
+ color: var(--k-text-toned);
65
+ }
66
+
67
+ .k-card-dashed > .k-card-header .k-card-actions {
68
+ margin: 0;
69
+ }
70
+
31
71
  .k-card-pad-none {
32
72
  --k-card-pad: 0;
33
73
  }
@@ -191,3 +231,47 @@
191
231
  .k-card.is-static {
192
232
  animation: none;
193
233
  }
234
+
235
+ .k-card-dashed.is-interactive:hover:not(.is-disabled) {
236
+ border-color: var(--k-text-dimmed);
237
+ background: var(--k-fill);
238
+ box-shadow: none;
239
+ }
240
+
241
+ .k-card-dashed.is-interactive:hover:not(.is-disabled) .k-card-icon {
242
+ transform: translateY(-1px);
243
+ }
244
+
245
+ .k-card-dashed:is(:focus-visible, :has(.k-card-link:focus-visible)) {
246
+ outline: 2px solid transparent;
247
+ outline-offset: 2px;
248
+ border-style: solid;
249
+ border-color: var(--k-ring);
250
+ box-shadow: var(--k-focus-ring);
251
+ }
252
+
253
+ .k-card-dashed .k-card-link:focus-visible::after {
254
+ outline-color: transparent;
255
+ }
256
+
257
+ .k-card-dashed.is-disabled {
258
+ cursor: not-allowed;
259
+ }
260
+
261
+ .k-card-dashed.is-disabled.is-interactive:hover {
262
+ border-color: var(--k-line-strong);
263
+ box-shadow: none;
264
+ }
265
+
266
+ .k-card-dashed.is-selected,
267
+ .k-card-dashed.is-selected.is-interactive:hover {
268
+ border-style: solid;
269
+ border-color: var(--k-accent-line);
270
+ background: var(--k-accent-soft);
271
+ box-shadow: none;
272
+ color: var(--k-accent-text);
273
+ }
274
+
275
+ .k-card-dashed.is-selected :is(.k-card-icon, .k-card-title) {
276
+ color: var(--k-accent-text);
277
+ }
@@ -154,7 +154,8 @@
154
154
  .k-tag-remove,
155
155
  .k-tree-toggle,
156
156
  .k-switch-track,
157
- .k-color-input-preset
157
+ .k-color-input-preset,
158
+ .k-tile-grid-check
158
159
  )::before {
159
160
  content: '';
160
161
  position: absolute;
@@ -15,6 +15,8 @@
15
15
  --color-text-muted: var(--k-text-muted);
16
16
  --color-text-dimmed: var(--k-text-dimmed);
17
17
  --color-text-inverted: var(--k-text-inverted);
18
+ --color-media-scrim: var(--k-media-scrim);
19
+ --color-media-text: var(--k-media-text);
18
20
  --color-accent: var(--k-accent);
19
21
  --color-accent-hover: var(--k-accent-hover);
20
22
  --color-accent-soft: var(--k-accent-soft);
@@ -96,6 +96,8 @@
96
96
  0 0 0 1px var(--k-line), 0 16px 40px -12px var(--k-shadow-tint-strong),
97
97
  0 6px 14px -6px var(--k-shadow-tint);
98
98
  --k-scrim: light-dark(rgb(22 22 30 / 0.22), rgb(0 0 0 / 0.55));
99
+ --k-media-scrim: rgb(0 0 0 / 0.6);
100
+ --k-media-text: #ffffff;
99
101
 
100
102
  --k-duration: 140ms;
101
103
  --k-duration-lg: 260ms;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xleddyl/443-components-vue",
3
- "version": "0.16.93",
3
+ "version": "0.16.95",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",