@redseed/redseed-ui-tailwindcss 7.20.4 → 7.21.1
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/components/breadcrumbs.css +6 -2
- package/components/button_card.css +1 -1
- package/components/button_group_item.css +5 -2
- package/components/button_slot.css +10 -0
- package/components/card_group.css +4 -1
- package/components/card_header.css +1 -0
- package/components/dropdown_option.css +3 -0
- package/components/feed_item.css +7 -0
- package/components/form_field_checkbox.css +2 -2
- package/components/form_field_combobox.css +5 -0
- package/components/form_field_password.css +6 -1
- package/components/form_field_radio_group.css +1 -1
- package/components/form_field_select.css +4 -0
- package/components/form_field_text.css +1 -0
- package/components/form_field_textarea.css +1 -0
- package/components/form_field_uploader.css +1 -0
- package/components/link_slot.css +1 -1
- package/components/linked_list_item.css +4 -0
- package/components/list_item.css +3 -0
- package/components/pagination_item.css +3 -0
- package/components/progress_tracker_step.css +1 -0
- package/components/th.css +1 -0
- package/components/toggle.css +1 -1
- package/components/tooltip.css +1 -1
- package/components/tr.css +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
.rsui-
|
|
2
|
-
@apply flex flex-wrap items-center gap-x-2 gap-y-2;
|
|
1
|
+
.rsui-breadcrumbs__list {
|
|
2
|
+
@apply flex flex-wrap items-center gap-x-2 gap-y-2 list-none m-0 p-0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.rsui-breadcrumbs__item {
|
|
@@ -12,3 +12,7 @@
|
|
|
12
12
|
.rsui-breadcrumbs__item--action {
|
|
13
13
|
@apply cursor-pointer hover:text-text-primary transition-colors duration-200;
|
|
14
14
|
}
|
|
15
|
+
|
|
16
|
+
.rsui-breadcrumbs__item--action span {
|
|
17
|
+
@apply rounded focus-visible:ring-offset-2 focus-visible:ring-2 focus-visible:ring-border-primary;
|
|
18
|
+
}
|
|
@@ -3,19 +3,22 @@
|
|
|
3
3
|
@apply inline-flex justify-center items-center select-none outline-hidden p-2 font-semibold text-sm transition cursor-pointer;
|
|
4
4
|
|
|
5
5
|
/* default shape */
|
|
6
|
-
@apply first:rounded-l-lg last:rounded-r-lg
|
|
6
|
+
@apply first:rounded-l-lg last:rounded-r-lg border-l border-r border-y ring-0;
|
|
7
7
|
|
|
8
8
|
/* default colors */
|
|
9
9
|
@apply text-button-secondary bg-background-primary border-button-secondary;
|
|
10
|
+
@apply border-l-transparent first:border-l-button-secondary;
|
|
10
11
|
|
|
11
12
|
/* default hover state */
|
|
12
13
|
@apply hover:text-button-secondary-hover hover:bg-background-primary hover:border-button-secondary-hover;
|
|
14
|
+
@apply hover:border-l-transparent first:hover:border-l-button-secondary-hover;
|
|
13
15
|
|
|
14
16
|
/* default focus state */
|
|
15
|
-
@apply focus-visible:ring-button-secondary focus-visible:border-button-secondary;
|
|
17
|
+
@apply focus-visible:relative focus-visible:z-10 focus-visible:border-l focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-button-secondary focus-visible:border-button-secondary;
|
|
16
18
|
|
|
17
19
|
/* default active state */
|
|
18
20
|
@apply active:bg-background-primary active:border-button-secondary-active;
|
|
21
|
+
@apply active:border-l-transparent first:active:border-l-button-secondary-active;
|
|
19
22
|
|
|
20
23
|
/* default disabled state */
|
|
21
24
|
@apply disabled:bg-button-disabled disabled:text-text-disabled;
|
|
@@ -57,11 +57,21 @@
|
|
|
57
57
|
@apply text-sm px-1.5 py-1.5 gap-1;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/* modifier xs size with icon */
|
|
61
|
+
.rsui-button-slot--xs-icon {
|
|
62
|
+
@apply p-1.5;
|
|
63
|
+
}
|
|
64
|
+
|
|
60
65
|
/* modifier sm size */
|
|
61
66
|
.rsui-button-slot--sm {
|
|
62
67
|
@apply text-sm px-3 py-2 gap-1;
|
|
63
68
|
}
|
|
64
69
|
|
|
70
|
+
/* modifier sm size with icon */
|
|
71
|
+
.rsui-button-slot--sm-icon {
|
|
72
|
+
@apply p-2;
|
|
73
|
+
}
|
|
74
|
+
|
|
65
75
|
/* modifier md size */
|
|
66
76
|
.rsui-button-slot--md {
|
|
67
77
|
@apply text-sm leading-5 px-3.5 py-2.5;
|
|
@@ -51,7 +51,10 @@
|
|
|
51
51
|
|
|
52
52
|
/* Reorderable: drag handle and drag states */
|
|
53
53
|
.rsui-card-group__drag-handle {
|
|
54
|
-
@apply absolute right-2 p-
|
|
54
|
+
@apply absolute right-2 p-2 rounded cursor-grab text-grey-400 hover:text-grey-600 transition-colors z-10;
|
|
55
|
+
|
|
56
|
+
/* focus state */
|
|
57
|
+
@apply focus-visible:ring-offset-2 focus-visible:ring-2 focus-visible:ring-border-primary;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
.rsui-card-group__drag-handle--top {
|
|
@@ -4,4 +4,7 @@
|
|
|
4
4
|
@apply w-full inline-flex items-center whitespace-nowrap will-change-transform gap-1.5;
|
|
5
5
|
@apply hover:bg-background-primary-invert;
|
|
6
6
|
@apply truncate overflow-hidden;
|
|
7
|
+
|
|
8
|
+
/* focus state */
|
|
9
|
+
@apply focus-visible:bg-background-primary-invert focus-visible:outline-hidden;
|
|
7
10
|
}
|
package/components/feed_item.css
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
.rsui-feed-item--clickable {
|
|
6
6
|
@apply cursor-pointer;
|
|
7
|
+
|
|
8
|
+
/* focus state */
|
|
9
|
+
@apply focus-visible:ring-offset-2 focus-visible:ring-2 focus-visible:ring-border-primary;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
.rsui-feed-item--padded {
|
|
@@ -18,6 +21,10 @@
|
|
|
18
21
|
@apply absolute -bottom-0.5 -right-0.5 flex items-center justify-center size-4;
|
|
19
22
|
}
|
|
20
23
|
|
|
24
|
+
.rsui-feed-item__avatar-indicator-label {
|
|
25
|
+
@apply sr-only;
|
|
26
|
+
}
|
|
27
|
+
|
|
21
28
|
.rsui-feed-item__avatar-indicator-dot {
|
|
22
29
|
@apply size-4 rounded-full bg-border-primary border-2 border-background-primary;
|
|
23
30
|
}
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
.rsui-form-field-checkbox__check input[type="checkbox"] {
|
|
19
19
|
@apply appearance-none absolute inset-0 z-0 rounded-lg transition focus:outline-hidden cursor-pointer;
|
|
20
20
|
@apply w-full h-full text-text-primary border border-border-primary text-transparent bg-none;
|
|
21
|
-
@apply focus:ring-3 focus:ring-border-primary focus:border-border-primary;
|
|
21
|
+
@apply focus-visible:ring-3 focus-visible:ring-border-primary focus-visible:border-border-primary;
|
|
22
22
|
@apply invalid:border-border-error invalid:ring-0;
|
|
23
23
|
@apply disabled:text-text-disabled disabled:bg-background-disabled disabled:cursor-default;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.rsui-form-field-checkbox__check svg {
|
|
27
|
-
@apply size-full relative z-1;
|
|
27
|
+
@apply size-full relative z-1 pointer-events-none;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.rsui-form-field-checkbox .rsui-form-field-slot__label::after {
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
@apply w-full border rounded-lg ring-0;
|
|
28
28
|
@apply bg-background-primary placeholder-text-secondary border-border-primary;
|
|
29
29
|
@apply has-[:focus]:border-border-primary;
|
|
30
|
+
@apply has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-border-primary has-[:focus-visible]:ring-offset-2;
|
|
30
31
|
@apply has-[:user-invalid]:border-border-error has-[:user-invalid]:ring-0;
|
|
31
32
|
@apply has-[:disabled]:text-text-disabled has-[:disabled]:bg-background-disabled has-[:disabled]:border-border-disabled has-[:disabled]:ring-0;
|
|
32
33
|
}
|
|
@@ -100,6 +101,10 @@
|
|
|
100
101
|
@apply size-4 border-2 border-border-primary border-t-text-secondary rounded-full animate-spin;
|
|
101
102
|
}
|
|
102
103
|
|
|
104
|
+
.rsui-form-field-combobox__live-region {
|
|
105
|
+
@apply sr-only;
|
|
106
|
+
}
|
|
107
|
+
|
|
103
108
|
.rsui-form-field-combobox input[type='text'] {
|
|
104
109
|
@apply flex-1;
|
|
105
110
|
@apply text-base text-text-primary transition py-3 px-4 pr-12 outline-hidden focus:outline-hidden;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
.rsui-form-field-password__icon {
|
|
2
|
-
@apply
|
|
2
|
+
@apply min-w-6 min-h-6 flex items-center justify-center text-text-secondary;
|
|
3
|
+
@apply rounded focus-visible:ring-offset-2 focus-visible:ring-2 focus-visible:ring-border-primary;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.rsui-form-field-password__icon svg {
|
|
7
|
+
@apply size-5;
|
|
3
8
|
}
|
|
4
9
|
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@apply w-full border rounded-lg ring-0;
|
|
9
9
|
@apply bg-background-primary placeholder-text-secondary border-border-primary;
|
|
10
10
|
@apply has-[:focus]:border-border-primary;
|
|
11
|
+
@apply has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-border-primary has-[:focus-visible]:ring-offset-2;
|
|
11
12
|
@apply has-[:user-invalid]:border-border-error has-[:user-invalid]:ring-0;
|
|
12
13
|
@apply has-[:disabled]:text-text-disabled has-[:disabled]:bg-background-disabled has-[:disabled]:border-border-disabled has-[:disabled]:ring-0;
|
|
13
14
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
@apply py-3 px-4 outline-hidden focus:outline-hidden;
|
|
8
8
|
@apply text-text-primary bg-background-primary placeholder-text-secondary border-border-primary;
|
|
9
9
|
@apply focus:border-border-primary;
|
|
10
|
+
@apply focus-visible:ring-2 focus-visible:ring-border-primary focus-visible:ring-offset-2;
|
|
10
11
|
@apply invalid:border-border-error invalid:ring-0;
|
|
11
12
|
@apply disabled:text-text-disabled disabled:bg-background-disabled disabled:border-border-disabled disabled:ring-0;
|
|
12
13
|
-ms-overflow-style: none;
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
.rsui-form-field-uploader__action-icon {
|
|
47
47
|
@apply size-6 cursor-pointer text-text-secondary;
|
|
48
|
+
@apply rounded focus-visible:ring-2 focus-visible:ring-border-primary focus-visible:ring-offset-2;
|
|
48
49
|
}
|
|
49
50
|
.rsui-form-field-uploader__action-icon svg {
|
|
50
51
|
@apply size-6 stroke-2;
|
package/components/link_slot.css
CHANGED
package/components/list_item.css
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
@apply inline-flex items-center justify-center overflow-hidden select-none;
|
|
3
3
|
@apply min-w-9 w-fit h-7 p-1 rounded-lg cursor-pointer transition;
|
|
4
4
|
@apply bg-background-primary hover:bg-background-primary-invert text-text-secondary text-sm;
|
|
5
|
+
|
|
6
|
+
/* focus state */
|
|
7
|
+
@apply focus-visible:ring-offset-2 focus-visible:ring-2 focus-visible:ring-border-primary;
|
|
5
8
|
}
|
|
6
9
|
|
|
7
10
|
.rsui-pagination-item--active {
|
package/components/th.css
CHANGED
package/components/toggle.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
/* default colors */
|
|
40
40
|
@apply bg-background-tertiary-invert border-background-tertiary-invert text-transparent;
|
|
41
41
|
/* focus styles */
|
|
42
|
-
@apply focus:outline-button-primary;
|
|
42
|
+
@apply focus-visible:outline-button-primary;
|
|
43
43
|
/* checked styles */
|
|
44
44
|
@apply checked:before:translate-x-full;
|
|
45
45
|
@apply checked:bg-button-primary checked:border-button-primary;
|
package/components/tooltip.css
CHANGED
package/components/tr.css
CHANGED