@leafygreen-ui/combobox 6.0.10 → 6.0.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # @leafygreen-ui/combobox
2
2
 
3
+ ## 6.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 4fcf2e94: Type assert children as `Array<React.ReactNode>` inside the internal function `renderedMenuContents` and add explicit return type to internal function `renderCombobox`.
8
+ - Updated dependencies [4fcf2e94]
9
+ - Updated dependencies [4fcf2e94]
10
+ - Updated dependencies [4fcf2e94]
11
+ - Updated dependencies [4fcf2e94]
12
+ - Updated dependencies [4fcf2e94]
13
+ - Updated dependencies [4fcf2e94]
14
+ - @leafygreen-ui/icon@11.22.2
15
+ - @leafygreen-ui/lib@11.0.0
16
+ - @leafygreen-ui/checkbox@12.0.16
17
+ - @leafygreen-ui/popover@11.0.16
18
+ - @leafygreen-ui/icon-button@15.0.17
19
+ - @leafygreen-ui/inline-definition@6.0.11
20
+ - @leafygreen-ui/input-option@1.0.9
21
+ - @leafygreen-ui/leafygreen-provider@3.1.7
22
+ - @leafygreen-ui/typography@16.5.5
23
+
24
+ ## 6.0.11
25
+
26
+ ### Patch Changes
27
+
28
+ - c11bbc29: Fixes problem with ts-docs not being available in bundle.
29
+ - Updated dependencies [c11bbc29]
30
+ - @leafygreen-ui/checkbox@12.0.15
31
+ - @leafygreen-ui/emotion@4.0.7
32
+ - @leafygreen-ui/hooks@7.7.8
33
+ - @leafygreen-ui/icon@11.22.1
34
+ - @leafygreen-ui/icon-button@15.0.16
35
+ - @leafygreen-ui/inline-definition@6.0.10
36
+ - @leafygreen-ui/input-option@1.0.8
37
+ - @leafygreen-ui/leafygreen-provider@3.1.6
38
+ - @leafygreen-ui/lib@10.4.3
39
+ - @leafygreen-ui/palette@4.0.7
40
+ - @leafygreen-ui/popover@11.0.15
41
+ - @leafygreen-ui/tokens@2.1.4
42
+ - @leafygreen-ui/typography@16.5.4
43
+
3
44
  ## 6.0.10
4
45
 
5
46
  ### Patch Changes
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { StoryMetaType } from '@leafygreen-ui/lib';
3
3
  import { Chip } from './Chip';
4
4
  declare const meta: StoryMetaType<typeof Chip>;
5
5
  export default meta;
6
- export declare const Generated: () => JSX.Element;
6
+ export declare const Generated: () => React.JSX.Element;
7
7
  //# sourceMappingURL=Chip.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.stories.d.ts","sourceRoot":"","sources":["../../src/Chip/Chip.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,IAAI,CAuBpC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,SAAS,mBAAc,CAAC"}
