@xleddyl/443-components-vue 0.16.92 → 0.16.94

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 (37) hide show
  1. package/CATALOG.md +10 -5
  2. package/README.md +45 -25
  3. package/dist/components/core/Button.vue.d.ts +3 -3
  4. package/dist/components/data/SelectionBar.vue +24 -4
  5. package/dist/components/data/SelectionBar.vue.d.ts +2 -2
  6. package/dist/components/data/Thumbnail.vue +157 -0
  7. package/dist/components/data/Thumbnail.vue.d.ts +439 -0
  8. package/dist/components/data/index.d.ts +1 -0
  9. package/dist/components/data/index.mjs +1 -0
  10. package/dist/components/data/types.d.ts +9 -0
  11. package/dist/components/forms/FocalPointInput.vue +251 -0
  12. package/dist/components/forms/FocalPointInput.vue.d.ts +426 -0
  13. package/dist/components/forms/PaletteSelect.vue.d.ts +2 -2
  14. package/dist/components/forms/index.d.ts +1 -0
  15. package/dist/components/forms/index.mjs +1 -0
  16. package/dist/components/layout/ThemeSwitch.vue.d.ts +2 -2
  17. package/dist/components/layout/types.d.ts +1 -1
  18. package/dist/components/templates/FormPage.vue.d.ts +2 -2
  19. package/dist/components/templates/ListPage.vue +54 -6
  20. package/dist/components/templates/ListPage.vue.d.ts +7 -1
  21. package/dist/grid/cells/ButtonCell.vue.d.ts +2 -2
  22. package/dist/icons/builtin.d.ts +2 -0
  23. package/dist/icons/builtin.mjs +6 -0
  24. package/dist/locale/de.mjs +11 -0
  25. package/dist/locale/en.mjs +11 -0
  26. package/dist/locale/it.mjs +11 -0
  27. package/dist/locale/types.d.ts +11 -0
  28. package/dist/styles/data/thumbnail.css +209 -0
  29. package/dist/styles/data.css +1 -0
  30. package/dist/styles/forced-colors.css +12 -0
  31. package/dist/styles/forms/focal-point-input.css +154 -0
  32. package/dist/styles/forms.css +1 -0
  33. package/dist/styles/layout/card.css +84 -0
  34. package/dist/styles/tailwind.css +2 -0
  35. package/dist/styles/templates/list-page.css +38 -0
  36. package/dist/styles/tokens.css +2 -0
  37. package/package.json +1 -1
@@ -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
+ }
@@ -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);
@@ -45,3 +45,41 @@
45
45
  .k-list-empty {
46
46
  padding-block: 3.5rem;
47
47
  }
48
+
49
+ .k-page.k-list-page.is-fill {
50
+ flex: 1 0 auto;
51
+ }
52
+
53
+ .k-list-page.is-fill > :is(.k-list-card, .k-list-state) {
54
+ flex: 1 1 0;
55
+ min-height: 20rem;
56
+ }
57
+
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) {
65
+ flex: 1 1 0;
66
+ min-height: 0;
67
+ }
68
+
69
+ .k-list-scroll {
70
+ overflow: auto;
71
+ overscroll-behavior: contain;
72
+ }
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
+ }
@@ -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.92",
3
+ "version": "0.16.94",
4
4
  "description": "Compact, scoped dashboard components for Vue and Nuxt",
5
5
  "license": "MIT",
6
6
  "author": "Edoardo Alberti (https://github.com/xleddyl)",