@redseed/redseed-ui-tailwindcss 7.64.0 → 7.66.0

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.
Files changed (58) hide show
  1. package/components/activity_feed.css +1 -1
  2. package/components/badge.css +4 -4
  3. package/components/badge_group.css +8 -8
  4. package/components/breadcrumbs.css +2 -2
  5. package/components/button_group_item.css +2 -2
  6. package/components/button_slot.css +7 -7
  7. package/components/card_group.css +3 -3
  8. package/components/column_picker.css +3 -3
  9. package/components/comment.css +16 -16
  10. package/components/comments.css +1 -1
  11. package/components/drawer.css +5 -5
  12. package/components/dropdown_menu.css +1 -1
  13. package/components/dropdown_option.css +1 -1
  14. package/components/empty.css +3 -3
  15. package/components/feed_item.css +4 -4
  16. package/components/form_field_checkbox.css +1 -1
  17. package/components/form_field_combobox.css +7 -7
  18. package/components/form_field_date_range.css +9 -9
  19. package/components/form_field_radio_group.css +2 -2
  20. package/components/form_field_select.css +3 -3
  21. package/components/form_field_slot.css +5 -5
  22. package/components/form_field_text.css +2 -2
  23. package/components/form_field_textarea.css +1 -1
  24. package/components/form_field_tree_select.css +9 -9
  25. package/components/form_field_uploader.css +3 -3
  26. package/components/form_fieldset.css +5 -5
  27. package/components/form_slot.css +6 -6
  28. package/components/link_slot.css +1 -1
  29. package/components/linked_list_item.css +1 -1
  30. package/components/list.css +3 -3
  31. package/components/list_control.css +2 -2
  32. package/components/list_item.css +6 -6
  33. package/components/message_box.css +6 -6
  34. package/components/meta_info.css +1 -1
  35. package/components/metric_card.css +213 -2
  36. package/components/modal.css +8 -8
  37. package/components/pagination.css +4 -4
  38. package/components/pagination_item.css +1 -1
  39. package/components/progress_bar.css +1 -1
  40. package/components/progress_tracker.css +3 -3
  41. package/components/progress_tracker_step.css +3 -3
  42. package/components/radio_card.css +3 -3
  43. package/components/read_more.css +1 -1
  44. package/components/record_count.css +1 -1
  45. package/components/section_header.css +1 -1
  46. package/components/section_slider.css +3 -3
  47. package/components/switcher.css +3 -3
  48. package/components/switcher_item.css +2 -2
  49. package/components/tab_slider_item.css +1 -1
  50. package/components/table.css +1 -1
  51. package/components/td.css +1 -1
  52. package/components/td_user.css +1 -1
  53. package/components/th.css +4 -4
  54. package/components/toggle.css +2 -2
  55. package/components/tooltip.css +1 -1
  56. package/components/two_column_layout.css +3 -3
  57. package/package.json +1 -1
  58. package/tokens.css +18 -3
@@ -1,5 +1,5 @@
1
1
  .rsui-activity-feed {
2
- @apply flex flex-col gap-8;
2
+ @apply flex flex-col gap-space-xl;
3
3
  }
4
4
 
5
5
  .rsui-activity-feed--line > *:not(:last-child) {
@@ -5,7 +5,7 @@
5
5
  both broke across two lines inside a rounded-full chip. Every other chip-shaped
6
6
  control in the system already declares this: Pill, ButtonSlot, TabSliderItem and
7
7
  SwitcherItem. Badge was the only one that did not. */
8
- @apply inline-flex items-center justify-center gap-x-1 whitespace-nowrap;
8
+ @apply inline-flex items-center justify-center gap-x-space-xxs whitespace-nowrap;
9
9
  @apply w-fit h-fit rounded-full;
10
10
  @apply text-sm font-medium leading-4;
11
11
  }
@@ -16,15 +16,15 @@
16
16
  top and bottom. The 8 / 10 / 12 progression matches Pill, the other chip in the system.
17
17
  Vertical padding is untouched, so no badge changes height. */