1
+ {"version":3,"file":"Chip.stories.d.ts","sourceRoot":"","sources":["../../src/Chip/Chip.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,IAAI,CAuBpC,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,SAAS,yBAAc,CAAC"}
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { ComboboxProps } from '../Combobox.types';
4
4
  /**
@@ -6,7 +6,7 @@ import { ComboboxProps } from '../Combobox.types';
6
6
  * allowing the user to either type a value directly or select a value from the list.
7
7
  * Can be configured to select a single or multiple options.
8
8
  */
9
- export declare function Combobox<M extends boolean>({ children, label, description, placeholder, 'aria-label': ariaLabel, disabled, size, darkMode: darkModeProp, state, errorMessage, searchState, searchEmptyMessage, searchErrorMessage, searchLoadingMessage, filteredOptions, onFilter, clearable, onClear, overflow, multiselect, initialValue, onChange, value, chipTruncationLocation, chipCharacterLimit, className, usePortal, portalClassName, portalContainer, scrollContainer, popoverZIndex, ...rest }: ComboboxProps<M>): JSX.Element;
9
+ export declare function Combobox<M extends boolean>({ children, label, description, placeholder, 'aria-label': ariaLabel, disabled, size, darkMode: darkModeProp, state, errorMessage, searchState, searchEmptyMessage, searchErrorMessage, searchLoadingMessage, filteredOptions, onFilter, clearable, onClear, overflow, multiselect, initialValue, onChange, value, chipTruncationLocation, chipCharacterLimit, className, usePortal, portalClassName, portalContainer, scrollContainer, popoverZIndex, ...rest }: ComboboxProps<M>): React.JSX.Element;
10
10
  export declare namespace Combobox {
11
11
  var propTypes: {
12
12
  multiselect: PropTypes.Requireable<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../src/Combobox/Combobox.tsx"],"names":[],"mappings":";AAoBA,OAAO,SAAS,MAAM,YAAY,CAAC;AAmBnC,OAAO,EAEL,aAAa,EAUd,MAAM,mBAAmB,CAAC;AA2C3B;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,OAAO,EAAE,EAC1C,QAAQ,EACR,KAAK,EACL,WAAW,EACX,WAAsB,EACtB,YAAY,EAAE,SAAS,EACvB,QAAgB,EAChB,IAA2B,EAC3B,QAAQ,EAAE,YAAY,EACtB,KAAc,EACd,YAAY,EACZ,WAAqB,EACrB,kBAAuC,EACvC,kBAA6C,EAC7C,oBAA2C,EAC3C,eAAe,EACf,QAAQ,EACR,SAAgB,EAChB,OAAO,EACP,QAA2B,EAC3B,WAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,sBAAsB,EACtB,kBAAuB,EACvB,SAAS,EACT,SAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,aAAa,EACb,GAAG,IAAI,EACR,EAAE,aAAa,CAAC,CAAC,CAAC,eAguClB;yBAjwCe,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8yCxB;;;GAGG"}
1
+ {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../src/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAYN,MAAM,OAAO,CAAC;AAQf,OAAO,SAAS,MAAM,YAAY,CAAC;AAmBnC,OAAO,EAEL,aAAa,EAUd,MAAM,mBAAmB,CAAC;AA2C3B;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,OAAO,EAAE,EAC1C,QAAQ,EACR,KAAK,EACL,WAAW,EACX,WAAsB,EACtB,YAAY,EAAE,SAAS,EACvB,QAAgB,EAChB,IAA2B,EAC3B,QAAQ,EAAE,YAAY,EACtB,KAAc,EACd,YAAY,EACZ,WAAqB,EACrB,kBAAuC,EACvC,kBAA6C,EAC7C,oBAA2C,EAC3C,eAAe,EACf,QAAQ,EACR,SAAgB,EAChB,OAAO,EACP,QAA2B,EAC3B,WAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,sBAAsB,EACtB,kBAAuB,EACvB,SAAS,EACT,SAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,aAAa,EACb,GAAG,IAAI,EACR,EAAE,aAAa,CAAC,CAAC,CAAC,qBAguClB;yBAjwCe,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8yCxB;;;GAGG"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import PropTypes from 'prop-types';
3
2
  import { ComboboxGroupProps } from '../Combobox.types';
4
3
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxGroup.d.ts","sourceRoot":"","sources":["../../src/ComboboxGroup/ComboboxGroup.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAMnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAqBlC;AAUD,wBAAgB,aAAa,CAAC,CAAC,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAEhE;yBAFe,aAAa"}
1
+ {"version":3,"file":"ComboboxGroup.d.ts","sourceRoot":"","sources":["../../src/ComboboxGroup/ComboboxGroup.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAMnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,QAAQ,GACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAqBlC;AAUD,wBAAgB,aAAa,CAAC,CAAC,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAEhE;yBAFe,aAAa"}
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { StoryMetaType } from '@leafygreen-ui/lib';
3
3
  import { InternalComboboxGroup } from './ComboboxGroup';
4
4
  declare const meta: StoryMetaType<typeof InternalComboboxGroup>;
5
5
  export default meta;
6
- export declare const Generated: () => JSX.Element;
6
+ export declare const Generated: () => React.JSX.Element;
7
7
  //# sourceMappingURL=ComboboxGroup.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxGroup.stories.d.ts","sourceRoot":"","sources":["../../src/ComboboxGroup/ComboboxGroup.stories.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,QAAA,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,qBAAqB,CAiCrD,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,SAAS,mBAAc,CAAC"}
1
+ {"version":3,"file":"ComboboxGroup.stories.d.ts","sourceRoot":"","sources":["../../src/ComboboxGroup/ComboboxGroup.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAInD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,QAAA,MAAM,IAAI,EAAE,aAAa,CAAC,OAAO,qBAAqB,CAiCrD,CAAC;AACF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,SAAS,yBAAc,CAAC"}
@@ -16,7 +16,7 @@ export declare const getGlyphs: ({ withIcons, isSelected, glyph, optionTextId, d
16
16
  theme: Theme;
17
17
  isFocused: boolean;
18
18
  }) => {
19
- leftGlyph: JSX.Element | null;
20
- rightGlyph: false | JSX.Element;
19
+ leftGlyph: React.JSX.Element | null;
20
+ rightGlyph: false | React.JSX.Element;
21
21
  };
22
22
  //# sourceMappingURL=getGlyphs.d.ts.map