@paubox/ui 0.15.1 → 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 CHANGED
@@ -24062,7 +24062,7 @@ function _templateObject1$a() {
24062
24062
  }
24063
24063
  function _templateObject2$8() {
24064
24064
  var data = _tagged_template_literal$f([
24065
- "\n flex: 1;\n cursor: pointer;\n border: none;\n background-color: transparent;\n\n -webkit-appearance: none;\n -moz-appearance: none;\n &::-ms-expand {\n display: none;\n }\n &::placeholder {\n color: ",
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: ",
24066
24066
  ";\n }\n color: ",
24067
24067
  ";\n padding: ",
24068
24068
  ";\n padding-right: 2rem;\n outline: none;\n &::placeholder {\n color: ",
@@ -24130,7 +24130,7 @@ var IconWrapper$1 = styled.div(_templateObject3$6(), function(param) {
24130
24130
  });
24131
24131
  var SelectOption = styled.option(_templateObject4$4(), $paragraph100Semibold, textSecondary);
24132
24132
  var Select = function(_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_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, [
24134
24134
  "sz",
24135
24135
  "error",
24136
24136
  "options",
@@ -24141,6 +24141,7 @@ var Select = function(_param) {
24141
24141
  "initialValue",
24142
24142
  "type",
24143
24143
  "style",
24144
+ "maxHeight",
24144
24145
  "disabled"
24145
24146
  ]);
24146
24147
  var _options_find;
@@ -24203,7 +24204,9 @@ var Select = function(_param) {
24203
24204
  offset: 4,
24204
24205
  detectEdges: false,
24205
24206
  style: {
24206
- padding: "".concat(spacing(1), "px 0")
24207
+ padding: "".concat(spacing(1), "px 0"),
24208
+ maxHeight: maxHeight,
24209
+ overflowY: 'scroll'
24207
24210
  },
24208
24211
  children: options.map(function(option) {
24209
24212
  return /*#__PURE__*/ jsx(MenuItem, _object_spread_props$h(_object_spread$k({
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "0.15.1",
5
+ "version": "0.15.2",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -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, style, 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;