18
18
  .rsui-badge--xs {
19
- @apply text-xs leading-3 px-2 py-0.5;
19
+ @apply text-xs leading-3 px-space-xs py-0.5;
20
20
  }
21
21
 
22
22
  .rsui-badge--sm {
23
- @apply px-2.5 py-1;
23
+ @apply px-2.5 py-space-xxs;
24
24
  }
25
25
 
26
26
  .rsui-badge--md {
27
- @apply px-3 py-2;
27
+ @apply px-space-sm py-space-xs;
28
28
  }
29
29
 
30
30
  .rsui-badge--secondary {
@@ -1,33 +1,33 @@
1
1
  .badge-group {
2
- @apply pl-1 pr-3 gap-x-3;
2
+ @apply pl-space-xxs pr-space-sm gap-x-space-sm;
3
3
  }
4
4
 
5
5
  .badge-group--sm {
6
- @apply pl-1 py-0.5 pr-2 gap-x-2 text-sm leading-4;
6
+ @apply pl-space-xxs py-0.5 pr-space-xs gap-x-space-xs text-sm leading-4;
7
7
  }
8
8
 
9
9
  .badge-group--lg {
10
- @apply pl-2 pr-4 gap-x-4;
10
+ @apply pl-space-xs pr-space-md gap-x-space-md;
11
11
  }
12
12
 
13
13
  .badge-group--badge-end {
14
- @apply pl-3 pr-1;
14
+ @apply pl-space-sm pr-space-xxs;
15
15
  }
16
16
 
17
17
  .badge-group--sm.badge-group--badge-end {
18
- @apply pl-2 pr-1;
18
+ @apply pl-space-xs pr-space-xxs;
19
19
  }
20
20
 
21
21
  .badge-group--lg.badge-group--badge-end {
22
- @apply pl-4 pr-2;
22
+ @apply pl-space-md pr-space-xs;
23
23
  }
24
24
 
25
25
  .badge-group--no-text {
26
- @apply px-1;
26
+ @apply px-space-xxs;
27
27
  }
28
28
 
29
29
  .badge-group--no-badge {
30
- @apply px-2;
30
+ @apply px-space-xs;
31
31
  }
32
32
 
33
33
  .badge-group--badge-end .badge-group__badge {
@@ -1,9 +1,9 @@
1
1
  .rsui-breadcrumbs__list {
2
- @apply flex flex-wrap items-center gap-x-2 gap-y-2 list-none m-0 p-0;
2
+ @apply flex flex-wrap items-center gap-x-space-xs gap-y-space-xs list-none m-0 p-0;
3
3
  }
4
4
 
5
5
  .rsui-breadcrumbs__item {
6
- @apply relative select-none pr-4 last:pr-0 last:after:hidden;
6
+ @apply relative select-none pr-space-md last:pr-0 last:after:hidden;
7
7
  @apply text-sm text-text-secondary leading-6;
8
8
  @apply after:absolute after:right-0.5 after:content-['\007C'];
9
9
  @apply after:w-0.5 after:h-full after:text-text-disabled;
@@ -1,6 +1,6 @@
1
1
  .rsui-button-group-item {
2
2
  /* default control */
3
- @apply inline-flex justify-center items-center select-none outline-hidden p-2 font-semibold text-sm transition cursor-pointer;
3
+ @apply inline-flex justify-center items-center select-none outline-hidden p-space-xs font-semibold text-sm transition cursor-pointer;
4
4
 
5
5
  /* default shape */
6
6
  @apply first:rounded-l-lg last:rounded-r-lg border-l border-r border-y ring-0;
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .rsui-button-group-item__label {
34
- @apply gap-x-2 px-1 inline-flex items-center;
34
+ @apply gap-x-space-xs px-space-xxs inline-flex items-center;
35
35
  }
36
36
 
37
37
  .rsui-button-group-item svg {
@@ -59,7 +59,7 @@
59
59
  unchanged (py untouched); only the button's width grows. --xs-icon keeps its own p-1.5
60
60
  because a square icon button is correct at that size. */
61
61
  .rsui-button-slot--xs {
62
- @apply text-sm px-2.5 py-1.5 gap-1;
62
+ @apply text-sm px-2.5 py-1.5 gap-space-xxs;
63
63
  }
64
64
 
65
65
  /* modifier xs size with icon */
@@ -69,12 +69,12 @@
69
69
 
70
70
  /* modifier sm size */
71
71
  .rsui-button-slot--sm {
72
- @apply text-sm px-3 py-2 gap-1;
72
+ @apply text-sm px-space-sm py-space-xs gap-space-xxs;
73
73
  }
74
74
 
75
75
  /* modifier sm size with icon */
76
76
  .rsui-button-slot--sm-icon {
77
- @apply p-2;
77
+ @apply p-space-xs;
78
78
  }
79
79
 
80
80
  /* modifier md size */
@@ -89,17 +89,17 @@
89
89
 
90
90
  /* modifier lg size */
91
91
  .rsui-button-slot--lg {
92
- @apply text-base px-4 py-2.5;
92
+ @apply text-base px-space-md py-2.5;
93
93
  }
94
94
 
95
95
  /* modifier lg size with icon */
96
96
  .rsui-button-slot--lg-icon {
97
- @apply p-3;
97
+ @apply p-space-sm;
98
98
  }
99
99
 
100
100
  /* modifier xl size */
101
101
  .rsui-button-slot--xl {
102
- @apply text-base leading-6 px-4.5 py-3;
102
+ @apply text-base leading-6 px-4.5 py-space-sm;
103
103
  }
104
104
 
105
105
  /* modifier xl size with icon */
@@ -109,7 +109,7 @@
109
109
 
110
110
  /* modifier 2xl size */
111
111
  .rsui-button-slot--2xl {
112
- @apply text-lg leading-7 px-5 py-4;
112
+ @apply text-lg leading-7 px-5 py-space-md;
113
113
 
114
114
  /* 2xl size icon */
115
115
  & svg {
@@ -51,16 +51,16 @@
51
51
 
52
52
  /* Reorderable: add padding to cards to make room for the drag handle */
53
53
  .rsui-card-group--handle-left .rsui-card-group__cards > * {
54
- @apply pl-8;
54
+ @apply pl-space-xl;
55
55
  }
56
56
 
57
57
  .rsui-card-group--handle-right .rsui-card-group__cards > * {
58
- @apply pr-8;
58
+ @apply pr-space-xl;
59
59
  }
60
60
 
61
61
  /* Reorderable: drag handle and drag states */
62
62
  .rsui-card-group__drag-handle {
63
- @apply absolute p-2 rounded cursor-grab text-grey-400 hover:text-grey-600 transition-colors z-10;
63
+ @apply absolute p-space-xs rounded cursor-grab text-grey-400 hover:text-grey-600 transition-colors z-10;
64
64
 
65
65
  /* touch-action: none so a touch/pen drag on the handle reorders instead of
66
66
  scrolling the page; select-none stops the grab selecting handle text.
@@ -10,15 +10,15 @@
10
10
  }
11
11
 
12
12
  .rsui-column-picker__count {
13
- @apply inline-flex items-center px-1.5 ml-1 text-xs rounded-md bg-background-disabled text-text-secondary;
13
+ @apply inline-flex items-center px-1.5 ml-space-xxs text-xs rounded-md bg-background-disabled text-text-secondary;
14
14
  }
15
15
 
16
16
  .rsui-column-picker__list {
17
- @apply flex flex-col p-1 min-w-44;
17
+ @apply flex flex-col p-space-xxs min-w-44;
18
18
  }
19
19
 
20
20
  .rsui-column-picker__item {
21
- @apply flex items-center px-2 py-1.5 rounded-md cursor-pointer text-sm text-text-primary;
21
+ @apply flex items-center px-space-xs py-1.5 rounded-md cursor-pointer text-sm text-text-primary;
22
22
  @apply hover:bg-background-secondary;
23
23
  @apply focus-visible:bg-background-secondary focus-visible:outline-none;
24
24
  }
@@ -4,22 +4,22 @@
4
4
  }
5
5
 
6
6
  .rsui-comment--owned {
7
- @apply pl-8 w-full;
7
+ @apply pl-space-xl w-full;
8
8
  }
9
9
 
10
10
  .rsui-comment--private {
11
- @apply pl-8 w-full;
11
+ @apply pl-space-xl w-full;
12
12
  }
13
13
 
14
14
  .rsui-comment--no-photo {
15
- @apply pl-8;
15
+ @apply pl-space-xl;
16
16
  }
17
17
 
18
18
  .rsui-comment__header {
19
- @apply flex flex-row items-center gap-2;
19
+ @apply flex flex-row items-center gap-space-xs;
20
20
 
21
21
  /* Add padding bottom to the header when container is at least medium size */
22
- @apply @md/comment:pb-1;
22
+ @apply @md/comment:pb-space-xxs;
23
23
  }
24
24
 
25
25
  .rsui-comment__header--allow-actions {
@@ -27,21 +27,21 @@
27
27
  }
28
28
 
29
29
  .rsui-comment__header-start {
30
- @apply flex-1 flex flex-col gap-y-1 gap-x-2;
30
+ @apply flex-1 flex flex-col gap-y-space-xxs gap-x-space-xs;
31
31
 
32
32
  /* Flex the header start when container is at least medium size */
33
33
  @apply @md/comment:flex-row;
34
34
  }
35
35
 
36
36
  .rsui-comment__header-end {
37
- @apply shrink-0 hidden flex-row items-center gap-2 ml-auto;
37
+ @apply shrink-0 hidden flex-row items-center gap-space-xs ml-auto;
38
38
 
39
39
  /* Show the header end when container is at least medium size */
40
40
  @apply @md/comment:flex;
41
41
  }
42
42
 
43
43
  .rsui-comment__author {
44
- @apply flex flex-row gap-2;
44
+ @apply flex flex-row gap-space-xs;
45
45
  }
46
46
 
47
47
  .rsui-comment__author-photo {
@@ -60,7 +60,7 @@
60
60
  }
61
61
 
62
62
  .rsui-comment__meta {
63
- @apply shrink-0 flex flex-row items-center gap-2 ml-8;
63
+ @apply shrink-0 flex flex-row items-center gap-space-xs ml-space-xl;
64
64
 
65
65
  /* Remove the margin from the meta when container is at least medium size */
66
66
  @apply @md/comment:ml-0;
@@ -74,24 +74,24 @@
74
74
  }
75
75
 
76
76
  .rsui-comment__actions {
77
- @apply flex flex-row items-center gap-1;
77
+ @apply flex flex-row items-center gap-space-xxs;
78
78
  }
79
79
 
80
80
  .rsui-comment__body {
81
81
  /* 14px vertical, matching the row rhythm ListItem uses — a comment is a row of prose
82
82
  and read tight against its neighbour at 12px. */
83
- @apply py-3.5 px-4 rounded-xl border;
84
- @apply rounded-tl-none ml-8;
83
+ @apply py-3.5 px-space-md rounded-xl border;
84
+ @apply rounded-tl-none ml-space-xl;
85
85
  @apply text-text-primary bg-background-primary;
86
86
  @apply border-border-primary;
87
87
  }
88
88
 
89
89
  .rsui-comment__body-badge {
90
- @apply flex flex-row flex-wrap items-center gap-1 mb-2;
90
+ @apply flex flex-row flex-wrap items-center gap-space-xxs mb-space-xs;
91
91
  }
92
92
 
93
93
  .rsui-comment__body-link {
94
- @apply mt-2 flex justify-end;
94
+ @apply mt-space-xs flex justify-end;
95
95
  }
96
96
 
97
97
  .rsui-comment__body--owned {
@@ -111,12 +111,12 @@
111
111
  }
112
112
 
113
113
  .rsui-comment__footer {
114
- @apply flex flex-row items-center justify-between gap-2;
114
+ @apply flex flex-row items-center justify-between gap-space-xs;
115
115
 
116
116
  /* Hide the footer when container is at least medium size */
117
117
  @apply @md/comment:hidden;
118
118
  }
119
119
 
120
120
  .rsui-comment__footer-end {
121
- @apply shrink-0 flex flex-row items-center gap-2 ml-auto;
121
+ @apply shrink-0 flex flex-row items-center gap-space-xs ml-auto;
122
122
  }
@@ -1,4 +1,4 @@
1
1
  .rsui-comments {
2
2
  @apply @container/comments;
3
- @apply flex flex-col gap-y-3 w-full;
3
+ @apply flex flex-col gap-y-space-sm w-full;
4
4
  }
@@ -84,7 +84,7 @@
84
84
  }
85
85
 
86
86
  .rsui-drawer__header--padded {
87
- @apply p-4;
87
+ @apply p-space-md;
88
88
  padding-top: max(1rem, env(safe-area-inset-top));
89
89
  }
90
90
 
@@ -95,7 +95,7 @@
95
95
  }
96
96
 
97
97
  .rsui-drawer__body--padded {
98
- @apply p-4;
98
+ @apply p-space-md;
99
99
  }
100
100
 
101
101
  .rsui-drawer__body::-webkit-scrollbar {
@@ -103,13 +103,13 @@
103
103
  }
104
104
 
105
105
  .rsui-drawer__footer {
106
- @apply shrink-0 p-0 bg-background-secondary flex flex-col items-stretch gap-y-2;
107
- @apply sm:flex-row sm:items-center sm:justify-end sm:gap-x-2 sm:gap-y-0;
106
+ @apply shrink-0 p-0 bg-background-secondary flex flex-col items-stretch gap-y-space-xs;
107
+ @apply sm:flex-row sm:items-center sm:justify-end sm:gap-x-space-xs sm:gap-y-0;
108
108
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
109
109
  }
110
110
 
111
111
  .rsui-drawer__footer--padded {
112
- @apply p-4;
112
+ @apply p-space-md;
113
113
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
114
114
  }
115
115
 
@@ -31,7 +31,7 @@
31
31
  }
32
32
 
33
33
  .rsui-dropdown-menu__container {
34
- @apply hidden absolute z-50 mt-2 p-2 origin-top;
34
+ @apply hidden absolute z-50 mt-space-xs p-space-xs origin-top;
35
35
  @apply rounded-xl shadow-full-light bg-background-primary;
36
36
  @apply flex flex-col space-y-2;
37
37
  @apply w-60 sm:w-72;
@@ -1,5 +1,5 @@
1
1
  .rsui-dropdown-option {
2
- @apply cursor-pointer px-2 py-3 sm:p-3 bg-background-primary rounded-lg text-text-primary transition;
2
+ @apply cursor-pointer px-space-xs py-space-sm sm:p-space-sm bg-background-primary rounded-lg text-text-primary transition;
3
3
  @apply text-sm sm:text-base;
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;
@@ -1,6 +1,6 @@
1
1
  .rsui-empty {
2
2
  @apply w-full flex flex-col items-center justify-center gap-5;
3
- @apply px-3 py-4 rounded-xl text-text-primary;
3
+ @apply px-space-sm py-space-md rounded-xl text-text-primary;
4
4
  }
5
5
 
6
6
  .rsui-empty__image {
@@ -12,9 +12,9 @@
12
12
  }
13
13
 
14
14
  .rsui-empty__description {
15
- @apply text-sm text-center *:mb-2;
15
+ @apply text-sm text-center *:mb-space-xs;
16
16
  }
17
17
 
18
18
  .rsui-empty__action {
19
- @apply w-full flex flex-col items-center justify-center gap-4;
19
+ @apply w-full flex flex-col items-center justify-center gap-space-md;
20
20
  }
@@ -1,5 +1,5 @@
1
1
  .rsui-feed-item {
2
- @apply relative flex flex-nowrap gap-3 border border-transparent rounded-lg;
2
+ @apply relative flex flex-nowrap gap-space-sm border border-transparent rounded-lg;
3
3
  }
4
4
 
5
5
  .rsui-feed-item--clickable {
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .rsui-feed-item--padded {
13
- @apply p-2;
13
+ @apply p-space-xs;
14
14
  }
15
15
 
16
16
  .rsui-feed-item__avatar {
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  .rsui-feed-item__body {
41
- @apply flex-1 flex flex-col gap-3;
41
+ @apply flex-1 flex flex-col gap-space-sm;
42
42
  }
43
43
 
44
44
  .rsui-feed-item__header {
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  .rsui-feed-item__heading {
49
- @apply flex flex-wrap items-center gap-x-2;
49
+ @apply flex flex-wrap items-center gap-x-space-xs;
50
50
  }
51
51
 
52
52
  .rsui-feed-item__heading-text {
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .rsui-form-field-checkbox__label {
6
- @apply ml-2 font-normal leading-6;
6
+ @apply ml-space-xs font-normal leading-6;
7
7
  }
8
8
 
9
9
  .rsui-form-field-checkbox__check {
@@ -34,11 +34,11 @@
34
34
 
35
35
  .rsui-form-field-combobox__prefix,
36
36
  .rsui-form-field-combobox__suffix {
37
- @apply flex items-center justify-center px-4 select-none bg-transparent;
37
+ @apply flex items-center justify-center px-space-md select-none bg-transparent;
38
38
  }
39
39
 
40
40
  .rsui-form-field-combobox__placeholder {
41
- @apply absolute inset-0 flex items-center px-4 pr-12 pointer-events-none;
41
+ @apply absolute inset-0 flex items-center px-space-md pr-space-2xl pointer-events-none;
42
42
  @apply text-text-secondary select-none;
43
43
  }
44
44
 
@@ -57,7 +57,7 @@
57
57
 
58
58
  .rsui-form-field-combobox__options {
59
59
  @apply hidden absolute top-0 w-full z-50;
60
- @apply bg-background-primary p-2 mt-2 rounded-lg shadow-full-light;
60
+ @apply bg-background-primary p-space-xs mt-space-xs rounded-lg shadow-full-light;
61
61
  @apply max-h-[80vh] sm:max-h-[60vh] overflow-y-auto;
62
62
  }
63
63
  .rsui-form-field-combobox__options--open {
@@ -65,14 +65,14 @@
65
65
  }
66
66
 
67
67
  .rsui-form-field-combobox__group-header {
68
- @apply px-4 pt-3 pb-1 text-xs font-semibold uppercase tracking-wider text-text-tertiary select-none;
68
+ @apply px-space-md pt-space-sm pb-space-xxs text-xs font-semibold uppercase tracking-wider text-text-tertiary select-none;
69
69
  }
70
70
  .rsui-form-field-combobox__group-header:not(:first-child) {
71
- @apply border-t border-border-secondary mt-1;
71
+ @apply border-t border-border-secondary mt-space-xxs;
72
72
  }
73
73
 
74
74
  .rsui-form-field-combobox__option {
75
- @apply flex flex-nowrap items-center justify-between cursor-pointer px-4 py-3 rounded-lg;
75
+ @apply flex flex-nowrap items-center justify-between cursor-pointer px-space-md py-space-sm rounded-lg;
76
76
  @apply bg-background-primary hover:bg-background-secondary text-text-primary transition;
77
77
  }
78
78
  .rsui-form-field-combobox__option--highlighted {
@@ -107,7 +107,7 @@
107
107
 
108
108
  .rsui-form-field-combobox input[type='text'] {
109
109
  @apply flex-1;
110
- @apply text-base text-text-primary transition py-3 px-4 pr-12 outline-hidden focus:outline-hidden;
110
+ @apply text-base text-text-primary transition py-space-sm px-space-md pr-space-2xl outline-hidden focus:outline-hidden;
111
111
  @apply bg-background-primary placeholder-text-secondary;
112
112
  @apply disabled:text-text-disabled disabled:bg-background-disabled disabled:border-border-disabled disabled:ring-0;
113
113
  }
@@ -24,7 +24,7 @@
24
24
 
25
25
  .rsui-form-field-date-range__trigger {
26
26
  @apply flex-1 flex items-center text-left cursor-pointer;
27
- @apply text-base text-text-primary transition py-3 px-3 xs:px-4 pr-12 outline-hidden focus:outline-hidden;
27
+ @apply text-base text-text-primary transition py-space-sm px-space-sm xs:px-space-md pr-space-2xl outline-hidden focus:outline-hidden;
28
28
  @apply bg-background-primary;
29
29
  @apply disabled:text-text-disabled disabled:bg-background-disabled disabled:cursor-not-allowed;
30
30
  }
@@ -48,8 +48,8 @@
48
48
 
49
49
  .rsui-form-field-date-range__popover {
50
50
  @apply hidden absolute top-0 z-50;
51
- @apply bg-background-primary p-4 mt-2 rounded-lg shadow-full-light;
52
- @apply flex flex-col sm:flex-row gap-4;
51
+ @apply bg-background-primary p-space-md mt-space-xs rounded-lg shadow-full-light;
52
+ @apply flex flex-col sm:flex-row gap-space-md;
53
53
  @apply max-h-[80vh] overflow-y-auto;
54
54
  }
55
55
 
@@ -60,12 +60,12 @@
60
60
  /* The preset rail sits inside the popover (MUI's shortcuts placement) rather
61
61
  than above the field, so the control stays one control. */
62
62
  .rsui-form-field-date-range__presets {
63
- @apply flex flex-row sm:flex-col flex-wrap gap-1 shrink-0;
64
- @apply sm:border-r sm:border-border-secondary sm:pr-4;
63
+ @apply flex flex-row sm:flex-col flex-wrap gap-space-xxs shrink-0;
64
+ @apply sm:border-r sm:border-border-secondary sm:pr-space-md;
65
65
  }
66
66
 
67
67
  .rsui-form-field-date-range__preset {
68
- @apply text-left text-sm whitespace-nowrap px-3 py-2 rounded-lg cursor-pointer transition;
68
+ @apply text-left text-sm whitespace-nowrap px-space-sm py-space-xs rounded-lg cursor-pointer transition;
69
69
  @apply text-text-primary hover:bg-background-secondary;
70
70
  @apply focus-visible:ring-2 focus-visible:ring-border-primary focus-visible:ring-inset outline-hidden;
71
71
  @apply disabled:text-text-disabled disabled:hover:bg-transparent disabled:cursor-not-allowed;
@@ -76,7 +76,7 @@
76
76
  }
77
77
 
78
78
  .rsui-form-field-date-range__calendars {
79
- @apply relative flex flex-col gap-2;
79
+ @apply relative flex flex-col gap-space-xs;
80
80
  }
81
81
 
82
82
  .rsui-form-field-date-range__nav {
@@ -94,11 +94,11 @@
94
94
  }
95
95
 
96
96
  .rsui-form-field-date-range__months {
97
- @apply flex flex-col sm:flex-row gap-6;
97
+ @apply flex flex-col sm:flex-row gap-space-lg;
98
98
  }
99
99
 
100
100
  .rsui-form-field-date-range__month {
101
- @apply flex flex-col gap-2;
101
+ @apply flex flex-col gap-space-xs;
102
102
  }
103
103
 
104
104
  .rsui-form-field-date-range__caption {
@@ -3,7 +3,7 @@
3
3
  }
4
4
 
5
5
  .rsui-form-field-radio-group__items {
6
- @apply flex flex-wrap items-center gap-x-8 gap-y-2;
6
+ @apply flex flex-wrap items-center gap-x-space-xl gap-y-space-xs;
7
7
  }
8
8
 
9
9
  .rsui-form-field-radio-group__items--stacked {
@@ -41,7 +41,7 @@
41
41
  }
42
42
 
43
43
  .rsui-form-field-radio-group__item {
44
- @apply relative flex items-center gap-x-2 cursor-pointer;
44
+ @apply relative flex items-center gap-x-space-xs cursor-pointer;
45
45
  }
46
46
 
47
47
  .rsui-form-field-radio-group__item--disabled {
@@ -26,7 +26,7 @@
26
26
 
27
27
  .rsui-form-field-select__options {
28
28
  @apply hidden absolute top-0 z-50;
29
- @apply bg-background-primary p-2 mt-2 rounded-lg shadow-full-light;
29
+ @apply bg-background-primary p-space-xs mt-space-xs rounded-lg shadow-full-light;
30
30
  @apply overflow-y-auto overflow-x-hidden;
31
31
  }
32
32
  .rsui-form-field-select__options--open {
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .rsui-form-field-select__option {
37
- @apply flex flex-nowrap items-center justify-between cursor-pointer px-4 py-3 rounded-lg;
37
+ @apply flex flex-nowrap items-center justify-between cursor-pointer px-space-md py-space-sm rounded-lg;
38
38
  @apply bg-background-primary hover:bg-background-secondary text-text-primary transition;
39
39
  }
40
40
  .rsui-form-field-select__option--disabled {
@@ -82,7 +82,7 @@
82
82
  .rsui-form-field-select__trigger,
83
83
  .rsui-form-field-select--mobile select {
84
84
  @apply block w-full min-w-0 border ring-0 bg-none cursor-pointer appearance-none transition;
85
- @apply py-3 pl-5 pr-14 truncate;
85
+ @apply py-space-sm pl-5 pr-14 truncate;
86
86
  @apply text-base rounded-lg outline-hidden focus:outline-hidden;
87
87
  @apply bg-background-primary text-text-primary placeholder-text-secondary border-border-primary;
88
88
  @apply focus:border-border-primary;
@@ -1,5 +1,5 @@
1
1
  .rsui-form-field-slot {
2
- @apply flex flex-col gap-y-1 border-0 bg-transparent p-0;
2
+ @apply flex flex-col gap-y-space-xxs border-0 bg-transparent p-0;
3
3
  }
4
4
 
5
5
  .rsui-form-field-slot.rsui-form-field-radio-group {
@@ -7,15 +7,15 @@
7
7
  }
8
8
 
9
9
  .rsui-form-field-slot--compact {
10
- @apply flex-row justify-between gap-x-2;
10
+ @apply flex-row justify-between gap-x-space-xs;
11
11
  }
12
12
 
13
13
  .rsui-form-field-slot--compact .rsui-form-field-slot__label {
14
- @apply pt-3 whitespace-nowrap;
14
+ @apply pt-space-sm whitespace-nowrap;
15
15
  }
16
16
 
17
17
  .rsui-form-field-slot__asterisk {
18
- @apply text-text-error ml-1;
18
+ @apply text-text-error ml-space-xxs;
19
19
  }
20
20
 
21
21
  .rsui-form-field-slot__label label {
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  .rsui-form-field-slot__field {
30
- @apply shrink-0 flex flex-col gap-y-1;
30
+ @apply shrink-0 flex flex-col gap-y-space-xxs;
31
31
  }
32
32
 
33
33
  .rsui-form-field-slot__help {
@@ -15,7 +15,7 @@
15
15
 
16
16
  .rsui-form-field-text__prefix,
17
17
  .rsui-form-field-text__suffix {
18
- @apply flex items-center justify-center px-2 xs:px-4 select-none bg-transparent;
18
+ @apply flex items-center justify-center px-space-xs xs:px-space-md select-none bg-transparent;
19
19
  }
20
20
 
21
21
  .rsui-form-field-text input[type='date'],
@@ -31,7 +31,7 @@
31
31
  .rsui-form-field-text input[type='url'],
32
32
  .rsui-form-field-text input[type='week'] {
33
33
  @apply flex-1;
34
- @apply text-base text-text-primary transition py-3 px-3 xs:px-4 outline-hidden focus:outline-hidden;
34
+ @apply text-base text-text-primary transition py-space-sm px-space-sm xs:px-space-md outline-hidden focus:outline-hidden;
35
35
  @apply bg-background-primary placeholder-text-secondary;
36
36
  @apply disabled:text-text-disabled disabled:bg-background-disabled disabled:border-border-disabled disabled:ring-0;
37
37
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  .rsui-form-field-textarea textarea {
6
6
  @apply w-full border rounded-xl ring-0 text-base transition resize-none;
7
- @apply py-3 px-4 outline-hidden focus:outline-hidden;
7
+ @apply py-space-sm px-space-md 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
10
  @apply focus-visible:ring-2 focus-visible:ring-border-primary focus-visible:ring-offset-2;