@patternfly/react-templates 6.0.0-alpha.4 → 6.0.0-alpha.41
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 +154 -0
- package/README.md +4 -17
- package/components/package.json +1 -1
- package/dist/dynamic/components/Dropdown/package.json +1 -0
- package/dist/dynamic/components/Select/package.json +1 -1
- package/dist/dynamic-modules.json +15 -0
- package/dist/esm/components/Dropdown/SimpleDropdown.d.ts +48 -0
- package/dist/esm/components/Dropdown/SimpleDropdown.d.ts.map +1 -0
- package/dist/esm/components/Dropdown/SimpleDropdown.js +33 -0
- package/dist/esm/components/Dropdown/SimpleDropdown.js.map +1 -0
- package/dist/esm/components/Dropdown/index.d.ts +2 -0
- package/dist/esm/components/Dropdown/index.d.ts.map +1 -0
- package/dist/esm/components/Dropdown/index.js +2 -0
- package/dist/esm/components/Dropdown/index.js.map +1 -0
- package/dist/esm/components/Select/CheckboxSelect.d.ts +7 -3
- package/dist/esm/components/Select/CheckboxSelect.d.ts.map +1 -1
- package/dist/esm/components/Select/CheckboxSelect.js +9 -6
- package/dist/esm/components/Select/CheckboxSelect.js.map +1 -1
- package/dist/esm/components/Select/{SelectSimple.d.ts → SimpleSelect.d.ts} +10 -7
- package/dist/esm/components/Select/SimpleSelect.d.ts.map +1 -0
- package/dist/esm/components/Select/{SelectSimple.js → SimpleSelect.js} +13 -9
- package/dist/esm/components/Select/SimpleSelect.js.map +1 -0
- package/dist/esm/components/Select/TypeaheadSelect.d.ts +33 -0
- package/dist/esm/components/Select/TypeaheadSelect.d.ts.map +1 -0
- package/dist/esm/components/Select/TypeaheadSelect.js +180 -0
- package/dist/esm/components/Select/TypeaheadSelect.js.map +1 -0
- package/dist/esm/components/Select/index.d.ts +2 -1
- package/dist/esm/components/Select/index.d.ts.map +1 -1
- package/dist/esm/components/Select/index.js +2 -1
- package/dist/esm/components/Select/index.js.map +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/js/components/Dropdown/SimpleDropdown.d.ts +48 -0
- package/dist/js/components/Dropdown/SimpleDropdown.d.ts.map +1 -0
- package/dist/js/components/Dropdown/SimpleDropdown.js +36 -0
- package/dist/js/components/Dropdown/SimpleDropdown.js.map +1 -0
- package/dist/js/components/Dropdown/index.d.ts +2 -0
- package/dist/js/components/Dropdown/index.d.ts.map +1 -0
- package/dist/js/components/Dropdown/index.js +5 -0
- package/dist/js/components/Dropdown/index.js.map +1 -0
- package/dist/js/components/Select/CheckboxSelect.d.ts +7 -3
- package/dist/js/components/Select/CheckboxSelect.d.ts.map +1 -1
- package/dist/js/components/Select/CheckboxSelect.js +9 -6
- package/dist/js/components/Select/CheckboxSelect.js.map +1 -1
- package/dist/js/components/Select/{SelectSimple.d.ts → SimpleSelect.d.ts} +10 -7
- package/dist/js/components/Select/SimpleSelect.d.ts.map +1 -0
- package/dist/js/components/Select/{SelectSimple.js → SimpleSelect.js} +14 -10
- package/dist/js/components/Select/SimpleSelect.js.map +1 -0
- package/dist/js/components/Select/TypeaheadSelect.d.ts +33 -0
- package/dist/js/components/Select/TypeaheadSelect.d.ts.map +1 -0
- package/dist/js/components/Select/TypeaheadSelect.js +184 -0
- package/dist/js/components/Select/TypeaheadSelect.js.map +1 -0
- package/dist/js/components/Select/index.d.ts +2 -1
- package/dist/js/components/Select/index.d.ts.map +1 -1
- package/dist/js/components/Select/index.js +2 -1
- package/dist/js/components/Select/index.js.map +1 -1
- package/dist/js/components/index.d.ts +1 -0
- package/dist/js/components/index.d.ts.map +1 -1
- package/dist/js/components/index.js +1 -0
- package/dist/js/components/index.js.map +1 -1
- package/dist/umd/assets/output-CgjuKcp1.css +23288 -0
- package/dist/umd/react-templates.min.js +1 -1
- package/package.json +7 -11
- package/rollup.config.mjs +8 -0
- package/src/components/Dropdown/SimpleDropdown.tsx +139 -0
- package/src/components/Dropdown/__tests__/SimpleDropdown.test.tsx +266 -0
- package/src/components/Dropdown/__tests__/__snapshots__/SimpleDropdown.test.tsx.snap +81 -0
- package/src/components/Dropdown/examples/DropdownTemplates.md +24 -0
- package/src/components/Dropdown/examples/SimpleDropdownExample.tsx +53 -0
- package/src/components/Dropdown/index.ts +1 -0
- package/src/components/Select/CheckboxSelect.tsx +18 -7
- package/src/components/Select/{SelectSimple.tsx → SimpleSelect.tsx} +27 -14
- package/src/components/Select/TypeaheadSelect.tsx +329 -0
- package/src/components/Select/{CheckboxSelect.test.tsx → __tests__/CheckboxSelect.test.tsx} +29 -1
- package/src/components/Select/{CheckboxSelectSnapshots.test.tsx → __tests__/CheckboxSelectSnapshots.test.tsx} +1 -1
- package/src/components/Select/__tests__/SimpleSelect.test.tsx +241 -0
- package/src/components/Select/__tests__/TypeaheadSelect.test.tsx +408 -0
- package/src/components/Select/__tests__/__snapshots__/CheckboxSelectSnapshots.test.tsx.snap +83 -0
- package/src/components/Select/__tests__/__snapshots__/SimpleSelect.test.tsx.snap +83 -0
- package/src/components/Select/__tests__/__snapshots__/TypeaheadSelect.test.tsx.snap +97 -0
- package/src/components/Select/examples/CheckboxSelectDemo.tsx +1 -1
- package/src/components/Select/examples/SelectTemplates.md +11 -4
- package/src/components/Select/examples/{SelectSimpleDemo.tsx → SimpleSelectDemo.tsx} +6 -6
- package/src/components/Select/examples/TypeaheadSelectDemo.tsx +21 -0
- package/src/components/Select/index.ts +2 -1
- package/src/components/index.ts +1 -0
- package/dist/esm/components/Select/SelectSimple.d.ts.map +0 -1
- package/dist/esm/components/Select/SelectSimple.js.map +0 -1
- package/dist/js/components/Select/SelectSimple.d.ts.map +0 -1
- package/dist/js/components/Select/SelectSimple.js.map +0 -1
- package/src/components/Select/__snapshots__/CheckboxSelectSnapshots.test.tsx.snap +0 -212
|
@@ -4,25 +4,32 @@ section: components
|
|
|
4
4
|
subsection: menus
|
|
5
5
|
template: true
|
|
6
6
|
beta: true
|
|
7
|
-
propComponents: ['
|
|
7
|
+
propComponents: ['SimpleSelect', 'CheckboxSelect', 'TypeaheadSelect']
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
Note: Templates live in their own package at [@patternfly/react-templates](https://www.npmjs.com/package/@patternfly/react-templates)!
|
|
11
11
|
|
|
12
12
|
For custom use cases, please see the select component suite from [@patternfly/react-core](https://www.npmjs.com/package/@patternfly/react-core).
|
|
13
13
|
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { Checkbox } from '@patternfly/react-core';
|
|
15
|
+
import { SimpleSelect, CheckboxSelect, TypeaheadSelect } from '@patternfly/react-templates';
|
|
16
16
|
|
|
17
17
|
## Select template examples
|
|
18
18
|
|
|
19
19
|
### Simple
|
|
20
20
|
|
|
21
|
-
```ts file="
|
|
21
|
+
```ts file="SimpleSelectDemo.tsx"
|
|
22
22
|
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
### Checkbox
|
|
26
26
|
|
|
27
27
|
```ts file="CheckboxSelectDemo.tsx"
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Typeahead
|
|
32
|
+
|
|
33
|
+
```ts file="TypeaheadSelectDemo.tsx"
|
|
34
|
+
|
|
28
35
|
```
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Checkbox } from '@patternfly/react-core';
|
|
3
|
-
import {
|
|
3
|
+
import { SimpleSelect, SimpleSelectOption } from '@patternfly/react-templates';
|
|
4
4
|
|
|
5
5
|
export const SelectSimpleDemo: React.FunctionComponent = () => {
|
|
6
6
|
const [isDisabled, setIsDisabled] = React.useState<boolean>(false);
|
|
7
7
|
|
|
8
|
-
const initialOptions:
|
|
9
|
-
{ content: 'Option 1', value: '
|
|
10
|
-
{ content: 'Option 2', value: '
|
|
11
|
-
{ content: 'Option 3', value: '
|
|
8
|
+
const initialOptions: SimpleSelectOption[] = [
|
|
9
|
+
{ content: 'Option 1', value: 'Option 1' },
|
|
10
|
+
{ content: 'Option 2', value: 'Option 2', description: 'Option with description' },
|
|
11
|
+
{ content: 'Option 3', value: 'Option 3' }
|
|
12
12
|
];
|
|
13
13
|
|
|
14
14
|
return (
|
|
@@ -20,7 +20,7 @@ export const SelectSimpleDemo: React.FunctionComponent = () => {
|
|
|
20
20
|
onChange={(_event, checked) => setIsDisabled(checked)}
|
|
21
21
|
style={{ marginBottom: 20 }}
|
|
22
22
|
/>
|
|
23
|
-
<
|
|
23
|
+
<SimpleSelect initialOptions={initialOptions} isDisabled={isDisabled} />
|
|
24
24
|
</React.Fragment>
|
|
25
25
|
);
|
|
26
26
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TypeaheadSelect, TypeaheadSelectOption } from '@patternfly/react-templates';
|
|
3
|
+
|
|
4
|
+
export const SelectTypeaheadDemo: React.FunctionComponent = () => {
|
|
5
|
+
const initialOptions: TypeaheadSelectOption[] = [
|
|
6
|
+
{ content: 'Alabama', value: 'option1' },
|
|
7
|
+
{ content: 'Florida', value: 'option2' },
|
|
8
|
+
{ content: 'New Jersey', value: 'option3' },
|
|
9
|
+
{ content: 'New Mexico', value: 'option4' },
|
|
10
|
+
{ content: 'New York', value: 'option5' },
|
|
11
|
+
{ content: 'North Carolina', value: 'option6' }
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<TypeaheadSelect
|
|
16
|
+
initialOptions={initialOptions}
|
|
17
|
+
placeholder="Select a state"
|
|
18
|
+
noOptionsFoundMessage={(filter) => `No state was found for "${filter}"`}
|
|
19
|
+
/>
|
|
20
|
+
);
|
|
21
|
+
};
|
package/src/components/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectSimple.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/SelectSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoC,iBAAiB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ACT,KAAK;QAET,8BAAC,mBAAU,QAAE,mBAAmB,CAAc,CACvC,CACV,CAAC;AACJ,CAAC,CAAC;AAEW,QAAA,YAAY,GAAG,eAAK,CAAC,UAAU,CAAC,CAAC,KAAwB,EAAE,GAAmB,EAAE,EAAE,CAAC,CAC9F,8BAAC,gBAAgB,oBAAK,KAAK,IAAE,QAAQ,EAAE,GAAG,IAAI,CAC/C,CAAC,CAAC;AAEH,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC"}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`checkbox select with no props snapshot 1`] = `
|
|
4
|
-
<DocumentFragment>
|
|
5
|
-
<button
|
|
6
|
-
aria-expanded="false"
|
|
7
|
-
class="pf-v6-c-menu-toggle"
|
|
8
|
-
style="width: 200px;"
|
|
9
|
-
type="button"
|
|
10
|
-
>
|
|
11
|
-
<span
|
|
12
|
-
class="pf-v6-c-menu-toggle__text"
|
|
13
|
-
>
|
|
14
|
-
Filter by status
|
|
15
|
-
</span>
|
|
16
|
-
<span
|
|
17
|
-
class="pf-v6-c-menu-toggle__controls"
|
|
18
|
-
>
|
|
19
|
-
<span
|
|
20
|
-
class="pf-v6-c-menu-toggle__toggle-icon"
|
|
21
|
-
>
|
|
22
|
-
<svg
|
|
23
|
-
aria-hidden="true"
|
|
24
|
-
class="pf-v6-svg"
|
|
25
|
-
fill="currentColor"
|
|
26
|
-
height="1em"
|
|
27
|
-
role="img"
|
|
28
|
-
viewBox="0 0 320 512"
|
|
29
|
-
width="1em"
|
|
30
|
-
>
|
|
31
|
-
<path
|
|
32
|
-
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
|
|
33
|
-
/>
|
|
34
|
-
</svg>
|
|
35
|
-
</span>
|
|
36
|
-
</span>
|
|
37
|
-
</button>
|
|
38
|
-
</DocumentFragment>
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
exports[`opened checkbox select snapshot 1`] = `
|
|
42
|
-
<DocumentFragment>
|
|
43
|
-
<button
|
|
44
|
-
aria-expanded="true"
|
|
45
|
-
class="pf-v6-c-menu-toggle pf-m-expanded"
|
|
46
|
-
style="width: 200px;"
|
|
47
|
-
type="button"
|
|
48
|
-
>
|
|
49
|
-
<span
|
|
50
|
-
class="pf-v6-c-menu-toggle__text"
|
|
51
|
-
>
|
|
52
|
-
Filter by status
|
|
53
|
-
</span>
|
|
54
|
-
<span
|
|
55
|
-
class="pf-v6-c-menu-toggle__controls"
|
|
56
|
-
>
|
|
57
|
-
<span
|
|
58
|
-
class="pf-v6-c-menu-toggle__toggle-icon"
|
|
59
|
-
>
|
|
60
|
-
<svg
|
|
61
|
-
aria-hidden="true"
|
|
62
|
-
class="pf-v6-svg"
|
|
63
|
-
fill="currentColor"
|
|
64
|
-
height="1em"
|
|
65
|
-
role="img"
|
|
66
|
-
viewBox="0 0 320 512"
|
|
67
|
-
width="1em"
|
|
68
|
-
>
|
|
69
|
-
<path
|
|
70
|
-
d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"
|
|
71
|
-
/>
|
|
72
|
-
</svg>
|
|
73
|
-
</span>
|
|
74
|
-
</span>
|
|
75
|
-
</button>
|
|
76
|
-
<div
|
|
77
|
-
class="pf-v6-c-menu"
|
|
78
|
-
data-ouia-component-id="OUIA-Generated-Select-3"
|
|
79
|
-
data-ouia-component-type="PF6/Select"
|
|
80
|
-
data-ouia-safe="true"
|
|
81
|
-
data-popper-escaped="true"
|
|
82
|
-
data-popper-placement="bottom-start"
|
|
83
|
-
data-popper-reference-hidden="true"
|
|
84
|
-
id="checkbox-select"
|
|
85
|
-
style="position: absolute; left: 0px; top: 0px; z-index: 9999; opacity: 1; transition: opacity 0ms cubic-bezier(.54, 1.5, .38, 1.11); min-width: 0px; transform: translate(0px, 0px);"
|
|
86
|
-
>
|
|
87
|
-
<div
|
|
88
|
-
class="pf-v6-c-menu__content"
|
|
89
|
-
>
|
|
90
|
-
<ul
|
|
91
|
-
class="pf-v6-c-menu__list"
|
|
92
|
-
role="menu"
|
|
93
|
-
>
|
|
94
|
-
<li
|
|
95
|
-
class="pf-v6-c-menu__list-item"
|
|
96
|
-
role="menuitem"
|
|
97
|
-
>
|
|
98
|
-
<label
|
|
99
|
-
class="pf-v6-c-menu__item"
|
|
100
|
-
for="generated-id"
|
|
101
|
-
tabindex="-1"
|
|
102
|
-
>
|
|
103
|
-
<span
|
|
104
|
-
class="pf-v6-c-menu__item-main"
|
|
105
|
-
>
|
|
106
|
-
<span
|
|
107
|
-
class="pf-v6-c-menu__item-check"
|
|
108
|
-
>
|
|
109
|
-
<span
|
|
110
|
-
class="pf-v6-c-check pf-m-standalone"
|
|
111
|
-
>
|
|
112
|
-
<input
|
|
113
|
-
aria-disabled="false"
|
|
114
|
-
aria-invalid="false"
|
|
115
|
-
class="pf-v6-c-check__input"
|
|
116
|
-
data-ouia-component-id="OUIA-Generated-Checkbox-1"
|
|
117
|
-
data-ouia-component-type="PF6/Checkbox"
|
|
118
|
-
data-ouia-safe="true"
|
|
119
|
-
id="generated-id"
|
|
120
|
-
type="checkbox"
|
|
121
|
-
/>
|
|
122
|
-
</span>
|
|
123
|
-
</span>
|
|
124
|
-
<span
|
|
125
|
-
class="pf-v6-c-menu__item-text"
|
|
126
|
-
>
|
|
127
|
-
Option 1
|
|
128
|
-
</span>
|
|
129
|
-
</span>
|
|
130
|
-
</label>
|
|
131
|
-
</li>
|
|
132
|
-
<li
|
|
133
|
-
class="pf-v6-c-menu__list-item"
|
|
134
|
-
role="menuitem"
|
|
135
|
-
>
|
|
136
|
-
<label
|
|
137
|
-
class="pf-v6-c-menu__item"
|
|
138
|
-
for="generated-id"
|
|
139
|
-
tabindex="-1"
|
|
140
|
-
>
|
|
141
|
-
<span
|
|
142
|
-
class="pf-v6-c-menu__item-main"
|
|
143
|
-
>
|
|
144
|
-
<span
|
|
145
|
-
class="pf-v6-c-menu__item-check"
|
|
146
|
-
>
|
|
147
|
-
<span
|
|
148
|
-
class="pf-v6-c-check pf-m-standalone"
|
|
149
|
-
>
|
|
150
|
-
<input
|
|
151
|
-
aria-disabled="false"
|
|
152
|
-
aria-invalid="false"
|
|
153
|
-
class="pf-v6-c-check__input"
|
|
154
|
-
data-ouia-component-id="OUIA-Generated-Checkbox-2"
|
|
155
|
-
data-ouia-component-type="PF6/Checkbox"
|
|
156
|
-
data-ouia-safe="true"
|
|
157
|
-
id="generated-id"
|
|
158
|
-
type="checkbox"
|
|
159
|
-
/>
|
|
160
|
-
</span>
|
|
161
|
-
</span>
|
|
162
|
-
<span
|
|
163
|
-
class="pf-v6-c-menu__item-text"
|
|
164
|
-
>
|
|
165
|
-
Option 2
|
|
166
|
-
</span>
|
|
167
|
-
</span>
|
|
168
|
-
</label>
|
|
169
|
-
</li>
|
|
170
|
-
<li
|
|
171
|
-
class="pf-v6-c-menu__list-item"
|
|
172
|
-
role="menuitem"
|
|
173
|
-
>
|
|
174
|
-
<label
|
|
175
|
-
class="pf-v6-c-menu__item"
|
|
176
|
-
for="generated-id"
|
|
177
|
-
tabindex="-1"
|
|
178
|
-
>
|
|
179
|
-
<span
|
|
180
|
-
class="pf-v6-c-menu__item-main"
|
|
181
|
-
>
|
|
182
|
-
<span
|
|
183
|
-
class="pf-v6-c-menu__item-check"
|
|
184
|
-
>
|
|
185
|
-
<span
|
|
186
|
-
class="pf-v6-c-check pf-m-standalone"
|
|
187
|
-
>
|
|
188
|
-
<input
|
|
189
|
-
aria-disabled="false"
|
|
190
|
-
aria-invalid="false"
|
|
191
|
-
class="pf-v6-c-check__input"
|
|
192
|
-
data-ouia-component-id="OUIA-Generated-Checkbox-3"
|
|
193
|
-
data-ouia-component-type="PF6/Checkbox"
|
|
194
|
-
data-ouia-safe="true"
|
|
195
|
-
id="generated-id"
|
|
196
|
-
type="checkbox"
|
|
197
|
-
/>
|
|
198
|
-
</span>
|
|
199
|
-
</span>
|
|
200
|
-
<span
|
|
201
|
-
class="pf-v6-c-menu__item-text"
|
|
202
|
-
>
|
|
203
|
-
Option 3
|
|
204
|
-
</span>
|
|
205
|
-
</span>
|
|
206
|
-
</label>
|
|
207
|
-
</li>
|
|
208
|
-
</ul>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
</DocumentFragment>
|
|
212
|
-
`;
|