@instructure/ui-select 8.9.1-snapshot.0 → 8.9.2-snapshot.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
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-select
9
+
6
10
  # [8.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15)
7
11
 
8
12
  ### Bug Fixes
package/README.md CHANGED
@@ -5,7 +5,6 @@ category: packages
5
5
  ## ui-select
6
6
 
7
7
  [![npm][npm]][npm-url] 
8
- [![build-status][build-status]][build-status-url] 
9
8
  [![MIT License][license-badge]][license] 
10
9
  [![Code of Conduct][coc-badge]][coc]
11
10
 
@@ -291,9 +291,7 @@ let Select = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
291
291
  };
292
292
 
293
293
  let optionProps = { // passthrough props
294
- ...omitProps(option.props, { ...Option.propTypes,
295
- ...Options.Item.propTypes
296
- }),
294
+ ...omitProps(option.props, [...Option.allowedProps, ...Options.Item.allowedProps]),
297
295
  // props from selectable
298
296
  ...getOptionProps({
299
297
  id
@@ -349,9 +347,7 @@ let Select = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
349
347
  as: "ul",
350
348
  role: "group",
351
349
  renderLabel: renderLabel
352
- }, omitProps(rest, { ...Options.propTypes,
353
- ...Group.propTypes
354
- })), Children.map(children, child => {
350
+ }, omitProps(rest, [...Options.allowedProps, ...Group.allowedProps])), Children.map(children, child => {
355
351
  return this.renderOption(child, {
356
352
  getOptionProps,
357
353
  getDisabledOptionProps
@@ -453,7 +449,7 @@ let Select = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = t
453
449
  rest = _objectWithoutProperties(_this$props6, _excluded2);
454
450
 
455
451
  const interaction = this.interaction;
456
- const passthroughProps = omitProps(rest, Select.propTypes);
452
+ const passthroughProps = omitProps(rest, Select.allowedProps);
457
453
 
458
454
  const _getTriggerProps = getTriggerProps({ ...passthroughProps
459
455
  }),
@@ -305,9 +305,7 @@ let Select = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
305
305
  };
306
306
 
307
307
  let optionProps = { // passthrough props
308
- ...(0, _omitProps.omitProps)(option.props, { ..._Option.Option.propTypes,
309
- ..._Options.Options.Item.propTypes
310
- }),
308
+ ...(0, _omitProps.omitProps)(option.props, [..._Option.Option.allowedProps, ..._Options.Options.Item.allowedProps]),
311
309
  // props from selectable
312
310
  ...getOptionProps({
313
311
  id
@@ -361,9 +359,7 @@ let Select = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
361
359
  as: "ul",
362
360
  role: "group",
363
361
  renderLabel: renderLabel
364
- }, (0, _omitProps.omitProps)(rest, { ..._Options.Options.propTypes,
365
- ..._Group.Group.propTypes
366
- })), _react.Children.map(children, child => {
362
+ }, (0, _omitProps.omitProps)(rest, [..._Options.Options.allowedProps, ..._Group.Group.allowedProps])), _react.Children.map(children, child => {
367
363
  return this.renderOption(child, {
368
364
  getOptionProps,
369
365
  getDisabledOptionProps
@@ -463,7 +459,7 @@ let Select = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _
463
459
  onRequestHideOptions = _this$props6.onRequestHideOptions,
464
460
  rest = (0, _objectWithoutProperties2.default)(_this$props6, _excluded2);
465
461
  const interaction = this.interaction;
466
- const passthroughProps = (0, _omitProps.omitProps)(rest, Select.propTypes);
462
+ const passthroughProps = (0, _omitProps.omitProps)(rest, Select.allowedProps);
467
463
 
468
464
  const _getTriggerProps = getTriggerProps({ ...passthroughProps
469
465
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-select",
3
- "version": "8.9.1-snapshot.0+000c779bb",
3
+ "version": "8.9.2-snapshot.12+6231ada93",
4
4
  "description": "A component for select and autocomplete behavior.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,30 +24,30 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.9.1-snapshot.0+000c779bb",
28
- "@instructure/ui-color-utils": "8.9.1-snapshot.0+000c779bb",
29
- "@instructure/ui-test-locator": "8.9.1-snapshot.0+000c779bb",
30
- "@instructure/ui-test-utils": "8.9.1-snapshot.0+000c779bb",
31
- "@instructure/ui-themes": "8.9.1-snapshot.0+000c779bb"
27
+ "@instructure/ui-babel-preset": "8.9.2-snapshot.12+6231ada93",
28
+ "@instructure/ui-color-utils": "8.9.2-snapshot.12+6231ada93",
29
+ "@instructure/ui-test-locator": "8.9.2-snapshot.12+6231ada93",
30
+ "@instructure/ui-test-utils": "8.9.2-snapshot.12+6231ada93",
31
+ "@instructure/ui-themes": "8.9.2-snapshot.12+6231ada93"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/emotion": "8.9.1-snapshot.0+000c779bb",
36
- "@instructure/shared-types": "8.9.1-snapshot.0+000c779bb",
37
- "@instructure/ui-dom-utils": "8.9.1-snapshot.0+000c779bb",
38
- "@instructure/ui-form-field": "8.9.1-snapshot.0+000c779bb",
39
- "@instructure/ui-icons": "8.9.1-snapshot.0+000c779bb",
40
- "@instructure/ui-options": "8.9.1-snapshot.0+000c779bb",
41
- "@instructure/ui-popover": "8.9.1-snapshot.0+000c779bb",
42
- "@instructure/ui-position": "8.9.1-snapshot.0+000c779bb",
43
- "@instructure/ui-prop-types": "8.9.1-snapshot.0+000c779bb",
44
- "@instructure/ui-react-utils": "8.9.1-snapshot.0+000c779bb",
45
- "@instructure/ui-selectable": "8.9.1-snapshot.0+000c779bb",
46
- "@instructure/ui-testable": "8.9.1-snapshot.0+000c779bb",
47
- "@instructure/ui-text-input": "8.9.1-snapshot.0+000c779bb",
48
- "@instructure/ui-utils": "8.9.1-snapshot.0+000c779bb",
49
- "@instructure/ui-view": "8.9.1-snapshot.0+000c779bb",
50
- "@instructure/uid": "8.9.1-snapshot.0+000c779bb",
35
+ "@instructure/emotion": "8.9.2-snapshot.12+6231ada93",
36
+ "@instructure/shared-types": "8.9.2-snapshot.12+6231ada93",
37
+ "@instructure/ui-dom-utils": "8.9.2-snapshot.12+6231ada93",
38
+ "@instructure/ui-form-field": "8.9.2-snapshot.12+6231ada93",
39
+ "@instructure/ui-icons": "8.9.2-snapshot.12+6231ada93",
40
+ "@instructure/ui-options": "8.9.2-snapshot.12+6231ada93",
41
+ "@instructure/ui-popover": "8.9.2-snapshot.12+6231ada93",
42
+ "@instructure/ui-position": "8.9.2-snapshot.12+6231ada93",
43
+ "@instructure/ui-prop-types": "8.9.2-snapshot.12+6231ada93",
44
+ "@instructure/ui-react-utils": "8.9.2-snapshot.12+6231ada93",
45
+ "@instructure/ui-selectable": "8.9.2-snapshot.12+6231ada93",
46
+ "@instructure/ui-testable": "8.9.2-snapshot.12+6231ada93",
47
+ "@instructure/ui-text-input": "8.9.2-snapshot.12+6231ada93",
48
+ "@instructure/ui-utils": "8.9.2-snapshot.12+6231ada93",
49
+ "@instructure/ui-view": "8.9.2-snapshot.12+6231ada93",
50
+ "@instructure/uid": "8.9.2-snapshot.12+6231ada93",
51
51
  "prop-types": "^15"
52
52
  },
53
53
  "peerDependencies": {
@@ -57,5 +57,5 @@
57
57
  "access": "public"
58
58
  },
59
59
  "sideEffects": false,
60
- "gitHead": "000c779bb16c575bcfeb4a6c71d8cef1d768db01"
60
+ "gitHead": "6231ada93bd4299d640b5d39d7e44b0f54852b2a"
61
61
  }
@@ -381,10 +381,10 @@ class Select extends Component<SelectProps> {
381
381
 
382
382
  let optionProps = {
383
383
  // passthrough props
384
- ...omitProps(option.props, {
385
- ...Option.propTypes,
386
- ...Options.Item.propTypes
387
- }),
384
+ ...omitProps(option.props, [
385
+ ...Option.allowedProps,
386
+ ...Options.Item.allowedProps
387
+ ]),
388
388
  // props from selectable
389
389
  ...getOptionProps({ id }),
390
390
  // Options.Item props
@@ -434,10 +434,7 @@ class Select extends Component<SelectProps> {
434
434
  as="ul"
435
435
  role="group"
436
436
  renderLabel={renderLabel}
437
- {...omitProps(rest, {
438
- ...Options.propTypes,
439
- ...Group.propTypes
440
- })}
437
+ {...omitProps(rest, [...Options.allowedProps, ...Group.allowedProps])}
441
438
  >
442
439
  {Children.map(children, (child) => {
443
440
  return this.renderOption(child, {
@@ -554,7 +551,7 @@ class Select extends Component<SelectProps> {
554
551
  } = this.props
555
552
 
556
553
  const { interaction } = this
557
- const passthroughProps = omitProps(rest, Select.propTypes)
554
+ const passthroughProps = omitProps(rest, Select.allowedProps)
558
555
  const { ref, ...triggerProps } = getTriggerProps({ ...passthroughProps })
559
556
  const isEditable = typeof onInputChange !== 'undefined'
560
557
  // props to ensure screen readers treat uneditable selects as accessible
@@ -32,9 +32,9 @@ import { PositionPropTypes } from '@instructure/ui-position'
32
32
  import { Group } from './Group'
33
33
  import { Option } from './Option'
34
34
 
35
- import type { PropValidators } from '@instructure/shared-types'
35
+ import type { PropValidators, SelectTheme } from '@instructure/shared-types'
36
36
  import type { FormMessage } from '@instructure/ui-form-field'
37
- import type { WithStyleProps } from '@instructure/emotion'
37
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
38
38
  import type {
39
39
  PlacementPropValues,
40
40
  PositionConstraint,
@@ -79,7 +79,9 @@ type PropKeys = keyof SelectOwnProps
79
79
 
80
80
  type AllowedPropKeys = Readonly<Array<PropKeys>>
81
81
 
82
- type SelectProps = SelectOwnProps & WithStyleProps
82
+ type SelectProps = SelectOwnProps & WithStyleProps<SelectTheme, SelectStyle>
83
+
84
+ type SelectStyle = ComponentStyle<'select' | 'icon' | 'assistiveText'>
83
85
 
84
86
  const propTypes: PropValidators<PropKeys> = {
85
87
  /**
@@ -259,5 +261,5 @@ const allowedProps: AllowedPropKeys = [
259
261
  'shouldNotWrap'
260
262
  ]
261
263
 
262
- export type { SelectProps }
264
+ export type { SelectProps, SelectStyle }
263
265
  export { propTypes, allowedProps }
@@ -22,8 +22,8 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import { SelectTheme } from '@instructure/shared-types'
26
- import { SelectProps } from './props'
25
+ import type { SelectTheme } from '@instructure/shared-types'
26
+ import type { SelectProps, SelectStyle } from './props'
27
27
 
28
28
  /**
29
29
  * Generates the style object from the theme and provided additional information
@@ -32,7 +32,10 @@ import { SelectProps } from './props'
32
32
  * @param {Object} state the state of the component, the style is applied to
33
33
  * @return {Object} The final style object, which will be used in the component
34
34
  */
35
- const generateStyle = (componentTheme: SelectTheme, props: SelectProps) => {
35
+ const generateStyle = (
36
+ componentTheme: SelectTheme,
37
+ props: SelectProps
38
+ ): SelectStyle => {
36
39
  const { size } = props
37
40
 
38
41
  const iconSizeVariants = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Select/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAyB3C,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAG1C;;;;;GAKG;AACH,cAEM,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IACzC,MAAM,CAAC,QAAQ,CAAC,WAAW,YAAW;IAEtC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;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+ import type { PropValidators, SelectTheme } from '@instructure/shared-types';
3
3
  import type { FormMessage } from '@instructure/ui-form-field';
4
- import type { WithStyleProps } from '@instructure/emotion';
4
+ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
5
5
  import type { PlacementPropValues, PositionConstraint, PositionMountNode } from '@instructure/ui-position';
6
6
  declare type SelectOwnProps = {
7
7
  renderLabel: React.ReactNode | ((...args: any[]) => any);
@@ -38,9 +38,10 @@ declare type SelectOwnProps = {
38
38
  };
39
39
  declare type PropKeys = keyof SelectOwnProps;
40
40
  declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
41
- declare type SelectProps = SelectOwnProps & WithStyleProps;
41
+ declare type SelectProps = SelectOwnProps & WithStyleProps<SelectTheme, SelectStyle>;
42
+ declare type SelectStyle = ComponentStyle<'select' | 'icon' | 'assistiveText'>;
42
43
  declare const propTypes: PropValidators<PropKeys>;
43
44
  declare const allowedProps: AllowedPropKeys;
44
- export type { SelectProps };
45
+ export type { SelectProps, SelectStyle };
45
46
  export { propTypes, allowedProps };
46
47
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Select/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AAEjC,aAAK,cAAc,GAAG;IACpB,WAAW,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACxD,UAAU,CAAC,EAAE,MAAM,CAAA;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from '@instructure/shared-types';
2
+ import type { SelectProps, SelectStyle } from './props';
3
3
  /**
4
4
  * Generates the style object from the theme and provided additional information
5
5
  * @param {Object} componentTheme The theme variable object.
@@ -7,28 +7,6 @@ import { SelectProps } from './props';
7
7
  * @param {Object} state the state of the component, the style is applied to
8
8
  * @return {Object} The final style object, which will be used in the component
9
9
  */
10
- declare const generateStyle: (componentTheme: SelectTheme, props: SelectProps) => {
11
- select: {
12
- label: string;
13
- fontSize: string | 0;
14
- fontFamily: string;
15
- fontWeight: number;
16
- color: string;
17
- };
18
- icon: {
19
- fontSize: string | 0;
20
- label: string;
21
- } | {
22
- fontSize: string | 0;
23
- label: string;
24
- } | {
25
- fontSize: string | 0;
26
- label: string;
27
- };
28
- assistiveText: {
29
- label: string;
30
- display: string;
31
- };
32
- };
10
+ declare const generateStyle: (componentTheme: SelectTheme, props: SelectProps) => SelectStyle;
33
11
  export default generateStyle;
34
12
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Select/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,mBAAoB,WAAW,SAAS,WAAW;;;;;;;;;;;;;;;;;;;;;;CA0BrE,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/Select/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAEvD;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,mBACD,WAAW,SACpB,WAAW,KACjB,WA0BF,CAAA;AAED,eAAe,aAAa,CAAA"}