@instructure/ui-options 11.7.3 → 11.7.4-pr-snapshot-1781695314229
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 +8 -0
- package/LICENSE.md +1 -0
- package/{lib/Options/v1/Separator/props.js → babel.config.cjs} +10 -7
- package/es/Options/v1/Item/index.js +5 -4
- package/es/Options/v1/Separator/index.js +5 -4
- package/es/Options/v1/index.js +7 -7
- package/es/Options/v2/Item/index.js +4 -3
- package/es/Options/v2/Separator/index.js +4 -3
- package/es/Options/v2/index.js +6 -6
- package/es/exports/a.js +7 -6
- package/es/exports/b.js +4 -3
- package/package.json +13 -18
- package/src/Options/v1/Item/index.tsx +4 -3
- package/src/Options/v1/Separator/index.tsx +4 -3
- package/src/Options/v1/index.tsx +7 -6
- package/src/Options/v2/Item/index.tsx +3 -2
- package/src/Options/v2/Separator/index.tsx +3 -2
- package/src/Options/v2/index.tsx +6 -5
- package/src/exports/a.ts +6 -6
- package/src/exports/b.ts +3 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Options/v1/Item/index.d.ts +1 -0
- package/types/Options/v1/Item/index.d.ts.map +1 -1
- package/types/Options/v1/Separator/index.d.ts +1 -0
- package/types/Options/v1/Separator/index.d.ts.map +1 -1
- package/types/Options/v1/index.d.ts +4 -3
- package/types/Options/v1/index.d.ts.map +1 -1
- package/types/Options/v2/Item/index.d.ts +1 -0
- package/types/Options/v2/Item/index.d.ts.map +1 -1
- package/types/Options/v2/Separator/index.d.ts +1 -0
- package/types/Options/v2/Separator/index.d.ts.map +1 -1
- package/types/Options/v2/index.d.ts +4 -3
- package/types/Options/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +6 -6
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +3 -3
- package/types/exports/b.d.ts.map +1 -1
- package/lib/Options/v1/Item/index.js +0 -142
- package/lib/Options/v1/Item/props.js +0 -31
- package/lib/Options/v1/Item/styles.js +0 -197
- package/lib/Options/v1/Item/theme.js +0 -79
- package/lib/Options/v1/Separator/index.js +0 -76
- package/lib/Options/v1/Separator/styles.js +0 -52
- package/lib/Options/v1/Separator/theme.js +0 -52
- package/lib/Options/v1/index.js +0 -168
- package/lib/Options/v1/props.js +0 -31
- package/lib/Options/v1/styles.js +0 -63
- package/lib/Options/v1/theme.js +0 -54
- package/lib/Options/v2/Item/index.js +0 -141
- package/lib/Options/v2/Item/props.js +0 -31
- package/lib/Options/v2/Item/styles.js +0 -197
- package/lib/Options/v2/Separator/index.js +0 -75
- package/lib/Options/v2/Separator/props.js +0 -31
- package/lib/Options/v2/Separator/styles.js +0 -52
- package/lib/Options/v2/index.js +0 -167
- package/lib/Options/v2/props.js +0 -31
- package/lib/Options/v2/styles.js +0 -63
- package/lib/exports/a.js +0 -47
- package/lib/exports/b.js +0 -26
- package/lib/package.json +0 -1
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
|
+
## [11.7.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-options
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
|
|
7
15
|
|
|
8
16
|
|
package/LICENSE.md
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
1
|
/*
|
|
8
2
|
* The MIT License (MIT)
|
|
9
3
|
*
|
|
@@ -28,4 +22,13 @@ exports.allowedProps = void 0;
|
|
|
28
22
|
* SOFTWARE.
|
|
29
23
|
*/
|
|
30
24
|
|
|
31
|
-
|
|
25
|
+
module.exports = {
|
|
26
|
+
presets: [
|
|
27
|
+
[
|
|
28
|
+
require('@instructure/ui-babel-preset'),
|
|
29
|
+
{
|
|
30
|
+
esModules: Boolean(process.env.ES_MODULES)
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -26,9 +26,10 @@ var _dec, _dec2, _class;
|
|
|
26
26
|
import { Component, createElement } from 'react';
|
|
27
27
|
import { omitProps, getElementType, callRenderProp, withDeterministicId } from '@instructure/ui-react-utils';
|
|
28
28
|
import { withStyle } from '@instructure/emotion';
|
|
29
|
-
import generateStyles from
|
|
30
|
-
import generateComponentTheme from
|
|
31
|
-
import { allowedProps } from
|
|
29
|
+
import generateStyles from './styles.js';
|
|
30
|
+
import generateComponentTheme from './theme.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
|
+
|
|
32
33
|
/**
|
|
33
34
|
---
|
|
34
35
|
parent: Options
|
|
@@ -37,7 +38,7 @@ id: Options.Item
|
|
|
37
38
|
**/
|
|
38
39
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
39
40
|
let Item = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, generateComponentTheme), _dec(_class = _dec2(_class = class Item extends Component {
|
|
40
|
-
static displayName =
|
|
41
|
+
static displayName = 'Item';
|
|
41
42
|
static componentId = 'Options.Item';
|
|
42
43
|
static allowedProps = allowedProps;
|
|
43
44
|
static defaultProps = {
|
|
@@ -26,9 +26,10 @@ var _dec, _class;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { getElementType, omitProps } from '@instructure/ui-react-utils';
|
|
28
28
|
import { withStyle } from '@instructure/emotion';
|
|
29
|
-
import generateStyles from
|
|
30
|
-
import generateComponentTheme from
|
|
31
|
-
import { allowedProps } from
|
|
29
|
+
import generateStyles from './styles.js';
|
|
30
|
+
import generateComponentTheme from './theme.js';
|
|
31
|
+
import { allowedProps } from './props.js';
|
|
32
|
+
|
|
32
33
|
/**
|
|
33
34
|
---
|
|
34
35
|
parent: Options
|
|
@@ -38,7 +39,7 @@ id: Options.Separator
|
|
|
38
39
|
**/
|
|
39
40
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
40
41
|
let Separator = (_dec = withStyle(generateStyles, generateComponentTheme), _dec(_class = class Separator extends Component {
|
|
41
|
-
static displayName =
|
|
42
|
+
static displayName = 'Separator';
|
|
42
43
|
static componentId = 'Options.Separator';
|
|
43
44
|
static allowedProps = allowedProps;
|
|
44
45
|
static defaultProps = {
|
package/es/Options/v1/index.js
CHANGED
|
@@ -27,20 +27,20 @@ import { Component, Children, createElement } from 'react';
|
|
|
27
27
|
import { omitProps, matchComponentTypes, safeCloneElement, withDeterministicId } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/v11_6';
|
|
29
29
|
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import generateStyles from
|
|
31
|
-
import generateComponentTheme from
|
|
32
|
-
import { Item } from
|
|
33
|
-
import { Separator } from
|
|
34
|
-
import { allowedProps } from
|
|
30
|
+
import generateStyles from './styles.js';
|
|
31
|
+
import generateComponentTheme from './theme.js';
|
|
32
|
+
import { Item } from './Item/index.js';
|
|
33
|
+
import { Separator } from './Separator/index.js';
|
|
34
|
+
import { allowedProps } from './props.js';
|
|
35
35
|
import { isAndroidOrIOS } from '@instructure/ui-utils';
|
|
36
36
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
37
37
|
/**
|
|
38
38
|
---
|
|
39
|
-
category: components/
|
|
39
|
+
category: components/Util Components
|
|
40
40
|
---
|
|
41
41
|
**/
|
|
42
42
|
let Options = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, generateComponentTheme), _dec(_class = _dec2(_class = class Options extends Component {
|
|
43
|
-
static displayName =
|
|
43
|
+
static displayName = 'Options';
|
|
44
44
|
static componentId = 'Options';
|
|
45
45
|
static allowedProps = allowedProps;
|
|
46
46
|
static defaultProps = {
|
|
@@ -26,8 +26,9 @@ var _dec, _dec2, _class;
|
|
|
26
26
|
import { Component, createElement } from 'react';
|
|
27
27
|
import { omitProps, getElementType, callRenderProp, withDeterministicId } from '@instructure/ui-react-utils';
|
|
28
28
|
import { withStyleNew } from '@instructure/emotion';
|
|
29
|
-
import generateStyles from
|
|
30
|
-
import { allowedProps } from
|
|
29
|
+
import generateStyles from './styles.js';
|
|
30
|
+
import { allowedProps } from './props.js';
|
|
31
|
+
|
|
31
32
|
/**
|
|
32
33
|
---
|
|
33
34
|
parent: Options
|
|
@@ -36,7 +37,7 @@ id: Options.Item
|
|
|
36
37
|
**/
|
|
37
38
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
38
39
|
let Item = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyles), _dec(_class = _dec2(_class = class Item extends Component {
|
|
39
|
-
static displayName =
|
|
40
|
+
static displayName = 'Item';
|
|
40
41
|
static componentId = 'Options.Item';
|
|
41
42
|
static allowedProps = allowedProps;
|
|
42
43
|
static defaultProps = {
|
|
@@ -26,8 +26,9 @@ var _dec, _class;
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { getElementType, omitProps } from '@instructure/ui-react-utils';
|
|
28
28
|
import { withStyleNew } from '@instructure/emotion';
|
|
29
|
-
import generateStyles from
|
|
30
|
-
import { allowedProps } from
|
|
29
|
+
import generateStyles from './styles.js';
|
|
30
|
+
import { allowedProps } from './props.js';
|
|
31
|
+
|
|
31
32
|
/**
|
|
32
33
|
---
|
|
33
34
|
parent: Options
|
|
@@ -37,7 +38,7 @@ id: Options.Separator
|
|
|
37
38
|
**/
|
|
38
39
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
39
40
|
let Separator = (_dec = withStyleNew(generateStyles), _dec(_class = class Separator extends Component {
|
|
40
|
-
static displayName =
|
|
41
|
+
static displayName = 'Separator';
|
|
41
42
|
static componentId = 'Options.Separator';
|
|
42
43
|
static allowedProps = allowedProps;
|
|
43
44
|
static defaultProps = {
|
package/es/Options/v2/index.js
CHANGED
|
@@ -27,19 +27,19 @@ import { Component, Children, createElement } from 'react';
|
|
|
27
27
|
import { omitProps, matchComponentTypes, safeCloneElement, withDeterministicId } from '@instructure/ui-react-utils';
|
|
28
28
|
import { View } from '@instructure/ui-view/latest';
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion';
|
|
30
|
-
import generateStyles from
|
|
31
|
-
import { Item } from
|
|
32
|
-
import { Separator } from
|
|
33
|
-
import { allowedProps } from
|
|
30
|
+
import generateStyles from './styles.js';
|
|
31
|
+
import { Item } from './Item/index.js';
|
|
32
|
+
import { Separator } from './Separator/index.js';
|
|
33
|
+
import { allowedProps } from './props.js';
|
|
34
34
|
import { isAndroidOrIOS } from '@instructure/ui-utils';
|
|
35
35
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
36
36
|
/**
|
|
37
37
|
---
|
|
38
|
-
category: components/
|
|
38
|
+
category: components/Util Components
|
|
39
39
|
---
|
|
40
40
|
**/
|
|
41
41
|
let Options = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyles), _dec(_class = _dec2(_class = class Options extends Component {
|
|
42
|
-
static displayName =
|
|
42
|
+
static displayName = 'Options';
|
|
43
43
|
static componentId = 'Options';
|
|
44
44
|
static allowedProps = allowedProps;
|
|
45
45
|
static defaultProps = {
|
package/es/exports/a.js
CHANGED
|
@@ -21,9 +21,10 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { Options } from '../Options/v1/index.js';
|
|
26
|
+
export { Item as OptionItem } from '../Options/v1/Item/index.js';
|
|
27
|
+
export { Separator as OptionSeparator } from '../Options/v1/Separator/index.js';
|
|
28
|
+
export { optionsThemeGenerator } from '../Options/v1/theme.js';
|
|
29
|
+
export { optionsItemThemeGenerator } from '../Options/v1/Item/theme.js';
|
|
30
|
+
export { optionsSeparatorThemeGenerator } from '../Options/v1/Separator/theme.js';
|
package/es/exports/b.js
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
24
|
+
|
|
25
|
+
export { Options } from '../Options/v2/index.js';
|
|
26
|
+
export { Item as OptionItem } from '../Options/v2/Item/index.js';
|
|
27
|
+
export { Separator as OptionSeparator } from '../Options/v2/Separator/index.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-options",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.4-pr-snapshot-1781695314229",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "A view-only component for composing interactive lists and menus.",
|
|
5
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
7
|
"module": "./es/index.js",
|
|
7
|
-
"main": "./lib/index.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.2",
|
|
18
|
-
"@instructure/
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/ui-
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-themes": "11.7.
|
|
23
|
-
"@instructure/ui-utils": "11.7.
|
|
24
|
-
"@instructure/ui-view": "11.7.
|
|
18
|
+
"@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
|
|
19
|
+
"@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
|
|
20
|
+
"@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
|
|
21
|
+
"@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
22
|
+
"@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
|
|
23
|
+
"@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
24
|
+
"@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@testing-library/jest-dom": "^6.6.3",
|
|
28
28
|
"@testing-library/react": "15.0.7",
|
|
29
29
|
"@testing-library/user-event": "^14.6.1",
|
|
30
30
|
"vitest": "^3.2.2",
|
|
31
|
-
"@instructure/ui-
|
|
32
|
-
"@instructure/ui-
|
|
33
|
-
"@instructure/ui-
|
|
31
|
+
"@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229",
|
|
32
|
+
"@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
|
|
33
|
+
"@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": ">=18 <=19"
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"exports": {
|
|
43
|
-
"./lib/*": "./lib/*",
|
|
44
43
|
"./es/*": "./es/*",
|
|
45
44
|
"./types/*": "./types/*",
|
|
46
45
|
"./package.json": "./package.json",
|
|
@@ -49,28 +48,24 @@
|
|
|
49
48
|
"src": "./src/exports/a.ts",
|
|
50
49
|
"types": "./types/exports/a.d.ts",
|
|
51
50
|
"import": "./es/exports/a.js",
|
|
52
|
-
"require": "./lib/exports/a.js",
|
|
53
51
|
"default": "./es/exports/a.js"
|
|
54
52
|
},
|
|
55
53
|
"./v11_6": {
|
|
56
54
|
"src": "./src/exports/a.ts",
|
|
57
55
|
"types": "./types/exports/a.d.ts",
|
|
58
56
|
"import": "./es/exports/a.js",
|
|
59
|
-
"require": "./lib/exports/a.js",
|
|
60
57
|
"default": "./es/exports/a.js"
|
|
61
58
|
},
|
|
62
59
|
"./v11_7": {
|
|
63
60
|
"src": "./src/exports/b.ts",
|
|
64
61
|
"types": "./types/exports/b.d.ts",
|
|
65
62
|
"import": "./es/exports/b.js",
|
|
66
|
-
"require": "./lib/exports/b.js",
|
|
67
63
|
"default": "./es/exports/b.js"
|
|
68
64
|
},
|
|
69
65
|
"./latest": {
|
|
70
66
|
"src": "./src/exports/b.ts",
|
|
71
67
|
"types": "./types/exports/b.d.ts",
|
|
72
68
|
"import": "./es/exports/b.js",
|
|
73
|
-
"require": "./lib/exports/b.js",
|
|
74
69
|
"default": "./es/exports/b.js"
|
|
75
70
|
}
|
|
76
71
|
},
|
|
@@ -78,7 +73,7 @@
|
|
|
78
73
|
"lint": "ui-scripts lint",
|
|
79
74
|
"lint:fix": "ui-scripts lint --fix",
|
|
80
75
|
"clean": "ui-scripts clean",
|
|
81
|
-
"build": "ui-scripts build
|
|
76
|
+
"build": "ui-scripts build",
|
|
82
77
|
"build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
|
|
83
78
|
"build:types": "tsc -p tsconfig.build.json",
|
|
84
79
|
"ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
|
|
34
34
|
import { withStyle } from '@instructure/emotion'
|
|
35
35
|
|
|
36
|
-
import generateStyles from './styles'
|
|
37
|
-
import generateComponentTheme from './theme'
|
|
36
|
+
import generateStyles from './styles.js'
|
|
37
|
+
import generateComponentTheme from './theme.js'
|
|
38
38
|
import type { OptionsItemProps, OptionsItemStyle } from './props'
|
|
39
|
-
import { allowedProps } from './props'
|
|
39
|
+
import { allowedProps } from './props.js'
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
---
|
|
@@ -47,6 +47,7 @@ id: Options.Item
|
|
|
47
47
|
@withDeterministicId()
|
|
48
48
|
@withStyle(generateStyles, generateComponentTheme)
|
|
49
49
|
class Item extends Component<OptionsItemProps> {
|
|
50
|
+
static displayName = 'Item'
|
|
50
51
|
static readonly componentId = 'Options.Item'
|
|
51
52
|
|
|
52
53
|
static allowedProps = allowedProps
|
|
@@ -28,10 +28,10 @@ import { getElementType, omitProps } from '@instructure/ui-react-utils'
|
|
|
28
28
|
|
|
29
29
|
import { withStyle } from '@instructure/emotion'
|
|
30
30
|
|
|
31
|
-
import generateStyles from './styles'
|
|
32
|
-
import generateComponentTheme from './theme'
|
|
31
|
+
import generateStyles from './styles.js'
|
|
32
|
+
import generateComponentTheme from './theme.js'
|
|
33
33
|
import type { OptionsSeparatorProps } from './props'
|
|
34
|
-
import { allowedProps } from './props'
|
|
34
|
+
import { allowedProps } from './props.js'
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
---
|
|
@@ -42,6 +42,7 @@ id: Options.Separator
|
|
|
42
42
|
**/
|
|
43
43
|
@withStyle(generateStyles, generateComponentTheme)
|
|
44
44
|
class Separator extends Component<OptionsSeparatorProps> {
|
|
45
|
+
static displayName = 'Separator'
|
|
45
46
|
static readonly componentId = 'Options.Separator'
|
|
46
47
|
|
|
47
48
|
static allowedProps = allowedProps
|
package/src/Options/v1/index.tsx
CHANGED
|
@@ -35,16 +35,16 @@ import { View } from '@instructure/ui-view/v11_6'
|
|
|
35
35
|
|
|
36
36
|
import { withStyle } from '@instructure/emotion'
|
|
37
37
|
|
|
38
|
-
import generateStyles from './styles'
|
|
39
|
-
import generateComponentTheme from './theme'
|
|
38
|
+
import generateStyles from './styles.js'
|
|
39
|
+
import generateComponentTheme from './theme.js'
|
|
40
40
|
|
|
41
|
-
import { Item } from './Item'
|
|
41
|
+
import { Item } from './Item/index.js'
|
|
42
42
|
import type { OptionsItemProps } from './Item/props'
|
|
43
|
-
import { Separator } from './Separator'
|
|
43
|
+
import { Separator } from './Separator/index.js'
|
|
44
44
|
import type { OptionsSeparatorProps } from './Separator/props'
|
|
45
45
|
|
|
46
46
|
import type { OptionsProps } from './props'
|
|
47
|
-
import { allowedProps } from './props'
|
|
47
|
+
import { allowedProps } from './props.js'
|
|
48
48
|
import { isAndroidOrIOS } from '@instructure/ui-utils'
|
|
49
49
|
|
|
50
50
|
type ItemChild = ComponentElement<OptionsItemProps, Item>
|
|
@@ -54,12 +54,13 @@ type OptionsChildren = (ItemChild | SeparatorChild | OptionsChild)[]
|
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
---
|
|
57
|
-
category: components/
|
|
57
|
+
category: components/Util Components
|
|
58
58
|
---
|
|
59
59
|
**/
|
|
60
60
|
@withDeterministicId()
|
|
61
61
|
@withStyle(generateStyles, generateComponentTheme)
|
|
62
62
|
class Options extends Component<OptionsProps> {
|
|
63
|
+
static displayName = 'Options'
|
|
63
64
|
static readonly componentId = 'Options'
|
|
64
65
|
|
|
65
66
|
static allowedProps = allowedProps
|
|
@@ -33,9 +33,9 @@ import {
|
|
|
33
33
|
|
|
34
34
|
import { withStyleNew } from '@instructure/emotion'
|
|
35
35
|
|
|
36
|
-
import generateStyles from './styles'
|
|
36
|
+
import generateStyles from './styles.js'
|
|
37
37
|
import type { OptionsItemProps, OptionsItemStyle } from './props'
|
|
38
|
-
import { allowedProps } from './props'
|
|
38
|
+
import { allowedProps } from './props.js'
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
---
|
|
@@ -46,6 +46,7 @@ id: Options.Item
|
|
|
46
46
|
@withDeterministicId()
|
|
47
47
|
@withStyleNew(generateStyles)
|
|
48
48
|
class Item extends Component<OptionsItemProps> {
|
|
49
|
+
static displayName = 'Item'
|
|
49
50
|
static readonly componentId = 'Options.Item'
|
|
50
51
|
|
|
51
52
|
static allowedProps = allowedProps
|
|
@@ -28,9 +28,9 @@ import { getElementType, omitProps } from '@instructure/ui-react-utils'
|
|
|
28
28
|
|
|
29
29
|
import { withStyleNew } from '@instructure/emotion'
|
|
30
30
|
|
|
31
|
-
import generateStyles from './styles'
|
|
31
|
+
import generateStyles from './styles.js'
|
|
32
32
|
import type { OptionsSeparatorProps } from './props'
|
|
33
|
-
import { allowedProps } from './props'
|
|
33
|
+
import { allowedProps } from './props.js'
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
---
|
|
@@ -41,6 +41,7 @@ id: Options.Separator
|
|
|
41
41
|
**/
|
|
42
42
|
@withStyleNew(generateStyles)
|
|
43
43
|
class Separator extends Component<OptionsSeparatorProps> {
|
|
44
|
+
static displayName = 'Separator'
|
|
44
45
|
static readonly componentId = 'Options.Separator'
|
|
45
46
|
|
|
46
47
|
static allowedProps = allowedProps
|
package/src/Options/v2/index.tsx
CHANGED
|
@@ -35,15 +35,15 @@ import { View } from '@instructure/ui-view/latest'
|
|
|
35
35
|
|
|
36
36
|
import { withStyleNew } from '@instructure/emotion'
|
|
37
37
|
|
|
38
|
-
import generateStyles from './styles'
|
|
38
|
+
import generateStyles from './styles.js'
|
|
39
39
|
|
|
40
|
-
import { Item } from './Item'
|
|
40
|
+
import { Item } from './Item/index.js'
|
|
41
41
|
import type { OptionsItemProps } from './Item/props'
|
|
42
|
-
import { Separator } from './Separator'
|
|
42
|
+
import { Separator } from './Separator/index.js'
|
|
43
43
|
import type { OptionsSeparatorProps } from './Separator/props'
|
|
44
44
|
|
|
45
45
|
import type { OptionsProps } from './props'
|
|
46
|
-
import { allowedProps } from './props'
|
|
46
|
+
import { allowedProps } from './props.js'
|
|
47
47
|
import { isAndroidOrIOS } from '@instructure/ui-utils'
|
|
48
48
|
|
|
49
49
|
type ItemChild = ComponentElement<OptionsItemProps, Item>
|
|
@@ -53,12 +53,13 @@ type OptionsChildren = (ItemChild | SeparatorChild | OptionsChild)[]
|
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
---
|
|
56
|
-
category: components/
|
|
56
|
+
category: components/Util Components
|
|
57
57
|
---
|
|
58
58
|
**/
|
|
59
59
|
@withDeterministicId()
|
|
60
60
|
@withStyleNew(generateStyles)
|
|
61
61
|
class Options extends Component<OptionsProps> {
|
|
62
|
+
static displayName = 'Options'
|
|
62
63
|
static readonly componentId = 'Options'
|
|
63
64
|
|
|
64
65
|
static allowedProps = allowedProps
|
package/src/exports/a.ts
CHANGED
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { Options } from '../Options/v1'
|
|
26
|
-
export { Item as OptionItem } from '../Options/v1/Item'
|
|
27
|
-
export { Separator as OptionSeparator } from '../Options/v1/Separator'
|
|
25
|
+
export { Options } from '../Options/v1/index.js'
|
|
26
|
+
export { Item as OptionItem } from '../Options/v1/Item/index.js'
|
|
27
|
+
export { Separator as OptionSeparator } from '../Options/v1/Separator/index.js'
|
|
28
28
|
|
|
29
|
-
export { optionsThemeGenerator } from '../Options/v1/theme'
|
|
30
|
-
export { optionsItemThemeGenerator } from '../Options/v1/Item/theme'
|
|
31
|
-
export { optionsSeparatorThemeGenerator } from '../Options/v1/Separator/theme'
|
|
29
|
+
export { optionsThemeGenerator } from '../Options/v1/theme.js'
|
|
30
|
+
export { optionsItemThemeGenerator } from '../Options/v1/Item/theme.js'
|
|
31
|
+
export { optionsSeparatorThemeGenerator } from '../Options/v1/Separator/theme.js'
|
|
32
32
|
|
|
33
33
|
export type { OptionsProps } from '../Options/v1/props'
|
|
34
34
|
export type {
|
package/src/exports/b.ts
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
export { Options } from '../Options/v2'
|
|
26
|
-
export { Item as OptionItem } from '../Options/v2/Item'
|
|
27
|
-
export { Separator as OptionSeparator } from '../Options/v2/Separator'
|
|
25
|
+
export { Options } from '../Options/v2/index.js'
|
|
26
|
+
export { Item as OptionItem } from '../Options/v2/Item/index.js'
|
|
27
|
+
export { Separator as OptionSeparator } from '../Options/v2/Separator/index.js'
|
|
28
28
|
|
|
29
29
|
export type { OptionsProps } from '../Options/v2/props'
|
|
30
30
|
export type {
|