@rokkit/themes 1.0.0-next.66 → 1.0.0-next.68

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.66",
3
+ "version": "1.0.0-next.68",
4
4
  "description": "Themes for use with rokkit components.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -12,14 +12,14 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@sveltejs/vite-plugin-svelte": "^3.0.1",
15
- "@vitest/coverage-v8": "^1.2.0",
16
- "@vitest/ui": "~1.2.0",
15
+ "@vitest/coverage-v8": "^1.2.1",
16
+ "@vitest/ui": "~1.2.1",
17
17
  "jsdom": "^23.2.0",
18
18
  "svelte": "^4.2.9",
19
19
  "typescript": "^5.3.3",
20
20
  "vite": "^5.0.11",
21
- "vitest": "~1.2.0",
22
- "shared-config": "1.0.0-next.66"
21
+ "vitest": "~1.2.1",
22
+ "shared-config": "1.0.0-next.68"
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.66"
41
+ "@rokkit/core": "1.0.0-next.68"
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,11 +214,7 @@
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
- }
217
+
222
218
 
223
219
  /* Expanded and Selected styles for Accordion */
224
220
  .rokkit accordion .is-expanded summary {
@@ -294,9 +290,14 @@
294
290
  @apply bg-gradient-to-r from-primary to-secondary;
295
291
  }
296
292
 
293
+ .rokkit list item[aria-selected='true'],
294
+ .rokkit virtual-list-contents virtual-list-item[aria-selected='true'],
295
+ .rokkit node[aria-selected='true'] {
296
+ @apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle text-neutral-800;
297
+ }
297
298
  /* Focus and Hover styles for Toggle Switch, List, Tree, and Nested List */
298
299
  .rokkit toggle-switch:focus-within item[aria-selected='true'],
299
- .rokkit list:focus-within item.is-selected,
300
+ .rokkit list:focus-within item[aria-selected='true'],
300
301
  .rokkit virtual-list-viewport:focus-within virtual-list-item[aria-selected='true'],
301
302
  .rokkit tree:focus-within node[aria-selected='true'],
302
303
  .rokkit nested-list:focus-within node[aria-selected='true'] {
@@ -304,6 +305,9 @@
304
305
  @apply hover:from-secondary hover:to-primary hover:text-neutral-200 dark:text-neutral-800;
305
306
  }
306
307
 
308
+ .rokkit toggle-switch[aria-disabled='true']{
309
+ @apply bg-neutral-muted text-neutral-500 cursor-not-allowed;
310
+ }
307
311
  .rokkit input-select > selected-item > items {
308
312
  @apply flex-grow flex-wrap gap-2;
309
313
  }