@instructure/ui-simple-select 10.20.2-snapshot-5 → 10.20.2-snapshot-7

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.
@@ -1,87 +0,0 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- import { SimpleSelect } from '../../SimpleSelect';
26
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
27
- export default {
28
- sectionProp: 'size',
29
- maxExamplesPerPage: 50,
30
- propValues: {
31
- children: [[_jsx(SimpleSelect.Option, {
32
- id: "0",
33
- value: "0",
34
- children: "Option one"
35
- }, "0"), _jsx(SimpleSelect.Option, {
36
- id: "1",
37
- value: "1",
38
- children: "Option two"
39
- }, "1"), _jsx(SimpleSelect.Option, {
40
- id: "2",
41
- value: "2",
42
- children: "Option three"
43
- }, "2"), _jsx(SimpleSelect.Option, {
44
- id: "3",
45
- value: "3",
46
- isDisabled: true,
47
- children: "Option four"
48
- }, "3")], [_jsx(SimpleSelect.Option, {
49
- id: "0",
50
- value: "0",
51
- children: "Item not in a group"
52
- }, "0"), _jsx(SimpleSelect.Group, {
53
- id: "1",
54
- renderLabel: "Group one",
55
- children: _jsx(SimpleSelect.Option, {
56
- id: "2",
57
- value: "2",
58
- children: "Grouped item one"
59
- }, "2")
60
- }, "1"), _jsx(SimpleSelect.Group, {
61
- id: "3",
62
- renderLabel: "Group two",
63
- children: _jsx(SimpleSelect.Option, {
64
- id: "4",
65
- value: "4",
66
- children: "Grouped item two"
67
- }, "4")
68
- }, "3"), _jsx(SimpleSelect.Option, {
69
- id: "5",
70
- value: "5",
71
- children: "Item not in a group two"
72
- }, "5")]]
73
- },
74
- excludeProps: ['isOptionContentAppliedToInput'],
75
- getComponentProps: () => {
76
- return {
77
- inputValue: 'Option one',
78
- renderLabel: 'Choose an option',
79
- constrain: 'scroll-parent'
80
- };
81
- },
82
- filter: props => {
83
- if (props.interaction === 'readonly') return true;
84
- if (props.isRequired) return true;
85
- return false;
86
- }
87
- };
@@ -1,92 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _SimpleSelect = require("../../SimpleSelect");
8
- var _jsxRuntime = require("@emotion/react/jsx-runtime");
9
- /*
10
- * The MIT License (MIT)
11
- *
12
- * Copyright (c) 2015 - present Instructure, Inc.
13
- *
14
- * Permission is hereby granted, free of charge, to any person obtaining a copy
15
- * of this software and associated documentation files (the "Software"), to deal
16
- * in the Software without restriction, including without limitation the rights
17
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
- * copies of the Software, and to permit persons to whom the Software is
19
- * furnished to do so, subject to the following conditions:
20
- *
21
- * The above copyright notice and this permission notice shall be included in all
22
- * copies or substantial portions of the Software.
23
- *
24
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
- * SOFTWARE.
31
- */
32
- var _default = exports.default = {
33
- sectionProp: 'size',
34
- maxExamplesPerPage: 50,
35
- propValues: {
36
- children: [[(0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Option, {
37
- id: "0",
38
- value: "0",
39
- children: "Option one"
40
- }, "0"), (0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Option, {
41
- id: "1",
42
- value: "1",
43
- children: "Option two"
44
- }, "1"), (0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Option, {
45
- id: "2",
46
- value: "2",
47
- children: "Option three"
48
- }, "2"), (0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Option, {
49
- id: "3",
50
- value: "3",
51
- isDisabled: true,
52
- children: "Option four"
53
- }, "3")], [(0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Option, {
54
- id: "0",
55
- value: "0",
56
- children: "Item not in a group"
57
- }, "0"), (0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Group, {
58
- id: "1",
59
- renderLabel: "Group one",
60
- children: (0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Option, {
61
- id: "2",
62
- value: "2",
63
- children: "Grouped item one"
64
- }, "2")
65
- }, "1"), (0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Group, {
66
- id: "3",
67
- renderLabel: "Group two",
68
- children: (0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Option, {
69
- id: "4",
70
- value: "4",
71
- children: "Grouped item two"
72
- }, "4")
73
- }, "3"), (0, _jsxRuntime.jsx)(_SimpleSelect.SimpleSelect.Option, {
74
- id: "5",
75
- value: "5",
76
- children: "Item not in a group two"
77
- }, "5")]]
78
- },
79
- excludeProps: ['isOptionContentAppliedToInput'],
80
- getComponentProps: () => {
81
- return {
82
- inputValue: 'Option one',
83
- renderLabel: 'Choose an option',
84
- constrain: 'scroll-parent'
85
- };
86
- },
87
- filter: props => {
88
- if (props.interaction === 'readonly') return true;
89
- if (props.isRequired) return true;
90
- return false;
91
- }
92
- };
@@ -1,83 +0,0 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- import { SimpleSelect } from '../../SimpleSelect'
26
-
27
- import type { StoryConfig } from '@instructure/ui-test-utils'
28
- import type { SimpleSelectProps } from '../props'
29
-
30
- export default {
31
- sectionProp: 'size',
32
- maxExamplesPerPage: 50,
33
- propValues: {
34
- children: [
35
- [
36
- <SimpleSelect.Option id="0" value="0" key="0">
37
- Option one
38
- </SimpleSelect.Option>,
39
- <SimpleSelect.Option id="1" value="1" key="1">
40
- Option two
41
- </SimpleSelect.Option>,
42
- <SimpleSelect.Option id="2" value="2" key="2">
43
- Option three
44
- </SimpleSelect.Option>,
45
- <SimpleSelect.Option id="3" value="3" key="3" isDisabled>
46
- Option four
47
- </SimpleSelect.Option>
48
- ],
49
- [
50
- <SimpleSelect.Option id="0" value="0" key="0">
51
- Item not in a group
52
- </SimpleSelect.Option>,
53
- <SimpleSelect.Group id="1" renderLabel="Group one" key="1">
54
- <SimpleSelect.Option id="2" value="2" key="2">
55
- Grouped item one
56
- </SimpleSelect.Option>
57
- </SimpleSelect.Group>,
58
- <SimpleSelect.Group id="3" renderLabel="Group two" key="3">
59
- <SimpleSelect.Option id="4" value="4" key="4">
60
- Grouped item two
61
- </SimpleSelect.Option>
62
- </SimpleSelect.Group>,
63
- <SimpleSelect.Option id="5" value="5" key="5">
64
- Item not in a group two
65
- </SimpleSelect.Option>
66
- ]
67
- ]
68
- },
69
- excludeProps: ['isOptionContentAppliedToInput'],
70
- getComponentProps: () => {
71
- return {
72
- inputValue: 'Option one',
73
- renderLabel: 'Choose an option',
74
- constrain: 'scroll-parent'
75
- }
76
- },
77
- filter: (props) => {
78
- if (props.interaction === 'readonly') return true
79
- if (props.isRequired) return true
80
-
81
- return false
82
- }
83
- } as StoryConfig<SimpleSelectProps>
@@ -1,5 +0,0 @@
1
- import type { StoryConfig } from '@instructure/ui-test-utils';
2
- import type { SimpleSelectProps } from '../props';
3
- declare const _default: StoryConfig<SimpleSelectProps>;
4
- export default _default;
5
- //# sourceMappingURL=SimpleSelect.examples.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleSelect.examples.d.ts","sourceRoot":"","sources":["../../../src/SimpleSelect/__examples__/SimpleSelect.examples.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;wBAuD5C,WAAW,CAAC,iBAAiB,CAAC;AArDnC,wBAqDmC"}