@redseed/redseed-ui-tailwindcss 6.4.3 → 6.6.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.
- package/components/card_group.css +10 -10
- package/components/form_field_checkbox.css +1 -1
- package/components/form_field_radio_group.css +2 -2
- package/components/form_field_suffix.css +1 -2
- package/components/link_primary.css +1 -2
- package/components/linked_list_item.css +2 -3
- package/components/loader.css +1 -2
- package/components/progress_circle.css +27 -8
- package/components/progress_tracker_step.css +3 -4
- package/components/radio_card.css +4 -4
- package/components/section.css +2 -2
- package/components/sorting.css +0 -5
- package/components/toggle.css +29 -7
- package/package.json +3 -3
- package/tokens.css +10 -6
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
.rsui-card-group__cards {
|
|
2
|
-
@apply grid gap-
|
|
2
|
+
@apply grid gap-space-lg grid-cols-1;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.rsui-card-group--sm .rsui-card-group__cards {
|
|
6
|
-
@apply gap-
|
|
6
|
+
@apply gap-space-lg grid-cols-2;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.rsui-card-group--md .rsui-card-group__cards,
|
|
10
10
|
.rsui-card-group--lg .rsui-card-group__cards,
|
|
11
11
|
.rsui-card-group--xl .rsui-card-group__cards {
|
|
12
|
-
@apply gap-
|
|
12
|
+
@apply gap-space-lg grid-cols-3;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.rsui-card-group--2xl .rsui-card-group__cards,
|
|
16
16
|
.rsui-card-group--3xl .rsui-card-group__cards {
|
|
17
|
-
@apply gap-
|
|
17
|
+
@apply gap-space-lg grid-cols-5;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.rsui-card-group--compact .rsui-card-group__cards {
|
|
21
|
-
@apply gap-
|
|
21
|
+
@apply gap-space-lg grid-cols-1;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.rsui-card-group--compact.rsui-card-group--xs .rsui-card-group__cards {
|
|
25
|
-
@apply gap-
|
|
25
|
+
@apply gap-space-lg grid-cols-2;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.rsui-card-group--compact.rsui-card-group--sm .rsui-card-group__cards {
|
|
29
|
-
@apply gap-
|
|
29
|
+
@apply gap-space-lg grid-cols-3;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.rsui-card-group--compact.rsui-card-group--md .rsui-card-group__cards,
|
|
33
33
|
.rsui-card-group--compact.rsui-card-group--lg .rsui-card-group__cards,
|
|
34
34
|
.rsui-card-group--compact.rsui-card-group--xl .rsui-card-group__cards {
|
|
35
|
-
@apply gap-
|
|
35
|
+
@apply gap-space-lg grid-cols-4;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.rsui-card-group--compact.rsui-card-group--2xl .rsui-card-group__cards,
|
|
39
39
|
.rsui-card-group--compact.rsui-card-group--3xl .rsui-card-group__cards {
|
|
40
|
-
@apply gap-
|
|
40
|
+
@apply gap-space-lg grid-cols-6;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.rsui-card-group__pagination {
|
|
44
|
-
@apply w-full flex items-center justify-center mb-
|
|
44
|
+
@apply w-full flex items-center justify-center mb-space-lg;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/* List variant: force single-column full-width cards at all sizes */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.rsui-form-field-radio-group__item {
|
|
10
|
-
@apply relative flex items-center gap-
|
|
10
|
+
@apply relative flex items-center gap-x-2 cursor-pointer;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.rsui-form-field-radio-group__item--disabled {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.rsui-form-field-radio-group__control--active {
|
|
26
|
-
@apply bg-
|
|
26
|
+
@apply bg-background-brand-contrast border-border-primary flex items-center justify-center;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.rsui-form-field-radio-group__control--active div {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.rsui-linked-list-item--active {
|
|
15
|
-
@apply text-primary
|
|
15
|
+
@apply text-text-primary;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.rsui-linked-list-item--done {
|
|
19
|
-
@apply text-primary
|
|
19
|
+
@apply text-text-primary;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.rsui-linked-list-item__status {
|
|
@@ -38,4 +38,3 @@
|
|
|
38
38
|
.rsui-linked-list-item__body {
|
|
39
39
|
@apply font-normal text-sm text-text-secondary leading-normal;
|
|
40
40
|
}
|
|
41
|
-
|
package/components/loader.css
CHANGED
|
@@ -2,15 +2,34 @@
|
|
|
2
2
|
@apply relative m-0 p-0 bg-background-primary rounded-full before:hidden after:hidden;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.rsui-progress-circle--sm {
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
.rsui-progress-circle--sm {
|
|
6
|
+
@apply size-16 text-xs;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.rsui-progress-circle--md {
|
|
10
|
+
@apply size-20 text-sm;
|
|
11
|
+
}
|
|
8
12
|
|
|
9
|
-
.rsui-progress-circle
|
|
10
|
-
|
|
13
|
+
.rsui-progress-circle--lg {
|
|
14
|
+
@apply size-24 text-base;
|
|
15
|
+
}
|
|
11
16
|
|
|
12
|
-
.rsui-progress-
|
|
13
|
-
|
|
17
|
+
.rsui-progress-circle svg {
|
|
18
|
+
@apply w-full h-full -rotate-90 transition-all;
|
|
19
|
+
}
|
|
14
20
|
|
|
15
|
-
.rsui-progress-
|
|
21
|
+
.rsui-progress-circle svg circle {
|
|
22
|
+
stroke-linecap: round;
|
|
23
|
+
}
|
|
16
24
|
|
|
25
|
+
.rsui-progress-circle__background-circle {
|
|
26
|
+
@apply stroke-border-primary stroke-4 fill-none transition-all;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rsui-progress-circle__progress-circle {
|
|
30
|
+
@apply stroke-text-primary stroke-4 fill-none transition-all duration-0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.rsui-progress-circle__content {
|
|
34
|
+
@apply absolute inset-0 w-full h-full flex items-center justify-center;
|
|
35
|
+
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
.rsui-progress-tracker-step--active::after,
|
|
16
16
|
.rsui-progress-tracker-step--completed::after {
|
|
17
|
-
@apply bg-primary-
|
|
17
|
+
@apply bg-background-primary-contrast;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.rsui-progress-tracker-step--clickable {
|
|
@@ -27,10 +27,9 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.rsui-progress-tracker-step__indicator--completed {
|
|
30
|
-
@apply bg-primary-
|
|
30
|
+
@apply bg-background-primary-contrast border-background-primary-contrast text-text-on-color;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.rsui-progress-tracker-step__indicator--active {
|
|
34
|
-
@apply bg-primary
|
|
34
|
+
@apply bg-background-primary border-background-primary-contrast text-text-primary;
|
|
35
35
|
}
|
|
36
|
-
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
.rsui-radio-card--flexible { @apply max-w-full w-full; }
|
|
8
8
|
|
|
9
9
|
.rsui-radio-card--selected {
|
|
10
|
-
@apply focus-visible:ring-0 border-primary
|
|
10
|
+
@apply focus-visible:ring-0 border-border-primary;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.rsui-radio-card--selected::after {
|
|
14
14
|
content: '';
|
|
15
|
-
@apply absolute inset-0 rounded-md opacity-10 bg-primary-
|
|
15
|
+
@apply absolute inset-0 rounded-md opacity-10 bg-background-primary-contrast;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.rsui-radio-card--disabled {
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.rsui-radio-card__title-row--selected::after {
|
|
48
|
-
@apply border-6 border-primary
|
|
48
|
+
@apply border-6 border-text-primary;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.group-hover\/radio-card .rsui-radio-card__title-row--selected::after,
|
|
52
52
|
.group-focus-visible\/radio-card .rsui-radio-card__title-row--selected::after {
|
|
53
|
-
@apply border-primary
|
|
53
|
+
@apply border-text-primary;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.rsui-radio-card__title-row--disabled::after {
|
package/components/section.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.rsui-section {
|
|
2
|
-
@apply flex flex-col border border-solid rounded-xl p-
|
|
2
|
+
@apply flex flex-col border border-solid rounded-xl p-space-lg border-border-primary;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.rsui-section--show-gap {
|
|
6
|
-
@apply gap-y-
|
|
6
|
+
@apply gap-y-space-lg;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.rsui-section--primary {
|
package/components/sorting.css
CHANGED
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
@apply w-fit text-text-primary;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.rsui-sorting--primary {
|
|
7
|
-
@apply text-primary-foreground;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
6
|
.rsui-sorting__icon {
|
|
11
7
|
@apply size-4 transition;
|
|
12
8
|
}
|
|
@@ -14,4 +10,3 @@
|
|
|
14
10
|
.rsui-sorting__icon--desc {
|
|
15
11
|
@apply transform rotate-180;
|
|
16
12
|
}
|
|
17
|
-
|
package/components/toggle.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.rsui-toggle {
|
|
2
|
-
@apply flex flex-col
|
|
2
|
+
@apply flex flex-col gap-y-2 border-0 bg-transparent p-0;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.rsui-toggle--disabled label {
|
|
@@ -10,8 +10,18 @@
|
|
|
10
10
|
@apply cursor-not-allowed;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
.rsui-toggle--sm input {
|
|
14
|
+
@apply w-[2.25rem] h-5 px-0.5;
|
|
15
|
+
@apply before:size-4;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.rsui-toggle--md input {
|
|
19
|
+
@apply w-[2.75rem] h-6 px-0.5;
|
|
20
|
+
@apply before:size-5;
|
|
21
|
+
}
|
|
22
|
+
|
|
13
23
|
.rsui-toggle__control {
|
|
14
|
-
@apply justify-between flex items-center
|
|
24
|
+
@apply justify-between flex items-center gap-x-8;
|
|
15
25
|
}
|
|
16
26
|
|
|
17
27
|
.rsui-toggle label {
|
|
@@ -19,11 +29,23 @@
|
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
.rsui-toggle input {
|
|
22
|
-
|
|
23
|
-
@apply
|
|
24
|
-
@apply
|
|
25
|
-
|
|
26
|
-
@apply
|
|
32
|
+
/* default styles */
|
|
33
|
+
@apply appearance-none cursor-pointer transition-colors ease-in-out duration-200 ring-0;
|
|
34
|
+
@apply shrink-0 rounded-full flex items-center;
|
|
35
|
+
/* default colors */
|
|
36
|
+
@apply bg-background-tertiary border-background-tertiary text-transparent;
|
|
37
|
+
/* focus styles */
|
|
38
|
+
@apply focus:outline-button-primary;
|
|
39
|
+
/* checked styles */
|
|
40
|
+
@apply checked:before:translate-x-full;
|
|
41
|
+
@apply checked:bg-button-primary checked:border-button-primary;
|
|
42
|
+
/* disabled styles */
|
|
43
|
+
@apply disabled:pointer-events-none;
|
|
44
|
+
@apply disabled:before:bg-background-tertiary;
|
|
45
|
+
/* before pseudo-element styles */
|
|
46
|
+
@apply before:inline-block before:rounded-full before:shadow-sm;
|
|
47
|
+
@apply before:translate-x-0 before:transform before:ring-0 before:transition before:ease-in-out before:duration-200;
|
|
48
|
+
@apply before:bg-background-primary;
|
|
27
49
|
}
|
|
28
50
|
|
|
29
51
|
.rsui-toggle__help {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redseed/redseed-ui-tailwindcss",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "RedSeed UI Tailwindcss",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"style": "index.css",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"author": "",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tailwindcss/vite": "^4.1.
|
|
16
|
-
"tailwindcss": "^4.1.
|
|
15
|
+
"@tailwindcss/vite": "^4.1.16",
|
|
16
|
+
"tailwindcss": "^4.1.16"
|
|
17
17
|
}
|
|
18
18
|
}
|
package/tokens.css
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
--color-background-primary: var(--Colors-Base-white);
|
|
13
13
|
--color-background-primary-contrast: var(--Colors-Grey-800);
|
|
14
14
|
--color-background-secondary: var(--Colors-Grey-50);
|
|
15
|
+
--color-background-tertiary: var(--Colors-Grey-100);
|
|
15
16
|
--color-background-secondary-contrast: var(--Colors-Grey-800);
|
|
16
17
|
--color-background-disabled: var(--Colors-Grey-100);
|
|
17
18
|
--color-background-disabled-contrast: var(--Colors-Grey-400);
|
|
@@ -29,8 +30,8 @@
|
|
|
29
30
|
--color-background-ai-to: var(--Colors-Background-AI-2);
|
|
30
31
|
--color-background-ai-contrast: var(--Colors-RedSeed-Purple-500);
|
|
31
32
|
|
|
32
|
-
--color-border-primary: var(--Colors-Grey-
|
|
33
|
-
--color-border-secondary: var(--Colors-Grey-
|
|
33
|
+
--color-border-primary: var(--Colors-Grey-400);
|
|
34
|
+
--color-border-secondary: var(--Colors-Grey-300);
|
|
34
35
|
--color-border-disabled: var(--Colors-Grey-300);
|
|
35
36
|
--color-border-brand: var(--Colors-Brand-200);
|
|
36
37
|
--color-border-success: var(--Colors-Success-200);
|
|
@@ -55,8 +56,11 @@
|
|
|
55
56
|
--color-button-separator: var(--Colors-Grey-200);
|
|
56
57
|
--color-button-disabled: var(--Colors-Grey-300);
|
|
57
58
|
|
|
58
|
-
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
59
|
+
/* Spacing */
|
|
60
|
+
--spacing-space-xs: 0.5rem; /* 8px */
|
|
61
|
+
--spacing-space-sm: 0.75rem; /* 12px */
|
|
62
|
+
--spacing-space-md: 1rem; /* 16px */
|
|
63
|
+
--spacing-space-lg: 1.5rem; /* 24px */
|
|
64
|
+
--spacing-space-xl: 2rem; /* 32px */
|
|
65
|
+
|
|
62
66
|
}
|