@kayord/ui 3.0.1 → 3.0.2

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 (2) hide show
  1. package/README.md +78 -39
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -194,45 +194,16 @@ pnpm add -D svelte-sonner
194
194
  --color-sidebar-border: hsl(var(--sidebar-border));
195
195
  --color-sidebar-ring: hsl(var(--sidebar-ring));
196
196
 
197
- /* Border */
198
- --radius-xl: calc(var(--radius) + 4px);
199
- --radius-lg: var(--radius);
200
- --radius-md: calc(var(--radius) - 2px);
201
- --radius-sm: calc(var(--radius) - 4px);
202
-
203
- /* Animations */
204
- --animate-accordion-down: 0.2s ease-out accordion-down;
205
- --animate-accordion-up: 0.2s ease-out accordion-up;
206
- --animate-caret-blink: 1.25s ease-out infinite caret-blink;
207
-
208
- /* Keyframes */
209
- @keyframes accordion-down {
210
- from: {
211
- height: 0;
212
- }
213
- to: {
214
- height: var(--bits-accordion-content-height);
215
- }
216
- }
217
- @keyframes accordion-up {
218
- from: {
219
- height: var(--bits-accordion-content-height);
220
- }
221
- to: {
222
- height: 0;
223
- }
224
- }
225
- @keyframes caret-blink {
226
- 0%,
227
- 70%,
228
- 100% {
229
- opacity: 1;
230
- }
231
- 20%,
232
- 50% {
233
- opacity: 0;
234
- }
235
- }
197
+ /* Custom Colors */
198
+ --color-info: var(--chart-1);
199
+ --color-success: var(--chart-2);
200
+ --color-warning: var(--chart-3);
201
+
202
+ /* Radius */
203
+ --radius-sm: calc(var(--radius) - 4px);
204
+ --radius-md: calc(var(--radius) - 2px);
205
+ --radius-lg: var(--radius);
206
+ --radius-xl: calc(var(--radius) + 4px);
236
207
  }
237
208
 
238
209
  @layer base {
@@ -243,6 +214,74 @@ pnpm add -D svelte-sonner
243
214
  @apply bg-background text-foreground;
244
215
  }
245
216
  }
217
+
218
+ @custom-variant data-open {
219
+ &:where([data-state="open"]),
220
+ &:where([data-open]:not([data-open="false"])) {
221
+ @slot;
222
+ }
223
+ }
224
+
225
+ @custom-variant data-closed {
226
+ &:where([data-state="closed"]),
227
+ &:where([data-closed]:not([data-closed="false"])) {
228
+ @slot;
229
+ }
230
+ }
231
+
232
+ @custom-variant data-checked {
233
+ &:where([data-state="checked"]),
234
+ &:where([data-checked]:not([data-checked="false"])) {
235
+ @slot;
236
+ }
237
+ }
238
+
239
+ @custom-variant data-unchecked {
240
+ &:where([data-state="unchecked"]),
241
+ &:where([data-unchecked]:not([data-unchecked="false"])) {
242
+ @slot;
243
+ }
244
+ }
245
+
246
+ @custom-variant data-selected {
247
+ &:where([data-selected]) {
248
+ @slot;
249
+ }
250
+ }
251
+
252
+ @custom-variant data-disabled {
253
+ &:where([data-disabled="true"]),
254
+ &:where([data-disabled]:not([data-disabled="false"])) {
255
+ @slot;
256
+ }
257
+ }
258
+
259
+ @custom-variant data-active {
260
+ &:where([data-state="active"]),
261
+ &:where([data-active]:not([data-active="false"])) {
262
+ @slot;
263
+ }
264
+ }
265
+
266
+ @custom-variant data-horizontal {
267
+ &:where([data-orientation="horizontal"]) {
268
+ @slot;
269
+ }
270
+ }
271
+
272
+ @custom-variant data-vertical {
273
+ &:where([data-orientation="vertical"]) {
274
+ @slot;
275
+ }
276
+ }
277
+
278
+ @utility no-scrollbar {
279
+ -ms-overflow-style: none;
280
+ scrollbar-width: none;
281
+ &::-webkit-scrollbar {
282
+ display: none;
283
+ }
284
+ }
246
285
  ```
247
286
 
248
287
  ## Data Table Types
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kayord/ui",
3
3
  "private": false,
4
- "version": "3.0.1",
4
+ "version": "3.0.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/kayordDX/ui"
@@ -140,7 +140,7 @@
140
140
  "prettier-plugin-tailwindcss": "^0.7.2",
141
141
  "publint": "^0.3.18",
142
142
  "runed": "^0.37.1",
143
- "svelte": "5.55.0",
143
+ "svelte": "5.55.1",
144
144
  "svelte-check": "^4.4.5",
145
145
  "svelte-sonner": "^1.1.0",
146
146
  "sveltekit-superforms": "^2.30.1",