@amboss/design-system 2.2.1 → 2.2.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.
@@ -26,4 +26,4 @@ export type CommonSelectProps = {
26
26
  value: string | string[] | null;
27
27
  };
28
28
  export type SelectProps = CommonSelectProps & FormFieldProps;
29
- export declare function Select({ options, name, value, placeholder, emptyStateMessage, hasError, filterMethod, formatSelectedOptionsLabel, onChange, onBlur, onFocus, maxHeight, autoComplete, multiple, ...rest }: SelectProps): React.ReactElement;
29
+ export declare function Select({ options, name, value, placeholder, emptyStateMessage, hasError, filterMethod, formatSelectedOptionsLabel, onChange, onBlur, onFocus, maxHeight, autoComplete, multiple, privateProps, ...rest }: SelectProps): React.ReactElement;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return Select}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_FormField=require("../FormField/FormField"),_BaseSelect=require("./BaseSelect"),_MultiSelect=require("./MultiSelect"),defaultFilterMethod=(option,value)=>option.label.toLowerCase().indexOf(value.toLowerCase())>-1;function Select({options=[],name,value,placeholder,emptyStateMessage,hasError,filterMethod=defaultFilterMethod,formatSelectedOptionsLabel,onChange=()=>{},onBlur=()=>null,onFocus=()=>null,maxHeight=230,autoComplete="on",multiple=!1,...rest}){let{disabled,label}=rest;return _react.default.createElement(_FormField.FormField,{"data-ds-id":"Select",...rest},multiple?_react.default.createElement(_MultiSelect.MultiSelect,{name:name,options:options,value:value,placeholder:placeholder,emptyStateMessage:emptyStateMessage,hasError:hasError,disabled:disabled,filterMethod:filterMethod,onChange:onChange,onFocus:onFocus,onBlur:onBlur,maxHeight:maxHeight,autoComplete:autoComplete,label:label,formatSelectedOptionsLabel:formatSelectedOptionsLabel}):_react.default.createElement(_BaseSelect.BaseSelect,{name:name,options:options,value:value,placeholder:placeholder,emptyStateMessage:emptyStateMessage,hasError:hasError,disabled:disabled,filterMethod:filterMethod,onChange:onChange,onFocus:onFocus,onBlur:onBlur,maxHeight:maxHeight,autoComplete:autoComplete,label:label}))}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Select",{enumerable:!0,get:function(){return Select}});const _react=require("@swc/helpers/_/_interop_require_default")._(require("react")),_FormField=require("../FormField/FormField"),_BaseSelect=require("./BaseSelect"),_MultiSelect=require("./MultiSelect"),defaultFilterMethod=(option,value)=>option.label.toLowerCase().indexOf(value.toLowerCase())>-1;function Select({options=[],name,value,placeholder,emptyStateMessage,hasError,filterMethod=defaultFilterMethod,formatSelectedOptionsLabel,onChange=()=>{},onBlur=()=>null,onFocus=()=>null,maxHeight=230,autoComplete="on",multiple=!1,privateProps,...rest}){let{disabled,label}=rest;return _react.default.createElement(_FormField.FormField,{"data-ds-id":"Select",...rest},multiple?_react.default.createElement(_MultiSelect.MultiSelect,{name:name,options:options,value:value,placeholder:placeholder,emptyStateMessage:emptyStateMessage,hasError:hasError,disabled:disabled,filterMethod:filterMethod,onChange:onChange,onFocus:onFocus,onBlur:onBlur,maxHeight:maxHeight,autoComplete:autoComplete,label:label,formatSelectedOptionsLabel:formatSelectedOptionsLabel}):_react.default.createElement(_BaseSelect.BaseSelect,{name:name,options:options,value:value,placeholder:placeholder,emptyStateMessage:emptyStateMessage,hasError:hasError,disabled:disabled,filterMethod:filterMethod,onChange:onChange,onFocus:onFocus,onBlur:onBlur,maxHeight:maxHeight,autoComplete:autoComplete,label:label,privateProps:privateProps}))}
@@ -26,4 +26,4 @@ export type CommonSelectProps = {
26
26
  value: string | string[] | null;
27
27
  };
