@rokkit/themes 1.0.0-next.67 → 1.0.0-next.69

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": "@rokkit/themes",
3
- "version": "1.0.0-next.67",
3
+ "version": "1.0.0-next.69",
4
4
  "description": "Themes for use with rokkit components.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -11,15 +11,15 @@
11
11
  "access": "public"
12
12
  },
13
13
  "devDependencies": {
14
- "@sveltejs/vite-plugin-svelte": "^3.0.1",
15
- "@vitest/coverage-v8": "^1.2.1",
16
- "@vitest/ui": "~1.2.1",
17
- "jsdom": "^23.2.0",
14
+ "@sveltejs/vite-plugin-svelte": "^3.0.2",
15
+ "@vitest/coverage-v8": "^1.2.2",
16
+ "@vitest/ui": "~1.2.2",
17
+ "jsdom": "^24.0.0",
18
18
  "svelte": "^4.2.9",
19
19
  "typescript": "^5.3.3",
20
- "vite": "^5.0.11",
21
- "vitest": "~1.2.1",
22
- "shared-config": "1.0.0-next.67"
20
+ "vite": "^5.0.12",
21
+ "vitest": "~1.2.2",
22
+ "shared-config": "1.0.0-next.69"
23
23
  },
24
24
  "files": [
25
25
  "src"
@@ -38,7 +38,7 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@rokkit/core": "1.0.0-next.67"
41
+ "@rokkit/core": "1.0.0-next.69"
42
42
  },
43
43
  "scripts": {
44
44
  "format": "prettier --write .",
package/src/base/core.css CHANGED
@@ -18,9 +18,11 @@ body {
18
18
 
19
19
  /* Link styles */
20
20
  a {
21
- @apply text-primary hover:text-secondary visited:text-secondary-600;
21
+ @apply cursor-pointer text-primary-800 hover:text-secondary-800 visited:text-secondary-700;
22
+ }
23
+ a:focus {
24
+ @apply outline-none;
22
25
  }
23
-
24
26
  /* Code styles */
25
27
  code,
26
28
  kbd,
@@ -64,3 +66,7 @@ success {
64
66
  checkbox {
65
67
  @apply gap-2;
66
68
  }
69
+
70
+ button:disabled {
71
+ @apply bg-neutral-muted text-neutral-500 cursor-not-allowed;
72
+ }
@@ -57,7 +57,7 @@ tree-table {
57
57
  @apply flex flex-col h-full w-full overflow-auto;
58
58
  }
59
59
  tree-table > table {
60
- @apply flex flex-col mb-auto overflow-y-hidden;
60
+ @apply flex flex-col w-full h-full justify-start border-collapse overflow-auto;
61
61
  }
62
62
  tree-table > table tr {
63
63
  @apply grid;
@@ -39,3 +39,26 @@
39
39
  .searchable input {
40
40
  @apply border border-neutral-subtle;
41
41
  }
42
+
43
+ .rokkit a {
44
+ @apply text-primary-800 cursor-pointer;
45
+ }
46
+ .rokkit a:hover {
47
+ @apply text-secondary-800 cursor-pointer;
48
+ }
49
+ .rokkit a:visited {
50
+ @apply text-primary-700;
51
+ }
52
+ .rokkit a:focus {
53
+ @apply outline-none;
54
+ }
55
+
56
+ .rokkit [aria-current='true'] a {
57
+ @apply text-primary-100;
58
+ }
59
+ .rokkit [aria-current='true'] a:visited {
60
+ @apply text-primary-100;
61
+ }
62
+ .rokkit [aria-current='true'] a:hover {
63
+ @apply text-primary-100;
64
+ }
@@ -214,12 +214,6 @@
214
214
  @apply bg-neutral-inset text-secondary;
215
215
  }
216
216
 
217
- .rokkit list item[aria-selected='true'],
218
- .rokkit virtual-list-contents virtual-list-item[aria-selected='true'],
219
- .rokkit node[aria-selected='true'] {
220
- @apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle text-neutral-800;
221
- }
222
-
223
217
  /* Expanded and Selected styles for Accordion */
224
218
  .rokkit accordion .is-expanded summary {
225
219
  @apply border-b border-neutral-muted rounded-b-none sticky top-0 z-1;
@@ -294,9 +288,14 @@
294
288
  @apply bg-gradient-to-r from-primary to-secondary;
295
289
  }
296
290
 
291
+ .rokkit list item[aria-selected='true'],
292
+ .rokkit virtual-list-contents virtual-list-item[aria-selected='true'],
293
+ .rokkit node[aria-selected='true'] {
294
+ @apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle text-neutral-800;
295
+ }
297
296
  /* Focus and Hover styles for Toggle Switch, List, Tree, and Nested List */
298
297
  .rokkit toggle-switch:focus-within item[aria-selected='true'],
299
- .rokkit list:focus-within item.is-selected,
298
+ .rokkit list:focus-within item[aria-selected='true'],
300
299
  .rokkit virtual-list-viewport:focus-within virtual-list-item[aria-selected='true'],
301
300
  .rokkit tree:focus-within node[aria-selected='true'],
302
301
  .rokkit nested-list:focus-within node[aria-selected='true'] {
@@ -304,6 +303,9 @@
304
303
  @apply hover:from-secondary hover:to-primary hover:text-neutral-200 dark:text-neutral-800;
305
304
  }
306
305
 
306
+ .rokkit toggle-switch[aria-disabled='true'] {
307
+ @apply bg-neutral-muted text-neutral-500 cursor-not-allowed;
308
+ }
307
309
  .rokkit input-select > selected-item > items {
308
310
  @apply flex-grow flex-wrap gap-2;
309
311
  }