@patternfly/react-table 4.97.0 → 4.99.0

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,39 @@
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
+ # 4.99.0 (2022-08-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **Page:** add support for vertical breakpoints, add sticky breadcrumb demo ([#7764](https://github.com/patternfly/patternfly-react/issues/7764)) ([9db582d](https://github.com/patternfly/patternfly-react/commit/9db582d63a3499fa78ea8fab3ce31b7877cd479d))
12
+
13
+
14
+
15
+
16
+
17
+ # 4.98.0 (2022-08-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * **DescriptionList:** add Display and Card variants ([#7713](https://github.com/patternfly/patternfly-react/issues/7713)) ([8c6e6d8](https://github.com/patternfly/patternfly-react/commit/8c6e6d83cdbe989d306c64f945aac206eac3ff91))
23
+
24
+
25
+
26
+
27
+
28
+ ## 4.97.1 (2022-08-01)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **Menu/Nav:** flyout variants work with VO navigation ([#7772](https://github.com/patternfly/patternfly-react/issues/7772)) ([6ad76cc](https://github.com/patternfly/patternfly-react/commit/6ad76cc1b466e8e93773f58002acf5ca54ad6e36))
34
+
35
+
36
+
37
+
38
+
6
39
  # 4.97.0 (2022-07-29)
7
40
 
8
41
 
@@ -109,6 +109,76 @@
109
109
  return classes.join(' ');
110
110
  }
111
111
 
112
+ const global_breakpoint_sm = {
113
+ "name": "--pf-global--breakpoint--sm",
114
+ "value": "576px",
115
+ "var": "var(--pf-global--breakpoint--sm)"
116
+ };
117
+ var globalBreakpointSm = global_breakpoint_sm;
118
+
119
+ const global_breakpoint_md = {
120
+ "name": "--pf-global--breakpoint--md",
121
+ "value": "768px",
122
+ "var": "var(--pf-global--breakpoint--md)"
123
+ };
124
+ var globalBreakpointMd = global_breakpoint_md;
125
+
126
+ const global_breakpoint_lg = {
127
+ "name": "--pf-global--breakpoint--lg",
128
+ "value": "992px",
129
+ "var": "var(--pf-global--breakpoint--lg)"
130
+ };
131
+ var globalBreakpointLg = global_breakpoint_lg;
132
+
133
+ const global_breakpoint_xl = {
134
+ "name": "--pf-global--breakpoint--xl",
135
+ "value": "1200px",
136
+ "var": "var(--pf-global--breakpoint--xl)"
137
+ };
138
+ var globalBreakpointXl = global_breakpoint_xl;
139
+
140
+ const global_breakpoint_2xl = {
141
+ "name": "--pf-global--breakpoint--2xl",
142
+ "value": "1450px",
143
+ "var": "var(--pf-global--breakpoint--2xl)"
144
+ };
145
+ var globalBreakpoint2xl = global_breakpoint_2xl;
146
+
147
+ const global_height_breakpoint_sm = {
148
+ "name": "--pf-global--height-breakpoint--sm",
149
+ "value": "0",
150
+ "var": "var(--pf-global--height-breakpoint--sm)"
151
+ };
152
+ var globalHeightBreakpointSm = global_height_breakpoint_sm;
153
+
154
+ const global_height_breakpoint_md = {
155
+ "name": "--pf-global--height-breakpoint--md",
156
+ "value": "40rem",
157
+ "var": "var(--pf-global--height-breakpoint--md)"
158
+ };
159
+ var globalHeightBreakpointMd = global_height_breakpoint_md;
160
+
161
+ const global_height_breakpoint_lg = {
162
+ "name": "--pf-global--height-breakpoint--lg",
163
+ "value": "48rem",
164
+ "var": "var(--pf-global--height-breakpoint--lg)"
165
+ };
166
+ var globalHeightBreakpointLg = global_height_breakpoint_lg;
167
+
168
+ const global_height_breakpoint_xl = {
169
+ "name": "--pf-global--height-breakpoint--xl",
170
+ "value": "60rem",
171
+ "var": "var(--pf-global--height-breakpoint--xl)"
172
+ };
173
+ var globalHeightBreakpointXl = global_height_breakpoint_xl;
174
+
175
+ const global_height_breakpoint_2xl = {
176
+ "name": "--pf-global--height-breakpoint--2xl",
177
+ "value": "80rem",
178
+ "var": "var(--pf-global--height-breakpoint--2xl)"
179
+ };
180
+ var globalHeightBreakpoint2xl = global_height_breakpoint_2xl;
181
+
112
182
  const KEY_CODES = { ARROW_UP: 38, ARROW_DOWN: 40, ESCAPE_KEY: 27, TAB: 9, ENTER: 13, SPACE: 32 };
113
183
  const KEYHANDLER_DIRECTION = { UP: 'up', DOWN: 'down', RIGHT: 'right', LEFT: 'left' };
114
184
  var ValidatedOptions;
@@ -128,6 +198,20 @@
128
198
  ArrowLeft: 'ArrowLeft',
129
199
  ArrowRight: 'ArrowRight'
130
200
  };
201
+ ({
202
+ sm: parseInt(globalBreakpointSm.value),
203
+ md: parseInt(globalBreakpointMd.value),
204
+ lg: parseInt(globalBreakpointLg.value),
205
+ xl: parseInt(globalBreakpointXl.value),
206
+ '2xl': parseInt(globalBreakpoint2xl.value)
207
+ });
208
+ ({
209
+ sm: parseInt(globalHeightBreakpointSm.value),
210
+ md: parseInt(globalHeightBreakpointMd.value),
211
+ lg: parseInt(globalHeightBreakpointLg.value),
212
+ xl: parseInt(globalHeightBreakpointXl.value),
213
+ '2xl': parseInt(globalHeightBreakpoint2xl.value)
214
+ });
131
215
 
132
216
  /*!
133
217
  * tabbable 5.3.3
@@ -1711,11 +1795,11 @@
1711
1795
  * @param {object} mods The modifiers object
1712
1796
  * @param {any} styles The appropriate styles object for the component
1713
1797
  */
1714
- const formatBreakpointMods = (mods, styles, stylePrefix = '', breakpoint) => {
1798
+ const formatBreakpointMods = (mods, styles, stylePrefix = '', breakpoint, vertical) => {
1715
1799
  if (!mods) {
1716
1800
  return '';
1717
1801
  }
1718
- if (breakpoint) {
1802
+ if (breakpoint && !vertical) {
1719
1803
  if (breakpoint in mods) {
1720
1804
  return styles.modifiers[toCamel$1(`${stylePrefix}${mods[breakpoint]}`)];
1721
1805
  }
@@ -1730,7 +1814,7 @@
1730
1814
  return '';
1731
1815
  }
1732
1816
  return Object.entries(mods || {})
1733
- .map(([breakpoint, mod]) => `${stylePrefix}${mod}${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`)
1817
+ .map(([breakpoint, mod]) => `${stylePrefix}${mod}${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}${vertical && breakpoint !== 'default' ? '-height' : ''}`)
1734
1818
  .map(toCamel$1)
1735
1819
  .map(mod => mod.replace(/-?(\dxl)/gi, (_res, group) => `_${group}`))
1736
1820
  .map(modifierKey => styles.modifiers[modifierKey])