|
@@ -1,70 +1,89 @@
|
|
|
[data-component="select"] {
|
|
[data-component="select"] {
|
|
|
[data-slot="select-select-trigger"] {
|
|
[data-slot="select-select-trigger"] {
|
|
|
- padding: 6px 6px 6px 12px;
|
|
|
|
|
|
|
+ padding: 0 4px 0 8px;
|
|
|
box-shadow: none;
|
|
box-shadow: none;
|
|
|
- border-radius: 6px;
|
|
|
|
|
- min-width: 160px;
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- justify-content: flex-end;
|
|
|
|
|
- gap: 12px;
|
|
|
|
|
- background-color: transparent;
|
|
|
|
|
|
|
|
|
|
[data-slot="select-select-trigger-value"] {
|
|
[data-slot="select-select-trigger-value"] {
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|
|
|
- font-size: var(--font-size-base);
|
|
|
|
|
- font-weight: var(--font-weight-regular);
|
|
|
|
|
}
|
|
}
|
|
|
[data-slot="select-select-trigger-icon"] {
|
|
[data-slot="select-select-trigger-icon"] {
|
|
|
width: 16px;
|
|
width: 16px;
|
|
|
- height: 20px;
|
|
|
|
|
|
|
+ height: 16px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
color: var(--text-weak);
|
|
color: var(--text-weak);
|
|
|
- background-color: var(--surface-raised-base);
|
|
|
|
|
- border-radius: 4px;
|
|
|
|
|
transition: transform 0.1s ease-in-out;
|
|
transition: transform 0.1s ease-in-out;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- &[data-slot="select-select-trigger"]:hover:not(:disabled),
|
|
|
|
|
- &[data-slot="select-select-trigger"][data-expanded],
|
|
|
|
|
- &[data-slot="select-select-trigger"][data-expanded]:hover:not(:disabled) {
|
|
|
|
|
- background-color: var(--input-base);
|
|
|
|
|
- box-shadow: var(--shadow-xs-border-base);
|
|
|
|
|
|
|
+ &[data-expanded] {
|
|
|
|
|
+ &[data-variant="secondary"] {
|
|
|
|
|
+ background-color: var(--button-secondary-hover);
|
|
|
|
|
+ }
|
|
|
|
|
+ &[data-variant="ghost"] {
|
|
|
|
|
+ background-color: var(--surface-raised-base-active);
|
|
|
|
|
+ }
|
|
|
|
|
+ &[data-variant="primary"] {
|
|
|
|
|
+ background-color: var(--icon-strong-active);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
&:not([data-expanded]):focus {
|
|
&:not([data-expanded]):focus {
|
|
|
- background-color: transparent;
|
|
|
|
|
- box-shadow: none;
|
|
|
|
|
|
|
+ &[data-variant="secondary"] {
|
|
|
|
|
+ background-color: var(--button-secondary-base);
|
|
|
|
|
+ }
|
|
|
|
|
+ &[data-variant="ghost"] {
|
|
|
|
|
+ background-color: transparent;
|
|
|
|
|
+ }
|
|
|
|
|
+ &[data-variant="primary"] {
|
|
|
|
|
+ background-color: var(--icon-strong-base);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- &[data-trigger-style="button"] {
|
|
|
|
|
|
|
+ &[data-trigger-style="settings"] {
|
|
|
[data-slot="select-select-trigger"] {
|
|
[data-slot="select-select-trigger"] {
|
|
|
- padding: 0 6px;
|
|
|
|
|
- min-width: auto;
|
|
|
|
|
- height: 24px;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- gap: 6px;
|
|
|
|
|
|
|
+ padding: 6px 6px 6px 12px;
|
|
|
|
|
+ box-shadow: none;
|
|
|
|
|
+ border-radius: 6px;
|
|
|
|
|
+ min-width: 160px;
|
|
|
|
|
+ height: 32px;
|
|
|
|
|
+ justify-content: flex-end;
|
|
|
|
|
+ gap: 12px;
|
|
|
|
|
+ background-color: transparent;
|
|
|
|
|
|
|
|
- [data-slot="select-select-trigger-icon"] {
|
|
|
|
|
- width: auto;
|
|
|
|
|
- height: auto;
|
|
|
|
|
- background-color: transparent;
|
|
|
|
|
- border-radius: 0;
|
|
|
|
|
|
|
+ [data-slot="select-select-trigger-value"] {
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ font-size: var(--font-size-base);
|
|
|
|
|
+ font-weight: var(--font-weight-regular);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- &[data-slot="select-select-trigger"]:hover:not(:disabled) {
|
|
|
|
|
- background-color: var(--surface-raised-base-hover);
|
|
|
|
|
- box-shadow: none;
|
|
|
|
|
|
|
+ [data-slot="select-select-trigger-icon"] {
|
|
|
|
|
+ width: 16px;
|
|
|
|
|
+ height: 20px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ color: var(--text-weak);
|
|
|
|
|
+ background-color: var(--surface-raised-base);
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ transition: transform 0.1s ease-in-out;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ &[data-slot="select-select-trigger"]:hover:not(:disabled),
|
|
|
&[data-slot="select-select-trigger"][data-expanded],
|
|
&[data-slot="select-select-trigger"][data-expanded],
|
|
|
&[data-slot="select-select-trigger"][data-expanded]:hover:not(:disabled) {
|
|
&[data-slot="select-select-trigger"][data-expanded]:hover:not(:disabled) {
|
|
|
- background-color: var(--surface-raised-base-active);
|
|
|
|
|
|
|
+ background-color: var(--input-base);
|
|
|
|
|
+ box-shadow: var(--shadow-xs-border-base);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ &:not([data-expanded]):focus {
|
|
|
|
|
+ background-color: transparent;
|
|
|
box-shadow: none;
|
|
box-shadow: none;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -72,12 +91,12 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
[data-component="select-content"] {
|
|
[data-component="select-content"] {
|
|
|
- min-width: 160px;
|
|
|
|
|
|
|
+ min-width: 104px;
|
|
|
max-width: 23rem;
|
|
max-width: 23rem;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
- border-radius: 8px;
|
|
|
|
|
|
|
+ border-radius: var(--radius-md);
|
|
|
background-color: var(--surface-raised-stronger-non-alpha);
|
|
background-color: var(--surface-raised-stronger-non-alpha);
|
|
|
- padding: 0;
|
|
|
|
|
|
|
+ padding: 4px;
|
|
|
box-shadow: var(--shadow-xs-border);
|
|
box-shadow: var(--shadow-xs-border);
|
|
|
z-index: 60;
|
|
z-index: 60;
|
|
|
|
|
|
|
@@ -92,7 +111,6 @@
|
|
|
overflow-x: hidden;
|
|
overflow-x: hidden;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
- padding: 4px;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
&:focus {
|
|
|
outline: none;
|
|
outline: none;
|
|
@@ -112,12 +130,12 @@
|
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
|
cursor: default;
|
|
cursor: default;
|
|
|
|
|
|
|
|
- /* text-14-regular */
|
|
|
|
|
|
|
+ /* text-12-medium */
|
|
|
font-family: var(--font-family-sans);
|
|
font-family: var(--font-family-sans);
|
|
|
- font-size: var(--font-size-base);
|
|
|
|
|
|
|
+ font-size: var(--font-size-small);
|
|
|
font-style: normal;
|
|
font-style: normal;
|
|
|
- font-weight: var(--font-weight-regular);
|
|
|
|
|
- line-height: var(--line-height-large);
|
|
|
|
|
|
|
+ font-weight: var(--font-weight-medium);
|
|
|
|
|
+ line-height: var(--line-height-large); /* 166.667% */
|
|
|
letter-spacing: var(--letter-spacing-normal);
|
|
letter-spacing: var(--letter-spacing-normal);
|
|
|
|
|
|
|
|
color: var(--text-strong);
|
|
color: var(--text-strong);
|
|
@@ -152,6 +170,26 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+[data-component="select-content"][data-trigger-style="settings"] {
|
|
|
|
|
+ min-width: 160px;
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+
|
|
|
|
|
+ [data-slot="select-select-content-list"] {
|
|
|
|
|
+ padding: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ [data-slot="select-select-item"] {
|
|
|
|
|
+ /* text-14-regular */
|
|
|
|
|
+ font-family: var(--font-family-sans);
|
|
|
|
|
+ font-size: var(--font-size-base);
|
|
|
|
|
+ font-style: normal;
|
|
|
|
|
+ font-weight: var(--font-weight-regular);
|
|
|
|
|
+ line-height: var(--line-height-large);
|
|
|
|
|
+ letter-spacing: var(--letter-spacing-normal);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
@keyframes select-open {
|
|
@keyframes select-open {
|
|
|
from {
|
|
from {
|
|
|
opacity: 0;
|
|
opacity: 0;
|