@rokkit/themes 1.0.0-next.92 → 1.0.0-next.93

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.92",
3
+ "version": "1.0.0-next.93",
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.2",
15
- "@vitest/coverage-v8": "^1.3.1",
16
- "@vitest/ui": "~1.3.1",
15
+ "@vitest/coverage-v8": "^1.4.0",
16
+ "@vitest/ui": "~1.4.0",
17
17
  "jsdom": "^24.0.0",
18
- "svelte": "^4.2.11",
19
- "typescript": "^5.3.3",
20
- "vite": "^5.1.4",
21
- "vitest": "~1.3.1",
22
- "shared-config": "1.0.0-next.92"
18
+ "svelte": "^4.2.12",
19
+ "typescript": "^5.4.3",
20
+ "vite": "^5.2.7",
21
+ "vitest": "~1.4.0",
22
+ "shared-config": "1.0.0-next.93"
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.92"
41
+ "@rokkit/core": "1.0.0-next.93"
42
42
  },
43
43
  "scripts": {
44
44
  "format": "prettier --write .",
@@ -8,7 +8,7 @@ tr {
8
8
  th {
9
9
  @apply whitespace-nowrap;
10
10
  }
11
- th cell {
11
+ table cell {
12
12
  @apply flex items-center gap-2;
13
13
  }
14
14
  th[data-sortable='true'] {
@@ -21,9 +21,11 @@ th[data-sortable='true']:hover icon {
21
21
 
22
22
  table {
23
23
  @apply w-full text-sm text-left rtl:text-right text-neutral-700;
24
+ @apply border-separate border-spacing-x-1px;
24
25
  }
25
26
  table > thead {
26
- @apply table-header-group text-xs uppercase bg-neutral-400;
27
+ @apply table-header-group sticky top-0 z-10;
28
+ @apply text-xs uppercase bg-neutral-400;
27
29
  }
28
30
  table > caption {
29
31
  @apply table-caption p-5 text-sm font-normal text-left rtl:text-right bg-neutral-subtle text-neutral-600;
@@ -41,6 +43,7 @@ table > tfoot {
41
43
  table > tfoot > tr {
42
44
  @apply table-row font-semibold text-neutral-800;
43
45
  }
46
+ tree-table,
44
47
  table-wrapper {
45
- @apply shadow-md sm:rounded-lg;
48
+ @apply max-h-full overflow-y-auto;
46
49
  }
@@ -2,9 +2,9 @@
2
2
  @each $name, $color in $theme-colors {
3
3
  $hue: hue($color);
4
4
  $saturation: saturation($color);
5
- @if $values != null {
6
- $start: if($mode == 'dark', length($values), 1);
7
- $offset: if($mode == 'dark', -1, 1);
5
+ @if $values !== null {
6
+ $start: if($mode === 'dark', length($values), 1);
7
+ $offset: if($mode === 'dark', -1, 1);
8
8
  @for $i from 0 to length($values) - 1 {
9
9
  $index: $start + $offset * $i;
10
10
  $lightness: nth($values, $index);
@@ -13,7 +13,7 @@
13
13
  }
14
14
  } @else {
15
15
  @for $i from 0 to 9 {
16
- $lightness: if($mode == 'dark', $i * 10%, 100 - $i * 10%);
16
+ $lightness: if($mode === 'dark', $i * 10%, 100 - $i * 10%);
17
17
  $variable: '--#{$name}-#{50 + ($i) * 100}';
18
18
  #{$variable}: hsl($hue, $saturation, $lightness);
19
19
  }