@rokkit/themes 1.0.0-next.94 → 1.0.0-next.96

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.94",
3
+ "version": "1.0.0-next.96",
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.2",
15
- "@vitest/coverage-v8": "^1.4.0",
16
- "@vitest/ui": "~1.4.0",
17
- "jsdom": "^24.0.0",
18
- "svelte": "^4.2.12",
19
- "typescript": "^5.4.4",
20
- "vite": "^5.2.8",
21
- "vitest": "~1.4.0",
22
- "shared-config": "1.0.0-next.94"
14
+ "@sveltejs/vite-plugin-svelte": "^3.1.1",
15
+ "@vitest/coverage-v8": "^1.6.0",
16
+ "@vitest/ui": "~1.6.0",
17
+ "jsdom": "^24.1.0",
18
+ "svelte": "^4.2.17",
19
+ "typescript": "^5.4.5",
20
+ "vite": "^5.2.12",
21
+ "vitest": "~1.6.0",
22
+ "shared-config": "1.0.0-next.96"
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.94"
41
+ "@rokkit/core": "1.0.0-next.96"
42
42
  },
43
43
  "scripts": {
44
44
  "format": "prettier --write .",
@@ -0,0 +1,30 @@
1
+ /* Alert styles */
2
+ alert-list {
3
+ @apply top-12 right-8 w-80;
4
+ }
5
+
6
+ alert,
7
+ error,
8
+ info,
9
+ warning,
10
+ success {
11
+ @apply px-4 py-2 border rounded select-none cursor-pointer;
12
+ }
13
+
14
+ alert.error,
15
+ alert.danger,
16
+ error {
17
+ @apply bg-error text-error-contrast border-error-muted;
18
+ }
19
+ alert.info,
20
+ info {
21
+ @apply bg-info text-info-contrast border-info-muted;
22
+ }
23
+ alert.warning,
24
+ warning {
25
+ @apply bg-warn text-warn-contrast border-warn-muted;
26
+ }
27
+ alert.success,
28
+ success {
29
+ @apply bg-success text-success-contrast border-success-muted;
30
+ }
@@ -72,9 +72,9 @@ day-of-month[aria-selected='true'] {
72
72
  }
73
73
 
74
74
  /* Form styles */
75
- /* form button[type='submit'] {
76
- @apply mt-4;
77
- } */
75
+ form {
76
+ @apply flex flex-col gap-4;
77
+ }
78
78
  field-layout.vertical {
79
79
  @apply flex flex-col gap-2;
80
80
  }
@@ -1,30 +1,3 @@
1
- /* Alert styles */
2
- alert-list {
3
- @apply top-4 right-4 w-80;
4
- }
5
- alert,
6
- error,
7
- info,
8
- warning,
9
- success {
10
- @apply px-4 py-2 border rounded select-none cursor-pointer;
11
- }
12
- alert.error {
13
- @apply bg-error text-error border-error;
14
- }
15
- alert.info,
16
- info {
17
- @apply bg-info text-info border-info;
18
- }
19
- alert.warning,
20
- warning {
21
- @apply bg-warn text-warn border-warn;
22
- }
23
- alert.success,
24
- success {
25
- @apply bg-pass text-pass border-pass;
26
- }
27
-
28
1
  input-select,
29
2
  drop-down {
30
3
  @apply overflow-visible cursor-pointer;
@@ -0,0 +1,18 @@
1
+ tree,
2
+ nested-list {
3
+ @apply flex flex-col w-full text-sm;
4
+ }
5
+ nested-list node > div {
6
+ @apply px-2 h-8;
7
+ }
8
+
9
+ nested-list node {
10
+ @apply flex flex-col;
11
+ }
12
+
13
+ node > div > item {
14
+ @apply px-1;
15
+ }
16
+ node > div > span {
17
+ @apply flex-shrink-0;
18
+ }
package/src/base.css CHANGED
@@ -5,5 +5,7 @@
5
5
  @import './base/organisms.css';
6
6
  @import './base/layout.css';
7
7
  @import './base/table.css';
8
+ @import './base/tree.css';
8
9
  @import './base/carousel.css';
9
10
  @import './base/animation.css';
11
+ @import './base/alert.css';
@@ -26,7 +26,7 @@
26
26
  @apply border-b-0 border-t-3;
27
27
  }
28
28
 
29
- .material node {
29
+ .material node > div {
30
30
  @apply h-7 px-2;
31
31
  }
32
32
  .material node > item {
@@ -56,18 +56,20 @@
56
56
  /* @apply hover:text-secondary; */
57
57
  }
58
58
 
59
- .minimal node {
60
- @apply h-7 px-2;
59
+ /* .minimal nested-list {
60
+ @apply text-sm;
61
+ } */
62
+ .minimal node > div {
63
+ @apply h-7 px-2 py-1;
61
64
  }
62
65
  .minimal node > item {
63
66
  @apply px-1 gap-1;
64
67
  }
65
- .minimal node > span {
66
- @apply w-3;
68
+ .minimal node > div > span > i {
69
+ @apply border-none w-3;
67
70
  }
68
- .minimal node > span > icon {
69
- /* .minimal node > icon { */
70
- @apply text-sm;
71
+ .minimal node > div > icon {
72
+ @apply text-xs text-neutral-400;
71
73
  }
72
74
  .minimal node[aria-selected='true'] > item > p {
73
75
  @apply text-secondary-600;
@@ -82,10 +84,10 @@
82
84
  @apply text-sm;
83
85
  }
84
86
 
85
- .minimal .small node {
87
+ .minimal .small node > div {
86
88
  @apply text-sm gap-1 h-5;
87
89
  }
88
- .minimal .small node > span > icon {
90
+ .minimal .small node > div > icon {
89
91
  @apply text-sm;
90
92
  }
91
93
  .minimal .small item > img,
@@ -103,9 +105,9 @@
103
105
  @apply h-full bg-neutral-inset min-w-40;
104
106
  }
105
107
 
106
- .minimal node > span > i {
108
+ /* .minimal node > div > i {
107
109
  @apply border-neutral-muted;
108
- }
110
+ } */
109
111
 
110
112
  .minimal crumbs {
111
113
  @apply flex-grow gap-1 text-sm;
@@ -0,0 +1,4 @@
1
+ /* Styles for 'alert-list' class */
2
+ .rokkit alert-list {
3
+ @apply top-12 right-8 w-80;
4
+ }
@@ -0,0 +1,36 @@
1
+ /* Styles for 'input-field' class */
2
+ .rokkit input-field field {
3
+ @apply p-2px box-border border border-neutral-muted rounded;
4
+ }
5
+ .rokkit input-field input,
6
+ .rokkit input-field textarea,
7
+ .rokkit input-field select {
8
+ @apply border-0 rounded-sm;
9
+ }
10
+ .rokkit checkbox {
11
+ @apply outline-none;
12
+ }
13
+ .rokkit input-field > label {
14
+ @apply text-secondary-600;
15
+ }
16
+ .rokkit input-field field > label {
17
+ @apply w-full h-full flex items-center text-secondary-600 uppercase text-xs;
18
+ }
19
+ .rokkit input-field:not(.disabled) field:focus-within {
20
+ @apply border-neutral-base bg-gradient-to-r from-primary to-secondary;
21
+ }
22
+ .rokkit input-field.disabled label {
23
+ @apply text-neutral-500;
24
+ }
25
+ /* .rokkit input-field.disabled field:focus-within {
26
+ @apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
27
+ } */
28
+ .rokkit input-field > span {
29
+ @apply border-r border-neutral-muted bg-neutral-base px-1 h-full aspect-square;
30
+ }
31
+ .rokkit input-field message {
32
+ @apply px-2 py-1 bg-neutral-base rounded;
33
+ }
34
+ .rokkit input-field.fail {
35
+ @apply bg-error rounded px-2;
36
+ }
@@ -1,40 +1,3 @@
1
- /* Styles for 'input-field' class */
2
- .rokkit input-field field {
3
- @apply p-2px box-border border border-neutral-muted rounded;
4
- }
5
- .rokkit input-field input,
6
- .rokkit input-field textarea,
7
- .rokkit input-field select {
8
- @apply border-0 rounded-sm;
9
- }
10
- .rokkit checkbox {
11
- @apply outline-none;
12
- }
13
- .rokkit input-field > label {
14
- @apply text-secondary-600;
15
- }
16
- .rokkit input-field field > label {
17
- @apply w-full h-full flex items-center text-secondary-600 uppercase text-xs;
18
- }
19
- .rokkit input-field:not(.disabled) field:focus-within {
20
- @apply border-neutral-base bg-gradient-to-r from-primary to-secondary;
21
- }
22
- .rokkit input-field.disabled label {
23
- @apply text-neutral-500;
24
- }
25
- /* .rokkit input-field.disabled field:focus-within {
26
- @apply bg-gradient-to-r from-neutral-subtle to-neutral-subtle;
27
- } */
28
- .rokkit input-field > span {
29
- @apply border-r border-neutral-muted bg-neutral-base px-1 h-full aspect-square;
30
- }
31
- .rokkit input-field message {
32
- @apply px-2 py-1 bg-neutral-base rounded;
33
- }
34
- .rokkit input-field.fail {
35
- @apply bg-error rounded px-2;
36
- }
37
-
38
1
  /* Styles for 'input-range' class */
39
2
  .rokkit input-range range-track {
40
3
  @apply h-2 mt-2 relative;
@@ -109,11 +72,6 @@
109
72
  @apply text-secondary;
110
73
  }
111
74
 
112
- /* Styles for 'alert-list' class */
113
- .rokkit alert-list {
114
- @apply top-4 right-4 w-80;
115
- }
116
-
117
75
  /* Pill styles */
118
76
  .rokkit .pill {
119
77
  @apply rounded-full bg-neutral-inset border-neutral-subtle border px-2 py-1 flex-grow-0;
package/src/rokkit.css CHANGED
@@ -1,6 +1,8 @@
1
1
  @import './base.css';
2
2
 
3
3
  @import './rokkit/atoms.css';
4
+ @import './rokkit/alert.css';
5
+ @import './rokkit/input.css';
4
6
  @import './rokkit/molecules.css';
5
7
  @import './rokkit/organisms.css';
6
8
  @import './rokkit/layout.css';