@vsn-ux/gaia-styles 0.2.0 → 0.2.2
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/all-no-reset-10pt.css +215 -6
- package/dist/all-no-reset.css +215 -6
- package/dist/all.css +215 -6
- package/dist/base.css +1 -1
- package/dist/components/avatar.css +1 -4
- package/dist/components/badge.css +1 -4
- package/dist/components/button.css +1 -4
- package/dist/components/card.css +1 -4
- package/dist/components/checkbox.css +1 -4
- package/dist/components/dropdown.css +111 -0
- package/dist/components/form-field.css +4 -4
- package/dist/components/input.css +1 -4
- package/dist/components/menu.css +1 -4
- package/dist/components/notification.css +1 -4
- package/dist/components/radio.css +4 -4
- package/dist/components/segmented-control.css +1 -4
- package/dist/components/select.css +141 -0
- package/dist/components/text-area.css +1 -4
- package/dist/components/tooltip.css +1 -4
- package/dist/components.css +215 -9
- package/package.json +1 -1
- package/src/styles/components/dropdown.css +51 -0
- package/src/styles/components/form-field.css +4 -0
- package/src/styles/components/radio.css +4 -0
- package/src/styles/components/select.css +59 -0
- package/src/styles/components.css +2 -0
package/dist/all.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.0.
|
|
1
|
+
/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */
|
|
2
2
|
:root {
|
|
3
3
|
--ga-color-blue-10: #edf4fe;
|
|
4
4
|
--ga-color-blue-40: #93bbf9;
|
|
@@ -622,10 +622,105 @@
|
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
+
.ga-dropdown {
|
|
626
|
+
display: flex;
|
|
627
|
+
min-width: calc(0.25rem * 36);
|
|
628
|
+
flex-direction: column;
|
|
629
|
+
align-items: stretch;
|
|
630
|
+
border-radius: var(--ga-radius);
|
|
631
|
+
border-style: var(--tw-border-style);
|
|
632
|
+
border-width: 1px;
|
|
633
|
+
border-color: var(--ga-color-border-primary);
|
|
634
|
+
background-color: var(--ga-color-surface-primary);
|
|
635
|
+
--tw-outline-style: none;
|
|
636
|
+
outline-style: none;
|
|
637
|
+
.ga-dropdown__item {
|
|
638
|
+
position: relative;
|
|
639
|
+
display: flex;
|
|
640
|
+
height: calc(0.25rem * 9);
|
|
641
|
+
cursor: pointer;
|
|
642
|
+
flex-direction: row;
|
|
643
|
+
align-items: center;
|
|
644
|
+
gap: calc(0.25rem * 2);
|
|
645
|
+
padding-inline: calc(0.25rem * 3);
|
|
646
|
+
padding-block: calc(0.25rem * 2);
|
|
647
|
+
text-align: left;
|
|
648
|
+
font-size: var(--ga-size-font-md);
|
|
649
|
+
line-height: var(--tw-leading, calc(var(--spacing) * 4 * 1.25));
|
|
650
|
+
letter-spacing: var(--tw-tracking, calc(var(--spacing) * 4 * -0.006));
|
|
651
|
+
--tw-leading: 1;
|
|
652
|
+
line-height: 1;
|
|
653
|
+
color: var(--ga-color-text-action);
|
|
654
|
+
&:first-child {
|
|
655
|
+
border-top-left-radius: var(--ga-radius);
|
|
656
|
+
border-top-right-radius: var(--ga-radius);
|
|
657
|
+
}
|
|
658
|
+
&:last-child {
|
|
659
|
+
border-bottom-right-radius: var(--ga-radius);
|
|
660
|
+
border-bottom-left-radius: var(--ga-radius);
|
|
661
|
+
}
|
|
662
|
+
&:focus {
|
|
663
|
+
--tw-outline-style: none;
|
|
664
|
+
outline-style: none;
|
|
665
|
+
}
|
|
666
|
+
&:hover, &:active {
|
|
667
|
+
background-color: var(--ga-color-surface-action-hover-2);
|
|
668
|
+
color: var(--ga-color-text-action-hover);
|
|
669
|
+
}
|
|
670
|
+
&.ga-dropdown__item--disabled {
|
|
671
|
+
cursor: default;
|
|
672
|
+
background-color: var(--ga-color-surface-disabled);
|
|
673
|
+
color: var(--ga-color-text-disable-selected);
|
|
674
|
+
}
|
|
675
|
+
&.ga-dropdown__item--selected {
|
|
676
|
+
background-color: var(--ga-color-surface-success);
|
|
677
|
+
--tw-font-weight: 600;
|
|
678
|
+
font-weight: 600;
|
|
679
|
+
color: var(--ga-color-text-body);
|
|
680
|
+
&.ga-dropdown__item--disabled {
|
|
681
|
+
background-color: var(--ga-color-surface-disable-selected);
|
|
682
|
+
color: var(--ga-color-text-on-action);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
&:not(:focus-within) .ga-dropdown__item.ga-dropdown__item--active, .ga-dropdown__item:focus-visible {
|
|
687
|
+
&::after {
|
|
688
|
+
position: absolute;
|
|
689
|
+
top: 2px;
|
|
690
|
+
left: 2px;
|
|
691
|
+
height: calc(100% - 4px);
|
|
692
|
+
width: calc(100% - 4px);
|
|
693
|
+
border-radius: var(--ga-radius);
|
|
694
|
+
border-style: var(--tw-border-style);
|
|
695
|
+
border-width: 2px;
|
|
696
|
+
border-color: var(--ga-color-border-focus);
|
|
697
|
+
--tw-content: '';
|
|
698
|
+
content: var(--tw-content);
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
.ga-dropdown__caption {
|
|
702
|
+
padding-inline: calc(0.25rem * 3);
|
|
703
|
+
padding-top: calc(0.25rem * 3);
|
|
704
|
+
padding-bottom: calc(0.25rem * 2);
|
|
705
|
+
font-size: var(--ga-size-font-sm);
|
|
706
|
+
line-height: var(--tw-leading, calc(var(--spacing) * 4 * 1.25));
|
|
707
|
+
letter-spacing: var(--tw-tracking, 0);
|
|
708
|
+
--tw-font-weight: 600;
|
|
709
|
+
font-weight: 600;
|
|
710
|
+
}
|
|
711
|
+
.ga-dropdown__content-spinner {
|
|
712
|
+
margin-inline: auto;
|
|
713
|
+
margin-block: calc(0.25rem * 8);
|
|
714
|
+
display: inline-flex;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
625
717
|
.ga-form-field {
|
|
626
718
|
display: flex;
|
|
627
719
|
flex-direction: column;
|
|
628
720
|
gap: calc(0.25rem * 2);
|
|
721
|
+
> * {
|
|
722
|
+
width: 100%;
|
|
723
|
+
}
|
|
629
724
|
.ga-form-field__label {
|
|
630
725
|
padding-inline: calc(0.25rem * 1);
|
|
631
726
|
font-size: var(--ga-size-font-md);
|
|
@@ -929,6 +1024,9 @@
|
|
|
929
1024
|
letter-spacing: var(--tw-tracking, calc(var(--spacing) * 4 * -0.006));
|
|
930
1025
|
--tw-leading: calc(0.25rem * 4);
|
|
931
1026
|
line-height: calc(0.25rem * 4);
|
|
1027
|
+
&:empty {
|
|
1028
|
+
display: none;
|
|
1029
|
+
}
|
|
932
1030
|
}
|
|
933
1031
|
}
|
|
934
1032
|
.ga-segmented-control {
|
|
@@ -993,6 +1091,117 @@
|
|
|
993
1091
|
}
|
|
994
1092
|
}
|
|
995
1093
|
}
|
|
1094
|
+
.ga-native-select {
|
|
1095
|
+
position: relative;
|
|
1096
|
+
select {
|
|
1097
|
+
height: calc(0.25rem * 10);
|
|
1098
|
+
appearance: none;
|
|
1099
|
+
border-radius: var(--ga-radius);
|
|
1100
|
+
border-style: var(--tw-border-style);
|
|
1101
|
+
border-width: 1px;
|
|
1102
|
+
border-color: var(--ga-color-border-primary);
|
|
1103
|
+
background-color: var(--ga-color-surface-primary);
|
|
1104
|
+
padding-block: calc(0.25rem * 2);
|
|
1105
|
+
padding-right: calc(0.25rem * 9);
|
|
1106
|
+
padding-left: calc(0.25rem * 3);
|
|
1107
|
+
font-size: var(--ga-size-font-md);
|
|
1108
|
+
line-height: var(--tw-leading, calc(var(--spacing) * 4 * 1.25));
|
|
1109
|
+
letter-spacing: var(--tw-tracking, calc(var(--spacing) * 4 * -0.006));
|
|
1110
|
+
--tw-leading: 1;
|
|
1111
|
+
line-height: 1;
|
|
1112
|
+
}
|
|
1113
|
+
.ga-native-select__arrow {
|
|
1114
|
+
pointer-events: none;
|
|
1115
|
+
position: absolute;
|
|
1116
|
+
top: calc(1/2 * 100%);
|
|
1117
|
+
right: calc(0.25rem * 2);
|
|
1118
|
+
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
1119
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
.ga-select {
|
|
1123
|
+
display: inline-flex;
|
|
1124
|
+
height: calc(0.25rem * 10);
|
|
1125
|
+
width: calc(0.25rem * 50);
|
|
1126
|
+
cursor: pointer;
|
|
1127
|
+
appearance: none;
|
|
1128
|
+
align-items: center;
|
|
1129
|
+
gap: calc(0.25rem * 2);
|
|
1130
|
+
border-radius: var(--ga-radius);
|
|
1131
|
+
border-style: var(--tw-border-style);
|
|
1132
|
+
border-width: 1px;
|
|
1133
|
+
border-color: var(--ga-color-border-primary);
|
|
1134
|
+
background-color: var(--ga-color-surface-primary);
|
|
1135
|
+
padding-block: calc(0.25rem * 2);
|
|
1136
|
+
padding-right: calc(0.25rem * 2);
|
|
1137
|
+
padding-left: calc(0.25rem * 3);
|
|
1138
|
+
text-align: left;
|
|
1139
|
+
font-size: var(--ga-size-font-md);
|
|
1140
|
+
line-height: var(--tw-leading, calc(var(--spacing) * 4 * 1.25));
|
|
1141
|
+
letter-spacing: var(--tw-tracking, calc(var(--spacing) * 4 * -0.006));
|
|
1142
|
+
--tw-leading: 1;
|
|
1143
|
+
line-height: 1;
|
|
1144
|
+
&.ga-select--expanded {
|
|
1145
|
+
border-color: var(--ga-color-border-focus);
|
|
1146
|
+
outline-style: var(--tw-outline-style);
|
|
1147
|
+
outline-width: 1px;
|
|
1148
|
+
outline-color: var(--ga-color-border-focus);
|
|
1149
|
+
}
|
|
1150
|
+
&:hover {
|
|
1151
|
+
border-color: var(--ga-color-border-action-hover);
|
|
1152
|
+
&:not(.ga-select--empty, .ga-select--disabled) {
|
|
1153
|
+
background-color: var(--ga-color-surface-action-hover-2);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
&.ga-select--disabled {
|
|
1157
|
+
cursor: not-allowed;
|
|
1158
|
+
border-color: var(--ga-color-border-primary);
|
|
1159
|
+
background-color: var(--ga-color-surface-disabled);
|
|
1160
|
+
color: var(--ga-color-text-disable-selected);
|
|
1161
|
+
}
|
|
1162
|
+
&:focus-visible {
|
|
1163
|
+
outline-style: var(--tw-outline-style);
|
|
1164
|
+
outline-width: 2px;
|
|
1165
|
+
outline-offset: 2px;
|
|
1166
|
+
outline-color: var(--ga-color-border-focus);
|
|
1167
|
+
}
|
|
1168
|
+
&.ga-select--invalid {
|
|
1169
|
+
border-color: var(--ga-color-border-error);
|
|
1170
|
+
outline-style: var(--tw-outline-style);
|
|
1171
|
+
outline-width: 1px;
|
|
1172
|
+
outline-color: var(--ga-color-border-error);
|
|
1173
|
+
&:not(.ga-select--empty) {
|
|
1174
|
+
background-color: var(--ga-color-surface-error);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
.ga-select__placeholder {
|
|
1178
|
+
min-width: calc(0.25rem * 0);
|
|
1179
|
+
flex: 1;
|
|
1180
|
+
overflow: hidden;
|
|
1181
|
+
text-overflow: ellipsis;
|
|
1182
|
+
white-space: nowrap;
|
|
1183
|
+
color: var(--ga-color-text-disabled);
|
|
1184
|
+
}
|
|
1185
|
+
.ga-select__value {
|
|
1186
|
+
min-width: calc(0.25rem * 0);
|
|
1187
|
+
flex: 1;
|
|
1188
|
+
overflow: hidden;
|
|
1189
|
+
text-overflow: ellipsis;
|
|
1190
|
+
white-space: nowrap;
|
|
1191
|
+
}
|
|
1192
|
+
.ga-select__input {
|
|
1193
|
+
height: calc(0.25rem * 6);
|
|
1194
|
+
min-width: calc(0.25rem * 0);
|
|
1195
|
+
flex: 1;
|
|
1196
|
+
--tw-leading: calc(0.25rem * 6);
|
|
1197
|
+
line-height: calc(0.25rem * 6);
|
|
1198
|
+
--tw-outline-style: none;
|
|
1199
|
+
outline-style: none;
|
|
1200
|
+
&:is(input)::placeholder {
|
|
1201
|
+
color: var(--ga-color-text-disabled);
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
996
1205
|
.ga-text-area {
|
|
997
1206
|
display: flex;
|
|
998
1207
|
width: calc(0.25rem * 50);
|
|
@@ -1211,6 +1420,11 @@
|
|
|
1211
1420
|
inherits: false;
|
|
1212
1421
|
initial-value: solid;
|
|
1213
1422
|
}
|
|
1423
|
+
@property --tw-content {
|
|
1424
|
+
syntax: "*";
|
|
1425
|
+
inherits: false;
|
|
1426
|
+
initial-value: "";
|
|
1427
|
+
}
|
|
1214
1428
|
@property --tw-translate-x {
|
|
1215
1429
|
syntax: "*";
|
|
1216
1430
|
inherits: false;
|
|
@@ -1226,8 +1440,3 @@
|
|
|
1226
1440
|
inherits: false;
|
|
1227
1441
|
initial-value: 0;
|
|
1228
1442
|
}
|
|
1229
|
-
@property --tw-content {
|
|
1230
|
-
syntax: "*";
|
|
1231
|
-
inherits: false;
|
|
1232
|
-
initial-value: "";
|
|
1233
|
-
}
|
package/dist/base.css
CHANGED
package/dist/components/card.css
CHANGED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.ga-dropdown {
|
|
3
|
+
display: flex;
|
|
4
|
+
min-width: calc(0.25rem * 36);
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
border-radius: var(--ga-radius);
|
|
8
|
+
border-style: var(--tw-border-style);
|
|
9
|
+
border-width: 1px;
|
|
10
|
+
border-color: var(--ga-color-border-primary);
|
|
11
|
+
background-color: var(--ga-color-surface-primary);
|
|
12
|
+
--tw-outline-style: none;
|
|
13
|
+
outline-style: none;
|
|
14
|
+
.ga-dropdown__item {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
height: calc(0.25rem * 9);
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: calc(0.25rem * 2);
|
|
22
|
+
padding-inline: calc(0.25rem * 3);
|
|
23
|
+
padding-block: calc(0.25rem * 2);
|
|
24
|
+
text-align: left;
|
|
25
|
+
font-size: var(--ga-size-font-md);
|
|
26
|
+
line-height: var(--tw-leading, calc(var(--spacing) * 4 * 1.25));
|
|
27
|
+
letter-spacing: var(--tw-tracking, calc(var(--spacing) * 4 * -0.006));
|
|
28
|
+
--tw-leading: 1;
|
|
29
|
+
line-height: 1;
|
|
30
|
+
color: var(--ga-color-text-action);
|
|
31
|
+
&:first-child {
|
|
32
|
+
border-top-left-radius: var(--ga-radius);
|
|
33
|
+
border-top-right-radius: var(--ga-radius);
|
|
34
|
+
}
|
|
35
|
+
&:last-child {
|
|
36
|
+
border-bottom-right-radius: var(--ga-radius);
|
|
37
|
+
border-bottom-left-radius: var(--ga-radius);
|
|
38
|
+
}
|
|
39
|
+
&:focus {
|
|
40
|
+
--tw-outline-style: none;
|
|
41
|
+
outline-style: none;
|
|
42
|
+
}
|
|
43
|
+
&:hover, &:active {
|
|
44
|
+
background-color: var(--ga-color-surface-action-hover-2);
|
|
45
|
+
color: var(--ga-color-text-action-hover);
|
|
46
|
+
}
|
|
47
|
+
&.ga-dropdown__item--disabled {
|
|
48
|
+
cursor: default;
|
|
49
|
+
background-color: var(--ga-color-surface-disabled);
|
|
50
|
+
color: var(--ga-color-text-disable-selected);
|
|
51
|
+
}
|
|
52
|
+
&.ga-dropdown__item--selected {
|
|
53
|
+
background-color: var(--ga-color-surface-success);
|
|
54
|
+
--tw-font-weight: 600;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
color: var(--ga-color-text-body);
|
|
57
|
+
&.ga-dropdown__item--disabled {
|
|
58
|
+
background-color: var(--ga-color-surface-disable-selected);
|
|
59
|
+
color: var(--ga-color-text-on-action);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
&:not(:focus-within) .ga-dropdown__item.ga-dropdown__item--active, .ga-dropdown__item:focus-visible {
|
|
64
|
+
&::after {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 2px;
|
|
67
|
+
left: 2px;
|
|
68
|
+
height: calc(100% - 4px);
|
|
69
|
+
width: calc(100% - 4px);
|
|
70
|
+
border-radius: var(--ga-radius);
|
|
71
|
+
border-style: var(--tw-border-style);
|
|
72
|
+
border-width: 2px;
|
|
73
|
+
border-color: var(--ga-color-border-focus);
|
|
74
|
+
--tw-content: '';
|
|
75
|
+
content: var(--tw-content);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.ga-dropdown__caption {
|
|
79
|
+
padding-inline: calc(0.25rem * 3);
|
|
80
|
+
padding-top: calc(0.25rem * 3);
|
|
81
|
+
padding-bottom: calc(0.25rem * 2);
|
|
82
|
+
font-size: var(--ga-size-font-sm);
|
|
83
|
+
line-height: var(--tw-leading, calc(var(--spacing) * 4 * 1.25));
|
|
84
|
+
letter-spacing: var(--tw-tracking, 0);
|
|
85
|
+
--tw-font-weight: 600;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
}
|
|
88
|
+
.ga-dropdown__content-spinner {
|
|
89
|
+
margin-inline: auto;
|
|
90
|
+
margin-block: calc(0.25rem * 8);
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
@property --tw-border-style {
|
|
95
|
+
syntax: "*";
|
|
96
|
+
inherits: false;
|
|
97
|
+
initial-value: solid;
|
|
98
|
+
}
|
|
99
|
+
@property --tw-leading {
|
|
100
|
+
syntax: "*";
|
|
101
|
+
inherits: false;
|
|
102
|
+
}
|
|
103
|
+
@property --tw-font-weight {
|
|
104
|
+
syntax: "*";
|
|
105
|
+
inherits: false;
|
|
106
|
+
}
|
|
107
|
+
@property --tw-content {
|
|
108
|
+
syntax: "*";
|
|
109
|
+
inherits: false;
|
|
110
|
+
initial-value: "";
|
|
111
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! tailwindcss v4.0.
|
|
2
|
-
:root, :host {
|
|
3
|
-
--spacing: 0.25rem;
|
|
4
|
-
}
|
|
1
|
+
/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */
|
|
5
2
|
.ga-form-field {
|
|
6
3
|
display: flex;
|
|
7
4
|
flex-direction: column;
|
|
8
5
|
gap: calc(0.25rem * 2);
|
|
6
|
+
> * {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
9
|
.ga-form-field__label {
|
|
10
10
|
padding-inline: calc(0.25rem * 1);
|
|
11
11
|
font-size: var(--ga-size-font-md);
|
package/dist/components/menu.css
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.0.
|
|
2
|
-
:root, :host {
|
|
3
|
-
--spacing: 0.25rem;
|
|
4
|
-
}
|
|
1
|
+
/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */
|
|
5
2
|
.ga-radio-group {
|
|
6
3
|
display: inline-flex;
|
|
7
4
|
flex-direction: column;
|
|
@@ -98,6 +95,9 @@
|
|
|
98
95
|
letter-spacing: var(--tw-tracking, calc(var(--spacing) * 4 * -0.006));
|
|
99
96
|
--tw-leading: calc(0.25rem * 4);
|
|
100
97
|
line-height: calc(0.25rem * 4);
|
|
98
|
+
&:empty {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
@property --tw-outline-style {
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.ga-native-select {
|
|
3
|
+
position: relative;
|
|
4
|
+
select {
|
|
5
|
+
height: calc(0.25rem * 10);
|
|
6
|
+
appearance: none;
|
|
7
|
+
border-radius: var(--ga-radius);
|
|
8
|
+
border-style: var(--tw-border-style);
|
|
9
|
+
border-width: 1px;
|
|
10
|
+
border-color: var(--ga-color-border-primary);
|
|
11
|
+
background-color: var(--ga-color-surface-primary);
|
|
12
|
+
padding-block: calc(0.25rem * 2);
|
|
13
|
+
padding-right: calc(0.25rem * 9);
|
|
14
|
+
padding-left: calc(0.25rem * 3);
|
|
15
|
+
font-size: var(--ga-size-font-md);
|
|
16
|
+
line-height: var(--tw-leading, calc(var(--spacing) * 4 * 1.25));
|
|
17
|
+
letter-spacing: var(--tw-tracking, calc(var(--spacing) * 4 * -0.006));
|
|
18
|
+
--tw-leading: 1;
|
|
19
|
+
line-height: 1;
|
|
20
|
+
}
|
|
21
|
+
.ga-native-select__arrow {
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: calc(1/2 * 100%);
|
|
25
|
+
right: calc(0.25rem * 2);
|
|
26
|
+
--tw-translate-y: calc(calc(1/2 * 100%) * -1);
|
|
27
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.ga-select {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
height: calc(0.25rem * 10);
|
|
33
|
+
width: calc(0.25rem * 50);
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
appearance: none;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: calc(0.25rem * 2);
|
|
38
|
+
border-radius: var(--ga-radius);
|
|
39
|
+
border-style: var(--tw-border-style);
|
|
40
|
+
border-width: 1px;
|
|
41
|
+
border-color: var(--ga-color-border-primary);
|
|
42
|
+
background-color: var(--ga-color-surface-primary);
|
|
43
|
+
padding-block: calc(0.25rem * 2);
|
|
44
|
+
padding-right: calc(0.25rem * 2);
|
|
45
|
+
padding-left: calc(0.25rem * 3);
|
|
46
|
+
text-align: left;
|
|
47
|
+
font-size: var(--ga-size-font-md);
|
|
48
|
+
line-height: var(--tw-leading, calc(var(--spacing) * 4 * 1.25));
|
|
49
|
+
letter-spacing: var(--tw-tracking, calc(var(--spacing) * 4 * -0.006));
|
|
50
|
+
--tw-leading: 1;
|
|
51
|
+
line-height: 1;
|
|
52
|
+
&.ga-select--expanded {
|
|
53
|
+
border-color: var(--ga-color-border-focus);
|
|
54
|
+
outline-style: var(--tw-outline-style);
|
|
55
|
+
outline-width: 1px;
|
|
56
|
+
outline-color: var(--ga-color-border-focus);
|
|
57
|
+
}
|
|
58
|
+
&:hover {
|
|
59
|
+
border-color: var(--ga-color-border-action-hover);
|
|
60
|
+
&:not(.ga-select--empty, .ga-select--disabled) {
|
|
61
|
+
background-color: var(--ga-color-surface-action-hover-2);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&.ga-select--disabled {
|
|
65
|
+
cursor: not-allowed;
|
|
66
|
+
border-color: var(--ga-color-border-primary);
|
|
67
|
+
background-color: var(--ga-color-surface-disabled);
|
|
68
|
+
color: var(--ga-color-text-disable-selected);
|
|
69
|
+
}
|
|
70
|
+
&:focus-visible {
|
|
71
|
+
outline-style: var(--tw-outline-style);
|
|
72
|
+
outline-width: 2px;
|
|
73
|
+
outline-offset: 2px;
|
|
74
|
+
outline-color: var(--ga-color-border-focus);
|
|
75
|
+
}
|
|
76
|
+
&.ga-select--invalid {
|
|
77
|
+
border-color: var(--ga-color-border-error);
|
|
78
|
+
outline-style: var(--tw-outline-style);
|
|
79
|
+
outline-width: 1px;
|
|
80
|
+
outline-color: var(--ga-color-border-error);
|
|
81
|
+
&:not(.ga-select--empty) {
|
|
82
|
+
background-color: var(--ga-color-surface-error);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
.ga-select__placeholder {
|
|
86
|
+
min-width: calc(0.25rem * 0);
|
|
87
|
+
flex: 1;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
color: var(--ga-color-text-disabled);
|
|
92
|
+
}
|
|
93
|
+
.ga-select__value {
|
|
94
|
+
min-width: calc(0.25rem * 0);
|
|
95
|
+
flex: 1;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
text-overflow: ellipsis;
|
|
98
|
+
white-space: nowrap;
|
|
99
|
+
}
|
|
100
|
+
.ga-select__input {
|
|
101
|
+
height: calc(0.25rem * 6);
|
|
102
|
+
min-width: calc(0.25rem * 0);
|
|
103
|
+
flex: 1;
|
|
104
|
+
--tw-leading: calc(0.25rem * 6);
|
|
105
|
+
line-height: calc(0.25rem * 6);
|
|
106
|
+
--tw-outline-style: none;
|
|
107
|
+
outline-style: none;
|
|
108
|
+
&:is(input)::placeholder {
|
|
109
|
+
color: var(--ga-color-text-disabled);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@property --tw-border-style {
|
|
114
|
+
syntax: "*";
|
|
115
|
+
inherits: false;
|
|
116
|
+
initial-value: solid;
|
|
117
|
+
}
|
|
118
|
+
@property --tw-leading {
|
|
119
|
+
syntax: "*";
|
|
120
|
+
inherits: false;
|
|
121
|
+
}
|
|
122
|
+
@property --tw-translate-x {
|
|
123
|
+
syntax: "*";
|
|
124
|
+
inherits: false;
|
|
125
|
+
initial-value: 0;
|
|
126
|
+
}
|
|
127
|
+
@property --tw-translate-y {
|
|
128
|
+
syntax: "*";
|
|
129
|
+
inherits: false;
|
|
130
|
+
initial-value: 0;
|
|
131
|
+
}
|
|
132
|
+
@property --tw-translate-z {
|
|
133
|
+
syntax: "*";
|
|
134
|
+
inherits: false;
|
|
135
|
+
initial-value: 0;
|
|
136
|
+
}
|
|
137
|
+
@property --tw-outline-style {
|
|
138
|
+
syntax: "*";
|
|
139
|
+
inherits: false;
|
|
140
|
+
initial-value: solid;
|
|
141
|
+
}
|