@kadoui/tailwindcss 1.2.5 → 1.2.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadoui/tailwindcss",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "Kadoui TailwindCSS styles",
5
5
  "author": "FarzadVav",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  @utility select-box-input {
2
- @apply relative cursor-pointer *:cursor-pointer;
2
+ @apply relative;
3
3
  }
4
4
 
5
5
  @utility select-box-list {
@@ -3,7 +3,7 @@
3
3
  @utility input {
4
4
  --element-w: auto;
5
5
 
6
- @apply text-palette flex cursor-text relative transition-all outline-solid outline-2 outline-transparent focus-within:outline-palette has-[input:disabled]:opacity-50 has-[input:disabled]:cursor-not-allowed has-[[type=file]]:cursor-pointer;
6
+ @apply text-palette flex cursor-text relative transition-all outline-solid outline-2 outline-transparent focus-within:outline-palette has-[input:disabled]:opacity-50 has-[input:disabled]:cursor-not-allowed has-[input:disabled]:*:cursor-not-allowed not-has-[input:disabled]:has-[[type=file]]:cursor-pointer;
7
7
 
8
8
  width: var(--element-w);
9
9
  height: var(--element-size);
@@ -25,10 +25,10 @@
25
25
  }
26
26
 
27
27
  @utility input-field {
28
- @apply bg-transparent placeholder:text-palette/50 flex-1 not-[[type=file]]:h-full max-w-full [[type=file]]:cursor-pointer;
28
+ @apply bg-transparent placeholder:text-palette/50 flex-1 not-[[type=file]]:h-full max-w-full not-disabled:[[type=file]]:cursor-pointer;
29
29
 
30
30
  &:where(select) {
31
- @apply cursor-pointer;
31
+ @apply not-disabled:cursor-pointer;
32
32
  }
33
33
  }
34
34
 
@@ -1,3 +1,7 @@
1
+ @utility offset {
2
+ --offset: calc(0px - var(--element-spacing));
3
+ }
4
+
1
5
  @utility top-center {
2
6
  @apply top-1/2 -translate-y-1/2;
3
7
  }
@@ -7,7 +11,9 @@
7
11
  }
8
12
 
9
13
  @utility top-out {
10
- @apply top-0 -translate-y-full;
14
+ @apply -translate-y-full;
15
+
16
+ top: var(--offset, 0);
11
17
  }
12
18
 
13
19
  @utility right-center {
@@ -19,7 +25,9 @@
19
25
  }
20
26
 
21
27
  @utility right-out {
22
- @apply right-0 translate-x-full;
28
+ @apply translate-x-full;
29
+
30
+ right: var(--offset, 0);
23
31
  }
24
32
 
25
33
  @utility bottom-center {
@@ -31,7 +39,9 @@
31
39
  }
32
40
 
33
41
  @utility bottom-out {
34
- @apply bottom-0 translate-y-full;
42
+ @apply translate-y-full;
43
+
44
+ bottom: var(--offset, 0);
35
45
  }
36
46
 
37
47
  @utility left-center {
@@ -43,7 +53,9 @@
43
53
  }
44
54
 
45
55
  @utility left-out {
46
- @apply left-0 -translate-x-full;
56
+ @apply -translate-x-full;
57
+
58
+ left: var(--offset, 0);
47
59
  }
48
60
 
49
61
  @utility inset-center {