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

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.
@@ -1,9 +1,9 @@
1
1
  @import '../base.css';
2
2
 
3
- .material icon[role='button'] {
4
- @apply text-neutral-muted focus:rounded hover:text-primary focus:outline-primary focus:m-1px;
3
+ .material rkt-icon[role='button'] {
4
+ @apply text-neutral-muted hover:text-primary focus:outline-primary focus:m-1px focus:rounded;
5
5
  }
6
- .material icon.disabled[role='button'] {
6
+ .material rkt-icon.disabled[role='button'] {
7
7
  @apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
8
8
  }
9
9
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  .material button,
6
6
  .material .button {
7
- @apply py-2 px-4 rounded bg-neutral-subtle uppercase;
7
+ @apply bg-neutral-subtle rounded px-4 py-2 uppercase;
8
8
  }
9
9
  .material button-group {
10
10
  @apply flex justify-center rounded-sm shadow;
@@ -14,9 +14,9 @@
14
14
  }
15
15
 
16
16
  .material button-group > button {
17
- @apply border-neutral-400 border-none rounded-none;
17
+ @apply rounded-none border-none border-neutral-400;
18
18
  @apply bg-neutral-subtle focus:outline-none;
19
- @apply uppercase text-sm text-neutral-800;
19
+ @apply text-sm uppercase text-neutral-800;
20
20
  }
21
21
  .material button-group > button:not(:last-child) {
22
22
  @apply border-r;
@@ -26,5 +26,5 @@
26
26
  }
27
27
 
28
28
  .material field > toggle-switch {
29
- @apply mx-2 mt-1 mb-2;
29
+ @apply mx-2 mb-2 mt-1;
30
30
  }
@@ -1,65 +1,65 @@
1
1
  .material input {
2
2
  @apply border-box focus:outline-none;
3
3
  }
4
- .material input-field {
5
- @apply box-border border border-neutral-muted rounded;
6
- @apply text-neutral-800 leading-loose relative pb-0;
4
+ .material rkt-input-field {
5
+ @apply border-neutral-muted box-border rounded border;
6
+ @apply relative pb-0 leading-loose text-neutral-800;
7
7
  }
8
- .material input-field.empty label {
8
+ .material rkt-input-field.empty label {
9
9
  @apply absolute top-0 my-3.5 align-middle;
10
10
  }
11
11
 
12
- .material input-field input,
13
- .material input-field > field > :not(icon) {
14
- @apply border-none focus:outline-none bg-transparent;
12
+ .material rkt-input-field input,
13
+ .material rkt-input-field > field > :not(icon) {
14
+ @apply border-none bg-transparent focus:outline-none;
15
15
  }
16
16
 
17
- .material input-field:focus-within {
17
+ .material rkt-input-field:focus-within {
18
18
  @apply border-primary;
19
19
  }
20
20
 
21
- .material input-field label,
22
- .material input-field:focus-within label {
23
- @apply bg-neutral-base absolute block z-1;
21
+ .material rkt-input-field label,
22
+ .material rkt-input-field:focus-within label {
23
+ @apply bg-neutral-base z-1 absolute block;
24
24
  @apply -top-2 left-3 my-0 px-1 leading-tight opacity-100;
25
25
  }
26
26
 
27
- .material input-select {
28
- @apply rounded cursor-pointer select-none;
27
+ .material rkt-input-select {
28
+ @apply cursor-pointer select-none rounded;
29
29
  }
30
- .material input-select > selected-item {
31
- @apply h-10 pl-4 pr-0 items-center bg-neutral-base normal-case;
32
- @apply rounded border border-neutral-muted text-neutral-800;
30
+ .material rkt-input-select > selected-item {
31
+ @apply bg-neutral-base h-10 items-center pl-4 pr-0 normal-case;
32
+ @apply border-neutral-muted rounded border text-neutral-800;
33
33
  @apply hover:bg-neutral-muted hover:border-secondary-600;
34
34
  }
35
35
 
36
- .material input-select:hover square-icon {
36
+ .material rkt-input-select:hover square-icon {
37
37
  @apply border-neutral;
38
38
  }
39
- .material input-select scroll {
39
+ .material rkt-input-select scroll {
40
40
  @apply mt-2 shadow-lg;
41
41
  }
42
42
 
43
- .material input-range range-track selected {
44
- @apply border-0 bg-primary;
43
+ .material rkt-input-range range-track selected {
44
+ @apply bg-primary border-0;
45
45
  }
46
- .material input-range range-track thumb {
47
- @apply -top-1.5 bg-primary-600;
46
+ .material rkt-input-range range-track rkt-thumb {
47
+ @apply bg-primary-600 -top-1.5;
48
48
  }
49
- .material input-range thumb.sliding::before {
49
+ .material rkt-input-range rkt-thumb.sliding::before {
50
50
  @apply bg-primary-400;
51
51
  }
52
52
 
53
- .material rating {
54
- @apply text-neutral-600 text-xl focus:outline-none;
53
+ .material rkt-rating {
54
+ @apply text-xl text-neutral-600 focus:outline-none;
55
55
  }
56
- .material rating > icon {
56
+ .material rkt-rating > rkt-icon {
57
57
  @apply w-8;
58
58
  }
59
- .material rating:focus-within icon[aria-checked='true'] {
59
+ .material rkt-rating:focus-within rkt-icon[aria-checked='true'] {
60
60
  @apply text-secondary;
61
61
  }
62
62
 
63
- .material rating icon.hovering > i {
63
+ .material rkt-rating rkt-icon.hovering > i {
64
64
  @apply text-primary;
65
65
  }
@@ -1,96 +1,96 @@
1
- .material accordion,
2
- .material list {
3
- @apply rounded gap-1px;
1
+ .material rkt-accordion,
2
+ .material rkt-list {
3
+ @apply gap-1px rounded;
4
4
  }
5
- .material list > item {
5
+ .material rkt-list > rkt-item {
6
6
  @apply bg-neutral-subtle;
7
7
  }
8
- .material item {
9
- @apply flex leading-10 items-center gap-2 px-3;
8
+ .material rkt-item {
9
+ @apply flex items-center gap-2 px-3 leading-10;
10
10
  }
11
- .material item > img,
12
- .material item > a > img {
13
- @apply w-4 h-4 rounded;
11
+ .material rkt-item > img,
12
+ .material rkt-item > a > img {
13
+ @apply h-4 w-4 rounded;
14
14
  }
15
15
  .material .tab.is-hovering {
16
16
  @apply bg-primary;
17
17
  }
18
18
 
19
- .material tabs .tab {
19
+ .material rkt-tabs .tab {
20
20
  @apply cursor-pointer;
21
21
  }
22
- .material tabs .tab[aria-selected='true'] {
22
+ .material rkt-tabs .tab[aria-selected='true'] {
23
23
  @apply border-b-3 border-primary;
24
24
  }
25
- .material tabs.is-below .tab[aria-selected='true'] {
26
- @apply border-b-0 border-t-3;
25
+ .material rkt-tabs.is-below .tab[aria-selected='true'] {
26
+ @apply border-t-3 border-b-0;
27
27
  }
28
28
 
29
- .material node > div {
29
+ .material rkt-node > div {
30
30
  @apply h-7 px-2;
31
31
  }
32
- .material node > item {
33
- @apply px-1 gap-1 bg-transparent;
32
+ .material rkt-node > rkt-item {
33
+ @apply gap-1 bg-transparent px-1;
34
34
  }
35
- .material node > span {
35
+ .material rkt-node > span {
36
36
  @apply w-3;
37
37
  }
38
38
 
39
- .material node > span > icon {
39
+ .material rkt-node > span > rkt-icon {
40
40
  @apply text-sm;
41
41
  }
42
42
 
43
- .material nested-list:focus-within {
43
+ .material rkt-nested-list:focus-within {
44
44
  @apply outline-none;
45
45
  }
46
46
 
47
- .material node > span > i {
47
+ .material rkt-node > span > i {
48
48
  @apply border-transparent;
49
49
  }
50
50
 
51
- .material accordion .is-expanded summary {
52
- @apply border-b border-neutral-muted rounded-b-none sticky top-0 z-1;
51
+ .material rkt-accordion .is-expanded summary {
52
+ @apply border-neutral-muted z-1 sticky top-0 rounded-b-none border-b;
53
53
  }
54
54
 
55
- .material accordion .is-selected summary {
56
- @apply border-b-primary border-b text-primary-600;
55
+ .material rkt-accordion .is-selected summary {
56
+ @apply border-b-primary text-primary-600 border-b;
57
57
  @apply hover:text-primary-600;
58
58
  }
59
- /* .material list item[aria-selected='true'] {
59
+ /* .material rkt-list item[aria-selected='true'] {
60
60
  @apply bg-primary text-primary-800;
61
61
  } */
62
- .material node[aria-selected='true'],
63
- .material list item[aria-selected='true'] {
62
+ .material rkt-node[aria-selected='true'],
63
+ .material rkt-list rkt-item[aria-selected='true'] {
64
64
  @apply bg-primary text-neutral-base;
65
65
  }
66
- .material crumbs {
66
+ .material rkt-crumbs {
67
67
  @apply flex-grow gap-1 text-sm;
68
68
  }
69
69
 
70
- .material toggle-switch item[aria-selected='true'] {
70
+ .material rkt-toggle rkt-item[aria-selected='true'] {
71
71
  @apply bg-primary text-neutral-200 dark:text-neutral-800;
72
72
  }
73
- .material crumbs crumb.is-selected {
73
+ .material rkt-crumbs rkt-crumb.is-selected {
74
74
  @apply text-secondary;
75
75
  }
76
76
 
77
- .material toggle-switch {
78
- @apply min-w-12 min-h-6 rounded-full mx-auto;
79
- @apply bg-neutral-subtle border border-neutral-muted;
77
+ .material rkt-toggle {
78
+ @apply mx-auto min-h-6 min-w-12 rounded-full;
79
+ @apply bg-neutral-subtle border-neutral-muted border;
80
80
  @apply p-2px;
81
81
  }
82
- .material toggle-switch item {
83
- @apply items-center justify-center px-3 gap-1 leading-tight;
84
- @apply min-w-6 min-h-6 rounded-full cursor-pointer;
82
+ .material rkt-toggle rkt-item {
83
+ @apply items-center justify-center gap-1 px-3 leading-tight;
84
+ @apply min-h-6 min-w-6 cursor-pointer rounded-full;
85
85
  }
86
86
 
87
- .material toggle-switch.compact > item {
88
- @apply px-0 gap-0;
87
+ .material rkt-toggle.compact > rkt-item {
88
+ @apply gap-0 px-0;
89
89
  }
90
90
 
91
- .minimal tabs .tab icon[role='img'] {
92
- @apply w-6 h-6;
91
+ .minimal rkt-tabs .tab rkt-icon[role='img'] {
92
+ @apply h-6 w-6;
93
93
  }
94
- .minimal tabs .tab icon[role='button'] {
95
- @apply w-4 h-4;
94
+ .minimal rkt-tabs .tab rkt-icon[role='button'] {
95
+ @apply h-4 w-4;
96
96
  }
@@ -1,8 +1,8 @@
1
1
  /* @import '../base.css'; */
2
2
 
3
- .minimal icon[role='button'] {
4
- @apply text-neutral-muted focus:rounded hover:text-secondary-600 focus:outline-secondary-600 focus:m-1px;
3
+ .minimal rkt-icon[role='button'] {
4
+ @apply text-neutral-muted hover:text-secondary-600 focus:outline-secondary-600 focus:m-1px focus:rounded;
5
5
  }
6
- .minimal icon.disabled[role='button'] {
6
+ .minimal button:disabled > rkt-icon {
7
7
  @apply text-neutral-subtle hover:text-neutral-subtle cursor-not-allowed;
8
8
  }
@@ -1,12 +1,12 @@
1
1
  .minimal button {
2
- @apply rounded leading-loose select-none px-4;
3
- @apply bg-neutral-muted border border-neutral-muted;
2
+ @apply select-none rounded px-4 leading-loose;
3
+ @apply bg-neutral-muted border-neutral-muted border;
4
4
  }
5
- .minimal button icon-left,
6
- .minimal button icon-right {
7
- @apply flex flex-col items-center justify-center h-10 aspect-square;
5
+ .minimal button rkt-icon-left,
6
+ .minimal button rkt-icon-right {
7
+ @apply flex aspect-square h-10 flex-col items-center justify-center;
8
8
  }
9
- .minimal button icon {
9
+ .minimal button rkt-icon {
10
10
  @apply text-2xl;
11
11
  }
12
12
 
@@ -14,74 +14,74 @@
14
14
  @apply bg-secondary text-white;
15
15
  }
16
16
  .minimal button p {
17
- @apply px-2 flex flex-grow;
17
+ @apply flex flex-grow px-2;
18
18
  }
19
19
 
20
- .minimal button-group {
21
- @apply flex justify-center rounded-sm gap-1px;
20
+ .minimal rkt-button-group {
21
+ @apply gap-1px flex justify-center rounded-sm;
22
22
  }
23
- .minimal button-group button {
24
- @apply border-neutral-400 border-none rounded-none;
23
+ .minimal rkt-button-group button {
24
+ @apply rounded-none border-none border-neutral-400;
25
25
  @apply bg-neutral-subtle shadow focus:outline-none;
26
- @apply uppercase text-sm text-neutral-800 leading-8 px-2;
26
+ @apply px-2 text-sm uppercase leading-8 text-neutral-800;
27
27
  }
28
- .minimal button-group button:not(:last-child) {
28
+ .minimal rkt-button-group button:not(:last-child) {
29
29
  @apply border-r;
30
30
  }
31
- .minimal button-group button.active {
31
+ .minimal rkt-button-group button.active {
32
32
  @apply bg-secondary text-white;
33
33
  }
34
34
 
35
- .minimal button-group button:first-child {
35
+ .minimal rkt-button-group button:first-child {
36
36
  @apply rounded-l-sm;
37
37
  }
38
- .minimal button-group button:last-child {
38
+ .minimal rkt-button-group button:last-child {
39
39
  @apply rounded-r-sm;
40
40
  }
41
41
 
42
- .minimal input-select {
42
+ .minimal rkt-input-select {
43
43
  @apply focus:outline-none;
44
44
  }
45
- .minimal input-select > selected-item {
46
- @apply leading-8 gap-4 items-center pl-2 min-h-8 cursor-pointer select-none;
47
- @apply border-b-2 border-b-neutral-muted;
45
+ .minimal rkt-input-select > selected-item {
46
+ @apply min-h-8 cursor-pointer select-none items-center gap-4 pl-2 leading-8;
47
+ @apply border-b-neutral-muted border-b-2;
48
48
  @apply focus:border-b-secondary-600;
49
49
  }
50
- .minimal input-select:focus > selected-item {
50
+ .minimal rkt-input-select:focus > selected-item {
51
51
  @apply border-b-secondary-600 text-secondary-600;
52
52
  }
53
- .minimal input-select:focus square-icon {
53
+ .minimal rkt-input-select:focus square-icon {
54
54
  @apply text-secondary-600;
55
55
  }
56
- .minimal input-select > selected-item > items {
56
+ .minimal rkt-input-select > selected-item > items {
57
57
  @apply flex-grow flex-wrap gap-2;
58
58
  }
59
- .minimal pill {
59
+ .minimal rkt-pill {
60
60
  @apply gap-2 rounded-full border border-neutral-400 px-2;
61
61
  }
62
- .minimal pill > item {
62
+ .minimal rkt-pill > rkt-item {
63
63
  @apply gap-2 leading-6;
64
64
  }
65
- .minimal pill > item > img {
66
- @apply w-4 h-4;
65
+ .minimal rkt-pill > rkt-item > img {
66
+ @apply h-4 w-4;
67
67
  }
68
68
 
69
- .minimal pill > icon {
69
+ .minimal rkt-pill > rkt-icon {
70
70
  @apply text-sm;
71
71
  }
72
- .minimal input-select scroll {
72
+ .minimal rkt-input-select rkt-scroll {
73
73
  @apply mt-1 shadow-lg;
74
74
  }
75
75
 
76
76
  .minimal button[role='switch'] {
77
- @apply rounded-full p-0 min-h-6 h-8 w-16;
78
- @apply bg-neutral-subtle border border-neutral-subtle;
77
+ @apply h-8 min-h-6 w-16 rounded-full p-0;
78
+ @apply bg-neutral-subtle border-neutral-subtle border;
79
79
  }
80
80
 
81
- .minimal button[role='switch'] > mark {
82
- @apply rounded-full w-6 h-6 bg-secondary top-0.75;
81
+ .minimal button[role='switch'] > rkt-mark {
82
+ @apply bg-secondary top-0.75 h-6 w-6 rounded-full;
83
83
  }
84
84
 
85
- .minimal progress-bar value-bar {
85
+ .minimal rkt-progress-bar rkt-value-bar {
86
86
  @apply bg-secondary;
87
87
  }
@@ -3,45 +3,45 @@
3
3
  .minimal textarea,
4
4
  .minimal select,
5
5
  .minimal fieldset {
6
- @apply rounded leading-loose px-2 border border-neutral-muted outline-none;
6
+ @apply border-neutral-muted rounded border px-2 leading-loose outline-none;
7
7
  }
8
8
 
9
9
  .minimal fieldset {
10
- @apply p-4 pt-2 gap-2 rounded-md;
10
+ @apply gap-2 rounded-md p-4 pt-2;
11
11
  }
12
12
  .minimal fieldset legend {
13
- @apply px-2 border-l border-r rounded-md leading-tight border-neutral-muted hover:text-primary select-none;
13
+ @apply border-neutral-muted hover:text-primary select-none rounded-md border-l border-r px-2 leading-tight;
14
14
  }
15
- .minimal fieldset icon {
15
+ .minimal fieldset rkt-icon {
16
16
  @apply text-2xl;
17
17
  }
18
18
 
19
19
  .minimal input-field {
20
- @apply w-full m-0 py-1;
20
+ @apply m-0 w-full py-1;
21
21
  }
22
22
 
23
23
  .minimal input-field field {
24
- @apply box-border border-b-1 border-neutral-muted min-h-9 overflow-hidden;
24
+ @apply border-b-1 border-neutral-muted box-border min-h-9 overflow-hidden;
25
25
  @apply focus-within:border-b-secondary-600;
26
26
  }
27
27
  .minimal input-field:focus-within label {
28
28
  @apply text-secondary-600;
29
29
  }
30
30
  .minimal input-field span {
31
- @apply border-r border-neutral-muted bg-neutral-base px-1 h-full aspect-square;
31
+ @apply border-neutral-muted bg-neutral-base aspect-square h-full border-r px-1;
32
32
  }
33
33
  .minimal input-field input,
34
34
  .minimal input-field textarea,
35
35
  .minimal input-field select,
36
36
  .minimal input-field > field > :not(icon) {
37
- @apply flex-grow border-0 focus:outline-none bg-transparent;
37
+ @apply flex-grow border-0 bg-transparent focus:outline-none;
38
38
  }
39
39
 
40
40
  .minimal input-field label {
41
- @apply leading-6 w-full uppercase text-sm text-neutral;
41
+ @apply text-neutral w-full text-sm uppercase leading-6;
42
42
  }
43
43
  .minimal input-field message {
44
- @apply px-2 py-1 bg-neutral-base rounded;
44
+ @apply bg-neutral-base rounded px-2 py-1;
45
45
  }
46
46
 
47
47
  .minimal input-field.fail {
@@ -49,13 +49,13 @@
49
49
  }
50
50
 
51
51
  .minimal input-range range-track {
52
- @apply h-1 mt-3 relative;
52
+ @apply relative mt-3 h-1;
53
53
  }
54
54
  .minimal input-range range-track span {
55
- @apply bg-neutral-subtle box-border border-neutral-muted rounded-full;
55
+ @apply bg-neutral-subtle border-neutral-muted box-border rounded-full;
56
56
  }
57
57
  .minimal input-range range-track selected {
58
- @apply border -top-0px -bottom-0px border-secondary bg-secondary-600 rounded-full;
58
+ @apply -top-0px -bottom-0px border-secondary bg-secondary-600 rounded-full border;
59
59
  }
60
60
  .minimal input-range range-track thumb {
61
61
  @apply rounded-full;
@@ -69,7 +69,7 @@
69
69
  .minimal .bookend range-track span::before,
70
70
  .minimal .bookend range-track span::after {
71
71
  content: '';
72
- @apply absolute w-1px rounded-full -top-2 -bottom-2 bg-gray-300;
72
+ @apply w-1px absolute -bottom-2 -top-2 rounded-full bg-gray-300;
73
73
  }
74
74
  .minimal .bookend range-track span::before {
75
75
  @apply -left-1px;
@@ -90,25 +90,25 @@
90
90
  }
91
91
 
92
92
  .minimal thumb {
93
- @apply -top-1.5 bg-secondary shadow-xl border border-secondary;
93
+ @apply bg-secondary border-secondary -top-1.5 border shadow-xl;
94
94
  }
95
95
  .minimal thumb.sliding::before {
96
96
  content: '';
97
- @apply absolute left-0 top-0 right-0 bottom-0 bg-secondary-400 opacity-30 rounded-full;
97
+ @apply bg-secondary-400 absolute bottom-0 left-0 right-0 top-0 rounded-full opacity-30;
98
98
  transform: scale(2, 2);
99
99
  }
100
100
 
101
101
  .minimal rating {
102
102
  @apply text-secondary-600 text-xl focus:outline-none;
103
103
  }
104
- .minimal rating > icon {
104
+ .minimal rating > rkt-icon {
105
105
  @apply w-8;
106
106
  }
107
- .minimal rating:focus-within icon[aria-checked='true'] {
107
+ .minimal rating:focus-within rkt-icon[aria-checked='true'] {
108
108
  @apply text-primary-600;
109
109
  }
110
110
 
111
- .minimal rating icon.hovering > i {
111
+ .minimal rating rkt-icon.hovering > i {
112
112
  @apply text-secondary-600;
113
113
  }
114
114
  /* .error,