@instructure/ui-options 8.10.1-snapshot.8 → 8.10.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-options
9
+
10
+ ## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
11
+
12
+ **Note:** Version bump only for package @instructure/ui-options
13
+
6
14
  # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-options
@@ -40,6 +40,11 @@ id: Options.Item
40
40
  **/
41
41
 
42
42
  let Item = (_dec = withStyle(generateStyles, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Item extends Component {
43
+ constructor(...args) {
44
+ super(...args);
45
+ this.ref = null;
46
+ }
47
+
43
48
  componentDidMount() {
44
49
  var _this$props$makeStyle, _this$props;
45
50
 
@@ -83,7 +88,10 @@ let Item = (_dec = withStyle(generateStyles, generateComponentTheme), _dec2 = te
83
88
  const passthroughProps = omitProps(this.props, Item.allowedProps);
84
89
  return jsx(ElementType, {
85
90
  role: "none",
86
- css: styles === null || styles === void 0 ? void 0 : styles.item
91
+ css: styles === null || styles === void 0 ? void 0 : styles.item,
92
+ ref: element => {
93
+ this.ref = element;
94
+ }
87
95
  }, jsx("span", Object.assign({}, passthroughProps, {
88
96
  css: styles === null || styles === void 0 ? void 0 : styles.container,
89
97
  role: role
@@ -45,6 +45,12 @@ category: components
45
45
  let Options = (_dec = withStyle(generateStyles, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Options extends Component {
46
46
  constructor(...args) {
47
47
  super(...args);
48
+ this.ref = null;
49
+
50
+ this.handleRef = el => {
51
+ this.ref = el;
52
+ };
53
+
48
54
  this._labelId = uid('Options-label');
49
55
  }
50
56
 
@@ -113,12 +119,13 @@ let Options = (_dec = withStyle(generateStyles, generateComponentTheme), _dec2 =
113
119
  const _this$props4 = this.props,
114
120
  as = _this$props4.as,
115
121
  role = _this$props4.role,
116
- elementRef = _this$props4.elementRef,
117
122
  renderLabel = _this$props4.renderLabel,
123
+ elementRef = _this$props4.elementRef,
118
124
  styles = _this$props4.styles;
119
125
  return jsx("div", {
120
126
  css: styles === null || styles === void 0 ? void 0 : styles.options,
121
- role: "presentation"
127
+ role: "presentation",
128
+ ref: this.handleRef
122
129
  }, renderLabel && this.renderLabel(), jsx(View, Object.assign({}, passthroughProps, {
123
130
  elementRef: elementRef,
124
131
  css: styles === null || styles === void 0 ? void 0 : styles.list,
@@ -30,6 +30,11 @@ id: Options.Item
30
30
  ---
31
31
  **/
32
32
  let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Item extends _react.Component {
33
+ constructor(...args) {
34
+ super(...args);
35
+ this.ref = null;
36
+ }
37
+
33
38
  componentDidMount() {
34
39
  var _this$props$makeStyle, _this$props;
35
40
 
@@ -73,7 +78,10 @@ let Item = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
73
78
  const passthroughProps = (0, _uiReactUtils.omitProps)(this.props, Item.allowedProps);
74
79
  return (0, _emotion.jsx)(ElementType, {
75
80
  role: "none",
76
- css: styles === null || styles === void 0 ? void 0 : styles.item
81
+ css: styles === null || styles === void 0 ? void 0 : styles.item,
82
+ ref: element => {
83
+ this.ref = element;
84
+ }
77
85
  }, (0, _emotion.jsx)("span", Object.assign({}, passthroughProps, {
78
86
  css: styles === null || styles === void 0 ? void 0 : styles.container,
79
87
  role: role
@@ -39,6 +39,12 @@ category: components
39
39
  let Options = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Options extends _react.Component {
40
40
  constructor(...args) {
41
41
  super(...args);
42
+ this.ref = null;
43
+
44
+ this.handleRef = el => {
45
+ this.ref = el;
46
+ };
47
+
42
48
  this._labelId = (0, _uid.uid)('Options-label');
43
49
  }
44
50
 
@@ -108,12 +114,13 @@ let Options = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
108
114
  const _this$props4 = this.props,
109
115
  as = _this$props4.as,
110
116
  role = _this$props4.role,
111
- elementRef = _this$props4.elementRef,
112
117
  renderLabel = _this$props4.renderLabel,
118
+ elementRef = _this$props4.elementRef,
113
119
  styles = _this$props4.styles;
114
120
  return (0, _emotion.jsx)("div", {
115
121
  css: styles === null || styles === void 0 ? void 0 : styles.options,
116
- role: "presentation"
122
+ role: "presentation",
123
+ ref: this.handleRef
117
124
  }, renderLabel && this.renderLabel(), (0, _emotion.jsx)(_uiView.View, Object.assign({}, passthroughProps, {
118
125
  elementRef: elementRef,
119
126
  css: styles === null || styles === void 0 ? void 0 : styles.list,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-options",
3
- "version": "8.10.1-snapshot.8+21f46f4e3",
3
+ "version": "8.10.2",
4
4
  "description": "A view-only component for composing interactive lists and menus.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,22 +24,22 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
28
- "@instructure/ui-color-utils": "8.10.1-snapshot.8+21f46f4e3",
29
- "@instructure/ui-test-locator": "8.10.1-snapshot.8+21f46f4e3",
30
- "@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
31
- "@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
27
+ "@instructure/ui-babel-preset": "8.10.2",
28
+ "@instructure/ui-color-utils": "8.10.2",
29
+ "@instructure/ui-test-locator": "8.10.2",
30
+ "@instructure/ui-test-utils": "8.10.2",
31
+ "@instructure/ui-themes": "8.10.2"
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.13.10",
35
- "@instructure/emotion": "8.10.1-snapshot.8+21f46f4e3",
36
- "@instructure/shared-types": "8.10.1-snapshot.8+21f46f4e3",
37
- "@instructure/ui-icons": "8.10.1-snapshot.8+21f46f4e3",
38
- "@instructure/ui-prop-types": "8.10.1-snapshot.8+21f46f4e3",
39
- "@instructure/ui-react-utils": "8.10.1-snapshot.8+21f46f4e3",
40
- "@instructure/ui-testable": "8.10.1-snapshot.8+21f46f4e3",
41
- "@instructure/ui-view": "8.10.1-snapshot.8+21f46f4e3",
42
- "@instructure/uid": "8.10.1-snapshot.8+21f46f4e3",
35
+ "@instructure/emotion": "8.10.2",
36
+ "@instructure/shared-types": "8.10.2",
37
+ "@instructure/ui-icons": "8.10.2",
38
+ "@instructure/ui-prop-types": "8.10.2",
39
+ "@instructure/ui-react-utils": "8.10.2",
40
+ "@instructure/ui-testable": "8.10.2",
41
+ "@instructure/ui-view": "8.10.2",
42
+ "@instructure/uid": "8.10.2",
43
43
  "prop-types": "^15"
44
44
  },
45
45
  "peerDependencies": {
@@ -48,6 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "sideEffects": false,
52
- "gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
51
+ "sideEffects": false
53
52
  }
@@ -62,6 +62,8 @@ class Item extends Component<OptionsItemProps> {
62
62
  children: null
63
63
  } as const
64
64
 
65
+ ref: Element | null = null
66
+
65
67
  componentDidMount() {
66
68
  this.props.makeStyles?.()
67
69
  }
@@ -104,7 +106,14 @@ class Item extends Component<OptionsItemProps> {
104
106
  const passthroughProps = omitProps(this.props, Item.allowedProps)
105
107
 
106
108
  return (
107
- <ElementType role="none" css={styles?.item}>
109
+ <ElementType
110
+ role="none"
111
+ css={styles?.item}
112
+ // @ts-expect-error TODO fix produces an union that is too complex to represent
113
+ ref={(element: any) => {
114
+ this.ref = element
115
+ }}
116
+ >
108
117
  <span {...passthroughProps} css={styles?.container} role={role}>
109
118
  {children}
110
119
  </span>
@@ -71,6 +71,12 @@ class Options extends Component<OptionsProps> {
71
71
  static Item = Item
72
72
  static Separator = Separator
73
73
 
74
+ ref: Element | null = null
75
+
76
+ handleRef = (el: Element | null) => {
77
+ this.ref = el
78
+ }
79
+
74
80
  componentDidMount() {
75
81
  this.props.makeStyles?.()
76
82
  }
@@ -133,9 +139,10 @@ class Options extends Component<OptionsProps> {
133
139
  Options
134
140
  )
135
141
 
136
- const { as, role, elementRef, renderLabel, styles } = this.props
142
+ const { as, role, renderLabel, elementRef, styles } = this.props
143
+
137
144
  return (
138
- <div css={styles?.options} role="presentation">
145
+ <div css={styles?.options} role="presentation" ref={this.handleRef}>
139
146
  {renderLabel && this.renderLabel()}
140
147
  <View
141
148
  {...passthroughProps}
@@ -36,7 +36,7 @@ import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
36
36
  type OptionsOwnProps = {
37
37
  as?: AsElementType
38
38
  role?: string
39
- elementRef?: (...args: any[]) => any
39
+ elementRef?: (element: Element | null) => void
40
40
  renderLabel?: React.ReactNode | ((...args: any[]) => any)
41
41
  children?: React.ReactNode
42
42
  }
@@ -34,6 +34,7 @@ declare class Item extends Component<OptionsItemProps> {
34
34
  readonly renderAfterLabel: null;
35
35
  readonly children: null;
36
36
  };
37
+ ref: Element | null;
37
38
  componentDidMount(): void;
38
39
  componentDidUpdate(): void;
39
40
  renderContent(renderLabel: any, contentVariant: any): jsx.JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Options/Item/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAG/C;;;;;GAKG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAC5C,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,YAAY;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;MAOT;IAEV,iBAAiB;IAIjB,kBAAkB;IAKlB,aAAa,CAAC,WAAW,KAAA,EAAE,cAAc,KAAA;IAmBzC,MAAM;CAyBP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Options/Item/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AASjC,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAIrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAG/C;;;;;GAKG;AACH,cAEM,IAAK,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAC5C,MAAM,CAAC,QAAQ,CAAC,WAAW,kBAAiB;IAE5C,MAAM,CAAC,YAAY;;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;;;;;;MAOT;IAEV,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,iBAAiB;IAIjB,kBAAkB;IAKlB,aAAa,CAAC,WAAW,KAAA,EAAE,cAAc,KAAA;IAmBzC,MAAM;CAgCP;AAED,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,IAAI,EAAE,CAAA"}
@@ -14,14 +14,14 @@ declare class Options extends Component<OptionsProps> {
14
14
  static allowedProps: readonly (keyof {
15
15
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
16
16
  role?: string | undefined;
17
- elementRef?: ((...args: any[]) => any) | undefined;
17
+ elementRef?: ((element: Element | null) => void) | undefined;
18
18
  renderLabel?: import("react").ReactNode | ((...args: any[]) => any);
19
19
  children?: import("react").ReactNode;
20
20
  })[];
21
21
  static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
22
22
  as?: import("@instructure/shared-types/types/CommonProps").AsElementType | undefined;
23
23
  role?: string | undefined;
24
- elementRef?: ((...args: any[]) => any) | undefined;
24
+ elementRef?: ((element: Element | null) => void) | undefined;
25
25
  renderLabel?: import("react").ReactNode | ((...args: any[]) => any);
26
26
  children?: import("react").ReactNode;
27
27
  }>;
@@ -34,6 +34,8 @@ declare class Options extends Component<OptionsProps> {
34
34
  };
35
35
  static Item: typeof Item;
36
36
  static Separator: typeof Separator;
37
+ ref: Element | null;
38
+ handleRef: (el: Element | null) => void;
37
39
  componentDidMount(): void;
38
40
  componentDidUpdate(): void;
39
41
  _labelId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Options/index.tsx"],"names":[],"mappings":"AAwBA,eAAe;AACf,OAAO,EAAE,SAAS,EAA0B,MAAM,OAAO,CAAA;AAazD,OAAO,EAAa,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAKrD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C;;;;GAIG;AACH,cAEM,OAAQ,SAAQ,SAAS,CAAC,YAAY,CAAC;IAC3C,MAAM,CAAC,QAAQ,CAAC,WAAW,aAAY;IAEvC,MAAM,CAAC,YAAY;;;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;;;OAAY;IAE5B,MAAM,CAAC,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 import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
4
4
  declare type OptionsOwnProps = {
5
5
  as?: AsElementType;
6
6
  role?: string;
7
- elementRef?: (...args: any[]) => any;
7
+ elementRef?: (element: Element | null) => void;
8
8
  renderLabel?: React.ReactNode | ((...args: any[]) => any);
9
9
  children?: React.ReactNode;
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Options/props.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1E,aAAK,eAAe,GAAG;IACrB,EAAE,CAAC,EAAE,aAAa,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;IACpC,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,CAAA;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,eAAe,CAAA;AAErC,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,YAAY,GAAG,eAAe,GAAG,cAAc,CAAC,YAAY,EAAE,YAAY,CAAC,CAAA;AAEhF,aAAK,YAAY,GAAG,cAAc,CAAC,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,CAAA;AAEhE,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAkBvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAMnB,CAAA;AAED,YAAY,EAAE,Y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- 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.