@pingux/astro 2.5.6 → 2.5.7-alpha.1
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/ArrayField/ArrayField.js +0 -4
- package/lib/cjs/components/ArrayField/ArrayField.stories.js +5 -0
- package/lib/cjs/components/CheckboxField/CheckboxField.js +0 -6
- package/lib/cjs/components/CheckboxField/CheckboxField.stories.js +5 -0
- package/lib/cjs/components/ColorField/ColorField.js +0 -9
- package/lib/cjs/components/ColorField/ColorField.stories.js +5 -0
- package/lib/cjs/components/ComboBoxField/ComboBoxField.js +0 -9
- package/lib/cjs/components/ComboBoxField/ComboBoxField.stories.js +5 -0
- package/lib/cjs/components/DataTable/DataTable.js +0 -27
- package/lib/cjs/components/FileInputField/FileInputField.js +0 -7
- package/lib/cjs/components/FileInputField/FileInputField.stories.js +5 -0
- package/lib/components/ArrayField/ArrayField.js +0 -5
- package/lib/components/ArrayField/ArrayField.stories.js +5 -0
- package/lib/components/CheckboxField/CheckboxField.js +0 -7
- package/lib/components/CheckboxField/CheckboxField.stories.js +5 -0
- package/lib/components/ColorField/ColorField.js +0 -9
- package/lib/components/ColorField/ColorField.stories.js +5 -0
- package/lib/components/ComboBoxField/ComboBoxField.js +0 -10
- package/lib/components/ComboBoxField/ComboBoxField.stories.js +5 -0
- package/lib/components/DataTable/DataTable.js +0 -27
- package/lib/components/FileInputField/FileInputField.js +0 -7
- package/lib/components/FileInputField/FileInputField.stories.js +5 -0
- package/package.json +1 -1
- package/NOTICE.html +0 -12821
@@ -38,10 +38,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
38
38
|
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; }
|
39
39
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
40
40
|
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; }
|
41
|
-
/**
|
42
|
-
* Displays array collections providing useful functions and
|
43
|
-
* optimizations for arrays.
|
44
|
-
*/
|
45
41
|
var ArrayField = function ArrayField(props) {
|
46
42
|
var _context2;
|
47
43
|
var addButtonLabel = props.addButtonLabel,
|
@@ -22,8 +22,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/he
|
|
22
22
|
var _react = _interopRequireDefault(require("react"));
|
23
23
|
var _reactAria = require("react-aria");
|
24
24
|
var _uuid = require("uuid");
|
25
|
+
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
25
26
|
var _index = require("../../index");
|
26
27
|
var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
|
28
|
+
var _ArrayField = _interopRequireDefault(require("./ArrayField.mdx"));
|
27
29
|
var _react2 = require("@emotion/react");
|
28
30
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
29
31
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
@@ -35,6 +37,9 @@ var _default = {
|
|
35
37
|
argTypesRegex: '^on.*'
|
36
38
|
},
|
37
39
|
docs: {
|
40
|
+
page: function page() {
|
41
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_ArrayField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
42
|
+
},
|
38
43
|
source: {
|
39
44
|
type: 'code'
|
40
45
|
}
|
@@ -33,12 +33,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
33
33
|
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; }
|
34
34
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
35
35
|
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; }
|
36
|
-
/**
|
37
|
-
* Combines a checkbox, label, and helper text for a complete, form-ready solution.
|
38
|
-
*
|
39
|
-
* Utilizes [useCheckbox](https://react-spectrum.adobe.com/react-aria/useCheckbox.html) from React Aria and
|
40
|
-
* [useToggleState](https://react-spectrum.adobe.com/react-stately/useToggleState.html) from React Stately.
|
41
|
-
*/
|
42
36
|
var CheckboxField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
43
37
|
var label = props.label,
|
44
38
|
_props$controlProps = props.controlProps,
|
@@ -20,10 +20,12 @@ var _every = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stab
|
|
20
20
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
21
21
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
22
22
|
var _react = _interopRequireWildcard(require("react"));
|
23
|
+
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
23
24
|
var _index = require("../../index");
|
24
25
|
var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
|
25
26
|
var _fieldAttributes = require("../../utils/docUtils/fieldAttributes");
|
26
27
|
var _statusProp = require("../../utils/docUtils/statusProp");
|
28
|
+
var _CheckboxField = _interopRequireDefault(require("./CheckboxField.mdx"));
|
27
29
|
var _react2 = require("@emotion/react");
|
28
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
31
|
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; }
|
@@ -34,6 +36,9 @@ var _default = {
|
|
34
36
|
component: _index.CheckboxField,
|
35
37
|
parameters: {
|
36
38
|
docs: {
|
39
|
+
page: function page() {
|
40
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_CheckboxField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
41
|
+
},
|
37
42
|
source: {
|
38
43
|
type: 'code'
|
39
44
|
}
|
@@ -36,15 +36,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
36
36
|
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; }
|
37
37
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
38
38
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context5, _context6; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context5 = ownKeys(Object(source), !0)).call(_context5, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context6 = ownKeys(Object(source))).call(_context6, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
39
|
-
/**
|
40
|
-
* The Color Field component allows the user to pick a color and displays the chosen color.
|
41
|
-
*
|
42
|
-
* Utilizes [useColorField](https://react-spectrum.adobe.com/react-aria/useColorField.html) from React Aria and
|
43
|
-
* [useColorFieldState](https://react-spectrum.adobe.com/react-stately/useColorFieldState.html) from React Stately.
|
44
|
-
*
|
45
|
-
* Using [React Color](https://casesandberg.github.io/react-color/) as a color picker.
|
46
|
-
*/
|
47
|
-
|
48
39
|
var ColorField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
49
40
|
var _context;
|
50
41
|
var align = props.align,
|
@@ -20,10 +20,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/e
|
|
20
20
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
21
21
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
22
22
|
var _react = _interopRequireWildcard(require("react"));
|
23
|
+
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
23
24
|
var _index = require("../../index");
|
24
25
|
var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
|
25
26
|
var _fieldAttributes = require("../../utils/docUtils/fieldAttributes");
|
26
27
|
var _statusProp = require("../../utils/docUtils/statusProp");
|
28
|
+
var _ColorField = _interopRequireDefault(require("./ColorField.mdx"));
|
27
29
|
var _react2 = require("@emotion/react");
|
28
30
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
31
|
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; }
|
@@ -34,6 +36,9 @@ var _default = {
|
|
34
36
|
component: _index.ColorField,
|
35
37
|
parameters: {
|
36
38
|
docs: {
|
39
|
+
page: function page() {
|
40
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_ColorField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
41
|
+
},
|
37
42
|
source: {
|
38
43
|
type: 'code'
|
39
44
|
}
|
@@ -44,15 +44,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
44
44
|
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; }
|
45
45
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
46
46
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
47
|
-
/**
|
48
|
-
* Combines an input with a listbox for a filterable dropdown list.
|
49
|
-
*
|
50
|
-
* Utilizes [useComboBox](https://react-spectrum.adobe.com/react-aria/useComboBox.html) from React
|
51
|
-
* Aria and [useComboBoxState](https://react-spectrum.adobe.com/react-stately/useComboBoxState.html)
|
52
|
-
* from React Stately.
|
53
|
-
*
|
54
|
-
* Props not specified are passed along to the underlying `TextField` component.
|
55
|
-
*/
|
56
47
|
var ComboBoxField = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
57
48
|
var hasAutoFocus = props.hasAutoFocus,
|
58
49
|
hasAddOption = props.hasAddOption,
|
@@ -36,9 +36,11 @@ var _react = _interopRequireWildcard(require("react"));
|
|
36
36
|
var _reactStately = require("react-stately");
|
37
37
|
var _i18n = require("@react-aria/i18n");
|
38
38
|
var _addonActions = require("@storybook/addon-actions");
|
39
|
+
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
39
40
|
var _index = require("../../index");
|
40
41
|
var _loadingStates = _interopRequireDefault(require("../../utils/devUtils/constants/loadingStates"));
|
41
42
|
var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
|
43
|
+
var _ComboBoxField = _interopRequireDefault(require("./ComboBoxField.mdx"));
|
42
44
|
var _react2 = require("@emotion/react");
|
43
45
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
44
46
|
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; }
|
@@ -145,6 +147,9 @@ var _default = {
|
|
145
147
|
component: _index.ComboBoxField,
|
146
148
|
parameters: {
|
147
149
|
docs: {
|
150
|
+
page: function page() {
|
151
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_ComboBoxField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
152
|
+
},
|
148
153
|
source: {
|
149
154
|
type: 'code'
|
150
155
|
}
|
@@ -56,33 +56,6 @@ var ROW_HEIGHTS = {
|
|
56
56
|
large: 75
|
57
57
|
}
|
58
58
|
};
|
59
|
-
|
60
|
-
/**
|
61
|
-
* Inspired by [TableView](https://react-spectrum.adobe.com/react-spectrum/TableView.html)
|
62
|
-
* from React Spectrum and [useTableState](https://react-spectrum.adobe.com/react-stately/useTableState.html)
|
63
|
-
* from React Stately.
|
64
|
-
*
|
65
|
-
* DataTable is a complex collection component that is built from many child elements including
|
66
|
-
* columns, rows and cells. Columns are defined within DataTableHeader element via DataTableColumn
|
67
|
-
* and rows are defined within a DataTableBody element via DataTableRow. Rows contain DataTableCell
|
68
|
-
* elements that correspond to each column.
|
69
|
-
*
|
70
|
-
* [TableHeader](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=defined%20using%20the-,TableHeader,-%2C%20Column%2C)
|
71
|
-
* uses the alias DataTableHeader.
|
72
|
-
*
|
73
|
-
* [Column](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=the%20TableHeader%2C-,Column,-%2C%20TableBody%2C)
|
74
|
-
* uses the alias DataTableColumn.
|
75
|
-
*
|
76
|
-
* [Cell](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=Row%2C%20and-,Cell,-components%2C%20which%20support)
|
77
|
-
* uses the alias DataTableCell.
|
78
|
-
*
|
79
|
-
* [Row](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=%2C%20TableBody%2C-,Row,-%2C%20and%20Cell%20components)
|
80
|
-
* uses the alias DataTableCell.
|
81
|
-
*
|
82
|
-
* [TableBody](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=%2C%20Column%2C-,TableBody,-%2C%20Row%2C%20and)
|
83
|
-
* uses the alias DataTableBody.
|
84
|
-
*/
|
85
|
-
|
86
59
|
var DataTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
87
60
|
var width = props.width,
|
88
61
|
height = props.height,
|
@@ -45,13 +45,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
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
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty2(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
47
47
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
48
|
-
/**
|
49
|
-
* The FileInputField component allows users to upload one or more files by
|
50
|
-
* clicking the button or via drag and drop.
|
51
|
-
*
|
52
|
-
* We utilize [react-dropzone](https://react-dropzone.js.org/) for the drag and drop functionality.
|
53
|
-
* */
|
54
|
-
|
55
48
|
var FileInputField = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
56
49
|
var defaultButtonText = _ref.defaultButtonText,
|
57
50
|
defaultFileList = _ref.defaultFileList,
|
@@ -20,11 +20,13 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/e
|
|
20
20
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
21
21
|
var _react = _interopRequireWildcard(require("react"));
|
22
22
|
var _uuid = require("uuid");
|
23
|
+
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
23
24
|
var _index = require("../../index");
|
24
25
|
var _statuses = _interopRequireDefault(require("../../utils/devUtils/constants/statuses"));
|
25
26
|
var _ariaAttributes = require("../../utils/docUtils/ariaAttributes");
|
26
27
|
var _fieldAttributes = require("../../utils/docUtils/fieldAttributes");
|
27
28
|
var _statusProp = require("../../utils/docUtils/statusProp");
|
29
|
+
var _FileInputField = _interopRequireDefault(require("./FileInputField.mdx"));
|
28
30
|
var _react2 = require("@emotion/react");
|
29
31
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
30
32
|
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; }
|
@@ -35,6 +37,9 @@ var _default = {
|
|
35
37
|
component: _index.FileInputField,
|
36
38
|
parameters: {
|
37
39
|
docs: {
|
40
|
+
page: function page() {
|
41
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_FileInputField["default"], null), (0, _react2.jsx)(_storybookDocsLayout["default"], null));
|
42
|
+
},
|
38
43
|
source: {
|
39
44
|
type: 'code'
|
40
45
|
}
|
@@ -25,11 +25,6 @@ import statuses from '../../utils/devUtils/constants/statuses';
|
|
25
25
|
import isValidPositiveInt from '../../utils/devUtils/props/isValidPositiveInt';
|
26
26
|
import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/docUtils/ariaAttributes';
|
27
27
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
28
|
-
|
29
|
-
/**
|
30
|
-
* Displays array collections providing useful functions and
|
31
|
-
* optimizations for arrays.
|
32
|
-
*/
|
33
28
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
34
29
|
var ArrayField = function ArrayField(props) {
|
35
30
|
var _context2;
|
@@ -16,8 +16,10 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
16
16
|
import React from 'react';
|
17
17
|
import { OverlayProvider } from 'react-aria';
|
18
18
|
import { v4 as uuid } from 'uuid';
|
19
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
19
20
|
import { ArrayField, ArrayFieldDeleteButton, Item, SelectField, TextField } from '../../index';
|
20
21
|
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
22
|
+
import ArrayFieldReadme from './ArrayField.mdx';
|
21
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
22
24
|
export default {
|
23
25
|
title: 'Form/ArrayField',
|
@@ -27,6 +29,9 @@ export default {
|
|
27
29
|
argTypesRegex: '^on.*'
|
28
30
|
},
|
29
31
|
docs: {
|
32
|
+
page: function page() {
|
33
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ArrayFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
34
|
+
},
|
30
35
|
source: {
|
31
36
|
type: 'code'
|
32
37
|
}
|
@@ -21,13 +21,6 @@ import { useField, usePropWarning } from '../../hooks';
|
|
21
21
|
import { ariaAttributesBasePropTypes } from '../../utils/docUtils/ariaAttributes';
|
22
22
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
23
23
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
24
|
-
|
25
|
-
/**
|
26
|
-
* Combines a checkbox, label, and helper text for a complete, form-ready solution.
|
27
|
-
*
|
28
|
-
* Utilizes [useCheckbox](https://react-spectrum.adobe.com/react-aria/useCheckbox.html) from React Aria and
|
29
|
-
* [useToggleState](https://react-spectrum.adobe.com/react-stately/useToggleState.html) from React Stately.
|
30
|
-
*/
|
31
24
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
32
25
|
var CheckboxField = /*#__PURE__*/forwardRef(function (props, ref) {
|
33
26
|
var label = props.label,
|
@@ -13,16 +13,21 @@ import _everyInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instan
|
|
13
13
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
14
14
|
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) { _defineProperty(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; }
|
15
15
|
import React, { useEffect, useState } from 'react';
|
16
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
16
17
|
import { Box, CheckboxField, Link, Text } from '../../index';
|
17
18
|
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
18
19
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
19
20
|
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
21
|
+
import CheckboxFieldReadme from './CheckboxField.mdx';
|
20
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
21
23
|
export default {
|
22
24
|
title: 'Form/CheckboxField',
|
23
25
|
component: CheckboxField,
|
24
26
|
parameters: {
|
25
27
|
docs: {
|
28
|
+
page: function page() {
|
29
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CheckboxFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
30
|
+
},
|
26
31
|
source: {
|
27
32
|
type: 'code'
|
28
33
|
}
|
@@ -24,15 +24,6 @@ import { ariaAttributesBasePropTypes, getAriaAttributeProps } from '../../utils/
|
|
24
24
|
import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAttributes';
|
25
25
|
import { statusPropTypes } from '../../utils/docUtils/statusProp';
|
26
26
|
import PopoverContainer from '../PopoverContainer';
|
27
|
-
|
28
|
-
/**
|
29
|
-
* The Color Field component allows the user to pick a color and displays the chosen color.
|
30
|
-
*
|
31
|
-
* Utilizes [useColorField](https://react-spectrum.adobe.com/react-aria/useColorField.html) from React Aria and
|
32
|
-
* [useColorFieldState](https://react-spectrum.adobe.com/react-stately/useColorFieldState.html) from React Stately.
|
33
|
-
*
|
34
|
-
* Using [React Color](https://casesandberg.github.io/react-color/) as a color picker.
|
35
|
-
*/
|
36
27
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
37
28
|
var ColorField = /*#__PURE__*/forwardRef(function (props, ref) {
|
38
29
|
var _context;
|
@@ -13,16 +13,21 @@ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
13
13
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
14
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context4, _context5; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context4 = ownKeys(Object(source), !0)).call(_context4, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context5 = ownKeys(Object(source))).call(_context5, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
15
15
|
import React, { useCallback, useState } from 'react';
|
16
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
16
17
|
import { ColorField, OverlayProvider } from '../../index';
|
17
18
|
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
18
19
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
19
20
|
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
21
|
+
import ColorFieldReadme from './ColorField.mdx';
|
20
22
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
21
23
|
export default {
|
22
24
|
title: 'Form/ColorField',
|
23
25
|
component: ColorField,
|
24
26
|
parameters: {
|
25
27
|
docs: {
|
28
|
+
page: function page() {
|
29
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ColorFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
30
|
+
},
|
26
31
|
source: {
|
27
32
|
type: 'code'
|
28
33
|
}
|
@@ -32,16 +32,6 @@ import ComboBoxInput from '../ComboBox';
|
|
32
32
|
import ListBox from '../ListBox';
|
33
33
|
import PopoverContainer from '../PopoverContainer';
|
34
34
|
import ScrollBox from '../ScrollBox';
|
35
|
-
|
36
|
-
/**
|
37
|
-
* Combines an input with a listbox for a filterable dropdown list.
|
38
|
-
*
|
39
|
-
* Utilizes [useComboBox](https://react-spectrum.adobe.com/react-aria/useComboBox.html) from React
|
40
|
-
* Aria and [useComboBoxState](https://react-spectrum.adobe.com/react-stately/useComboBoxState.html)
|
41
|
-
* from React Stately.
|
42
|
-
*
|
43
|
-
* Props not specified are passed along to the underlying `TextField` component.
|
44
|
-
*/
|
45
35
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
46
36
|
var ComboBoxField = /*#__PURE__*/forwardRef(function (props, ref) {
|
47
37
|
var hasAutoFocus = props.hasAutoFocus,
|
@@ -29,9 +29,11 @@ import React, { useState } from 'react';
|
|
29
29
|
import { useAsyncList } from 'react-stately';
|
30
30
|
import { useFilter } from '@react-aria/i18n';
|
31
31
|
import { action } from '@storybook/addon-actions';
|
32
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
32
33
|
import { ComboBoxField, Item, OverlayProvider, Section } from '../../index';
|
33
34
|
import loadingStates from '../../utils/devUtils/constants/loadingStates';
|
34
35
|
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
36
|
+
import ComboBoxFieldReadme from './ComboBoxField.mdx';
|
35
37
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
36
38
|
var items = [{
|
37
39
|
name: 'Aardvark',
|
@@ -133,6 +135,9 @@ export default {
|
|
133
135
|
component: ComboBoxField,
|
134
136
|
parameters: {
|
135
137
|
docs: {
|
138
|
+
page: function page() {
|
139
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(ComboBoxFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
140
|
+
},
|
136
141
|
source: {
|
137
142
|
type: 'code'
|
138
143
|
}
|
@@ -45,33 +45,6 @@ var ROW_HEIGHTS = {
|
|
45
45
|
large: 75
|
46
46
|
}
|
47
47
|
};
|
48
|
-
|
49
|
-
/**
|
50
|
-
* Inspired by [TableView](https://react-spectrum.adobe.com/react-spectrum/TableView.html)
|
51
|
-
* from React Spectrum and [useTableState](https://react-spectrum.adobe.com/react-stately/useTableState.html)
|
52
|
-
* from React Stately.
|
53
|
-
*
|
54
|
-
* DataTable is a complex collection component that is built from many child elements including
|
55
|
-
* columns, rows and cells. Columns are defined within DataTableHeader element via DataTableColumn
|
56
|
-
* and rows are defined within a DataTableBody element via DataTableRow. Rows contain DataTableCell
|
57
|
-
* elements that correspond to each column.
|
58
|
-
*
|
59
|
-
* [TableHeader](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=defined%20using%20the-,TableHeader,-%2C%20Column%2C)
|
60
|
-
* uses the alias DataTableHeader.
|
61
|
-
*
|
62
|
-
* [Column](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=the%20TableHeader%2C-,Column,-%2C%20TableBody%2C)
|
63
|
-
* uses the alias DataTableColumn.
|
64
|
-
*
|
65
|
-
* [Cell](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=Row%2C%20and-,Cell,-components%2C%20which%20support)
|
66
|
-
* uses the alias DataTableCell.
|
67
|
-
*
|
68
|
-
* [Row](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=%2C%20TableBody%2C-,Row,-%2C%20and%20Cell%20components)
|
69
|
-
* uses the alias DataTableCell.
|
70
|
-
*
|
71
|
-
* [TableBody](https://react-spectrum.adobe.com/react-aria/useTable.html#:~:text=%2C%20Column%2C-,TableBody,-%2C%20Row%2C%20and)
|
72
|
-
* uses the alias DataTableBody.
|
73
|
-
*/
|
74
|
-
|
75
48
|
var DataTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
76
49
|
var width = props.width,
|
77
50
|
height = props.height,
|
@@ -32,13 +32,6 @@ import { inputFieldAttributesBasePropTypes } from '../../utils/docUtils/fieldAtt
|
|
32
32
|
import { statusDefaultProp, statusPropTypes } from '../../utils/docUtils/statusProp';
|
33
33
|
import FileItem from './FileItem';
|
34
34
|
import FileSelect from './FileSelect';
|
35
|
-
|
36
|
-
/**
|
37
|
-
* The FileInputField component allows users to upload one or more files by
|
38
|
-
* clicking the button or via drag and drop.
|
39
|
-
*
|
40
|
-
* We utilize [react-dropzone](https://react-dropzone.js.org/) for the drag and drop functionality.
|
41
|
-
* */
|
42
35
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
43
36
|
var FileInputField = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
44
37
|
var defaultButtonText = _ref.defaultButtonText,
|
@@ -13,17 +13,22 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
|
|
13
13
|
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) { _defineProperty(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; }
|
14
14
|
import React, { useState } from 'react';
|
15
15
|
import { v4 as uuidv4 } from 'uuid';
|
16
|
+
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
16
17
|
import { Box, FileInputField } from '../../index';
|
17
18
|
import statuses from '../../utils/devUtils/constants/statuses';
|
18
19
|
import { ariaAttributeBaseArgTypes } from '../../utils/docUtils/ariaAttributes';
|
19
20
|
import { inputFieldAttributeBaseArgTypes } from '../../utils/docUtils/fieldAttributes';
|
20
21
|
import { statusArgTypes } from '../../utils/docUtils/statusProp';
|
22
|
+
import FileInputFieldReadme from './FileInputField.mdx';
|
21
23
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
22
24
|
export default {
|
23
25
|
title: 'Form/FileInputField',
|
24
26
|
component: FileInputField,
|
25
27
|
parameters: {
|
26
28
|
docs: {
|
29
|
+
page: function page() {
|
30
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(FileInputFieldReadme, null), ___EmotionJSX(DocsLayout, null));
|
31
|
+
},
|
27
32
|
source: {
|
28
33
|
type: 'code'
|
29
34
|
}
|