@pingux/astro 1.16.0-alpha.3 → 1.16.1-alpha.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 +18 -0
- package/lib/cjs/components/ArrayField/ArrayField.js +5 -1
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +1 -0
- package/lib/cjs/components/Button/Button.js +5 -0
- package/lib/cjs/components/Chip/Chip.stories.js +3 -1
- package/lib/cjs/components/Link/Link.js +5 -0
- package/lib/cjs/components/ListView/ListView.js +6 -0
- package/lib/cjs/components/Messages/Messages.js +4 -0
- package/lib/cjs/components/Modal/Modal.js +5 -0
- package/lib/cjs/components/NavBar/NavBar.stories.js +1 -1
- package/lib/cjs/components/OverlayPanel/OverlayPanel.js +3 -0
- package/lib/cjs/components/RequirementsList/RequirementsList.js +4 -0
- package/lib/cjs/components/ScrollBox/ScrollBox.js +5 -2
- package/lib/cjs/components/Stepper/Stepper.js +6 -0
- package/lib/cjs/components/Tab/Tab.js +4 -0
- package/lib/cjs/components/Tabs/Tabs.js +4 -0
- package/lib/cjs/styles/variants/boxes.js +1 -1
- package/lib/components/ArrayField/ArrayField.js +6 -1
- package/lib/components/ArrayField/ArrayField.stories.js +1 -0
- package/lib/components/Button/Button.js +6 -0
- package/lib/components/Chip/Chip.stories.js +3 -1
- package/lib/components/Link/Link.js +6 -0
- package/lib/components/ListView/ListView.js +6 -0
- package/lib/components/Messages/Messages.js +5 -0
- package/lib/components/Modal/Modal.js +6 -0
- package/lib/components/NavBar/NavBar.stories.js +1 -1
- package/lib/components/OverlayPanel/OverlayPanel.js +4 -0
- package/lib/components/RequirementsList/RequirementsList.js +5 -0
- package/lib/components/ScrollBox/ScrollBox.js +6 -2
- package/lib/components/Stepper/Stepper.js +6 -0
- package/lib/components/Tab/Tab.js +5 -0
- package/lib/components/Tabs/Tabs.js +4 -0
- package/lib/styles/variants/boxes.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,24 @@
|
|
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.16.0](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.15.0...@pingux/astro@1.16.0) (2022-06-08)
|
7
|
+
|
8
|
+
|
9
|
+
### Bug Fixes
|
10
|
+
|
11
|
+
* [UIP-5364] make chip icon not wrapped in a button aria-hidden ([cdf7df3](https://gitlab.corp.pingidentity.com/ux/pingux/commit/cdf7df39dcce043faaba97f54f491057d1dc4174))
|
12
|
+
* Added 5px padding to add btn ([1445f77](https://gitlab.corp.pingidentity.com/ux/pingux/commit/1445f77cbb8b8ece4c6d21249c3277e409dfd87c))
|
13
|
+
|
14
|
+
|
15
|
+
### Features
|
16
|
+
|
17
|
+
* [UIP-5374] change Loader role to alert ([27e9cfa](https://gitlab.corp.pingidentity.com/ux/pingux/commit/27e9cfa578b80f164ad617f28c1dd9fa92346d10))
|
18
|
+
* [UIP-5456] Multivalues selectedKeys not showing selected options in external app ([8342005](https://gitlab.corp.pingidentity.com/ux/pingux/commit/8342005406d0d1c351eda6a38c7070ce21ebb19b))
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
6
24
|
# [1.15.0](https://gitlab.corp.pingidentity.com/ux/pingux/compare/@pingux/astro@1.14.0...@pingux/astro@1.15.0) (2022-05-31)
|
7
25
|
|
8
26
|
|
@@ -81,6 +81,10 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
81
81
|
|
82
82
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context3, _context4; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context3 = ownKeys(Object(source), !0)).call(_context3, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context4 = ownKeys(Object(source))).call(_context4, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
83
83
|
|
84
|
+
/**
|
85
|
+
* Displays array collections providing useful functions and
|
86
|
+
* optimizations for arrays.
|
87
|
+
*/
|
84
88
|
var ArrayField = function ArrayField(props) {
|
85
89
|
var _context2;
|
86
90
|
|
@@ -123,7 +127,7 @@ var ArrayField = function ArrayField(props) {
|
|
123
127
|
});
|
124
128
|
}, []);
|
125
129
|
var onFieldValueChange = (0, _react.useCallback)(function (event, fieldId) {
|
126
|
-
var tempValue = event; // Checks if value
|
130
|
+
var tempValue = event; // Checks if value received is a key or event
|
127
131
|
|
128
132
|
if (typeof event !== 'string') {
|
129
133
|
tempValue = event.target.value;
|
@@ -64,6 +64,11 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
64
64
|
|
65
65
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
66
66
|
|
67
|
+
/**
|
68
|
+
* Buttons are used to trigger actions or events.
|
69
|
+
* This component is based on the [Button - Theme-UI](https://theme-ui.com/components/button/)
|
70
|
+
* and includes a variety of styles, such as primary action, secondary action, or warning.
|
71
|
+
*/
|
67
72
|
var Button = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
68
73
|
var className = props.className,
|
69
74
|
isDisabled = props.isDisabled,
|
@@ -44,6 +44,11 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
44
44
|
|
45
45
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
46
46
|
|
47
|
+
/**
|
48
|
+
* Link uses the [Link - Theme-UI](https://theme-ui.com/components/link) component and
|
49
|
+
* React Aria's [useLink](https://react-spectrum.adobe.com/react-aria/useLink.html) hook.
|
50
|
+
*
|
51
|
+
*/
|
47
52
|
var Link = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
48
53
|
var className = props.className,
|
49
54
|
isDisabled = props.isDisabled,
|
@@ -107,6 +107,12 @@ function useListLayout(state) {
|
|
107
107
|
layout.disabledKeys = state.disabledKeys;
|
108
108
|
return layout;
|
109
109
|
}
|
110
|
+
/**
|
111
|
+
* ListViews are used to display a list of items. Users can select,
|
112
|
+
* view, or edit items in this list. This virtualized component supports
|
113
|
+
* asynchronous data in infinitely scrollable lists.
|
114
|
+
*/
|
115
|
+
|
110
116
|
|
111
117
|
var ListView = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
112
118
|
var disabledKeys = props.disabledKeys,
|
@@ -46,6 +46,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
46
46
|
|
47
47
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
48
48
|
|
49
|
+
/**
|
50
|
+
*Messages are intended to display non-critical alerts that
|
51
|
+
attract the users’ attention, but do not interfere or temporarily block their work.
|
52
|
+
*/
|
49
53
|
var Messages = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
50
54
|
var _context;
|
51
55
|
|
@@ -68,6 +68,11 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
68
68
|
|
69
69
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
70
70
|
|
71
|
+
/**
|
72
|
+
* Modals are overlays that interrupt a user’s workflow to convey an important message.
|
73
|
+
* The component must be wrapped in an OverlayProvider, and the first child should be a trigger,
|
74
|
+
* such as Button.
|
75
|
+
*/
|
71
76
|
var Modal = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
72
77
|
var className = props.className,
|
73
78
|
closeButton = props.closeButton,
|
@@ -44,6 +44,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
44
44
|
|
45
45
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
46
46
|
|
47
|
+
/**
|
48
|
+
* In Astro, side panels are used to show details and present modal interactions.
|
49
|
+
*/
|
47
50
|
var OverlayPanel = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
48
51
|
var _props$sx;
|
49
52
|
|
@@ -48,6 +48,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
48
48
|
|
49
49
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
50
50
|
|
51
|
+
/**
|
52
|
+
* List of requirements for a password, with indicators that can change to show when
|
53
|
+
* requirements are satisfied.
|
54
|
+
*/
|
51
55
|
var RequirementsList = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
52
56
|
var requirements = props.requirements,
|
53
57
|
others = (0, _objectWithoutProperties2["default"])(props, _excluded);
|
@@ -56,6 +56,9 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
56
56
|
|
57
57
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
58
58
|
|
59
|
+
/**
|
60
|
+
* Scrollbox is a container that allows content to be scrolled
|
61
|
+
*/
|
59
62
|
var ScrollBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
60
63
|
var maxHeight = props.maxHeight,
|
61
64
|
children = props.children,
|
@@ -66,7 +69,7 @@ var ScrollBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
66
69
|
|
67
70
|
var _useState = (0, _react.useState)(0),
|
68
71
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
69
|
-
|
72
|
+
scrollTopPosition = _useState2[0],
|
70
73
|
setScrollTopPosition = _useState2[1];
|
71
74
|
|
72
75
|
var _useState3 = (0, _react.useState)(false),
|
@@ -94,7 +97,7 @@ var ScrollBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
94
97
|
setIsTopShadowShowing(outerRef.current.firstChild.scrollTop !== 0);
|
95
98
|
}
|
96
99
|
}
|
97
|
-
}, [
|
100
|
+
}, [scrollTopPosition]);
|
98
101
|
/* istanbul ignore next */
|
99
102
|
|
100
103
|
var onScroll = function onScroll() {
|
@@ -73,6 +73,12 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
73
73
|
var ACTIVE = _Stepper.stepStatuses.ACTIVE,
|
74
74
|
COMPLETED = _Stepper.stepStatuses.COMPLETED,
|
75
75
|
INACTIVE = _Stepper.stepStatuses.INACTIVE;
|
76
|
+
/**
|
77
|
+
* The Stepper component acts as a wrapper for individual Step components.
|
78
|
+
* Stepper is used to display progress through a sequence of logical and numbered steps
|
79
|
+
* usually within a configuration wizard.
|
80
|
+
*/
|
81
|
+
|
76
82
|
var Stepper = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
77
83
|
var activeStep = props.activeStep,
|
78
84
|
onStepChange = props.onStepChange,
|
@@ -52,6 +52,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
52
52
|
|
53
53
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
54
54
|
|
55
|
+
/**
|
56
|
+
* Tab control for dividing up closely-related content.
|
57
|
+
* Typically used as a child of the Tabs component.
|
58
|
+
*/
|
55
59
|
var CollectionTab = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
56
60
|
var className = props.className,
|
57
61
|
item = props.item,
|
@@ -73,6 +73,10 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
73
73
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty2(_context6 = ownKeys(Object(source), !0)).call(_context6, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty2(_context7 = ownKeys(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
74
74
|
|
75
75
|
var TabsContext = /*#__PURE__*/_react["default"].createContext({});
|
76
|
+
/**
|
77
|
+
* Tabs are used to divide content, navigate to other views, and indicate work progress.
|
78
|
+
*/
|
79
|
+
|
76
80
|
|
77
81
|
exports.TabsContext = TabsContext;
|
78
82
|
var Tabs = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
@@ -32,6 +32,11 @@ import Text from '../Text';
|
|
32
32
|
import Label from '../Label';
|
33
33
|
import statuses from '../../utils/devUtils/constants/statuses';
|
34
34
|
import isValidPositiveInt from '../../utils/devUtils/props/isValidPositiveInt';
|
35
|
+
/**
|
36
|
+
* Displays array collections providing useful functions and
|
37
|
+
* optimizations for arrays.
|
38
|
+
*/
|
39
|
+
|
35
40
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
36
41
|
|
37
42
|
var ArrayField = function ArrayField(props) {
|
@@ -77,7 +82,7 @@ var ArrayField = function ArrayField(props) {
|
|
77
82
|
});
|
78
83
|
}, []);
|
79
84
|
var onFieldValueChange = useCallback(function (event, fieldId) {
|
80
|
-
var tempValue = event; // Checks if value
|
85
|
+
var tempValue = event; // Checks if value received is a key or event
|
81
86
|
|
82
87
|
if (typeof event !== 'string') {
|
83
88
|
tempValue = event.target.value;
|
@@ -9,6 +9,7 @@ import { ArrayField, ArrayFieldDeleteButton, Item, SelectField, TextField } from
|
|
9
9
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
10
10
|
export default {
|
11
11
|
title: 'Form/ArrayField',
|
12
|
+
component: ArrayField,
|
12
13
|
parameters: {
|
13
14
|
actions: {
|
14
15
|
argTypesRegex: '^on.*'
|
@@ -24,6 +24,12 @@ import { useFocusRing } from '@react-aria/focus';
|
|
24
24
|
import { mergeProps } from '@react-aria/utils';
|
25
25
|
import { useStatusClasses, usePropWarning, useAriaLabelWarning, useDeprecationWarning } from '../../hooks';
|
26
26
|
import Loader from '../Loader';
|
27
|
+
/**
|
28
|
+
* Buttons are used to trigger actions or events.
|
29
|
+
* This component is based on the [Button - Theme-UI](https://theme-ui.com/components/button/)
|
30
|
+
* and includes a variety of styles, such as primary action, secondary action, or warning.
|
31
|
+
*/
|
32
|
+
|
27
33
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
28
34
|
var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
29
35
|
var className = props.className,
|
@@ -9,6 +9,12 @@ import { useFocusRing } from '@react-aria/focus';
|
|
9
9
|
import { useHover, usePress } from '@react-aria/interactions';
|
10
10
|
import { mergeProps } from '@react-aria/utils';
|
11
11
|
import { usePropWarning, useStatusClasses } from '../../hooks';
|
12
|
+
/**
|
13
|
+
* Link uses the [Link - Theme-UI](https://theme-ui.com/components/link) component and
|
14
|
+
* React Aria's [useLink](https://react-spectrum.adobe.com/react-aria/useLink.html) hook.
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
|
12
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
13
19
|
var Link = /*#__PURE__*/forwardRef(function (props, ref) {
|
14
20
|
var className = props.className,
|
@@ -58,6 +58,12 @@ export function useListLayout(state) {
|
|
58
58
|
layout.disabledKeys = state.disabledKeys;
|
59
59
|
return layout;
|
60
60
|
}
|
61
|
+
/**
|
62
|
+
* ListViews are used to display a list of items. Users can select,
|
63
|
+
* view, or edit items in this list. This virtualized component supports
|
64
|
+
* asynchronous data in infinitely scrollable lists.
|
65
|
+
*/
|
66
|
+
|
61
67
|
var ListView = /*#__PURE__*/forwardRef(function (props, ref) {
|
62
68
|
var disabledKeys = props.disabledKeys,
|
63
69
|
loadingState = props.loadingState,
|
@@ -10,6 +10,11 @@ import { useListState } from '@react-stately/list';
|
|
10
10
|
import statuses from '../../utils/devUtils/constants/statuses';
|
11
11
|
import Message from './Message';
|
12
12
|
import Box from '../Box';
|
13
|
+
/**
|
14
|
+
*Messages are intended to display non-critical alerts that
|
15
|
+
attract the users’ attention, but do not interfere or temporarily block their work.
|
16
|
+
*/
|
17
|
+
|
13
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
14
19
|
var Messages = /*#__PURE__*/forwardRef(function (props, ref) {
|
15
20
|
var _context;
|
@@ -26,6 +26,12 @@ import IconButton from '../IconButton';
|
|
26
26
|
import Icon from '../Icon';
|
27
27
|
import Text from '../Text';
|
28
28
|
import { useStatusClasses, useDeprecationWarning } from '../../hooks';
|
29
|
+
/**
|
30
|
+
* Modals are overlays that interrupt a user’s workflow to convey an important message.
|
31
|
+
* The component must be wrapped in an OverlayProvider, and the first child should be a trigger,
|
32
|
+
* such as Button.
|
33
|
+
*/
|
34
|
+
|
29
35
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
30
36
|
var Modal = /*#__PURE__*/forwardRef(function (props, ref) {
|
31
37
|
var className = props.className,
|
@@ -12,7 +12,7 @@ import { Separator, Box, Link, NavBar, NavBarSection, NavBarItemButton, NavBarIt
|
|
12
12
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
13
13
|
export default {
|
14
14
|
title: 'NavBar',
|
15
|
-
component:
|
15
|
+
component: NavBar,
|
16
16
|
subcomponents: {
|
17
17
|
NavBarSection: NavBarSection,
|
18
18
|
NavBarItemLink: NavBarItemLink,
|
@@ -9,6 +9,10 @@ import { FocusScope } from '@react-aria/focus';
|
|
9
9
|
import Box from '../Box';
|
10
10
|
import { useStatusClasses, useOverlayPanelState } from '../../hooks';
|
11
11
|
import { panelSizes } from '../../utils/devUtils/constants/panelSizes';
|
12
|
+
/**
|
13
|
+
* In Astro, side panels are used to show details and present modal interactions.
|
14
|
+
*/
|
15
|
+
|
12
16
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
13
17
|
var OverlayPanel = /*#__PURE__*/forwardRef(function (props, ref) {
|
14
18
|
var _props$sx;
|
@@ -11,6 +11,11 @@ import DefaultCircle from 'mdi-react/CheckboxBlankCircleOutlineIcon';
|
|
11
11
|
import Box from '../Box';
|
12
12
|
import Text from '../Text';
|
13
13
|
import Icon from '../Icon';
|
14
|
+
/**
|
15
|
+
* List of requirements for a password, with indicators that can change to show when
|
16
|
+
* requirements are satisfied.
|
17
|
+
*/
|
18
|
+
|
14
19
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
15
20
|
var RequirementsList = /*#__PURE__*/forwardRef(function (props, ref) {
|
16
21
|
var requirements = props.requirements,
|
@@ -20,6 +20,10 @@ import React, { forwardRef, useImperativeHandle, useLayoutEffect, useRef, useSta
|
|
20
20
|
import PropTypes from 'prop-types';
|
21
21
|
import Box from '../Box';
|
22
22
|
import useStatusClasses from '../../hooks/useStatusClasses';
|
23
|
+
/**
|
24
|
+
* Scrollbox is a container that allows content to be scrolled
|
25
|
+
*/
|
26
|
+
|
23
27
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
24
28
|
var ScrollBox = /*#__PURE__*/forwardRef(function (props, ref) {
|
25
29
|
var maxHeight = props.maxHeight,
|
@@ -31,7 +35,7 @@ var ScrollBox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
31
35
|
|
32
36
|
var _useState = useState(0),
|
33
37
|
_useState2 = _slicedToArray(_useState, 2),
|
34
|
-
|
38
|
+
scrollTopPosition = _useState2[0],
|
35
39
|
setScrollTopPosition = _useState2[1];
|
36
40
|
|
37
41
|
var _useState3 = useState(false),
|
@@ -59,7 +63,7 @@ var ScrollBox = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
59
63
|
setIsTopShadowShowing(outerRef.current.firstChild.scrollTop !== 0);
|
60
64
|
}
|
61
65
|
}
|
62
|
-
}, [
|
66
|
+
}, [scrollTopPosition]);
|
63
67
|
/* istanbul ignore next */
|
64
68
|
|
65
69
|
var onScroll = function onScroll() {
|
@@ -31,6 +31,12 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
31
31
|
var ACTIVE = stepStatuses.ACTIVE,
|
32
32
|
COMPLETED = stepStatuses.COMPLETED,
|
33
33
|
INACTIVE = stepStatuses.INACTIVE;
|
34
|
+
/**
|
35
|
+
* The Stepper component acts as a wrapper for individual Step components.
|
36
|
+
* Stepper is used to display progress through a sequence of logical and numbered steps
|
37
|
+
* usually within a configuration wizard.
|
38
|
+
*/
|
39
|
+
|
34
40
|
var Stepper = /*#__PURE__*/forwardRef(function (props, ref) {
|
35
41
|
var activeStep = props.activeStep,
|
36
42
|
onStepChange = props.onStepChange,
|
@@ -13,6 +13,11 @@ import { useStatusClasses, usePropWarning } from '../../hooks';
|
|
13
13
|
import ORIENTATION from '../../utils/devUtils/constants/orientation';
|
14
14
|
import TabPicker from '../TabPicker';
|
15
15
|
import { Box, Text, TooltipTrigger, Tooltip, Button } from '../..';
|
16
|
+
/**
|
17
|
+
* Tab control for dividing up closely-related content.
|
18
|
+
* Typically used as a child of the Tabs component.
|
19
|
+
*/
|
20
|
+
|
16
21
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
17
22
|
export var CollectionTab = /*#__PURE__*/forwardRef(function (props, ref) {
|
18
23
|
var className = props.className,
|
@@ -28,6 +28,10 @@ import ORIENTATION from '../../utils/devUtils/constants/orientation';
|
|
28
28
|
import { usePropWarning } from '../../hooks';
|
29
29
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
30
30
|
export var TabsContext = /*#__PURE__*/React.createContext({});
|
31
|
+
/**
|
32
|
+
* Tabs are used to divide content, navigate to other views, and indicate work progress.
|
33
|
+
*/
|
34
|
+
|
31
35
|
var Tabs = /*#__PURE__*/forwardRef(function (props, ref) {
|
32
36
|
var _context4, _context5;
|
33
37
|
|