@rokkit/themes 1.0.0-next.95 → 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.95",
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.95"
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.95"
41
+ "@rokkit/core": "1.0.0-next.96"
42
42
  },
43
43
  "scripts": {
44
44
  "format": "prettier --write .",
@@ -1,15 +1,30 @@
1
- alert-list alert {
2
- @apply bg-neutral border-neutral-muted text-neutral-800;
1
+ /* Alert styles */
2
+ alert-list {
3
+ @apply top-12 right-8 w-80;
3
4
  }
4
- alert-list alert.danger {
5
- @apply bg-danger border-danger-muted text-neutral-800;
5
+
6
+ alert,
7
+ error,
8
+ info,
9
+ warning,
10
+ success {
11
+ @apply px-4 py-2 border rounded select-none cursor-pointer;
6
12
  }
7
- alert-list alert.success {
8
- @apply bg-success border-success-muted text-neutral-800;
13
+
14
+ alert.error,
15
+ alert.danger,
16
+ error {
17
+ @apply bg-error text-error-contrast border-error-muted;
9
18
  }
10
- alert-list alert.info {
11
- @apply bg-info border-info-muted text-neutral-800;
19
+ alert.info,
20
+ info {
21
+ @apply bg-info text-info-contrast border-info-muted;
12
22
  }
13
- alert-list alert.warning {
14
- @apply bg-warning border-warning-muted text-neutral-800;
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;
15
30
  }
@@ -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,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';