@pingux/astro 2.139.0-alpha.2 → 2.139.0-alpha.4

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.
@@ -352,20 +352,15 @@ var TableRow = function TableRow(_ref4) {
352
352
  var isSelectable = state.selectionManager.selectionMode !== 'none';
353
353
  var isSelected = state.selectionManager.isSelected(item.key);
354
354
  var isDisabled = state.disabledKeys.has(item.key);
355
- var _useFocusRing2 = (0, _reactAria.useFocusRing)({
356
- within: true
357
- }),
358
- isFocusVisibleWithin = _useFocusRing2.isFocusVisible,
359
- focusWithinProps = _useFocusRing2.focusProps;
360
- var _useFocusRing3 = (0, _reactAria.useFocusRing)(),
361
- isFocusVisible = _useFocusRing3.isFocusVisible,
362
- focusProps = _useFocusRing3.focusProps;
355
+ var _useFocusRing2 = (0, _reactAria.useFocusRing)(),
356
+ isFocusVisible = _useFocusRing2.isFocusVisible,
357
+ focusProps = _useFocusRing2.focusProps;
363
358
  var _useHover = (0, _interactions.useHover)({}),
364
359
  hoverProps = _useHover.hoverProps,
365
360
  isHovered = _useHover.isHovered;
366
- var props = (0, _reactAria.mergeProps)(otherProps, focusWithinProps, focusProps, rowProps, hoverProps);
361
+ var props = (0, _reactAria.mergeProps)(otherProps, focusProps, rowProps, hoverProps);
367
362
  var _useStatusClasses3 = (0, _hooks.useStatusClasses)('', {
368
- 'is-row-focus-visible': isFocusVisible || isFocusVisibleWithin,
363
+ 'is-row-focus-visible': isFocusVisible,
369
364
  isSelectable: isSelectable,
370
365
  isSelected: isSelected,
371
366
  isHovered: isHovered,
@@ -373,11 +368,13 @@ var TableRow = function TableRow(_ref4) {
373
368
  }),
374
369
  classNames = _useStatusClasses3.classNames;
375
370
  var variant = isSelectable ? 'dataTable.selectableTableRow' : 'dataTable.tableRow';
376
- return (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({}, props, {
371
+ return (0, _react2.jsx)(_reactAria.FocusRing, {
372
+ focusRingClass: "is-row-focus-visible"
373
+ }, (0, _react2.jsx)(_index.Box, (0, _extends2["default"])({}, props, {
377
374
  ref: ref,
378
375
  variant: variant,
379
376
  className: classNames
380
- }), children);
377
+ }), children));
381
378
  };
382
379
  var TableHeaderRow = function TableHeaderRow(_ref5) {
383
380
  var item = _ref5.item,
@@ -131,7 +131,7 @@ var Modal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
131
131
  name: 'Close Icon'
132
132
  }
133
133
  }))), titleContent), (0, _react2.jsx)(_Box["default"], {
134
- pt: "lg"
134
+ pt: "md"
135
135
  }, children)))));
136
136
  });
137
137
  Modal.defaultProps = {
@@ -97,12 +97,10 @@ var _default = {
97
97
  exports["default"] = _default;
98
98
  var Default = function Default(args) {
99
99
  var state = (0, _hooks.useModalState)();
100
- var ModalBodyContent = (0, _react2.jsx)(_index.Box, {
101
- gap: "lg"
102
- }, (0, _react2.jsx)(_index.Text, null, "Do you want to continue with this action that you\u2018re performing?"), (0, _react2.jsx)(_index.Box, {
100
+ var ModalBodyContent = (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Text, null, "Do you want to continue with this action that you\u2018re performing?"), (0, _react2.jsx)(_index.Box, {
103
101
  isRow: true,
104
- pt: "lg",
105
102
  mr: "auto",
103
+ width: "100%",
106
104
  variant: "modal.buttonsContainer"
107
105
  }, (0, _react2.jsx)(_index.Button, {
108
106
  variant: "primary",
@@ -341,20 +341,15 @@ var TableRow = function TableRow(_ref4) {
341
341
  var isSelectable = state.selectionManager.selectionMode !== 'none';
342
342
  var isSelected = state.selectionManager.isSelected(item.key);
343
343
  var isDisabled = state.disabledKeys.has(item.key);
344
- var _useFocusRing2 = useFocusRing({
345
- within: true
346
- }),
347
- isFocusVisibleWithin = _useFocusRing2.isFocusVisible,
348
- focusWithinProps = _useFocusRing2.focusProps;
349
- var _useFocusRing3 = useFocusRing(),
350
- isFocusVisible = _useFocusRing3.isFocusVisible,
351
- focusProps = _useFocusRing3.focusProps;
344
+ var _useFocusRing2 = useFocusRing(),
345
+ isFocusVisible = _useFocusRing2.isFocusVisible,
346
+ focusProps = _useFocusRing2.focusProps;
352
347
  var _useHover = useHover({}),
353
348
  hoverProps = _useHover.hoverProps,
354
349
  isHovered = _useHover.isHovered;
355
- var props = mergeProps(otherProps, focusWithinProps, focusProps, rowProps, hoverProps);
350
+ var props = mergeProps(otherProps, focusProps, rowProps, hoverProps);
356
351
  var _useStatusClasses3 = useStatusClasses('', {
357
- 'is-row-focus-visible': isFocusVisible || isFocusVisibleWithin,
352
+ 'is-row-focus-visible': isFocusVisible,
358
353
  isSelectable: isSelectable,
359
354
  isSelected: isSelected,
360
355
  isHovered: isHovered,
@@ -362,11 +357,13 @@ var TableRow = function TableRow(_ref4) {
362
357
  }),
363
358
  classNames = _useStatusClasses3.classNames;
364
359
  var variant = isSelectable ? 'dataTable.selectableTableRow' : 'dataTable.tableRow';
365
- return ___EmotionJSX(Box, _extends({}, props, {
360
+ return ___EmotionJSX(FocusRing, {
361
+ focusRingClass: "is-row-focus-visible"
362
+ }, ___EmotionJSX(Box, _extends({}, props, {
366
363
  ref: ref,
367
364
  variant: variant,
368
365
  className: classNames
369
- }), children);
366
+ }), children));
370
367
  };
371
368
  var TableHeaderRow = function TableHeaderRow(_ref5) {
372
369
  var item = _ref5.item,
@@ -120,7 +120,7 @@ var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
120
120
  name: 'Close Icon'
121
121
  }
122
122
  }))), titleContent), ___EmotionJSX(Box, {
123
- pt: "lg"
123
+ pt: "md"
124
124
  }, children)))));
125
125
  });
126
126
  Modal.defaultProps = {
@@ -88,12 +88,10 @@ export default {
88
88
  };
89
89
  export var Default = function Default(args) {
90
90
  var state = useModalState();
91
- var ModalBodyContent = ___EmotionJSX(Box, {
92
- gap: "lg"
93
- }, ___EmotionJSX(Text, null, "Do you want to continue with this action that you\u2018re performing?"), ___EmotionJSX(Box, {
91
+ var ModalBodyContent = ___EmotionJSX(Box, null, ___EmotionJSX(Text, null, "Do you want to continue with this action that you\u2018re performing?"), ___EmotionJSX(Box, {
94
92
  isRow: true,
95
- pt: "lg",
96
93
  mr: "auto",
94
+ width: "100%",
97
95
  variant: "modal.buttonsContainer"
98
96
  }, ___EmotionJSX(Button, {
99
97
  variant: "primary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.139.0-alpha.2",
3
+ "version": "2.139.0-alpha.4",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",