@tabula/ui-selector
Version:
Selector allow users to choose a single option from a collapsible list of options when space is limited
254 lines (248 loc) • 10.9 kB
CSS
/* vanilla-extract-css-ns:src/skeleton.css.ts.vanilla.css?source=QGxheWVyIHRibC0tY29tcG9uZW50czsKQGxheWVyIHRibC0tY29tcG9uZW50cyB7CiAgLnRhYnVsYV91aV9zZWxlY3Rvcl9fMWxvcWpubzAgewogICAgY3Vyc29yOiBkZWZhdWx0ICFpbXBvcnRhbnQ7CiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudCAhaW1wb3J0YW50OwogIH0KICAudGFidWxhX3VpX3NlbGVjdG9yX18xbG9xam5vMSB7CiAgICBmbGV4OiBub25lOwogICAgaGVpZ2h0OiAxNnB4OwogICAgYm9yZGVyLXJhZGl1czogNHB4OwogICAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tdGJsLS1jb2xvcnMtLW5ldXRyYWwtLUExMCk7CiAgfQogIC50YWJ1bGFfdWlfc2VsZWN0b3JfXzFsb3Fqbm8wOm50aC1jaGlsZChldmVuKSAudGFidWxhX3VpX3NlbGVjdG9yX18xbG9xam5vMSB7CiAgICB3aWR0aDogNzUlOwogIH0KICAudGFidWxhX3VpX3NlbGVjdG9yX18xbG9xam5vMDpudGgtY2hpbGQob2RkKSAudGFidWxhX3VpX3NlbGVjdG9yX18xbG9xam5vMSB7CiAgICB3aWR0aDogNDUlOwogIH0KfQ== */
@layer tbl--components;
@layer tbl--components {
.tabula_ui_selector__1loqjno0 {
cursor: default ;
background-color: transparent ;
}
.tabula_ui_selector__1loqjno1 {
flex: none;
height: 16px;
border-radius: 4px;
background-color: var(--tbl--colors--neutral--A10);
}
.tabula_ui_selector__1loqjno0:nth-child(even) .tabula_ui_selector__1loqjno1 {
width: 75%;
}
.tabula_ui_selector__1loqjno0:nth-child(odd) .tabula_ui_selector__1loqjno1 {
width: 45%;
}
}
/* vanilla-extract-css-ns:src/TriggerContent/TriggerContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA61Ty24bMQy85yt0KdCgYOF13TSQL/kTQ7vi7rKRKEGiXy3y74X30ayLtJXRXknNkMMZPTlzxqSkdgBN8DEwsuTt3dObdfX9TqmPYuq9M7s97TI6bCSk3a46bL611KyGF0pZytGZs1atw9N2KBlHHQMJ+qxVgyyYLo2XvzBWvzISO2KEV+Kv+yzUnqEJLMiyJP/tVDUsBrlPxM9arUo2WU+beJM6YkjU9aLVYzyVgD9dgx225djNhG3DRd3BpPcAgzGXQgbIhjNkTNQCZPQEdXAWqvX44H7U61AEE+RoGuLuNppr7EQoeBKQZDi3IfnbCK+xE+FPh2sXmuft8lx1EAleq3WcPG+CC+lq5lDJMKcAICbyJp3vyy784Y/9z5MDBWMzNoFt6eAvE3E01hJ3ICFqtZlVztVZ/qYsL4835MWjpb3/t7AsOP5DUhZsb8bEmxMcyUqvVbVavSs5yEPRuTwx9Dj+6uph9uDYk+AgCLXicEwmjo1wwNS6cNSqJ2uRF1pfW+gcxUx53PLlBzer1IBuBQAA */
@layer tbl--components;
@layer tbl--components {
.tabula_ui_selector__1v4zfic0 {
display: flex;
align-items: center;
}
.tabula_ui_selector__1v4zfic1 {
display: inline-flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
.tabula_ui_selector__1v4zfic2 {
margin-right: 8px;
}
.tabula_ui_selector__1v4zfic3 {
margin-left: 8px;
}
.tabula_ui_selector__1v4zfic4 {
font: var(--tbl--fonts--sans-serif--semi-bold-12--font);
letter-spacing: var(--tbl--fonts--sans-serif--semi-bold-12--letter-spacing);
text-transform: var(--tbl--fonts--sans-serif--semi-bold-12--text-transform);
display: block;
margin-bottom: 2px;
color: var(--tbl--colors--content--primary);
}
.tabula_ui_selector__1v4zfic4 + .tabula_ui_selector__1v4zfic5 {
color: var(--tbl--colors--content--secondary);
}
.tabula_ui_selector__1v4zfic7 {
padding-top: 4px;
padding-bottom: 4px;
}
.tabula_ui_selector__1v4zfic8 {
font: var(--tbl--fonts--sans-serif--medium-12--font);
letter-spacing: var(--tbl--fonts--sans-serif--medium-12--letter-spacing);
text-transform: var(--tbl--fonts--sans-serif--medium-12--text-transform);
max-width: 100%;
}
.tabula_ui_selector__1v4zfic6 .tabula_ui_selector__1v4zfic8 {
min-height: 16px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
/* vanilla-extract-css-ns:src/UiSelector/UiSelector.css.ts.vanilla.css?source=QGxheWVyIHRibC0tY29tcG9uZW50czsKQGxheWVyIHRibC0tY29tcG9uZW50cyB7CiAgLnRhYnVsYV91aV9zZWxlY3Rvcl9fM210d2d3MCB7CiAgICBwb3NpdGlvbjogcmVsYXRpdmU7CiAgfQogIC50YWJ1bGFfdWlfc2VsZWN0b3JfXzNtdHdndzEgewogICAgcG9zaXRpb246IGFic29sdXRlOwogICAgdG9wOiAwOwogICAgcmlnaHQ6IDA7CiAgICBib3R0b206IDA7CiAgICBsZWZ0OiAwOwogICAgei1pbmRleDogMTsKICAgIHBhZGRpbmc6IDA7CiAgICBib3JkZXItcmFkaXVzOiA2cHg7CiAgICBib3JkZXI6IDFweCBzb2xpZCB2YXIoLS10YmwtLWNvbG9ycy0tbmV1dHJhbC0tQTQwKTsKICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXRibC0tY29sb3JzLS1iYWNrZ3JvdW5kLS1wcmltYXJ5LWNvbnRlbnQpOwogIH0KICAudGFidWxhX3VpX3NlbGVjdG9yX18zbXR3Z3cyIHsKICAgIHBhZGRpbmctbGVmdDogM3B4OwogIH0KfQ== */
@layer tbl--components;
@layer tbl--components {
.tabula_ui_selector__3mtwgw0 {
position: relative;
}
.tabula_ui_selector__3mtwgw1 {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
padding: 0;
border-radius: 6px;
border: 1px solid var(--tbl--colors--neutral--A40);
background-color: var(--tbl--colors--background--primary-content);
}
.tabula_ui_selector__3mtwgw2 {
padding-left: 3px;
}
}
/* vanilla-extract-css-ns:src/Popup/Popup.css.ts.vanilla.css?source=QGxheWVyIHRibC0tY29tcG9uZW50czsKQGxheWVyIHRibC0tY29tcG9uZW50cyB7CiAgLnRhYnVsYV91aV9zZWxlY3Rvcl9fMWduNWpmdzEgewogICAgdG9wOiAwOwogICAgbGVmdDogMDsKICAgIHotaW5kZXg6IDE0OwogICAgb3BhY2l0eTogMDsKICAgIHZpc2liaWxpdHk6IGhpZGRlbjsKICAgIGRpc3BsYXk6IGZsZXg7CiAgICBtYXgtaGVpZ2h0OiAzMzZweDsKICB9CiAgLnRhYnVsYV91aV9zZWxlY3Rvcl9fMWduNWpmdzEudGFidWxhX3VpX3NlbGVjdG9yX18xZ241amZ3MCB7CiAgICBvcGFjaXR5OiAxOwogICAgdmlzaWJpbGl0eTogdmlzaWJsZTsKICB9CiAgLnRhYnVsYV91aV9zZWxlY3Rvcl9fMWduNWpmdzIgewogICAgd2lkdGg6IDEwMCU7CiAgICBtYXgtd2lkdGg6IG5vbmU7CiAgICBvdmVyZmxvdy15OiBhdXRvOwogIH0KfQ== */
@layer tbl--components;
@layer tbl--components {
.tabula_ui_selector__1gn5jfw1 {
top: 0;
left: 0;
z-index: 14;
opacity: 0;
visibility: hidden;
display: flex;
max-height: 336px;
}
.tabula_ui_selector__1gn5jfw1.tabula_ui_selector__1gn5jfw0 {
opacity: 1;
visibility: visible;
}
.tabula_ui_selector__1gn5jfw2 {
width: 100%;
max-width: none;
overflow-y: auto;
}
}
/* vanilla-extract-css-ns:src/Search/Search.css.ts.vanilla.css?source=#H4sIAAAAAAAAA6VVy3KjMBC85yt0SVV8mC0gdtalXPInLgGDrY2QqNHgtZPKv29hBPErscgeaaGZlrqn9WLUHklwbgAKVzfOomX/fPdyFRfvd0L8YpW3Rq1avfJosGBHq1W62KQZN8nhDyEa5zVrZ6UgNIr1Fp8PeKl9Y9Reisrgrof+6pI3UqRJct8DG9TrDR8jf1rPutpD4SyjZSkKtIzULX7cILS4IKRy70zLgRC7RopCmeJhkdwLEMtmN+tXDFYsu+9Tmk8DMNIckcIZR1JsFT0AhJszjjwMxAEYibWi/SyGexp1soiupfYqN1hGdX2M6trfThJT8Gm6Jy4E75bAsyLuf1BGry1oxtofu0GIRpWltms4U2+AqdfsMTuXNXjt1lmyuJOekBia3az9c1WuN87mcY3nk2qHK4wt/jtsr1yn45FLO8ADeGU9eCRdAdRY6raGNOtXx0FkRgLfqELb9YQapxtDNcYdA5OyvnJUT6h2unF25t3cuOL1xGthOq4EXO6oRJLCOhtGIFfF65pca0sI43xo1ChCy9Hh0pCuh2zpuuzA67cDk74j5C5OMlm5ovVBONey0RY/6d7avpwYuWkyZm7w1pioV6Lhy8n/5pH4UpMsOU/zT+RSpan5PtQAUqVuvRTzsXaE3i35bqFxOvatW8qN2yLFvwvHhrld/L9M8X3GDJYJ+odn5eMf6LkShp0IAAA= */
@layer tbl--components;
@layer tbl--components {
.tabula_ui_selector__15h12tp0 {
position: relative;
display: flex;
width: 100%;
height: 100%;
justify-content: center;
}
.tabula_ui_selector__15h12tp5 {
position: absolute;
top: calc(50% - 8px);
left: 8px;
width: 16px;
height: 16px;
color: var(--tbl--colors--content--tertiary);
}
.tabula_ui_selector__15h12tp1 .tabula_ui_selector__15h12tp5 {
color: var(--tbl--colors--content--disabled);
}
.tabula_ui_selector__15h12tp3 .tabula_ui_selector__15h12tp5 {
left: 0;
}
.tabula_ui_selector__15h12tp6 {
position: relative;
display: flex;
justify-content: flex-start;
align-items: center;
padding-left: 8px;
padding-right: 32px;
width: 100%;
}
.tabula_ui_selector__15h12tp2 .tabula_ui_selector__15h12tp6 {
padding-left: 32px;
}
.tabula_ui_selector__15h12tp2.tabula_ui_selector__15h12tp3 .tabula_ui_selector__15h12tp6 {
padding-left: 24px;
}
.tabula_ui_selector__15h12tp4 .tabula_ui_selector__15h12tp6 {
padding-right: 24px;
}
.tabula_ui_selector__15h12tp7 {
font: var(--tbl--fonts--sans-serif--medium-12--font);
letter-spacing: var(--tbl--fonts--sans-serif--medium-12--letter-spacing);
text-transform: var(--tbl--fonts--sans-serif--medium-12--text-transform);
display: block;
padding: 0;
width: 100%;
border: none;
background-color: transparent;
color: var(--tbl--colors--content--primary);
box-sizing: border-box;
}
.tabula_ui_selector__15h12tp7:focus {
outline: none;
}
.tabula_ui_selector__15h12tp8 {
position: absolute;
top: calc(50% - 10px);
right: 6px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
width: 20px;
height: 20px;
border: none;
color: var(--tbl--colors--content--tertiary);
border-radius: 4px;
background-color: transparent;
cursor: pointer;
}
.tabula_ui_selector__15h12tp8:hover {
color: var(--tbl--colors--content--primary);
}
.tabula_ui_selector__15h12tp8:focus {
outline: none;
}
.tabula_ui_selector__15h12tp4 .tabula_ui_selector__15h12tp8 {
right: 0;
}
}
/* vanilla-extract-css-ns:src/Trigger/Trigger.css.ts.vanilla.css?source=#H4sIAAAAAAAAA51UQW7bMBC85xW8FEgOW0huHBfMJX2JQYkriTBFEstVLKPI3wtZlFIVCcz0upzdGQ6X82LVBUlwZQFq3wfv0HF8vnv5sC5+3wnxnVU1WHUczDGixZo9HY983qvKFFeAENrEYNVFisbi+HwtKWtaB4axj1LU6BhpPghKa+NaKQ5hFGUZEv5sNHdSlEXxbS5UnjQSkNJmiFI8LcC5LkUZRhG9NVq8KroHSNKtpwjgcGBSFuBXWTykPlWfWvKD0zNKftT3FwgCmV7RBWrvGB1fx7zd8EN2/hUpuZJu8Dnbu8rdorIeKE7o4M1i2Q3O8utsj0XOZXa5g1eAY/IW4KzIGdfmcPz4Xw4k8pTD8Lgw5Dz/atF+3Zp8Vw9ZcjYbsry2xkYNljP696lz+mgQOzLuJEUxa+0VtcaBxYbX/3LTnQwuH1Rt+JJ4bkx8WgR6xxvDpkIEiMpFiEimAehRm6GHcjefJsstMiNBnFinnMiesW1M0xhHBiblYuOp/8K0bePDxmIybcdSqIH9Uh8hJVitbH0/xZgAUf4M4/KxP92glC9r4OSs0eHf4K2sr08zU4ezunKNzAxuRmLzTv72B3r/ts0oBgAA */
@layer tbl--components;
@layer tbl--components {
.tabula_ui_selector__tw5abi0 {
display: flex;
align-items: center;
padding: 7px 11px;
width: 100%;
border-radius: 6px;
border: 1px solid var(--tbl--colors--neutral--A10);
background-color: var(--tbl--colors--background--primary-content);
}
.tabula_ui_selector__tw5abi0:hover {
border-color: var(--tbl--colors--neutral--A20);
cursor: pointer;
}
.tabula_ui_selector__tw5abi1 {
border-color: var(--tbl--colors--neutral--A40);
}
.tabula_ui_selector__tw5abi2 {
border-color: var(--tbl--colors--border-control--warning);
}
.tabula_ui_selector__tw5abi3 {
border-color: var(--tbl--colors--border-control--error);
}
.tabula_ui_selector__tw5abi4 {
background-color: var(--tbl--colors--neutral--50);
border-color: var(--tbl--colors--neutral--A7);
}
.tabula_ui_selector__tw5abi4:hover {
cursor: default;
}
.tabula_ui_selector__tw5abi5 {
flex-shrink: 0;
margin-left: 6px;
}
.tabula_ui_selector__tw5abi4 .tabula_ui_selector__tw5abi5 {
opacity: 0;
}
.tabula_ui_selector__tw5abi6 {
font: var(--tbl--fonts--sans-serif--medium-12--font);
letter-spacing: var(--tbl--fonts--sans-serif--medium-12--letter-spacing);
text-transform: var(--tbl--fonts--sans-serif--medium-12--text-transform);
margin-right: auto;
max-width: calc(100% - 18px);
color: var(--tbl--colors--content--primary);
}
.tabula_ui_selector__tw5abi7 {
display: block;
height: 16px;
color: var(--tbl--colors--content--tertiary);
}
}
/*# sourceMappingURL=index.css.map */