@rokkit/themes 1.0.0-next.104 → 1.0.0-next.106

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.104",
3
+ "version": "1.0.0-next.106",
4
4
  "description": "Themes for use with rokkit components.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -32,6 +32,6 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@rokkit/core": "1.0.0-next.104"
35
+ "@rokkit/core": "latest"
36
36
  }
37
37
  }
@@ -1,30 +1,30 @@
1
1
  /* Alert styles */
2
- rkt-alert-list {
2
+ rk-alert-list {
3
3
  @apply right-8 top-12 w-80;
4
4
  }
5
5
 
6
- rkt-alert,
7
- rkt-error,
8
- rkt-info,
9
- rkt-warning,
10
- rkt-success {
11
- @apply cursor-pointer select-none rounded border px-4 py-2;
6
+ rk-alert,
7
+ rk-error,
8
+ rk-info,
9
+ rk-warning,
10
+ rk-success {
11
+ @apply cursor-pointer rounded border px-4 py-2;
12
12
  }
13
13
 
14
- rkt-alert.error,
15
- rkt-alert.danger,
16
- rkt-error {
14
+ rk-alert.error,
15
+ rk-alert.danger,
16
+ rk-error {
17
17
  @apply bg-error text-error-contrast border-error-muted;
18
18
  }
19
- rkt-alert.info,
20
- rkt-info {
19
+ rk-alert.info,
20
+ rk-info {
21
21
  @apply bg-info text-info-contrast border-info-muted;
22
22
  }
23
- rkt-alert.warning,
24
- rkt-warning {
23
+ rk-alert.warning,
24
+ rk-warning {
25
25
  @apply bg-warn text-warn-contrast border-warn-muted;
26
26
  }
27
- rkt-alert.success,
28
- rkt-success {
27
+ rk-alert.success,
28
+ rk-success {
29
29
  @apply bg-success text-success-contrast border-success-muted;
30
30
  }
@@ -8,6 +8,21 @@
8
8
  }
9
9
  }
10
10
 
11
+ @keyframes shake {
12
+ 0% {
13
+ transform: translateX(0);
14
+ }
15
+ 25% {
16
+ transform: translateX(1px);
17
+ }
18
+ 50% {
19
+ transform: translateX(-1px);
20
+ }
21
+ 100% {
22
+ transform: translateX(0);
23
+ }
24
+ }
25
+
11
26
  /* Button and focus animation */
12
27
  @keyframes button-pop {
13
28
  0% {
@@ -1,59 +1,58 @@
1
1
  /* Icon styles */
2
- rkt-icon {
2
+ rk-icon {
3
3
  @apply flex flex-shrink-0 flex-grow-0 items-center justify-center;
4
- @apply h-4 min-h-4 w-4;
4
+ /* @apply h-6 min-h-6 w-6; */
5
5
  }
6
- button > rkt-icon {
7
- @apply aspect-square cursor-pointer select-none p-2 focus:outline;
6
+ button > rk-icon {
7
+ @apply text-md aspect-square cursor-pointer select-none p-2 focus:outline;
8
8
  }
9
- rkt-icon > i {
10
- @apply mx-auto aspect-square text-2xl leading-6 text-current;
9
+ rk-icon > i {
10
+ @apply mx-auto aspect-square text-current;
11
11
  }
12
- rkt-icon.large > i {
12
+ rk-icon.large {
13
13
  @apply text-3xl;
14
14
  }
15
- rkt-icon.medium > i {
15
+ rk-icon.medium {
16
16
  @apply text-lg leading-5;
17
17
  }
18
- rkt-icon.small > i {
18
+ rk-icon.small {
19
19
  @apply leading-4;
20
20
  font-size: 1rem;
21
21
  }
22
- button > rkt-icon.large {
22
+ button > rk-icon.large {
23
23
  @apply h-12 w-12;
24
24
  }
25
- button > rkt-icon.medium {
25
+ button > rk-icon.medium {
26
26
  @apply h-8 w-8;
27
27
  }
28
- button > rkt-icon.small {
28
+ button > rk-icon.small {
29
29
  @apply h-6 w-6;
30
30
  }
31
31
 
32
32
  /* Scroll styles */
33
- rkt-scroll {
33
+ rk-scroll {
34
34
  @apply flex flex-col overflow-y-scroll;
35
35
  }
36
36
 
37
37
  /* Square styles */
38
38
  square {
39
- @apply flex aspect-square h-full min-h-full flex-col items-center justify-center;
39
+ @apply flex aspect-square flex-col items-center justify-center;
40
+ /*h-full min-h-full*/
40
41
  }
41
42
  /* Item styles */
42
- rkt-item,
43
+ rk-item,
44
+ rk-list-item,
43
45
  .item {
44
- @apply flex flex-shrink-0 flex-grow-0 cursor-pointer select-none items-center gap-2;
46
+ @apply flex flex-shrink-0 flex-grow-0 cursor-pointer items-center gap-2;
45
47
  }
46
- rkt-item p,
47
- rkt-summary p {
48
+
49
+ rk-item p,
50
+ rk-list-item p,
51
+ rk-summary p {
48
52
  @apply flex flex-grow;
49
53
  }
50
54
 
51
55
  /* Overlay styles */
52
- rkt-overlay {
56
+ rk-overlay {
53
57
  @apply bg-neutral-inset bg-opacity-50;
54
58
  }
55
-
56
- /* Checkbox styles */
57
- rkt-checkbox {
58
- @apply gap-2;
59
- }
@@ -1,18 +1,18 @@
1
- rkt-carousel rkt-slide {
1
+ rk-carousel rk-slide {
2
2
  @apply min-h-100 items-center gap-3 px-12;
3
3
  }
4
- rkt-carousel rkt-slide > img {
4
+ rk-carousel rk-slide > img {
5
5
  @apply h-80 w-80 object-cover;
6
6
  }
7
- rkt-carousel rkt-slide > p {
7
+ rk-carousel rk-slide > p {
8
8
  @apply text-center text-xl;
9
9
  }
10
- rkt-carousel rkt-dot-nav {
10
+ rk-carousel rk-dot-nav {
11
11
  @apply flex h-4 w-full justify-center gap-2;
12
12
  }
13
- rkt-carousel rkt-dot {
13
+ rk-carousel rk-dot {
14
14
  @apply m-0 block h-4 w-4 cursor-pointer rounded-full p-0 focus:outline-none;
15
15
  }
16
- rkt-carousel rkt-dot[aria-checked='true'] {
16
+ rk-carousel rk-dot[aria-checked='true'] {
17
17
  @apply bg-primary;
18
18
  }
package/src/base/core.css CHANGED
@@ -35,6 +35,7 @@ pre {
35
35
  .disabled {
36
36
  @apply text-disabled;
37
37
  }
38
+
38
39
  input[disabled='true'],
39
40
  textarea[disabled='true'],
40
41
  select[disabled='true'] {
@@ -42,28 +43,29 @@ select[disabled='true'] {
42
43
  }
43
44
 
44
45
  /* plots*/
45
- rkt-plot {
46
+ rk-plot {
46
47
  @apply bg-neutral-inset rounded-md p-4;
47
48
  }
49
+
48
50
  g[aria-label='tip'] {
49
51
  --plot-background: var(--neutral-200);
50
52
  }
51
53
 
52
- rkt-input-field input,
53
- rkt-input-field toggle-switch,
54
- rkt-drop-down {
54
+ rk-input-field input,
55
+ rk-input-field toggle-switch,
56
+ rk-drop-down {
55
57
  @apply focus:outline-none;
56
58
  }
57
59
 
58
- rkt-alert,
59
- rkt-error,
60
- rkt-info,
61
- rkt-warning,
62
- rkt-success {
63
- @apply cursor-pointer select-none rounded border px-4 py-2;
60
+ rk-alert,
61
+ rk-error,
62
+ rk-info,
63
+ rk-warning,
64
+ rk-success {
65
+ @apply cursor-pointer rounded border px-4 py-2;
64
66
  }
65
67
 
66
- rkt-checkbox {
68
+ rk-checkbox {
67
69
  @apply gap-2;
68
70
  }
69
71
 
@@ -71,14 +73,32 @@ button:disabled {
71
73
  @apply bg-neutral-muted cursor-not-allowed text-neutral-500;
72
74
  }
73
75
 
74
- rkt-cell.cell-type-string {
76
+ rk-cell.cell-type-string {
75
77
  @apply text-left;
76
78
  }
77
- rkt-cell.cell-type-integer rkt-itemp,
78
- rkt-cell.cell-type-number rkt-itemp {
79
+ rk-cell.cell-type-integer rk-item p,
80
+ rk-cell.cell-type-number rk-item p {
79
81
  @apply text-right;
80
82
  }
81
83
 
82
- rkt-cell rkt-item {
84
+ rk-cell rk-item {
83
85
  @apply flex w-full;
84
86
  }
87
+
88
+ .dark ::-webkit-calendar-picker-indicator {
89
+ filter: invert(1);
90
+ }
91
+
92
+ /* Autofill styles */
93
+ input:-webkit-autofill,
94
+ input:-webkit-autofill:hover,
95
+ input:-webkit-autofill:focus,
96
+ textarea:-webkit-autofill,
97
+ textarea:-webkit-autofill:hover,
98
+ textarea:-webkit-autofill:focus,
99
+ select:-webkit-autofill,
100
+ select:-webkit-autofill:hover,
101
+ select:-webkit-autofill:focus {
102
+ -webkit-text-fill-color: var(--neutral-200);
103
+ transition: background-color 5000s ease-in-out 0s;
104
+ }
@@ -1,4 +1,4 @@
1
- rkt-container > rkt-segment {
1
+ rk-container > rk-segment {
2
2
  @apply h-full overflow-hidden;
3
3
  }
4
4
 
@@ -1,73 +1,73 @@
1
1
  /* Input range styles */
2
- rkt-input-range rkt-range-track {
2
+ rk-input-range rk-range-track {
3
3
  @apply relative mt-3 h-1;
4
4
  }
5
- rkt-input-range rkt-range-track rkt-range-track-bar {
5
+ rk-input-range rk-range-track rk-range-track-bar {
6
6
  @apply bg-neutral-subtle border-neutral-muted rounded-full;
7
7
  }
8
- rkt-input-range rkt-range-track selected {
8
+ rk-input-range rk-range-track selected {
9
9
  @apply top-0px bottom-0px;
10
10
  }
11
- rkt-input-range rkt-range-track rkt-thumb {
11
+ rk-input-range rk-range-track rk-thumb {
12
12
  @apply rounded-full;
13
13
  }
14
- rkt-input-range rkt-thumb {
14
+ rk-input-range rk-thumb {
15
15
  @apply bg-secondary border-secondary -top-1.5 border shadow-xl;
16
16
  }
17
- rkt-input-range rkt-thumb.sliding::before {
17
+ rk-input-range rk-thumb.sliding::before {
18
18
  content: '';
19
19
  @apply bg-secondary-400 absolute bottom-0 left-0 right-0 top-0 rounded-full opacity-30;
20
20
  transform: scale(2, 2);
21
21
  }
22
22
 
23
23
  /* Bookend styles */
24
- .bookend rkt-range-track rkt-range-track-bar::before,
25
- .bookend rkt-range-track rkt-range-track-bar::after {
24
+ .bookend rk-range-track rk-range-track-bar::before,
25
+ .bookend rk-range-track rk-range-track-bar::after {
26
26
  content: '';
27
27
  @apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
28
28
  }
29
- .bookend rkt-range-track rkt-range-track-bar::before {
29
+ .bookend rk-range-track rk-range-track-bar::before {
30
30
  @apply -left-1px;
31
31
  }
32
- .bookend rkt-range-track rkt-range-track-bar::after {
32
+ .bookend rk-range-track rk-range-track-bar::after {
33
33
  @apply -right-2px;
34
34
  }
35
35
 
36
- /* Input rkt-range tick styles */
37
- rkt-input-range tick {
36
+ /* Input rk-range tick styles */
37
+ rk-input-range tick {
38
38
  grid-template-rows: 7px auto;
39
39
  }
40
- rkt-input-range tick tick-bar {
40
+ rk-input-range tick tick-bar {
41
41
  @apply h-full border-neutral-600;
42
42
  }
43
- rkt-input-range tick p {
43
+ rk-input-range tick p {
44
44
  @apply items-top leading-tight text-neutral-600;
45
45
  font-size: 8px;
46
46
  }
47
47
 
48
- /* Calendar styles */
49
- calendar {
48
+ /* rk-calendar styles */
49
+ rk-calendar {
50
50
  @apply overflow-hidden rounded-md shadow-lg;
51
51
  }
52
- calendar month-year {
52
+ rk-calendar month-year {
53
53
  @apply bg-secondary-400 text-white;
54
54
  }
55
- calendar cal-body days-of-week p,
56
- calendar cal-body days-of-month p {
55
+ rk-calendar cal-body days-of-week p,
56
+ rk-calendar cal-body days-of-month p {
57
57
  @apply h-8 w-8 text-xs;
58
58
  }
59
- calendar cal-body days-of-week p.weekend,
60
- calendar cal-body days-of-month p.weekend,
61
- calendar cal-body days-of-month p.holiday {
59
+ rk-calendar cal-body days-of-week p.weekend,
60
+ rk-calendar cal-body days-of-month p.weekend,
61
+ rk-calendar cal-body days-of-month p.holiday {
62
62
  @apply text-primary-700;
63
63
  }
64
- calendar cal-body days-of-month {
64
+ rk-calendar cal-body days-of-month {
65
65
  @apply gap-2px;
66
66
  }
67
- day-of-month {
67
+ rk-day-of-month {
68
68
  @apply hover:bg-secondary-200 hover:rounded-full;
69
69
  }
70
- day-of-month[aria-selected='true'] {
70
+ rk-day-of-month[aria-selected='true'] {
71
71
  @apply bg-secondary rounded-full text-white;
72
72
  }
73
73
 
@@ -81,46 +81,29 @@ field-layout.vertical {
81
81
  field-layout.horizontal {
82
82
  @apply flex flex-col gap-2 md:flex-row md:gap-4;
83
83
  }
84
- selected-item rkt-item {
84
+ selected-item rk-item {
85
85
  @apply flex-grow;
86
86
  }
87
- rkt-input-field {
87
+ rk-input-field {
88
88
  @apply m-0 w-full py-1;
89
89
  }
90
- rkt-input-field input,
91
- rkt-input-field textarea,
92
- rkt-input-field select,
93
- rkt-input-field > field > :not(icon) {
90
+ rk-input-field input,
91
+ rk-input-field textarea,
92
+ rk-input-field select,
93
+ rk-input-field > field > :not(icon) {
94
94
  @apply px-3;
95
95
  @apply min-h-9 flex-grow leading-loose outline-none;
96
96
  @apply bg-neutral-subtle text-neutral-800;
97
97
  }
98
- rkt-input-field > label {
98
+ rk-input-field > label {
99
99
  @apply text-xs uppercase;
100
100
  @apply leading-loose;
101
101
  }
102
- rkt-input-field > label.required::after {
102
+ rk-input-field > label.required::after {
103
103
  content: ' *';
104
104
  @apply state-danger;
105
105
  }
106
106
 
107
- radio-group label {
108
- @apply cursor-pointer uppercase;
109
- }
110
- /* Progress bar styles */
111
- progress-bar {
112
- @apply bg-neutral-muted border-neutral-subtle border;
113
- }
114
- progress-bar value-bar {
115
- @apply bg-primary;
116
- }
117
-
118
- .indeterminate value-bar {
119
- position: absolute;
120
- bottom: 0;
121
- top: 0;
122
- /* Move the bar infinitely */
123
- animation-duration: 2s;
124
- animation-iteration-count: infinite;
125
- animation-name: pendulum;
107
+ rk-select > select {
108
+ @apply min-h-9 min-w-40 rounded px-3;
126
109
  }
@@ -1,25 +1,65 @@
1
- rkt-input-select,
2
- rkt-drop-down {
1
+ /* default structure */
2
+ /* List styles */
3
+ rk-list {
4
+ @apply flex w-full flex-shrink-0 select-none flex-col;
5
+ }
6
+
7
+ /* Accordion */
8
+ rk-accordion {
9
+ @apply flex w-full select-none flex-col;
10
+ }
11
+ /* Node Styles */
12
+ rk-node {
13
+ @apply flex min-h-5 cursor-pointer select-none flex-col;
14
+ }
15
+ /* Nested List Styles */
16
+ rk-nested-list {
17
+ @apply flex w-full flex-col;
18
+ }
19
+ rk-tree {
20
+ @apply flex h-full w-full flex-shrink-0 flex-col scroll-auto;
21
+ }
22
+ rk-status-report {
23
+ @apply flex flex-col;
24
+ }
25
+ rk-status-report > rk-message {
26
+ @apply flex gap-2;
27
+ }
28
+ rk-input-range {
29
+ @apply relative grid h-10 grid-rows-2;
30
+ }
31
+ rk-checkbox {
32
+ @apply flex cursor-pointer select-none items-center leading-loose;
33
+ }
34
+ rk-crumbs {
35
+ @apply flex gap-1;
36
+ }
37
+ rk-pill {
38
+ @apply py-2px flex items-center gap-2 px-2;
39
+ }
40
+
41
+ rk-input-select,
42
+ rk-drop-down {
3
43
  @apply cursor-pointer overflow-visible;
4
44
  }
5
45
 
6
- rkt-input-field rkt-field {
46
+ rk-input-field rk-field {
7
47
  @apply gap-1px;
8
48
  }
9
- rkt-input-field rkt-field rkt-icon {
49
+ rk-input-field rk-field rk-icon {
10
50
  @apply bg-neutral-subtle h-9 w-9 text-neutral-800;
11
51
  }
12
52
 
13
- rkt-input-field > rkt-field > rkt-input-select {
53
+ rk-input-field > rk-field > rk-input-select {
14
54
  @apply px-0;
15
55
  }
16
56
 
17
- rkt-input-select rkt-selected-item > rkt-icon,
18
- rkt-drop-down > button > span > rkt-icon {
57
+ rk-input-select rk-selected-item > rk-icon,
58
+ rk-drop-down > button > span > rk-icon {
19
59
  @apply h-full w-9;
20
60
  }
21
- rkt-input-select > rkt-selected-item,
22
- rkt-drop-down > button > span {
61
+ rk-input-select > rk-selected-item,
62
+ rk-drop-down > button > span {
23
63
  /* @apply bg-neutral-base pl-3; */
24
64
  @apply min-h-9 items-center gap-2 pl-3 normal-case;
25
65
  @apply rounded text-neutral-800;
@@ -0,0 +1,21 @@
1
+ /* Progress bar styles */
2
+ rk-progress {
3
+ @apply flex w-full;
4
+ }
5
+
6
+ rk-progress {
7
+ @apply bg-neutral-muted border-neutral-subtle border;
8
+ }
9
+ rk-progress value-bar {
10
+ @apply bg-primary;
11
+ }
12
+
13
+ .indeterminate value-bar {
14
+ position: absolute;
15
+ bottom: 0;
16
+ top: 0;
17
+ /* Move the bar infinitely */
18
+ animation-duration: 2s;
19
+ animation-iteration-count: infinite;
20
+ animation-name: pendulum;
21
+ }
@@ -43,7 +43,7 @@ table > tfoot {
43
43
  table > tfoot > tr {
44
44
  @apply table-row font-semibold text-neutral-800;
45
45
  }
46
- rkt-tree-table,
47
- rkt-table {
46
+ rk-tree-table,
47
+ rk-table {
48
48
  @apply max-h-full overflow-y-auto;
49
49
  }
@@ -0,0 +1,21 @@
1
+ /* Checkbox styles */
2
+ rk-checkbox {
3
+ @apply gap-2;
4
+ }
5
+
6
+ rk-switch,
7
+ rk-toggle {
8
+ @apply flex items-center gap-2;
9
+ }
10
+
11
+ rk-radio-group label {
12
+ @apply cursor-pointer uppercase;
13
+ }
14
+
15
+ rk-toggle {
16
+ @apply text-primary-700;
17
+ }
18
+
19
+ rk-toggle button {
20
+ @apply flex h-8 w-8 items-center justify-center rounded-sm;
21
+ }
package/src/base/tree.css CHANGED
@@ -1,18 +1,18 @@
1
- rkt-tree,
2
- rkt-nested-list {
1
+ rk-tree,
2
+ rk-nested-list {
3
3
  @apply flex w-full flex-col text-sm;
4
4
  }
5
- rkt-nested-list rkt-node > div {
5
+ rk-nested-list rk-node > div {
6
6
  @apply h-8 px-2;
7
7
  }
8
8
 
9
- rkt-nested-list rkt-node {
9
+ rk-nested-list rk-node {
10
10
  @apply flex flex-col;
11
11
  }
12
12
 
13
- rkt-node > div > rkt-item {
13
+ rk-node > div > rk-item {
14
14
  @apply px-1;
15
15
  }
16
- rkt-node > div > span {
16
+ rk-node > div > span {
17
17
  @apply flex-shrink-0;
18
18
  }
package/src/base.css CHANGED
@@ -9,3 +9,5 @@
9
9
  @import './base/carousel.css';
10
10
  @import './base/animation.css';
11
11
  @import './base/alert.css';
12
+ @import './base/progress.css';
13
+ @import './base/toggles.css';
package/src/markdown.css CHANGED
@@ -72,7 +72,7 @@
72
72
  }
73
73
  /* postcss-ignore */
74
74
  .markdown-body summary {
75
- display: rkt-list-item;
75
+ display: rk-list-item;
76
76
  }
77
77
  /* postcss-ignore */
78
78
  .markdown-body a {
@@ -223,7 +223,7 @@
223
223
  margin-bottom: 0;
224
224
  }
225
225
  .markdown-body ul {
226
- rkt-list-style-type: none;
226
+ rk-list-style-type: none;
227
227
  }
228
228
  .markdown-body ul li {
229
229
  @apply relative mb-2;
@@ -234,19 +234,19 @@
234
234
  }
235
235
 
236
236
  .markdown-body ol {
237
- rkt-list-style-type: decimal;
237
+ rk-list-style-type: decimal;
238
238
  }
239
239
 
240
240
  .markdown-body ol ol,
241
241
  .markdown-body ul ol {
242
- rkt-list-style-type: lower-roman;
242
+ rk-list-style-type: lower-roman;
243
243
  }
244
244
 
245
245
  .markdown-body ol ol ol,
246
246
  .markdown-body ol ul ol,
247
247
  .markdown-body ul ol ol,
248
248
  .markdown-body ul ul ol {
249
- rkt-list-style-type: lower-alpha;
249
+ rk-list-style-type: lower-alpha;
250
250
  }
251
251
 
252
252
  .markdown-body dd {
@@ -942,7 +942,7 @@
942
942
  }
943
943
 
944
944
  .markdown-body .task-list-item {
945
- rkt-list-style-type: none;
945
+ rk-list-style-type: none;
946
946
  }
947
947
 
948
948
  .markdown-body .task-list-item + .task-list-item {
@@ -1,12 +1,12 @@
1
1
  @import '../base.css';
2
2
 
3
- .material rkt-icon[role='button'] {
3
+ [data-style='material'] rk-icon[role='button'] {
4
4
  @apply text-neutral-muted hover:text-primary focus:outline-primary focus:m-1px focus:rounded;
5
5
  }
6
- .material rkt-icon.disabled[role='button'] {
6
+ [data-style='material'] rk-icon.disabled[role='button'] {
7
7
  @apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
8
8
  }
9
9
 
10
- .material * {
10
+ [data-style='material'] * {
11
11
  @apply focus:outline-primary-400;
12
12
  }