@hkdigital/lib-sveltekit 0.1.79 → 0.1.81

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.
@@ -1,73 +1,49 @@
1
1
  @define-mixin component-dropzone {
2
+ /* Visual styling and customizable aspects */
2
3
  [data-component='dropzone'] {
3
- min-height: 100px;
4
+ /*min-height: 100px;*/
4
5
  border: 2px dashed rgb(var(--color-surface-400));
5
6
  border-radius: var(--theme-rounded-container);
6
7
  padding: 1rem;
7
8
  transition: all 0.2s ease;
8
9
  position: relative;
9
10
  background-color: rgb(var(--color-surface-50) / 0.5);
10
- }
11
-
12
- /* State-based styling using state classes */
13
- [data-component='dropzone'].state-ready {
14
- border-color: rgb(var(--color-surface-400));
15
- background-color: transparent;
16
- }
17
-
18
- [data-component='dropzone'].state-drag-over {
19
- border-color: rgb(var(--color-primary-400));
20
- background-color: rgb(var(--color-primary-500) / 0.05);
21
- }
22
11
 
23
- [data-component='dropzone'].state-can-drop {
24
- border-color: rgb(var(--color-success-500));
25
- background-color: rgb(var(--color-success-500) / 0.08);
26
- transform: scale(1.01);
27
- box-shadow: 0 0 0 3px rgb(var(--color-success-500) / 0.2);
28
- }
12
+ /* State-based styling using state classes - visual aspects only */
13
+ &.state-ready {
14
+ border-color: rgb(var(--color-surface-400));
15
+ background-color: transparent;
16
+ }
29
17
 
30
- [data-component='dropzone'].state-cannot-drop {
31
- border-color: rgb(var(--color-error-500));
32
- background-color: rgb(var(--color-error-500) / 0.08);
33
- cursor: not-allowed;
34
- }
18
+ &.state-drag-over {
19
+ border-color: rgb(var(--color-primary-400));
20
+ background-color: rgb(var(--color-primary-500) / 0.05);
21
+ }
35
22
 
36
- [data-component='dropzone'].state-active-drop {
37
- animation: drop-pulse 0.3s ease-out;
38
- border-color: rgb(var(--color-success-500));
39
- background-color: rgb(var(--color-success-500) / 0.1);
40
- }
23
+ &.state-can-drop {
24
+ border-color: rgb(var(--color-success-500));
25
+ background-color: rgb(var(--color-success-500) / 0.08);
26
+ transform: scale(1.01);
27
+ box-shadow: 0 0 0 3px rgb(var(--color-success-500) / 0.2);
28
+ }
41
29
 
42
- [data-component='dropzone'].state-drop-disabled {
43
- opacity: 0.5;
44
- cursor: not-allowed;
45
- background-color: rgb(var(--color-surface-100));
46
- }
30
+ &.state-cannot-drop {
31
+ border-color: rgb(var(--color-error-500));
32
+ background-color: rgb(var(--color-error-500) / 0.08);
33
+ cursor: not-allowed;
34
+ }
47
35
 
48
- /* Empty state */
49
- [data-element='drop-zone-empty'] {
50
- display: flex;
51
- align-items: center;
52
- justify-content: center;
53
- height: 100%;
54
- color: rgb(var(--color-surface-500));
55
- font-style: italic;
36
+ &.state-drop-disabled {
37
+ opacity: 0.5;
38
+ cursor: not-allowed;
39
+ background-color: rgb(var(--color-surface-100));
40
+ }
56
41
  }
57
42
 
58
- /* Animations */
59
- @keyframes drop-pulse {
60
- 0% {
61
- transform: scale(1);
62
- box-shadow: 0 0 0 0 rgb(var(--color-success-500) / 0.4);
63
- }
64
- 50% {
65
- transform: scale(1.02);
66
- box-shadow: 0 0 0 8px rgb(var(--color-success-500) / 0);
67
- }
68
- 100% {
69
- transform: scale(1);
70
- box-shadow: 0 0 0 0 rgb(var(--color-success-500) / 0);
71
- }
43
+ /* Default styling for inner elements - all visual/customizable */
44
+ [data-layer='content'],
45
+ [data-layer='preview'],
46
+ [data-layer='empty'] {
47
+ @apply type-base-md;
72
48
  }
73
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hkdigital/lib-sveltekit",
3
- "version": "0.1.79",
3
+ "version": "0.1.81",
4
4
  "author": {
5
5
  "name": "HKdigital",
6
6
  "url": "https://hkdigital.nl"