@instructure/ui-select 8.9.2-snapshot.3 → 8.10.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.
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.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-select
9
+
6
10
  ## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16)
7
11
 
8
12
  **Note:** Version bump only for package @instructure/ui-select
@@ -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.2-snapshot.3+ddc7880d5",
3
+ "version": "8.10.0",
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.2-snapshot.3+ddc7880d5",
28
- "@instructure/ui-color-utils": "8.9.2-snapshot.3+ddc7880d5",
29
- "@instructure/ui-test-locator": "8.9.2-snapshot.3+ddc7880d5",
30
- "@instructure/ui-test-utils": "8.9.2-snapshot.3+ddc7880d5",
31
- "@instructure/ui-themes": "8.9.2-snapshot.3+ddc7880d5"
27
+ "@instructure/ui-babel-preset": "8.10.0",
28
+ "@instructure/ui-color-utils": "8.10.0",
29
+ "@instructure/ui-test-locator": "8.10.0",
30
+ "@instructure/ui-test-utils": "8.10.0",
31
+ "@instructure/ui-themes": "8.10.0"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/emotion": "8.9.2-snapshot.3+ddc7880d5",
36
- "@instructure/shared-types": "8.9.2-snapshot.3+ddc7880d5",
37
- "@instructure/ui-dom-utils": "8.9.2-snapshot.3+ddc7880d5",
38
- "@instructure/ui-form-field": "8.9.2-snapshot.3+ddc7880d5",
39
- "@instructure/ui-icons": "8.9.2-snapshot.3+ddc7880d5",
40
- "@instructure/ui-options": "8.9.2-snapshot.3+ddc7880d5",
41
- "@instructure/ui-popover": "8.9.2-snapshot.3+ddc7880d5",
42
- "@instructure/ui-position": "8.9.2-snapshot.3+ddc7880d5",
43
- "@instructure/ui-prop-types": "8.9.2-snapshot.3+ddc7880d5",
44
- "@instructure/ui-react-utils": "8.9.2-snapshot.3+ddc7880d5",
45
- "@instructure/ui-selectable": "8.9.2-snapshot.3+ddc7880d5",
46
- "@instructure/ui-testable": "8.9.2-snapshot.3+ddc7880d5",
47
- "@instructure/ui-text-input": "8.9.2-snapshot.3+ddc7880d5",
48
- "@instructure/ui-utils": "8.9.2-snapshot.3+ddc7880d5",
49
- "@instructure/ui-view": "8.9.2-snapshot.3+ddc7880d5",
50
- "@instructure/uid": "8.9.2-snapshot.3+ddc7880d5",
35
+ "@instructure/emotion": "8.10.0",
36
+ "@instructure/shared-types": "8.10.0",
37
+ "@instructure/ui-dom-utils": "8.10.0",
38
+ "@instructure/ui-form-field": "8.10.0",
39
+ "@instructure/ui-icons": "8.10.0",
40
+ "@instructure/ui-options": "8.10.0",
41
+ "@instructure/ui-popover": "8.10.0",
42
+ "@instructure/ui-position": "8.10.0",
43
+ "@instructure/ui-prop-types": "8.10.0",
44
+ "@instructure/ui-react-utils": "8.10.0",
45
+ "@instructure/ui-selectable": "8.10.0",
46
+ "@instructure/ui-testable": "8.10.0",
47
+ "@instructure/ui-text-input": "8.10.0",
48
+ "@instructure/ui-utils": "8.10.0",
49
+ "@instructure/ui-view": "8.10.0",
50
+ "@instructure/uid": "8.10.0",
51
51
  "prop-types": "^15"
52
52
  },
53
53
  "peerDependencies": {
@@ -56,6 +56,5 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "sideEffects": false,
60
- "gitHead": "ddc7880d5a2f7d4d0596332e8d49cb9b1de68024"
59
+ "sideEffects": false
61
60
  }
@@ -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;;;;;;;;;;;;;;;;;;;;;;;MAgClB;IAED,MAAM,CAAC,MAAM,gBAAS;IACtB,MAAM,CAAC,KAAK,eAAQ;IAEpB,iBAAiB;IAIjB,kBAAkB;IAOlB,KAAK;;MAEJ;IAED,UAAU,SAAgB;IAC1B,SAAS,SAA8B;IACvC,MAAM,OAAO;IACb,eAAe,YAAY;IAC3B,KAAK,OAAO;IAEZ,UAAU,UAAK;IAEf,aAAa,SAAK;IAElB,KAAK;IAKL,IAAI,OAAO,SAEV;IAED,IAAI,EAAE,WAEL;IAED,IAAI,KAAK,cAGR;IAED,IAAI,WAAW,0DAEd;IAED,IAAI,mBAAmB,SAyBtB;IAED,IAAI,gBAAgB,QA8BnB;IAGD,cAAc,sBASb;IAGD,aAAa,sBASZ;IAGD,uBAAuB,sBAEtB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AY;IAC3B,KAAK,OAAO;IAEZ,UAAU,UAAK;IAEf,aAAa,SAAK;IAElB,KAAK;IAKL,IAAI,OAAO,SAEV;IAED,IAAI,EAAE,WAEL;IAED,IAAI,KAAK,cAGR;IAED,IAAI,WAAW,0DAEd;IAED,IAAI,mBAAmB,SAyBtB;IAED,IAAI,gBAAgB,QA8BnB;IAGD,cAAc,sBASb;IAGD,aAAa,sBASZ;IAGD,uBAAuB,sBAEtB;IAGD,cAAc,CAAC,EAAE,KAAA;IA0BjB,eAAe,CAAC,KAAK,KAAA,EAAE,EAAE,KAAA;IAQzB,gBAAgB;;;0CA4BC,KAAK;;;;;;uCAmCiB,KAAK;;;;;;;;;;;IAa5C,YAAY,CAAC,MAAM,KAAA,EAAE,IAAI,KAAA;IAwDzB,WAAW,CAAC,KAAK,KAAA,EAAE,IAAI,KAAA;IA0CvB,UAAU,CAAC,IAAI,KAAA;IA6Df,UAAU;IAcV,WAAW,CAAC,IAAI,KAAA;IAyEhB,MAAM;CAwDP;AAED,eAAe,MAAM,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import type { PropValidators } from '@instructure/shared-types';
2
+ 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;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAA;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,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,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,cAAc,CAAA;AAEpC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,WAAW,GAAG,cAAc,GAAG,cAAc,CAAC,WAAW,EAAE,WAAW,CAAC,CAAA;AAE5E,aAAK,WAAW,GAAG,cAAc,CAAC,QAAQ,GAAG,MAAM,GAAG,eAAe,CAAC,CAAA;AAEtE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CA8IvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAgCnB,CAAA;AAED,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
- import { SelectTheme } from '@instructure/shared-types';
2
- import { SelectProps } from './props';
1
+ import type { SelectTheme } 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"}
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.