@empathyco/x-design-system 0.0.2-alpha.2 → 0.0.2-alpha.20
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/dist/components/attach.css +55 -0
- package/dist/components/badge.css +18 -122
- package/dist/components/button-group.css +25 -0
- package/dist/components/button.css +277 -0
- package/dist/components/filter-facet.css +129 -0
- package/dist/components/highlight.css +9 -0
- package/dist/components/icon.css +72 -0
- package/dist/components/index.css +16 -0
- package/dist/components/input-group.css +202 -0
- package/dist/components/input.css +82 -0
- package/dist/components/picture.css +27 -0
- package/dist/components/progress-bar.css +30 -0
- package/dist/components/scroll.css +27 -0
- package/dist/components/sliding-panel.css +141 -0
- package/dist/components/suggestion-group.css +121 -0
- package/dist/components/suggestion.css +53 -0
- package/dist/components/tag.css +195 -0
- package/dist/components/typography.css +74 -0
- package/dist/demo/assets/index-CpUa8rRK.css +1 -0
- package/dist/demo/assets/index-DS7bAgX8.js +1 -0
- package/dist/demo/index.html +2 -2
- package/dist/theme.css +37 -22
- package/dist/variants.css +5 -1
- package/package.json +6 -5
- package/dist/demo/assets/index-BTAoZXit.js +0 -1
- package/dist/demo/assets/index-DJ1imPdg.css +0 -1
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* Base */
|
|
2
|
+
@utility suggestion-group {
|
|
3
|
+
@apply xds:font-family-main xds:font-regular xds:text-neutral-90;
|
|
4
|
+
@apply xds:grid xds:grid-flow-col xds:grid-cols-[auto_[last-col]] xds:auto-cols-[1fr];
|
|
5
|
+
@apply xds:items-center xds:content-center xds:justify-start;
|
|
6
|
+
@apply xds:box-border xds:cursor-pointer xds:overflow-hidden;
|
|
7
|
+
@apply xds:ps-0 xds:pe-0 xds:gap-16;
|
|
8
|
+
|
|
9
|
+
/* `@apply xds:suggestion-group-md;` can not be use here because cause circular dependency. */
|
|
10
|
+
@apply xds:min-h-32 xds:text-sm;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
@apply xds:underline;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
& .xds\:icon {
|
|
17
|
+
@apply xds:icon-offset;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
& > .xds\:suggestion {
|
|
21
|
+
@apply xds:min-h-[inherit] xds:text-inherit;
|
|
22
|
+
font-size: inherit;
|
|
23
|
+
font-weight: inherit;
|
|
24
|
+
text-decoration: inherit;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Sizes */
|
|
29
|
+
@utility suggestion-group-sm {
|
|
30
|
+
@apply xds:min-h-24 xds:text-sm;
|
|
31
|
+
}
|
|
32
|
+
@utility suggestion-group-md {
|
|
33
|
+
@apply xds:min-h-32 xds:text-sm;
|
|
34
|
+
}
|
|
35
|
+
@utility suggestion-group-lg {
|
|
36
|
+
@apply xds:min-h-48 xds:gap-24 xds:text-md;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/* Outlined */
|
|
40
|
+
@utility suggestion-group-outlined {
|
|
41
|
+
@apply xds:bg-neutral-0 xds:border-1 xds:border-neutral-90;
|
|
42
|
+
@apply xds:gap-4!;
|
|
43
|
+
|
|
44
|
+
&:hover,
|
|
45
|
+
&:hover * {
|
|
46
|
+
@apply xds:bg-neutral-10 xds:no-underline!;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
& > *:first-child:not(.xds\:suggestion-group-button) {
|
|
50
|
+
@apply xds:ms-8;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& > *:last-child:not(.xds\:suggestion-group-button) {
|
|
54
|
+
@apply xds:me-8;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.xds\:suggestion-group-lg > *:first-child:not(.xds\:suggestion-group-button) {
|
|
58
|
+
@apply xds:ms-12;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.xds\:suggestion-group-lg > *:last-child:not(.xds\:suggestion-group-button) {
|
|
62
|
+
@apply xds:me-12;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Ghost */
|
|
67
|
+
@utility suggestion-group-ghost {
|
|
68
|
+
@apply xds:suggestion-group-outlined;
|
|
69
|
+
@apply xds:bg-transparent xds:border-0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* Colors */
|
|
73
|
+
@utility suggestion-group-* {
|
|
74
|
+
color: --value(--color- * -75);
|
|
75
|
+
|
|
76
|
+
&.xds\:suggestion-group-outlined {
|
|
77
|
+
border-color: --value(--color- * -75);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Button */
|
|
82
|
+
@utility suggestion-group-button {
|
|
83
|
+
@apply xds:grid xds:grid-flow-col xds:items-baseline xds:content-center xds:justify-center;
|
|
84
|
+
@apply xds:box-border xds:cursor-pointer;
|
|
85
|
+
@apply xds:bg-transparent xds:text-current xds:min-h-[inherit] xds:aspect-square xds:max-h-full;
|
|
86
|
+
@apply xds:before:content-['|'] xds:before:w-0 xds:before:invisible;
|
|
87
|
+
|
|
88
|
+
&:hover {
|
|
89
|
+
@apply xds:scale-[1.2];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:last-child {
|
|
93
|
+
@apply xds:justify-self-end;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Button Ghost */
|
|
98
|
+
@utility suggestion-group-button-ghost {
|
|
99
|
+
&:hover {
|
|
100
|
+
@apply xds:bg-neutral-25 xds:scale-none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Button Rectangle */
|
|
105
|
+
@utility suggestion-group-button-rectangle {
|
|
106
|
+
@apply xds:ps-8 xds:pe-8 xds:aspect-auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* Button Lighter */
|
|
110
|
+
@utility suggestion-group-button-lighter {
|
|
111
|
+
&:hover {
|
|
112
|
+
@apply xds:scale-none;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Button Colors */
|
|
117
|
+
@utility suggestion-group-button-* {
|
|
118
|
+
&.xds\:suggestion-group-button-lighter:hover {
|
|
119
|
+
color: --value(--color- * -50);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* Base */
|
|
2
|
+
@utility suggestion {
|
|
3
|
+
@apply xds:font-family-main xds:font-regular xds:text-start xds:text-neutral-90;
|
|
4
|
+
@apply xds:grid xds:grid-flow-col xds:items-center xds:content-center xds:justify-start;
|
|
5
|
+
@apply xds:box-border xds:cursor-pointer;
|
|
6
|
+
|
|
7
|
+
/* `@apply xds:suggestion-md;` can not be use here because cause circular dependency. */
|
|
8
|
+
@apply xds:min-h-32 xds:gap-8 xds:text-sm;
|
|
9
|
+
|
|
10
|
+
&:hover {
|
|
11
|
+
@apply xds:underline;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
& .xds\:icon {
|
|
15
|
+
@apply xds:icon-offset;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Sizes */
|
|
20
|
+
@utility suggestion-sm {
|
|
21
|
+
@apply xds:min-h-24 xds:gap-8 xds:text-sm;
|
|
22
|
+
}
|
|
23
|
+
@utility suggestion-md {
|
|
24
|
+
@apply xds:min-h-32 xds:gap-8 xds:text-sm;
|
|
25
|
+
}
|
|
26
|
+
@utility suggestion-lg {
|
|
27
|
+
@apply xds:min-h-48 xds:gap-24 xds:text-md;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Outlined */
|
|
31
|
+
@utility suggestion-outlined {
|
|
32
|
+
@apply xds:bg-neutral-0 xds:border-1 xds:border-current;
|
|
33
|
+
@apply xds:ps-8 xds:pe-8;
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
@apply xds:bg-neutral-10 xds:no-underline;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.xds\:suggestion-lg {
|
|
40
|
+
@apply xds:ps-12 xds:pe-12;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Ghost */
|
|
45
|
+
@utility suggestion-ghost {
|
|
46
|
+
@apply xds:suggestion-outlined;
|
|
47
|
+
@apply xds:border-neutral-0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Colors */
|
|
51
|
+
@utility suggestion-* {
|
|
52
|
+
color: --value(--color- * -75);
|
|
53
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/* Base */
|
|
2
|
+
@utility tag {
|
|
3
|
+
@apply xds:flex xds:justify-center xds:items-center xds:content-center xds:flex-row xds:flex-nowrap xds:gap-8;
|
|
4
|
+
@apply xds:border-1 xds:border-solid xds:box-border;
|
|
5
|
+
@apply xds:text-neutral-75 xds:bg-neutral-0 xds:border-neutral-25;
|
|
6
|
+
@apply xds:font-family-main xds:font-regular xds:tracking-lg xds:leading-sm;
|
|
7
|
+
@apply xds:cursor-pointer;
|
|
8
|
+
@apply xds:py-0;
|
|
9
|
+
|
|
10
|
+
/* `@apply xds:tag-md;` can not be use here because cause circular dependency. */
|
|
11
|
+
@apply xds:min-h-32 xds:text-sm xds:ps-12 xds:pe-12;
|
|
12
|
+
|
|
13
|
+
@variant selected {
|
|
14
|
+
@apply xds:border-neutral-90 xds:text-neutral-90;
|
|
15
|
+
@apply xds:border-2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@variant hover-active-focus {
|
|
19
|
+
@apply xds:border-neutral-50 xds:text-neutral-90;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@variant disabled {
|
|
23
|
+
@apply xds:border-neutral-25 xds:border-1 xds:text-neutral-25;
|
|
24
|
+
@apply xds:cursor-not-allowed;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Sizes */
|
|
29
|
+
@utility tag-sm {
|
|
30
|
+
@apply xds:min-h-24 xds:text-sm xds:ps-8 xds:pe-8;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@utility tag-md {
|
|
34
|
+
@apply xds:min-h-32 xds:text-sm xds:ps-12 xds:pe-12;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@utility tag-lg {
|
|
38
|
+
@apply xds:min-h-40 xds:text-md xds:ps-16 xds:pe-16;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Outlined */
|
|
42
|
+
@utility tag-outlined {
|
|
43
|
+
@apply xds:bg-transparent xds:border-neutral-50 xds:text-neutral-50;
|
|
44
|
+
|
|
45
|
+
@variant selected {
|
|
46
|
+
@apply xds:bg-neutral-25 xds:border-neutral-90 xds:text-neutral-75 xds:border-1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@variant hover-active-focus {
|
|
50
|
+
@apply xds:border-neutral-75 xds:text-neutral-75;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@variant disabled {
|
|
54
|
+
@apply xds:bg-transparent xds:border-neutral-25 xds:border-1 xds:text-neutral-25;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Solid */
|
|
59
|
+
@utility tag-solid {
|
|
60
|
+
@apply xds:bg-neutral-10 xds:border-neutral-10 xds:text-neutral-75;
|
|
61
|
+
|
|
62
|
+
@variant selected {
|
|
63
|
+
@apply xds:bg-neutral-90 xds:border-neutral-90 xds:text-neutral-0;
|
|
64
|
+
|
|
65
|
+
@variant hover-active-focus {
|
|
66
|
+
@apply xds:bg-neutral-50 xds:border-neutral-50 xds:text-neutral-0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@variant hover-active-focus {
|
|
71
|
+
@apply xds:bg-neutral-25 xds:border-neutral-25 xds:text-neutral-75;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@variant disabled {
|
|
75
|
+
@apply xds:bg-neutral-10! xds:border-neutral-10! xds:text-neutral-25!;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Ghost */
|
|
80
|
+
@utility tag-ghost {
|
|
81
|
+
@apply xds:bg-transparent xds:border-transparent xds:text-neutral-50;
|
|
82
|
+
|
|
83
|
+
@variant selected {
|
|
84
|
+
@apply xds:border-transparent xds:text-neutral-90;
|
|
85
|
+
@apply xds:font-bold;
|
|
86
|
+
|
|
87
|
+
@variant hover-active-focus {
|
|
88
|
+
@apply xds:border-neutral-10;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@variant hover-active-focus {
|
|
93
|
+
@apply xds:bg-neutral-10 xds:border-neutral-10 xds:text-neutral-90;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@variant disabled {
|
|
97
|
+
@apply xds:bg-transparent xds:border-transparent! xds:text-neutral-25;
|
|
98
|
+
@apply xds:font-regular;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* Tight */
|
|
103
|
+
@utility tag-tight {
|
|
104
|
+
@apply xds:border-transparent xds:text-neutral-90;
|
|
105
|
+
@apply xds:ps-0 xds:pe-0;
|
|
106
|
+
|
|
107
|
+
@variant selected {
|
|
108
|
+
@apply xds:border-transparent xds:text-neutral-90;
|
|
109
|
+
@apply xds:font-bold;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@variant hover-active-focus {
|
|
113
|
+
@apply xds:border-transparent xds:text-neutral-50;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@variant disabled {
|
|
117
|
+
@apply xds:border-transparent xds:text-neutral-25;
|
|
118
|
+
@apply xds:font-regular;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Colors */
|
|
123
|
+
@utility tag-* {
|
|
124
|
+
@apply xds:text-neutral-75 xds:border-neutral-25;
|
|
125
|
+
|
|
126
|
+
@variant selected {
|
|
127
|
+
border-color: --value(--color- * -75);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@variant hover-active-focus {
|
|
131
|
+
@apply xds:text-neutral-90;
|
|
132
|
+
border-color: --value(--color- * -50);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&.xds\:tag-outlined {
|
|
136
|
+
@apply xds:text-neutral-75;
|
|
137
|
+
border-color: --value(--color- * -50);
|
|
138
|
+
|
|
139
|
+
@variant selected {
|
|
140
|
+
background-color: --value(--color- * -25);
|
|
141
|
+
border-color: --value(--color- * -75);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@variant hover-active-focus {
|
|
145
|
+
border-color: --value(--color- * -75);
|
|
146
|
+
color: --value(--color- * -75);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
&.xds\:tag-solid {
|
|
151
|
+
background-color: --value(--color- * -25);
|
|
152
|
+
border-color: --value(--color- * -25);
|
|
153
|
+
|
|
154
|
+
@variant selected {
|
|
155
|
+
background-color: --value(--color- * -75);
|
|
156
|
+
border-color: --value(--color- * -75);
|
|
157
|
+
|
|
158
|
+
@variant hover-active-focus {
|
|
159
|
+
background-color: --value(--color- * -50);
|
|
160
|
+
border-color: --value(--color- * -50);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@variant hover-active-focus {
|
|
165
|
+
background-color: --value(--color- * -25);
|
|
166
|
+
border-color: --value(--color- * -25);
|
|
167
|
+
color: --value(--color- * -75);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&.xds\:tag-ghost {
|
|
172
|
+
@apply xds:border-transparent;
|
|
173
|
+
color: --value(--color- * -75);
|
|
174
|
+
|
|
175
|
+
@variant selected {
|
|
176
|
+
color: --value(--color- * -75);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@variant hover-active-focus {
|
|
180
|
+
color: --value(--color- * -75);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&.xds\:tag-tight {
|
|
185
|
+
color: --value(--color- * -75);
|
|
186
|
+
|
|
187
|
+
@variant selected {
|
|
188
|
+
color: --value(--color- * -75);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
@variant hover-active-focus {
|
|
192
|
+
color: --value(--color- * -50);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* text1 */
|
|
2
|
+
@utility text1 {
|
|
3
|
+
@apply xds:font-family-main xds:font-regular;
|
|
4
|
+
@apply xds:text1-md;
|
|
5
|
+
}
|
|
6
|
+
@utility text1-sm {
|
|
7
|
+
@apply xds:text-xs xds:leading-lg;
|
|
8
|
+
}
|
|
9
|
+
@utility text1-md {
|
|
10
|
+
@apply xds:text-sm xds:leading-md;
|
|
11
|
+
}
|
|
12
|
+
@utility text1-lg {
|
|
13
|
+
@apply xds:text-md;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* title1 */
|
|
17
|
+
@utility title1 {
|
|
18
|
+
@apply xds:font-family-main xds:font-bold;
|
|
19
|
+
@apply xds:title1-md;
|
|
20
|
+
}
|
|
21
|
+
@utility title1-sm {
|
|
22
|
+
@apply xds:text-xl xds:leading-md;
|
|
23
|
+
}
|
|
24
|
+
@utility title1-md {
|
|
25
|
+
@apply xds:text-2xl xds:leading-sm;
|
|
26
|
+
}
|
|
27
|
+
@utility title1-lg {
|
|
28
|
+
@apply xds:text-4xl;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* title2 */
|
|
32
|
+
@utility title2 {
|
|
33
|
+
@apply xds:font-family-main xds:font-bold;
|
|
34
|
+
@apply xds:title2-md;
|
|
35
|
+
}
|
|
36
|
+
@utility title2-sm {
|
|
37
|
+
@apply xds:text-lg;
|
|
38
|
+
}
|
|
39
|
+
@utility title2-md {
|
|
40
|
+
@apply xds:text-xl xds:leading-md;
|
|
41
|
+
}
|
|
42
|
+
@utility title2-lg {
|
|
43
|
+
@apply xds:text-3xl xds:leading-sm;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* title3 */
|
|
47
|
+
@utility title3 {
|
|
48
|
+
@apply xds:font-family-main xds:font-bold;
|
|
49
|
+
@apply xds:title3-md;
|
|
50
|
+
}
|
|
51
|
+
@utility title3-sm {
|
|
52
|
+
@apply xds:text-sm;
|
|
53
|
+
}
|
|
54
|
+
@utility title3-md {
|
|
55
|
+
@apply xds:text-md xds:leading-md;
|
|
56
|
+
}
|
|
57
|
+
@utility title3-lg {
|
|
58
|
+
@apply xds:text-xl;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* title4 */
|
|
62
|
+
@utility title4 {
|
|
63
|
+
@apply xds:font-family-main xds:font-bold;
|
|
64
|
+
@apply xds:title4-md;
|
|
65
|
+
}
|
|
66
|
+
@utility title4-sm {
|
|
67
|
+
@apply xds:text-xs;
|
|
68
|
+
}
|
|
69
|
+
@utility title4-md {
|
|
70
|
+
@apply xds:text-sm xds:leading-md;
|
|
71
|
+
}
|
|
72
|
+
@utility title4-lg {
|
|
73
|
+
@apply xds:text-lg;
|
|
74
|
+
}
|