@pingux/astro 1.0.0-alpha.9 → 1.1.0-alpha.10
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 +257 -0
- package/README.md +5 -0
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +4 -11
- package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.test.js +24 -0
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemBody.js +1 -1
- package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +1 -1
- package/lib/cjs/components/AccordionGroup/AccordionGroup.test.js +33 -1
- package/lib/cjs/components/AccordionItem/AccordionItem.js +5 -4
- package/lib/cjs/components/Button/Button.js +6 -26
- package/lib/cjs/components/Button/Button.stories.js +7 -12
- package/lib/cjs/components/Button/Button.test.js +2 -25
- package/lib/cjs/components/Chip/Chip.js +26 -10
- package/lib/cjs/components/Chip/Chip.stories.js +44 -5
- package/lib/cjs/components/Chip/Chip.test.js +9 -0
- package/lib/cjs/components/{DropdownField/index.js → Chip/ChipContext.js} +8 -7
- package/lib/cjs/components/ColorField/ColorField.js +1 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +7 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +25 -1
- package/lib/cjs/components/ComboBoxField/ComboBoxField.test.js +44 -0
- package/lib/cjs/components/FileInputField/FileItem.js +2 -1
- package/lib/cjs/components/IconButton/IconButton.js +17 -7
- package/lib/cjs/components/IconButton/IconButton.stories.js +8 -17
- package/lib/cjs/components/IconButton/IconButton.test.js +4 -6
- package/lib/cjs/components/ImageUploadField/ImagePreviewButton.js +2 -1
- package/lib/cjs/components/List/List.js +3 -0
- package/lib/cjs/components/List/List.stories.js +7 -2
- package/lib/cjs/components/ListBox/ListBox.js +3 -6
- package/lib/cjs/components/ListBox/ListBox.test.js +2 -0
- package/lib/cjs/components/ListBox/Option.js +6 -0
- package/lib/cjs/components/ListItem/ListItem.stories.js +0 -2
- package/lib/cjs/components/ListView/ListView.js +4 -3
- package/lib/cjs/components/ListView/ListView.stories.js +580 -39
- package/lib/cjs/components/ListViewItem/ListViewItem.js +3 -6
- package/lib/cjs/components/Messages/Message.js +2 -2
- package/lib/cjs/components/MultivaluesField/MultivaluesField.js +3 -2
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +15 -14
- package/lib/cjs/components/PopoverContainer/PopoverContainer.test.js +15 -0
- package/lib/cjs/components/Stepper/Stepper.js +1 -0
- package/lib/cjs/components/Tab/Tab.js +5 -3
- package/lib/cjs/components/Tabs/Tabs.js +3 -0
- package/lib/cjs/components/Tabs/Tabs.stories.js +3 -4
- package/lib/cjs/components/Tabs/Tabs.test.js +44 -15
- package/lib/cjs/components/TextArea/TextArea.js +5 -1
- package/lib/cjs/components/TextAreaField/TextAreaField.test.js +10 -0
- package/lib/cjs/components/TooltipTrigger/TooltipTrigger.stories.js +45 -2
- package/lib/cjs/index.js +48 -136
- package/lib/cjs/layouts/ListLayout.stories.js +2 -1
- package/lib/cjs/layouts/SchemaFormLayout.stories.js +2 -21
- package/lib/cjs/recipes/ArrayField.stories.js +3 -3
- package/lib/cjs/styles/forms/input.js +4 -0
- package/lib/cjs/styles/theme.js +0 -3
- package/lib/cjs/styles/variants/accordion.js +7 -9
- package/lib/cjs/styles/variants/boxes.js +22 -19
- package/lib/cjs/styles/variants/buttons.js +48 -29
- package/lib/cjs/styles/variants/variants.js +0 -3
- package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +4 -11
- package/lib/components/AccordionGridGroup/AccordionGridGroup.test.js +23 -1
- package/lib/components/AccordionGridItem/AccordionGridItemBody.js +1 -1
- package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +1 -1
- package/lib/components/AccordionGroup/AccordionGroup.test.js +30 -1
- package/lib/components/AccordionItem/AccordionItem.js +6 -5
- package/lib/components/Button/Button.js +8 -26
- package/lib/components/Button/Button.stories.js +7 -11
- package/lib/components/Button/Button.test.js +2 -21
- package/lib/components/Chip/Chip.js +25 -10
- package/lib/components/Chip/Chip.stories.js +41 -5
- package/lib/components/Chip/Chip.test.js +9 -0
- package/lib/components/Chip/ChipContext.js +3 -0
- package/lib/components/ColorField/ColorField.js +1 -0
- package/lib/components/ComboBoxField/ComboBoxField.js +7 -0
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +21 -0
- package/lib/components/ComboBoxField/ComboBoxField.test.js +35 -0
- package/lib/components/FileInputField/FileItem.js +2 -1
- package/lib/components/IconButton/IconButton.js +17 -9
- package/lib/components/IconButton/IconButton.stories.js +7 -13
- package/lib/components/IconButton/IconButton.test.js +4 -6
- package/lib/components/ImageUploadField/ImagePreviewButton.js +2 -1
- package/lib/components/List/List.js +2 -0
- package/lib/components/List/List.stories.js +6 -2
- package/lib/components/ListBox/ListBox.js +3 -5
- package/lib/components/ListBox/ListBox.test.js +2 -0
- package/lib/components/ListBox/Option.js +6 -0
- package/lib/components/ListItem/ListItem.stories.js +0 -2
- package/lib/components/ListView/ListView.js +4 -3
- package/lib/components/ListView/ListView.stories.js +577 -39
- package/lib/components/ListViewItem/ListViewItem.js +3 -5
- package/lib/components/Messages/Message.js +2 -2
- package/lib/components/MultivaluesField/MultivaluesField.js +3 -2
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +7 -5
- package/lib/components/PopoverContainer/PopoverContainer.test.js +16 -1
- package/lib/components/Stepper/Stepper.js +1 -0
- package/lib/components/Tab/Tab.js +5 -3
- package/lib/components/Tabs/Tabs.js +3 -0
- package/lib/components/Tabs/Tabs.stories.js +3 -4
- package/lib/components/Tabs/Tabs.test.js +40 -15
- package/lib/components/TextArea/TextArea.js +5 -1
- package/lib/components/TextAreaField/TextAreaField.test.js +8 -0
- package/lib/components/TooltipTrigger/TooltipTrigger.stories.js +33 -1
- package/lib/index.js +0 -8
- package/lib/layouts/ListLayout.stories.js +2 -1
- package/lib/layouts/SchemaFormLayout.stories.js +2 -19
- package/lib/recipes/ArrayField.stories.js +3 -3
- package/lib/styles/forms/input.js +4 -0
- package/lib/styles/theme.js +0 -3
- package/lib/styles/variants/accordion.js +7 -9
- package/lib/styles/variants/boxes.js +21 -19
- package/lib/styles/variants/buttons.js +47 -29
- package/lib/styles/variants/variants.js +0 -2
- package/package.json +1 -1
- package/lib/cjs/components/Dropdown/Dropdown.js +0 -112
- package/lib/cjs/components/Dropdown/Dropdown.test.js +0 -80
- package/lib/cjs/components/Dropdown/index.js +0 -18
- package/lib/cjs/components/DropdownField/DropdownField.js +0 -187
- package/lib/cjs/components/DropdownField/DropdownField.stories.js +0 -278
- package/lib/cjs/components/DropdownField/DropdownField.test.js +0 -80
- package/lib/cjs/components/Panel/Panel.js +0 -101
- package/lib/cjs/components/Panel/Panel.stories.js +0 -57
- package/lib/cjs/components/Panel/Panel.test.js +0 -72
- package/lib/cjs/components/Panel/index.js +0 -18
- package/lib/cjs/components/Popover/Popover.js +0 -87
- package/lib/cjs/components/Popover/Popover.stories.js +0 -80
- package/lib/cjs/components/Popover/Popover.test.js +0 -91
- package/lib/cjs/components/Popover/index.js +0 -18
- package/lib/cjs/recipes/InputBoxWithLinkedChip.stories.js +0 -67
- package/lib/cjs/styles/variants/popover.js +0 -86
- package/lib/components/Dropdown/Dropdown.js +0 -90
- package/lib/components/Dropdown/Dropdown.test.js +0 -62
- package/lib/components/Dropdown/index.js +0 -1
- package/lib/components/DropdownField/DropdownField.js +0 -155
- package/lib/components/DropdownField/DropdownField.stories.js +0 -222
- package/lib/components/DropdownField/DropdownField.test.js +0 -60
- package/lib/components/DropdownField/index.js +0 -1
- package/lib/components/Panel/Panel.js +0 -71
- package/lib/components/Panel/Panel.stories.js +0 -35
- package/lib/components/Panel/Panel.test.js +0 -52
- package/lib/components/Panel/index.js +0 -1
- package/lib/components/Popover/Popover.js +0 -65
- package/lib/components/Popover/Popover.stories.js +0 -52
- package/lib/components/Popover/Popover.test.js +0 -75
- package/lib/components/Popover/index.js +0 -2
- package/lib/recipes/InputBoxWithLinkedChip.stories.js +0 -43
- package/lib/styles/variants/popover.js +0 -76
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,263 @@
|
|
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
|
+
# [1.1.0-alpha.10](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.9...@pingux/astro@1.1.0-alpha.10) (2022-01-28)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* [UIP-5180] File Upload Field Update Document Icon Color ([debaf91](https://gitlab.corp.pingidentity.com/ux/pingux/commit/debaf9100401c822c37fdd16be1a1b1704096f10))
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
# [1.1.0-alpha.9](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.8...@pingux/astro@1.1.0-alpha.9) (2022-01-24)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* [UIP-5111] Deprecate List Component ([3cd9b69](https://gitlab.corp.pingidentity.com/ux/pingux/commit/3cd9b699c48ac43e34d9cfd61b07f33b4b7d4fc4))
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
# [1.1.0-alpha.8](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.7...@pingux/astro@1.1.0-alpha.8) (2022-01-24)
|
29
|
+
|
30
|
+
|
31
|
+
### Bug Fixes
|
32
|
+
|
33
|
+
* [UIP-4995] TextArea Safari resize issue ([33c8af3](https://gitlab.corp.pingidentity.com/ux/pingux/commit/33c8af35fbe82820427b87bdd9ab0744039a6c18))
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
# [1.1.0-alpha.7](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.6...@pingux/astro@1.1.0-alpha.7) (2022-01-21)
|
40
|
+
|
41
|
+
|
42
|
+
### Bug Fixes
|
43
|
+
|
44
|
+
* [UIP-5109] AccordionGroup OverlayPanel Compatibility Fix ([6a78b76](https://gitlab.corp.pingidentity.com/ux/pingux/commit/6a78b76a3c3ab7b9ac78a7dcd6ca74a6449d63c2))
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
# [1.1.0-alpha.6](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.5...@pingux/astro@1.1.0-alpha.6) (2022-01-21)
|
51
|
+
|
52
|
+
|
53
|
+
### Bug Fixes
|
54
|
+
|
55
|
+
* [UIP-5070] Icons for warning and error messages are reversed ([36f0d6e](https://gitlab.corp.pingidentity.com/ux/pingux/commit/36f0d6e1b65662b3c64aa1599012a2967b59e56d))
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
# [1.1.0-alpha.5](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.4...@pingux/astro@1.1.0-alpha.5) (2022-01-21)
|
62
|
+
|
63
|
+
|
64
|
+
### Bug Fixes
|
65
|
+
|
66
|
+
* [UIP-5030] Components shouldn't have a default aria-label ([8927951](https://gitlab.corp.pingidentity.com/ux/pingux/commit/8927951339ef49faa03f5654d9e8f357b136430a))
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
# [1.1.0-alpha.4](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.3...@pingux/astro@1.1.0-alpha.4) (2022-01-21)
|
73
|
+
|
74
|
+
|
75
|
+
### Bug Fixes
|
76
|
+
|
77
|
+
* [UIP-4992] Fix SelectField Warnings ([dab3f92](https://gitlab.corp.pingidentity.com/ux/pingux/commit/dab3f9254c5d7b1b124ed24616e4ef68f53af7d0))
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
# [1.1.0-alpha.3](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.2...@pingux/astro@1.1.0-alpha.3) (2022-01-20)
|
84
|
+
|
85
|
+
|
86
|
+
### Bug Fixes
|
87
|
+
|
88
|
+
* [UIP-5007] ComboBoxField controlled custom input throws an exception ([9651c98](https://gitlab.corp.pingidentity.com/ux/pingux/commit/9651c98da3b3ac158c84f378303a2d331db78cce))
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
# [1.1.0-alpha.2](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.1...@pingux/astro@1.1.0-alpha.2) (2022-01-19)
|
95
|
+
|
96
|
+
|
97
|
+
### Bug Fixes
|
98
|
+
|
99
|
+
* [UIP-5039] IconButton Square Variant ([2fecfac](https://gitlab.corp.pingidentity.com/ux/pingux/commit/2fecfac9d39974eb5dc773d210c3a830d1bd9e2a))
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
# [1.1.0-alpha.1](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.1.0-alpha.0...@pingux/astro@1.1.0-alpha.1) (2022-01-19)
|
106
|
+
|
107
|
+
|
108
|
+
### Bug Fixes
|
109
|
+
|
110
|
+
* [UIP-5026] Infinite Loading List requests page 2 instantly ([e6888cf](https://gitlab.corp.pingidentity.com/ux/pingux/commit/e6888cfe91435fae0ab583b0ff22b2c169ba7bcd))
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
# [1.1.0-alpha.0](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.1...@pingux/astro@1.1.0-alpha.0) (2022-01-19)
|
117
|
+
|
118
|
+
|
119
|
+
### Bug Fixes
|
120
|
+
|
121
|
+
* [UIP-5122] adjust x icon to 14px ([6b4ca54](https://gitlab.corp.pingidentity.com/ux/pingux/commit/6b4ca5418ddaffb6e1a4daaf28b57151a23529cb))
|
122
|
+
|
123
|
+
|
124
|
+
### Features
|
125
|
+
|
126
|
+
* [UIP-5066] Add Icon, Chip, and Text with Tooltips ([1681083](https://gitlab.corp.pingidentity.com/ux/pingux/commit/168108386d77ef09635a177a35cb6d68cfad8bc2))
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
## [1.0.1](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0...@pingux/astro@1.0.1) (2022-01-19)
|
133
|
+
|
134
|
+
**Note:** Version bump only for package @pingux/astro
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
# [1.0.0](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.20...@pingux/astro@1.0.0) (2022-01-19)
|
141
|
+
|
142
|
+
**Note:** Version bump only for package @pingux/astro
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
# [1.0.0-alpha.20](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.19...@pingux/astro@1.0.0-alpha.20) (2022-01-17)
|
149
|
+
|
150
|
+
**Note:** Version bump only for package @pingux/astro
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
# [1.0.0-alpha.19](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.18...@pingux/astro@1.0.0-alpha.19) (2022-01-13)
|
157
|
+
|
158
|
+
|
159
|
+
### Bug Fixes
|
160
|
+
|
161
|
+
* [UIP-4996] astro stepper redundant tooltip ([d74f102](https://gitlab.corp.pingidentity.com/ux/pingux/commit/d74f1020163703948498436224ef3f9d6458df57))
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
# [1.0.0-alpha.18](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.17...@pingux/astro@1.0.0-alpha.18) (2022-01-13)
|
168
|
+
|
169
|
+
|
170
|
+
### Bug Fixes
|
171
|
+
|
172
|
+
* [UIP-5107] IconButton - no focus in disabled state ([f301f6d](https://gitlab.corp.pingidentity.com/ux/pingux/commit/f301f6d0cdc8271c992eb3384094cafbd59fa0d5))
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
# [1.0.0-alpha.17](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.16...@pingux/astro@1.0.0-alpha.17) (2022-01-13)
|
179
|
+
|
180
|
+
|
181
|
+
### Bug Fixes
|
182
|
+
|
183
|
+
* [UIP-4997] Read only style TextAreaField ([a5f62bd](https://gitlab.corp.pingidentity.com/ux/pingux/commit/a5f62bd014f2d3d75c2c71625bc31ba5cefbb4df))
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
# [1.0.0-alpha.16](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.15...@pingux/astro@1.0.0-alpha.16) (2022-01-13)
|
190
|
+
|
191
|
+
|
192
|
+
### Bug Fixes
|
193
|
+
|
194
|
+
* [UIP-4962] accordion grid design improvements ([dcec402](https://gitlab.corp.pingidentity.com/ux/pingux/commit/dcec4025f945968e20386bc20ad011f48532acc7))
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
# [1.0.0-alpha.15](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.14...@pingux/astro@1.0.0-alpha.15) (2022-01-13)
|
201
|
+
|
202
|
+
**Note:** Version bump only for package @pingux/astro
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
# [1.0.0-alpha.14](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.13...@pingux/astro@1.0.0-alpha.14) (2022-01-10)
|
209
|
+
|
210
|
+
|
211
|
+
### Bug Fixes
|
212
|
+
|
213
|
+
* [UIP-4953] Chip component cleanup ([d2f10ec](https://gitlab.corp.pingidentity.com/ux/pingux/commit/d2f10ece82749d723ac35b6262c1b918f81abba1))
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
# [1.0.0-alpha.13](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.12...@pingux/astro@1.0.0-alpha.13) (2022-01-10)
|
220
|
+
|
221
|
+
|
222
|
+
### Bug Fixes
|
223
|
+
|
224
|
+
* [UIP-5063] Inline Button Text Size ([6f03c64](https://gitlab.corp.pingidentity.com/ux/pingux/commit/6f03c64b13dc2237d09acb565282394effd419b8))
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
# [1.0.0-alpha.12](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.11...@pingux/astro@1.0.0-alpha.12) (2022-01-10)
|
231
|
+
|
232
|
+
|
233
|
+
### Bug Fixes
|
234
|
+
|
235
|
+
* [UIP-5061] hide variants that aren't used for <Button> specifically ([85a494c](https://gitlab.corp.pingidentity.com/ux/pingux/commit/85a494cc3fa656a2fc6bb37dc0e718bdcfee7829))
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
# [1.0.0-alpha.11](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.10...@pingux/astro@1.0.0-alpha.11) (2022-01-08)
|
242
|
+
|
243
|
+
|
244
|
+
### Features
|
245
|
+
|
246
|
+
* [UIP-4887] ListView hides Separators on zoom ([92ca2bb](https://gitlab.corp.pingidentity.com/ux/pingux/commit/92ca2bb40bb49ce9a69eb097cc88b5e210acce8a))
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
# [1.0.0-alpha.10](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.9...@pingux/astro@1.0.0-alpha.10) (2022-01-07)
|
253
|
+
|
254
|
+
|
255
|
+
### Bug Fixes
|
256
|
+
|
257
|
+
* [UIP-5010] Disabled tabs can be displayed via keyboard ([9115f66](https://gitlab.corp.pingidentity.com/ux/pingux/commit/9115f66c8e921a910934cb8205b29321f2d30fe8))
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
6
263
|
# [1.0.0-alpha.9](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.0.0-alpha.8...@pingux/astro@1.0.0-alpha.9) (2022-01-07)
|
7
264
|
|
8
265
|
|
package/README.md
CHANGED
@@ -108,8 +108,6 @@ var Default = function Default() {
|
|
108
108
|
return (0, _react2.jsx)(_index.Box, {
|
109
109
|
isRow: true,
|
110
110
|
sx: {
|
111
|
-
pt: '12px',
|
112
|
-
pb: '12px',
|
113
111
|
flexGrow: 1
|
114
112
|
}
|
115
113
|
}, (0, _react2.jsx)(_index.Box, {
|
@@ -154,20 +152,14 @@ var Default = function Default() {
|
|
154
152
|
sx: {
|
155
153
|
mr: '4px',
|
156
154
|
height: '26px',
|
157
|
-
width: '26px'
|
158
|
-
'path': {
|
159
|
-
fill: 'active'
|
160
|
-
}
|
155
|
+
width: '26px'
|
161
156
|
}
|
162
157
|
}, (0, _react2.jsx)(_CreateIcon["default"], null)), (0, _react2.jsx)(_index.IconButton, {
|
163
158
|
"aria-label": "vertical-lines-icon",
|
164
159
|
sx: {
|
165
160
|
mr: '4px',
|
166
161
|
height: '26px',
|
167
|
-
width: '26px'
|
168
|
-
'path': {
|
169
|
-
fill: 'active'
|
170
|
-
}
|
162
|
+
width: '26px'
|
171
163
|
}
|
172
164
|
}, (0, _react2.jsx)(_MoreVertIcon["default"], null)))));
|
173
165
|
};
|
@@ -310,7 +302,8 @@ var Default = function Default() {
|
|
310
302
|
item: item
|
311
303
|
}), item.key !== 'Organization' ? (0, _react2.jsx)(_index.Separator, {
|
312
304
|
sx: {
|
313
|
-
m: 0
|
305
|
+
m: 0,
|
306
|
+
bg: 'neutral.90'
|
314
307
|
}
|
315
308
|
}) : null);
|
316
309
|
}))
|
@@ -39,6 +39,22 @@ var getComponent = function getComponent() {
|
|
39
39
|
}, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, null, "Header Button"), (0, _react2.jsx)(_index.Link, null, "Second Header Button")), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, null, "Body Button"), (0, _react2.jsx)(_index.Link, null, "Second Body Button")))));
|
40
40
|
};
|
41
41
|
|
42
|
+
var getComponentInOverlayPanel = function getComponentInOverlayPanel() {
|
43
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
44
|
+
return (0, _testWrapper.render)((0, _react2.jsx)(_index.OverlayPanel, {
|
45
|
+
isOpen: true
|
46
|
+
}, (0, _react2.jsx)(_AccordionGridGroup["default"], (0, _extends2["default"])({}, defaultProps, props), (0, _react2.jsx)(_collections.Item, {
|
47
|
+
key: "first",
|
48
|
+
textValue: "Duplicate"
|
49
|
+
}, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, null, "Header Button"), (0, _react2.jsx)(_index.Link, null, "Second Header Button")), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, null, "Body Button"), (0, _react2.jsx)(_index.Link, null, "Second Body Button"))), (0, _react2.jsx)(_collections.Item, {
|
50
|
+
key: "second",
|
51
|
+
textValue: "Duplicate"
|
52
|
+
}, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, null, "Header Button"), (0, _react2.jsx)(_index.Link, null, "Second Header Button")), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, null, "Body Button"), (0, _react2.jsx)(_index.Link, null, "Second Body Button"))), (0, _react2.jsx)(_collections.Item, {
|
53
|
+
key: "third",
|
54
|
+
textValue: "Duplicate"
|
55
|
+
}, (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, null, "Header Button"), (0, _react2.jsx)(_index.Link, null, "Second Header Button")), (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Link, null, "Body Button"), (0, _react2.jsx)(_index.Link, null, "Second Body Button"))))));
|
56
|
+
};
|
57
|
+
|
42
58
|
(0, _testAxe["default"])(getComponent, {
|
43
59
|
// landmark-unique rule conflicts with react-aria role definition
|
44
60
|
rules: {
|
@@ -230,4 +246,12 @@ test('default expanded keys expands an accordion item', function () {
|
|
230
246
|
|
231
247
|
var selectedRow = row[0];
|
232
248
|
expect(selectedRow).toHaveAttribute('aria-selected', 'true');
|
249
|
+
});
|
250
|
+
test('items do not automatically expand if wrapped in an open OverlayPanel', function () {
|
251
|
+
getComponentInOverlayPanel();
|
252
|
+
|
253
|
+
var row = _testWrapper.screen.getAllByRole('row');
|
254
|
+
|
255
|
+
var selectedRow = row[0];
|
256
|
+
expect(selectedRow).not.toHaveAttribute('aria-selected', 'true');
|
233
257
|
});
|
@@ -77,7 +77,7 @@ var AccordionGridItemBody = /*#__PURE__*/(0, _react.forwardRef)(function (props,
|
|
77
77
|
}, mergedProps, {
|
78
78
|
isSelected: isSelected,
|
79
79
|
className: classNames,
|
80
|
-
"aria-label": ariaLabel
|
80
|
+
"aria-label": ariaLabel
|
81
81
|
}), children);
|
82
82
|
});
|
83
83
|
AccordionGridItemBody.propTypes = {
|
@@ -106,7 +106,7 @@ var AccordionGridItemHeader = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
106
106
|
isSelected: isSelected,
|
107
107
|
className: classNames
|
108
108
|
}, others, {
|
109
|
-
"aria-label": ariaLabel
|
109
|
+
"aria-label": ariaLabel
|
110
110
|
}), (0, _react2.jsx)(_Box["default"], {
|
111
111
|
isRow: true
|
112
112
|
}, children, (0, _react2.jsx)(_Box["default"], {
|
@@ -20,6 +20,8 @@ var _Text = _interopRequireDefault(require("../Text"));
|
|
20
20
|
|
21
21
|
var _AccordionGroup = _interopRequireDefault(require("../AccordionGroup"));
|
22
22
|
|
23
|
+
var _index = require("../../index");
|
24
|
+
|
23
25
|
var _react2 = require("@emotion/react");
|
24
26
|
|
25
27
|
var testId = 'test-accordion';
|
@@ -30,6 +32,28 @@ var defaultProps = {
|
|
30
32
|
var getComponent = function getComponent() {
|
31
33
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
32
34
|
return (0, _testWrapper.render)((0, _react2.jsx)(_AccordionGroup["default"], (0, _extends2["default"])({}, defaultProps, props), (0, _react2.jsx)(_collections.Item, {
|
35
|
+
key: "first",
|
36
|
+
textValue: "Duplicate",
|
37
|
+
"data-id": "first",
|
38
|
+
label: "Accordion item"
|
39
|
+
}, (0, _react2.jsx)(_Text["default"], null, "Render me!")), (0, _react2.jsx)(_collections.Item, {
|
40
|
+
key: "second",
|
41
|
+
textValue: "Duplicate",
|
42
|
+
"data-id": "second",
|
43
|
+
label: "Accordion item"
|
44
|
+
}, (0, _react2.jsx)(_Text["default"], null, "Render me!")), (0, _react2.jsx)(_collections.Item, {
|
45
|
+
key: "third",
|
46
|
+
textValue: "Duplicate",
|
47
|
+
"data-id": "third",
|
48
|
+
label: "Accordion item"
|
49
|
+
}, (0, _react2.jsx)(_Text["default"], null, "Render me!"))));
|
50
|
+
};
|
51
|
+
|
52
|
+
var getComponentInOverlayPanel = function getComponentInOverlayPanel() {
|
53
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
54
|
+
return (0, _testWrapper.render)((0, _react2.jsx)(_index.OverlayPanel, {
|
55
|
+
isOpen: true
|
56
|
+
}, (0, _react2.jsx)(_AccordionGroup["default"], (0, _extends2["default"])({}, defaultProps, props), (0, _react2.jsx)(_collections.Item, {
|
33
57
|
key: "first",
|
34
58
|
textValue: "Duplicate",
|
35
59
|
"data-id": "first"
|
@@ -41,7 +65,7 @@ var getComponent = function getComponent() {
|
|
41
65
|
key: "third",
|
42
66
|
textValue: "Duplicate",
|
43
67
|
"data-id": "third"
|
44
|
-
}, (0, _react2.jsx)(_Text["default"], null, "Render me!"))));
|
68
|
+
}, (0, _react2.jsx)(_Text["default"], null, "Render me!")))));
|
45
69
|
}; // Need to be added to each test file to test accessibility using axe.
|
46
70
|
|
47
71
|
|
@@ -264,4 +288,12 @@ test('Item accepts a data-id and the data-id can be found in the DOM', function
|
|
264
288
|
var selectedItem = buttons[0];
|
265
289
|
var parentElement = selectedItem.parentElement;
|
266
290
|
expect(parentElement).toHaveAttribute('data-id', 'first');
|
291
|
+
});
|
292
|
+
test('items do not automatically expand if wrapped in an open OverlayPanel', function () {
|
293
|
+
getComponentInOverlayPanel();
|
294
|
+
|
295
|
+
var buttons = _testWrapper.screen.getAllByRole('button');
|
296
|
+
|
297
|
+
var selectedItem = buttons[0];
|
298
|
+
expect(selectedItem).not.toHaveAttribute('aria-expanded', 'true');
|
267
299
|
});
|
@@ -100,12 +100,11 @@ var AccordionItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
100
100
|
buttonClasses = _useStatusClasses2.classNames;
|
101
101
|
|
102
102
|
var ariaLabel = props['aria-label'] || item.props.label;
|
103
|
-
(0, _hooks.useAriaLabelWarning)('AccordionItem', ariaLabel);
|
104
103
|
return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
105
104
|
variant: "accordion.accordion",
|
106
105
|
className: itemClasses
|
107
106
|
}, others, containerProps), (0, _react2.jsx)(_themeUi.Button, (0, _extends2["default"])({
|
108
|
-
"aria-label": ariaLabel
|
107
|
+
"aria-label": ariaLabel,
|
109
108
|
ref: buttonRef,
|
110
109
|
sx: {
|
111
110
|
display: 'flex',
|
@@ -122,9 +121,11 @@ var AccordionItem = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
122
121
|
ml: "5px"
|
123
122
|
}, (0, _react2.jsx)(_index.Icon, {
|
124
123
|
icon: isOpen ? _MenuUpIcon["default"] : _MenuDownIcon["default"]
|
125
|
-
}))), (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
124
|
+
}))), isOpen && (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({
|
126
125
|
variant: "accordion.accordionBody"
|
127
|
-
}, accordionRegionProps, regionProps
|
126
|
+
}, accordionRegionProps, regionProps, {
|
127
|
+
className: itemClasses
|
128
|
+
}), item.rendered));
|
128
129
|
});
|
129
130
|
AccordionItem.propTypes = {
|
130
131
|
'aria-label': _propTypes["default"].string,
|
@@ -48,14 +48,10 @@ var _focus = require("@react-aria/focus");
|
|
48
48
|
|
49
49
|
var _utils = require("@react-aria/utils");
|
50
50
|
|
51
|
-
var _constants = require("./constants");
|
52
|
-
|
53
51
|
var _hooks = require("../../hooks");
|
54
52
|
|
55
53
|
var _Loader = _interopRequireDefault(require("../Loader"));
|
56
54
|
|
57
|
-
var _Box = _interopRequireDefault(require("../Box"));
|
58
|
-
|
59
55
|
var _react2 = require("@emotion/react");
|
60
56
|
|
61
57
|
function ownKeys(object, enumerableOnly) { var keys = (0, _keys["default"])(object); if (_getOwnPropertySymbols["default"]) { var symbols = (0, _getOwnPropertySymbols["default"])(object); if (enumerableOnly) symbols = (0, _filter["default"])(symbols).call(symbols, function (sym) { return (0, _getOwnPropertyDescriptor["default"])(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
@@ -75,8 +71,7 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
75
71
|
onPressChange = props.onPressChange,
|
76
72
|
onPressUp = props.onPressUp,
|
77
73
|
children = props.children,
|
78
|
-
|
79
|
-
others = (0, _objectWithoutProperties2["default"])(props, ["className", "isDisabled", "isLoading", "onHoverStart", "onHoverChange", "onHoverEnd", "onPress", "onPressStart", "onPressEnd", "onPressChange", "onPressUp", "children", "mode"]);
|
74
|
+
others = (0, _objectWithoutProperties2["default"])(props, ["className", "isDisabled", "isLoading", "onHoverStart", "onHoverChange", "onHoverEnd", "onPress", "onPressStart", "onPressEnd", "onPressChange", "onPressUp", "children"]);
|
80
75
|
var buttonRef = (0, _react.useRef)();
|
81
76
|
(0, _hooks.usePropWarning)(props, 'disabled', 'isDisabled');
|
82
77
|
/* istanbul ignore next */
|
@@ -84,20 +79,13 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
84
79
|
(0, _react.useImperativeHandle)(ref, function () {
|
85
80
|
return buttonRef.current;
|
86
81
|
});
|
87
|
-
var ButtonBase = (0, _react.useMemo)(function () {
|
88
|
-
return mode === _constants.modes.ICON ? _Box["default"] : _themeUi.Button;
|
89
|
-
}, [mode]);
|
90
|
-
var elementType = (0, _react.useMemo)(function () {
|
91
|
-
if (mode === _constants.modes.ICON) return 'div';
|
92
|
-
return 'button';
|
93
|
-
}, [mode]);
|
94
82
|
|
95
83
|
var _useFocusRing = (0, _focus.useFocusRing)(),
|
96
84
|
isFocusVisible = _useFocusRing.isFocusVisible,
|
97
85
|
focusProps = _useFocusRing.focusProps;
|
98
86
|
|
99
87
|
var _useButton = (0, _button.useButton)(_objectSpread({
|
100
|
-
elementType:
|
88
|
+
elementType: 'button'
|
101
89
|
}, props), buttonRef),
|
102
90
|
buttonProps = _useButton.buttonProps,
|
103
91
|
isPressed = _useButton.isPressed;
|
@@ -114,13 +102,9 @@ var Button = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
114
102
|
}),
|
115
103
|
classNames = _useStatusClasses.classNames;
|
116
104
|
|
117
|
-
(0, _hooks.useDeprecationWarning)('The "icon" variant for `Button` will be deprecated in Astro-UI 1.0.0, use the `IconButton` component instead.', {
|
118
|
-
isActive: props.variant === 'icon'
|
119
|
-
});
|
120
105
|
var ariaLabel = props['aria-label'];
|
121
|
-
(0,
|
122
|
-
|
123
|
-
"aria-label": ariaLabel || 'Button',
|
106
|
+
return (0, _react2.jsx)(_themeUi.Button, (0, _extends2["default"])({
|
107
|
+
"aria-label": ariaLabel,
|
124
108
|
ref: buttonRef,
|
125
109
|
className: classNames,
|
126
110
|
role: "button",
|
@@ -202,15 +186,11 @@ Button.propTypes = {
|
|
202
186
|
onPressUp: _propTypes["default"].func,
|
203
187
|
|
204
188
|
/** The styling variation of the button. */
|
205
|
-
variant: _propTypes["default"].string
|
206
|
-
|
207
|
-
/** The behavioral pattern to apply to the button. */
|
208
|
-
mode: _propTypes["default"].oneOf(['default', 'icon'])
|
189
|
+
variant: _propTypes["default"].string
|
209
190
|
};
|
210
191
|
Button.defaultProps = {
|
211
192
|
isDisabled: false,
|
212
|
-
variant: 'default'
|
213
|
-
mode: 'default'
|
193
|
+
variant: 'default'
|
214
194
|
};
|
215
195
|
Button.displayName = 'Button';
|
216
196
|
var _default = Button;
|
@@ -10,10 +10,6 @@ _Object$defineProperty(exports, "__esModule", {
|
|
10
10
|
|
11
11
|
exports.InlineButton = exports.TextButton = exports.TextIconButton = exports.Disabled = exports.Default = exports["default"] = void 0;
|
12
12
|
|
13
|
-
var _find = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find"));
|
14
|
-
|
15
|
-
var _values = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/object/values"));
|
16
|
-
|
17
13
|
var _react = _interopRequireDefault(require("react"));
|
18
14
|
|
19
15
|
var _AddCircleIcon = _interopRequireDefault(require("mdi-react/AddCircleIcon"));
|
@@ -30,13 +26,13 @@ var _variants = require("../../utils/devUtils/constants/variants");
|
|
30
26
|
|
31
27
|
var _react2 = require("@emotion/react");
|
32
28
|
|
33
|
-
var _context;
|
34
|
-
|
35
29
|
// removing the iconButton variants from this story.
|
36
30
|
var variants = _variants.buttonVariants;
|
37
31
|
delete variants.ICON;
|
38
32
|
delete variants.ICON_BUTTON;
|
39
|
-
delete variants.INVERTED;
|
33
|
+
delete variants.INVERTED; // add designer approved variants for devs to use here
|
34
|
+
|
35
|
+
var variantOptions = ['critical', 'danger', 'default', 'inline', 'link', 'primary', 'success', 'text'];
|
40
36
|
var _default = {
|
41
37
|
title: 'Button',
|
42
38
|
component: _["default"],
|
@@ -44,11 +40,9 @@ var _default = {
|
|
44
40
|
variant: {
|
45
41
|
control: {
|
46
42
|
type: 'select',
|
47
|
-
options:
|
43
|
+
options: variantOptions
|
48
44
|
},
|
49
|
-
defaultValue:
|
50
|
-
return value === 'default';
|
51
|
-
})
|
45
|
+
defaultValue: 'default'
|
52
46
|
},
|
53
47
|
children: {
|
54
48
|
description: 'Button text.',
|
@@ -99,7 +93,8 @@ exports.TextIconButton = TextIconButton;
|
|
99
93
|
var TextButton = function TextButton() {
|
100
94
|
return (0, _react2.jsx)(_["default"], {
|
101
95
|
mb: "sm",
|
102
|
-
variant: "text"
|
96
|
+
variant: "text",
|
97
|
+
"aria-label": "Add option"
|
103
98
|
}, (0, _react2.jsx)(_Text["default"], {
|
104
99
|
variant: "label",
|
105
100
|
color: "active"
|
@@ -8,35 +8,23 @@ var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
|
9
9
|
var _userEvent = _interopRequireDefault(require("@testing-library/user-event"));
|
10
10
|
|
11
|
-
var _AddCircleIcon = _interopRequireDefault(require("mdi-react/AddCircleIcon"));
|
12
|
-
|
13
11
|
var _testAxe = _interopRequireDefault(require("../../utils/testUtils/testAxe"));
|
14
12
|
|
15
13
|
var _testWrapper = require("../../utils/testUtils/testWrapper");
|
16
14
|
|
17
15
|
var _ = _interopRequireDefault(require("."));
|
18
16
|
|
19
|
-
var _Icon = _interopRequireDefault(require("../Icon"));
|
20
|
-
|
21
17
|
var _react2 = require("@emotion/react");
|
22
18
|
|
23
19
|
var testId = 'test-button';
|
24
20
|
var defaultProps = {
|
25
|
-
'data-testid': testId
|
21
|
+
'data-testid': testId,
|
22
|
+
'aria-label': 'Test button'
|
26
23
|
};
|
27
24
|
|
28
25
|
var getComponent = function getComponent() {
|
29
26
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
30
27
|
return (0, _testWrapper.render)((0, _react2.jsx)(_["default"], (0, _extends2["default"])({}, defaultProps, props)));
|
31
|
-
};
|
32
|
-
|
33
|
-
var getIconButton = function getIconButton() {
|
34
|
-
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
35
|
-
return (0, _testWrapper.render)((0, _react2.jsx)(_["default"], (0, _extends2["default"])({}, defaultProps, props, {
|
36
|
-
variant: "icon"
|
37
|
-
}), (0, _react2.jsx)(_Icon["default"], {
|
38
|
-
icon: _AddCircleIcon["default"]
|
39
|
-
})));
|
40
28
|
}; // Need to be added to each test file to test accessibility using axe.
|
41
29
|
|
42
30
|
|
@@ -134,15 +122,4 @@ test('button renders children when not loading', function () {
|
|
134
122
|
expect(childWrapper).toBeInTheDocument();
|
135
123
|
expect(childWrapper).toBeVisible();
|
136
124
|
expect(_testWrapper.screen.queryByRole('progressbar')).not.toBeInTheDocument();
|
137
|
-
});
|
138
|
-
test('passing in an icon makes the button parent a div', function () {
|
139
|
-
getIconButton({
|
140
|
-
mode: 'icon'
|
141
|
-
});
|
142
|
-
|
143
|
-
var button = _testWrapper.screen.getByRole('button');
|
144
|
-
|
145
|
-
expect(button).toBeInTheDocument();
|
146
|
-
expect(button).toBeVisible();
|
147
|
-
expect(button).toBeInstanceOf(HTMLDivElement);
|
148
125
|
});
|