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