@wireapp/react-ui-kit 9.44.1 → 9.45.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.
@@ -15,6 +15,8 @@ export interface SelectProps<IsMulti extends boolean, Group extends GroupBase<Op
15
15
  options: Option[] | Group[];
16
16
  menuCSS?: CSSObject;
17
17
  wrapperCSS?: CSSObject;
18
+ selectControlCSS?: CSSObject;
19
+ selectContainerCSS?: CSSObject;
18
20
  label?: string;
19
21
  helperText?: string;
20
22
  error?: ReactElement;
@@ -25,5 +27,5 @@ export interface SelectProps<IsMulti extends boolean, Group extends GroupBase<Op
25
27
  overlayMenu?: boolean;
26
28
  menuListHeading?: string;
27
29
  }
28
- export declare const Select: <IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, label, error, helperText, disabled, dataUieName, options, isMulti, wrapperCSS, menuCSS, markInvalid, required, isSearchable, overlayMenu, menuListHeading, ...props }: SelectProps<IsMulti, Group>) => import("@emotion/react/jsx-runtime").JSX.Element;
30
+ export declare const Select: <IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ id, label, error, helperText, disabled, dataUieName, options, isMulti, wrapperCSS, menuCSS, selectControlCSS, selectContainerCSS, markInvalid, required, isSearchable, overlayMenu, menuListHeading, ...props }: SelectProps<IsMulti, Group>) => import("@emotion/react/jsx-runtime").JSX.Element;
29
31
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../src/Form/Select.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,YAAY,EAAC,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAC,SAAS,EAAW,MAAM,gBAAgB,CAAC;AACnD,OAAoB,EAAC,SAAS,EAAe,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iDAAiD,CAAC;AAkBvF,MAAM,MAAM,MAAM,GAAG;IAC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putLabel");
11
11
  const SelectComponents_1 = require("./SelectComponents");
12
12
  const SelectStyles_1 = require("./SelectStyles");
13
13
  const enums_1 = require("../types/enums");
14
- const Select = ({ id, label, error, helperText, disabled = false, dataUieName, options, isMulti, wrapperCSS = {}, menuCSS = {}, markInvalid = false, required = false, isSearchable = false, overlayMenu = true, menuListHeading, ...props }) => {
14
+ const Select = ({ id, label, error, helperText, disabled = false, dataUieName, options, isMulti, wrapperCSS = {}, menuCSS = {}, selectControlCSS = {}, selectContainerCSS = {}, markInvalid = false, required = false, isSearchable = false, overlayMenu = true, menuListHeading, ...props }) => {
15
15
  const theme = (0, react_1.useTheme)();
16
16
  const hasError = !!error;
17
17
  return ((0, jsx_runtime_1.jsxs)("div", {
@@ -27,6 +27,8 @@ const Select = ({ id, label, error, helperText, disabled = false, dataUieName, o
27
27
  theme: theme,
28
28
  markInvalid,
29
29
  menuPosition: overlayMenu ? 'absolute' : 'relative',
30
+ controlCSS: selectControlCSS,
31
+ containerCSS: selectContainerCSS,
30
32
  }), components: {
31
33
  SelectContainer: SelectComponents_1.SelectContainer,
32
34
  DropdownIndicator: SelectComponents_1.DropdownIndicator,
@@ -1,7 +1,7 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: <IsMulti extends boolean = false, Group extends import("react-select").GroupBase<import("./Select").Option> = import("react-select").GroupBase<import("./Select").Option>>({ id, label, error, helperText, disabled, dataUieName, options, isMulti, wrapperCSS, menuCSS, markInvalid, required, isSearchable, overlayMenu, menuListHeading, ...props }: import("./Select").SelectProps<IsMulti, Group>) => import("@emotion/react/jsx-runtime").JSX.Element;
4
+ component: <IsMulti extends boolean = false, Group extends import("react-select").GroupBase<import("./Select").Option> = import("react-select").GroupBase<import("./Select").Option>>({ id, label, error, helperText, disabled, dataUieName, options, isMulti, wrapperCSS, menuCSS, selectControlCSS, selectContainerCSS, markInvalid, required, isSearchable, overlayMenu, menuListHeading, ...props }: import("./Select").SelectProps<IsMulti, Group>) => import("@emotion/react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };