@dloizides/ui-feedback 1.15.0 → 1.15.2

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
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.15.2
4
+
5
+ - **ErrorState buttons take the kit hit-target floor from `@dloizides/a11y`** (`MIN_TOUCH_TARGET_PX`,
6
+ 48px) instead of a local 44px constant, matching `ui-buttons`. `@dloizides/a11y` is now a dependency
7
+ (JOBS-LIVE-1 "Live job updates").
8
+
9
+ ## 1.15.1
10
+
11
+ - **ErrorState retry and secondary buttons now have a 44px minimum height** (`MIN_TOUCH_TARGET`),
12
+ content centred. Padding alone rendered them 34px tall, below the mobile-first hit-box standard
13
+ (JOBS-LIVE-1 "Live job updates").
14
+
3
15
  ## 1.15.0
4
16
 
5
17
  - **New `ProgressBar`** (promoted from aml-v2 `JobProgressBar`, RUPEP-5 "Upload a RuPEP file from the
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  var react = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var reactNative = require('react-native');
6
+ var a11y = require('@dloizides/a11y');
6
7
  var uiMotion = require('@dloizides/ui-motion');
7
8
  var reactDom = require('react-dom');
8
9
  var designTokens = require('@dloizides/design-tokens');
@@ -87,6 +88,9 @@ var styles = reactNative.StyleSheet.create({
87
88
  opacity: WELL_TINT_OPACITY
88
89
  },
89
90
  secondaryButton: {
91
+ minHeight: a11y.MIN_TOUCH_TARGET_PX,
92
+ justifyContent: "center",
93
+ alignItems: "center",
90
94
  marginTop: BUTTON_MARGIN_TOP,
91
95
  paddingVertical: BUTTON_PADDING_V,
92
96
  paddingHorizontal: BUTTON_PADDING_H,
@@ -151,6 +155,9 @@ var styles2 = reactNative.StyleSheet.create({
151
155
  columnGap: ACTION_GAP
152
156
  },
153
157
  retryButton: {
158
+ minHeight: a11y.MIN_TOUCH_TARGET_PX,
159
+ justifyContent: "center",
160
+ alignItems: "center",
154
161
  marginTop: BUTTON_MARGIN_TOP2,
155
162
  paddingVertical: BUTTON_PADDING_V2,
156
163
  paddingHorizontal: BUTTON_PADDING_H2,