@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.
- package/lib/cjs/components/DataTable/DataTable.js +9 -12
- package/lib/cjs/components/Modal/Modal.js +1 -1
- package/lib/cjs/components/Modal/Modal.stories.js +2 -4
- package/lib/components/DataTable/DataTable.js +9 -12
- package/lib/components/Modal/Modal.js +1 -1
- package/lib/components/Modal/Modal.stories.js +2 -4
- package/package.json +1 -1
@@ -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
|
-
|
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,
|
361
|
+
var props = (0, _reactAria.mergeProps)(otherProps, focusProps, rowProps, hoverProps);
|
367
362
|
var _useStatusClasses3 = (0, _hooks.useStatusClasses)('', {
|
368
|
-
'is-row-focus-visible': isFocusVisible
|
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)(
|
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,
|
@@ -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
|
-
|
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,
|
350
|
+
var props = mergeProps(otherProps, focusProps, rowProps, hoverProps);
|
356
351
|
var _useStatusClasses3 = useStatusClasses('', {
|
357
|
-
'is-row-focus-visible': isFocusVisible
|
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(
|
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,
|
@@ -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",
|