@paubox/ui 0.15.0 → 0.15.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/index.esm.js +14 -3
- package/package.json +1 -1
- package/src/lib/Inputs/Select.d.ts +2 -1
package/index.esm.js
CHANGED
|
@@ -22327,6 +22327,9 @@ var FilterRow = function(param) {
|
|
|
22327
22327
|
/*#__PURE__*/ jsx(Select, {
|
|
22328
22328
|
name: "filters.".concat(filterKey, ".").concat(rowIndex, ".field"),
|
|
22329
22329
|
placeholder: "Field",
|
|
22330
|
+
style: {
|
|
22331
|
+
flex: 1
|
|
22332
|
+
},
|
|
22330
22333
|
value: currentFilter.field,
|
|
22331
22334
|
setValue: function(value) {
|
|
22332
22335
|
return onChange("filters.".concat(filterKey, ".").concat(rowIndex, ".field"), value);
|
|
@@ -22342,6 +22345,9 @@ var FilterRow = function(param) {
|
|
|
22342
22345
|
name: "filters.".concat(filterKey, ".").concat(rowIndex, ".op"),
|
|
22343
22346
|
placeholder: "Operator",
|
|
22344
22347
|
value: currentFilter.op,
|
|
22348
|
+
style: {
|
|
22349
|
+
flex: 1
|
|
22350
|
+
},
|
|
22345
22351
|
onChange: function(value) {
|
|
22346
22352
|
return onChange("filters.".concat(filterKey, ".").concat(rowIndex, ".op"), value);
|
|
22347
22353
|
},
|
|
@@ -24056,7 +24062,7 @@ function _templateObject1$a() {
|
|
|
24056
24062
|
}
|
|
24057
24063
|
function _templateObject2$8() {
|
|
24058
24064
|
var data = _tagged_template_literal$f([
|
|
24059
|
-
"\n flex: 1;\n cursor: pointer;\n border: none;\n background-color: transparent;\n
|
|
24065
|
+
"\n flex: 1;\n cursor: pointer;\n border: none;\n background-color: transparent;\n z-index: 1;\n -webkit-appearance: none;\n -moz-appearance: none;\n &::-ms-expand {\n display: none;\n }\n &::placeholder {\n color: ",
|
|
24060
24066
|
";\n }\n color: ",
|
|
24061
24067
|
";\n padding: ",
|
|
24062
24068
|
";\n padding-right: 2rem;\n outline: none;\n &::placeholder {\n color: ",
|
|
@@ -24124,7 +24130,7 @@ var IconWrapper$1 = styled.div(_templateObject3$6(), function(param) {
|
|
|
24124
24130
|
});
|
|
24125
24131
|
var SelectOption = styled.option(_templateObject4$4(), $paragraph100Semibold, textSecondary);
|
|
24126
24132
|
var Select = function(_param) {
|
|
24127
|
-
var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var placeholder = _param.placeholder, value = _param.value, setValue = _param.setValue; _param.initialValue; var _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, props = _object_without_properties$a(_param, [
|
|
24133
|
+
var _param_sz = _param.sz, sz = _param_sz === void 0 ? 'sm' : _param_sz, _param_error = _param.error, error = _param_error === void 0 ? false : _param_error, _param_options = _param.options, options = _param_options === void 0 ? [] : _param_options; _param.checkbox; var placeholder = _param.placeholder, value = _param.value, setValue = _param.setValue; _param.initialValue; var _param_type = _param.type, type = _param_type === void 0 ? 'primary' : _param_type, style = _param.style, _param_maxHeight = _param.maxHeight, maxHeight = _param_maxHeight === void 0 ? '14rem' : _param_maxHeight, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, props = _object_without_properties$a(_param, [
|
|
24128
24134
|
"sz",
|
|
24129
24135
|
"error",
|
|
24130
24136
|
"options",
|
|
@@ -24134,6 +24140,8 @@ var Select = function(_param) {
|
|
|
24134
24140
|
"setValue",
|
|
24135
24141
|
"initialValue",
|
|
24136
24142
|
"type",
|
|
24143
|
+
"style",
|
|
24144
|
+
"maxHeight",
|
|
24137
24145
|
"disabled"
|
|
24138
24146
|
]);
|
|
24139
24147
|
var _options_find;
|
|
@@ -24148,6 +24156,7 @@ var Select = function(_param) {
|
|
|
24148
24156
|
type: type,
|
|
24149
24157
|
error: error,
|
|
24150
24158
|
open: open,
|
|
24159
|
+
style: style,
|
|
24151
24160
|
children: [
|
|
24152
24161
|
/*#__PURE__*/ jsxs(InputWrapper, {
|
|
24153
24162
|
children: [
|
|
@@ -24195,7 +24204,9 @@ var Select = function(_param) {
|
|
|
24195
24204
|
offset: 4,
|
|
24196
24205
|
detectEdges: false,
|
|
24197
24206
|
style: {
|
|
24198
|
-
padding: "".concat(spacing(1), "px 0")
|
|
24207
|
+
padding: "".concat(spacing(1), "px 0"),
|
|
24208
|
+
maxHeight: maxHeight,
|
|
24209
|
+
overflowY: 'scroll'
|
|
24199
24210
|
},
|
|
24200
24211
|
children: options.map(function(option) {
|
|
24201
24212
|
return /*#__PURE__*/ jsx(MenuItem, _object_spread_props$h(_object_spread$k({
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ export interface BaseSelectProps extends React.InputHTMLAttributes<HTMLSelectEle
|
|
|
8
8
|
leftIcon?: React.ElementType;
|
|
9
9
|
rightIcon?: React.ElementType;
|
|
10
10
|
options?: SelectOption[];
|
|
11
|
+
maxHeight?: string;
|
|
11
12
|
checkbox?: boolean;
|
|
12
13
|
initialValue?: SelectOption;
|
|
13
14
|
type?: 'primary' | 'secondary';
|
|
@@ -16,4 +17,4 @@ export interface SelectProps extends BaseSelectProps {
|
|
|
16
17
|
value: any;
|
|
17
18
|
setValue: (value: string) => void;
|
|
18
19
|
}
|
|
19
|
-
export declare const Select: ({ sz, error, options, checkbox, placeholder, value, setValue, initialValue, type, disabled, ...props }: SelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const Select: ({ sz, error, options, checkbox, placeholder, value, setValue, initialValue, type, style, maxHeight, disabled, ...props }: SelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|