compote-ui 0.43.0 → 0.43.1

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.
@@ -194,7 +194,3 @@
194
194
  </tr>
195
195
  {/each}
196
196
  </thead>
197
-
198
- <style>
199
- @import './data-table-checkbox.css';
200
- </style>
@@ -164,7 +164,3 @@
164
164
  {/each}
165
165
  {/if}
166
166
  </tbody>
167
-
168
- <style>
169
- @import './data-table-checkbox.css';
170
- </style>
@@ -222,7 +222,3 @@
222
222
  {/if}
223
223
  </div>
224
224
  </div>
225
-
226
- <style>
227
- @import './data-table-checkbox.css';
228
- </style>
package/dist/theme.css CHANGED
@@ -79,3 +79,48 @@
79
79
  @apply bg-surface-document text-ink;
80
80
  }
81
81
  }
82
+
83
+ .table-checkbox {
84
+ appearance: none;
85
+ -webkit-appearance: none;
86
+ flex-shrink: 0;
87
+ border-radius: 2px;
88
+ border: 1px solid var(--compote-border);
89
+ background-color: transparent;
90
+ cursor: pointer;
91
+ transition:
92
+ border-color 150ms ease,
93
+ background-color 150ms ease;
94
+ }
95
+
96
+ .table-checkbox:hover:not(:disabled) {
97
+ border-color: color-mix(in srgb, var(--compote-primary) 50%, transparent);
98
+ }
99
+
100
+ .table-checkbox:checked {
101
+ border-color: var(--compote-primary);
102
+ background-color: var(--compote-primary);
103
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3e%3cpolyline points='216 72 104 184 48 128' fill='none' stroke='white' stroke-width='32' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
104
+ background-repeat: no-repeat;
105
+ background-position: center;
106
+ background-size: 70%;
107
+ }
108
+
109
+ .table-checkbox:indeterminate {
110
+ border-color: var(--compote-primary);
111
+ background-color: var(--compote-primary);
112
+ background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3e%3cline x1='40' y1='128' x2='216' y2='128' stroke='white' stroke-width='32' stroke-linecap='round'/%3e%3c/svg%3e");
113
+ background-repeat: no-repeat;
114
+ background-position: center;
115
+ background-size: 70%;
116
+ }
117
+
118
+ .table-checkbox:disabled {
119
+ pointer-events: none;
120
+ opacity: 0.5;
121
+ }
122
+
123
+ .table-checkbox:focus-visible {
124
+ outline: 2px solid var(--compote-ring);
125
+ outline-offset: 2px;
126
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "compote-ui",
3
- "version": "0.43.0",
3
+ "version": "0.43.1",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "vite dev --open",
@@ -1,44 +0,0 @@
1
- .table-checkbox {
2
- appearance: none;
3
- -webkit-appearance: none;
4
- flex-shrink: 0;
5
- border-radius: 2px;
6
- border: 1px solid var(--compote-border);
7
- background-color: transparent;
8
- cursor: pointer;
9
- transition:
10
- border-color 150ms ease,
11
- background-color 150ms ease;
12
- }
13
-
14
- .table-checkbox:hover:not(:disabled) {
15
- border-color: color-mix(in srgb, var(--compote-primary) 50%, transparent);
16
- }
17
-
18
- .table-checkbox:checked {
19
- border-color: var(--compote-primary);
20
- background-color: var(--compote-primary);
21
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3e%3cpolyline points='216 72 104 184 48 128' fill='none' stroke='white' stroke-width='32' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
22
- background-repeat: no-repeat;
23
- background-position: center;
24
- background-size: 70%;
25
- }
26
-
27
- .table-checkbox:indeterminate {
28
- border-color: var(--compote-primary);
29
- background-color: var(--compote-primary);
30
- background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3e%3cline x1='40' y1='128' x2='216' y2='128' stroke='white' stroke-width='32' stroke-linecap='round'/%3e%3c/svg%3e");
31
- background-repeat: no-repeat;
32
- background-position: center;
33
- background-size: 70%;
34
- }
35
-
36
- .table-checkbox:disabled {
37
- pointer-events: none;
38
- opacity: 0.5;
39
- }
40
-
41
- .table-checkbox:focus-visible {
42
- outline: 2px solid var(--compote-ring);
43
- outline-offset: 2px;
44
- }