@paubox/ui 1.16.0 → 1.17.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/index.esm.js +23 -8
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -24058,7 +24058,9 @@ function _templateObject$h() {
|
|
|
24058
24058
|
";\n border: 1px solid\n ",
|
|
24059
24059
|
";\n border-radius: 0.5rem;\n min-height: ",
|
|
24060
24060
|
";\n padding: ",
|
|
24061
|
-
";\n transition: all 150ms ease-in-out;\n cursor: text;\n"
|
|
24061
|
+
";\n transition: all 150ms ease-in-out;\n cursor: text;\n\n html.dark & {\n background-color: ",
|
|
24062
|
+
";\n border-color: ",
|
|
24063
|
+
";\n }\n"
|
|
24062
24064
|
]);
|
|
24063
24065
|
_templateObject$h = function _templateObject() {
|
|
24064
24066
|
return data;
|
|
@@ -24069,7 +24071,9 @@ function _templateObject1$d() {
|
|
|
24069
24071
|
var data = _tagged_template_literal$h([
|
|
24070
24072
|
"\n flex: 1;\n min-width: 8rem;\n border: none;\n background-color: transparent;\n color: ",
|
|
24071
24073
|
";\n outline: none;\n padding: 0;\n\n &::placeholder {\n color: ",
|
|
24072
|
-
";\n }\n\n ",
|
|
24074
|
+
";\n }\n\n html.dark & {\n color: ",
|
|
24075
|
+
";\n\n &::placeholder {\n color: ",
|
|
24076
|
+
";\n }\n }\n\n ",
|
|
24073
24077
|
"\n"
|
|
24074
24078
|
]);
|
|
24075
24079
|
_templateObject1$d = function _templateObject() {
|
|
@@ -24082,7 +24086,10 @@ function _templateObject2$d() {
|
|
|
24082
24086
|
"\n background-color: ",
|
|
24083
24087
|
";\n border-radius: 1rem;\n border: none;\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.25rem;\n padding: 0.25rem 0.5rem;\n white-space: nowrap;\n ",
|
|
24084
24088
|
"\n\n &:focus-visible {\n outline: 2px solid ",
|
|
24085
|
-
";\n outline-offset: 1px;\n }\n"
|
|
24089
|
+
";\n outline-offset: 1px;\n }\n\n html.dark & {\n background-color: ",
|
|
24090
|
+
";\n color: ",
|
|
24091
|
+
";\n\n &:focus-visible {\n outline-color: ",
|
|
24092
|
+
";\n }\n }\n"
|
|
24086
24093
|
]);
|
|
24087
24094
|
_templateObject2$d = function _templateObject() {
|
|
24088
24095
|
return data;
|
|
@@ -24092,6 +24099,7 @@ function _templateObject2$d() {
|
|
|
24092
24099
|
function _templateObject3$a() {
|
|
24093
24100
|
var data = _tagged_template_literal$h([
|
|
24094
24101
|
"\n display: flex;\n align-items: center;\n justify-content: center;\n margin-left: auto;\n flex-shrink: 0;\n\n & svg {\n font-size: 1rem;\n color: ",
|
|
24102
|
+
";\n }\n\n html.dark & svg {\n color: ",
|
|
24095
24103
|
";\n }\n"
|
|
24096
24104
|
]);
|
|
24097
24105
|
_templateObject3$a = function _templateObject() {
|
|
@@ -24103,7 +24111,8 @@ function _templateObject4$8() {
|
|
|
24103
24111
|
var data = _tagged_template_literal$h([
|
|
24104
24112
|
"\n padding: 0.5rem 0.75rem;\n color: ",
|
|
24105
24113
|
";\n ",
|
|
24106
|
-
"\n"
|
|
24114
|
+
"\n\n html.dark & {\n color: ",
|
|
24115
|
+
";\n }\n"
|
|
24107
24116
|
]);
|
|
24108
24117
|
_templateObject4$8 = function _templateObject() {
|
|
24109
24118
|
return data;
|
|
@@ -24131,14 +24140,20 @@ var Wrapper$1 = styled.div(_templateObject$h(), function(param) {
|
|
|
24131
24140
|
}, function(param) {
|
|
24132
24141
|
var sz = param.sz;
|
|
24133
24142
|
return sz === 'lg' ? '0.5rem 0.563rem' : '0.375rem 0.563rem';
|
|
24143
|
+
}, function(param) {
|
|
24144
|
+
var disabled = param.disabled;
|
|
24145
|
+
return disabled ? surfaceRaised : surfacePrimary;
|
|
24146
|
+
}, function(param) {
|
|
24147
|
+
var isFocused = param.isFocused, error = param.error;
|
|
24148
|
+
return isFocused ? primary500 : error ? danger500 : surfaceRaised;
|
|
24134
24149
|
});
|
|
24135
|
-
var BaseInput$2 = styled.input(_templateObject1$d(), textPrimary$1, neutral500$1, function(param) {
|
|
24150
|
+
var BaseInput$2 = styled.input(_templateObject1$d(), textPrimary$1, neutral500$1, textPrimaryWhite, surfaceMuted, function(param) {
|
|
24136
24151
|
var sz = param.sz, type = param.type;
|
|
24137
24152
|
return type === 'primary' ? sz === 'lg' ? $paragraph100Regular : $paragraph200Regular : sz === 'lg' ? $paragraph100Semibold : $paragraph200Semibold;
|
|
24138
24153
|
});
|
|
24139
|
-
var Chip$2 = styled.button(_templateObject2$d(), neutral100$1, $label200Medium, primary600$1);
|
|
24140
|
-
var RightIconWrapper = styled.div(_templateObject3$a(), neutral600$1);
|
|
24141
|
-
var EmptyState = styled.div(_templateObject4$8(), neutral500$1, $paragraph200Regular);
|
|
24154
|
+
var Chip$2 = styled.button(_templateObject2$d(), neutral100$1, $label200Medium, primary600$1, surfaceRaised, textPrimaryWhite, primary500);
|
|
24155
|
+
var RightIconWrapper = styled.div(_templateObject3$a(), neutral600$1, surfaceMuted);
|
|
24156
|
+
var EmptyState = styled.div(_templateObject4$8(), neutral500$1, $paragraph200Regular, surfaceMuted);
|
|
24142
24157
|
var OptionWrapper = styled.div(_templateObject5$3());
|
|
24143
24158
|
/**
|
|
24144
24159
|
* AutoComplete: single-line input that filters a closed list of options as
|