28
28
  export type SelectProps = CommonSelectProps & FormFieldProps;
29
- export declare function Select({ options, name, value, placeholder, emptyStateMessage, hasError, filterMethod, formatSelectedOptionsLabel, onChange, onBlur, onFocus, maxHeight, autoComplete, multiple, ...rest }: SelectProps): React.ReactElement;
29
+ export declare function Select({ options, name, value, placeholder, emptyStateMessage, hasError, filterMethod, formatSelectedOptionsLabel, onChange, onBlur, onFocus, maxHeight, autoComplete, multiple, privateProps, ...rest }: SelectProps): React.ReactElement;
@@ -1 +1 @@
1
- import React from"react";import{FormField}from"../FormField/FormField";import{BaseSelect}from"./BaseSelect";import{MultiSelect}from"./MultiSelect";let defaultFilterMethod=(option,value)=>option.label.toLowerCase().indexOf(value.toLowerCase())>-1;export function Select({options=[],name,value,placeholder,emptyStateMessage,hasError,filterMethod=defaultFilterMethod,formatSelectedOptionsLabel,onChange=()=>{},onBlur=()=>null,onFocus=()=>null,maxHeight=230,autoComplete="on",multiple=!1,...rest}){let{disabled,label}=rest;return React.createElement(FormField,{"data-ds-id":"Select",...rest},multiple?React.createElement(MultiSelect,{name:name,options:options,value:value,placeholder:placeholder,emptyStateMessage:emptyStateMessage,hasError:hasError,disabled:disabled,filterMethod:filterMethod,onChange:onChange,onFocus:onFocus,onBlur:onBlur,maxHeight:maxHeight,autoComplete:autoComplete,label:label,formatSelectedOptionsLabel:formatSelectedOptionsLabel}):React.createElement(BaseSelect,{name:name,options:options,value:value,placeholder:placeholder,emptyStateMessage:emptyStateMessage,hasError:hasError,disabled:disabled,filterMethod:filterMethod,onChange:onChange,onFocus:onFocus,onBlur:onBlur,maxHeight:maxHeight,autoComplete:autoComplete,label:label}))}
1
+ import React from"react";import{FormField}from"../FormField/FormField";import{BaseSelect}from"./BaseSelect";import{MultiSelect}from"./MultiSelect";let defaultFilterMethod=(option,value)=>option.label.toLowerCase().indexOf(value.toLowerCase())>-1;export function Select({options=[],name,value,placeholder,emptyStateMessage,hasError,filterMethod=defaultFilterMethod,formatSelectedOptionsLabel,onChange=()=>{},onBlur=()=>null,onFocus=()=>null,maxHeight=230,autoComplete="on",multiple=!1,privateProps,...rest}){let{disabled,label}=rest;return React.createElement(FormField,{"data-ds-id":"Select",...rest},multiple?React.createElement(MultiSelect,{name:name,options:options,value:value,placeholder:placeholder,emptyStateMessage:emptyStateMessage,hasError:hasError,disabled:disabled,filterMethod:filterMethod,onChange:onChange,onFocus:onFocus,onBlur:onBlur,maxHeight:maxHeight,autoComplete:autoComplete,label:label,formatSelectedOptionsLabel:formatSelectedOptionsLabel}):React.createElement(BaseSelect,{name:name,options:options,value:value,placeholder:placeholder,emptyStateMessage:emptyStateMessage,hasError:hasError,disabled:disabled,filterMethod:filterMethod,onChange:onChange,onFocus:onFocus,onBlur:onBlur,maxHeight:maxHeight,autoComplete:autoComplete,label:label,privateProps:privateProps}))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amboss/design-system",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "the design system for AMBOSS products",
5
5
  "author": "AMBOSS",
6
6
  "license": "ISC",